-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
executable file
·53 lines (34 loc) · 1.19 KB
/
home.php
File metadata and controls
executable file
·53 lines (34 loc) · 1.19 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
<?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" aria-labelledby="page-title-start" role="region">
<h1 class="page-title"><?php echo is_front_page() ? __('Start', 'wally-theme') : __('Artiklar', 'wally-theme') ?></h1>
<h2>Senaste artiklarna</h2>
<?php
do_action("wally_before_post_loop");
// Start the loop
if(have_posts()): while(have_posts()): the_post();
get_template_part('parts/posts/loop');
// End the 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 wp_reset_postdata();
endif;
do_action("wally_after_post_loop");
?>
</section>
<?php if($sidebar_location === 'right') {get_sidebar();} ?>
</div>
</div>
<?php get_footer() ?>