This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

sidebar.php

By: a guest on Feb 2nd, 2012  |  syntax: PHP  |  size: 0.54 KB  |  views: 58  |  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. /**
  3.  * The Sidebar containing widget areas.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Amplifier
  7.  */
  8. ?>
  9.  
  10.         <div id="primary" class="widget-area" role="complementary">
  11.        
  12.                 <ul class="xoxo">
  13.                        
  14.                         <?php if ( is_active_sidebar( 'general-widgets' ) ) : // check if there are widgets in the 'genderal widgets' sidebar ?>
  15.  
  16.                         <?php dynamic_sidebar( 'general-widgets' ); // display 'general widgets' ?>
  17.                                                
  18.                         <?php else : // if no 'general widgets' do nada  ?>
  19.        
  20.                         <?php endif; // end 'general widgets' check ?>
  21.                        
  22.                 </ul>
  23.                
  24.         </div>
clone this paste RAW Paste Data