-
Notifications
You must be signed in to change notification settings - Fork 2
/
sidebar.php
56 lines (30 loc) · 934 Bytes
/
sidebar.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
52
53
54
55
56
<!-- Begin new Subnav -->
<!-- Begin Sidebar -->
<div id="sidebar">
<?php if (is_page()) : ;?>
<h2><?php echo get_the_title($post->post_parent); // get the gateway page title
?></h2>
<ul>
<?php if ($post->post_parent) {
wp_list_pages(array('child_of' => $post->post_parent,'title_li' => '',));
} else {
wp_list_pages(array('child_of' => $post->ID,'title_li' => '',));
}
?>
</ul>
<?php endif; ?>
<?php if(!(is_page())) : ?>
<h3>Blog</h3>
<ul>
<?php wp_list_categories(array('title_li' => ''));?>
</ul>
<?php endif; ?>
<!--Begin Pullquote-->
<?php if(get_post_meta($post->ID, 'Quote', true)) : ?>
<blockquote><?php echo get_post_meta($post->ID, 'Quote', true); ?></blockquote>
<?php endif; ?>
<!--End Pullquote-->
<!--Begin dynamic sidebar-->
<?php dynamic_sidebar(); ?>
<!--End dynamic sidebar-->
</div> <!--End sidebar-->