AndrzejL

Sidebar-right

Jun 21st, 2014
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Sidebar containing the primary and secondary widget areas.
  4. *
  5. * @package Cryout Creations
  6. * @subpackage tempera
  7. * @since tempera 0.5
  8. */
  9.  
  10. /* This retrieves admin options. */
  11. $temperas = tempera_get_theme_options();
  12. foreach ($temperas as $key => $value) { ${"$key"} = esc_attr($value); }
  13. ?>
  14. <div id="secondary" class="widget-area sidey" role="complementary">
  15. <?php cryout_before_primary_widgets_hook(); ?>
  16.  
  17. <ul class="xoxo">
  18. <?php if($tempera_socialsdisplay2) { ?>
  19. <li id="socials-left" class="widget-container">
  20. <?php tempera_smenur_socials(); ?>
  21. </li>
  22. <?php } ?>
  23. <?php if (is_active_sidebar('right-widget-area')): dynamic_sidebar( 'right-widget-area' );
  24. else: ?>
  25. <li class="widget-container widget-placeholder">
  26. <h3 class="widget-title"><?php _e('Right Sidebar','tempera'); ?></h3>
  27. <p><?php
  28. printf( __('You currently have no widgets set in the right sidebar. You can add widgets via the <a href="%s">Dasboard</a>.','tempera'),esc_url( admin_url()."widgets.php") ); echo "<br/>";
  29. printf( __('To hide this sidebar, switch to a different Layout via the <a href="%s">Theme Settings</a>.','tempera'), esc_url( admin_url()."themes.php?page=tempera-page") );
  30. ?></p>
  31. </li>
  32. <?php endif; ?>
  33. </ul>
  34.  
  35. <?php cryout_after_primary_widgets_hook(); ?>
  36.  
  37. </div>
Advertisement
Add Comment
Please, Sign In to add comment