Plugin Directory

Changeset 1972020


Ignore:
Timestamp:
11/10/2018 08:59:08 AM (7 years ago)
Author:
davidemura
Message:

update

Location:
dadi-cookie-consent-lite/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dadi-cookie-consent-lite/trunk/cookie-consent.php

    r1962390 r1972020  
    44Plugin URI: http://dcc.iljester.com/
    55Description: Consent system, based on cookies. It blocks scripts and iframes that can potentially generate profiling cookies
    6 Version: 1.0
     6Version: 1.1
    77Author: Davide Mura
    88Author URI: http://www.iljester.com/davide/
     
    5353    define( 'DADICC_PLUGIN_NAME', 'Dadi Cookie Consent Lite');
    5454    define( 'DADICC_PLUGIN_NAME_ABB', 'DCC Lite' );
     55    define( 'DADICC_VERSION', '1.1');
     56} else {
     57    define( 'DADICC_PLUGIN_NAME', 'Dadi Cookie Consent');
     58    define( 'DADICC_PLUGIN_NAME_ABB', 'DCC' );
    5559    define( 'DADICC_VERSION', '1.0');
    56     define( 'DADICC_ALLOW', TRUE );
    57 }
     60}
     61define( 'DADICC_ALLOW', TRUE );
    5862define( 'DADICC_DOMAIN', 'dadicc' );
    5963define( 'DADICC_PREFIX', 'dadicc_');
     
    7579define( 'DADICC_BLOCK_CLASS', 'dadicc-block');
    7680define( 'DADICC_BOXES', 8 );
     81define( 'DADICC_PURCHASE_URL', "http://dcc.iljester.com/get-premium/?purchase=true&plugin=dadi-cookie-consent-ext");
    7782
    7883/**
     
    145150
    146151/**
     152 * Set Options
     153 * @author: Davide Mura
     154 */
     155function dadicc_set_options() {
     156   
     157    if ( ! current_user_can( 'activate_plugins' ) )
     158        return;
     159
     160    $plugin = isset( $_REQUEST['plugin'] ) ? $_REQUEST['plugin'] : '';
     161    check_admin_referer( "activate-plugin_{$plugin}" );
     162
     163    $defaults = dadicc_default_options();
     164    $defaults_admin =  dadicc_default_options_admin();
     165
     166    add_option( DADICC_OPT, $defaults );
     167    add_option( DADICC_OPT_ADMIN, $defaults_admin );
     168
     169    return true;
     170       
     171   
     172}
     173register_activation_hook( __FILE__, 'dadicc_set_options');
     174
     175/**
    147176 * Set globals
    148177 * @author: Davide Mura
  • dadi-cookie-consent-lite/trunk/readme.txt

    r1962390 r1972020  
    44Requires at least: 4.8
    55Tested up to: 4.9.8
    6 Stable tag: 1.0
     6Stable tag: 1.1
    77Requires PHP: 5.3
    88Donate link: http://dadicc.iljester.it/donate/
     
    313114. Banners text and labels customizable
    3232
    33 Soon the premium version will be available, which will include all the features of the lite version and also:
     33= Premium Features =
    34341. Privacy Policy Link in banner
    35352. Policies displayed in an ajax popup
     
    8686
    87871. Page Settings
    88 2. Extended Banner
     882. Mini Banner
     893. Extended Banner
    8990
    9091== Changelog ==
     92
     93= 1.1 - 2018/11/10 =
     94* Fixed: some little bugs
     95* Added: box to get premium version
     96
    9197= 1.0 - 2018/09/29 =
    9298* Initial version
    9399
    94100== Upgrade Notice ==
    95 No upgrade notice
     101= 1.1 =
     102* No upgrade notice
Note: See TracChangeset for help on using the changeset viewer.