<div class="entry-attachment"><?php the_attachment_link($post->ID, true); ?> </div> <?php the_content(seamless_more_text()); wp_link_pages(array('before' => sprintf('<nav class="page-link">%s', __('Pages:', 'seamless')), 'after' => '</nav>')); ?> </div><!-- .entry-content --> <?php // creating the post footer seamless_postfooter(); ?> </article><!-- #post --> <?php // action hook for placing contentbelow #post seamless_belowpost(); // action hook for calling the comments_template seamless_comments_template(); // end loop } // filter for manipulating the output of the #content closing element echo apply_filters('seamless_close_id_content', '</div><!-- #content -->' . "\n\n"); // action hook for placing content below #content seamless_belowcontent();
/** * The Tag loop * * Located in tag.php * * Override: childtheme_override_tag_loop */ function seamless_tag_loop() { while (have_posts()) { the_post(); // action hook for insterting content above #post seamless_abovepost(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <?php // creating the post header seamless_postheader(); ?> <div class="entry-content"> <?php seamless_content(); ?> </div><!-- .entry-content --> <?php seamless_postfooter(); ?> </article><!-- #post --> <?php // action hook for insterting content below #post seamless_belowpost(); } }
function test_seamless_postfooter() { $this->expectOutputRegex('/<footer/', seamless_postfooter()); }