Guest User

index.php

a guest
Nov 1st, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="container">
  3. <?php if( is_home() && ! is_paged() && esplanade_get_option( 'slider' ) ) : ?>
  4. <?php get_template_part( 'slider' ); ?>
  5. <?php endif; ?>
  6. <?php if( 'sidebar-content-sidebar' == esplanade_get_option( 'layout' ) ) : ?>
  7. <div class="content-sidebar-wrap">
  8. <?php endif; ?>
  9. <section id="content">
  10. <?php if( ( is_home() && is_paged() && esplanade_get_option( 'breadcrumbs' ) ) || ( ! is_home() && ( esplanade_get_option( 'breadcrumbs' ) || esplanade_get_option( 'location' ) ) ) ) : ?>
  11. <div id="location">
  12. <?php if( esplanade_get_option( 'breadcrumbs' ) ) : ?>
  13. <?php esplanade_breadcrumbs(); ?>
  14. <?php endif; ?>
  15. <?php if( ! is_home() && esplanade_get_option( 'location' ) ) : ?>
  16. <?php esplanade_current_location(); ?>
  17. <?php endif; ?>
  18. </div><!-- #location -->
  19. <?php endif; ?>
  20. <?php if( have_posts() ) : ?>
  21. <?php while( have_posts() ) : the_post(); ?>
  22. <?php get_template_part( 'content', get_post_format() ); ?>
  23. <?php endwhile; ?>
  24. <div class="clear"></div>
  25. <?php esplanade_posts_nav(); ?>
  26. <?php else : ?>
  27. <?php esplanade_404(); ?>
  28. <?php endif; ?>
  29. </section><!-- #content -->
  30. <?php if( 'sidebar-content-sidebar' == esplanade_get_option( 'layout' ) ) : ?>
  31. <?php get_sidebar( 'left' ); ?>
  32. </div><!-- #content-sidebar-wrap -->
  33. <?php get_sidebar( 'right' ); ?>
  34. <?php elseif( ( 'no-sidebars' != esplanade_get_option( 'layout' ) ) && ( 'full-width' != esplanade_get_option( 'layout' ) ) ) : ?>
  35. <?php get_sidebar(); ?>
  36. <?php endif; ?>
  37. </div><!-- #container -->
  38. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment