Plugin Directory

Changeset 1422040


Ignore:
Timestamp:
05/23/2016 02:42:06 AM (10 years ago)
Author:
fatesinger
Message:

2.0.13

Location:
netease-music/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • netease-music/trunk/functions/embed.php

    r1415597 r1422040  
    5757                $data = nm_get_setting('oversea') ? $nmjson->netease_oversea_song($id) : $nmjson->netease_song($id);
    5858                $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;
    6067
    6168                $html .= '<script>playlist.push(' . json_encode(array($data)). ');</script>';
  • netease-music/trunk/functions/nm-list.php

    r1392848 r1422040  
    1010    </div>
    1111        <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>
    1313        <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">
    1515        <p class="loading-info hide">数据获取中</p>
    1616    </form>
  • netease-music/trunk/functions/static.php

    r1415597 r1422040  
    3636
    3737function 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>';
    3939}
    4040add_action('wp_head','nm_style');
  • netease-music/trunk/neteasemusic.php

    r1415597 r1422040  
    44Plugin URI: https://fatesinger.com/74369
    55Description: WordPress 音乐播放器,支持网易云音乐和虾米音乐。
    6 Version: 2.0.12
     6Version: 2.0.13
    77Author: bigfa
    88Author URI: https://fatesinger.com/
    99*/ 
    1010
    11 define('NM_VERSION', '2.0.12');
     11define('NM_VERSION', '2.0.13');
    1212define('NM_URL', plugins_url('', __FILE__));
    1313define('NM_PATH', dirname( __FILE__ ));
  • netease-music/trunk/readme.txt

    r1415597 r1422040  
    3131
    3232== Changelog ==
     33= 2.0.13 =
     34* 错误修复与样式改进
     35
    3336= 2.0.12 =
    3437* 增加短代码支持
Note: See TracChangeset for help on using the changeset viewer.