当前位置: 首页>>代码示例>>PHP>>正文


PHP get_video函数代码示例

本文整理汇总了PHP中get_video函数的典型用法代码示例。如果您正苦于以下问题:PHP get_video函数的具体用法?PHP get_video怎么用?PHP get_video使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_video函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: print_blog_thumbnail

function print_blog_thumbnail($post_id, $item_size)
{
    $thumbnail_types = get_post_meta($post_id, 'post-option-thumbnail-types', true);
    if ($thumbnail_types == "Image" || empty($thumbnail_types)) {
        $thumbnail_id = get_post_thumbnail_id($post_id);
        $thumbnail = wp_get_attachment_image_src($thumbnail_id, $item_size);
        $alt_text = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
        if (!empty($thumbnail)) {
            echo '<div class="blog-thumbnail-image">';
            echo '<a href="' . get_permalink() . '"><img src="' . $thumbnail[0] . '" alt="' . $alt_text . '"/></a></div>';
        }
    } else {
        if ($thumbnail_types == "Video") {
            $video_link = get_post_meta($post_id, 'post-option-thumbnail-video', true);
            echo '<div class="blog-thumbnail-video">';
            echo get_video($video_link, gdl_get_width($item_size), gdl_get_height($item_size));
            echo '</div>';
        } else {
            if ($thumbnail_types == "Slider") {
                $slider_xml = get_post_meta($post_id, 'post-option-thumbnail-xml', true);
                $slider_xml_dom = new DOMDocument();
                $slider_xml_dom->loadXML($slider_xml);
                echo '<div class="blog-thumbnail-slider">';
                echo print_flex_slider($slider_xml_dom->documentElement, $item_size);
                echo '</div>';
            }
        }
    }
}
开发者ID:uglmee,项目名称:kikiku.com,代码行数:29,代码来源:blog-item.php

示例2: video

function video()
{
    get_video();
    video_categories();
    video_favorites();
    video_genres();
    video_link();
}
开发者ID:Eugen1985,项目名称:stalker_portal,代码行数:8,代码来源:video.php

示例3: widget

 function widget($args, $instance)
 {
     global $wpdb;
     extract($args);
     $title = apply_filters('widget_title', $instance['title']);
     $source = $instance['source'];
     $height = $instance['height'];
     echo $before_widget;
     // Widget Title
     echo $before_title . $title . $after_title;
     echo '<div class="video-widget1-1">';
     get_video($source, 300, $height);
     echo '</div>';
     // 1-1 Video Widget
     echo $after_widget;
 }
开发者ID:VipinMundayad,项目名称:ChinUpd8,代码行数:16,代码来源:video-widget.php

示例4: print_event_thumbnail

 public function print_event_thumbnail($post_id, $item_size)
 {
     global $counter;
     //Get Post Meta Options
     $img_html = '';
     $event_thumbnail = '';
     $video_url_type = '';
     $select_slider_type = '';
     $event_detail_xml = get_post_meta($post_id, 'event_detail_xml', true);
     if ($event_detail_xml != '') {
         $cp_event_xml = new DOMDocument();
         $cp_event_xml->loadXML($event_detail_xml);
         $event_thumbnail = find_xml_value($cp_event_xml->documentElement, 'event_thumbnail');
         $video_url_type = find_xml_value($cp_event_xml->documentElement, 'video_url_type');
         $select_slider_type = find_xml_value($cp_event_xml->documentElement, 'select_slider_type');
         //Print Image
         if ($event_thumbnail == "Image" || empty($event_thumbnail)) {
             if (get_the_post_thumbnail($post_id, $item_size) != '') {
                 $img_html = '<div class="post_featured_image thumbnail_image">';
                 $img_html = $img_html . get_the_post_thumbnail($post_id, $item_size);
                 $img_html = $img_html . '</div>';
             }
             //echo '<div class="mask"><a href="'.get_permalink().'"#comments" class="anchor"><span> </span> <i class="fa fa-comment"></i></a><a href="'. get_permalink().'" class="anchor"> <i class="fa fa-link"></i></a></div>';
         } else {
             if ($event_thumbnail == "Video") {
                 //Print Video
                 if ($video_url_type != '') {
                     $img_html = '<div class="post_featured_image thumbnail_image">';
                     $img_html = $img_html . '<div class="blog-thumbnail-video">';
                     //echo cp_get_width($item_size);
                     if (cp_get_width($item_size) == '175') {
                         $img_html = $img_html . get_video($video_url_type, cp_get_width($item_size), cp_get_height($item_size));
                     } else {
                         $img_html = $img_html . get_video($video_url_type, '100%', cp_get_height($item_size));
                     }
                     $img_html = $img_html . '</div></div>';
                 }
             } else {
                 if ($event_thumbnail == "Slider") {
                     //Print Slider
                     $slider_xml = get_post_meta(intval($select_slider_type), 'cp-slider-xml', true);
                     if ($slider_xml != '') {
                         $slider_xml_dom = new DOMDocument();
                         $slider_xml_dom->loadXML($slider_xml);
                         $slider_name = 'bxslider' . $counter . $post_id;
                         //Included Anything Slider Script/Style
                         wp_register_script('cp-bx-slider', CP_PATH_URL . '/frontend/js/bxslider.min.js', false, '1.0', true);
                         wp_enqueue_script('cp-bx-slider');
                         wp_enqueue_style('cp-bx-slider', CP_PATH_URL . '/frontend/css/bxslider.css');
                         if (cp_get_width($item_size) == '175') {
                             $img_html = "<style>#'" . $slider_name . "'{width:'" . cp_get_width($item_size) . "'px;height:'" . cp_get_height($item_size) . "'px;float:left;}</style>";
                         } else {
                             $img_html = "<style>#'" . $slider_name . "'{width:100%;height:350px;float:left;}</style>";
                         }
                         $img_html = '<div class="post_featured_image thumbnail_image">';
                         $img_html = $img_html . print_bx_slider($slider_xml_dom->documentElement, $item_size, $slider_name);
                         $img_html = $img_html . '</div>';
                     }
                 }
             }
         }
     }
     return $img_html;
 }
开发者ID:pcco,项目名称:portal-redesign,代码行数:64,代码来源:cp_events.php

示例5: print_anything_slider

function print_anything_slider($slider_xml, $size = '980x360')
{
    if (empty($slider_xml)) {
        return;
    }
    global $gdl_is_responsive;
    echo '<ul id="slider" class="anythingSlider" style="width:' . gdl_get_width($size) . 'px; height:' . gdl_get_height($size) . 'px;">';
    foreach ($slider_xml->childNodes as $slider) {
        $title = find_xml_value($slider, 'title');
        $caption = html_entity_decode(find_xml_value($slider, 'caption'));
        $link = find_xml_value($slider, 'link');
        $link_type = find_xml_value($slider, 'linktype');
        $image_url = wp_get_attachment_image_src(find_xml_value($slider, 'image'), $size);
        echo '<li>';
        if ($link_type == 'Link to Video') {
            echo get_video($link, gdl_get_width($size), gdl_get_height($size));
        } else {
            if ($link_type == 'Lightbox') {
                $image_full_url = wp_get_attachment_image_src(find_xml_value($slider, 'image'), 'full');
                echo '<a href="' . $image_full_url[0] . '" data-rel="prettyPhoto" title=""  >';
            } else {
                if ($link_type != 'No Link') {
                    echo '<a href="' . $link . '" alt="" >';
                }
            }
            echo '<img src="' . $image_url[0] . '" alt="" />';
            if (!empty($title) || !empty($caption)) {
                echo '<div class="caption-bottom gdl-slider-caption">';
                echo '<div class="gdl-slider-title gdl-title">' . $title . '</div>' . $caption;
                echo '</div>';
            }
            if ($link_type != 'No Link') {
                echo '</a>';
            }
        }
        echo '</li>';
    }
    echo "</ul>";
}
开发者ID:uglmee,项目名称:kikiku.com,代码行数:39,代码来源:misc.php

示例6: print_portfolio


//.........这里部分代码省略.........
                $category_slug = $category_slug . $item_category->slug . ' ';
            }
        }
        // start printing data
        echo '<div class="' . $item_class . $category_slug . ' portfolio-item">';
        $thumbnail_types = get_post_meta($post->ID, 'post-option-thumbnail-types', true);
        if ($thumbnail_types == "Image") {
            $image_type = get_post_meta($post->ID, 'post-option-featured-image-type', true);
            $image_type = empty($image_type) ? "Link to Current Post" : $image_type;
            $thumbnail_id = get_post_thumbnail_id();
            $thumbnail = wp_get_attachment_image_src($thumbnail_id, $item_size);
            $alt_text = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
            if ($image_type == "Link to Current Post") {
                $hover_thumb = "hover-link";
                $pretty_photo = "";
                $permalink = get_permalink();
            } else {
                if ($image_type == "Link to URL") {
                    $hover_thumb = "hover-link";
                    $pretty_photo = "";
                    $permalink = get_post_meta($post->ID, 'post-option-featured-image-url', true);
                } else {
                    if ($image_type == "Lightbox to Current Thumbnail") {
                        $hover_thumb = "hover-zoom";
                        $pretty_photo = ' data-rel="prettyPhoto" ';
                        $permalink = wp_get_attachment_image_src($thumbnail_id, 'full');
                        $permalink = $permalink[0];
                    } else {
                        if ($image_type == "Lightbox to Picture") {
                            $hover_thumb = "hover-zoom";
                            $pretty_photo = ' data-rel="prettyPhoto" ';
                            $permalink = get_post_meta($post->ID, 'post-option-featured-image-url', true);
                            $permalink = $permalink;
                        } else {
                            $hover_thumb = "hover-video";
                            $pretty_photo = ' data-rel="prettyPhoto" ';
                            $permalink = get_post_meta($post->ID, 'post-option-featured-image-url', true);
                            $permalink = $permalink;
                        }
                    }
                }
            }
            if (!empty($thumbnail[0])) {
                echo '<div class="portfolio-thumbnail-image">';
                echo '<div class="overflow-hidden">';
                echo '<a href="' . $permalink . '" ' . $pretty_photo . ' title="' . get_the_title() . '">';
                echo '<span class="portfolio-thumbnail-image-hover">';
                echo '<span class="' . $hover_thumb . '"></span>';
                echo '</span>';
                echo '</a>';
                echo '<img src="' . $thumbnail[0] . '" alt="' . $alt_text . '"/>';
                echo '</div>';
                // overflow-hidden
                echo '</div>';
                // portfolio-thumbnail-image
            } else {
                echo '<div class="port-no-image" style="width:' . gdl_get_width($item_size) . 'px; height: ' . gdl_get_height($item_size) . 'px;"></div>';
            }
        } else {
            if ($thumbnail_types == "Video") {
                $video_link = get_post_meta($post->ID, 'post-option-thumbnail-video', true);
                echo '<div class="portfolio-thumbnail-video">';
                echo get_video($video_link, gdl_get_width($item_size), gdl_get_height($item_size));
                echo '</div>';
            } else {
                if ($thumbnail_types == "Slider") {
                    $slider_xml = get_post_meta($post->ID, 'post-option-thumbnail-xml', true);
                    $slider_xml_dom = new DOMDocument();
                    $slider_xml_dom->loadXML($slider_xml);
                    echo '<div class="portfolio-thumbnail-slider">';
                    echo print_flex_slider($slider_xml_dom->documentElement, $item_size);
                    echo '</div>';
                }
            }
        }
        $show_port_title = find_xml_value($item_xml, "show-title") == "Yes";
        $show_port_excerpt = find_xml_value($item_xml, "show-excerpt") == "Yes";
        if ($show_port_excerpt || $show_port_title) {
            echo '<div class="portfolio-thumbnail-context">';
            // portfolio title
            if ($show_port_title) {
                echo '<h2 class="portfolio-thumbnail-title port-title-color gdl-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
            }
            // portfolio excerpt
            if ($show_port_excerpt) {
                echo '<div class="portfolio-thumbnail-content">' . mb_substr(get_the_excerpt(), 0, $num_excerpt) . '</div>';
            }
            echo '</div>';
            // portfolio thumbnail context
        }
        echo '</div>';
        // portfolio item
    }
    echo "</div>";
    // portfolio item holder
    echo '<div class="clear"></div>';
    if (find_xml_value($item_xml, "pagination") == "Yes") {
        pagination();
    }
}
开发者ID:uglmee,项目名称:kikiku.com,代码行数:101,代码来源:page-item.php

示例7: get_portfolio_media

    function get_portfolio_media($param)
    {
        global $post;
        $gallery_field = tt_getmeta('portfolio_gallery');
        $video_field = tt_getmeta('portfolio_video_mp4');
        if ($gallery_field != '') {
            ?>
<section class="portfolio-slider">
	<div class="swiper-container layout-<?php 
            echo $param['layout'];
            ?>
">
		<div class="swiper-wrapper">
			<?php 
            if ($video_field != '') {
                $fimage = '';
                if (has_post_thumbnail(get_the_ID())) {
                    $image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'blog');
                    $fimage = $image[0];
                }
                $video_embed = get_video(array('video' => $video_field, 'poster' => $fimage));
                echo "<div class='swiper-slide video'><div class='entry-media video-wrapper' style='display:none;'>{$video_embed}</div></div>";
            }
            $gimages = explode(',', $gallery_field);
            foreach ($gimages as $img_id) {
                $img = wp_get_attachment_url($img_id);
                echo '<div class="swiper-slide" style="background-image:url(' . $img . ');"></div>';
            }
            ?>
		</div>

		<div class="swiper-control-prev"><i class="fa fa-angle-left"></i></div>
		<div class="swiper-control-next"><i class="fa fa-angle-right"></i></div>
		<div class="swiper-pagination"></div>

	</div>
</section>
<?php 
        }
    }
开发者ID:petersondrs,项目名称:tellura,代码行数:40,代码来源:single-portfolio.php

示例8: print_single_blog_thumbnail

function print_single_blog_thumbnail($post_id, $item_size)
{
    $thumbnail_types = get_post_meta($post_id, 'post-option-inside-thumbnail-types', true);
    if ($thumbnail_types == "Image" || empty($thumbnail_types)) {
        $thumbnail_id = get_post_meta($post_id, 'post-option-inside-thumbnial-image', true);
        $thumbnail = wp_get_attachment_image_src($thumbnail_id, $item_size);
        $thumbnail_full = wp_get_attachment_image_src($thumbnail_id, 'full');
        $alt_text = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
        if (!empty($thumbnail)) {
            echo '<div class="blog-media-wrapper gdl-image">';
            echo '<a href="' . $thumbnail_full[0] . '" data-rel="fancybox" title="' . get_the_title() . '">';
            echo '<img src="' . $thumbnail[0] . '" alt="' . $alt_text . '"/>';
            echo '</a>';
            echo '</div>';
            // blog-media-wrapper
        }
    } else {
        if ($thumbnail_types == "Video") {
            $video_link = get_post_meta($post_id, 'post-option-inside-thumbnail-video', true);
            echo '<div class="blog-media-wrapper gdl-video">';
            echo get_video($video_link, gdl_get_width($item_size), gdl_get_height($item_size));
            echo '</div>';
            // blog-media-wrapper
        } else {
            if ($thumbnail_types == "Slider") {
                $slider_xml = get_post_meta($post_id, 'post-option-inside-thumbnail-xml', true);
                $slider_xml_dom = new DOMDocument();
                $slider_xml_dom->loadXML($slider_xml);
                echo '<div class="blog-media-wrapper gdl-slider">';
                echo print_flex_slider($slider_xml_dom->documentElement, $item_size);
                echo '</div>';
                // blog-media-wrapper
            } else {
                if ($thumbnail_types == "HTML5 Video") {
                    $video = get_post_meta($post_id, 'post-option-inside-thumbnail-html5-video', true);
                    echo '<div class="blog-media-wrapper gdl-html5-video">';
                    get_html5_video($video);
                    echo '</div>';
                    // blog-media-wrapper
                }
            }
        }
    }
}
开发者ID:shimion,项目名称:preview1,代码行数:44,代码来源:blog-item.php

示例9: get_video

        echo "<li><div class=\"pageSlide\">\n\t\t\t\t\t\t<a href=\"{$url}\" title=\"{$symbol} - {$name}\">\n\t\t\t\t\t\t\t<img src=\"{$thumb}\" alt=\"{$symbol} - {$name}\"/>\n\t\t\t\t\t\t\t<div class=\"maskMv\"></div>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div></li>";
    }
    ?>
			</ul>
		</div>
	</div>
	<div class="watch-video">
		<div id="mainVideo" class="main">
			<div class="scroll">
				<span class="title hide_info"><a href="<?php 
    echo SITE_URL;
    ?>
/video/" title="Video Mới">DANH SÁCH VIDEO</a></span>
				<ul style="width: 1168px; margin-left: 0px;">
					<?php 
    echo get_video('id != 0', 8, 'rand');
    ?>
				</ul>
			</div>
			<div class="clear">
			</div>
		</div>
	</div>
	<div class="comment-box">
		<div class="perlink">
			<span>Phim mới gần đây: </span>
			<?php 
    echo li_film_h3("id != '0'", 10);
    ?>
		</div>
		<div class="comment-notice">
开发者ID:jassonlazo,项目名称:GamersInvasion-Peliculas,代码行数:31,代码来源:tv.php

示例10: switch

 switch ($inside_thumbnail_type) {
     case "Image":
         $thumbnail_id = get_post_meta($post->ID, 'post-option-inside-thumbnial-image', true);
         $thumbnail = wp_get_attachment_image_src($thumbnail_id, $item_size);
         $thumbnail_full = wp_get_attachment_image_src($thumbnail_id, 'full');
         $alt_text = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
         if (!empty($thumbnail)) {
             echo '<div class="blog-thumbnail-image">';
             echo '<a href="' . $thumbnail_full[0] . '" data-rel="prettyPhoto" title="' . get_the_title() . '" ><img src="' . $thumbnail[0] . '" alt="' . $alt_text . '"/></a>';
             echo '</div>';
         }
         break;
     case "Video":
         $video_link = get_post_meta($post->ID, 'post-option-inside-thumbnail-video', true);
         echo '<div class="blog-thumbnail-video">';
         echo get_video($video_link, gdl_get_width($item_size), gdl_get_height($item_size));
         echo '</div>';
         break;
     case "Slider":
         $slider_xml = get_post_meta($post->ID, 'post-option-inside-thumbnail-xml', true);
         $slider_xml_dom = new DOMDocument();
         $slider_xml_dom->loadXML($slider_xml);
         echo '<div class="blog-thumbnail-slider">';
         echo print_flex_slider($slider_xml_dom->documentElement, $item_size);
         echo '</div>';
         break;
 }
 echo "<div class='clear'></div>";
 echo "<div class='single-content first-letter'>";
 echo the_content();
 echo "</div>";
开发者ID:uglmee,项目名称:kikiku.com,代码行数:31,代码来源:single.php

示例11: foreach

<?php

foreach ($_GET as $key => $item) {
    if ($key != 'link' and $key != 'debug') {
        $_GET['link'] .= '&' . $key . '=' . $item;
    }
}
if ($_GET['link']) {
    if ($_GET['debug']) {
        echo '<script>';
    }
    echo "window.document.write('" . preg_replace('/<\\/script>/', '</scr\'+\'ipt>', addslashes(get_video($_GET['link']))) . "');";
    if ($_GET['debug']) {
        echo '</script>';
    }
}
function get_video($link)
{
    $values = array(array('/youtube\\.com.*v=([^&]*)/i', '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{ID_VIDEO}"></param><embed src="http://www.youtube.com/v/{ID_VIDEO}" type="application/x-shockwave-flash" width="425" height="344"></embed></object>'), array('/video.google.*docid=([^&]*)/i', '<embed id="VideoPlayback" style="width:400px;height:326px" allowFullScreen="true" flashvars="fs=true" src="http://video.google.com/googleplayer.swf?docid={ID_VIDEO}" type="application/x-shockwave-flash"></embed>'), array('/(dailymotion)/i', '{DOWNLOAD%/<textarea id="video_player_embed_code_text" class="text" onclick="this\\.select\\(\\)" type="text">(.*?)<\\/textarea>/ism%html_entity_decode|}'), array('/metacafe\\.com\\/watch\\/(.*)\\//i', '<embed src="http://www.metacafe.com/fplayer/{ID_VIDEO}.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>'), array('/starsclips\\.net\\/videos\\.aspx\\/(.*)/i', '<object width="400" height="320"><param name="movie" value="http://www.starsclips.net/emb.aspx/{ID_VIDEO}"></param><param name="wmode" value="transparent"></param><embed src="http://www.starsclips.net/emb.aspx/{ID_VIDEO}" type="application/x-shockwave-flash" wmode="transparent" width="400" height="320"></embed></object>'), array('/vids\\.myspace\\.com.*?videoID=([^&]*)/i', '<object width="430px" height="386px"><param name="wmode" value="transparent"/><param name="allowscriptaccess" value="always"/><param name="movie" value="http://lads.myspace.com/videos/vplayer.swf"/><param name="flashvars" value="m={ID_VIDEO}"/><embed src="http://lads.myspace.com/videos/vplayer.swf" width="430" height="386" flashvars="m={ID_VIDEO}" type="application/x-shockwave-flash" allowscriptaccess="always" /></object>'), array('/myspacetv\\.com.*?videoID=([^&]*)/i', '<object width="430px" height="386px"><param name="wmode" value="transparent"/><param name="allowscriptaccess" value="always"/><param name="movie" value="http://lads.myspace.com/videos/vplayer.swf"/><param name="flashvars" value="m={ID_VIDEO}"/><embed src="http://lads.myspace.com/videos/vplayer.swf" width="430" height="386" flashvars="m={ID_VIDEO}" type="application/x-shockwave-flash" allowscriptaccess="always" /></object>'), array('/video\\.yahoo.*vid=([^&]*)/i', '<object width="512" height="323"><param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.2" /><param name="allowFullScreen" value="true" /><param name="flashVars" value="id={DOWNLOAD%/so\\.addVariable\\("id", "(.*?)"\\);/%}&vid={ID_VIDEO}&thumbUrl={DOWNLOAD%/so\\.addVariable\\("thumbUrl", "(.*?)"\\);/%}&embed=1" /><embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.2" type="application/x-shockwave-flash" width="512" height="323" allowFullScreen="true" flashVars="id={DOWNLOAD%/so\\.addVariable\\("id", "(.*?)"\\);/%}&vid={ID_VIDEO}&thumbUrl={DOWNLOAD%/so\\.addVariable\\("thumbUrl", "(.*?)"\\);/%}&embed=1" ></embed></object>'), array('/(photobucket\\.com)/i', '{DOWNLOAD%/<input name="txtThumbTag2" id="txtThumbTag2".*?value="(.*?)"/ism%html_entity_decode}'), array('/(filefront\\.com)/i', '{DOWNLOAD%/<input type"text" id="embedSrc" value=\'(.*?)\'/ism%}'), array('/veoh\\.com\\/videos\\/([^\\?]*)/i', '<embed src="http://www.veoh.com/videodetails2.swf?permalinkId={ID_VIDEO}&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="540" height="438" bgcolor="#000000" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'), array('/(vidilife\\.com)/i', '{DOWNLOAD%/<input type="text" name="url1" value="(.*?)"/%}'), array('/gametrailers\\.com\\/player\\/(.*?).html/i', '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392">      <param name="allowScriptAccess" value="sameDomain" />   <param name="allowFullScreen" value="true" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid={ID_VIDEO}"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid={ID_VIDEO}" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed> </object>'), array('/vidiac\\.com\\/video\\/(.*?)\\.htm/i', '<embed src="http://www.vidiac.com/vidiac.swf" FlashVars="video={ID_VIDEO}" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'), array('/gamespot\\.com\\/video\\//i', '<embed id="mymovie" width="432" height="362" flashvars="playerMode=embedded&movieAspect=4.3&flavor=EmbeddedPlayerVersion&skin=http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/one/skins/gamespot.png&paramsURI={DOWNLOAD%/so\\.addVariable\\(\'paramsURI\', \'(.*?)\'\\);/ism%}" wmode="transparent" allowscriptaccess="always" quality="high" name="mymovie" style="" src="http://image.com.com/gamespot/images/cne_flash/production/media_player/proteus/one/proteus2.swf" type="application/x-shockwave-flash"/>'), array('/(megavideo\\.com)/i', '{DOWNLOAD%/<input type="text" value=\'(.*?)\'/%}'), array('/vimeo\\.com\\/([^&]*)/i', '<object class="swf_holder" type="application/x-shockwave-flash" width="506" height="380" data="http://www.vimeo.com/moogaloop_local.swf?clip_id={ID_VIDEO}&amp;server=www.vimeo.com&amp;autoplay=0&amp;fullscreen=1&amp;show_portrait=0&amp;show_title=0&amp;show_byline=0&amp;md5=&amp;color="><param name="quality" value="high" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://www.vimeo.com/moogaloop_local.swf?clip_id={ID_VIDEO}&amp;server=www.vimeo.com&amp;autoplay=0&amp;fullscreen=1&amp;show_portrait=0&amp;show_title=0&amp;show_byline=0&amp;md5=&amp;color=" /></object>'), array('/(gamevideos\\.com)/i', '{DOWNLOAD%/Embed: <input.*value="(.*?)"/%html_entity_decode}'), array('/(tu\\.tv)/i', '{DOWNLOAD%/<input name="html".*value=\'(.*?)\'/%}'), array('/godtube\\.com.*viewkey=([^&]*)/i', '<embed src="http://godtube.com/flvplayer.swf" FlashVars="viewkey={ID_VIDEO}" wmode="transparent" quality="high" width="330" height="270" name="godtube" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>'), array('/myvideo.de\\/watch\\/(.*?)\\//i', "<object style='width:470px;height:406px;' width='470' height='406' type='application/x-shockwave-flash' data='http://www.myvideo.de/movie/{ID_VIDEO}'><param name='movie' value='http://www.myvideo.de/movie/{ID_VIDEO}'/><param name='AllowFullscreen' value='true' /><embed src='http://www.myvideo.de/movie/{ID_VIDEO}' width='470' height='406'></embed></object>"), array('/collegehumor.*video:(.*)/i', '<object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1819139&fullscreen=1" width="480" height="360" ><param name="allowfullscreen" value="true" /><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id={ID_VIDEO}&fullscreen=1" /></object>'), array('/comedycentral.*videoId=([^&]*)/i', "<embed FlashVars='videoId={ID_VIDEO}' src='http://www.comedycentral.com/sitewide/video_player/view/default/swf.jhtml' quality='high' bgcolor='#cccccc' width='332' height='316' name='comedy_central_player' align='middle' allowScriptAccess='always' allownetworking='external' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>"), array('/(slideshare\\.net)/i', '{DOWNLOAD%/<input.*?id="embedded_code" value="(.*?)"/%html_entity_decode}'), array('/revver\\.com\\/video\\/(.*?)\\//i', '<script src="http://flash.revver.com/player/1.0/player.js?mediaId:{ID_VIDEO};width:480;height:392;" type="text/javascript"></script>'), array('/sevenload\\.com\\/videos\\/(.*?)-/i', '<script type="text/javascript" src="http://de.sevenload.com/pl/{ID_VIDEO}/500x408"></script>'), array('/clipfish\\.de.*?videoid=([^&]*)/i', "<object width='464' height='380'><param name='movie' value='http://www.clipfish.de/videoplayer.swf?videoid={ID_VIDEO}' /><param name='allowFullScreen' value='true' /><embed src='http://www.clipfish.de/videoplayer.swf?videoid=MTMyNzg4fDI0NTY3MzM' width='464' height='380' name='player' allowFullScreen='true' type='application/x-shockwave-flash'></embed></object>"));
    foreach ($values as $value) {
        if (preg_match($value[0], $link, $matches)) {
            $id_video = $matches[1];
            return preg_replace_callback('/{.*?}/', create_function('$matches', 'switch (true){
case preg_match("/\\{ID_VIDEO\\}/", $matches[0]):
return "' . $id_video . '";
break;
case preg_match("/\\{LINK\\}/", $matches[0]):
return "' . $link . '";
break;
case preg_match("/\\{DOWNLOAD(.*?)%(.*?)%(.*?)\\}/", $matches[0], $matches2):
if (empty($matches2[1])) $matches2[1]="' . $link . '";
开发者ID:hyvs,项目名称:bepro,代码行数:31,代码来源:video.php

示例12: get_allpage

if (!$page) {
    $page = 1;
}
$limit = ($page - 1) * $num;
if ($limit < 0) {
    $limit = 0;
}
$arr = MySql::dbselect('id,name,url,duration,thumb', 'media', "id != 0 order by id desc LIMIT {$limit},{$num}");
$total = MySql::dbselect('id', 'media', "id != 0");
$allpage_site = get_allpage(count($total), $num, $page, SITE_URL . "/video/page-");
?>
<div class="hdvideo">
	<div class="hdhwap">
		<ul style="height:400px">
			<?php 
echo get_video('slide = 1', 7);
?>
		</ul>
		<div style="clear:both">
		</div>
		<a href="#" id="hvideo_control_prev" class="btn_pre_ft"></a><a href="#" id="hvideo_control_next" class="btn_next_ft"></a>
	</div>
	<script type="text/javascript">$(".hdhwap ul").carouFredSel({circular: false,infinite: false,auto : false,width: "100%",prev: {button: "#hvideo_control_prev",key: "left"},next: { button: "#hvideo_control_next",key: "right"},});</script>
	<div class="videos">
		<h2 class="title">Video mới</h2>
		<div class="vwap clearfix">
			<div class="vlist">
				<ul class="ulvdieo">
					<?php 
for ($i = 0; $i < count($arr); $i++) {
    $id = $arr[$i][0];
开发者ID:jassonlazo,项目名称:GamersInvasion-Peliculas,代码行数:31,代码来源:listvideo.php

示例13: get_video

            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. <br/>Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
            <div class="clear"></div>
          </div>
          
          <div class="divTextBlock">
            <h2>Textblock 2</h2>
            <div class="divImgLeft">
              <img title="" alt="" src="/website/themes/default/images/tmp/blank220x.gif"/>
            </div>
            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. <br/>Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
            <div class="clear"></div>
          </div> -->
          
          <?php 
get_video();
?>
          
          <?php 
if (has_image_gallery()) {
    ?>
            <div class="divImageGallery">
              <?php 
    get_image_gallery_title('h3');
    ?>
              <?php 
    get_image_gallery(10, '80x80', true, false, '660x');
    ?>
              <div class="clear"></div>
            </div>
          <?php 
开发者ID:BGCX261,项目名称:zoolu-svn-to-git,代码行数:31,代码来源:template_1.php

示例14: the_video

function the_video($video)
{
    echo get_video($video);
}
开发者ID:sockol,项目名称:3dcrestwhite.ru,代码行数:4,代码来源:helper-functions.php

示例15: get_servico

function get_servico($dbconn)
{
    $query = "SELECT * FROM requilib_website.servico";
    $query_response = mysql_query($query, $dbconn) or die(mysql_error());
    $counter = 0;
    $servico = [];
    while ($row = mysql_fetch_array($query_response)) {
        $servico[$counter]['id'] = $row['id'];
        $servico[$counter]['pagina'] = $row['pagina'];
        $servico[$counter]['titulo'] = $row['titulo'];
        $servico[$counter]['texto'] = $row['texto'];
        //get associated items
        $servico[$counter]['items'] = get_servico_items($dbconn, $servico[$counter]['id']);
        //get associated images
        $equipa[$counter]['img'] = get_img($dbconn, 'servico', $servico[$counter]['id']);
        //get associated videos
        $equipa[$counter]['video'] = get_video($dbconn, 'servico', $servico[$counter]['id']);
        $counter++;
        //proxima medicao da tabela SQL
    }
    echo json_encode(utf8ize($servico));
    return $servico;
}
开发者ID:OlieP,项目名称:RequilibrusRepo,代码行数:23,代码来源:db.php


注:本文中的get_video函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。