ID, '_kad_ppost_layout', true ); $ppost_type = get_post_meta( $post->ID, '_kad_ppost_type', true ); $imgheight = get_post_meta( $post->ID, '_kad_posthead_height', true ); $imgwidth = get_post_meta( $post->ID, '_kad_posthead_width', true ); $autoplay = get_post_meta( $post->ID, '_kad_portfolio_autoplay', true ); if(isset($autoplay) && $autoplay == 'no') { $slideauto = 'false'; } else { $slideauto = 'true'; } if($layout == 'above') { $imgclass = 'col-md-12'; $textclass = 'pcfull clearfix'; $entryclass = 'col-md-8'; $valueclass = 'col-md-4'; $slidewidth_d = 1140; } elseif ($layout == 'three') { $imgclass = 'col-md-12'; $textclass = 'pcfull clearfix'; $entryclass = 'col-md-12'; $valueclass = 'col-md-12'; $slidewidth_d = 1140; } else { $imgclass = 'col-md-7'; $textclass = 'col-md-5 pcside'; $entryclass = ''; $valueclass = ''; $slidewidth_d = 653; } $portfolio_margin = ''; if (!empty($imgheight)) { $slideheight = $imgheight; } else { $slideheight = 450; } if (!empty($imgwidth)) { $slidewidth = $imgwidth; } else { $slidewidth = $slidewidth_d; } ?>
id="post-">
ID, '_kad_image_gallery', true ); $columns = get_post_meta( $post->ID, '_kad_portfolio_img_grid_columns', true ); if(empty($columns)) {$columns = '3';} echo do_shortcode('[gallery ids="'.$image_gallery.'" columns="'.$columns.'"]'); } else if ($ppost_type == 'video') { ?>
ID, '_kad_post_video', true ); ?>
ID, '_kad_project_val01_title', true ); $project_v1d = get_post_meta( $post->ID, '_kad_project_val01_description', true ); $project_v2t = get_post_meta( $post->ID, '_kad_project_val02_title', true ); $project_v2d = get_post_meta( $post->ID, '_kad_project_val02_description', true ); $project_v3t = get_post_meta( $post->ID, '_kad_project_val03_title', true ); $project_v3d = get_post_meta( $post->ID, '_kad_project_val03_description', true ); $project_v4t = get_post_meta( $post->ID, '_kad_project_val04_title', true ); $project_v4d = get_post_meta( $post->ID, '_kad_project_val04_description', true ); $project_v5t = get_post_meta( $post->ID, '_kad_project_val05_title', true ); $project_v5d = get_post_meta( $post->ID, '_kad_project_val05_description', true ); if(!empty($project_v1t) || !empty($project_v2t)|| !empty($project_v3t) || !empty($project_v4t) || !empty($project_v5t)) { ?>
    '.esc_html($project_v1t).' '.esc_html($project_v1d).''; if ($project_v2t != '') echo '
  • '.esc_html($project_v2t).' '.esc_html($project_v2d).'
  • '; if ($project_v3t != '') echo '
  • '.esc_html($project_v3t).' '.esc_html($project_v3d).'
  • '; if ($project_v4t != '') echo '
  • '.esc_html($project_v4t).' '.esc_html($project_v4d).'
  • '; if ($project_v5t != '') echo '
  • '.esc_html($project_v5t).' '.esc_html($project_v5d).'
  • '; ?>