Changeset 2233959
- Timestamp:
- 01/27/2020 04:19:36 PM (6 years ago)
- Location:
- digitalpush/trunk
- Files:
-
- 3 edited
-
dgpntf.php (modified) (8 diffs)
-
readme.txt (modified) (3 diffs)
-
views/settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
digitalpush/trunk/dgpntf.php
r2225274 r2233959 3 3 * Plugin Name: DigitalPUSH 4 4 * Plugin URI: http://digitalpush.org/ 5 * Version: 1.5. 15 * Version: 1.5.2 6 6 * Author: DigitalPUSH 7 7 * Author URI: http://digitalpush.org/ … … 41 41 $this->plugin->name = 'digitalpush-notifications'; // Plugin Folder 42 42 $this->plugin->displayName = 'DigitalPUSH'; // Plugin Name 43 $this->plugin->version = '1.5. 1';43 $this->plugin->version = '1.5.2'; 44 44 $this->plugin->folder = plugin_dir_path( __FILE__ ); 45 45 $this->plugin->url = plugin_dir_url( __FILE__ ); … … 195 195 register_setting( $this->plugin->name, 'dgp_delay', 'trim' ); 196 196 register_setting( $this->plugin->name, 'dgp_nativerequest', 'trim' ); 197 register_setting( $this->plugin->name, 'dgp_inpageads', 'trim' ); 197 198 register_setting( $this->plugin->name, 'dgp_type', 'trim' ); 198 199 register_setting( $this->plugin->name, 'dgp_theme', 'trim' ); … … 251 252 $dgp_delay = sanitize_text_field( $_REQUEST['dgp_delay'] ); 252 253 $dgp_nativerequest = sanitize_text_field( $_REQUEST['dgp_nativerequest'] ); 254 $dgp_inpageads = sanitize_text_field( $_REQUEST['dgp_inpageads'] ); 253 255 $dgp_type = sanitize_text_field( $_REQUEST['dgp_type'] ); 254 256 $dgp_theme = sanitize_text_field( $_REQUEST['dgp_theme'] ); … … 261 263 if( $dgp_autosend != 'yes' && $dgp_autosend != 'no' ){ $dgp_autosend = 'no'; } 262 264 if( $dgp_nativerequest != '0' && $dgp_nativerequest != '1' ){ $dgp_nativerequest = '1'; } 265 if( $dgp_inpageads != '0' && $dgp_inpageads != '1' ){ $dgp_inpageads = '1'; } 263 266 if( $dgp_delay != '0' && $dgp_delay != '3000' && $dgp_delay != '5000' && $dgp_delay != '7000' && $dgp_delay != '10000' ){ $dgp_delay = '0'; } 264 267 if( $dgp_type != 'overlay' && $dgp_type != 'flying' && $dgp_type != 'balloon' ){ $dgp_type = 'overlay'; } … … 273 276 update_option( 'dgp_delay', $dgp_delay ); 274 277 update_option( 'dgp_nativerequest', $dgp_nativerequest ); 278 update_option( 'dgp_inpageads', $dgp_inpageads ); 275 279 update_option( 'dgp_type', $dgp_type ); 276 280 update_option( 'dgp_theme', $dgp_theme ); … … 291 295 'dgp_delay' => esc_html( wp_unslash( get_option( 'dgp_delay' ) ) ), 292 296 'dgp_nativerequest' => esc_html( wp_unslash( get_option( 'dgp_nativerequest' ) ) ), 297 'dgp_inpageads' => esc_html( wp_unslash( get_option( 'dgp_inpageads' ) ) ), 293 298 'dgp_type' => esc_html( wp_unslash( get_option( 'dgp_type' ) ) ), 294 299 'dgp_theme' => esc_html( wp_unslash( get_option( 'dgp_theme' ) ) ), … … 326 331 $ech = 'var DGPkey = "'.esc_html( wp_unslash( get_option( 'dgp_key' ) ) ).'"; 327 332 var DGPnativerequest = "'.esc_html( wp_unslash( get_option( 'dgp_nativerequest' ) ) ).'"; 333 var DGPinpageads = "'.esc_html( wp_unslash( get_option( 'dgp_inpageads' ) ) ).'"; 328 334 var DGPdelay = "'.esc_html( wp_unslash( get_option( 'dgp_delay' ) ) ).'"; 329 335 var DGPmtype = "'.esc_html( wp_unslash( get_option( 'dgp_type' ) ) ).'"; -
digitalpush/trunk/readme.txt
r2225274 r2233959 4 4 Requires at least: 3.6 5 5 Tested up to: 5.3 6 Stable tag: 1.5. 16 Stable tag: 1.5.2 7 7 Requires PHP: 5.5 8 8 License: GPLv2 or later … … 60 60 == Changelog == 61 61 62 = 1. 4.4=63 * Tested compatibility with WordPress 5.262 = 1.5.2 = 63 * Added an option to enable in-page notification ads 64 64 65 = 1. 4.5=66 * Added more customization features for the in-page pre-messages.65 = 1.5.1 = 66 * Small fix to prevent fail if the plugin was updated and the settings were not saved by the webmaster after the update 67 67 68 = 1.4.6 = 69 * Small change with the functionality of the reject button. 68 = 1.5.0 = 69 * Added the option to disable the pre-message and use the browser native request 70 * Colors added for the Code key and the API key inside the plugin settings to help distinguish them apart 70 71 71 = 1.4.7 = 72 * Tested compatibility with WordPress 5.3 72 = 1.4.9 = 73 * Update the style of the "Overlay" implementation 74 * Added themes for the "Overlay" implementation 73 75 74 76 = 1.4.8 = … … 78 80 * Added a new function which will remove the bb code from the post content in order to prevent auto push notifications with bodies such as [embed] [video] etc. 79 81 80 = 1.4.9 = 81 * Update the style of the "Overlay" implementation 82 * Added themes for the "Overlay" implementation 82 = 1.4.7 = 83 * Tested compatibility with WordPress 5.3 83 84 84 = 1.5.0 = 85 * Added the option to disable the pre-message and use the browser native request 86 * Colors added for the Code key and the API key inside the plugin settings to help distinguish them apart 85 = 1.4.6 = 86 * Small change with the functionality of the reject button. 87 87 88 = 1.5.1 = 89 * Small fix to prevent fail if the plugin was updated and the settings were not saved by the webmaster after the update 88 = 1.4.5 = 89 * Added more customization features for the in-page pre-messages. 90 91 = 1.4.4 = 92 * Tested compatibility with WordPress 5.2 -
digitalpush/trunk/views/settings.php
r2224429 r2233959 40 40 41 41 <tr> 42 <td class="dgptable" valign=top align=right><label for="dgp_delay"><strong>In-page push ads :</strong></label></td> 43 <td class="dgptable"> 44 <select name="dgp_delay" id="dgp_delay" style="width:100%;"> 45 <option value="0" <?php if($this->settings['dgp_inpageads']=='0'){ echo 'selected'; } ?>>NOT ALLOWED</option> 46 <option value="1" <?php if($this->settings['dgp_inpageads']=='1'){ echo 'selected'; } ?>>ALLOWED</option> 47 </select> 48 </td> 49 </tr> 50 51 <tr> 42 52 <td class="dgptable" valign=top align=right><label for="dgp_delay"><strong>Delay :</strong></label></td> 43 53 <td class="dgptable">
Note: See TracChangeset
for help on using the changeset viewer.