ID, '_kad_video_post_summery', true ); $swidth = get_post_meta( $post->ID, '_kad_video_posthead_width', true ); if(empty($postsummery) || $postsummery == 'default') { if(!empty($pinnacle['video_post_summery_default'])) { $postsummery = $pinnacle['video_post_summery_default']; } else { $postsummery = 'video'; } } if (!empty($swidth)) { $slidewidth = $swidth; } else { $slidewidth = $slide_sidebar; } } else if (has_post_format( 'gallery' )) { $postsummery = get_post_meta( $post->ID, '_kad_gallery_post_summery', true ); $height = get_post_meta( $post->ID, '_kad_gallery_posthead_height', true ); $swidth = get_post_meta( $post->ID, '_kad_gallery_posthead_width', true ); if(empty($postsummery) || $postsummery == 'default') { if(!empty($pinnacle['gallery_post_summery_default'])) { $postsummery = $pinnacle['gallery_post_summery_default']; } else { $postsummery = 'slider_landscape'; } } 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 ); $swidth = get_post_meta( $post->ID, '_kad_image_posthead_width', true ); if(empty($postsummery) || $postsummery == 'default') { if(!empty($pinnacle['image_post_summery_default'])) { $postsummery = $pinnacle['image_post_summery_default']; } else { $postsummery = 'img_portrait'; } } if (!empty($swidth)) { $slidewidth = $swidth; } else { $slidewidth = $slide_sidebar; } } else { if(!empty($pinnacle['post_summery_default'])) { $postsummery = $pinnacle['post_summery_default']; } else { $postsummery = 'img_landscape'; } $slidewidth = $slide_sidebar; } ?>
data-animation="fade-in" data-delay="0">
ID ) ) { $image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); $thumbnailURL = $image_url[0]; $image = aq_resize($thumbnailURL,$slidewidth, false); 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;} ?>
  • <?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 ) { $attachment_url = wp_get_attachment_url( $attachment, 'full' ); $alt = get_post_meta( $attachment, '_wp_attachment_image_alt', true ); $image = aq_resize( $attachment_url, 360, 360, true ); if ( empty( $image ) ) { $image = $attachment_url; } ?>
  • <?php esc_attr( $alt ); ?>
ID, '_kad_post_video', true ); ?>