ID, THEMESLUG . "rt_gallery_images", true )) ? get_post_meta( $post->ID, THEMESLUG . "rt_gallery_images", true ) : ""; $rt_gallery_image_titles = (get_post_meta( $post->ID, THEMESLUG . "rt_gallery_image_titles", true )) ? get_post_meta( $post->ID, THEMESLUG . "rt_gallery_image_titles", true ) : ""; $rt_gallery_image_descs = (get_post_meta( $post->ID, THEMESLUG . "rt_gallery_image_descs", true )) ? get_post_meta( $post->ID, THEMESLUG . "rt_gallery_image_descs", true ) : ""; $fist_featured_image = (is_array($rt_gallery_images)) ? find_image_org_path($rt_gallery_images[0]) : ""; $resize = (get_post_meta($post->ID, THEMESLUG.'blog_image_resize', true)) ? true : false; $is_old_post = (get_post_meta($post->ID, THEMESLUG.'is_old_post', true)=="1") ? false : true; $crop = (get_post_meta($post->ID, THEMESLUG.'blog_image_crop', true)) ? true : false; $width = (get_post_meta($post->ID, THEMESLUG.'blog_image_width', true)) ? get_post_meta($post->ID, THEMESLUG.'blog_image_width', true) : $image_width; $meta_height = get_post_meta($post->ID, THEMESLUG.'blog_image_height', true); $height = (!$meta_height && !$crop) ? 10000 : (($meta_height && !$crop) ? $meta_height : ($meta_height && $crop) ? $meta_height : $image_height); $img_position = (get_post_meta($post->ID, THEMESLUG.'featured_image_position', true)) ? get_post_meta($post->ID, THEMESLUG.'featured_image_position', true): "center"; $post_class_img = "featured_image_".$img_position; $featured_image_usage = get_post_meta($post->ID, THEMESLUG .'_featured_image_usage', true); $display_gallery_images = get_post_meta($post->ID, THEMESLUG .'_display_gallery_images', true); $post_format = !get_post_format() ? "post" : get_post_format(); $photo_gallery_images_width = (get_post_meta( $post->ID, THEMESLUG . "photo_gallery_images_width", true )) ? get_post_meta( $post->ID, THEMESLUG . "photo_gallery_images_width", true ) : 160; $photo_gallery_images_height = (get_post_meta( $post->ID, THEMESLUG . "photo_gallery_images_height", true )) ? get_post_meta( $post->ID, THEMESLUG . "photo_gallery_images_height", true ) : 160; $imageURL = ""; $post_uniqueID = 'post-'.get_the_ID().''; if($is_old_post && !$resize) $resize = true; //activate resizer for old posts //standart post types if($post_format == "post"){ if($fist_featured_image && $resize) { // if resize is on $image = @vt_resize('', $fist_featured_image, $width, $height, $crop ); $imageURL = $image["url"]; }else{ $imageURL = $fist_featured_image; } } //gallery post types if($post_format == "gallery"){ $imageURL = $fist_featured_image; } # # post formats # //post format images switch($post_format) { case 'gallery'; $post_format_image = "images.png"; break; case 'aside'; $post_format_image = "post.png"; break; case 'link'; $post_format_image = "link.png"; break; case 'quote'; $post_format_image = "comment.png"; break; case 'video'; $post_format_image = "video.png"; break; default; $post_format_image = "post.png"; break; } $post_format_image = THEMEURI.'/images/assets/icons/'.$post_format_image; ?> ID, THEMESLUG.'post_format_link', true); $link_html = ''.$link.''; }else{$link_html=false;} ?>
>
clearfix">

ID, THEMESLUG.'gallery_images_crop', true)) ? true : false; $gallery_images_height = get_post_meta($post->ID, THEMESLUG.'gallery_images_height', true); $gallery_w = $image_width; $gallery_h = ($gallery_crop) ? $gallery_images_height:10000; $gallery_list = ""; //slider option if(is_array($rt_gallery_images) && $featured_image_usage=="slider"){ for ($i=0; $i < (count($rt_gallery_images)); $i++) { $gallery_image_resized = vt_resize("" , trim($rt_gallery_images[$i]) ,$gallery_w, $gallery_h, $gallery_crop); $gallery_list .= "
  • "; $gallery_list .= ''.$rt_gallery_image_titles[$i].''; if($rt_gallery_image_titles[$i] || $rt_gallery_image_descs[$i]){ $gallery_list .= '
    '; if($rt_gallery_image_titles[$i]) $gallery_list .= '
    '.$rt_gallery_image_titles[$i].'
    '; if($rt_gallery_image_descs[$i]) $gallery_list .= '

    '.$rt_gallery_image_descs[$i].'

    '; $gallery_list .= '
  • '; } } echo << SCRIPT; echo '
      '.$gallery_list.'
    '; echo '
    '; } //gallery option if(is_array($rt_gallery_images) && $featured_image_usage=="gallery"){ for ($i=0; $i < (count($rt_gallery_images)); $i++) { $gallery_list .= '[image thumb_width="'.$photo_gallery_images_width.'" thumb_height="'.$photo_gallery_images_height.'" lightbox="true" custom_link="" title="'.$rt_gallery_image_titles[$i].'" caption="'.$rt_gallery_image_descs[$i].'"]'.$rt_gallery_images[$i].'[/image]'; } $gallery_list = '[photo_gallery]'.$gallery_list.'[/photo_gallery]'; echo apply_filters('the_content',($gallery_list)); } } ?> <?php echo $rt_gallery_image_descs[0]; ?>
    ID, THEMESLUG.'_post_audio_mp3', true); $post_audio_oga = get_post_meta($post->ID, THEMESLUG.'_post_audio_oga', true); //poster image $poster_image = ""; if($fist_featured_image && $resize) { // if resize is on $image = @vt_resize('', $fist_featured_image, $width, $height, $crop ); $poster_image = $image["url"]; }else{ $poster_image = $fist_featured_image; } ?>
    ID, THEMESLUG.'video_url', true); if ($video_url){ if( strpos($video_url, 'youtube') ) { //youtube echo ''; } if( strpos($video_url, 'vimeo') ) { //vimeo echo ''; } echo '
    '; }else{ $post_video_m4v = get_post_meta($post->ID, THEMESLUG.'_post_video_m4v', true); $post_video_ogv = get_post_meta($post->ID, THEMESLUG.'_post_video_ogv', true); //poster image $poster_image = ""; if($fist_featured_image && $resize) { // if resize is on $image = @vt_resize('', $fist_featured_image, $width, $height, $crop ); $poster_image = $image["url"]; }else{ $poster_image = $fist_featured_image; } ?>
    post_content) && $post_format!="aside"): $link=' '.__('read more →','rt_theme').'';else:$link="";endif; echo apply_filters('the_content',(get_the_content().$link)); ?>
    '; ?> 1 && $paged):?>