Changeset 1648728
- Timestamp:
- 05/01/2017 06:34:38 AM (9 years ago)
- Location:
- push7/trunk
- Files:
-
- 4 edited
-
classes/push7-post.php (modified) (2 diffs)
-
classes/push7.php (modified) (2 diffs)
-
push7.php (modified) (1 diff)
-
setting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
push7/trunk/classes/push7-post.php
r1621056 r1648728 16 16 17 17 if (array_key_exists('metabox_exist', $_POST)) { 18 if ( !empty($_POST['push7_not_notify'])) {18 if (isset($_POST['push7_not_notify']) && $_POST['push7_not_notify'] == "false") { 19 19 $_SESSION['notice_message'] = '右下の「通知を送信しない」のチェックボックスが入っていたため通知は送信されませんでした。'; 20 20 return; 21 21 } 22 22 } else { 23 if ($old_status === 'future') { 24 $future_opt_name = 'push7_future_'.$postData->ID; 25 if (get_option($future_opt_name) === false) { 26 return; 27 } else { 28 delete_option($future_opt_name); 29 } 30 } elseif ($this::push_default_config() === 'false') { 23 if(get_option("push7_update_from_thirdparty") == "false"){ 31 24 return; 32 25 } 26 } 27 28 if ($old_status === 'future') { 29 $future_opt_name = 'push7_future_'.$postData->ID; 30 if (get_option($future_opt_name) === false) { 31 return; 32 } else { 33 delete_option($future_opt_name); 34 } 35 } elseif ($this::push_default_config() === 'false') { 36 return; 33 37 } 34 38 … … 123 127 global $post; 124 128 ?> 129 <style>[name="push7_not_notify"]:not([value="false"]){display:none;}</style> 125 130 <input type="hidden" name="metabox_exist" value="true"> 126 <input type="checkbox" name="push7_not_notify" value="false" <?php checked("false", self::push_default_config($post)); ?>>通知を送信しない 131 <input type="checkbox" name="push7_not_notify" value="false" <?php checked("false", self::push_default_config($post)); ?>> 132 <input type="checkbox" name="push7_not_notify" value="true" <?php checked("true", self::push_default_config($post)); ?>> 133 <script>jQuery(function(){var $ = jQuery;$("[name='push7_not_notify'][value='false']").click(function(e){$(this).siblings().click();})})</script> 134 通知を送信しない 127 135 <?php 128 136 } -
push7/trunk/classes/push7.php
r1623513 r1648728 25 25 register_setting('push7-settings-group', 'push7_sslverify_disabled'); 26 26 register_setting('push7-settings-group', 'push7_sdk_enabled'); 27 register_setting('push7-settings-group', 'push7_update_from_thirdparty'); 27 28 28 29 if (!get_option("push7_sslverify_disabled")) { 29 30 update_option("push7_sslverify_disabled", "false"); 30 31 } 32 31 33 if (!get_option("push7_sdk_enabled")) { 32 34 update_option("push7_sdk_enabled", "false"); 35 } 36 37 if (!get_option("push7_update_from_thirdparty")) { 38 update_option("push7_update_from_thirdparty", "false"); 33 39 } 34 40 … … 67 73 68 74 public static function user_agent() { 69 return 'WordPress/'.$wp_version.'; '.get_bloginfo('url').'; Push7:'.Push7::VERSION; 75 global $wp_version; 76 return 'WordPress/' . $wp_version . '; '.get_bloginfo('url') . '; Push7:' . Push7::VERSION; 70 77 } 71 78 -
push7/trunk/push7.php
r1623513 r1648728 5 5 Plugin URI: https://push7.jp/ 6 6 Description: Push7 plugin for WordPress 7 Version: 2. 1.07 Version: 2.2.0 8 8 Author: GNEX Ltd. 9 9 Author URI: https://globalnet-ex.com -
push7/trunk/setting.php
r1621056 r1648728 150 150 </tbody></table> 151 151 152 <h2 class="title">サードパーティエディタのプッシュ通知設定</h2> 153 154 <p> 155 MarsEditなど、外部エディタを利用している場合の挙動についてはこちらをご利用ください。 156 </p> 157 158 <table class="form-table"> 159 <tbody> 160 <tr> 161 <th> 162 記事更新時のプッシュ通知送信 163 </th> 164 <td> 165 <fieldset> 166 <label title="true"> 167 <input type="radio" name="push7_update_from_thirdparty" value="true" <?php checked("true", get_option("push7_update_from_thirdparty")); ?>> 168 <?php _e( 'する', 'push7' ); ?> 169 </label> 170 <br> 171 <label title="false"> 172 <input type="radio" name="push7_update_from_thirdparty" value="false" <?php checked("false", get_option("push7_update_from_thirdparty")); ?>> 173 <?php _e( 'しない', 'push7' ); ?> 174 </label> 175 </fieldset> 176 </td> 177 </tr> 178 </tbody> 179 </table> 180 152 181 <?php submit_button(); ?> 153 182
Note: See TracChangeset
for help on using the changeset viewer.