-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-submission.php
51 lines (37 loc) · 1.78 KB
/
template-submission.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
<?php
/*
Template Name: Mission SubPage
*/
?>
<?php get_header(); ?>
<?php global $woo_options; ?>
<div id="content" class="page col-full">
<div id="main" class="col-left subnav">
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<div id="breadcrumb"><p>','</p></div>'); } ?>
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $count++; ?>
<div id="subnav">
<ul class="nav fl">
<?php wp_list_pages( array( 'include' => $post->post_parent, 'title_li'=> '' ) ); ?>
<?php wp_list_pages( array( 'depth' => 1, 'child_of' => $post->post_parent, 'title_li'=> '' ) ); ?>
</ul>
</div>
<div class="post">
<div class="entry">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
</div><!-- /.entry -->
<?php edit_post_link( __('{ Edit }', 'woothemes'), '<span class="small">', '</span>' ); ?>
</div><!-- /.post -->
<?php $comm = $woo_options['woo_comments']; if ( ($comm == "page" || $comm == "both") ) : ?>
<?php comments_template(); ?>
<?php endif; ?>
<?php endwhile; else: ?>
<div class="post">
<p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
</div><!-- /.post -->
<?php endif; ?>
</div><!-- /#main -->
<?php get_sidebar(); ?>
</div><!-- /#content -->
<?php get_footer(); ?>