Advertisement
Guest User

Index php

a guest
Aug 16th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * This is the most generic template file in a WordPress theme
  6. * and one of the two required files for a theme (the other being style.css).
  7. * It is used to display a page when nothing more specific matches a query.
  8. * E.g., it puts together the home page when no home.php file exists.
  9. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  10. *
  11. * @package WordPress
  12. * @subpackage Revolution
  13. * @since Revolution 1.0
  14. */
  15.  
  16. get_header(); ?>
  17.  
  18. <?php $sidebarposition = of_get_option('templatesquare_sidebar_position' ,'right'); ?>
  19.  
  20. <!-- MAIN CONTENT -->
  21. <div id="outermain">
  22. <div class="container">
  23. <section id="maincontent" class="twelve columns">
  24.  
  25. <section id="content" class="nine columns <?php if($sidebarposition=="left"){echo "positionright omega";}else{echo "positionleft alpha";}?>">
  26. <div class="main">
  27. <?php
  28. /* Run the loop to output the posts.
  29. * If you want to overload this in a child theme then include a file
  30. * called loop-index.php and that will be used instead.
  31. */
  32. get_template_part( 'loop', 'index' );
  33. ?>
  34. <div class="clear"></div><!-- clear float -->
  35. </div><!-- main -->
  36. </section><!-- content -->
  37.  
  38. <aside id="sidebar" class="three columns <?php if($sidebarposition=="left"){echo "positionleft alpha";}else{echo "positionright omega";}?>">
  39. <?php get_sidebar();?>
  40. </aside><!-- sidebar -->
  41.  
  42. </section><!-- maincontent -->
  43. </div>
  44. </div>
  45. <!-- END MAIN CONTENT -->
  46.  
  47. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement