This repository was archived by the owner on Sep 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsidebar.php
149 lines (127 loc) · 4.63 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<div id="supplementary">
<div class="meta">
<?php if (is_home() || is_page()) {?>
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<!--<li>
<h3>About</h3>
<p>Uncomment this section if you want to put some information about you or the site here</p>
</li>-->
<li>
<h3>Categories</h3>
<ul id="categories">
<?php wp_list_categories('orderby=name&title_li='); ?>
</ul>
</li>
<li>
<h3>Archives</h3>
<ul id="archives">
<?php wp_get_archives('format=html'); ?>
</ul>
</li>
<?php endif; ?>
</ul>
<?php } elseif (is_single()) { ?>
<div class="post_nav">
<h3>What's this?</h3>
<p>You are currently reading <strong><?php the_title(); ?></strong> at
<a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>.</p>
<h3>meta</h3>
<ul class="single_post_meta">
<li><strong>Author:</strong> <?php the_author(); ?></li>
<li><strong>Comments: </strong><?php comments_number('No Comments', '1 Comment', '% Comments' );?></li>
<li><strong>Categories:</strong> <?php the_category(', ') ?></li>
</ul>
<p class="edit"><?php edit_post_link('Edit', '', ''); ?></p>
</div>
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
</ul>
<?php } elseif (is_category()) { ?>
<div class="post_nav">
<h3>Where Am I?</h3>
<p>You are currently browsing the <strong><?php single_cat_title(''); ?></strong> category at
<a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>.</p>
<div class="spacer"></div>
</div>
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
</ul>
<?php } elseif (is_tag()) { ?>
<div class="post_nav">
<h3>Where Am I?</h3>
<p>You are currently browsing entries tagged with <strong><?php single_tag_title(); ?></strong> at
<a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?>.</p>
<div class="spacer"></div>
</div>
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
</ul>
<?php } elseif (is_month()) { ?>
<div class="post_nav">
<h3>Where am I?</h3>
<p>You are currently viewing the archives for <strong><?php the_time('F, Y'); ?></strong> at <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>.</p>
<div class="spacer"></div>
</div>
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
</ul>
<?php } elseif (is_year ()) { ?>
<div class="post_nav">
<h3>Where am I?</h3>
<p>You are currently viewing the archives for <strong><?php the_time('Y'); ?></strong> at <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>.</p>
<div class="spacer"></div>
</div>
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
</ul>
<?php } elseif (is_day()) { ?>
<div class="post_nav">
<h3>Where am I?</h3>
<p>You are currently viewing the archives for <strong><?php the_time('l, F jS, Y'); ?></strong> at <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>.</p>
<div class="spacer"></div>
</div>
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
</ul>
<?php } elseif (is_search()) {?>
<div class="post_nav">
<h3>Search Results</h3>
<p>You are currently viewing the search results for <strong><?php the_search_query(); ?></strong>.</p>
<div class="spacer"></div>
</div>
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
</ul>
<?php } elseif (is_page('about')) {?>
<div class="post_nav">
<h3>Blogroll</h3>
<ul>
<?php wp_list_bookmarks('categorize=0&title_li=0&title_after=&title_before=');?>
</ul>
</div>
<ul>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
</ul>
<?php } elseif (is_page('contact')) {?>
<?php } ?>
</div> <!-- close meta -->
</div> <!-- close supplementary -->
</div> <!-- close content -->