adding hooks & actions
This commit is contained in:
@@ -4,19 +4,19 @@
|
||||
<p class="bottom"><?php _e('Sorry, no results were found.', 'roots'); ?></p>
|
||||
</div>
|
||||
<?php get_search_form(); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php /* Start loop */ ?>
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
|
||||
<?php roots_post_before(); ?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php roots_post_inside_before(); ?>
|
||||
<header>
|
||||
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
||||
<time pubdate datetime="<?php the_time('c'); ?>"><?php printf(__('Posted on %s at %s.', 'roots'), get_the_time('l, F jS, Y'), get_the_time()); ?></time>
|
||||
<?php if (get_option('roots_post_author') == 'checked') { ?>
|
||||
<p class="byline author vcard">
|
||||
<?php _e('Written by', 'roots');?> <span class="fn"><?php the_author(); ?></span>
|
||||
<?php _e('Written by', 'roots'); ?> <span class="fn"><?php the_author(); ?></span>
|
||||
</p>
|
||||
<?php } ?>
|
||||
</header>
|
||||
@@ -26,10 +26,9 @@
|
||||
<footer>
|
||||
<?php $tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php } ?>
|
||||
</footer>
|
||||
<?php roots_post_inside_after(); ?>
|
||||
</article>
|
||||
|
||||
<?php comments_template('', true); ?>
|
||||
|
||||
<?php roots_post_after(); ?>
|
||||
<?php endwhile; // End the loop ?>
|
||||
|
||||
<?php /* Display navigation to next/previous pages when applicable */ ?>
|
||||
|
||||
Reference in New Issue
Block a user