Plugin Directory


Ignore:
Timestamp:
07/20/2021 10:32:41 AM (5 years ago)
Author:
themebeez
Message:
  • Fix: Basic PHP errors
Location:
simple-gdpr-cookie-compliance
Files:
55 added
5 edited

Legend:

Unmodified
Added
Removed
  • simple-gdpr-cookie-compliance/trunk/README.txt

    r2567926 r2568044  
    77Tested up to: 5.8
    88Requires PHP: 7.0.0
    9 Stable tag: 1.0.6
     9Stable tag: 1.0.7
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676== Changelog ==
    7777
     78= 1.0.7 - July 20, 2021 =
     79* Fix: Minor PHP issues
     80
     81
    7882= 1.0.6 - July 20, 2021 =
    79 
    8083* Tested: up to WordPress 5.8
    8184
     85
    8286= 1.0.5 - Feb 19, 2021 =
    83 
    8487* Fix: Setting page link
    8588
     89
    8690= 1.0.4 - Dec 17, 2020 =
    87 
    8891* Added: Options customization options.
    8992* Fix: Other minor issues
     
    9194
    9295= 1.0.3 - August 13, 2020 =
    93 
    9496* Testing: Tested on WordPress version 5.5
    9597
    9698
    9799= 1.0.2 - 1 December, 2019 =
    98 
    99100* Added: Link type options
    100101
    101102
    102103= 1.0.1 - 4 November, 2019 =
    103 
    104104* Added: Color options
    105105
    106106
    107107= 1.0.0 - 2 August, 2019 =
    108 
    109108* Initial release
  • simple-gdpr-cookie-compliance/trunk/admin/class-simple-gdpr-cookie-compliance-admin.php

    r2567926 r2568044  
    6363         */
    6464
    65         wp_enqueue_style( 'wp-color-picker' );
     65        global $pagenow;
    6666
    67         wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/simple-gdpr-cookie-compliance-admin.css', array(), $this->version, 'all' );
     67        if ( 'admin.php' == $pagenow && ( isset( $_GET['page'] ) && 'simple-gdpr-cookie-compliance' == $_GET['page'] ) ) {
     68
     69            wp_enqueue_style( 'wp-color-picker' );
     70
     71            wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/simple-gdpr-cookie-compliance-admin.css', array(), $this->version, 'all' );
     72        }
    6873
    6974    }
     
    8893         */
    8994
    90         wp_enqueue_script( 'wp-color-picker' );
     95        global $pagenow;
    9196
    92         wp_enqueue_script( 'wp-color-picker-alpha', plugin_dir_url( __FILE__ ) . 'js/wp-color-picker-alpha.js', array( 'jquery', 'wp-color-picker' ), $this->version, false );
     97        if ( 'admin.php' == $pagenow && ( isset( $_GET['page'] ) && 'simple-gdpr-cookie-compliance' == $_GET['page'] ) ) {
    9398
    94         wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/simple-gdpr-cookie-compliance-admin.js', array( 'jquery' ), $this->version, false );
     99            wp_enqueue_script( 'wp-color-picker' );
     100
     101            wp_enqueue_script( 'wp-color-picker-alpha', plugin_dir_url( __FILE__ ) . 'js/wp-color-picker-alpha.js', array( 'jquery', 'wp-color-picker' ), $this->version, false );
     102
     103            wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/simple-gdpr-cookie-compliance-admin.js', array( 'jquery' ), $this->version, false );
     104        }
    95105
    96106    }
  • simple-gdpr-cookie-compliance/trunk/languages/simple-gdpr-cookie-compliance.pot

    r2567926 r2568044  
    1 # Copyright (C) 2020 Simple GDPR Cookie Compliance
     1# Copyright (C) 2021 Simple GDPR Cookie Compliance
    22# This file is distributed under the same license as the Simple GDPR Cookie Compliance package.
    33msgid ""
     
    1414"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    1515
    16 #: admin/class-simple-gdpr-cookie-compliance-admin.php:105, admin/partials/simple-gdpr-cookie-compliance-admin-page.php:21
     16#: admin/class-simple-gdpr-cookie-compliance-admin.php:115, admin/partials/simple-gdpr-cookie-compliance-admin-page.php:21
    1717msgid "Simple GDPR Cookie Compliance"
    1818msgstr ""
    1919
    20 #: admin/class-simple-gdpr-cookie-compliance-admin.php:125
     20#: admin/class-simple-gdpr-cookie-compliance-admin.php:135
    2121msgid "Settings"
    2222msgstr ""
     
    4646msgstr ""
    4747
    48 #: admin/class-simple-gdpr-cookie-compliance-settings.php:127
     48#: admin/class-simple-gdpr-cookie-compliance-settings.php:127, public/class-simple-gdpr-cookie-compliance-public.php:146
    4949msgid "Our website uses cookies to provide you the best experience. However, by continuing to use our website, you agree to our use of cookies. For more information, read our <a href=\"#\">Cookie Policy</a>."
    5050msgstr ""
     
    277277msgid "Simple GDPR Cookie Compliance is a simple and minimal WordPress plugin that helps you become GDPR compliant and notify users about your website&rsquo;s cookie policy or privacy policy. This plugin adds a small notice box at the bottom of right side of your website. You can easily set notify message as well as customize your notice with color options."
    278278msgstr ""
     279
     280#: public/class-simple-gdpr-cookie-compliance-public.php:144
     281msgid "Notice regarding cookie compliance is not set. Go to %s to set the notice."
     282msgstr ""
     283
     284#: public/class-simple-gdpr-cookie-compliance-public.php:144
     285msgid "Dashboard > Simple GDPR"
     286msgstr ""
  • simple-gdpr-cookie-compliance/trunk/public/class-simple-gdpr-cookie-compliance-public.php

    r2567926 r2568044  
    132132        $options = get_option( 'simple_gdpr_cookie_compliance_options' );
    133133
    134         $args = array();
     134        $args = array(
     135            'enable_bg_overlay' => false,
     136            'show_cookie_icon' => false,
     137            'notice' => '',
     138            'btn_title' => '',
     139            'show_close_btn' => false,
     140            'link_type' => 'no_link'
     141        );
     142
     143        if ( is_admin() || current_user_can( 'manage_options' ) ) {
     144            $args['notice'] = sprintf( __( 'Notice regarding cookie compliance is not set. Go to %s to set the notice.', 'simple-gdpr-cookie-compliance' ), '<a href="' . esc_url( admin_url( 'admin.php?page=simple-gdpr-cookie-compliance' ) ) . '">' . __( 'Dashboard > Simple GDPR', 'simple-gdpr-cookie-compliance' ) . '</a>' );
     145        } else {
     146            $args['notice'] = __( 'Our website uses cookies to provide you the best experience. However, by continuing to use our website, you agree to our use of cookies. For more information, read our <a href="#">Cookie Policy</a>.', 'simple-gdpr-cookie-compliance' );
     147        }
    135148
    136149        if ( $options ) {
    137             if ( isset( $options['notice_text'] ) ) {
     150            if ( isset( $options['notice_text'] ) && ! empty( $options['notice_text'] ) ) {
    138151                $args['notice'] = $options['notice_text'];
    139152            }
  • simple-gdpr-cookie-compliance/trunk/simple-gdpr-cookie-compliance.php

    r2567926 r2568044  
    55 * Plugin URI:        https://themebeez.com/plugins/simple-gdpr-cookie-compliance
    66 * Description:       Simple GDPR Cookie Compliance is a simple notifier to inform users that your site uses of cookies and show your complies with EU GDPR cookie law and CCPA regulations.
    7  * Version:           1.0.6
     7 * Version:           1.0.7
    88 * Author:            themebeez
    99 * Author URI:        https://themebeez.com/
     
    2424 * Rename this for your plugin and update it as you release new versions.
    2525 */
    26 define( 'SIMPLE_GDPR_COOKIE_COMPLIANCE_VERSION', '1.0.6' );
     26define( 'SIMPLE_GDPR_COOKIE_COMPLIANCE_VERSION', '1.0.7' );
    2727define( 'SIMPLE_GDPR_COOKIE_COMPLIANCE_BASENAME', plugin_basename( __FILE__ ) );
    2828
Note: See TracChangeset for help on using the changeset viewer.