forked from KeywordDomains/Lehti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·54 lines (42 loc) · 971 Bytes
/
index.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
<?php
get_header();
if (have_posts()): ?>
<?php
$boloday = get_option('boloday');
?>
<?php
if(@$boloday[6] == 'multiple') {
get_template_part('feature', 'multiple');
} else {
get_template_part('feature', $boloday[3]);
}
?>
<div id="main" role="main">
<section id="content" class="hfeed">
<div class="parent">
<?php get_template_part('loop', 'main'); ?>
</div>
<div id="pagination">
<?php echo paginate_links( array(
'base' => home_url().'%_%',
'format' => '/page/%#%/',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages,
'type' => 'list',
'prev_text' => __('« Previous', 'boloday'),
'next_text' => __('Next »', 'boloday')
) ); ?>
</div>
</section>
<aside id="sidebar">
<?php get_sidebar(); ?>
</aside>
</div>
<?php else: ?>
<p><?php _e('Sorry, no posts matched your criteria.', 'boloday'); ?></p>
<?php
endif;
?>
<?php
get_footer();
?>