1. <?php if ( bp_is_register_page() ) : ?>
  2. <script type="text/javascript">
  3. jQuery(document).ready( function() {
  4. if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )
  5. jQuery('div#blog-details').toggle();
  6. jQuery( 'input#signup_with_blog' ).click( function() {
  7. jQuery('div#blog-details').fadeOut().toggle();
  8. });
  9. });
  10. </script>
  11. <?php endif; ?>
  12.  
  13. </td>
  14. <!-- / Main Column -->
  15.  
  16. <!-- Right Sidebar -->
  17. <td id="right">
  18.  
  19. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
  20.  
  21. <!-- Default content here -->
  22. <div class="widget"><div class="widget-title"><h3>Recent Posts</h3></div>
  23. <?php $r = new WP_Query(array(
  24. 'showposts' => 20,
  25. 'what_to_show' => 'posts',
  26. 'nopaging' => 0,
  27. 'post_status' => 'publish',
  28. 'ignore_sticky_posts' => 1));
  29. if ($r->have_posts()) : ?>
  30. <ul>
  31. <?php while ($r->have_posts()) : $r->the_post(); ?>
  32. <li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a></li>
  33. <?php endwhile; ?>
  34. </ul>
  35. <?php wp_reset_query(); // Restore global post data stomped by the_post().
  36. endif; ?>
  37. </div>
  38.  
  39. <div id="linkcat-99" class="widget widget_links"><div class="widget-title">
  40. <?php wp_list_bookmarks('category_before=&category_after=&title_before=<h3>&title_after=</h3></div>'); ?>
  41. </div>
  42.  
  43. <div class="widget"><div class="widget-title">
  44. <h3><?php _e('Meta','atahualpa'); ?></h3>
  45. </div>
  46. <ul>
  47. <?php wp_register(); ?>
  48. <li><?php wp_loginout(); ?></li>
  49. <li><a href="http://wordpress.org/" title="
  50. <?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.','atahualpa'); ?>">
  51. <?php _e('WordPress','atahualpa'); ?></a></li>
  52. <?php wp_meta(); ?>
  53. </ul>
  54. </div>
  55.  
  56. <?php endif; ?>
  57.  
  58. </td>
  59. <!-- / Right Sidebar -->
  60.  
  61. </tr>
  62. <!-- / Main Body -->
  63. <tr>
  64.  
  65. <!-- Footer -->
  66. <td id="footer" colspan="3">
  67. <p>
  68. <?php echo bfa_footer(); ?>
  69. </p>
  70. <?php if ($bfa_ata['footer_show_queries'] == "Yes - visible") { ?>
  71. <p>
  72. <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
  73. </p>
  74. <?php } ?>
  75.  
  76. <?php if ($bfa_ata['footer_show_queries'] == "Yes - in source code") { ?>
  77. <!--
  78. <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
  79. -->
  80. <?php } ?>
  81.  
  82.  
  83. </td>
  84.  
  85.  
  86. </tr>
  87. </table><!-- / layout -->
  88. </div><!-- / container -->
  89. </div><!-- / wrapper -->
  90. <?php bfa_incl('html_inserts_body_bottom'); ?>
  91. <?php wp_footer(); ?>
  92. </body>
  93. </html>