mangomatic_postheader_posttitle

The MangoMatic (Responsive) mangomatic postheader posttitle function.

Description

mangomatic_postheader_posttitle(); 

Usage

  1. if ( !function_exists( 'mangomatic_postheader_posttitle' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = mangomatic_postheader_posttitle(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function mangomatic_postheader_posttitle() { 
  2. $link_start = '<a href="' . apply_filters('the_permalink', get_permalink()) .  
  3. '" title="'. __('Permalink to ', 'newtheme') . the_title_attribute('echo=0'). '" rel="bookmark">'; 
  4. $link_end = '</a>'; 
  5. if (is_single() || is_page() || is_home()) { 
  6. $posttitle = '<h1 class="entry-title">'. $link_start . get_the_title() . $link_end . "</h1>"; 
  7. } elseif (is_404()) {  
  8. $posttitle = '<h1 class="entry-title">' . __('Not Found', 'newtheme') . "</h1>"; 
  9. } elseif( is_archive() || is_search() ) { 
  10. $posttitle = $link_start . get_the_title() . $link_end;  
  11.  
  12. return apply_filters('mangomatic_postheader_posttitle', $posttitle);  
  13.