-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
30 lines (24 loc) · 830 Bytes
/
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
<?php
/**
* Single post template.
*
* @package lightseek
*/
get_header();
do_action('lightseek_template_start');
?>
<div class="row">
<?php echo ( SeekConfig::SIDEBAR && is_active_sidebar('sidebar') ) ? '<div class="col-md-' . ( 24 - SeekConfig::SIDEBAR_W ) . '">' : '<div class="col-md-24">' ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'modules/content', 'single' ) ?>
<?php lightseek_post_navigation() ?>
<?php if ( comments_open() || get_comments_number() ) comments_template() ?>
<?php endwhile ?>
<?php endif ?>
<?php echo '</div>'; // closing the conditional tag ?>
<?php if ( SeekConfig::SIDEBAR && is_active_sidebar('sidebar') ) get_sidebar() ?>
</div>
<?php
do_action('lightseek_template_end');
get_footer();