Plugin Directory

Changeset 2310716


Ignore:
Timestamp:
05/23/2020 10:54:20 AM (6 years ago)
Author:
macha795
Message:

テーマがcocoon以外のときにエラーが表示されるのを修正

Location:
cocoonnoticeareascheduler/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cocoonnoticeareascheduler/trunk/mch795-cocoon-notice-area-scheduler.php

    r2310255 r2310716  
    44Description: WordPressテーマ「Cocoon」で動作するプラグインです。Cocoonの通知エリアの設定を複数設定でき、表示スケジュールを管理できます。
    55Author: macha795
    6 Version: 0.0.6
     6Version: 0.0.7
    77Text Domain: mch795-cocoon-notice-area-scheduler
    88*/
  • cocoonnoticeareascheduler/trunk/mch795_cnas_main.php

    r2310255 r2310716  
    533533
    534534    function generate_color_picker_tag($name){
     535        wp_enqueue_style( 'wp-color-picker' );
    535536        wp_enqueue_script( 'wp-color-picker' );
    536         $data = minify_js('(function( $ ) {
    537         var options = {
    538             defaultColor: false,
    539             change: function(event, ui){},
    540             clear: function() {},
    541             hide: true,
    542             palettes: true
    543         };
    544         $("input:text[name=\''.$name.'\']").wpColorPicker(options);
    545     })( jQuery );');
     537        $data = <<<TEXT
     538(function( $ ) {
     539    var options = {
     540        defaultColor: false,
     541        change: function(event, ui){},
     542        clear: function() {},
     543        hide: true,
     544        palettes: true
     545    };
     546    $("input:text[name='$name']").wpColorPicker(options);
     547})( jQuery );
     548TEXT;
    546549        wp_add_inline_script( 'wp-color-picker', $data, 'after' ) ;
    547550    }
  • cocoonnoticeareascheduler/trunk/readme.txt

    r2310280 r2310716  
    44Requires at least: 4.9
    55Tested up to: 5.4.1
    6 Stable tag: 0.0.6
     6Stable tag: 0.0.7
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2424Cocoonのカスタマイズ機能を利用しているため、テーマ側の仕様変更により利用できなくなる可能性があるのでご了承ください。
    2525
    26 
     26* [詳細な説明はこちら](https://dev.macha795.com/wp-plugin-notice-manage/)
    2727
    2828
     
    4343
    4444
     45
    4546== Frequently asked questions ==
    4647
     
    5253
    5354== Changelog ==
     55
     56= 0.0.7 =
     57テーマがcocoon以外のときにエラーが表示されるのを修正
    5458
    5559= 0.0.6 =
     
    7478
    7579
    76 == Arbitrary section 1 ==
    77 
Note: See TracChangeset for help on using the changeset viewer.