Advertisement
pcwriter

Adapting plugin templates

Apr 29th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <!--THE FOLLOWING SHOULD BE AT THE TOP OF THE TEMPLATE FILE-->
  2.  
  3. <?php get_header() ?>
  4. <?php global $cap; ?>
  5. <div id="content">
  6. <div class="padder">
  7.  
  8. <!--AND THE FOLLOWING SHOULD BE AT THE VERY BOTTOM-->
  9.  
  10. </div><!-- .padder -->
  11. </div><!-- #content -->
  12.  
  13. <?php locate_template( array( 'sidebar.php' ), true ) ?>
  14.  
  15. <?php if($cap->sidebar_placement == "Sidebars Left and Right"){?>
  16. <?php locate_template( array( 'sidebar2.php' ), true ) ?>
  17. <?php };?>
  18.  
  19. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement