|
6 | 6 | * |
7 | 7 | * @package APlayer for Typecho | Meting |
8 | 8 | * @author METO |
9 | | - * @version 2.0.0 |
| 9 | + * @version 2.0.1 |
10 | 10 | * @dependence 14.10.10-* |
11 | 11 | * @link https://github.com/MoePlayer/APlayer-Typecho |
12 | 12 | * |
13 | 13 | */ |
14 | 14 |
|
15 | | -define('METING_VERSION','2.0.0'); |
| 15 | +define('METING_VERSION','2.0.1'); |
16 | 16 |
|
17 | 17 | class Meting_Plugin extends Typecho_Widget implements Typecho_Plugin_Interface |
18 | 18 | { |
@@ -139,7 +139,7 @@ public static function header(){ |
139 | 139 | $api=Typecho_Widget::widget('Widget_Options')->plugin('Meting')->api; |
140 | 140 | $dir=Helper::options()->pluginUrl.'/Meting/assets'; |
141 | 141 | $ver=METING_VERSION; |
142 | | - echo "<script type=\"text/javascript\" src=\"{$dir}/aplayer.min.js?v={$ver}\"></script>\n"; |
| 142 | + echo "<script type=\"text/javascript\" src=\"{$dir}/APlayer.min.js?v={$ver}\"></script>\n"; |
143 | 143 | echo "<script>var meting_api=\"{$api}\";</script>"; |
144 | 144 | } |
145 | 145 |
|
@@ -173,11 +173,11 @@ public static function parseMusic($matches,$setting){ |
173 | 173 | foreach($matches as $vo){ |
174 | 174 | $t=self::shortcode_parse_atts(htmlspecialchars_decode($vo)); |
175 | 175 | $player=array( |
176 | | - 'theme' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->theme?:'red', |
177 | | - 'preload' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->preload?:'auto', |
178 | | - 'autoplay' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->autoplay?:'false', |
179 | | - 'height' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->height?:'340px', |
180 | | - 'mode' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->mode?:'circulation', |
| 176 | + 'theme' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->theme?:'red', |
| 177 | + 'preload' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->preload?:'auto', |
| 178 | + 'autoplay' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->autoplay?:'false', |
| 179 | + 'listmaxheight' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->height?:'340px', |
| 180 | + 'mode' => Typecho_Widget::widget('Widget_Options')->plugin('Meting')->mode?:'circulation', |
181 | 181 | ); |
182 | 182 | if(isset($t['server'])){ |
183 | 183 | if(!in_array($t['server'],array('netease','tencent','xiami','baidu','kugou')))continue; |
@@ -205,7 +205,7 @@ public static function addButton(){ |
205 | 205 | $url=Typecho_Common::url('action/metingapi',Helper::options()->index).'?do=parse'; |
206 | 206 | $dir=Helper::options()->pluginUrl.'/Meting/assets/editer.js?v='.METING_VERSION; |
207 | 207 | echo "<script type=\"text/javascript\">var murl='{$url}';</script> |
208 | | - <script type=\"text/javascript\" src=\"{$dir}\"></script>"; |
| 208 | + <script type=\"text/javascript\" src=\"{$dir}\"></script>"; |
209 | 209 | } |
210 | 210 |
|
211 | 211 | # https://github.com/WordPress/WordPress/blob/master/wp-includes/shortcodes.php#L508 |
|
0 commit comments