forked from WPBuddy/largo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
content-single.php
78 lines (69 loc) · 2.89 KB
/
content-single.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* The template for displaying content in the single.php template
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'hnews item' ); ?> itemscope itemtype="http://schema.org/Article">
<?php do_action('largo_before_post_header'); ?>
<header>
<h1 class="entry-title" itemprop="headline"><?php the_title(); ?></h1>
<h5 class="byline"><?php largo_byline(); ?></h5>
<?php
if ( of_get_option( 'social_icons_display' ) === 'top' || of_get_option( 'social_icons_display' ) === 'both' )
largo_post_social_links();
?>
<meta itemprop="description" content="<?php echo strip_tags(largo_excerpt( $post, 5, false, '', false ) ); ?>" />
<meta itemprop="datePublished" content="<?php echo get_the_date( 'c' ); ?>" />
<meta itemprop="dateModified" content="<?php echo get_the_modified_date( 'c' ); ?>" />
<?php
if ( has_post_thumbnail( $post->ID ) ) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'thumbnail' );
echo '<meta itemprop="image" content="' . $image[0] . '" />';
}
?>
</header><!-- / entry header -->
<?php do_action('largo_after_post_header'); ?>
<div class="entry-content clearfix" itemprop="articleBody">
<?php largo_entry_content( $post ); ?>
</div><!-- .entry-content -->
<?php do_action('largo_after_post_content'); ?>
<footer class="post-meta bottom-meta">
<?php
if ( of_get_option( 'social_icons_display' ) === 'btm' || of_get_option( 'social_icons_display' ) === 'both' )
largo_post_social_links();
?>
<!-- Other posts in this series -->
<?php if ( largo_post_in_series() ): ?>
<div class="labels clearfix">
<h5><?php _e('More In This Series', 'largo'); ?></h5>
<?php largo_the_series_list(); ?>
</div>
<?php endif; ?>
<!-- Post tags -->
<?php if ( largo_has_categories_or_tags() && of_get_option( 'show_tags' ) ): ?>
<div class="tags clearfix">
<h5><?php _e('Filed Under:', 'largo'); ?></h5>
<ul>
<?php largo_categories_and_tags( of_get_option( 'tag_limit' ), true, true, true, '', 'li' ); ?>
</ul>
</div>
<?php endif; ?>
<?php if ( of_get_option( 'clean_read' ) === 'footer' ) : ?>
<div class="clean-read-container clearfix">
<a href="#" class="clean-read"><?php _e("View as 'Clean Read'", 'largo') ?></a>
</div>
<?php endif; ?>
<?php
// Author bio and social links
if ( largo_show_author_box() )
get_template_part( 'largo-author-box' );
// Related posts
if ( of_get_option( 'show_related_content' ) )
get_template_part( 'largo-related-posts' );
?>
</footer><!-- /.post-meta -->
<?php do_action('largo_after_post_footer'); ?>
</article><!-- #post-<?php the_ID(); ?> -->
<?php if ( of_get_option( 'show_next_prev_nav_single' ) )
largo_content_nav( 'single-post-nav-below' );
?>