/
sidebar-1.php
41 lines (41 loc) · 942 Bytes
/
sidebar-1.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
<?php
/**
* sidebar-1 for our theme.
*
*
*
* @package: obandes
* @since obandes 0.1
*/
?>
<nav class="yui-b" id="toc">
<?php if( obandes_get_condition('letter-width') !== 'doc3' ){ ?>
<div class="wrap-toggle">
<span id="nav-toggle">1col</span>
</div>
<?php } ?>
<ul class="nav-toggle">
<?php if ( dynamic_sidebar('sidebar-1') ) : else : ?>
<?php wp_list_pages('title_li=<h3 class="widget-title h3">'.__('Pages','obandes').'</h3>' ); ?>
<li>
<h3 class="widget-title h3">Archives</h3>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php wp_list_categories('show_count=0&title_li=<h3 class="widget-title h3">'.__('Categories','obandes').'</h3>'); ?>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<li>
<h3 class="widget-title h3"><?php _e("Meta",'obandes');?></h3>
<ul>
<?php wp_register(); ?>
<li>
<?php wp_loginout(); ?>
</li>
<?php wp_meta(); ?>
</ul>
</li>
<?php } ?>
<?php endif; ?>
</ul>
</nav>