-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
77 lines (63 loc) · 2.61 KB
/
archive.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();
global $wp_query;
?>
<div class="<?php echo ( 1 == Nova_OP::getOption('blog_wide_layout') ) ? 'nova-container-fluid' : 'nova-container' ?>">
<div class="site-content">
<div class="blog-listing sidebar-status">
<div class="grid-x">
<?php if ( 1 == Nova_OP::getOption('blog_sidebar') && is_active_sidebar( 'blog-widget-area' ) && 'left' == Nova_OP::getOption('blog_sidebar_position') ) : ?>
<div id="sidebar_primary" class="nova-sidebar cell small-12 xlarge-3 large-4">
<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_sidebar') && is_active_sidebar( 'blog-widget-area' ) ) ? 'xlarge-9 large-8' : 'large-12' ?> site-main-content-wrapper">
<div class="site-main-content">
<?php get_template_part( 'template-parts/global/page-header' ) ?>
<div class="blog-articles">
<?php
if ( have_posts() ) {
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'archive' ) ) {
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content/content');
endwhile;
}
}else {
get_template_part( 'template-parts/content/content', 'none' );
}
?>
</div>
<?php
the_posts_navigation(array(
'prev_text' => esc_html__( 'Older posts', 'trikon' ),
'next_text' => esc_html__( 'Newer posts', 'trikon' ),
));
?>
</div>
</div>
<?php if ( 1 == Nova_OP::getOption('blog_sidebar') && is_active_sidebar( 'blog-widget-area' ) && 'right' == Nova_OP::getOption('blog_sidebar_position') ) : ?>
<div id="sidebar_primary" class="nova-sidebar cell small-12 xlarge-3 larger-4">
<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>
<?php get_footer();