Guest User

Untitled

a guest
Feb 10th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. function get_title($excerpt_lenght = '',$module = '') {
  2. $buffy = '';
  3. $buffy .= '<h3 itemprop="name" class="entry-title">';
  4. if ($module == '') {
  5. $buffy .= '<a itemprop="url" href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">';
  6. }
  7. if (!empty($excerpt_lenght)) {
  8. $buffy .= td_util::excerpt($this->title, $excerpt_lenght, 'show_shortcodes');
  9. } else {
  10. $buffy .= $this->title;
  11. }
  12. if ($module == '') {
  13. $buffy .= '</a>';
  14. }
  15. $buffy .= '</h3>';
  16. return $buffy;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment