forked from roots/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-subpages.php
35 lines (35 loc) · 1.1 KB
/
page-subpages.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
<?php
/*
Template Name: List Subpages
*/
get_header(); ?>
<?php roots_content_before(); ?>
<div id="content" class="<?php echo $roots_options['container_class']; ?>">
<?php roots_main_before(); ?>
<div id="main" class="<?php echo $roots_options['main_class']; ?>" role="main">
<div class="container">
<?php roots_loop_before(); ?>
<?php get_template_part('loop', 'page'); ?>
<?php roots_loop_after(); ?>
<?php
$children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
if ($children) { ?>
<ul>
<?php echo $children; ?>
</ul>
<?php } ?>
</div>
</div><!-- /#main -->
<?php roots_main_after(); ?>
<?php roots_sidebar_before(); ?>
<aside id="sidebar" class="<?php echo $roots_options['sidebar_class']; ?>" role="complementary">
<?php roots_sidebar_inside_before(); ?>
<div class="container">
<?php get_sidebar(); ?>
</div>
<?php roots_sidebar_inside_after(); ?>
</aside><!-- /#sidebar -->
<?php roots_sidebar_after(); ?>
</div><!-- /#content -->
<?php roots_content_after(); ?>
<?php get_footer(); ?>