forked from WPBuddy/largo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent.php
34 lines (24 loc) · 1.12 KB
/
content.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* The default template for displaying content
*/
global $tags;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
<header>
<?php if ( is_home() && largo_has_categories_or_tags() && $tags === 'top' ) { ?>
<h5 class="top-tag"><?php largo_categories_and_tags( 1 ); ?></h5>
<?php } ?>
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" title="Permalink to <?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
<h5 class="byline"><?php largo_byline(); ?></h5>
</header><!-- / entry header -->
<div class="entry-content">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
<?php largo_excerpt( $post, 5, true, __('Continue Reading →', 'largo'), true, false ); ?>
<?php if ( !is_home() || ( largo_has_categories_or_tags() && $tags === 'btm' ) ) { ?>
<h5 class="tag-list"><strong><?php _e('Filed under:', 'largo'); ?></strong> <?php largo_categories_and_tags( 8 ); ?></h5>
<?php } ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->