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;} ?>