mangomatic_postheader_posttitle
The MangoMatic (Responsive) mangomatic postheader posttitle function.
Description
mangomatic_postheader_posttitle();
Usage
if ( !function_exists( 'mangomatic_postheader_posttitle' ) ) { require_once '/functions.php'; } // NOTICE! Understand what this does before running. $result = mangomatic_postheader_posttitle();
Defined (1)
The function is defined in the following location(s).
- /functions.php
- function mangomatic_postheader_posttitle() {
- $link_start = '<a href="' . apply_filters('the_permalink', get_permalink()) .
- '" title="'. __('Permalink to ', 'newtheme') . the_title_attribute('echo=0'). '" rel="bookmark">';
- $link_end = '</a>';
- if (is_single() || is_page() || is_home()) {
- $posttitle = '<h1 class="entry-title">'. $link_start . get_the_title() . $link_end . "</h1>";
- } elseif (is_404()) {
- $posttitle = '<h1 class="entry-title">' . __('Not Found', 'newtheme') . "</h1>";
- } elseif( is_archive() || is_search() ) {
- $posttitle = $link_start . get_the_title() . $link_end;
- }
- return apply_filters('mangomatic_postheader_posttitle', $posttitle);
- }