forked from VisualComposer/visual-composer-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
76 lines (74 loc) · 2.69 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
<?php
/**
* Single
*
* @package WordPress
* @subpackage Visual Composer Starter
* @since Visual Composer Starter 1.0
*/
get_header();
// Start the loop.
while ( have_posts() ) :
the_post();
?>
<div class="<?php echo esc_attr( visualcomposerstarter_get_content_container_class() ); ?>">
<div class="content-wrapper">
<div class="row">
<div class="col-md-12">
<div class="main-content">
<article class="entry-full-content">
<div class="row">
<div class="<?php echo esc_attr( visualcomposerstarter_get_maincontent_block_class() ); ?>">
<div class="col-md-2">
<?php
get_template_part( 'template-parts/biography' );
?>
</div><!--.col-md-2-->
<div class="col-md-10">
<?php
visualcomposerstarter_single_meta();
get_template_part( 'template-parts/content', 'single' );
if ( is_singular( 'post' ) ) : ?>
<div class="nav-links post-navigation">
<div class="row">
<div class="col-md-5">
<div class="nav-previous">
<?php
previous_post_link(
'%link',
'<span class="meta-nav">' . esc_html__( 'Previous', 'visual-composer-starter' ) . '</span><span class="screen-reader-text">' . esc_html__( 'Previous post:', 'visual-composer-starter' ) . '</span><span class="post-title">%title</span>'
);
?>
</div><!--nav-previous-->
</div><!--.col-md-5-->
<div class="col-md-5 col-md-offset-2">
<div class="nav-next">
<?php
next_post_link(
'%link',
'<span class="meta-nav">' . esc_html__( 'Next', 'visual-composer-starter' ) . '</span><span class="screen-reader-text">' . esc_html__( 'Next post:', 'visual-composer-starter' ) . '</span><span class="post-title">%title</span>'
);
?>
</div><!--.nav-next-->
</div><!--.col-md-5-->
</div><!--.row-->
</div><!--.nav-links post-navigation-->
<?php endif; ?>
</div><!--.col-md-10-->
</div><!--.<?php echo esc_html( visualcomposerstarter_get_maincontent_block_class() ); ?>-->
<?php if ( visualcomposerstarter_get_sidebar_class() ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div><!--.row-->
</article><!--.entry-full-content-->
</div><!--.main-content-->
</div>
</div><!--.row-->
</div><!--.content-wrapper-->
</div><!--.<?php echo esc_html( visualcomposerstarter_get_content_container_class() ); ?>-->
<?php if ( comments_open() || get_comments_number() ) {
comments_template();
}
// End of the loop.
endwhile;
get_footer();