ID, '_kad_posthead_width', true );
if (!empty($swidth)) {
$slidewidth = $swidth;
} else {
$slidewidth = 1140;
} ?>
ID, '_kad_post_video', true ); ?>
ID, '_kad_posthead_height', true );
$swidth = get_post_meta( $post->ID, '_kad_posthead_width', true );
$uselightbox = get_post_meta( $post->ID, '_kad_feature_img_lightbox', true );
if (!empty($height)) {
$slideheight = $height;
} else {
$slideheight = 400;
}
if (!empty($swidth)) {
$slidewidth = $swidth;
} else {
$slidewidth = 1140;
}
if (!empty($uselightbox)) {
$lightbox = $uselightbox;
} else {
$lightbox = 'yes';
}
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url( $thumb,'full' );
$image = aq_resize( $img_url, $slidewidth, $slideheight, true ); //resize & crop the image
if(empty($image)) {
$image = $img_url;
} ?>