Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Primary sidebar
- */
- ?>
- <?php if (of_get_option('pkb_subpages_nav') == '1') { ?>
- <!--Sub pages nav begin-->
- <?php if($post->post_parent) {
- $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
- }
- else {
- $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
- }
- if ($children) { ?>
- <ul id="submenu" class="shadow-light">
- <?php echo $children; ?>
- </ul>
- <?php } ?>
- <?php } ?>
- <!--Sub pages nav end-->
- <!--Widget begin-->
- <?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
- <?php get_search_form(); ?>
- <div class="sidebar-widget widget_archive">
- <div class="minimal">
- <h4 class="replace"><?php _e( 'Archives', 'peekaboo' ); ?></h4>
- <ul class="reg-item">
- <?php wp_get_archives( 'type=monthly' ); ?>
- </ul>
- </div>
- </div>
- <div class="sidebar-widget widget_meta">
- <div class="minimal">
- <h4 class="replace"><?php _e( 'Meta', 'peekaboo' ); ?></h4>
- <ul class="reg-item">
- <?php wp_register(); ?>
- <li><?php wp_loginout(); ?></li>
- <?php wp_meta(); ?>
- </ul>
- </div>
- </div>
- <!--Widget end-->
- <?php endif; // end primary widget area ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement