-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.php
More file actions
executable file
·25 lines (23 loc) · 1016 Bytes
/
sitemap.php
File metadata and controls
executable file
·25 lines (23 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php /* Template Name: Webbplatskarta */ ?>
<?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-sitemap">
<?php while (have_posts()) : the_post() ?>
<div <?php post_class('article-box') ?> id="post-<?php the_ID() ?>">
<header class="article-box__header">
<h1 id="page-title-sitemap"><?php the_title() ?></h1>
</header>
<div class="article-box__content">
<?php wp_list_pages(array('title_li' => false)) ?>
</div>
</div>
<?php endwhile ?>
</section>
<?php if($sidebar_location === 'right') {get_sidebar();} ?>
</div>
</div>
<?php get_footer() ?>