-
Notifications
You must be signed in to change notification settings - Fork 3
/
single.php
94 lines (61 loc) · 2.32 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
92
93
94
<?php
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package videobuzz
*/
get_header();
if ( 'video' === get_post_format() ) :
get_template_part( 'template-parts/content', 'video' );
endif; ?>
<div class="container">
<section class="content">
<div class="row">
<div class="<?php print is_active_sidebar( 'sidebar-1' ) ? 'col-sm-8' : 'col-sm-12'; ?>">
<main class="main" role="main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', 'single' );
endwhile; // End of the loop. ?>
<hr>
<div class="about-author">
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), 60, null, null, array( 'class' => array( 'img-responsive', 'img-circle' ) ) ); ?>
</div>
<div class="author-info">
<h5><?php echo _e( 'About The Author', 'videobuzz' ); ?></h5>
<span>
<?php the_author_posts_link(); ?> - <?php the_author_meta( 'description' ); ?>
</span>
</div>
</div><!--/about-author-->
<hr>
<div class="nav-links">
<div class="row">
<div class="col-xs-6">
<div class="nav-previous">
<?php previous_post_link( '<div class="nav-previous">%link</div>', _x( '<span class="meta-nav">←</span> %title', 'Previous post link', 'videobuzz' ) ); ?>
</div>
</div>
<div class="clearfix mb-15 visible-xs"></div>
<div class="col-xs-6">
<div class="nav-next">
<?php next_post_link( '<div class="nav-next">%link</div>', _x( '%title <span class="meta-nav">→</span>', 'Next post link', 'videobuzz' ) ); ?>
</div>
</div>
</div>
</div><!-- .nav-links -->
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif; ?>
</main><!-- .main -->
</div><!-- .col -->
<?php get_sidebar(); ?>
</div><!-- .row -->
</section><!-- .content -->
</div><!-- .container -->
<?php get_footer(); ?>