Advertisement
Guest User

Untitled

a guest
Feb 19th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div class="container">
  4.  
  5. <div id="content">
  6.  
  7. <div id="main" <?php if(get_theme_mod('sp_home_layout') == 'full' || get_theme_mod('sp_home_layout') == 'grid-full' || get_theme_mod('sp_home_layout') == 'list-full') : ?>class="fullwidth"<?php else : ?>class="regular"<?php endif; ?>>
  8.  
  9. <?php if(get_theme_mod('sp_home_layout') == 'grid' || get_theme_mod('sp_home_layout') == 'grid-full') : ?><ul class="grid-layout"><?php endif; ?>
  10.  
  11. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  12.  
  13. <?php if(get_theme_mod('sp_home_layout') == 'grid' || get_theme_mod('sp_home_layout') == 'grid-full') : ?>
  14. <?php get_template_part('content', 'grid'); ?>
  15. <?php elseif(get_theme_mod('sp_home_layout') == 'list' || get_theme_mod('sp_home_layout') == 'list-full') : ?>
  16. <?php get_template_part('content', 'list'); ?>
  17. <?php else : ?>
  18. <?php get_template_part('content'); ?>
  19. <?php endif; ?>
  20.  
  21. <?php endwhile; ?>
  22.  
  23. <?php if(get_theme_mod('sp_home_layout') == 'grid' || get_theme_mod('sp_home_layout') == 'grid-full') : ?></ul><?php endif; ?>
  24.  
  25. <?php solopine_pagination(); ?>
  26.  
  27. <?php endif; ?>
  28.  
  29. </div>
  30.  
  31.  
  32. <?php if(get_theme_mod('sp_home_layout') == 'full' || get_theme_mod('sp_home_layout') == 'grid-full' || get_theme_mod('sp_home_layout') == 'list-full') : else : ?><?php get_sidebar(); ?><?php endif; ?>
  33. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement