echo !empty($placeholder['radius']) ? $placeholder['radius'] : '5'; ?> , 'height': <?php echo !empty($placeholder['radius']) ? $placeholder['height'] : '6'; ?> }; </script> <!-- Content Area --> <?php $out = ''; $out_pre = ''; $columns = 3; $column_in_row = 1; $span = 12 / $columns; $images = new miss_gallery_attachments($limit = 999, $order = 'ASC', $post_id = get_the_ID()); $initial_width = 0; $region_width = 650; $minimal_height = 715; $itmes = array(); $out_item = ''; $template = '<div class="gallery-single-item" style="overflow: hidden; height: {{ div.height }}px; float: left;max-width: ' . $region_width . 'px"><a rel="prettyPhoto[group1]" href="{{ link.href }}" class="{{ link.class }} has_preview" title="{{ link.title }}"><img src="{{ img.src }}" alt="{{ img.alt }}" class="fit width" /><div class="preview_info_wrap"></div></a></div>'; if (count($images->get_media()) > 0) { foreach ($images->get_media() as $image) { $thumb = miss_wp_image($image->guid, $region_width, '715'); $image_path = explode($_SERVER['SERVER_NAME'], $thumb); if (!empty($image_path[1])) { $image_path = $_SERVER['DOCUMENT_ROOT'] . $image_path[1]; $image_size = @getimagesize($image_path); } else { @getimagesize($thumb);
/** * */ function post_type_additional_post_media() { if (get_post_meta(get_the_ID(), '_post_feature_display_type', true) == 'additional_images') { $images = new miss_gallery_attachments($limit = 999, $order = 'ASC', $post_id = get_the_ID()); if (count($images->get_media()) > 2) { echo '<div class="row-fluid media-images ' . get_post_type() . '"><div class="span12">'; $this_post_media_counter = 0; foreach ($images->get_media() as $image) { if ($this_post_media_counter > 0) { /* $double_resolution = (miss_get_setting('hires') == 'enabled') ? true : false; if ( $double_resolution == true ) { $width = 340; $height = 244; } else { $width = 170; $height = 122; } $thumb = miss_wp_image( $image->guid, $width, $height ); echo '<div class="single_post_image has_preview small-single-image"><a href="' . $image->guid . '"><img src="' . $thumb . '" /></a> <div class="preview_info_wrap"><a rel="prettyPhoto" href="' . $image->guid . '" title="" class="one_column_blog"></a><a class="controls img single" href="' . $image->guid . '" rel="prettyPhoto[' . get_post_type() . '_' . get_the_ID() . ']"><i class="im-icon-zoom-in"></i></a> <!-- /.controls --></div> </div>'; */ $width = 170; $height = 122; $thumb = miss_get_post_image($args = array('src' => $image->guid, 'img_class' => 'hover_fade_js image-resize w', 'width' => $width, 'height' => $height, 'echo' => false, 'preview_info_wrap' => false)); echo '<div class="single_post_image has_preview small-single-image"><a href="' . $image->guid . '">' . $thumb . '</a> <div class="preview_info_wrap"><a rel="prettyPhoto" href="' . $image->guid . '" title="" class="one_column_blog"></a><a class="controls img single" href="' . $image->guid . '" rel="prettyPhoto[' . get_post_type() . '_' . get_the_ID() . ']"><i class="im-icon-zoom-in"></i></a> <!-- /.controls --></div> </div>'; } $this_post_media_counter++; } echo '</div></div>'; } } }
</div> <div class="preview-info-wrapper"> <div class="controls"> <a href="<?php echo miss_get_post_image(array('width' => 'auto', 'height' => 'auto', 'get_src' => true, 'echo' => false)); ?> " class="control zoom" rel="prettyPhoto[<?php echo get_post_type() . '_' . get_the_ID(); ?> ]"><i class="marker im-icon-zoom-in"></i></a> </div> </div> </div> </div> <?php $images = new miss_gallery_attachments($limit = 999, $order = 'ASC', $post_id = get_the_ID()); //print_r($images->get_media()); //if ( count( $images->get_media() ) > 2 ) { echo '<div class="image-row second">'; $this_post_media_counter = 1; foreach ($images->get_media() as $image) { if ($this_post_media_counter > 0) { $thumb = miss_get_post_image($args = array('src' => $image->guid, 'img_class' => 'hover_fade_js image-resize w', 'width' => 109, 'height' => 109, 'echo' => false, 'preview_info_wrap' => false)); /*echo '<div class="single_post_image has_preview small-single-image"><a href="' . $image->guid . '">' . $thumb . '</a> <div class="preview_info_wrap"><a rel="prettyPhoto" href="' . $image->guid . '" title="" class="one_column_blog"></a><a class="controls img single" href="' . $image->guid . '" rel="prettyPhoto[' . get_post_type() . '_' . get_the_ID() . ']"><i class="im-icon-zoom-in"></i></a> <!-- /.controls --></div> </div>';*/ echo '<div class="preview-container preview-small base-preview"> <div class="preview-image"> ' . $thumb . ' </div> <div class="preview-info-wrapper">