ID, '_kad_gallery_posthead_width', true );
$height = get_post_meta( $post->ID, '_kad_gallery_posthead_height', true );
if (!empty($height)) {
$slideheight = $height;
$imageheight = $height;
} else {
$slideheight = 400;
$imageheight = apply_filters('ascend_single_post_image_height', 400);
}
if (!empty($swidth)) {
$slidewidth = $swidth;
} else {
$slidewidth = $ascend_feat_width;
}
} elseif (has_post_format( 'image' )) {
$swidth = get_post_meta( $post->ID, '_kad_image_posthead_width', true );
$height = get_post_meta( $post->ID, '_kad_image_posthead_height', true );
if (!empty($height)) {
$imageheight = $height;
} else {
$imageheight = apply_filters('ascend_single_post_image_height', 400);
}
if (!empty($swidth)) {
$slidewidth = $swidth;
} else {
$slidewidth = $ascend_feat_width;
}
} elseif (has_post_format( 'video' )) {
$swidth = get_post_meta( $post->ID, '_kad_video_posthead_width', true );
if (!empty($swidth)) {
$slidewidth = $swidth;
} else {
$slidewidth = $ascend_feat_width;
}
}
$ascend_headcontent = ascend_get_post_head_content();
if ($ascend_headcontent == 'flex') {
$image_gallery = get_post_meta( $post->ID, '_kad_image_gallery', true );
echo '