Plugin Directory

Changeset 2233959


Ignore:
Timestamp:
01/27/2020 04:19:36 PM (6 years ago)
Author:
digitalpush
Message:

update

Location:
digitalpush/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • digitalpush/trunk/dgpntf.php

    r2225274 r2233959  
    33* Plugin Name: DigitalPUSH
    44* Plugin URI: http://digitalpush.org/
    5 * Version: 1.5.1
     5* Version: 1.5.2
    66* Author: DigitalPUSH
    77* Author URI: http://digitalpush.org/
     
    4141        $this->plugin->name         = 'digitalpush-notifications'; // Plugin Folder
    4242        $this->plugin->displayName  = 'DigitalPUSH'; // Plugin Name
    43         $this->plugin->version      = '1.5.1';
     43        $this->plugin->version      = '1.5.2';
    4444        $this->plugin->folder       = plugin_dir_path( __FILE__ );
    4545        $this->plugin->url          = plugin_dir_url( __FILE__ );
     
    195195        register_setting( $this->plugin->name, 'dgp_delay', 'trim' );
    196196        register_setting( $this->plugin->name, 'dgp_nativerequest', 'trim' );
     197        register_setting( $this->plugin->name, 'dgp_inpageads', 'trim' );
    197198        register_setting( $this->plugin->name, 'dgp_type', 'trim' );
    198199        register_setting( $this->plugin->name, 'dgp_theme', 'trim' );
     
    251252                $dgp_delay = sanitize_text_field( $_REQUEST['dgp_delay'] );
    252253                $dgp_nativerequest = sanitize_text_field( $_REQUEST['dgp_nativerequest'] );
     254                $dgp_inpageads = sanitize_text_field( $_REQUEST['dgp_inpageads'] );
    253255                $dgp_type = sanitize_text_field( $_REQUEST['dgp_type'] );
    254256                $dgp_theme = sanitize_text_field( $_REQUEST['dgp_theme'] );
     
    261263                if( $dgp_autosend != 'yes' && $dgp_autosend != 'no' ){ $dgp_autosend = 'no'; }
    262264                if( $dgp_nativerequest != '0' && $dgp_nativerequest != '1' ){ $dgp_nativerequest = '1'; }
     265                if( $dgp_inpageads != '0' && $dgp_inpageads != '1' ){ $dgp_inpageads = '1'; }
    263266                if( $dgp_delay != '0' && $dgp_delay != '3000' && $dgp_delay != '5000' && $dgp_delay != '7000' && $dgp_delay != '10000' ){ $dgp_delay = '0'; }
    264267                if( $dgp_type != 'overlay' && $dgp_type != 'flying' && $dgp_type != 'balloon' ){ $dgp_type = 'overlay'; }
     
    273276                update_option( 'dgp_delay', $dgp_delay );
    274277                update_option( 'dgp_nativerequest', $dgp_nativerequest );
     278                update_option( 'dgp_inpageads', $dgp_inpageads );
    275279                update_option( 'dgp_type', $dgp_type );
    276280                update_option( 'dgp_theme', $dgp_theme );               
     
    291295            'dgp_delay' => esc_html( wp_unslash( get_option( 'dgp_delay' ) ) ),
    292296            'dgp_nativerequest' => esc_html( wp_unslash( get_option( 'dgp_nativerequest' ) ) ),
     297            'dgp_inpageads' => esc_html( wp_unslash( get_option( 'dgp_inpageads' ) ) ),
    293298            'dgp_type' => esc_html( wp_unslash( get_option( 'dgp_type' ) ) ),
    294299            'dgp_theme' => esc_html( wp_unslash( get_option( 'dgp_theme' ) ) ),
     
    326331        $ech = 'var DGPkey = "'.esc_html( wp_unslash( get_option( 'dgp_key' ) ) ).'";
    327332        var DGPnativerequest = "'.esc_html( wp_unslash( get_option( 'dgp_nativerequest' ) ) ).'";
     333        var DGPinpageads = "'.esc_html( wp_unslash( get_option( 'dgp_inpageads' ) ) ).'";
    328334        var DGPdelay = "'.esc_html( wp_unslash( get_option( 'dgp_delay' ) ) ).'";
    329335        var DGPmtype = "'.esc_html( wp_unslash( get_option( 'dgp_type' ) ) ).'";
  • digitalpush/trunk/readme.txt

    r2225274 r2233959  
    44Requires at least: 3.6
    55Tested up to: 5.3
    6 Stable tag: 1.5.1
     6Stable tag: 1.5.2
    77Requires PHP: 5.5
    88License: GPLv2 or later
     
    6060== Changelog ==
    6161
    62 = 1.4.4 =
    63 * Tested compatibility with WordPress 5.2
     62= 1.5.2 =
     63* Added an option to enable in-page notification ads
    6464
    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
    6767
    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
    7071
    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
    7375
    7476= 1.4.8 =
     
    7880* 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.
    7981
    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
    8384
    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.
    8787
    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  
    4040                               
    4141                                <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>
    4252                                    <td class="dgptable" valign=top align=right><label for="dgp_delay"><strong>Delay :</strong></label></td>
    4353                                    <td class="dgptable">
Note: See TracChangeset for help on using the changeset viewer.