Plugin Directory

Changeset 3049451


Ignore:
Timestamp:
03/12/2024 03:17:47 AM (2 years ago)
Author:
termageddon
Message:

[1.3.8] Divi Video Overlay support + California CIPA support

Location:
termageddon-usercentrics/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • termageddon-usercentrics/trunk/README.txt

    r3011051 r3049451  
    22Contributors: dintriglia
    33Donate link: https://termageddon.com
    4 Tags: termageddon, cookie, consent, embed
     4Tags: termageddon, cookie, consent, embed, usercentrics
    55Requires at least: 3.0.1
    6 Tested up to: 6.4.2
    7 Stable tag: 1.3.7
     6Tested up to: 6.4.3
     7Stable tag: 1.3.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323If you wish to place a privacy settings link in the footer or anywhere else, you can use the [uc-privacysettings] shortcode.
    2424
    25 **Please note**: When GeoIP is enabled, you will be collecting IP addresses for the purposes of determining which cookie consent solution (or lack thereof) to provide to each website visitor (CPRA cookie consent, GDPR cookie consent, UK DPA consent or none), based on their location. A cookie will then be placed on the user's browser to log their session, which helps improve page load speed when the user visits other pages on the website. You should ensure that you are in compliance with all applicable privacy laws prior to installing this plugin (or any other technologies on your website). To opt out of this feature, keep all GeoIP checkboxes unchecked (default).
     25**Please note**: When GeoIP is enabled, you will be collecting IP addresses for the purposes of determining which cookie consent solution (or lack thereof) to provide to each website visitor (CPRA or CIPA cookie consent, GDPR cookie consent, UK DPA consent or none), based on their location. A cookie will then be placed on the user's browser to log their session, which helps improve page load speed when the user visits other pages on the website. You should ensure that you are in compliance with all applicable privacy laws prior to installing this plugin (or any other technologies on your website). To opt out of this feature, keep all GeoIP checkboxes unchecked (default).
    2626
    2727== Changelog ==
     28
     29= 1.3.8 =
     30
     31-   [ADD] Added support for CIPA in California.
     32-   [ADD] Added Divi Video Integration Support to improve image overlay placeholder handling when consent is required.
     33-   [ADD] Added documentation link for Geo-Location.
    2834
    2935= 1.3.7 =
  • termageddon-usercentrics/trunk/admin/class-termageddon-usercentrics-admin.php

    r2948875 r3049451  
    186186            $message_list[] = esc_html__( 'Geolocation Database Last Updated', 'termageddon-usercentrics' ) . ': ' . PHP_EOL . Termageddon_Usercentrics::get_maxmind_db_last_updated();
    187187            $message_list[] = esc_html__( 'Geolocation Database Next Update', 'termageddon-usercentrics' ) . ': ' . PHP_EOL . Termageddon_Usercentrics::get_maxmind_db_next_update();
     188            $message_list[] = esc_html__( 'Allowed HTML Tags', 'termageddon-usercentrics' ) . ': ' . PHP_EOL . Termageddon_Usercentrics::get_allowed_html_kses();
    188189            echo '<textarea readonly rows="17" style="width: 100%;">' . esc_textarea( implode( PHP_EOL . PHP_EOL, $message_list ) ) . '</textarea>';
    189190
     
    449450        );
    450451
     452        // Divi Video Overlay Integration Player.
     453        add_settings_field(
     454            'termageddon_usercentrics_integration_divi_video',
     455            __( 'Divi Video Player Integration', 'termageddon-usercentrics' ) . $this->mark_as_beta() . '<br>
     456            <em>' . __( 'This resolves and improves the cookie-consent implementation when using an image placeholder overlay for the Divi video embed.', 'termageddon-usercentrics' ) . '</em>',
     457            array( &$this, 'divi_video_support' ), // function which prints the field.
     458            'termageddon-usercentrics', // page slug.
     459            'termageddon_usercentrics_section_settings', // section ID.
     460            array(
     461                'label_for' => 'termageddon_usercentrics_integration_divi_video',
     462            )
     463        );
     464
     465        register_setting(
     466            'termageddon_usercentrics_settings', // settings group name.
     467            'termageddon_usercentrics_integration_divi_video', // option name.
     468            '' // sanitization function.
     469        );
     470
    451471        // Presto Player.
    452472        add_settings_field(
    453473            'termageddon_usercentrics_integration_presto_player',
    454             __( 'Presto Player', 'termageddon-usercentrics' ) . $this->mark_as_beta(),
     474            __( 'Presto Player', 'termageddon-usercentrics' ),
    455475            array( &$this, 'presto_player_support' ), // function which prints the field.
    456476            'termageddon-usercentrics', // page slug.
     
    553573        add_settings_field(
    554574            'termageddon_usercentrics_show_in_california',
    555             __( 'California (CPRA)', 'termageddon-usercentrics' ),
     575            __( 'California (CPRA or CIPA)', 'termageddon-usercentrics' ),
    556576            array( &$this, 'show_in_california_html' ), // function which prints the field.
    557577            'termageddon-usercentrics', // page slug.
     
    764784     * @return void
    765785     */
     786    public function divi_video_support( array $args ) {
     787        $args['label'] = 'enabled';
     788        self::generate_checkbox( 'divi_video', 'integration', $args );
     789    }
     790
     791    /**
     792     * The HTML field for the admin disable checkbox.
     793     *
     794     * @param array $args The arguments provided by the add_settings_field() method.
     795     * @return void
     796     */
    766797    public function presto_player_support( array $args ) {
    767798        $args['label'] = 'enabled';
     
    952983
    953984        echo '<p>' .
    954                 esc_html__( 'When enabled, you will be collecting IP addresses for the purposes of determining which cookie consent solution (or lack thereof) to provide to each website visitor (CPRA cookie consent, GDPR cookie consent, UK DPA consent or none), based on their location. A cookie will then be placed on the user\'s browser to cache their location, which helps improve page load speed when the user visits other pages on the website. You should ensure that you are in compliance with all applicable privacy laws prior to using this feature (or any other technologies on your website).', 'termageddon-usercentrics' ) .
    955             '</p>';
     985            esc_html__( 'When enabled, you will be collecting IP addresses for the purposes of determining which cookie consent solution (or lack thereof) to provide to each website visitor (CPRA or CIPA cookie consent, GDPR cookie consent, UK DPA consent or none), based on their location. A cookie will then be placed on the user\'s browser to cache their location, which helps improve page load speed when the user visits other pages on the website. You should ensure that you are in compliance with all applicable privacy laws prior to using this feature (or any other technologies on your website).', 'termageddon-usercentrics' ) .
     986        '</p>';
     987
     988        echo '<p>' .
     989            esc_html__( 'Not sure what to select? Review', 'termageddon-usercentrics' ) . ' <a href="https://termageddon.freshdesk.com/support/solutions/articles/66000503289-how-to-activate-a-cookie-policy-and-cookie-consent-solution" target="_blank">' . esc_html__( 'this article', 'termageddon-usercentrics' ) . '</a>' . ' ' . esc_html__( 'along with page 1 of your Privacy Policy questionnaire within ', 'termageddon-usercentrics' ) . '<a href="https://app.termageddon.com/home" target="_blank">app.termageddon.com</a>.' .
     990        '</p>';
    956991
    957992            echo '
  • termageddon-usercentrics/trunk/admin/css/termageddon-usercentrics-admin.css

    r2948875 r3049451  
    164164    padding: 1px 12px;
    165165}
     166
     167.tu-settings-section label em {
     168    font-size: 12px;
     169    font-weight: 400;
     170}
  • termageddon-usercentrics/trunk/admin/css/termageddon-usercentrics-admin.min.css

    r2948875 r3049451  
    1 textarea.termageddon-embed-code{width:100%;height:250px}.tu-section-settings,.tu-toggle-section{margin-top:2rem}.tu-toggle-section .tu-section-title{font-size:125%;font-weight:800}.tu-toggle-section .tu-section-title-helper{padding:1rem;color:#6c6c6c;font-style:italic}.tu-toggle-section input[readonly]{opacity:50%;pointer-events:none}.tu-toggle-section .form-table{margin-left:2rem}.tu-toggle-section .form-table td,.tu-toggle-section .form-table th{padding:.5rem 0}.tu-toggle-section.slim-section .form-table th{width:125px}.tu-settings-section .form-table th{width:300px}.tu-section-hidden{display:none}.tu-label-warning{background-color:orange;color:#fff;padding:3px 5px;border-radius:5px;font-size:60%}input[type=checkbox].wppd-ui-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;width:auto;height:auto;vertical-align:middle;position:relative;border:0;outline:0;cursor:pointer;margin:0 4px;background:0 0;box-shadow:none}input[type=checkbox].wppd-ui-toggle:focus{box-shadow:none}input[type=checkbox].wppd-ui-toggle:after{content:"";font-size:6px;font-weight:400;line-height:18px;text-indent:-14px;color:#fff;width:36px;height:18px;display:inline-block;background-color:#a7aaad;border-radius:72px;box-shadow:0 0 12px rgb(0 0 0 / 15%) inset}input[type=checkbox].wppd-ui-toggle:before{content:"";width:14px;height:14px;display:block;position:absolute;top:2px;left:2px;margin:0;border-radius:50%;background-color:#fff}input[type=checkbox].wppd-ui-toggle:checked:before{left:20px;margin:0;background-color:#fff}input[type=checkbox].wppd-ui-toggle,input[type=checkbox].wppd-ui-toggle:after,input[type=checkbox].wppd-ui-toggle:before,input[type=checkbox].wppd-ui-toggle:checked:after,input[type=checkbox].wppd-ui-toggle:checked:before{transition:ease .15s}input[type=checkbox].wppd-ui-toggle:checked:after{content:"ON";background-color:#2271b1}input[type=checkbox].wppd-ui-toggle.label-hidden:after{width:48px}input[type=checkbox].wppd-ui-toggle.label-hidden:checked:before{left:32px}input[type=checkbox].wppd-ui-toggle.label-hidden:checked:after{content:"HIDDEN"}input[type=checkbox].wppd-ui-toggle.label-enabled:after{font-size:8px;width:60px;content:"DISABLED";text-indent:15px}input[type=checkbox].wppd-ui-toggle.label-enabled:checked:before{left:44px}input[type=checkbox].wppd-ui-toggle.label-enabled:checked:after{background-color:#1ed14b;content:"ENABLED";text-indent:-14px}.notice-inline{border-top:1px solid #c3c4c7;border-bottom:1px solid #c3c4c7;border-right:1px solid #c3c4c7;border-left-width:4px;border-left-style:solid;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:5px 15px 2px;padding:1px 12px}
     1textarea.termageddon-embed-code{width:100%;height:250px}.tu-section-settings,.tu-toggle-section{margin-top:2rem}.tu-toggle-section .tu-section-title{font-size:125%;font-weight:800}.tu-toggle-section .tu-section-title-helper{padding:1rem;color:#6c6c6c;font-style:italic}.tu-toggle-section input[readonly]{opacity:50%;pointer-events:none}.tu-toggle-section .form-table{margin-left:2rem}.tu-toggle-section .form-table td,.tu-toggle-section .form-table th{padding:.5rem 0}.tu-toggle-section.slim-section .form-table th{width:125px}.tu-settings-section .form-table th{width:300px}.tu-section-hidden{display:none}.tu-label-warning{background-color:orange;color:#fff;padding:3px 5px;border-radius:5px;font-size:60%}input[type=checkbox].wppd-ui-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;width:auto;height:auto;vertical-align:middle;position:relative;border:0;outline:0;cursor:pointer;margin:0 4px;background:0 0;box-shadow:none}input[type=checkbox].wppd-ui-toggle:focus{box-shadow:none}input[type=checkbox].wppd-ui-toggle:after{content:"";font-size:6px;font-weight:400;line-height:18px;text-indent:-14px;color:#fff;width:36px;height:18px;display:inline-block;background-color:#a7aaad;border-radius:72px;box-shadow:0 0 12px rgb(0 0 0 / 15%) inset}input[type=checkbox].wppd-ui-toggle:before{content:"";width:14px;height:14px;display:block;position:absolute;top:2px;left:2px;margin:0;border-radius:50%;background-color:#fff}input[type=checkbox].wppd-ui-toggle:checked:before{left:20px;margin:0;background-color:#fff}input[type=checkbox].wppd-ui-toggle,input[type=checkbox].wppd-ui-toggle:after,input[type=checkbox].wppd-ui-toggle:before,input[type=checkbox].wppd-ui-toggle:checked:after,input[type=checkbox].wppd-ui-toggle:checked:before{transition:ease .15s}input[type=checkbox].wppd-ui-toggle:checked:after{content:"ON";background-color:#2271b1}input[type=checkbox].wppd-ui-toggle.label-hidden:after{width:48px}input[type=checkbox].wppd-ui-toggle.label-hidden:checked:before{left:32px}input[type=checkbox].wppd-ui-toggle.label-hidden:checked:after{content:"HIDDEN"}input[type=checkbox].wppd-ui-toggle.label-enabled:after{font-size:8px;width:60px;content:"DISABLED";text-indent:15px}input[type=checkbox].wppd-ui-toggle.label-enabled:checked:before{left:44px}input[type=checkbox].wppd-ui-toggle.label-enabled:checked:after{background-color:#1ed14b;content:"ENABLED";text-indent:-14px}.notice-inline{border-top:1px solid #c3c4c7;border-bottom:1px solid #c3c4c7;border-right:1px solid #c3c4c7;border-left-width:4px;border-left-style:solid;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:5px 15px 2px;padding:1px 12px}.tu-settings-section label em{font-size:12px;font-weight:400}
  • termageddon-usercentrics/trunk/includes/class-termageddon-usercentrics.php

    r2976730 r3049451  
    8080        $this->define_extra_hooks();
    8181    }
     82
     83    /**
     84     * The wp_kses() allowed html for any echoed code.
     85     *
     86     * @since    1.1.1
     87     * @access   private
     88     * @var      string    $allowed_html    The array of allowed html tags passed into the wp_kses function.
     89     */
     90    public const ALLOWED_HTML = array(
     91        'link'   => array(
     92            'rel'   => array(),
     93            'href'  => array(),
     94            'as'    => array(),
     95            'value' => array(),
     96        ),
     97        'script' => array(
     98            'type'              => array(),
     99            'id'                => array(),
     100            'src'               => array(),
     101            'data-settings-id'  => array(),
     102            'data-usercentrics' => array(),
     103            'data-version'      => array(),
     104            'async'             => array(),
     105        ),
     106        'style'  => array(
     107            'id' => array(),
     108        ),
     109    );
    82110
    83111    /**
     
    874902
    875903        return trim( ( ! empty( $city ) ? $city . ', ' : '' ) . ( ! empty( $state ) ? $state . ' ' : '' ) . ( ! empty( $country ) ? $country . '' : '' ) );
     904    }
     905
     906
     907    public static function get_allowed_html_kses(): string {
     908        $allowed = wp_kses_allowed_html( self::ALLOWED_HTML );
     909        return json_encode( $allowed, JSON_PRETTY_PRINT );
    876910    }
    877911
  • termageddon-usercentrics/trunk/languages/termageddon-usercentrics.pot

    r2948875 r3049451  
    44"Project-Id-Version: Termageddon + Usercentrics\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2023-08-05 18:28+0000\n"
     6"POT-Creation-Date: 2024-03-12 02:56+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1717"X-Domain: termageddon-usercentrics"
    1818
    19 #: admin/class-termageddon-usercentrics-admin.php:343
     19#: admin/class-termageddon-usercentrics-admin.php:344
    2020msgid "Administrators"
    2121msgstr ""
     
    2525msgstr ""
    2626
    27 #: admin/class-termageddon-usercentrics-admin.php:555
    28 msgid "California (CPRA)"
    29 msgstr ""
    30 
    31 #: admin/class-termageddon-usercentrics-admin.php:537
     27#: admin/class-termageddon-usercentrics-admin.php:188
     28msgid "Allowed HTML Tags"
     29msgstr ""
     30
     31#: admin/class-termageddon-usercentrics-admin.php:989
     32msgid "along with page 1 of your Privacy Policy questionnaire within "
     33msgstr ""
     34
     35#: admin/class-termageddon-usercentrics-admin.php:575
     36msgid "California (CPRA or CIPA)"
     37msgstr ""
     38
     39#: admin/class-termageddon-usercentrics-admin.php:557
    3240msgid "Canada (PIPEDA)"
    3341msgstr ""
    3442
    3543#. section ID.
    36 #: admin/class-termageddon-usercentrics-admin.php:647
     44#: admin/class-termageddon-usercentrics-admin.php:667
    3745msgid "Control Panel"
    3846msgstr ""
    3947
    40 #: admin/class-termageddon-usercentrics-admin.php:918
     48#: admin/class-termageddon-usercentrics-admin.php:949
    4149msgid "Cookie Policy and Consent Solution"
    4250msgstr ""
     
    4654msgstr ""
    4755
     56#: admin/class-termageddon-usercentrics-admin.php:455
     57msgid "Divi Video Player Integration"
     58msgstr ""
     59
    4860#. Description of the plugin
    4961msgid ""
     
    5264msgstr ""
    5365
    54 #: admin/class-termageddon-usercentrics-admin.php:361
     66#: admin/class-termageddon-usercentrics-admin.php:362
    5567msgid "Editors"
    5668msgstr ""
    5769
    5870#: admin/class-termageddon-usercentrics-admin.php:170
    59 #: admin/class-termageddon-usercentrics-admin.php:306
     71#: admin/class-termageddon-usercentrics-admin.php:307
    6072msgid "Embed Code"
    6173msgstr ""
    6274
    63 #: admin/class-termageddon-usercentrics-admin.php:600
     75#: admin/class-termageddon-usercentrics-admin.php:620
    6476msgid "Enable location logging"
    6577msgstr ""
    6678
    67 #: admin/class-termageddon-usercentrics-admin.php:620
     79#: admin/class-termageddon-usercentrics-admin.php:640
    6880msgid "Enable page caching support via AJAX"
    6981msgstr ""
    7082
    71 #: admin/class-termageddon-usercentrics-admin.php:661
     83#: admin/class-termageddon-usercentrics-admin.php:681
    7284msgid "Error Count"
    7385msgstr ""
    7486
    75 #: admin/class-termageddon-usercentrics-admin.php:191
     87#: admin/class-termageddon-usercentrics-admin.php:192
    7688msgid "Error Information"
    7789msgstr ""
    7890
    79 #: admin/class-termageddon-usercentrics-admin.php:679
     91#: admin/class-termageddon-usercentrics-admin.php:699
    8092msgid "Error List"
    8193msgstr ""
    8294
    83 #: admin/class-termageddon-usercentrics-admin.php:501
     95#: admin/class-termageddon-usercentrics-admin.php:521
    8496msgid "European Union & European Economic Area (GDPR)"
    8597msgstr ""
    8698
    87 #: includes/class-termageddon-usercentrics.php:198
     99#: includes/class-termageddon-usercentrics.php:225
    88100msgid "Every Month"
    89101msgstr ""
    90102
    91 #: admin/class-termageddon-usercentrics-admin.php:432
     103#: admin/class-termageddon-usercentrics-admin.php:433
    92104msgid ""
    93105"For some theme builders including Divi, the footer (bottom bar) does not "
     
    99111#. section ID.
    100112#: admin/class-termageddon-usercentrics-admin.php:172
    101 #: admin/class-termageddon-usercentrics-admin.php:481
     113#: admin/class-termageddon-usercentrics-admin.php:501
    102114msgid "Geo-Location"
    103115msgstr ""
    104116
    105117#: admin/class-termageddon-usercentrics-admin.php:143
    106 #: admin/class-termageddon-usercentrics-admin.php:963
     118#: admin/class-termageddon-usercentrics-admin.php:998
    107119msgid ""
    108120"Geo-Location is enabled, but no locations have been toggled on. This means "
     
    134146msgstr ""
    135147
    136 #: admin/class-termageddon-usercentrics-admin.php:407
     148#: admin/class-termageddon-usercentrics-admin.php:408
    137149msgid "Hide Privacy Settings Link when cookie consent tool is disabled"
    138150msgstr ""
     
    142154msgstr ""
    143155
    144 #: admin/class-termageddon-usercentrics-admin.php:936
     156#: admin/class-termageddon-usercentrics-admin.php:967
    145157msgid "If you are using the Divi theme"
    146158msgstr ""
    147159
    148 #: admin/class-termageddon-usercentrics-admin.php:935
     160#: admin/class-termageddon-usercentrics-admin.php:966
    149161msgid ""
    150162"If you would like to remove Usercentrics for logged in users such as admins, "
     
    160172msgstr ""
    161173
    162 #: admin/class-termageddon-usercentrics-admin.php:379
     174#: admin/class-termageddon-usercentrics-admin.php:380
    163175msgid "Logged-in Users"
     176msgstr ""
     177
     178#: admin/class-termageddon-usercentrics-admin.php:989
     179msgid "Not sure what to select? Review"
    164180msgstr ""
    165181
     
    170186msgstr ""
    171187
    172 #: admin/class-termageddon-usercentrics-admin.php:454
     188#: admin/class-termageddon-usercentrics-admin.php:474
    173189msgid "Presto Player"
    174190msgstr ""
    175191
    176 #: admin/class-termageddon-usercentrics-admin.php:426
     192#: admin/class-termageddon-usercentrics-admin.php:427
    177193msgid "Privacy Settings Link - Alternative Implementation"
    178194msgstr ""
    179195
    180196#. section ID.
    181 #: includes/class-termageddon-usercentrics.php:378
     197#: includes/class-termageddon-usercentrics.php:405
    182198#: admin/class-termageddon-usercentrics-admin.php:171
    183 #: admin/class-termageddon-usercentrics-admin.php:334
     199#: admin/class-termageddon-usercentrics-admin.php:335
    184200msgid "Settings"
    185201msgstr ""
     
    194210msgstr ""
    195211
     212#: admin/class-termageddon-usercentrics-admin.php:989
     213msgid "this article"
     214msgstr ""
     215
    196216#: admin/class-termageddon-usercentrics-admin.php:178
    197217msgid ""
     
    200220msgstr ""
    201221
    202 #: admin/class-termageddon-usercentrics-admin.php:975
     222#: admin/class-termageddon-usercentrics-admin.php:456
     223msgid ""
     224"This resolves and improves the cookie-consent implementation when using an "
     225"image placeholder overlay for the Divi video embed."
     226msgstr ""
     227
     228#: admin/class-termageddon-usercentrics-admin.php:1010
    203229msgid ""
    204230"To reset any of the backend variables, update the values below and save your "
     
    206232msgstr ""
    207233
    208 #: admin/class-termageddon-usercentrics-admin.php:519
     234#: admin/class-termageddon-usercentrics-admin.php:539
    209235msgid "United Kingdom (UK DPA)"
    210236msgstr ""
    211237
    212 #: admin/class-termageddon-usercentrics-admin.php:917
     238#: admin/class-termageddon-usercentrics-admin.php:948
    213239msgid "Upon generating your "
    214240msgstr ""
    215241
    216 #: admin/class-termageddon-usercentrics-admin.php:903
     242#: admin/class-termageddon-usercentrics-admin.php:934
    217243msgid "Upon saving, all previous errors in the log will be deleted."
    218244msgstr ""
    219245
    220 #: admin/class-termageddon-usercentrics-admin.php:573
     246#: admin/class-termageddon-usercentrics-admin.php:593
    221247msgid "Virginia (VCDPA)"
    222248msgstr ""
     
    229255msgstr ""
    230256
    231 #: admin/class-termageddon-usercentrics-admin.php:413
     257#: admin/class-termageddon-usercentrics-admin.php:414
    232258msgid ""
    233259"When enabled, the Privacy Settings link will be hidden from certain users, "
     
    242268msgstr ""
    243269
    244 #: admin/class-termageddon-usercentrics-admin.php:606
     270#: admin/class-termageddon-usercentrics-admin.php:626
    245271msgid ""
    246272"When enabled, the visitor's location can be viewed in the browser console, "
     
    248274msgstr ""
    249275
    250 #: admin/class-termageddon-usercentrics-admin.php:626
     276#: admin/class-termageddon-usercentrics-admin.php:646
    251277msgid ""
    252278"When enabled, the visitor's location is checked via javascript to allow "
     
    254280msgstr ""
    255281
    256 #: admin/class-termageddon-usercentrics-admin.php:954
     282#: admin/class-termageddon-usercentrics-admin.php:985
    257283msgid ""
    258284"When enabled, you will be collecting IP addresses for the purposes of "
    259285"determining which cookie consent solution (or lack thereof) to provide to "
    260 "each website visitor (CPRA cookie consent, GDPR cookie consent, UK DPA "
    261 "consent or none), based on their location. A cookie will then be placed on "
    262 "the user's browser to cache their location, which helps improve page load "
     286"each website visitor (CPRA or CIPA cookie consent, GDPR cookie consent, UK "
     287"DPA consent or none), based on their location. A cookie will then be placed "
     288"on the user's browser to cache their location, which helps improve page load "
    263289"speed when the user visits other pages on the website. You should ensure "
    264290"that you are in compliance with all applicable privacy laws prior to using "
     
    270296msgstr ""
    271297
    272 #: admin/class-termageddon-usercentrics-admin.php:919
     298#: admin/class-termageddon-usercentrics-admin.php:950
    273299msgid ""
    274300"within your Termageddon account, you will be brought to the \"View embed "
     
    277303msgstr ""
    278304
    279 #: admin/class-termageddon-usercentrics-admin.php:937
     305#: admin/class-termageddon-usercentrics-admin.php:968
    280306msgid ""
    281307"you will need to enable at least one of the settings below to ensure logged "
  • termageddon-usercentrics/trunk/public/class-termageddon-usercentrics-public.php

    r3011051 r3049451  
    3939     */
    4040    private $version;
    41 
    42     /**
    43      * The wp_kses() allowed html for any echoed code.
    44      *
    45      * @since    1.1.1
    46      * @access   private
    47      * @var      string    $allowed_html    The array of allowed html tags passed into the wp_kses function.
    48      */
    49     private const ALLOWED_HTML = array(
    50         'link'   => array(
    51             'rel'   => array(),
    52             'href'  => array(),
    53             'as'    => array(),
    54             'value' => array(),
    55         ),
    56         'script' => array(
    57             'type'              => array(),
    58             'id'                => array(),
    59             'src'               => array(),
    60             'data-settings-id'  => array(),
    61             'data-usercentrics' => array(),
    62             'data-version'      => array(),
    63             'async'             => array(),
    64         ),
    65         'style'  => array(
    66             'id' => array(),
    67         ),
    68     );
    6941
    7042    /**
     
    139111        // Output to HTML HEAD.
    140112        echo '<!-- TERMAGEDDON + USERCENTRICS (DISABLED) -->';
    141         echo wp_kses( $script, self::ALLOWED_HTML );
     113        echo wp_kses( $script, Termageddon_Usercentrics::ALLOWED_HTML );
    142114        echo '<!-- END TERMAGEDDON + USERCENTRICS -->';
    143115    }
     
    226198        }
    227199
     200        // Divi Video Player Integration Javascript.
     201        if ( Termageddon_Usercentrics::is_integration_enabled( 'divi_video' ) ) {
     202            $script .= '<script type="application/javascript" id="uc-integration-divi-video">
     203window.addEventListener(\'load\', function () {
     204    jQuery(\'div.et_pb_video_overlay_hover\').on(\'click\', function(e) {
     205        jQuery(this).closest(\'div.et_pb_video_overlay\').hide()
     206    }).find(\'a.et_pb_video_play\').attr(\'href\', \'javascript:void(0)\')
     207    })
     208</script>';
     209        }
     210
    228211        // Presto Player Integration Javascript.
    229212        if ( Termageddon_Usercentrics::is_integration_enabled( 'presto_player' ) ) {
     
    241224        // Output to HTML HEAD.
    242225        echo '<!-- TERMAGEDDON + USERCENTRICS -->';
    243         echo wp_kses( $script, self::ALLOWED_HTML );
     226        echo wp_kses( $script, Termageddon_Usercentrics::ALLOWED_HTML );
    244227        echo '<!-- END TERMAGEDDON + USERCENTRICS -->';
    245228
  • termageddon-usercentrics/trunk/termageddon-usercentrics.code-workspace

    r2792169 r3049451  
    66        {
    77            "path": "../../uploads"
     8        },
     9        {
     10            "path": "../../../../svn/termageddon-usercentrics"
    811        }
    912    ],
  • termageddon-usercentrics/trunk/termageddon-usercentrics.php

    r3011051 r3049451  
    1515 * Plugin Name:       Termageddon + Usercentrics
    1616 * Description:       Easily integrate the Usercentrics consent solution into your website while controlling visibility for logged in users and admins.
    17  * Version:           1.3.7
     17 * Version:           1.3.8
    1818 * Author:            Termageddon
    1919 * Author URI:        https://termageddon.com
     
    3434 * Rename this for your plugin and update it as you release new versions.
    3535 */
    36 define( 'TERMAGEDDON_COOKIE_VERSION', '1.3.7' );
     36define( 'TERMAGEDDON_COOKIE_VERSION', '1.3.8' );
    3737
    3838define( 'TERMAGEDDON_COOKIE_PLUGIN_PATH', dirname( __FILE__ ) );// No trailing slash.
Note: See TracChangeset for help on using the changeset viewer.