Plugin Directory

Changeset 3115041


Ignore:
Timestamp:
07/09/2024 01:55:55 PM (21 months ago)
Author:
termageddon
Message:

[1.4.2] Elementor video overlay integration

Location:
termageddon-usercentrics
Files:
3 deleted
5 edited
66 copied

Legend:

Unmodified
Added
Removed
  • termageddon-usercentrics/tags/1.4.2/README.txt

    r3104855 r3115041  
    44Tags: termageddon, cookie, consent, embed, usercentrics
    55Requires at least: 3.0.1
    6 Tested up to: 6.4.3
    7 Stable tag: 1.4.1
     6Tested up to: 6.5.5
     7Stable tag: 1.4.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2626
    2727== Changelog ==
     28
     29= 1.4.2 =
     30
     31-   [ADD] Added Elementor Video Integration Support to improve image overlay placeholder handling when consent is required.
    2832
    2933= 1.4.1 =
  • termageddon-usercentrics/tags/1.4.2/admin/class-termageddon-usercentrics-admin.php

    r3104855 r3115041  
    453453        add_settings_field(
    454454            'termageddon_usercentrics_integration_divi_video',
    455             __( 'Divi Video Player Integration', 'termageddon-usercentrics' ) . $this->mark_as_beta() . '<br>
     455            __( 'Divi Video Player Integration', 'termageddon-usercentrics' ) . '<br>
    456456            <em>' . __( 'This resolves and improves the cookie-consent implementation when using an image placeholder overlay for the Divi video embed.', 'termageddon-usercentrics' ) . '</em>',
    457457            array( &$this, 'divi_video_support' ), // function which prints the field.
     
    466466            'termageddon_usercentrics_settings', // settings group name.
    467467            'termageddon_usercentrics_integration_divi_video', // option name.
     468            '' // sanitization function.
     469        );
     470
     471        // Elementor Video Overlay Integration Player.
     472        add_settings_field(
     473            'termageddon_usercentrics_integration_elementor_video',
     474            __( 'Elementor Video Player Integration', 'termageddon-usercentrics' ) . $this->mark_as_beta() . '<br>
     475            <em>' . __( 'This resolves and improves the cookie-consent implementation when using an image placeholder overlay for the Elementor video embed.', 'termageddon-usercentrics' ) . '</em>',
     476            array( &$this, 'elementor_video_support' ), // function which prints the field.
     477            'termageddon-usercentrics', // page slug.
     478            'termageddon_usercentrics_section_settings', // section ID.
     479            array(
     480                'label_for' => 'termageddon_usercentrics_integration_elementor_video',
     481            )
     482        );
     483
     484        register_setting(
     485            'termageddon_usercentrics_settings', // settings group name.
     486            'termageddon_usercentrics_integration_elementor_video', // option name.
    468487            '' // sanitization function.
    469488        );
     
    815834        $args['label'] = 'enabled';
    816835        self::generate_checkbox( 'divi_video', 'integration', $args );
     836    }
     837
     838    /**
     839     * The HTML field for the admin disable checkbox.
     840     *
     841     * @param array $args The arguments provided by the add_settings_field() method.
     842     * @return void
     843     */
     844    public function elementor_video_support( array $args ) {
     845        $args['label'] = 'enabled';
     846        self::generate_checkbox( 'elementor_video', 'integration', $args );
    817847    }
    818848
  • termageddon-usercentrics/tags/1.4.2/languages/termageddon-usercentrics.pot

    r3104855 r3115041  
    44"Project-Id-Version: Termageddon + Usercentrics\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2024-03-29 02:00+0000\n"
     6"POT-Creation-Date: 2024-07-09 06:06+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    2929msgstr ""
    3030
    31 #: admin/class-termageddon-usercentrics-admin.php:1026
     31#: admin/class-termageddon-usercentrics-admin.php:1056
    3232msgid "along with page 1 of your Privacy Policy questionnaire within "
    3333msgstr ""
    3434
    35 #: admin/class-termageddon-usercentrics-admin.php:603
     35#: admin/class-termageddon-usercentrics-admin.php:622
    3636msgid "California (CPRA or CIPA)"
    3737msgstr ""
    3838
    39 #: admin/class-termageddon-usercentrics-admin.php:585
     39#: admin/class-termageddon-usercentrics-admin.php:604
    4040msgid "Canada (PIPEDA)"
    4141msgstr ""
    4242
    4343#. section ID.
    44 #: admin/class-termageddon-usercentrics-admin.php:695
     44#: admin/class-termageddon-usercentrics-admin.php:714
    4545msgid "Control Panel"
    4646msgstr ""
    4747
    48 #: admin/class-termageddon-usercentrics-admin.php:986
     48#: admin/class-termageddon-usercentrics-admin.php:1016
    4949msgid "Cookie Policy and Consent Solution"
    5050msgstr ""
     
    5454msgstr ""
    5555
    56 #: admin/class-termageddon-usercentrics-admin.php:501
     56#: admin/class-termageddon-usercentrics-admin.php:520
    5757msgid "Disable for Troubleshooting"
    5858msgstr ""
     
    7070#: admin/class-termageddon-usercentrics-admin.php:362
    7171msgid "Editors"
     72msgstr ""
     73
     74#: admin/class-termageddon-usercentrics-admin.php:474
     75msgid "Elementor Video Player Integration"
    7276msgstr ""
    7377
     
    7781msgstr ""
    7882
    79 #: admin/class-termageddon-usercentrics-admin.php:648
     83#: admin/class-termageddon-usercentrics-admin.php:667
    8084msgid "Enable location logging"
    8185msgstr ""
    8286
    83 #: admin/class-termageddon-usercentrics-admin.php:668
     87#: admin/class-termageddon-usercentrics-admin.php:687
    8488msgid "Enable page caching support via AJAX"
    8589msgstr ""
    8690
    87 #: admin/class-termageddon-usercentrics-admin.php:709
     91#: admin/class-termageddon-usercentrics-admin.php:728
    8892msgid "Error Count"
    8993msgstr ""
     
    9397msgstr ""
    9498
    95 #: admin/class-termageddon-usercentrics-admin.php:727
     99#: admin/class-termageddon-usercentrics-admin.php:746
    96100msgid "Error List"
    97101msgstr ""
    98102
    99 #: admin/class-termageddon-usercentrics-admin.php:549
     103#: admin/class-termageddon-usercentrics-admin.php:568
    100104msgid "European Union & European Economic Area (GDPR)"
    101105msgstr ""
     
    115119#. section ID.
    116120#: admin/class-termageddon-usercentrics-admin.php:172
    117 #: admin/class-termageddon-usercentrics-admin.php:529
     121#: admin/class-termageddon-usercentrics-admin.php:548
    118122msgid "Geo-Location"
    119123msgstr ""
    120124
    121125#: admin/class-termageddon-usercentrics-admin.php:143
    122 #: admin/class-termageddon-usercentrics-admin.php:1035
     126#: admin/class-termageddon-usercentrics-admin.php:1065
    123127msgid ""
    124128"Geo-Location is enabled, but no locations have been toggled on. This means "
     
    158162msgstr ""
    159163
    160 #: admin/class-termageddon-usercentrics-admin.php:1004
     164#: admin/class-termageddon-usercentrics-admin.php:1034
    161165msgid "If you are using the Divi theme"
    162166msgstr ""
    163167
    164 #: admin/class-termageddon-usercentrics-admin.php:1003
     168#: admin/class-termageddon-usercentrics-admin.php:1033
    165169msgid ""
    166170"If you would like to remove Usercentrics for logged in users such as admins, "
     
    180184msgstr ""
    181185
    182 #: admin/class-termageddon-usercentrics-admin.php:1026
     186#: admin/class-termageddon-usercentrics-admin.php:1056
    183187msgid "Not sure what to select? Review"
    184188msgstr ""
     
    190194msgstr ""
    191195
    192 #: admin/class-termageddon-usercentrics-admin.php:474
     196#: admin/class-termageddon-usercentrics-admin.php:493
    193197msgid "Presto Player"
    194198msgstr ""
     
    214218msgstr ""
    215219
    216 #: admin/class-termageddon-usercentrics-admin.php:1026
     220#: admin/class-termageddon-usercentrics-admin.php:1056
    217221msgid "this article"
    218222msgstr ""
     
    230234msgstr ""
    231235
    232 #: admin/class-termageddon-usercentrics-admin.php:1047
     236#: admin/class-termageddon-usercentrics-admin.php:475
     237msgid ""
     238"This resolves and improves the cookie-consent implementation when using an "
     239"image placeholder overlay for the Elementor video embed."
     240msgstr ""
     241
     242#: admin/class-termageddon-usercentrics-admin.php:1077
    233243msgid ""
    234244"To reset any of the backend variables, update the values below and save your "
     
    236246msgstr ""
    237247
    238 #: admin/class-termageddon-usercentrics-admin.php:567
     248#: admin/class-termageddon-usercentrics-admin.php:586
    239249msgid "United Kingdom (UK DPA)"
    240250msgstr ""
    241251
    242 #: admin/class-termageddon-usercentrics-admin.php:985
     252#: admin/class-termageddon-usercentrics-admin.php:1015
    243253msgid "Upon generating your "
    244254msgstr ""
    245255
    246 #: admin/class-termageddon-usercentrics-admin.php:971
     256#: admin/class-termageddon-usercentrics-admin.php:1001
    247257msgid "Upon saving, all previous errors in the log will be deleted."
    248258msgstr ""
    249259
    250 #: admin/class-termageddon-usercentrics-admin.php:621
     260#: admin/class-termageddon-usercentrics-admin.php:640
    251261msgid "Virginia (VCDPA)"
    252262msgstr ""
     
    272282msgstr ""
    273283
    274 #: admin/class-termageddon-usercentrics-admin.php:654
     284#: admin/class-termageddon-usercentrics-admin.php:673
    275285msgid ""
    276286"When enabled, the visitor's location can be viewed in the browser console, "
     
    278288msgstr ""
    279289
    280 #: admin/class-termageddon-usercentrics-admin.php:674
     290#: admin/class-termageddon-usercentrics-admin.php:693
    281291msgid ""
    282292"When enabled, the visitor's location is checked via javascript to allow "
     
    284294msgstr ""
    285295
    286 #: admin/class-termageddon-usercentrics-admin.php:507
     296#: admin/class-termageddon-usercentrics-admin.php:526
    287297msgid ""
    288298"When enabled, this feature allows you to turn off the consent tool for all "
     
    293303msgstr ""
    294304
    295 #: admin/class-termageddon-usercentrics-admin.php:1022
     305#: admin/class-termageddon-usercentrics-admin.php:1052
    296306msgid ""
    297307"When enabled, you will be collecting IP addresses for the purposes of "
     
    309319msgstr ""
    310320
    311 #: admin/class-termageddon-usercentrics-admin.php:987
     321#: admin/class-termageddon-usercentrics-admin.php:1017
    312322msgid ""
    313323"within your Termageddon account, you will be brought to the \"View embed "
     
    316326msgstr ""
    317327
    318 #: admin/class-termageddon-usercentrics-admin.php:1005
     328#: admin/class-termageddon-usercentrics-admin.php:1035
    319329msgid ""
    320330"you will need to enable at least one of the settings below to ensure logged "
  • termageddon-usercentrics/tags/1.4.2/public/class-termageddon-usercentrics-public.php

    r3104855 r3115041  
    9494        // Check for requirement of needing jQuery.
    9595        if ( Termageddon_Usercentrics::is_integration_enabled( 'divi_video' )
     96          || Termageddon_Usercentrics::is_integration_enabled( 'elementor_video' )
    9697          || Termageddon_Usercentrics::should_use_alternate_psl()
    9798        ) {
     
    237238        }
    238239
     240        // Elementor Video Player Integration Javascript.
     241        if ( Termageddon_Usercentrics::is_integration_enabled( 'elementor_video' ) ) {
     242            $script .= '<script type="application/javascript" id="uc-integration-elementor-video">
     243window.addEventListener(\'load\', function () {
     244    jQuery(\'.pp-media-overlay\').on(\'click\', function(e) {
     245        jQuery(this).hide()
     246    })
     247</script>';
     248        }
     249
    239250        // Presto Player Integration Javascript.
    240251        if ( Termageddon_Usercentrics::is_integration_enabled( 'presto_player' ) ) {
  • termageddon-usercentrics/tags/1.4.2/termageddon-usercentrics.php

    r3104855 r3115041  
    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.4.1
     17 * Version:           1.4.2
    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.4.1' );
     36define( 'TERMAGEDDON_COOKIE_VERSION', '1.4.2' );
    3737
    3838define( 'TERMAGEDDON_COOKIE_PLUGIN_PATH', dirname( __FILE__ ) );// No trailing slash.
  • termageddon-usercentrics/trunk/README.txt

    r3104855 r3115041  
    44Tags: termageddon, cookie, consent, embed, usercentrics
    55Requires at least: 3.0.1
    6 Tested up to: 6.4.3
    7 Stable tag: 1.4.1
     6Tested up to: 6.5.5
     7Stable tag: 1.4.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2626
    2727== Changelog ==
     28
     29= 1.4.2 =
     30
     31-   [ADD] Added Elementor Video Integration Support to improve image overlay placeholder handling when consent is required.
    2832
    2933= 1.4.1 =
  • termageddon-usercentrics/trunk/admin/class-termageddon-usercentrics-admin.php

    r3104855 r3115041  
    453453        add_settings_field(
    454454            'termageddon_usercentrics_integration_divi_video',
    455             __( 'Divi Video Player Integration', 'termageddon-usercentrics' ) . $this->mark_as_beta() . '<br>
     455            __( 'Divi Video Player Integration', 'termageddon-usercentrics' ) . '<br>
    456456            <em>' . __( 'This resolves and improves the cookie-consent implementation when using an image placeholder overlay for the Divi video embed.', 'termageddon-usercentrics' ) . '</em>',
    457457            array( &$this, 'divi_video_support' ), // function which prints the field.
     
    466466            'termageddon_usercentrics_settings', // settings group name.
    467467            'termageddon_usercentrics_integration_divi_video', // option name.
     468            '' // sanitization function.
     469        );
     470
     471        // Elementor Video Overlay Integration Player.
     472        add_settings_field(
     473            'termageddon_usercentrics_integration_elementor_video',
     474            __( 'Elementor Video Player Integration', 'termageddon-usercentrics' ) . $this->mark_as_beta() . '<br>
     475            <em>' . __( 'This resolves and improves the cookie-consent implementation when using an image placeholder overlay for the Elementor video embed.', 'termageddon-usercentrics' ) . '</em>',
     476            array( &$this, 'elementor_video_support' ), // function which prints the field.
     477            'termageddon-usercentrics', // page slug.
     478            'termageddon_usercentrics_section_settings', // section ID.
     479            array(
     480                'label_for' => 'termageddon_usercentrics_integration_elementor_video',
     481            )
     482        );
     483
     484        register_setting(
     485            'termageddon_usercentrics_settings', // settings group name.
     486            'termageddon_usercentrics_integration_elementor_video', // option name.
    468487            '' // sanitization function.
    469488        );
     
    815834        $args['label'] = 'enabled';
    816835        self::generate_checkbox( 'divi_video', 'integration', $args );
     836    }
     837
     838    /**
     839     * The HTML field for the admin disable checkbox.
     840     *
     841     * @param array $args The arguments provided by the add_settings_field() method.
     842     * @return void
     843     */
     844    public function elementor_video_support( array $args ) {
     845        $args['label'] = 'enabled';
     846        self::generate_checkbox( 'elementor_video', 'integration', $args );
    817847    }
    818848
  • termageddon-usercentrics/trunk/languages/termageddon-usercentrics.pot

    r3104855 r3115041  
    44"Project-Id-Version: Termageddon + Usercentrics\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2024-03-29 02:00+0000\n"
     6"POT-Creation-Date: 2024-07-09 06:06+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    2929msgstr ""
    3030
    31 #: admin/class-termageddon-usercentrics-admin.php:1026
     31#: admin/class-termageddon-usercentrics-admin.php:1056
    3232msgid "along with page 1 of your Privacy Policy questionnaire within "
    3333msgstr ""
    3434
    35 #: admin/class-termageddon-usercentrics-admin.php:603
     35#: admin/class-termageddon-usercentrics-admin.php:622
    3636msgid "California (CPRA or CIPA)"
    3737msgstr ""
    3838
    39 #: admin/class-termageddon-usercentrics-admin.php:585
     39#: admin/class-termageddon-usercentrics-admin.php:604
    4040msgid "Canada (PIPEDA)"
    4141msgstr ""
    4242
    4343#. section ID.
    44 #: admin/class-termageddon-usercentrics-admin.php:695
     44#: admin/class-termageddon-usercentrics-admin.php:714
    4545msgid "Control Panel"
    4646msgstr ""
    4747
    48 #: admin/class-termageddon-usercentrics-admin.php:986
     48#: admin/class-termageddon-usercentrics-admin.php:1016
    4949msgid "Cookie Policy and Consent Solution"
    5050msgstr ""
     
    5454msgstr ""
    5555
    56 #: admin/class-termageddon-usercentrics-admin.php:501
     56#: admin/class-termageddon-usercentrics-admin.php:520
    5757msgid "Disable for Troubleshooting"
    5858msgstr ""
     
    7070#: admin/class-termageddon-usercentrics-admin.php:362
    7171msgid "Editors"
     72msgstr ""
     73
     74#: admin/class-termageddon-usercentrics-admin.php:474
     75msgid "Elementor Video Player Integration"
    7276msgstr ""
    7377
     
    7781msgstr ""
    7882
    79 #: admin/class-termageddon-usercentrics-admin.php:648
     83#: admin/class-termageddon-usercentrics-admin.php:667
    8084msgid "Enable location logging"
    8185msgstr ""
    8286
    83 #: admin/class-termageddon-usercentrics-admin.php:668
     87#: admin/class-termageddon-usercentrics-admin.php:687
    8488msgid "Enable page caching support via AJAX"
    8589msgstr ""
    8690
    87 #: admin/class-termageddon-usercentrics-admin.php:709
     91#: admin/class-termageddon-usercentrics-admin.php:728
    8892msgid "Error Count"
    8993msgstr ""
     
    9397msgstr ""
    9498
    95 #: admin/class-termageddon-usercentrics-admin.php:727
     99#: admin/class-termageddon-usercentrics-admin.php:746
    96100msgid "Error List"
    97101msgstr ""
    98102
    99 #: admin/class-termageddon-usercentrics-admin.php:549
     103#: admin/class-termageddon-usercentrics-admin.php:568
    100104msgid "European Union & European Economic Area (GDPR)"
    101105msgstr ""
     
    115119#. section ID.
    116120#: admin/class-termageddon-usercentrics-admin.php:172
    117 #: admin/class-termageddon-usercentrics-admin.php:529
     121#: admin/class-termageddon-usercentrics-admin.php:548
    118122msgid "Geo-Location"
    119123msgstr ""
    120124
    121125#: admin/class-termageddon-usercentrics-admin.php:143
    122 #: admin/class-termageddon-usercentrics-admin.php:1035
     126#: admin/class-termageddon-usercentrics-admin.php:1065
    123127msgid ""
    124128"Geo-Location is enabled, but no locations have been toggled on. This means "
     
    158162msgstr ""
    159163
    160 #: admin/class-termageddon-usercentrics-admin.php:1004
     164#: admin/class-termageddon-usercentrics-admin.php:1034
    161165msgid "If you are using the Divi theme"
    162166msgstr ""
    163167
    164 #: admin/class-termageddon-usercentrics-admin.php:1003
     168#: admin/class-termageddon-usercentrics-admin.php:1033
    165169msgid ""
    166170"If you would like to remove Usercentrics for logged in users such as admins, "
     
    180184msgstr ""
    181185
    182 #: admin/class-termageddon-usercentrics-admin.php:1026
     186#: admin/class-termageddon-usercentrics-admin.php:1056
    183187msgid "Not sure what to select? Review"
    184188msgstr ""
     
    190194msgstr ""
    191195
    192 #: admin/class-termageddon-usercentrics-admin.php:474
     196#: admin/class-termageddon-usercentrics-admin.php:493
    193197msgid "Presto Player"
    194198msgstr ""
     
    214218msgstr ""
    215219
    216 #: admin/class-termageddon-usercentrics-admin.php:1026
     220#: admin/class-termageddon-usercentrics-admin.php:1056
    217221msgid "this article"
    218222msgstr ""
     
    230234msgstr ""
    231235
    232 #: admin/class-termageddon-usercentrics-admin.php:1047
     236#: admin/class-termageddon-usercentrics-admin.php:475
     237msgid ""
     238"This resolves and improves the cookie-consent implementation when using an "
     239"image placeholder overlay for the Elementor video embed."
     240msgstr ""
     241
     242#: admin/class-termageddon-usercentrics-admin.php:1077
    233243msgid ""
    234244"To reset any of the backend variables, update the values below and save your "
     
    236246msgstr ""
    237247
    238 #: admin/class-termageddon-usercentrics-admin.php:567
     248#: admin/class-termageddon-usercentrics-admin.php:586
    239249msgid "United Kingdom (UK DPA)"
    240250msgstr ""
    241251
    242 #: admin/class-termageddon-usercentrics-admin.php:985
     252#: admin/class-termageddon-usercentrics-admin.php:1015
    243253msgid "Upon generating your "
    244254msgstr ""
    245255
    246 #: admin/class-termageddon-usercentrics-admin.php:971
     256#: admin/class-termageddon-usercentrics-admin.php:1001
    247257msgid "Upon saving, all previous errors in the log will be deleted."
    248258msgstr ""
    249259
    250 #: admin/class-termageddon-usercentrics-admin.php:621
     260#: admin/class-termageddon-usercentrics-admin.php:640
    251261msgid "Virginia (VCDPA)"
    252262msgstr ""
     
    272282msgstr ""
    273283
    274 #: admin/class-termageddon-usercentrics-admin.php:654
     284#: admin/class-termageddon-usercentrics-admin.php:673
    275285msgid ""
    276286"When enabled, the visitor's location can be viewed in the browser console, "
     
    278288msgstr ""
    279289
    280 #: admin/class-termageddon-usercentrics-admin.php:674
     290#: admin/class-termageddon-usercentrics-admin.php:693
    281291msgid ""
    282292"When enabled, the visitor's location is checked via javascript to allow "
     
    284294msgstr ""
    285295
    286 #: admin/class-termageddon-usercentrics-admin.php:507
     296#: admin/class-termageddon-usercentrics-admin.php:526
    287297msgid ""
    288298"When enabled, this feature allows you to turn off the consent tool for all "
     
    293303msgstr ""
    294304
    295 #: admin/class-termageddon-usercentrics-admin.php:1022
     305#: admin/class-termageddon-usercentrics-admin.php:1052
    296306msgid ""
    297307"When enabled, you will be collecting IP addresses for the purposes of "
     
    309319msgstr ""
    310320
    311 #: admin/class-termageddon-usercentrics-admin.php:987
     321#: admin/class-termageddon-usercentrics-admin.php:1017
    312322msgid ""
    313323"within your Termageddon account, you will be brought to the \"View embed "
     
    316326msgstr ""
    317327
    318 #: admin/class-termageddon-usercentrics-admin.php:1005
     328#: admin/class-termageddon-usercentrics-admin.php:1035
    319329msgid ""
    320330"you will need to enable at least one of the settings below to ensure logged "
  • termageddon-usercentrics/trunk/public/class-termageddon-usercentrics-public.php

    r3104855 r3115041  
    9494        // Check for requirement of needing jQuery.
    9595        if ( Termageddon_Usercentrics::is_integration_enabled( 'divi_video' )
     96          || Termageddon_Usercentrics::is_integration_enabled( 'elementor_video' )
    9697          || Termageddon_Usercentrics::should_use_alternate_psl()
    9798        ) {
     
    237238        }
    238239
     240        // Elementor Video Player Integration Javascript.
     241        if ( Termageddon_Usercentrics::is_integration_enabled( 'elementor_video' ) ) {
     242            $script .= '<script type="application/javascript" id="uc-integration-elementor-video">
     243window.addEventListener(\'load\', function () {
     244    jQuery(\'.pp-media-overlay\').on(\'click\', function(e) {
     245        jQuery(this).hide()
     246    })
     247</script>';
     248        }
     249
    239250        // Presto Player Integration Javascript.
    240251        if ( Termageddon_Usercentrics::is_integration_enabled( 'presto_player' ) ) {
  • termageddon-usercentrics/trunk/termageddon-usercentrics.php

    r3104855 r3115041  
    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.4.1
     17 * Version:           1.4.2
    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.4.1' );
     36define( 'TERMAGEDDON_COOKIE_VERSION', '1.4.2' );
    3737
    3838define( 'TERMAGEDDON_COOKIE_PLUGIN_PATH', dirname( __FILE__ ) );// No trailing slash.
Note: See TracChangeset for help on using the changeset viewer.