Plugin Directory

Changeset 3198130


Ignore:
Timestamp:
11/27/2024 12:28:27 PM (16 months ago)
Author:
seersco
Message:

scirpt changes and youtube lazy loading

Location:
seers-cookie-consent-banner-privacy-policy
Files:
254 added
8 edited

Legend:

Unmodified
Added
Removed
  • seers-cookie-consent-banner-privacy-policy/tags/Development Versions/pages/Dashboard/Dashboard.php

    r3160573 r3198130  
    124124          </video>
    125125    </div> -->
    126     <div class="seers-cms-dashboard-section-video">
    127     <iframe width="96%" height="98%"
    128         src="https://www.youtube.com/embed/GvqbwPNKUQw?si=0l1IwulE27Yilece"
    129         title="YouTube video player"
    130         frameborder="0"
    131         allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
    132         allowfullscreen>
    133     </iframe>
    134 
    135         </div>   
     126    <div class="seers-cms-dashboard-section-video" id="video-placeholder">
     127        <img src="<?php echo plugin_dir_url(__FILE__) . '../../images/hqdefault3.png'; ?>" alt="Video Thumbnail" style="width: 96%; height: 98%; cursor: pointer;">
     128    </div>   
    136129    </div>
    137130        <div class="seers-cms-dashboard-recent-logs seers-paid-feature-opener" name="recentslogs">
     
    152145            });
    153146        });
     147
     148        //lazy load youtube video
     149        document.addEventListener("DOMContentLoaded", function() {
     150            setTimeout(function() {
     151                document.getElementById('video-placeholder').innerHTML = `
     152                    <iframe width="96%" height="98%"
     153                        src="https://www.youtube.com/embed/GvqbwPNKUQw?si=0l1IwulE27Yilece"
     154                        title="YouTube video player"
     155                        frameborder="0"
     156                        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
     157                        allowfullscreen loading="lazy">
     158                    </iframe>`;
     159            }, 2000);
     160        });
     161
    154162        // const premiumButton = document.querySelector('.seers-cms-dashboard-spremium');
    155163        // premiumButton.addEventListener('click', () => {
  • seers-cookie-consent-banner-privacy-policy/tags/Development Versions/readme.txt

    r3160987 r3198130  
    55Requires at least: 3.8 or higher
    66Tested up to: 6.6.2
    7 Stable tag: 9.0.4
     7Stable tag: 9.1.0
    88Requires PHP: 5.3.3
    99Author URL: https://seersco.com
     
    220220== Changelog ==
    221221
     222VERSION 9.1.0
     223• Youtube video changed with thunbnail
     224• Fix popup not loading some scenarios
     225
    222226VERSION 9.0.4
    223227• Readme add License field
  • seers-cookie-consent-banner-privacy-policy/tags/Development Versions/seers-cookie-consent-banner-privacy-policy.php

    r3160987 r3198130  
    1111* Plugin URI: https://seersco.com/plugins/wordpress-plugin-installation-of-seers-cookie-consent/
    1212* Description: Seers cookie consent management platform is trusted by thousands of businesses. Become GDPR, CCPA, ePrivacy and LGPD compliant in three clicks.
    13 * Version: 9.0.4
     13* Version: 9.1.0
    1414* Author: Seers
    1515* Author URI: https://seersco.com/
     
    19411941                    if ($showbadge !== false && ($showbadge === 'true' || $showbadge === true)) {
    19421942                        require_once plugin_dir_path(__FILE__) . 'templates/frontend-popup.php';
    1943                         echo '<script>window.onload = function(e) {
     1943                        echo '<script>window.onload = seers_showconsentpopup_new();
     1944                        function seers_showconsentpopup_new() {
    19441945                            let concentname = "SeersCMPConsent";
    19451946
     
    19791980                    } else {
    19801981                        require_once plugin_dir_path(__FILE__) . 'templates/frontend-popup.php';
    1981                         echo '<script>window.onload = function(e) {
     1982                        echo '<script>window.onload = seers_showconsentpopup();
     1983                        function seers_showconsentpopup()  {
    19821984                            let concentname = "SeersCMPConsent";
    19831985
  • seers-cookie-consent-banner-privacy-policy/tags/Development Versions/templates/admin.php

    r3147210 r3198130  
    346346                                                            id="seers_term_condition" value="terms" class="number" checked>
    347347                                                        <?php esc_html_e('I agree Seers',$this->textdomain); ?>
    348                                                         <a href="https://seersco.com/terms-and-conditions.html" target="_blank"><?php echo __('Terms & Condition',$this->textdomain);?>
     348                                                        <a href="https://seersco.com/terms-conditions/" target="_blank"><?php echo __('Terms & Condition',$this->textdomain);?>
    349349                                                        </a>
    350350                                                        <?php echo __('and',$this->textdomain);?> <a
    351                                                             href="https://seersco.com/privacy-policy.html" target="_blank"><?php echo __('Privacy Policy',$this->textdomain); ?></a>,
     351                                                            href="https://seersco.com/privacy-policy/" target="_blank"><?php echo __('Privacy Policy',$this->textdomain); ?></a>,
    352352                                                    </div>
    353353                                                    <div class="seers-checkbox">
     
    363363                                                            id="seers_term_condition" value="terms" class="number">
    364364                                                        <?php esc_html_e('I agree Seers',$this->textdomain); ?>
    365                                                         <a href="https://seersco.com/terms-and-conditions.html" target="_blank"><?php esc_html_e('Terms & Condition',$this->textdomain);?>
     365                                                        <a href="https://seersco.com/terms-conditions/" target="_blank"><?php esc_html_e('Terms & Condition',$this->textdomain);?>
    366366                                                        </a>
    367367                                                        <?php esc_html_e('and',$this->textdomain);?>
    368368                                                        <a
    369                                                             href="https://seersco.com/privacy-policy.html" target="_blank"><?php esc_html_e('Privacy Policy',$this->textdomain); ?></a>,
     369                                                            href="https://seersco.com/privacy-policy/" target="_blank"><?php esc_html_e('Privacy Policy',$this->textdomain); ?></a>,
    370370                                                    </div>
    371371                                                    <div class="seers-checkbox">
  • seers-cookie-consent-banner-privacy-policy/trunk/pages/Dashboard/Dashboard.php

    r3160573 r3198130  
    124124          </video>
    125125    </div> -->
    126     <div class="seers-cms-dashboard-section-video">
    127     <iframe width="96%" height="98%"
    128         src="https://www.youtube.com/embed/GvqbwPNKUQw?si=0l1IwulE27Yilece"
    129         title="YouTube video player"
    130         frameborder="0"
    131         allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
    132         allowfullscreen>
    133     </iframe>
    134 
    135         </div>   
     126    <div class="seers-cms-dashboard-section-video" id="video-placeholder">
     127        <img src="<?php echo plugin_dir_url(__FILE__) . '../../images/hqdefault3.png'; ?>" alt="Video Thumbnail" style="width: 96%; height: 98%; cursor: pointer;">
     128    </div>   
    136129    </div>
    137130        <div class="seers-cms-dashboard-recent-logs seers-paid-feature-opener" name="recentslogs">
     
    152145            });
    153146        });
     147
     148        //lazy load youtube video
     149        document.addEventListener("DOMContentLoaded", function() {
     150            setTimeout(function() {
     151                document.getElementById('video-placeholder').innerHTML = `
     152                    <iframe width="96%" height="98%"
     153                        src="https://www.youtube.com/embed/GvqbwPNKUQw?si=0l1IwulE27Yilece"
     154                        title="YouTube video player"
     155                        frameborder="0"
     156                        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
     157                        allowfullscreen loading="lazy">
     158                    </iframe>`;
     159            }, 2000);
     160        });
     161
    154162        // const premiumButton = document.querySelector('.seers-cms-dashboard-spremium');
    155163        // premiumButton.addEventListener('click', () => {
  • seers-cookie-consent-banner-privacy-policy/trunk/readme.txt

    r3160987 r3198130  
    55Requires at least: 3.8 or higher
    66Tested up to: 6.6.2
    7 Stable tag: 9.0.4
     7Stable tag: 9.1.0
    88Requires PHP: 5.3.3
    99Author URL: https://seersco.com
     
    220220== Changelog ==
    221221
     222VERSION 9.1.0
     223• Youtube video changed with thunbnail
     224• Fix popup not loading some scenarios
     225
    222226VERSION 9.0.4
    223227• Readme add License field
  • seers-cookie-consent-banner-privacy-policy/trunk/seers-cookie-consent-banner-privacy-policy.php

    r3160987 r3198130  
    1111* Plugin URI: https://seersco.com/plugins/wordpress-plugin-installation-of-seers-cookie-consent/
    1212* Description: Seers cookie consent management platform is trusted by thousands of businesses. Become GDPR, CCPA, ePrivacy and LGPD compliant in three clicks.
    13 * Version: 9.0.4
     13* Version: 9.1.0
    1414* Author: Seers
    1515* Author URI: https://seersco.com/
     
    19411941                    if ($showbadge !== false && ($showbadge === 'true' || $showbadge === true)) {
    19421942                        require_once plugin_dir_path(__FILE__) . 'templates/frontend-popup.php';
    1943                         echo '<script>window.onload = function(e) {
     1943                        echo '<script>window.onload = seers_showconsentpopup_new();
     1944                        function seers_showconsentpopup_new() {
    19441945                            let concentname = "SeersCMPConsent";
    19451946
     
    19791980                    } else {
    19801981                        require_once plugin_dir_path(__FILE__) . 'templates/frontend-popup.php';
    1981                         echo '<script>window.onload = function(e) {
     1982                        echo '<script>window.onload = seers_showconsentpopup();
     1983                        function seers_showconsentpopup()  {
    19821984                            let concentname = "SeersCMPConsent";
    19831985
  • seers-cookie-consent-banner-privacy-policy/trunk/templates/admin.php

    r3147210 r3198130  
    346346                                                            id="seers_term_condition" value="terms" class="number" checked>
    347347                                                        <?php esc_html_e('I agree Seers',$this->textdomain); ?>
    348                                                         <a href="https://seersco.com/terms-and-conditions.html" target="_blank"><?php echo __('Terms & Condition',$this->textdomain);?>
     348                                                        <a href="https://seersco.com/terms-conditions/" target="_blank"><?php echo __('Terms & Condition',$this->textdomain);?>
    349349                                                        </a>
    350350                                                        <?php echo __('and',$this->textdomain);?> <a
    351                                                             href="https://seersco.com/privacy-policy.html" target="_blank"><?php echo __('Privacy Policy',$this->textdomain); ?></a>,
     351                                                            href="https://seersco.com/privacy-policy/" target="_blank"><?php echo __('Privacy Policy',$this->textdomain); ?></a>,
    352352                                                    </div>
    353353                                                    <div class="seers-checkbox">
     
    363363                                                            id="seers_term_condition" value="terms" class="number">
    364364                                                        <?php esc_html_e('I agree Seers',$this->textdomain); ?>
    365                                                         <a href="https://seersco.com/terms-and-conditions.html" target="_blank"><?php esc_html_e('Terms & Condition',$this->textdomain);?>
     365                                                        <a href="https://seersco.com/terms-conditions/" target="_blank"><?php esc_html_e('Terms & Condition',$this->textdomain);?>
    366366                                                        </a>
    367367                                                        <?php esc_html_e('and',$this->textdomain);?>
    368368                                                        <a
    369                                                             href="https://seersco.com/privacy-policy.html" target="_blank"><?php esc_html_e('Privacy Policy',$this->textdomain); ?></a>,
     369                                                            href="https://seersco.com/privacy-policy/" target="_blank"><?php esc_html_e('Privacy Policy',$this->textdomain); ?></a>,
    370370                                                    </div>
    371371                                                    <div class="seers-checkbox">
Note: See TracChangeset for help on using the changeset viewer.