diff --git a/README.md b/README.md index 135230e..20be263 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,15 @@ # [DPlayer_for_Z-BlogPHP](https://app.zblogcn.com/?id=1033) + +## 2018-6-9更新 + +添加了插入按钮↙,不过只支持自带的UE编辑器,其他编辑器就得手动复制了😝 + +目前属于能用就行的阶段🤣 + +下上图: + +![效果图](https://www.menhood.wang/iframe/dpplaylist/insertdemo.png) + Demo:https://www.fghrsh.net/post/57.html 效果截图 @@ -18,4 +29,4 @@ Demo:https://www.fghrsh.net/post/57.html 更多说明见 Z-Blog 应用中心 https://app.zblogcn.com/?id=1033 ## LICENSE -MIT © [FGHRSH](https://www.fghrsh.net) \ No newline at end of file +MIT © [FGHRSH](https://www.fghrsh.net) diff --git a/include.php b/include.php index b34faba..16f2550 100644 --- a/include.php +++ b/include.php @@ -7,6 +7,9 @@ function ActivePlugin_DPlayer() { Add_Filter_Plugin('Filter_Plugin_ViewPost_Template', 'DPlayer_Filter_Plugin_ViewPost_Template'); Add_Filter_Plugin('Filter_Plugin_ViewList_Template', 'DPlayer_Filter_Plugin_ViewList_Template'); Add_Filter_Plugin('Filter_Plugin_Zbp_MakeTemplatetags', 'DPlayer_Filter_Plugin_Zbp_MakeTemplatetags'); + Add_Filter_Plugin('Filter_Plugin_Edit_Response5','DPlayer_Edit_5'); + Add_Filter_Plugin('Filter_Plugin_Admin_Header','SCP_frame_src'); + Add_Filter_Plugin('Filter_Plugin_Other_Header','SCP_frame_src'); } function DPlayer_Filter_Plugin_ViewPost_Template(&$template) { @@ -34,6 +37,143 @@ function DPlayer_Filter_Plugin_Zbp_MakeTemplatetags() { ''."\n". ''; } +function SCP_frame_src(){ + echo ''. "\r\n"; +} +function DPlayer_Edit_5(){ + echo << + +
+
+ +
+

图片地址格式:

http://ddns.menhood.wang/img.jpg +
+

视频地址格式

:http://ddns.menhood.wang/video.mp4 +
+

图片地址:

+
+

视频地址:

+
+

是否开启弹幕:

+
+

是否开启自动播放:

+
+

是否开启预加载:

+ +
+ + + + +
+ +
+ 复制成功,请将短代码粘贴到编辑器内 +
+ +
+EOF; +} function InstallPlugin_DPlayer() { global $zbp,$obj,$bucket; @@ -67,4 +207,4 @@ function UninstallPlugin_DPlayer() { file_put_contents(dirname(__FILE__)."/DPlayer.min.js", $dpjs); } $zbp->DelConfig('DPlayer'); -} \ No newline at end of file +}