-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·37 lines (32 loc) · 1.51 KB
/
index.php
File metadata and controls
executable file
·37 lines (32 loc) · 1.51 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
<?php get_header() ?>
<div class="container">
<div class="row">
<?php
$sidebar_location = fw_get_db_customizer_option('sidebar_setting');
if($sidebar_location === 'left') {get_sidebar();}
?>
<section id="site-content" class="site-content" role="region" aria-labelledby="page-title-articles" data-paginate>
<h1 id="page-title-articles"><?php _e('Artiklar', 'wally-theme') ?></h1>
<?php
do_action("wally_before_post_loop");
if(have_posts()):
while(have_posts()): the_post();
get_template_part('parts/posts/loop');
endwhile;
?>
<div class="pagination" id="pagination" data-pagination="<?php echo $post->ID ?>">
<?php the_posts_pagination(array(
'prev_text' => __( 'Föregående sida', 'wally-theme'),
'next_text' => __( 'Nästa sida', 'wally-theme'),
'screen_reader_text' => __( 'Sidnavigation' ),
)) ?>
</div>
<?php
endif;
do_action("wally_after_post_loop");
?>
</section>
<?php if($sidebar_location === 'right') {get_sidebar();} ?>
</div>
</div>
<?php get_footer() ?>