Changeset 1694456
- Timestamp:
- 07/11/2017 01:15:56 PM (9 years ago)
- Location:
- dplayer-for-wp
- Files:
-
- 1 deleted
- 2 edited
- 4 copied
-
tags/1.1.9 (copied) (copied from dplayer-for-wp/trunk)
-
tags/1.1.9/dplayer (copied) (copied from dplayer-for-wp/trunk/dplayer)
-
tags/1.1.9/dplayer.php (copied) (copied from dplayer-for-wp/trunk/dplayer.php) (4 diffs)
-
tags/1.1.9/js (deleted)
-
tags/1.1.9/readme.txt (copied) (copied from dplayer-for-wp/trunk/readme.txt) (1 diff)
-
trunk/dplayer.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dplayer-for-wp/tags/1.1.9/dplayer.php
r1694437 r1694456 3 3 * Plugin Name: DPlayer for WordPress 4 4 * Description: Wow, such a lovely HTML5 danmaku video player comes to WordPress 5 * Version: 1.1. 85 * Version: 1.1.9 6 6 * Author: 0xBBC 7 7 * Author URI: https://blog.0xbbc.com/ … … 98 98 // normalize attribute keys, lowercase 99 99 $atts = array_change_key_case((array)$atts, CASE_LOWER); 100 101 $id = md5($_SERVER['HTTP_HOST'] . $atts['url'] );100 $bilibili_param = $atts['bilibili'] ? $atts['bilibili'] : ''; 101 $id = md5($_SERVER['HTTP_HOST'] . $atts['url'] . $bilibili_param); 102 102 $result = array( 103 103 'url' => $atts['url'] ? $atts['url'] : '', 104 'pic' => $atts['pic'] ? $atts['pic'] : '' 104 'pic' => $atts['pic'] ? $atts['pic'] : '', 105 'type' => $atts['type'] ? $atts['type'] : 'auto', 105 106 ); 106 if (empty($result)) return;107 107 108 108 $theme = $atts['theme']; … … 128 128 $playerCode = '<div id="player'.$id.'" class="dplayer">'; 129 129 $playerCode .= "</div>\n"; 130 $data['video'] = $result;131 130 132 131 $danmaku = array( … … 136 135 ); 137 136 138 if ($atts['bilibili']) $danmaku['addition'] = DPlayer::dplayer_bilibili_url_handler($atts['bilibili']); 137 if ($bilibili_param) { 138 $danmaku['addition'] = DPlayer::dplayer_bilibili_url_handler($bilibili_param); 139 if (empty($atts['url'])) $result['url'] = $bilibili_param; 140 } 141 142 $data['video'] = $result; 139 143 $data['danmaku'] = ($atts['danmu'] != 'false') ? $danmaku : null; 140 144 -
dplayer-for-wp/tags/1.1.9/readme.txt
r1694437 r1694456 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.8.0 6 Stable tag: 1.1. 86 Stable tag: 1.1.9 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html -
dplayer-for-wp/trunk/dplayer.php
r1694437 r1694456 3 3 * Plugin Name: DPlayer for WordPress 4 4 * Description: Wow, such a lovely HTML5 danmaku video player comes to WordPress 5 * Version: 1.1. 85 * Version: 1.1.9 6 6 * Author: 0xBBC 7 7 * Author URI: https://blog.0xbbc.com/ … … 98 98 // normalize attribute keys, lowercase 99 99 $atts = array_change_key_case((array)$atts, CASE_LOWER); 100 101 $id = md5($_SERVER['HTTP_HOST'] . $atts['url'] );100 $bilibili_param = $atts['bilibili'] ? $atts['bilibili'] : ''; 101 $id = md5($_SERVER['HTTP_HOST'] . $atts['url'] . $bilibili_param); 102 102 $result = array( 103 103 'url' => $atts['url'] ? $atts['url'] : '', 104 'pic' => $atts['pic'] ? $atts['pic'] : '' 104 'pic' => $atts['pic'] ? $atts['pic'] : '', 105 'type' => $atts['type'] ? $atts['type'] : 'auto', 105 106 ); 106 if (empty($result)) return;107 107 108 108 $theme = $atts['theme']; … … 128 128 $playerCode = '<div id="player'.$id.'" class="dplayer">'; 129 129 $playerCode .= "</div>\n"; 130 $data['video'] = $result;131 130 132 131 $danmaku = array( … … 136 135 ); 137 136 138 if ($atts['bilibili']) $danmaku['addition'] = DPlayer::dplayer_bilibili_url_handler($atts['bilibili']); 137 if ($bilibili_param) { 138 $danmaku['addition'] = DPlayer::dplayer_bilibili_url_handler($bilibili_param); 139 if (empty($atts['url'])) $result['url'] = $bilibili_param; 140 } 141 142 $data['video'] = $result; 139 143 $data['danmaku'] = ($atts['danmu'] != 'false') ? $danmaku : null; 140 144 -
dplayer-for-wp/trunk/readme.txt
r1694437 r1694456 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.8.0 6 Stable tag: 1.1. 86 Stable tag: 1.1.9 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.