Advertisement
rzul

conditional sidebar - original

May 2nd, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.43 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Footer Template
  4.  *
  5.  * The footer template is generally used on every page of your site. Nearly all other
  6.  * templates call it somewhere near the bottom of the file. It is used mostly as a closing
  7.  * wrapper, which is opened with the header.php file. It also executes key functions needed
  8.  * by the theme, child themes, and plugins.
  9.  *
  10.  * @package News
  11.  * @subpackage Template
  12.  */
  13. ?>
  14.             <?php get_sidebar( 'primary' ); ?>
  15.  
  16.             <?php get_sidebar( 'secondary' ); ?>
  17.  
  18.             <?php do_atomic( 'close_container' ); // Close container hook ?>
  19.  
  20.             </div><!-- .wrap -->
  21.  
  22.         </div><!-- #container -->
  23.  
  24.         <?php do_atomic( 'after_container' ); // After container hook ?>
  25.  
  26.         <?php do_atomic( 'before_footer' ); // Before footer hook ?>
  27.  
  28.         <div id="footer">
  29.  
  30.             <?php do_atomic( 'open_footer' ); // Open footer hook ?>
  31.  
  32.             <?php get_template_part( 'menu', 'subsidiary' ); // Loads the menu-subsidiary.php file ?>
  33.  
  34.             <div class="wrap">
  35.  
  36.                 <?php echo apply_atomic_shortcode( 'footer_content', hybrid_get_setting( 'footer_insert' ) ); ?>
  37.  
  38.                 <?php do_atomic( 'footer' ); // Footer hook ?>
  39.  
  40.             </div><!-- .wrap -->
  41.  
  42.             <?php do_atomic( 'close_footer' ); // Close footer hook ?>
  43.  
  44.         </div><!-- #footer -->
  45.  
  46.         <?php do_atomic( 'after_footer' ); // After footer hook ?>
  47.  
  48.     </div><!-- #body-container -->
  49.  
  50.     <?php do_atomic( 'after_html' ); // After HTML hook ?>
  51.     <?php wp_footer(); // WordPress footer hook ?>
  52.  
  53. </body>
  54. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement