Guest User

Untitled

a guest
Feb 17th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. function get_title($cut_at = '') {
  2. $buffy = '';
  3.  
  4. if (is_page(enter your page id number here)){
  5. $buffy .= '<h2 class="entry-title">';
  6. if ($this->is_single === true) {
  7. $buffy .= $this->title;
  8. } else {
  9. $buffy .='<a href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">';
  10. $buffy .= $this->title;
  11. $buffy .='</a>';
  12. }
  13. $buffy .= '</h2>';
  14. }
  15.  
  16.  
  17. elseif (!empty($this->title)) {
  18. $buffy .= '<h1 class="entry-title">';
  19. if ($this->is_single === true) {
  20. $buffy .= $this->title;
  21. } else {
  22. $buffy .='<a href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">';
  23. $buffy .= $this->title;
  24. $buffy .='</a>';
  25. }
  26. $buffy .= '</h1>';
  27. }
  28.  
  29. return $buffy;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment