Want more features on Pastebin? Sign Up, it's FREE!
Guest

sidebar-default.php

By: Ronnie_Fantastic on Oct 29th, 2012  |  syntax: None  |  size: 0.97 KB  |  views: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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; ?>
clone this paste RAW Paste Data