-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
91 lines (76 loc) · 2.94 KB
/
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
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* The single.php file.
*
* Displays content for a single blog post
*
* @package Best_Reloaded
* @since Best Reloaded v0.1
*/
?>
<?php get_header(); ?>
<?php
// This is the hook used to add featurebar content.
best_reloaded_do_featurebar();
best_reloaded_do_before_main_content_row()
// open he main row div and do the laout selection actions.
?>
<div <?php best_reloaded_do_layout_selection(); ?>>
<?php best_reloaded_do_breadcrumbs(); ?>
<div class="col-md-8">
<div id="main_content" role="main">
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<h2 class="page-title"><?php the_title(); ?></h2>
<?php best_reloaded_do_post_meta(); ?>
<ul class="prev-next-single pager clearfix">
<li class="previous"><?php previous_post_link( '%link', '← ' . esc_html__( 'Previous Post', 'best-reloaded' ) ); ?></li>
<li class="next"><?php next_post_link( '%link', esc_html__( 'Next Post', 'best-reloaded' ) . ' →' ); ?></li>
</ul>
<div id="social">
<div id="social-block">
<?php
if ( function_exists( 'sharing_display' ) ) {
sharing_display( '', true );
}
if ( class_exists( 'Jetpack_Likes' ) ) {
$jp_likes = new Jetpack_Likes();
// all user input escaped by jetpack in the class.
echo $jp_likes->post_likes( '' ); // xss ok.
}
?>
</div>
</div>
<?php if ( is_active_sidebar( 'before-post-widgets' ) || ( true === get_post_meta( $post->ID, 'ofo', true ) && true === get_post_meta( $post->ID, 'ofo-text', true ) ) ) { ?>
<div id="featured-block-postopen" class="featured-bar featured-bar-post">
<?php get_template_part( 'inc/parts/featured', 'post-open' ); ?>
</div>
<?php } ?>
<?php the_content(); ?>
<?php the_tags( '<span class="post-tags"><span class="meta">' . esc_html__( 'Tags: ', 'best-reloaded' ) . '</span> ', ' ', '</span>' ); ?>
<?php if ( is_active_sidebar( 'after-post-widgets' ) ) { ?>
<div id="featured-block-postclose" class="featured-bar featured-bar-post">
<?php get_template_part( 'inc/parts/featured', 'post-close' ); ?>
</div>
<?php } ?>
<?php
wp_link_pages(
array(
'before' => '<hr class="hr-row-divider"><p class="wp-link-pages hero-p">' . esc_html__( 'Continue Reading: ', 'best-reloaded' ),
'after' => '</p>',
)
);
?>
<?php endwhile; else : ?>
<p class="hero-p no-content-message"><?php esc_html_e( 'There is currently nothing to display.', 'best-reloaded' ); ?></p>
<?php endif; ?>
</div><!-- end #main_content -->
<hr class="hr-row-divider">
<?php comments_template(); ?>
</div><!-- end .col-md-8 -->
<?php get_sidebar( 'main' ); ?>
</div><!-- end .row -->
<?php get_footer(); ?>