Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.15 KB | None | 0 0
  1. <?php get_header(); ?>
  2.    
  3.     <div class="archive-box">
  4.    
  5.         <span><?php _e( 'Browsing Category', 'solopine' ); ?></span>
  6.         <h1><?php printf( __( '%s', 'solopine' ), single_cat_title( '', false ) ); ?></h1>
  7.        
  8.         <?php if(category_description()) : ?>
  9.         <div class="archive-descrip post-entry">
  10.         <div class="container">
  11.         <?php echo category_description(); ?>
  12.         </div>
  13.         </div>
  14.         <?php endif; ?>
  15.        
  16.     </div>
  17.    
  18.     <div class="container">
  19.        
  20.         <div id="content">
  21.        
  22.             <div id="main" <?php if(get_theme_mod('sp_sidebar_archive') == true) : ?>class="fullwidth"<?php endif; ?>>
  23.            
  24.                 <?php if(get_theme_mod('sp_archive_layout') == 'grid' || get_theme_mod('sp_archive_layout') == 'full_grid') : ?><ul class="sp-grid"><?php endif; ?>
  25.                
  26.                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  27.                    
  28.                     <?php if(get_theme_mod('sp_archive_layout') == 'grid') : ?>
  29.                    
  30.                         <?php get_template_part('content', 'grid'); ?>
  31.                    
  32.                     <?php elseif(get_theme_mod('sp_archive_layout') == 'list') : ?>
  33.                    
  34.                         <?php get_template_part('content', 'list'); ?>
  35.                        
  36.                     <?php elseif(get_theme_mod('sp_archive_layout') == 'full_list') : ?>
  37.                    
  38.                         <?php if( $wp_query->current_post == 0 && !is_paged() ) : ?>
  39.                             <?php get_template_part('content'); ?>
  40.                         <?php else : ?>
  41.                             <?php get_template_part('content', 'list'); ?>
  42.                         <?php endif; ?>
  43.                    
  44.                     <?php elseif(get_theme_mod('sp_archive_layout') == 'full_grid') : ?>
  45.                    
  46.                         <?php if( $wp_query->current_post == 0 && !is_paged() ) : ?>
  47.                             <?php get_template_part('content'); ?>
  48.                         <?php else : ?>
  49.                             <?php get_template_part('content', 'grid'); ?>
  50.                         <?php endif; ?>
  51.                    
  52.                     <?php else : ?>
  53.                        
  54.                         <?php get_template_part('content'); ?>
  55.                        
  56.                     <?php endif; ?>
  57.                        
  58.                 <?php endwhile; ?>
  59.                
  60.                 <?php if(get_theme_mod('sp_archive_layout') == 'grid' || get_theme_mod('sp_archive_layout') == 'full_grid') : ?></ul><?php endif; ?>
  61.                
  62.                     <?php solopine_pagination(); ?>
  63.                
  64.                 <?php endif; ?>
  65.                
  66.             </div>
  67.  
  68. <?php if(get_theme_mod('sp_sidebar_archive')) : else : ?><?php get_sidebar(); ?><?php endif; ?>
  69. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement