Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

footer.php runner.org

By: freakinhappy on May 25th, 2012  |  syntax: None  |  size: 3.11 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php /* if index.php or another page template (copied from index.php) was not used
  2. (i.e. by a plugin such as WPG2), the global $bfa_ata will be empty */
  3. global $bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2;
  4. if ($bfa_ata == "") include_once (TEMPLATEPATH . '/functions/bfa_get_options.php'); ?>
  5. </td>
  6. <!-- / Main Column -->
  7.  
  8. <?php if ( $right_col2 == "on" ) { ?>
  9. <!-- Right Inner Sidebar -->
  10. <td id="right-inner">
  11.  
  12.         <?php // Widgetize the Right Inner Sidebar
  13.         if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Inner Sidebar') ) : ?>
  14.  
  15.                 <!-- No default content for the RIGHT INNER sidebar -->
  16.  
  17.         <?php endif; ?>
  18.  
  19. </td>
  20. <!-- / Right Inner Sidebar -->
  21. <?php } ?>
  22.  
  23. <?php if ( $right_col == "on" ) { ?>
  24. <!-- Right Sidebar -->
  25. <td id="right">
  26.  
  27.         <?php // Widgetize the Right Sidebar
  28.         if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
  29.  
  30.         <div class="widget"><div class="widget-title">
  31.         <h3>Recent Posts</h3></div>
  32. <?php $r = new WP_Query(array(
  33.         'showposts' => 20,
  34.         'what_to_show' => 'posts',
  35.         'nopaging' => 0,
  36.         'post_status' => 'publish',
  37.         'caller_get_posts' => 1));
  38. if ($r->have_posts()) : ?>
  39. <ul><?php  while ($r->have_posts()) : $r->the_post(); ?>
  40. <li><a href="<?php the_permalink() ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a></li>
  41.         <?php endwhile; ?>
  42.         </ul>
  43.         <?php wp_reset_query();  // Restore global post data stomped by the_post().
  44.         endif; ?>
  45.     </div>
  46.  
  47.         <div id="linkcat-99" class="widget widget_links"><div class="widget-title">
  48.         <?php wp_list_bookmarks('category_before=&category_after=&title_before=<h3>&title_after=</h3></div>'); ?>
  49.         </div>
  50.  
  51.         <div class="widget"><div class="widget-title">
  52.         <h3><?php _e('Meta','atahualpa'); ?></h3>
  53.         </div>
  54.         <ul>
  55.                 <?php wp_register(); ?>
  56.                 <li><?php wp_loginout(); ?></li>
  57.                 <li><a href="http://wordpress.org/" title="
  58.                 <?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.','atahualpa'); ?>">
  59.                 <?php _e('WordPress','atahualpa'); ?></a></li>
  60.                 <?php wp_meta(); ?>
  61.         </ul>
  62.         </div>
  63.  
  64.         <?php endif; ?>
  65.  
  66. </td>
  67. <!-- / Right Sidebar -->
  68. <?php } ?>
  69.  
  70. </tr>
  71. <!-- / Main Body -->
  72. <tr>
  73.  
  74. <!-- Footer -->
  75. <td id="footer" colspan="<?php echo $cols; ?>">
  76.  
  77.     <p>
  78.     <?php echo bfa_footer($bfa_ata['footer_style_content']); ?>
  79.     </p>
  80.     <?php if ($bfa_ata['footer_show_queries'] == "Yes - visible") { ?>
  81.     <p>
  82.     <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
  83.     </p>
  84.     <?php } ?>
  85.  
  86.     <?php if ($bfa_ata['footer_show_queries'] == "Yes - in source code") { ?>
  87.     <!--
  88.     <?php echo $wpdb->num_queries; ?><?php _e(' queries. ','atahualpa'); ?><?php timer_stop(1); ?><?php _e(' seconds.','atahualpa'); ?>
  89.     -->
  90.     <?php } ?>
  91.  
  92.     <?php wp_footer(); ?>
  93.  
  94. </td>
  95. <!-- / Footer -->
  96.  
  97. </tr>
  98. </table><!-- / layout -->
  99. </div><!-- / container -->
  100. </div><!-- / wrapper -->
  101. <?php bfa_html_inserts($bfa_ata['html_inserts_body_bottom']); ?>
  102. </body>
  103. </html>