Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( 'video' == get_post_format( get_the_ID() ) && '' != $et_video_url ){
- $video_embed = $wp_embed->shortcode( '', $et_video_url );
- $video_embed = preg_replace('/<embed /','<embed wmode="transparent" ',$video_embed);
- $video_embed = preg_replace('/<\/object>/','<param name="wmode" value="transparent" /></object>',$video_embed);
- $video_embed = preg_replace("/height=\"[0-9]*\"/", "height=350", $video_embed);
- $video_embed = preg_replace("/width=\"[0-9]*\"/", "width={$width}", $video_embed);
- echo $video_embed;
- } else {
- print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement