ID, '_kad_image_gallery', true );
if(!empty($image_gallery)) {
$attachments = array_filter( explode( ',', $image_gallery ) );
if ($attachments) {
foreach ($attachments as $attachment) {
$img = virtue_get_image_array( $slidewidth, $slideheight, true, null, null, $attachment, false );
$caption = get_post($attachment)->post_excerpt;
echo '
';
echo '';
echo '';
echo '';
echo ' ';
}
}
} else {
$attach_args = array('order'=> 'ASC','post_type'=> 'attachment','post_parent'=> $post->ID,'post_mime_type' => 'image','post_status'=> null,'orderby'=> 'menu_order','numberposts'=> -1);
$attachments = get_posts($attach_args);
if ( $attachments ) {
foreach ( $attachments as $attachment ) {
$caption = get_post($attachment->ID)->post_excerpt;
$img = virtue_get_image_array( $slidewidth, $slideheight, true, null, null, $attachment->ID, false );
echo '!['.esc_attr( $img[ 'alt' ] ).']('.esc_url( $img[ 'src' ] ).')
';
}
}
} ?>
ID, '_kad_image_gallery', true );
if( ! empty( $image_gallery ) ) {
$attachments = array_filter( explode( ',', $image_gallery ) );
if ($attachments) {
foreach ( $attachments as $attachment ) {
$caption = get_post($attachment)->post_excerpt;
$img = virtue_get_image_array( null, $slideheight, false, null, null, $attachment, false );
echo '
';
}
}
} ?>
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="'.esc_attr( $image_gallery ).'" columns="'.esc_attr( $columns).'"]');
} else if ($ppost_type == 'video') { ?>
true,
'height' => true,
'width' => true,
'frameborder' => true,
'allowfullscreen' => true,
'name' => true,
'id' => true,
'class' => true,
'style' => true,
);
echo do_shortcode( wp_kses( get_post_meta( $post->ID, '_kad_post_video', true ), $allowed_tags ) );
if (has_post_thumbnail( $post->ID ) ) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?>
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 ( ! empty( $project_v2t ) ) {
echo '- '.esc_html( $project_v2t ).' '.esc_html( $project_v2d ).'
';
}
if ( ! empty( $project_v3t ) ) {
echo '- '.esc_html( $project_v3t ).' '.esc_html( $project_v3d ).'
';
}
if ( ! empty( $project_v4t ) ) {
echo '- '.esc_html( $project_v4t ).' '.esc_html( $project_v4d ).'
';
}
if ( ! empty( $project_v5t ) ) {
echo '- '.esc_html( $project_v5t ).' '.esc_html( $project_v5d ).'
';
}
?>