ID, '_kad_post_summery', true ); $crop = true; if( $ascend_portfolio_loop['carousel'] == 'true') { $class = 'portfolio_carousel_item kt-slick-slide p_item'; } else{ $class = 'p_item'; } if ($ascend_portfolio_loop['columns'] == '2') { $itemsize = 'col-xxl-4 col-xl-6 col-md-6 col-sm-6 col-xs-12 col-ss-12'; $image_width = 860; } else if ($ascend_portfolio_loop['columns'] == '1'){ $itemsize = 'col-xxl-12 col-xl-12 col-md-12 col-sm-12 col-xs-12 col-ss-12'; $image_width = 860; } else if ($ascend_portfolio_loop['columns'] == '3'){ $itemsize = 'col-xxl-3 col-xl-4 col-md-4 col-sm-4 col-xs-6 col-ss-12'; $image_width = 600; } else if ($ascend_portfolio_loop['columns'] == '6'){ $itemsize = 'col-xxl-15 col-xl-2 col-md-2 col-sm-3 col-xs-4 col-ss-6'; $image_width = 240; } else if ($ascend_portfolio_loop['columns'] == '5'){ $itemsize = 'col-xxl-2 col-xl-2 col-md-25 col-sm-3 col-xs-4 col-ss-6'; $image_width = 240; } else { $itemsize = 'col-xxl-2 col-xl-25 col-md-3 col-sm-4 col-xs-6 col-ss-12'; $image_width = 300; } if(isset($ascend_portfolio_loop['ratio']) && !empty($ascend_portfolio_loop['ratio'])) { $portfolio_ratio = $ascend_portfolio_loop['ratio']; } else { $portfolio_ratio = 'square'; } if($portfolio_ratio == 'portrait') { $temppimgheight = $image_width * 1.35; $image_height = floor($temppimgheight); } else if($portfolio_ratio == 'landscape') { $temppimgheight = $image_width / 1.35; $image_height = floor($temppimgheight); } else if($portfolio_ratio == 'widelandscape') { $temppimgheight = $image_width / 2; $image_height = floor($temppimgheight); } else if($portfolio_ratio == 'softcrop') { $image_height = null; $crop = false; } else { $image_height = $image_width; } $image_width = apply_filters('ascend_portfolio_grid_image_width', $image_width); $image_height = apply_filters('ascend_portfolio_grid_image_height', $image_height); $terms = get_the_terms( $post->ID, 'portfolio-type' ); if ( $terms && ! is_wp_error( $terms ) ) : $links = array(); foreach ( $terms as $term ) { $links[] = $term->slug; } $tax = join( " ", $links ); else : $tax = ''; endif; ?>