forked from CherryFramework/CherryFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
33 lines (29 loc) · 951 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
<?php
/**
* Sidebar Name: Static Sidebar
*/
?>
<?php if ( ! dynamic_sidebar( theme_locals("sidebar") )) : ?>
<div id="sidebar-search" class="widget">
<?php echo '<h3>' . theme_locals("search") . '</h3>'; ?>
<?php get_search_form(); ?> <!-- outputs the default Wordpress search form-->
</div>
<div id="sidebar-nav" class="widget menu">
<?php echo '<h3>' . theme_locals("navigation") . '</h3>'; ?>
<?php wp_nav_menu( array('menu' => 'Sidebar Menu' )); ?> <!-- editable within the Wordpress backend -->
</div>
<div id="sidebar-archives" class="widget">
<?php echo '<h3>' . theme_locals("archives") . '</h3>'; ?>
<ul>
<?php wp_get_archives( 'type=monthly' ); ?>
</ul>
</div>
<div id="sidebar-meta" class="widget">
<?php echo '<h3>' . theme_locals("meta") . '</h3>'; ?>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</div>
<?php endif; ?>