echo balanceTags($post_data['post_title']); ?> </a></h1> <?php } //postinfo echo getPostInfo(get_custom_option('set_post_info', null, $post_data['post_id']), $post_data); //main block in full Width style echo $fullwidth && $streampage_columns || $layout_isotope ? '</div><div class="sc_columns_item">' : ''; //thumb if (!$post_data['post_protected'] && get_custom_option('show_featured_image', null, $post_data['post_id']) == 'yes') { if ($post_data['post_gallery']) { echo balanceTags($post_data['post_gallery']); } else { if ($post_data['post_video']) { $post_thumb = $post_data['post_thumb'] != '' ? $post_data['post_thumb'] : getVideoImgCode($post_data['post_video_url']); echo getVideoFrame($post_data['post_video'], $post_thumb); } else { if ($post_data['post_audio']) { echo balanceTags($post_data['post_audio']); } else { if ($post_data['post_thumb'] && $post_data['post_format'] == 'image') { ?> <div class="postThumb thumbZooom"><?php echo balanceTags('<a href="' . $post_data['post_attachment'] . '" data-image="' . $post_data['post_attachment'] . '"><span class="icon-search thumb-ico"></span>' . $post_data['post_thumb'] . '</a>'); ?> </div> <?php } else { if ($post_data['post_thumb'] && $post_data['post_format'] != 'quote' && $post_data['post_format'] != 'aside') { ?>
function sc_video($atts, $content = null) { if (in_shortcode_blogger()) { return ''; } extract(shortcode_atts(array("id" => "", "url" => "", "src" => "", "image" => "", "title" => "", "autoplay" => "off", "width" => "", "height" => "", "top" => "", "bottom" => "", "left" => "", "right" => ""), $atts)); if ($src == '' && $url == '' && isset($atts[0])) { $src = $atts[0]; } $s = ($top !== '' ? 'margin-top:' . $top . 'px;' : '') . ($bottom !== '' ? 'margin-bottom:' . $bottom . 'px;' : '') . ($left !== '' ? 'margin-left:' . $left . 'px;' : '') . ($right !== '' ? 'margin-right:' . $right . 'px;' : ''); $block_size = getThumbSizes(array('thumb_size' => 'image_large', 'thumb_crop' => true, 'sidebar' => false)); $image = getAttachmentID($image); if ($image != 'no') { $image_thumb = getResizedImageURL($image, $block_size['w'], $block_size['h']); $image_youtube = getVideoImgCode($url); } $start_frame = $image != 'no' ? true : false; $url = getVideoPlayerURL($src != '' ? $src : $url); $output = ''; $video = '<div class="videoThumb"><video' . ($id ? ' id="sc_video_' . $id . '"' : '') . ' class="sc_video" src="' . $url . '" width="' . $width . '" height="' . $height . '"' . (is_single() ? $image != 'no' || sc_param_is_on($autoplay) ? ' autoplay="autoplay"' : '' : ($image != 'no' ? ' autoplay="autoplay"' : '')) . ($s != '' ? ' style="' . $s . '"' : '') . ' controls="controls"></video></div>'; if ($width == '') { $width = $block_size['w']; $height = $block_size['h']; } else { if ($width == '' || ($width = '100%')) { $width = $block_size['w']; $height = $block_size['h']; } } if ($image && $image != 'no') { $video = substituteVideo($video, $width, $height, $start_frame); $output = getVideoFrame($video, $image_thumb, $title, $autoplay, $s); } else { if ($image != 'no') { $video = substituteVideo($video, $width, $height, $start_frame); $output = getVideoFrame($video, $image_youtube, $title, $autoplay, $s); } else { $output = $video; } } return $output; }