Changeset 2317939
- Timestamp:
- 06/04/2020 09:35:28 AM (6 years ago)
- Location:
- cocoonnoticeareascheduler/trunk
- Files:
-
- 5 edited
-
lib/ccnNoticeAreaLib.php (modified) (2 diffs)
-
mch795-cocoon-notice-area-scheduler.php (modified) (1 diff)
-
mch795_cnas_main.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
ui/input-form-main.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cocoonnoticeareascheduler/trunk/lib/ccnNoticeAreaLib.php
r2310226 r2317939 20 20 } 21 21 //endif; 22 22 23 23 24 … … 46 47 //endif; 47 48 49 50 function 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 7 7 Author URI: https://macha795.com/ 8 8 Text Domain: mch795-cocoon-notice-area-scheduler 9 Version: 0.0. 89 Version: 0.0.9 10 10 */ 11 11 -
cocoonnoticeareascheduler/trunk/mch795_cnas_main.php
r2310949 r2317939 859 859 global $post; 860 860 if ( 861 $column_name == 'url' 862 || $column_name == self::ITEM_NAME_IDS 861 $column_name == self::ITEM_NAME_IDS 863 862 || $column_name == 'noticeType' 864 863 ) { 865 864 $data = $this->getCustomPostMetaData($post_id, $column_name); 866 865 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 ); 867 870 } 868 871 else if ($column_name == 'content') { -
cocoonnoticeareascheduler/trunk/readme.txt
r2310949 r2317939 6 6 Requires at least: 4.9 7 7 Tested up to: 5.4.1 8 Stable tag: 0.0. 88 Stable tag: 0.0.9 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 == Changelog == 61 61 62 = 0.0.9 = 63 通知URLの表示処理を修正 64 65 62 66 = 0.0.8 = 63 67 通知タイプを追加 -
cocoonnoticeareascheduler/trunk/ui/input-form-main.php
r2310226 r2317939 35 35 <div> 36 36 <?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 ?> 37 45 <input type="<?= $cnasMain::FORM_TYPE_TEXT ?>" 38 46 name="<?= $formPrefixName ?>" 39 47 id="<?= $formPrefixName ?>" class="" 40 value="<?php echo esc_attr( sanitize_text_field($metaData) ); ?>"48 value="<?php echo $value; ?>" 41 49 > 42 50 <?php } else if($formItem['formType'] === $cnasMain::FORM_TYPE_CHECKBOX) { ?> … … 94 102 </div> 95 103 <?php 96 97 98 99 104 } 100 105 ?> 101 102 103 106 </div> 104 105 107 106 108 <?php … … 123 125 124 126 }); 127 125 128 })(jQuery); 126 129
Note: See TracChangeset
for help on using the changeset viewer.