slug; $portfolio_type_id = $portfolio_type->id; } else { $portfolio_type_slug = ''; $portfolio_type_id = ''; } if($portfolio_style == 'poststyle') { $margins = 'row'; $isoclass = 'init-masonry-intrinsic'; } elseif($portfolio_style == 'pgrid-no-margin') { $margins = 'row-nomargin'; $isoclass = 'init-masonry-intrinsic'; } else { $isoclass = 'init-masonry-intrinsic'; $margins = 'rowtight'; } $ascend_portfolio_loop = array( 'lightbox' => $portfolio_lightbox, 'showexcerpt' => $portfolio_excerpt, 'showtypes' => $portfolio_item_types, 'columns' => $ascend_grid_columns, 'ratio' => $portfolio_ratio, 'style' => $portfolio_style, 'carousel' => 'false', 'tileheight' => '0', ); echo '
'; if(!empty($btitle)) { echo '
'; echo '

'; echo ''.esc_html($btitle).''; echo '

'; echo '
'; } echo '
'; echo '
'; $loop = new WP_Query(array( 'paged' => $paged, 'orderby' => $p_orderby, 'order' => $p_order, 'post_type' => 'portfolio', 'portfolio-type' => $portfolio_type_slug, 'posts_per_page' => $portfolio_items )); if ( $loop ) : $ascend_portfolio_loop_count['loop'] = 1; $ascend_portfolio_loop_count['count'] = $loop->post_count; while ( $loop->have_posts() ) : $loop->the_post(); get_template_part('templates/content', 'loop-portfolio'); $ascend_portfolio_loop_count['loop']++; endwhile; else: ?>