1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Paradise
  5. */
  6. global $_theme_side_sidebar;
  7. ?>
  8. <!-- Sidebar -->
  9. <div id="sidebar">
  10. <?php if ($_theme_side_sidebar == 'disable' || !dynamic_sidebar($_theme_side_sidebar)): ?>
  11. <div class="widget-container widget_search">
  12. <h3><?php _e('Search', TEMPLATENAME); ?></h3>
  13. <?php get_search_form(); ?>
  14. </div>
  15.  
  16. <div class="widget-container widget_archive">
  17. <h3><?php _e( 'Archives', TEMPLATENAME ); ?></h3>
  18. <ul>
  19. <?php wp_get_archives( 'type=monthly' ); ?>
  20. </ul>
  21. </div>
  22.  
  23. <div class="widget-container widget_meta">
  24. <h3><?php _e( 'Meta', TEMPLATENAME ); ?></h3>
  25. <ul>
  26. <?php wp_register(); ?>
  27. <li><?php wp_loginout(); ?></li>
  28. <?php wp_meta(); ?>
  29. </ul>
  30. </div>
  31. <?php endif; ?>
  32. </div>
  33. <!-- End Sidebar -->
  34. <script type="text/javascript">
  35. jQuery(window).load(function() {
  36. var offset = jQuery('#sidebar').height();
  37. jQuery('#content > .box').each(function(index) {
  38. offset -= this.offsetHeight + parseInt(jQuery(this).css('margin-top')) + parseInt(jQuery(this).css('margin-bottom'));
  39. });
  40. if (offset > 0)
  41. jQuery('#content .box:last-child').height(jQuery('#content .box:last-child').height() + offset);
  42. });
  43. </script>