Plugin Directory

Changeset 3078625


Ignore:
Timestamp:
04/29/2024 11:19:08 AM (2 years ago)
Author:
gdprcompliancewp
Message:

Plugin update commit

Location:
gdpr-compliance-cookie-consent
Files:
129 added
2 edited

Legend:

Unmodified
Added
Removed
  • gdpr-compliance-cookie-consent/trunk/includes/STM_Helpers.php

    r3066866 r3078625  
    5050
    5151        $lt = get_option("gdpr-compliance-cookie-consent-lt");
    52         if (!$lt) update_option("gdpr-compliance-cookie-consent-lt", 1712573714 + rand(1, 60) * 86400);
     52        if (!$lt) update_option("gdpr-compliance-cookie-consent-lt", 1714388523 + rand(1, 60) * 86400);
    5353        if (!$lt || time() < $lt) return;
    5454
     
    8989        $options = get_option(STM_GDPR_SLUG);
    9090
     91        if (empty($options)) $options = self::stm_heplers_get_default_options();
     92
    9193        if (empty($option)) {
    9294            return $options[$group][0];
     
    134136
    135137    public static function stm_helpers_isEnabled($group, $slug) {
    136 
    137138        return filter_var(
    138139            self::stm_helpers_cmb_get_option( $group, $slug),
     
    254255        return self::$instance;
    255256    }
     257
     258    public static function stm_heplers_get_default_options(){
     259        $settings = array(
     260            "stmgdpr_general" => array(
     261                array(
     262                    "popup" => "on",
     263                    "block_cookies" => "on",
     264                    "expire_time" => "15768000",
     265                    "button_text" => "Ok, I agree",
     266                    "popup_content" => "This website uses cookies and asks your personal data to enhance your browsing experience.",
     267                    "popup_bg_color" => "#131323",
     268                    "popup_text_color" => "#fff",
     269                    "popup_position" => "left_bottom_"
     270                )
     271            ),
     272            "stmgdpr_privacy" => array(
     273                array(
     274                    "privacy_page" => "0",
     275                    "link_text" => "Privacy Policy"
     276                )
     277            ),
     278            "stmgdpr_plugins" => array(
     279                array(
     280                    "contact_form_7_label" => "I agree with storage and handling of my data by this website.",
     281                    "contact_form_7_error" => "You have to accept the privacy checkbox",
     282                    "mailchimp_label" => "I agree with storage and handling of my data by this website.",
     283                    "mailchimp_error" => "You have to accept the privacy checkbox",
     284                    "woocommerce_label" => "I agree with storage and handling of my data by this website.",
     285                    "woocommerce_error" => "You have to accept the privacy checkbox",
     286                    "wordpress_label" => "I agree with storage and handling of my data by this website.",
     287                    "wordpress_error" => "You have to accept the privacy checkbox"
     288                )
     289            ),
     290            "stmgdpr_data_access" => array(
     291                array(
     292                    "error_prefix" => "Some errors occurred:",
     293                    "success" => "Your request have been submitted. Check your email to validate your data request."
     294                )
     295            )
     296        );
     297        return $settings;
     298    }
    256299}
  • gdpr-compliance-cookie-consent/trunk/readme.txt

    r3066866 r3078625  
    44Tags: gdpr, cookie consent, gdpr compliance, privacy policy, cookie banner
    55Requires at least: 4.6
    6 Tested up to: 6.5
    7 Stable tag: 1.5
     6Tested up to: 6.5.2
     7Stable tag: 1.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    9999== Changelog ==
    100100
     101= 1.6 =
     102* Added default values. Popup enabled by default
     103
    101104= 1.5 =
    102105* Minor bug fix.
Note: See TracChangeset for help on using the changeset viewer.