Advertisement
Guest User

[Spun] sidebar.php

a guest
Sep 12th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.41 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Sidebar containing the main widget areas.
  4.  *
  5.  * @package Spun
  6.  * @since Spun 1.0
  7.  */
  8. ?>
  9.         <?php if ( is_active_sidebar( 'sidebar-1' )
  10.                 || is_active_sidebar( 'sidebar-2' )
  11.                 || is_active_sidebar( 'sidebar-3' ) ) : ?>
  12.             <span class="sidebar-link">
  13.                 <a href="#">
  14.                     <?php echo _x( '+ <span>Add a comment</span>', 'Open sidebar', 'spun' ); ?>
  15.                 </a>
  16.             </span>
  17.         <?php endif; ?>
  18.         <div id="secondary" class="widget-area" role="complementary">
  19.  
  20.             <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
  21.                 <?php do_action( 'before_sidebar' ); ?>
  22.                 <div class="widget-column <?php spun_count_sidebars(); ?>">
  23.                     <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
  24.                     <?php endif; // end sidebar widget area ?>
  25.                 </div>
  26.             <?php endif; ?>
  27.             <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
  28.                 <?php do_action( 'before_sidebar' ); ?>
  29.                 <div class="widget-column <?php spun_count_sidebars(); ?>">
  30.                     <?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?>
  31.                     <?php endif; // end sidebar widget area ?>
  32.                 </div>
  33.             <?php endif; ?>
  34.             <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
  35.                 <?php do_action( 'before_sidebar' ); ?>
  36.                 <div class="widget-column <?php spun_count_sidebars(); ?>">
  37.                     <?php if ( ! dynamic_sidebar( 'sidebar-3' ) ) : ?>
  38.                     <?php endif; // end sidebar widget area ?>
  39.                 </div>
  40.             <?php endif; ?>
  41.  
  42.         </div><!-- #secondary .widget-area -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement