Advertisement
Ronnie_Fantastic

sidebar-default.php

Oct 29th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. <?php
  2. if ( !theme_dynamic_sidebar( 'default' ) ) : ?>
  3. <?php $style = theme_get_option('theme_sidebars_style_default'); ?>
  4. <?php $heading = theme_get_option('theme_'.(is_single()?'single':'posts').'_widget_title_tag'); ?>
  5.  
  6. <?php ob_start();?>
  7. <?php get_search_form(); ?>
  8. <?php theme_wrapper($style, array('title' => __('Search', THEME_NS), 'heading' => $heading, 'content' => ob_get_clean())); ?>
  9.  
  10. <?php ob_start();?>
  11. <ul>
  12. <?php wp_list_categories('show_count=1&title_li='); ?>
  13. </ul>
  14. <?php theme_wrapper($style, array('title' => __('Categories', THEME_NS), 'heading' => $heading, 'content' => ob_get_clean())); ?>
  15.  
  16. <?php ob_start();?><?php
  17. echo theme_get_menu(array(
  18. 'source' => theme_get_option('theme_vmenu_source'),
  19. 'depth' => theme_get_option('theme_vmenu_depth'),
  20. 'class' => 'art-vmenu'
  21. )
  22. );
  23. ?>
  24. <?php theme_wrapper('vmenu', array('title' => '', 'heading' => $heading, 'content' => ob_get_clean())); ?>
  25.  
  26. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement