>
ID, '_kad_post_summery', true ); $height = get_post_meta( $post->ID, '_kad_posthead_height', true ); if (!empty($height)) $slideheight = $height; else $slideheight = 400; $swidth = get_post_meta( $post->ID, '_kad_posthead_width', true ); if (!empty($swidth)) $slidewidth = $swidth; else $slidewidth = 1140; if(empty($postsummery) || $postsummery == 'default') { global $virtue; if(!empty($virtue['post_summery_default'])) { $postsummery = $virtue['post_summery_default']; } else { $postsummery = 'img_portrait'; } } if($postsummery == 'img_landscape') { $textsize = 'col-md-12'; if (has_post_thumbnail( $post->ID ) ) { $image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); $thumbnailURL = $image_url[0]; $image = aq_resize($thumbnailURL, $slidewidth, $slideheight, true); if(empty($image)) { $image = $thumbnailURL; } ?>
<?php the_title(); ?>
ID ) ) { $image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); $thumbnailURL = $image_url[0]; $image = aq_resize($thumbnailURL, 360, 360, true); if(empty($image)) { $image = $thumbnailURL; } ?>
<?php the_title(); ?>
    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;} ?>
  • '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;} ?>
    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, 360, 360, true); if(empty($image)) {$image = $attachment_url;} ?>
  • '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, 370, 370, true); if(empty($image)) {$image = $attachment_url;} ?>
ID, '_kad_post_video', true ); echo $video; ?>