complete rewrite of theme options, based on twentyeleven (in progress)
This commit is contained in:
12
loop.php
12
loop.php
@@ -14,18 +14,14 @@
|
||||
<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>
|
||||
</p>
|
||||
<?php } ?>
|
||||
<p class="byline author vcard"><span class="fn"><?php the_author(); ?></span></p>
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
<?php if (is_archive() || is_search()) : // Only display excerpts for archives and search ?>
|
||||
<?php if (is_archive() || is_search()) : // Only display excerpts for archives and search ?>
|
||||
<?php the_excerpt(); ?>
|
||||
<?php else : ?>
|
||||
<?php else : ?>
|
||||
<?php the_content(); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<footer>
|
||||
<?php $tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user