-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
67 lines (34 loc) · 1.71 KB
/
index.php
File metadata and controls
67 lines (34 loc) · 1.71 KB
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
<?php // Exit if accessed directly
if (!defined('ABSPATH')) {echo '<h1>Forbidden</h1>'; exit();} ?>
<?php get_header();?>
<section class="page-section with-sidebar">
<div class="container">
<div class="row">
<?php if(esc_attr($bella_options['page-layout'])=='1'): ?>
<aside class="col-md-3 sidebar" id="sidebar">
<?php get_sidebar(); ?>
</aside>
<?php endif;?>
<div class="col-md-9 content" id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('partials/article'); ?>
<?php endwhile; ?>
<?php if ($wp_query->max_num_pages>1) : ?>
<?php bella_pagination(); ?>
<?php endif; ?>
<?php else : ?>
<?php get_template_part('partials/nothing-found'); ?>
<?php endif; ?>
</div>
<?php if(esc_attr($bella_options['page-layout'])=='2'): ?>
<?php if ( is_active_sidebar( 'bella-widgets-aside-right' ) ) { ?>
<aside class="col-md-3 sidebar" id="sidebar">
<?php dynamic_sidebar( 'bella-widgets-aside-right' ); ?>
</aside>
<?php } ?>
<?php endif;?>
</div>
</div>
</section>
<?php get_footer(); ?>