Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="container">
- <div id="content">
- <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; ?>>
- <?php if(get_theme_mod('sp_home_layout') == 'grid' || get_theme_mod('sp_home_layout') == 'grid-full') : ?><ul class="grid-layout"><?php endif; ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php if(get_theme_mod('sp_home_layout') == 'grid' || get_theme_mod('sp_home_layout') == 'grid-full') : ?>
- <?php get_template_part('content', 'grid'); ?>
- <?php elseif(get_theme_mod('sp_home_layout') == 'list' || get_theme_mod('sp_home_layout') == 'list-full') : ?>
- <?php get_template_part('content', 'list'); ?>
- <?php else : ?>
- <?php get_template_part('content'); ?>
- <?php endif; ?>
- <?php endwhile; ?>
- <?php if(get_theme_mod('sp_home_layout') == 'grid' || get_theme_mod('sp_home_layout') == 'grid-full') : ?></ul><?php endif; ?>
- <?php solopine_pagination(); ?>
- <?php endif; ?>
- </div>
- <?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; ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement