ID, '_kad_video_post_summery', true ); if(empty($postsummery) || $postsummery == 'default') { if(!empty($pinnacle['video_post_summery_default'])) { $postsummery = $pinnacle['video_post_summery_default']; } else { $postsummery = 'video'; } } $swidth = get_post_meta( $post->ID, '_kad_video_posthead_width', true ); if (!empty($swidth)) { $slidewidth = $swidth; } else { $slidewidth = $slide_sidebar; } $slideheight = 400; } else if (has_post_format( 'gallery' )) { $postsummery = get_post_meta( $post->ID, '_kad_gallery_post_summery', true ); if(empty($postsummery) || $postsummery == 'default') { if(!empty($pinnacle['gallery_post_summery_default'])) { $postsummery = $pinnacle['gallery_post_summery_default']; } else { $postsummery = 'slider_landscape'; } } $height = get_post_meta( $post->ID, '_kad_gallery_posthead_height', true ); $swidth = get_post_meta( $post->ID, '_kad_gallery_posthead_width', true ); if (!empty($height)) { $slideheight = $height; } else { $slideheight = 400; } if (!empty($swidth)) { $slidewidth = $swidth; } else { $slidewidth = $slide_sidebar; } } elseif (has_post_format( 'image' )) { $postsummery = get_post_meta( $post->ID, '_kad_image_post_summery', true ); if(empty($postsummery) || $postsummery == 'default') { if(!empty($pinnacle['image_post_summery_default'])) { $postsummery = $pinnacle['image_post_summery_default']; } else { $postsummery = 'img_portrait'; } } $swidth = get_post_meta( $post->ID, '_kad_image_posthead_width', true ); if (!empty($swidth)){ $slidewidth = $swidth; } else { $slidewidth = $slide_sidebar; } $slideheight = 400; } else { if(!empty($pinnacle['post_summery_default'])) { $postsummery = $pinnacle['post_summery_default']; } else { $postsummery = 'img_landscape'; } $slidewidth = $slide_sidebar; $slideheight = 400; } ?>
data-animation="fade-in" data-delay="0">
ID ) ) { $image_id = get_post_thumbnail_id( $post->ID ); $image_url = wp_get_attachment_image_src($image_id, 'full' ); $thumbnailURL = $image_url[0]; if($hardcrop) { $image = aq_resize($thumbnailURL, $slidewidth, $slideheight, true, false, false, $image_id); } else { $image = aq_resize($thumbnailURL,$slidewidth, null, false, false, false, $image_id); } if(empty($image[0])) { $image = array($thumbnailURL,$image_url[1],$image_url[2]);} ?>
<?php the_title_attribute(); ?>>
ID ) ) { $image_id = get_post_thumbnail_id( $post->ID ); $image_url = wp_get_attachment_image_src($image_id, 'full' ); $thumbnailURL = $image_url[0]; $image = aq_resize($thumbnailURL, 360, 360, true, false, false, $image_id); if(empty($image[0])) { $image = array($thumbnailURL,$image_url[1],$image_url[2]);} ?>
<?php the_title_attribute(); ?>>
    ID, '_kad_image_gallery', true ); if(!empty($image_gallery)) { $attachments = array_filter( explode( ',', $image_gallery ) ); if ($attachments) { foreach ($attachments as $attachment) { $image_url = wp_get_attachment_image_src($attachment, 'full' ); $attachment_url = $image_url[0]; $attachment_post = get_post( $attachment ); $image = aq_resize($attachment_url, $slidewidth, $slideheight, true, false, false, $attachment); if(empty($image[0])) { $image = array($thumbnailURL,$image_url[1],$image_url[2]);} ?>
  • <?php esc_attr($attachment_post->post_excerpt);?>>
    ID, '_kad_image_gallery', true ); if(!empty($image_gallery)) { $attachments = array_filter( explode( ',', $image_gallery ) ); if ($attachments) { foreach ($attachments as $attachment) { $image_url = wp_get_attachment_image_src($attachment, 'full' ); $attachment_url = $image_url[0]; $attachment_post = get_post( $attachment ); $image = aq_resize($attachment_url, 360, 360, true, false, false, $attachment); if(empty($image[0])) { $image = array($thumbnailURL,$image_url[1],$image_url[2]);} ?>
  • <?php esc_attr($attachment_post->post_excerpt);?>>
ID, '_kad_post_video', true );?>