ID, '_kad_portfolio_type', true );
$portfolio_items = get_post_meta( $post->ID, '_kad_portfolio_items', true );
$portfolio_order = get_post_meta( $post->ID, '_kad_portfolio_order', true );
if(isset($portfolio_order)) {$p_orderby = $portfolio_order;} else {$p_orderby = 'menu_order';}
if($p_orderby == 'menu_order') {$p_order = 'ASC';} else {$p_order = 'DESC';}
if($portfolio_category == '-1' || empty($portfolio_category)) { $portfolio_cat_slug = ''; $portfolio_cat_ID = ''; } else {
$portfolio_cat = get_term_by ('id',$portfolio_category,'portfolio-type' );
$portfolio_cat_slug = $portfolio_cat -> slug;
$portfolio_cat_ID = $portfolio_cat -> term_id;
}
$portfolio_category = $portfolio_cat_slug;
if($portfolio_items == 'all') { $portfolio_items = '-1'; }
?>
ID, '_kad_portfolio_columns', true );
if ($portfolio_column == '2') {$itemsize = 'tcol-md-6 tcol-sm-6 tcol-xs-12 tcol-ss-12'; $slidewidth = 559; $slideheight = 559; $md = 2; $sm = 2; $xs = 1; $ss = 1;}
else if ($portfolio_column == '3'){ $itemsize = 'tcol-md-4 tcol-sm-4 tcol-xs-6 tcol-ss-12'; $slidewidth = 366; $slideheight = 366; $md = 3; $sm = 3; $xs = 2; $ss = 1;}
else if ($portfolio_column == '6'){ $itemsize = 'tcol-md-2 tcol-sm-3 tcol-xs-4 tcol-ss-6'; $slidewidth = 240; $slideheight = 240; $md = 6; $sm = 4; $xs = 3; $ss = 2;}
else if ($portfolio_column == '5'){ $itemsize = 'tcol-md-25 tcol-sm-3 tcol-xs-4 tcol-ss-6'; $slidewidth = 240; $slideheight = 240; $md = 5; $sm = 4; $xs = 3; $ss = 2;}
else {$itemsize = 'tcol-md-3 tcol-sm-4 tcol-xs-6 tcol-ss-12'; $slidewidth = 269; $slideheight = 269; $md = 4; $sm = 3; $xs = 2; $ss = 1;}
?>
ID, '_kad_portfolio_item_excerpt', true ); $portfolio_item_types = get_post_meta( $post->ID, '_kad_portfolio_item_types', true ); ?>
ID, '_kad_portfolio_img_crop', true ); if ($portfolio_cropheight != '') $slideheight = $portfolio_cropheight; ?>
ID, '_kad_portfolio_lightbox', true ); if ($portfolio_lightbox == 'yes'){$plb = true;} else {$plb = false;}?>
query(array(
'paged' => $paged,
'orderby' => $p_orderby,
'order' => $p_order,
'post_type' => 'portfolio',
'portfolio-type'=>$portfolio_cat_slug,
'posts_per_page' => $portfolio_items));
$count =0;
?>
have_posts() ) : $wp_query->the_post(); ?>
ID, 'portfolio-type' );
if ( $terms && ! is_wp_error( $terms ) ) :
$links = array();
foreach ( $terms as $term ) { $links[] = $term->name;}
$links = preg_replace("/[^a-zA-Z 0-9]+/", " ", $links);
$links = str_replace(' ', '-', $links);
$tax = join( " ", $links );
else :
$tax = '';
endif;
?>
max_num_pages > 1) : ?>
ID ) ) {
$image_url = wp_get_attachment_image_src(
get_post_thumbnail_id( $post->ID ), 'full' );
$thumbnailURL = $image_url[0];
$image = aq_resize($thumbnailURL, $slidewidth, $slideheight, true);
if(empty($image)) {$image = $thumbnailURL; } ?>
ID, 'portfolio-type' ); if ($terms) {?>
name;} echo implode(', ', $output); ?>