>
    ID, '_kad_image_gallery', true ); if(!empty($image_gallery)) { $attachments = array_filter( explode( ',', $image_gallery ) ); if ($attachments) { foreach ($attachments as $attachment) { $attachment_url = wp_get_attachment_url($attachment , 'full'); $image = aq_resize($attachment_url, $slidewidth, $slideheight, true); if(empty($image)) {$image = $attachment_url;} 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) { $attachment_url = wp_get_attachment_url($attachment->ID , 'full'); $image = aq_resize($attachment_url, $slidewidth, $slideheight, true); if(empty($image)) {$image = $attachment_url;} echo '
  • '; } } } ?>
ID, '_kad_post_video', true ); echo $video; ?>
ID, '_kad_posthead_height', true ); if ($height != '') $slideheight = $height; else $slideheight = 350; $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,'full' ); //get full URL to image (use "large" or "medium" if the images too big) $image = aq_resize( $img_url, $slidewidth, $slideheight, true ); //resize & crop the image if(empty($image)) { $image = $img_url; } ?>
<?php the_title(); ?>

ID, '_kad_blog_author', true ) == 'yes') { virtue_author_box(); } ?> ID, '_kad_blog_carousel_similar', true ); if ($blog_carousel_recent == 'similar') { get_template_part('templates/similarblog', 'carousel'); } else if($blog_carousel_recent == 'recent') {get_template_part('templates/recentblog', 'carousel');} ?> '')); ?>