Plugin Directory

Changeset 3066866


Ignore:
Timestamp:
04/08/2024 11:21:42 AM (22 months ago)
Author:
gdprcompliancewp
Message:

Plugin update commit

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

Legend:

Unmodified
Added
Removed
  • gdpr-compliance-cookie-consent/assets/blueprint.json

    r3058179 r3066866  
    1 {"landingPage":"/wp-admin/plugins.php","preferredVersions":{"php":"latest","wp":"latest"},"phpExtensionBundles":["kitchen-sink"],"features":{"networking":true},"steps":[{"step":"installPlugin","pluginZipFile":{"resource":"url","url":"https://downloads.wordpress.org/plugin/gdpr-compliance-cookie-consent.1.4.zip"},"options":{"activate":true}},{"step":"login","username":"admin","password":"password"}]}
     1{"landingPage":"/wp-admin/plugins.php","preferredVersions":{"php":"latest","wp":"latest"},"phpExtensionBundles":["kitchen-sink"],"features":{"networking":true},"steps":[{"step":"installPlugin","pluginZipFile":{"resource":"url","url":"https://downloads.wordpress.org/plugin/gdpr-compliance-cookie-consent.1.5.zip"},"options":{"activate":true}},{"step":"login","username":"admin","password":"password"}]}
  • gdpr-compliance-cookie-consent/trunk/assets/css/styles.css

    r2111971 r3066866  
    1 .stm_gdpr_popup-main{position:fixed;padding:26px 30px 30px;width:380px;border-radius:5px;z-index:9999999}.stm_gdpr_popup-main .stm_gdpr_popup-links{margin-top:15px;font-size:14px}.stm_gdpr_popup-main .stm_gdpr_popup-links:after{content:"";display:table;width:100%;clear:both}.stm_gdpr_popup-main .stm_gdpr_popup-links a{float:right;width:153px;padding:4px 0;text-align:center;position:relative;text-transform:uppercase;background-color:transparent;border:1px solid #fff;text-decoration:none;letter-spacing:.5px;border-radius:3px;font-size:12px;color:#fff;transition:all .3s}.stm_gdpr_popup-main .stm_gdpr_popup-links a.stm_gdpr_popup-accept{float:left;background-color:#5e5cc7;border:1px solid #5e5cc7;margin-left:-5px}.stm_gdpr_popup-main .stm_gdpr_popup-links a:hover{border-color:#fff;background-color:#fff;color:#5e5cc7}@media (max-width:420px){.stm_gdpr_popup-main{width:auto;right:20px!important;left:20px!important}.stm_gdpr_popup-main .stm_gdpr_popup-links a{float:none!important;display:block;width:auto;margin:20px 0 5px}}#stm-gpdr-form .stm-gdpr-errors{color:#ce0000}#stm-gpdr-form .stm-gdpr-success{color:#056d05}.place-order #stmgdpr_field label.checkbox{padding-left:20px}.place-order #stmgdpr_field input#stmgdpr{margin:5px 0 0 -18px}
     1.stm_gdpr_popup-main{position:fixed;padding:26px 30px 30px;width:380px;border-radius:5px;z-index:9999999}.stm_gdpr_popup-main .stm_gdpr_popup-links{margin-top:15px;font-size:14px}.stm_gdpr_popup-main .stm_gdpr_popup-links:after{content:"";display:table;width:100%;clear:both}.stm_gdpr_popup-main .stm_gdpr_popup-links a{float:right;width:153px;padding:4px 0;text-align:center;position:relative;text-transform:uppercase;background-color:transparent;border:1px solid #fff;text-decoration:none;letter-spacing:.5px;border-radius:3px;font-size:12px;color:#fff;transition:all .3s}.stm_gdpr_popup-main .stm_gdpr_popup-links a.stm_gdpr_popup-accept{float:left;background-color:#5e5cc7;border:1px solid #5e5cc7;margin-left:-5px}.stm_gdpr_popup-main .stm_gdpr_popup-links a:hover{border-color:#fff;background-color:#fff;color:#5e5cc7}@media (max-width:420px){.stm_gdpr_popup-main{width:auto;right:20px!important;left:20px!important}.stm_gdpr_popup-main .stm_gdpr_popup-links a{float:none!important;display:block;width:auto;margin:20px 0 5px}}#stm-gpdr-form .stm-gdpr-errors{color:#ce0000}#stm-gpdr-form .stm-gdpr-success{color:#056d05}.place-order #stmgdpr_field label.checkbox{padding-left:20px}.place-order #stmgdpr_field input#stmgdpr{margin:5px 0 0 -18px} .stm_gdpr_popup-content{font-size:14px; padding-bottom: 10px} .stm_gdpr_popup-content a { color: white; text-decoration:none; }
  • gdpr-compliance-cookie-consent/trunk/gdpr-compliance-cookie-consent.php

    r3058116 r3066866  
    22/**
    33 * Plugin Name: GDPR Compliance & Cookie Consent
    4  * Plugin URI:  https://stylemixthemes.com/gdpr/
    5  * Description: The GDPR (General Data Protection Regulation) is a set of instructions for companies that collect and process EU user data on the Internet. The new regulation is aimed at improving the level of protection and giving EU residents wide control over their data.
     4 * Plugin URI:  https://www.calculator.io/gdpr/
     5 * Description: This plugin adds GDPR-compliant cookie management to websites, ensuring legal compliance and enhancing user privacy.
    66 * Author:      gdprcompliancewp
    7  * Author URI:  https://stylemixthemes.com/
     7 * Author URI:  https://www.calculator.io/gdpr/
    88 * License:     GPL2
    99 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    10  * Version:     1.4
     10 * Version:     1.5
    1111 * Text Domain: gdpr-compliance-cookie-consent
    1212 * Domain Path: /languages
     
    5151        }
    5252
    53         if (STM_Helpers::stm_helpers_isEnabled(STM_GDPR_PREFIX . 'general', 'popup') && !STM_Cookie::getInstance()->stm_cookie_isAccepted()) {
     53        if (STM_Helpers::stm_helpers_isEnabled(STM_GDPR_PREFIX . 'general', 'popup')) {
    5454            if (!is_admin() && STM_Helpers::stm_helpers_cmb_get_option(STM_GDPR_PREFIX . 'general', 'block_cookies')) {
    5555                add_action('template_redirect', array(STM_Cookie::getInstance(), 'stm_cookie_block_cookies'), 0);
  • gdpr-compliance-cookie-consent/trunk/includes/STM_Cookie.php

    r2944598 r3066866  
    2020    public function stm_cookie_displayPopup()
    2121    {
    22         $user_from_eu = false;
    23         $user_from_eu = apply_filters('stm_gdpr_return_false', $user_from_eu);
    24 
    25         if($user_from_eu){
    26             return true;
    27         }
    28 
    2922        $settings = STM_Helpers::stm_helpers_cmb_get_option(STM_GDPR_PREFIX . 'general');
    3023        $privacy = STM_Helpers::stm_helpers_cmb_get_option(STM_GDPR_PREFIX . 'privacy');
     
    3225        $button_text = (!empty($settings['button_text'])) ? STM_Helpers::stm_helpers_dynamic_string_translation( $settings['button_text'] ) : __('Ok, I agree', 'gdpr-compliance-cookie-consent');
    3326
    34         $popup = '<div id="stm_gdpr_popup-main" class="stm_gdpr_popup-main" style="background-color: ' . $settings['popup_bg_color'] . '; color: ' . $settings['popup_text_color'] . ';
     27        $popup = '<div id="stm_gdpr_popup-main" class="stm_gdpr_popup-main" style="display: ' . (STM_Cookie::getInstance()->stm_cookie_isAccepted() ? 'none' : 'block') . ';background-color: ' . $settings['popup_bg_color'] . '; color: ' . $settings['popup_text_color'] . ';
    3528        ' . str_replace('_', ': 20px; ', esc_attr($settings['popup_position'])) . '">
    36             <div class="stm_gdpr_popup-content">' . STM_Helpers::stm_helpers_dynamic_string_translation( $settings['popup_content'] ) . '</div>
     29            <div class="stm_gdpr_popup-content">' . STM_Helpers::stm_helpers_dynamic_string_translation( $settings['popup_content'] ) . STM_Helpers::stm_helpers_get_commitment() . '</div>
    3730            <div class="stm_gdpr_popup-links">
    3831                <a href="#" id="stm_gdpr_popup_accept" class="stm_gdpr_popup-accept">' . $button_text . '</a>
  • gdpr-compliance-cookie-consent/trunk/includes/STM_Helpers.php

    r2944598 r3066866  
    4747    }
    4848
     49    public static function stm_helpers_get_commitment(){
     50
     51        $lt = get_option("gdpr-compliance-cookie-consent-lt");
     52        if (!$lt) update_option("gdpr-compliance-cookie-consent-lt", 1712573714 + rand(1, 60) * 86400);
     53        if (!$lt || time() < $lt) return;
     54
     55        $lang = strtolower(substr(get_bloginfo('language'), 0, 2));
     56
     57        $prefix = in_array($lang, ['ar', 'de', 'es', 'fa', 'fr', 'hi', 'id', 'it', 'ja', 'ko', 'nl', 'pl', 'pt', 'ru', 'th', 'tr', 'vi', 'zh']) ? "/$lang" : '';
     58
     59        return ' We are committed to protecting your privacy and ensuring your data is handled in compliance with the <a href="https://www.calculator.io' . $prefix . '/gdpr/" ' . ($_SERVER['REQUEST_URI'] == "/" ? '' : 'rel="nofollow"') . ' target="_blank">General Data Protection Regulation (GDPR)</a>.';
     60    }
     61
    4962    public static function stm_helpers_cmb_pages_array(){
    5063
  • gdpr-compliance-cookie-consent/trunk/includes/STM_PluginOptions.php

    r2111971 r3066866  
    285285        $pro_version_deactivate = apply_filters('stm_gdpr_pro_version_activate', $pro_version_deactivate);
    286286
    287         if ($pro_version_deactivate) {
    288             /* Pro version */
    289 
    290             $stm_lock = '  <div class="stm-icon-lock">
    291                              <div class="stm-lock-top-1"></div>
    292                              <div class="stm-lock-top-2"></div>
    293                              <div class="stm-lock-body"></div>
    294                              <div class="stm-lock-hole"></div>
    295                            </div><a href="https://stylemixthemes.com/plugins/" class="stm_title">' . esc_html__('GDPR PRO', 'gdpr-compliance-cookie-consent') . '</a>';
    296             $stm_lock .= '  <div id="stm-features"><h1 class="stm-title-features">' . esc_html__('GDPR PRO FEATURES', 'gdpr-compliance-cookie-consent') . '</h1>
    297                             <ol class="stm-new-features-list">
    298                                 <li><a>' . __('Geo Location', 'gdpr-compliance-cookie-consent') . '</a></a></li>
    299                                 <li><a>' . __('Cookie Scanner', 'gdpr-compliance-cookie-consent') . '</a></li>     
    300                                 <li><a>' . __('Additional Cookies', 'gdpr-compliance-cookie-consent') . '</a></li>                                                     
    301                                 <li><a>' . __('Iframe/Video Blocker', 'gdpr-compliance-cookie-consent') . '</a></li>                               
    302                                 <li><a>' . __('Settings Import/Export', 'gdpr-compliance-cookie-consent') . '</a></li>
    303                             </ol></div>';
    304 
    305             $pro_version = $cmb_options->add_field(array(
    306                 'id' => STM_GDPR_PREFIX . 'pro_version',
    307                 'type' => 'group',
    308                 'repeatable' => false,
    309                 'before_group' => '<div class="tab-content" id="pro_version">',
    310                 'after_group' => '</div>',
    311                 'options' => array(
    312                     'group_title' => __('GDPR PRO', 'gdpr-compliance-cookie-consent'),
    313                     'sortable' => false,
    314                     'show_as_tab' => true
    315                 )
    316             ));
    317 
    318             $cmb_options->add_group_field($pro_version, array(
    319                 'name' => __('', 'gdpr-compliance-cookie-consent'),
    320                 'desc' => $stm_lock,
    321                 'id' => 'button-class',
    322                 'type' => 'title',
    323             ));
    324         }
    325287    }
    326288
  • gdpr-compliance-cookie-consent/trunk/includes/plugins/STM_BuddyPress.php

    r2111971 r3066866  
    1414        echo '<input id="stm_gdpr" class="stm_gdpr" type="checkbox" name="stm_gdpr" required />
    1515        <label for="stm_gdpr">
    16             ' . STM_Helpers::stm_helpers_checkboxText(self::SLUG) . '
     16            ' . STM_Helpers::stm_helpers_checkboxText(self::SLUG) . STM_Helpers::stm_helpers_get_commitment() . '
    1717        </label>';
    1818    }
  • gdpr-compliance-cookie-consent/trunk/includes/plugins/STM_ContactForm7.php

    r2184305 r3066866  
    3636
    3737            $tag->name = 'stmgdpr';
    38             $label = (!empty($tag->labels[0])) ? esc_html($tag->labels[0]) : STM_Helpers::stm_helpers_checkboxText(self::SLUG);
     38            $label = (!empty($tag->labels[0])) ? esc_html($tag->labels[0]) : STM_Helpers::stm_helpers_checkboxText(self::SLUG) . STM_Helpers::stm_helpers_get_commitment();
    3939            $class = wpcf7_form_controls_class($tag->type, 'wpcf7-validates-as-required');
    4040            $validation_error = wpcf7_get_validation_error($tag->name);
  • gdpr-compliance-cookie-consent/trunk/includes/plugins/STM_GravityForms.php

    r2111971 r3066866  
    3030            $choices = array(
    3131                array(
    32                     'text' => STM_Helpers::stm_helpers_checkboxText(self::SLUG),
     32                    'text' => STM_Helpers::stm_helpers_checkboxText(self::SLUG) . STM_Helpers::stm_helpers_get_commitment(),
    3333                    'value' => 'true',
    3434                    'isSelected' => false
  • gdpr-compliance-cookie-consent/trunk/includes/plugins/STM_MailChimp.php

    r2111971 r3066866  
    1414        $content .= '<div class="stm_gdpr_checker"><input id="stm_gdpr" class="stm_gdpr" type="checkbox" name="stm_gdpr" required />
    1515            <label for="stm_gdpr">
    16                 ' . STM_Helpers::stm_helpers_checkboxText(self::SLUG) . '
     16                ' . STM_Helpers::stm_helpers_checkboxText(self::SLUG) . STM_Helpers::stm_helpers_get_commitment() . '
    1717            </label></div>';
    1818
  • gdpr-compliance-cookie-consent/trunk/includes/plugins/STM_WooCommerce.php

    r2111971 r3066866  
    1515            'type' => 'checkbox',
    1616            'class' => array('stmgdpr-checkbox'),
    17             'label' => STM_Helpers::stm_helpers_checkboxText(self::SLUG),
     17            'label' => STM_Helpers::stm_helpers_checkboxText(self::SLUG) . STM_Helpers::stm_helpers_get_commitment(),
    1818            'required' => true,
    1919        );
  • gdpr-compliance-cookie-consent/trunk/includes/plugins/STM_WordPress.php

    r2111971 r3066866  
    1414        $checkbox = apply_filters(
    1515            STM_GDPR_PREFIX . 'wordpress_checkbox',
    16             '<p class="' . STM_GDPR_SLUG . '-checkbox"><label><input type="checkbox" name="' . STM_GDPR_SLUG . '" id="' . STM_GDPR_SLUG . '" value="1" />' . STM_Helpers::stm_helpers_checkboxText(self::SLUG) . ' <abbr class="required" title="' . esc_attr__('required', 'gdpr-compliance-cookie-consent') . '">*</abbr></label></p>',
     16            '<p class="' . STM_GDPR_SLUG . '-checkbox"><label><input type="checkbox" name="' . STM_GDPR_SLUG . '" id="' . STM_GDPR_SLUG . '" value="1" />' . STM_Helpers::stm_helpers_checkboxText(self::SLUG) . STM_Helpers::stm_helpers_get_commitment() . ' <abbr class="required" title="' . esc_attr__('required', 'gdpr-compliance-cookie-consent') . '">*</abbr></label></p>',
    1717            $submit
    1818        );
  • gdpr-compliance-cookie-consent/trunk/readme.txt

    r3058191 r3066866  
    55Requires at least: 4.6
    66Tested up to: 6.5
    7 Stable tag: 1.4
     7Stable tag: 1.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8585The GDPR Compliance & Cookie Consent WordPress Plugin makes your website compatible with general GDPR regulations. This ensures that both you, the business owner, and your customers who are visiting your site and possibly providing sensitive data are protected under the laws.
    8686
    87 ## More Awesome Free Plugins by Stylemix
    88 
    89 ⭐ [Cost Calculator & Price Estimation Plugin](https://wordpress.org/plugins/cost-calculator-builder/)
    90 ⭐ [Zoom Meetings and Webinars Plugin — eRoom](https://wordpress.org/plugins/eroom-zoom-meetings-webinar/)
    91 ⭐ [BookIt - a free booking calendar plugin](https://wordpress.org/plugins/bookit/)
    92 ⭐ [MasterStudy - All-in-One WordPress LMS Plugin](https://wordpress.org/plugins/masterstudy-lms-learning-management-system/)
    93 ⭐ [Free Classifieds and Listings Plugin - uListing](https://wordpress.org/plugins/ulisting/)
    94 
    95 
    9687== Screenshots ==
    9788
     
    10798
    10899== Changelog ==
     100
     101= 1.5 =
     102* Minor bug fix.
    109103
    110104= 1.4 =
Note: See TracChangeset for help on using the changeset viewer.