赚钱餐饮加盟

大小:838.3M 类别:

官方免费 安全纠错

  • 更新时间2025-04-13
  • 版本V5.8
  • 权限查看
  • 系统Android
  • 语言中文
赚钱餐饮加盟 用手机怎么在今日头条上赚钱WordPress视频播放插件Smartideo插件代码预览<?php/*PluginName:SmartideoPluginURI:http://www.fengziliu.com/Description:Smartideo是为WordPress添加对在线视频支持的一款插件(支持手机、平板等...

WordPress视频播放插件Smartideo插件代码预览

<?php

/*

PluginName:Smartideo

PluginURI:http://www.fengziliu.com/

Description:Smartideo是为WordPress添加对在线视频支持的一款插件(支持手机、平板等设备HTML5播放)。目前支持优酷、搜狐视频、土豆、56、腾讯视频、新浪视频、酷6、华数、乐视等网站。

Version:1.2

Author:FensLiu

AuthorURI:http://www.fengziliu.com/smartideo-for-wordpress.html

*/

define('SMARTIDEO_VERSION','1.0');

define('SMARTIDEO_URL',plugins_url('',__FILE__));

define('SMARTIDEO_PATH',dirname(__FILE__));

$smartideo=newsmartideo();

classsmartideo{

private$width='100%';

private$height='500';

private$mobile_width='100%';

private$mobile_height='250';

publicfunction__construct(){

if(is_admin()){

add_action('admin_menu',array($this,'admin_menu'));

}

$option=get_option('smartideo_option');

if(!empty($option)){

$option=json_decode($option,true);

}else{

$option=array();

}

extract($option);

if(!empty($width)){

$this->width=$width;

}

if(!empty($height)){

$this->height=$height;

}

if(!empty($mobile_width)){

$this->mobile_width=$mobile_width;

}

if(!empty($mobile_height)){

$this->mobile_height=$mobile_height;

}

wp_embed_register_handler('smartideo_tudou',

'#https?://(?:www.)?tudou.com/(?:programs/view|listplay/(?<list_id>[a-z0-9_=-]+))/(?<video_id>[a-z0-9_=-]+)#i',

array($this,'smartideo_embed_handler_tudou'));

wp_embed_register_handler('smartideo_56',

'#https?://(?:www.)?56.com/[a-z0-9]+/(?:play_album-aid-[0-9]+_vid-(?<video_id1>[a-z0-9_=-]+)|v_(?<video_id2>[a-z0-9_=-]+))#i',

array($this,'smartideo_embed_handler_56'));

wp_embed_register_handler('smartideo_youku',

'#https?://v.youku.com/v_show/id_(?<video_id>[a-z0-9_=-]+)#i',

array($this,'smartideo_embed_handler_youku'));

wp_embed_register_handler('smartideo_qq',

'#https?://v.qq.com/(?:cover/g/[a-z0-9_.]+?vid=(?<video_id1>[a-z0-9_=-]+)|(?:[a-z0-9/]+)/(?<video_id2>[a-z0-9_=-]+))#i',

array($this,'smartideo_embed_handler_qq'));

wp_embed_register_handler('smartideo_sohu',

'#https?://my.tv.sohu.com/us/(?:d+)/(?<video_id>d+)#i',

array($this,'smartideo_embed_handler_sohu'));

wp_embed_register_handler('smartideo_wasu',

'#https?://www.wasu.cn/play/show/id/(?<video_id>d+)#i',

array($this,'smartideo_embed_handler_wasu'));

wp_embed_register_handler('smartideo_yinyuetai',

'#https?://v.yinyuetai.com/video/(?<video_id>d+)#i',

array($this,'smartideo_embed_handler_yinyuetai'));

wp_embed_register_handler('smartideo_ku6',

'#https?://v.ku6.com/show/(?<video_id>[a-z0-9-_.]+).html#i',

array($this,'smartideo_embed_handler_ku6'));

wp_embed_register_handler('smartideo_letv',

'#https?://www.letv.com/ptv/vplay/(?<video_id>d+)#i',

array($this,'smartideo_embed_handler_letv'));

}

publicfunctionsmartideo_embed_handler_tudou($matches,$attr,$url,$rawattr){

if(wp_is_mobile()){

$embed=$this->get_iframe("http://www.tudou.com/programs/view/html5embed.action?type=0&code={$matches['video_id']}");

}else{

$embed=$this->get_embed("http://www.tudou.com/v/{$matches['video_id']}/&resourceId=0_05_05_99&bid=05/v.swf");

}

returnapply_filters('embed_tudou',$embed,$matches,$attr,$url,$rawattr);

}

publicfunctionsmartideo_embed_handler_56($matches,$attr,$url,$rawattr){

$matches['video_id']=$matches['video_id1']==''?$matches['video_id2']:$matches['video_id1'];

if(wp_is_mobile()){

$embed=$this->get_iframe("http://www.56.com/iframe/{$matches['video_id']}");

}else{

$embed=$this->get_embed("http://player.56.com/v_{$matches['video_id']}.swf");

}

returnapply_filters('embed_56',$embed,$matches,$attr,$url,$rawattr);

}

publicfunctionsmartideo_embed_handler_youku($matches,$attr,$url,$rawattr){

if(wp_is_mobile()){

$embed=$this->get_iframe("http://player.youku.com/embed/{$matches['video_id']}");

}else{

$embed=$this->get_embed("http://player.youku.com/player.php/sid/{$matches['video_id']}/v.swf");

}

returnapply_filters('embed_youku',$embed,$matches,$attr,$url,$rawattr);

}

publicfunctionsmartideo_embed_handler_qq($matches,$attr,$url,$rawattr){

$matches['video_id']=$matches['video_id1']==''?$matches['video_id2']:$matches['video_id1'];

if(wp_is_mobile()){

$embed=$this->get_iframe("http://v.qq.com/iframe/player.html?vid={$matches['video_id']}");

}else{

$embed=$this->get_embed("http://static.video.qq.com/TPout.swf?vid={$matches['video_id']}");

}

returnapply_filters('embed_qq',$embed,$matches,$attr,$url,$rawattr);

}

publicfunctionsmartideo_embed_handler_sohu($matches,$attr,$url,$rawattr){

if(wp_is_mobile()){

$embed=$this->get_iframe("http://tv.sohu.com/upload/static/share/share_play.html#{$matches['video_id']}_0_0_9001_0");

}else{

$embed=$this->get_embed("http://share.vrs.sohu.com/my/v.swf&topBar=1&id={$matches['video_id']}&autoplay=false&xuid=&from=page");

}

returnapply_filters('embed_sohu',$embed,$matches,$attr,$url,$rawattr);

}

publicfunctionsmartideo_embed_handler_wasu($matches,$attr,$url,$rawattr){

if(wp_is_mobile()){

$embed=$this->get_iframe("http://www.wasu.cn/Play/iframe/id/{$matches['video_id']}");

}else{

$embed=$this->get_embed("http://s.wasu.cn/portal/player/20141216/WsPlayer.swf?mode=3&vid={$matches['video_id']}&auto=0&ad=4228");

}

returnapply_filters('embed_wasu',$embed,$matches,$attr,$url,$rawattr);

}

publicfunctionsmartideo_embed_handler_yinyuetai($matches,$attr,$url,$rawattr){

$embed=$this->get_embed("http://player.yinyuetai.com/video/player/{$matches['video_id']}/v_0.swf");

returnapply_filters('embed_yinyuetai',$embed,$matches,$attr,$url,$rawattr);

}

publicfunctionsmartideo_embed_handler_ku6($matches,$attr,$url,$rawattr){

$embed=$this->get_embed("http://player.ku6.com/refer/{$matches['video_id']}/v.swf");

returnapply_filters('embed_ku6',$embed,$matches,$attr,$url,$rawattr);

}

publicfunctionsmartideo_embed_handler_letv($matches,$attr,$url,$rawattr){

$embed=$this->get_embed("http://i7.imgs.letv.com/player/swfPlayer.swf?id={$matches['video_id']}&autoplay=0");

returnapply_filters('embed_letv',$embed,$matches,$attr,$url,$rawattr);

}

privatefunctionget_embed($url){

$embed=sprintf(

'<embedsrc="%1$s"allowFullScreen="true"quality="high"width="%2$s"height="%3$s"allowScriptAccess="always"type="application/x-shockwave-flash"></embed>',

$url,$this->width,$this->height);

return$embed;

}

privatefunctionget_iframe($url){

$iframe=sprintf(

'<iframesrc="%1$s"width="%2$s"height="%3$s"frameborder="0"allowfullscreen="true"></iframe>',

$url,$this->mobile_width,$this->mobile_height);

return$iframe;

}

publicfunctionadmin_menu(){

add_plugins_page('Smartideo设置','Smartideo设置','manage_options','smartideo_settings',array($this,'admin_settings'));

}

publicfunctionadmin_settings(){

if($_POST['smartideo_submit']=='保存'){

$param=array('width','height','mobile_width','mobile_height');

$json=array();

foreach($_POSTas$key=>$val){

if(in_array($key,$param)){

$json[$key]=$val;

}

}

$json=json_encode($json);

update_option('smartideo_option',$json);

}

$option=get_option('smartideo_option');

if(!empty($option)){

$option=json_decode($option,true);

}

if(empty($option['width'])){

$option['width']='100%';

}

if(empty($option['height'])){

$option['height']='500';

}

if(empty($option['mobile_width'])){

$option['mobile_width']='100%';

}

if(empty($option['mobile_height'])){

$option['mobile_height']='250';

}

echo'<h2>Smartideo设置</h2>';

echo'<formaction=""method="post">

      <tableclass="form-table">

<trvalign="top">

          <thscope="row">播放器宽度</th>

          <td>

            <label><inputtype="text"class="regular-textcode"name="width"value="'.$option['width'].'"></label>

            <br/>

            <pclass="description">默认宽度为100%</p>

          </td>

</tr>

<trvalign="top">

          <thscope="row">播放器高度</th>

          <td>

            <label><inputtype="text"class="regular-textcode"name="height"value="'.$option['height'].'"></label>

            <br/>

            <pclass="description">默认高度为500px</p>

          </td>

</tr>

        <trvalign="top">

          <thscope="row">移动设备播放器宽度</th>

          <td>

            <label><inputtype="text"class="regular-textcode"name="mobile_width"value="'.$option['mobile_width'].'"></label>

            <br/>

            <pclass="description">手机、平板等设备访问时,默认宽度为100%</p>

          </td>

</tr>

<trvalign="top">

          <thscope="row">移动设备播放器高度</th>

          <td>

            <label><inputtype="text"class="regular-textcode"name="mobile_height"value="'.$option['mobile_height'].'"></label>

            <br/>

            <pclass="description">手机、平板等设备访问时,默认高度为250px</p>

          </td>

</tr>

      </table>

      <pclass="submit"><inputtype="submit"name="smartideo_submit"id="submit"class="button-primary"value="保存"></p>

    </form>';

}

}

WordPress视频播放插件(Smartideo)怎么用

Smartideo插件使用方法

你可以直接粘贴视频播放也完整的URL到编辑器(单独一行),就可以加载视频播放器。

URL地址格式如下

http://v.youku.com/v_show/id_XMTYzNTgxNTMy.html

http://www.tudou.com/programs/view/YBdHhxJqrLY/

http://www.56.com/u35/v_MTEwMjM5NDcy.html

http://v.qq.com/page/o/9/f/o0142tt1m9f.html

http://v.qq.com/cover/t/tyeqdw6rof7t5ow/p0015kjlai9.html

http://my.tv.sohu.com/us/94469256/77228432.shtml

http://www.wasu.cn/Play/show/id/5079941

http://v.yinyuetai.com/video/2207109

http://v.ku6.com/show/P0Ib_pTne6-FBSa1AbtKUQ...html

http://www.letv.com/ptv/vplay/20932037.html

WordPress插件安装方法

[WordPress插件怎样安装WordPress插件安装方法]足球大小球

WordPress视频播放插件Smartideo怎么安装

WordPress视频播放插件(Smartideo)安装方法

你可以在后台插件管理页面中直接搜索Smartideo并安装.

或者上传文件夹smartideo至/wp-content/plugins/目录.

在插件管理页面中激活Smartideo.

在wordpress上播放在线视频要怎么设置呢?有了这款Smartideo视频插件就简单多了,它可以帮助你快速在wordpress添加在线视频,支持手机、平板的HTML5播放,它支持优酷、搜狐视频、土豆、56、腾讯视频、新浪视频、酷6、华数、乐视等热门网站的视频。

展开内容

应用信息

  • 厂商:杭州电魂网络科技股份有限公司
  • 包名:com.def.photo
  • MD5:b724232bccf68fd7585ccd0e355124f8
  • 年龄:12+
  • 备案号:备案号:京5L-201481170-92F
  • 无需网络 无广告

类似应用

  • 众推帮手app赚钱怎么样

    8.0/373.5M

    对于在企业上班来说,企业员工之间的通话很有必要。但是却总是在为合适的软件发愁,这时你可以选择智企ID,让你再也不必这样烦恼,这款软件使用起来简单,操作也不复杂,...

    查看
  • 瓯北周末兼职美术老师

    8.0/1,667.0M

    通过十大股东的名单我们可以找出一些隐藏着的主力,但并不是所有的主力都是可以通过这种方式找到,所以这是一个在数学上来说属于充分但不必要的条件。本软件可以达到这个功...

    查看
  • 大学生兼职创业策划书

    9.4/1,834.8M

    StyleIdol(时尚偶像装扮游戏),都是劲舞团中的角色,服装道具丰富,自由的进行装扮,还有各种动作,摆出姿势创作出各种情景剧。游戏特色1.可以使用多不胜数的...

    查看
  • 新密学生妹兼职

    9.3/1,054.2M

    DreamweaverCS3Mac版,是一款专业性质的网页制作工具,包含HTML检查、HTML格式控制、HTML格式化选项等,利用它可以轻而易举地制作出跨越平台...

    查看
  • 什么石油公司能赚钱

    8.1/378.7M

    喜步通app是一款最新推出的运动计步软件,可以帮助用户记录自己的步数,并且可以帮助用户记录每日饮食,推荐饮食,让你生活更健康!喜步通app介绍步步喜乐,日日健康...

    查看
  • 兼职平模被骗

    8.4/1,283.5M

    潮男是怎么搭配衣服的?潮男搭配衣服的软件可以给你提供帮助,让你掌控整个潮流前线,穿出男性的个性魅力,吸引美眉们的眼球。这个追逐潮流的时代,爱美已经不是女人的专利...

    查看
  • 217棋牌游戏官网

    7.6/1,165.0M

    专为量波官方的帝源全屋净化器打造的一款配套软件,量波未来app可以与手机智能相连,实时观看家里的pm2.5数据,对温度、温度多种数据进行监控和管理,智能掌握家里...

    查看
  • 最适合小学生赚钱工作

    7.8/345.9M

    易度文档管理系统电脑上面最方便的文件管理系统了,也是很多的公司办公人员都是需要的一款办公软件,需要的现在就可以来免费的下载试试!易度文档管理系统官方介绍易度文档...

    查看
  • 二手车贩子赚钱么

    9.5/1,749.4M

    惊蛰是一个万物复苏的季节,惊蛰的到来意味着寒冷的冬天即将过去,温暖的春天即将迎来。但是武汉的天气,惊蛰确实冷风来袭,小编为大家收集整理2018惊蛰图片大全,让大...

    查看
  • 余额宝提现怎么这么慢

    9.0/460.6M

    圣武星辰是一款玄幻修仙手游,游戏中可以热血对战,独特的玩法,首冲即送大礼包,非常好玩的玩法,华丽的特技,畅爽的战斗,丰富的宠物,一起冒险,剧情体验,打击玩法。圣...

    查看

网友评论

532人参与,132条评论
  • 评论需审核后才能显示

同类排行

  • 棋牌平台可以透视

    7.6/1,313.8M

    商家和用户都可以用的一个助手软件,爆单宝小助手app能有效帮助商家提升商品产品的信息的流量,搜索量和排名的提现,用户可以通过此平台完成任务然后获得一定的佣金奖励...

    查看
  • 黄金岛棋牌手机版平板

    7.6/1,654.1M

    “宽带保姆”是中国电信宽带自助服务软件。它通过电脑客户端软件,准确分拣电脑及宽带故障,实现宽带自助服务、网络系统双体验。拥有宽带保姆就像拥有了随时陪伴在身边的全...

    查看
  • 糖果派对试玩官方网站

    8.4/1,996.8M

    iPhoneCall安卓仿苹果来电显示软件是一款安卓仿苹果手机系统的应用,这个主要是仿苹果的来电显示,软件可以一键更改手机的来电界面,各种通话功能也都可以使用,...

    查看
  • 偏门赚钱的方法

    7.9/59.7M

    四川宜宾仙源南溪宜居之城官方政务服务平台,仙源南溪app专属南溪人的app,这里可以了解南溪本地的方方面面,政务服务,学校,景东,医院,商业等全线上服务,了解南...

    查看
  • 暑假做什么兼职工作

    8.1/1,781.9M

    Datarecoverysoftware快易数据恢复软件是一款恢复U盘数据的软件,人难免有失误的时候误删了重要的软件怎么办,U盘中毒了保存的东西都没了怎么办,有...

    查看
  • 挂机赚钱怎么赚

    7.5/1,673.6M

    UltraEditV14.0完美注册机...

    查看
  • 现在做什么行业暴利

    9.2/1,400.5M

    神奇发型屋app是一款专业发型设计与换发型神器,提供了丰富的发型,时尚百搭明星发型,变换头发颜色,帮你发现最美发型。神奇发型屋怎么用1、选择或者现场拍摄一张正脸...

    查看
  • 棋牌游戏试玩赚钱平台

    9.8/738.0M

    爱自拍,爱美图的你,你是不是都是非常的需要各种各样的美图的软件的,喜欢玩自己的照片的你,就现在可以来免费的下载最新的玩图苹果版,功能强大哦!玩图苹果版特色功能【...

    查看
  • 熊猫棋牌有挂吗

    8.0/1,178.7M

    还是不熟悉的植物大战僵尸核心玩法,只是这里的植物变得更加萌萌哒,僵尸也变成了各种各样的怪兽,不用的怪兽有不同的技能,需要选择种植不同的植物来对付他们,如果你也喜...

    查看
  • 广告风云全集哪里看

    7.8/993.0M

    仙剑奇侠传4是仙剑奇侠传的正统续作第四部,在游戏内容和玩法上会更丰富一些。该修改器是一款读取内存的修改工具,如图所示,修改功能一目了然,杀软误报外挂,无视即可。...

    查看
  • 重庆电脑兼职招聘

    9.9/78.2M

    憨憨欢乐派对游戏这款游戏的休闲性非常的高,而且游戏的画质特别的清晰,画面风格非常的有趣,萌趣生动,还有很多角色可以选择,多种玩法挑战,每一种都可以给你留下非常深...

    查看
  • 网上的兼职是真的吗

    7.8/310.5M

    2020年12个月新增男友0确诊男友0疑似男友0被造谣成海王13684次,这一组图片在抖音上面超级火!现在单身的朋友太多了,也太难了啊!为什么想脱个单这么难的,...

    查看
  • 我才是棋牌提现失败

    9.0/1,950.3M

    光影世界是一款非常好玩的恋爱冒险养成手游。游戏有着宏大的世界观,玩家将进入一个全新的魔法的世界。多种剧情等你来解答。丰富的游戏模式,还有精美的人物立绘,各种美少...

    查看
  • 汇发棋牌-上?博玩

    8.9/695.9M

    热血奥特曼九游版可使用九游专属账号进行登录并存档,这是今年全新开测的一款奥特曼系列手游,目前来说画面和内容还不错,后续也会不断地维护更新,这里的每一位奥特曼都精...

    查看
  • 2018汽车后市场最赚钱

    9.0/850.8M

    微商云库是一款微商使用最多的神器,有一键转图,高清上图,水印设置的功能,软件可快速通知您的代理员工客户进行查看和转发,方便而且实用,还是很好用的。微商云库应用介...

    查看
即下(838.3M)