Plugin Directory

Changeset 2317939


Ignore:
Timestamp:
06/04/2020 09:35:28 AM (6 years ago)
Author:
macha795
Message:

0.0.9

Location:
cocoonnoticeareascheduler/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cocoonnoticeareascheduler/trunk/lib/ccnNoticeAreaLib.php

    r2310226 r2317939  
    2020}
    2121//endif;
     22
    2223
    2324
     
    4647//endif;
    4748
     49
     50function get_notice_type(){
     51    $cnasMain = Mch795_Cocoon_Notice_Area_Scheduler::get_object();
     52    return $cnasMain->getNoticeTypeStr();
     53//  return get_theme_option(OP_NOTICE_TYPE);
     54}
  • cocoonnoticeareascheduler/trunk/mch795-cocoon-notice-area-scheduler.php

    r2310949 r2317939  
    77Author URI:  https://macha795.com/
    88Text Domain: mch795-cocoon-notice-area-scheduler
    9 Version: 0.0.8
     9Version: 0.0.9
    1010*/
    1111
  • cocoonnoticeareascheduler/trunk/mch795_cnas_main.php

    r2310949 r2317939  
    859859        global $post;
    860860        if (
    861             $column_name == 'url'
    862             || $column_name == self::ITEM_NAME_IDS
     861            $column_name == self::ITEM_NAME_IDS
    863862            || $column_name == 'noticeType'
    864863        ) {
    865864            $data = $this->getCustomPostMetaData($post_id, $column_name);
    866865            echo esc_attr( sanitize_text_field($data) );
     866        }
     867        else if ($column_name == 'url') {
     868            $data = $this->getCustomPostMetaData($post_id, $column_name);
     869            echo esc_attr( $data );
    867870        }
    868871        else if ($column_name == 'content') {
  • cocoonnoticeareascheduler/trunk/readme.txt

    r2310949 r2317939  
    66Requires at least: 4.9
    77Tested up to: 5.4.1
    8 Stable tag: 0.0.8
     8Stable tag: 0.0.9
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060== Changelog ==
    6161
     62= 0.0.9 =
     63通知URLの表示処理を修正
     64
     65
    6266= 0.0.8 =
    6367通知タイプを追加
  • cocoonnoticeareascheduler/trunk/ui/input-form-main.php

    r2310226 r2317939  
    3535            <div>
    3636        <?php if($formItem['formType'] === $cnasMain::FORM_TYPE_TEXT) {  ?>
     37            <?php
     38            if( isset($formItem['dataType'] ) && $formItem['dataType'] === 'URL') {
     39                $value = esc_attr($metaData);
     40            } else {
     41                $value = esc_attr( sanitize_text_field($metaData) );
     42            }
     43
     44            ?>
    3745            <input type="<?= $cnasMain::FORM_TYPE_TEXT ?>"
    3846                   name="<?= $formPrefixName ?>"
    3947                   id="<?= $formPrefixName ?>" class=""
    40                    value="<?php echo esc_attr( sanitize_text_field($metaData) ); ?>"
     48                   value="<?php echo $value; ?>"
    4149            >
    4250        <?php } else if($formItem['formType'] === $cnasMain::FORM_TYPE_CHECKBOX) {  ?>
     
    94102</div>
    95103        <?php
    96 
    97 
    98 
    99104    }
    100105    ?>
    101 
    102 
    103106</div>
    104 
    105107
    106108<?php
     
    123125
    124126        });
     127
    125128    })(jQuery);
    126129
Note: See TracChangeset for help on using the changeset viewer.