-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
77 lines (59 loc) · 2.51 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
<?php get_header(); ?>
<div class="nova-container">
<div class="grid-x">
<div class="cell small-12">
<div class="site-content single_post_content sidebar-status">
<div class="grid-x">
<?php if ( 1 == Nova_OP::getOption('blog_single_sidebar') && is_active_sidebar( 'blog-widget-area' ) && 'left' == Nova_OP::getOption('blog_single_sidebar_position') ) : ?>
<div id="sidebar_primary" class="nova-sidebar cell small-12 large-3">
<div class="nova-sidebar__overlay js-sidebar-toogle"></div>
<div class="nova-sidebar__container">
<a class="nova-sidebar__toggle js-sidebar-toogle" href="javascript:void(0)"></a>
<div class="woocommerce-sidebar-sticky sidebar-scrollable">
<?php if (is_active_sidebar( 'blog-widget-area' )) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="cell small-12 <?php echo ( 1 == Nova_OP::getOption('blog_single_sidebar') && is_active_sidebar( 'blog-widget-area' ) ) ? 'large-9' : 'large-12' ?> site-main-content-wrapper">
<div class="site-main-content">
<?php
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'single' ) ) {
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content/content', 'single' );
endwhile; // End of the loop.
}
?>
<?php if ( comments_open() || get_comments_number() ) : ?>
<div class="single-comments-container">
<div class="single-comments-row">
<div class="single-post-comment-wrap">
<?php comments_template(); ?>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php if ( 1 == Nova_OP::getOption('blog_single_sidebar') && is_active_sidebar( 'blog-widget-area' ) && 'right' == Nova_OP::getOption('blog_single_sidebar_position') ) : ?>
<div id="sidebar_primary" class="nova-sidebar cell small-12 large-3">
<div class="nova-sidebar__overlay js-sidebar-toogle"></div>
<div class="nova-sidebar__container">
<a class="nova-sidebar__toggle js-sidebar-toogle" href="javascript:void(0)"></a>
<div class="woocommerce-sidebar-sticky sidebar-scrollable">
<?php if (is_active_sidebar( 'blog-widget-area' )) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php
get_footer();