function test_thematic_postheader_posttitle()
 {
     $content = thematic_postheader_posttitle();
     $this->assertRegexp('/^\\n\\n\\t\\t\\t\\t\\t<h1/', $content);
     $this->assertRegexp('/<\\/h1>$/', $content);
 }
Example #2
0
 /**
  * Create the post header
  * 
  * Override: childtheme_override_postheader <br>
  * Filter: thematic_postheader
  */
 function thematic_postheader()
 {
     global $post;
     if (is_404() || $post->post_type == 'page') {
         $postheader = thematic_postheader_posttitle();
     } else {
         $postheader = thematic_postheader_posttitle() . thematic_postheader_postmeta();
     }
     echo apply_filters('thematic_postheader', $postheader);
     // Filter to override default post header
 }
Example #3
0
 /**
  * Create the post header
  * 
  * Override: childtheme_override_postheader <br>
  * Filter: thematic_postheader
  */
 function thematic_postheader()
 {
     global $post;
     if (is_404() || $post->post_type == 'page') {
         $postheader = '<header class="entry-header">' . thematic_postheader_posttitle() . "</header><!-- .entry-header -->\n";
     } else {
         $postheader = '<header class="entry-header">' . thematic_postheader_posttitle() . thematic_postheader_postmeta() . "</header><!-- .entry-header -->\n";
     }
     echo apply_filters('thematic_postheader', $postheader);
     // Filter to override default post header
 }