Plugin Directory

Changeset 3103008


Ignore:
Timestamp:
06/15/2024 09:17:17 AM (22 months ago)
Author:
divisupreme
Message:

update 2.5.57

Location:
supreme-modules-for-divi
Files:
185 added
4 edited

Legend:

Unmodified
Added
Removed
  • supreme-modules-for-divi/trunk/includes/modules/Lottie/Lottie.php

    r3079965 r3103008  
    311311        wp_enqueue_script( 'dsm-lottie-module' );
    312312
    313         $data_attrs[] = array(
     313        $data_attrs = array(
    314314            'path'      => $lottie_url,
    315315            'loop'      => 'off' !== $lottie_loop ? true : false,
     
    329329            '<div class="dsm_lottie_wrapper" data-percent-viewport="" data-params=%1$s>
    330330            </div>',
    331             wp_json_encode( $data_attrs )
     331            htmlspecialchars( wp_json_encode( $data_attrs ), ENT_QUOTES, 'UTF-8' )
    332332        );
    333333
  • supreme-modules-for-divi/trunk/includes/modules/Lottie/frontend.min.js

    r2875648 r3103008  
    1 jQuery(function(t){t(".dsm_lottie_wrapper").length&&t(".dsm_lottie_wrapper").each(function(e,o){lottie.searchAnimations(),$this=t(this),$thisData=t(this).data("params");!0===$thisData[0].autoplay&&parseInt($thisData[0].delay,10)==parseInt($thisData[0].delay,10)&&parseInt($thisData[0].delay,10);var a=""!==$thisData[0].loop_no||$thisData[0].loop,s=""!==$thisData[0].loop_no?$thisData[0].loop_no:a,n=$thisData[0].mouseout,i=$thisData[0].direction,r=$thisData[0].hover,l=$thisData[0].trigger,p=$thisData[0].scroll,h=lottie.loadAnimation({container:this,renderer:"svg",loop:!0!==r&&s,autoplay:!1,path:$thisData[0].path,rendererSettings:{progressiveLoad:!1}});if($thisData[0].hasOwnProperty("speed")&&h.setSpeed($thisData[0].speed),$thisData[0].hasOwnProperty("direction")&&h.setDirection(i),!0===r){h.addEventListener("DOMLoaded",function(){h.goToAndStop(0,!0)});var c,d=function(t){var e=Math.round(h.animationData.op);h.setDirection(i),h.playSegments([0,e],!0)},u=function(t){switch(n){case"no_action":break;case"stop":h.stop();break;case"pause":h.pause();break;case"reverse":h.setDirection(-1*i),h.play();break;default:h.stop()}};if("on_hover"===l&&(t(this).closest(".et_pb_column").off("mouseenter",d).on("mouseenter",d),t(this).closest(".et_pb_column").off("mouseleave",u).on("mouseleave",u)),"on_click"===l&&this.addEventListener("click",function(){d()}),"on_scroll"===l)c=$this.closest(".et_pb_row").length?$this.closest(".et_pb_row").offset().top:$this.closest(".et_pb_module").offset().top,t(window).scroll(function(){console.log(p),console.log(r);var t=h.totalFrames,e=t+c-400,o=100*(jQuery(window).scrollTop()-(c-400))/t;if("page"===p){var a=100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height());scrollPercentRounded=Math.round(a),h.goToAndStop(scrollPercentRounded/100*h.totalFrames-1,!0)}else if(jQuery(window).scrollTop()>=c-400&&jQuery(window).scrollTop()<=e){var s=Math.round(o);h.goToAndStop(s/100*h.totalFrames-1,!0)}})}else new Waypoint({element:this,handler:function(e){"down"===e?setTimeout(function(){h.play()},parseInt(t(this.element).data("params")[0].delay,10)):h.pause()},offset:$thisData[0].viewport})})});
     1jQuery(function(e){e(".dsm_lottie_wrapper").length&&e(".dsm_lottie_wrapper").each(function(o,t){lottie.searchAnimations(),$this=e(this),!0===($thisData=e(this).data("params")).autoplay&&parseInt($thisData.delay,10)===parseInt($thisData.delay,10)&&parseInt($thisData.delay,10);var s=""!==$thisData.loop_no||$thisData.loop,n=""!==$thisData.loop_no?$thisData.loop_no:s,a=$thisData.mouseout,r=$thisData.direction,l=$thisData.hover,i=$thisData.trigger,p=$thisData.scroll,c=lottie.loadAnimation({container:this,renderer:"svg",loop:!0!==l&&n,autoplay:!1,path:$thisData.path,rendererSettings:{progressiveLoad:!1}});if($thisData.hasOwnProperty("speed")&&c.setSpeed($thisData.speed),$thisData.hasOwnProperty("direction")&&c.setDirection(r),!0===l){c.addEventListener("DOMLoaded",function(){c.goToAndStop(0,!0)});var d,u=function(e){var o=Math.round(c.animationData.op);c.setDirection(r),c.playSegments([0,o],!0)},$=function(e){switch(a){case"no_action":break;case"stop":default:c.stop();break;case"pause":c.pause();break;case"reverse":c.setDirection(-1*r),c.play()}};"on_hover"===i&&(e(this).closest(".et_pb_column").off("mouseenter",u).on("mouseenter",u),e(this).closest(".et_pb_column").off("mouseleave",$).on("mouseleave",$)),"on_click"===i&&this.addEventListener("click",function(){u()}),"on_scroll"===i&&(d=$this.closest(".et_pb_row").length?$this.closest(".et_pb_row").offset().top:$this.closest(".et_pb_module").offset().top,e(window).scroll(function(){console.log(p),console.log(l);var e=c.totalFrames,o=e+d-400,t=100*(jQuery(window).scrollTop()-(d-400))/e;"page"===p?(scrollPercentRounded=Math.round(100*jQuery(window).scrollTop()/(jQuery(document).height()-jQuery(window).height())),c.goToAndStop(scrollPercentRounded/100*c.totalFrames-1,!0)):jQuery(window).scrollTop()>=d-400&&jQuery(window).scrollTop()<=o&&c.goToAndStop(Math.round(t)/100*c.totalFrames-1,!0)}))}else new Waypoint({element:this,handler:function(o){"down"===o?setTimeout(function(){c.play()},parseInt(e(this.element).data("params").delay,10)):c.pause()},offset:$thisData.viewport})})});
  • supreme-modules-for-divi/trunk/readme.txt

    r3100948 r3103008  
    66Tested up to: 6.5.4
    77Requires PHP: 7.4
    8 Stable tag: 2.5.56
     8Stable tag: 2.5.57
    99License: GPLv2
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    112112
    113113== Changelog ==
     114= 2.5.57 – 15.06.2024 =
     115* Fixed: Removed quotes in the data attribute for the Divi Lottie Module, which were causing invalid HTML and issues with the DOM parser.
     116* Enhanced: Made the Divi Lottie Module compatible with TranslatePress.
     117
    114118= 2.5.56 – 11.06.2024 =
    115119* Updated: Magnific Popup JS to version 1.2.0 which fixes jQuery deprecated functions and potential security vulnerabilities.
  • supreme-modules-for-divi/trunk/supreme-modules-for-divi.php

    r3100948 r3103008  
    44 * Plugin URI:  https://divisupreme.com/supreme-modules-lite-for-divi/
    55 * Description: Divi Supreme enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
    6  * Version:     2.5.56
     6 * Version:     2.5.57
    77 * Author:      Supreme Modules
    88 * Author URI:  https://divisupreme.com/about-us/
     
    3535
    3636if ( ! defined( 'DSM_VERSION' ) ) {
    37     define( 'DSM_VERSION', '2.5.56' );
     37    define( 'DSM_VERSION', '2.5.57' );
    3838}
    3939
Note: See TracChangeset for help on using the changeset viewer.