Advertisement
Guest User

Category-{child_category_slug}.php

a guest
Apr 18th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.54 KB | None | 0 0
  1. <?php get_header(); ?>
  2.     <?php if( is_home() && ! is_paged() ) : ?>
  3.         <?php if( pinboard_get_option( 'slider' ) ) : ?>
  4.             <?php get_template_part( 'slider' ); ?>
  5.         <?php endif; ?>
  6.         <?php get_sidebar( 'wide' ); ?>
  7.         <?php get_sidebar( 'boxes' ); ?>
  8.     <?php elseif( ( is_home() && is_paged() ) || ( ! is_home() && pinboard_get_option( 'location' ) ) ) : ?>
  9.         <?php pinboard_current_location(); ?>
  10.     <?php endif; ?>
  11.     <div id="container">
  12.         <section id="content" <?php pinboard_content_class(); ?>>
  13.             <?php if( is_category( pinboard_get_option( 'portfolio_cat' ) ) || ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?>
  14.                 <?php pinboard_category_filter( pinboard_get_option( 'portfolio_cat' ) ); ?>
  15.             <?php endif; ?>
  16.             <?php if( have_posts() ) : ?>
  17.                 <div class="entries">
  18.                     <?php while( have_posts() ) : the_post(); ?>
  19.                         <?php get_template_part( 'content-child', get_post_format() ); ?>
  20.                     <?php endwhile; ?>
  21.                 </div><!-- .entries -->
  22.                 <?php pinboard_posts_nav(); ?>
  23.             <?php else : ?>
  24.                 <?php pinboard_404(); ?>
  25.             <?php endif; ?>
  26.         </section><!-- #content -->
  27.         <?php if( 'no-sidebars' != pinboard_get_option( 'layout' ) && 'full-width' != pinboard_get_option( 'layout' ) && ! is_category( pinboard_get_option( 'portfolio_cat' ) ) && ! ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?>
  28.             <?php get_sidebar(); ?>
  29.         <?php endif; ?>
  30.         <div class="clear"></div>
  31.     </div><!-- #container -->
  32. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement