Changeset 1422040
- Timestamp:
- 05/23/2016 02:42:06 AM (10 years ago)
- Location:
- netease-music/trunk
- Files:
-
- 5 edited
-
functions/embed.php (modified) (1 diff)
-
functions/nm-list.php (modified) (1 diff)
-
functions/static.php (modified) (1 diff)
-
neteasemusic.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
netease-music/trunk/functions/embed.php
r1415597 r1422040 57 57 $data = nm_get_setting('oversea') ? $nmjson->netease_oversea_song($id) : $nmjson->netease_song($id); 58 58 $html .= nm_single_playform( $data['id'] , $instance , $data['cover'] , $data['title'] , $data['artist'] , $data['duration'] ); 59 59 if( nm_get_setting("comment") ) $comments = $nmjson->comments($id); 60 if (!empty($comments)) : 61 $html .= '<div class="nmhotcom"><span class="com-close">X</span><div class="nmhc-title">网易热评</div>'; 62 foreach ($comments as $key => $comment) { 63 $html .= '<div class="nmh-item"><span style="background-image:url(' . $comment['user']['avatarUrl'] . '?param=48x48)" class="nmu-avatar"></span><span class="nmu-name">' . $comment['user']['nickname'] . '</span>:' .$comment['content'] . '</div>'; 64 } 65 $html .= '</div>'; 66 endif; 60 67 61 68 $html .= '<script>playlist.push(' . json_encode(array($data)). ');</script>'; -
netease-music/trunk/functions/nm-list.php
r1392848 r1422040 10 10 </div> 11 11 <form id="nm-form" class="nm-form"> 12 <p class="nm-form-note">请输入网易云音乐专辑链接,如<code>http://music.163.com/#/album?id=3029801</code>,然后点击添加专辑。</p>12 <p class="nm-form-note">请输入网易云音乐专辑或歌单链接,如<code>http://music.163.com/#/album?id=3029801</code>或者<code>http://music.163.com/#/playlist?id=383865604</code>,然后点击添加音乐。</p> 13 13 <input name="url" type="text" class="nm-form-textInput"> 14 <input type="submit" value="添加 专辑" class="nm-form-submit">14 <input type="submit" value="添加音乐" class="nm-form-submit"> 15 15 <p class="loading-info hide">数据获取中</p> 16 16 </form> -
netease-music/trunk/functions/static.php
r1415597 r1422040 36 36 37 37 function nm_style(){ 38 if ( nm_get_setting('max-width') || nm_get_setting('css') ) echo '<style>.nmsingle-container,.nms-list {max-width:' . nm_get_setting('max-width') . 'px}' . nm_get_setting('css') . '</style>';38 if ( nm_get_setting('max-width') || nm_get_setting('css') ) echo '<style>.nmsingle-container,.nms-list,.nmhotcom{max-width:' . nm_get_setting('max-width') . 'px}' . nm_get_setting('css') . '</style>'; 39 39 } 40 40 add_action('wp_head','nm_style'); -
netease-music/trunk/neteasemusic.php
r1415597 r1422040 4 4 Plugin URI: https://fatesinger.com/74369 5 5 Description: WordPress 音乐播放器,支持网易云音乐和虾米音乐。 6 Version: 2.0.1 26 Version: 2.0.13 7 7 Author: bigfa 8 8 Author URI: https://fatesinger.com/ 9 9 */ 10 10 11 define('NM_VERSION', '2.0.1 2');11 define('NM_VERSION', '2.0.13'); 12 12 define('NM_URL', plugins_url('', __FILE__)); 13 13 define('NM_PATH', dirname( __FILE__ )); -
netease-music/trunk/readme.txt
r1415597 r1422040 31 31 32 32 == Changelog == 33 = 2.0.13 = 34 * 错误修复与样式改进 35 33 36 = 2.0.12 = 34 37 * 增加短代码支持
Note: See TracChangeset
for help on using the changeset viewer.