SHARE
TWEET

sidebar-two.php

a guest Nov 8th, 2012 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. * The Sidebar 2 for display in the content page.
  4. * Is only called by header.php or footer.php if the sidebar is needed, so no checking is required!
  5. *
  6. * @package Graphene
  7. * @since graphene 1.0
  8. */
  9. global $graphene_settings;
  10. ?>
  11.  
  12. <div id="sidebar2" <?php graphene_grid( 'sidebar', 1, 5, 4 ); ?>>
  13.  
  14. <?php do_action('graphene_before_sidebar2'); ?>
  15.  
  16. <?php /* Widgetized sidebar, if supported. */
  17. if (!is_front_page() && is_active_sidebar('sidebar-two-widget-area')) { // Not home, display normal sidebar if active
  18. dynamic_sidebar('sidebar-two-widget-area');
  19.  
  20. } elseif (is_front_page() && !$graphene_settings['alt_home_sidebar'] && is_active_sidebar('sidebar-two-widget-area')) { // Home, but alternate sidebar disabled, display normal sidebar if active
  21. dynamic_sidebar('sidebar-two-widget-area');
  22. } elseif (is_front_page() && $graphene_settings['alt_home_sidebar'] && is_active_sidebar('home-sidebar-two-widget-area')) { // Home, alternate sidebar enabled, display alternate sidebar if active
  23. dynamic_sidebar('home-sidebar-two-widget-area');
  24. } else { // Display the default unwidgetised sidebar otherwise ?>
  25.  
  26. <?php /* Author information is disabled per default. Uncomment and fill in your details if you want to use it.
  27.  
  28. <h3>About the author</h3>
  29. <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
  30.  
  31. */ ?>
  32.  
  33. <?php } ?>
  34.  
  35. <?php wp_meta(); ?>
  36.  
  37. <?php do_action('graphene_after_sidebar2'); ?>
  38.  
  39. </div><!-- #sidebar2 -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top