%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/visionsynchomeimprovement.com/wp-content/themes/kitgreen/
Upload File :
Create Path :
Current File : /home/eirtvhdf/visionsynchomeimprovement.com/wp-content/themes/kitgreen/archive-portfolio.php

<?php
/* 
Template Name: Portfolio Page
*/
get_header( );  ?>
    <?php 
        $post_per_page_pp = cs_get_option('pp-number-per-page');
        $blog_shortcoe = cs_get_option('blog_before_footer');     
     
        $args = array(
	    	'post_type' => 'portfolio',
	    	'status' => 'published',
	    	'paged' => $paged,	
	    	'posts_per_page' => $post_per_page_pp
		);
        $columns_layout =  cs_get_option( 'pp-column' );
        $turn_full_width = cs_get_option('pp-layout-full');
        $portfolio_query = new WP_Query($args);
                            $class = $data = $sizer = '';
                            $class = 'jws-masonry';
                        	$data  = 'data-masonry=\'{"selector":".masonry-inner  ", "columnWidth":".grid-sizer","layoutMode":"packery"}\'';
                        	$sizer = '<div class="grid-sizer size-'.$columns_layout.'"></div>';
                    
    ?>
   <?php $page_title = cs_get_option('golobal-enable-page-title'); if($page_title == "1") : 
        echo jwstheme_title_bar();
    endif; ?>
	<?php if ( have_posts() ) : ?>
					<div  class="<?php if($turn_full_width == '1') {echo 'no_' ; } ?>container">
                      <div class="portfolio-container ">
                            <div class="row  <?php echo esc_attr( $class ); ?>" <?php echo wp_kses_post( $data ); ?>>
                            <?php
        						echo wp_kses_post( $sizer );
        					?>
					       	<?php while ( $portfolio_query->have_posts() ) :
                               $portfolio_query->the_post(); 
                            ?>
                            <div class="masonry-inner  col-md-<?php echo esc_attr($columns_layout); ?> col-sm-6 col-xs-12"> 
								<?php  get_template_part( 'framework/templates/portfolio/entry' );  ?>
                            </div>    
							<?php endwhile; // end of the loop. ?>
                            </div>
						</div>  
                        <?php endif; ?>
				</div>
<div class="before-footer">   
<?php echo do_shortcode( ''.$blog_shortcoe.'' );?> 
</div>  
<?php get_footer( ); ?>

Zerion Mini Shell 1.0