wp_blog/wp-content/themes/nuzi/sidebar.php

24 lines
986 B
PHP
Raw Normal View History

2020-01-02 23:15:16 +07:00
<?php
$align = "right";
if(is_singular() && get_metabox("layout")=="left")
$align = "left";
?>
<div class="span3 <?php echo $align;?>-sidebar">
<section id="sidebar">
<?php
if(!dynamic_sidebar(get_metabox("custom_sidebar")!="" ? get_metabox("custom_sidebar") : 'default-sidebar')) {
print 'There is no widget. You should add your widgets into <strong>';
print 'Default';
print '</strong> sidebar area on <strong>Appearance => Widgets</strong> of your dashboard. <br/><br/>';
?>
<aside id="archives" class="widget">
<h3 class="widget-title">
<?php _e('Archives', 'themewaves'); ?>
</h3>
<ul class="side-nav">
<?php wp_get_archives(array('type' => 'monthly')); ?>
</ul>
</aside>
<?php } ?>
</section>
</div>