From c96056089681372eb589f6743ad8aa7dd298384d Mon Sep 17 00:00:00 2001 From: Volio Date: Thu, 27 Jul 2017 09:44:41 +0800 Subject: [PATCH] Update dplayer to new version --- .gitignore | 3 +-- Plugin.php | 19 ++++++++++++------- README.md | 5 +---- dist/DPlayer.min.js | 4 ---- dist/DPlayer.min.js.map | 1 - dplayer/dist/DPlayer.min.css | 2 ++ dplayer/dist/DPlayer.min.css.map | 1 + dplayer/dist/DPlayer.min.js | 2 ++ dplayer/dist/DPlayer.min.js.map | 1 + dplayer/plugin/flv.min.js | 7 +++++++ dplayer/plugin/hls.min.js | 7 +++++++ plugin/flv.min.js | 6 ------ plugin/hls.min.js | 6 ------ 13 files changed, 34 insertions(+), 30 deletions(-) delete mode 100644 dist/DPlayer.min.js delete mode 100644 dist/DPlayer.min.js.map create mode 100644 dplayer/dist/DPlayer.min.css create mode 100644 dplayer/dist/DPlayer.min.css.map create mode 100644 dplayer/dist/DPlayer.min.js create mode 100644 dplayer/dist/DPlayer.min.js.map create mode 100644 dplayer/plugin/flv.min.js create mode 100644 dplayer/plugin/hls.min.js delete mode 100644 plugin/flv.min.js delete mode 100644 plugin/hls.min.js diff --git a/.gitignore b/.gitignore index 40fd2b5..723ef36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -/.idea/* -/player/.git \ No newline at end of file +.idea \ No newline at end of file diff --git a/Plugin.php b/Plugin.php index 66468e5..cf05974 100644 --- a/Plugin.php +++ b/Plugin.php @@ -44,7 +44,11 @@ class DPlayer_Plugin implements Typecho_Plugin_Interface */ public static function playerHeader() { - echo ''; + $url = Helper::options()->pluginUrl . '/DPlayer'; + echo << + +EOF; } /** @@ -54,18 +58,19 @@ class DPlayer_Plugin implements Typecho_Plugin_Interface { $url = Helper::options()->pluginUrl . '/DPlayer'; if (Typecho_Widget::widget('Widget_Options')->plugin('DPlayer')->hls) { - echo "\n"; + echo "\n"; } if (Typecho_Widget::widget('Widget_Options')->plugin('DPlayer')->flv) { - echo "\n"; + echo "\n"; } echo << +