Version Description
09.04.2020 = * Fixed: Divi Before After Image Slider module $animation_style var not found.
Download this release
Release Info
Developer | divisupreme |
Plugin | Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.9.7 to 2.0.1
includes/modules/BeforeAfterImage/BeforeAfterImage.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
class DSM_Before_After_Image extends ET_Builder_Module {
|
4 |
-
static
|
5 |
public $slug = 'dsm_before_after_image';
|
6 |
public $vb_support = 'on';
|
7 |
|
@@ -428,6 +428,7 @@ class DSM_Before_After_Image extends ET_Builder_Module {
|
|
428 |
$overlay_color_tablet = isset( $overlay_color_values['tablet'] ) ? $overlay_color_values['tablet'] : '';
|
429 |
$overlay_color_phone = isset( $overlay_color_values['phone'] ) ? $overlay_color_values['phone'] : '';
|
430 |
|
|
|
431 |
$video_background = $this->video_background();
|
432 |
$parallax_image_background = $this->get_parallax_image_background();
|
433 |
|
@@ -456,7 +457,7 @@ class DSM_Before_After_Image extends ET_Builder_Module {
|
|
456 |
$handle_arrow_right_selector = '%%order_class%% .dsm-before-after-image-slider-right-arrow';
|
457 |
|
458 |
if ( 'off' === $no_overlay ) {
|
459 |
-
//Overlay.
|
460 |
$overlay_color_style = sprintf( ' background-color: %1$s;', esc_attr( $overlay_color ) );
|
461 |
$overlay_color_tablet_style = '' !== $overlay_color_tablet ? sprintf( ' background-color: %1$s;', esc_attr( $overlay_color_tablet ) ) : '';
|
462 |
$overlay_color_phone_style = '' !== $overlay_color_phone ? sprintf( ' background-color: %1$s;', esc_attr( $overlay_color_phone ) ) : '';
|
@@ -493,7 +494,7 @@ class DSM_Before_After_Image extends ET_Builder_Module {
|
|
493 |
);
|
494 |
}
|
495 |
|
496 |
-
//Labels.
|
497 |
$before_label_background_color_style = sprintf( ' background-color: %1$s;', esc_attr( $before_label_background_color ) );
|
498 |
$before_label_background_color_tablet_style = '' !== $before_label_background_color_tablet ? sprintf( ' background-color: %1$s;', esc_attr( $before_label_background_color_tablet ) ) : '';
|
499 |
$before_label_background_color_phone_style = '' !== $before_label_background_color_phone ? sprintf( ' background-color: %1$s;', esc_attr( $before_label_background_color_phone ) ) : '';
|
@@ -567,7 +568,7 @@ class DSM_Before_After_Image extends ET_Builder_Module {
|
|
567 |
}
|
568 |
}
|
569 |
|
570 |
-
//Handle Slider.
|
571 |
$handle_border_style = sprintf( ' border-color: %1$s;', esc_attr( $handle_border_color ) );
|
572 |
$handle_border_tablet_style = '' !== $handle_border_color_tablet ? sprintf( ' border-color: %1$s;', esc_attr( $handle_border_color_tablet ) ) : '';
|
573 |
$handle_border_phone_style = '' !== $handle_border_color_phone ? sprintf( ' border-color: %1$s;', esc_attr( $handle_border_color_phone ) ) : '';
|
@@ -667,7 +668,7 @@ class DSM_Before_After_Image extends ET_Builder_Module {
|
|
667 |
);
|
668 |
}
|
669 |
|
670 |
-
//Arrows.
|
671 |
if ( 'vertical' === $orientation ) {
|
672 |
$handle_arrow_up_style = sprintf( ' border-bottom-color: %1$s;', esc_attr( $handle_arrow_color ) );
|
673 |
$handle_arrow_up_tablet_style = '' !== $handle_arrow_color_tablet ? sprintf( ' border-bottom-color: %1$s;', esc_attr( $handle_arrow_color_tablet ) ) : '';
|
@@ -793,7 +794,7 @@ class DSM_Before_After_Image extends ET_Builder_Module {
|
|
793 |
);
|
794 |
}
|
795 |
|
796 |
-
//Handle.
|
797 |
$handle_horizontal_border_style = sprintf( ' box-shadow: 0 -3px 0 %1$s, 0px 0px 12px rgba(51, 51, 51, 0.5);', esc_attr( $handle_border_color ) );
|
798 |
$handle_horizontal_border_tablet_style = '' !== $handle_border_color_tablet ? sprintf( ' box-shadow: 0 -3px 0 %1$s, 0px 0px 12px rgba(51, 51, 51, 0.5);', esc_attr( $handle_border_color_tablet ) ) : '';
|
799 |
$handle_horizontal_border_phone_style = '' !== $handle_border_color_phone ? sprintf( ' box-shadow: 0 -3px 0 %1$s, 0px 0px 12px rgba(51, 51, 51, 0.5);', esc_attr( $handle_border_color_phone ) ) : '';
|
1 |
<?php
|
2 |
|
3 |
class DSM_Before_After_Image extends ET_Builder_Module {
|
4 |
+
protected static $rendering = false;
|
5 |
public $slug = 'dsm_before_after_image';
|
6 |
public $vb_support = 'on';
|
7 |
|
428 |
$overlay_color_tablet = isset( $overlay_color_values['tablet'] ) ? $overlay_color_values['tablet'] : '';
|
429 |
$overlay_color_phone = isset( $overlay_color_values['phone'] ) ? $overlay_color_values['phone'] : '';
|
430 |
|
431 |
+
$animation_style = $this->props['animation_style'];
|
432 |
$video_background = $this->video_background();
|
433 |
$parallax_image_background = $this->get_parallax_image_background();
|
434 |
|
457 |
$handle_arrow_right_selector = '%%order_class%% .dsm-before-after-image-slider-right-arrow';
|
458 |
|
459 |
if ( 'off' === $no_overlay ) {
|
460 |
+
// Overlay.
|
461 |
$overlay_color_style = sprintf( ' background-color: %1$s;', esc_attr( $overlay_color ) );
|
462 |
$overlay_color_tablet_style = '' !== $overlay_color_tablet ? sprintf( ' background-color: %1$s;', esc_attr( $overlay_color_tablet ) ) : '';
|
463 |
$overlay_color_phone_style = '' !== $overlay_color_phone ? sprintf( ' background-color: %1$s;', esc_attr( $overlay_color_phone ) ) : '';
|
494 |
);
|
495 |
}
|
496 |
|
497 |
+
// Labels.
|
498 |
$before_label_background_color_style = sprintf( ' background-color: %1$s;', esc_attr( $before_label_background_color ) );
|
499 |
$before_label_background_color_tablet_style = '' !== $before_label_background_color_tablet ? sprintf( ' background-color: %1$s;', esc_attr( $before_label_background_color_tablet ) ) : '';
|
500 |
$before_label_background_color_phone_style = '' !== $before_label_background_color_phone ? sprintf( ' background-color: %1$s;', esc_attr( $before_label_background_color_phone ) ) : '';
|
568 |
}
|
569 |
}
|
570 |
|
571 |
+
// Handle Slider.
|
572 |
$handle_border_style = sprintf( ' border-color: %1$s;', esc_attr( $handle_border_color ) );
|
573 |
$handle_border_tablet_style = '' !== $handle_border_color_tablet ? sprintf( ' border-color: %1$s;', esc_attr( $handle_border_color_tablet ) ) : '';
|
574 |
$handle_border_phone_style = '' !== $handle_border_color_phone ? sprintf( ' border-color: %1$s;', esc_attr( $handle_border_color_phone ) ) : '';
|
668 |
);
|
669 |
}
|
670 |
|
671 |
+
// Arrows.
|
672 |
if ( 'vertical' === $orientation ) {
|
673 |
$handle_arrow_up_style = sprintf( ' border-bottom-color: %1$s;', esc_attr( $handle_arrow_color ) );
|
674 |
$handle_arrow_up_tablet_style = '' !== $handle_arrow_color_tablet ? sprintf( ' border-bottom-color: %1$s;', esc_attr( $handle_arrow_color_tablet ) ) : '';
|
794 |
);
|
795 |
}
|
796 |
|
797 |
+
// Handle.
|
798 |
$handle_horizontal_border_style = sprintf( ' box-shadow: 0 -3px 0 %1$s, 0px 0px 12px rgba(51, 51, 51, 0.5);', esc_attr( $handle_border_color ) );
|
799 |
$handle_horizontal_border_tablet_style = '' !== $handle_border_color_tablet ? sprintf( ' box-shadow: 0 -3px 0 %1$s, 0px 0px 12px rgba(51, 51, 51, 0.5);', esc_attr( $handle_border_color_tablet ) ) : '';
|
800 |
$handle_horizontal_border_phone_style = '' !== $handle_border_color_phone ? sprintf( ' box-shadow: 0 -3px 0 %1$s, 0px 0px 12px rgba(51, 51, 51, 0.5);', esc_attr( $handle_border_color_phone ) ) : '';
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag:
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -108,6 +108,18 @@ This is a common question that we get asked here every now and then which is why
|
|
108 |
|
109 |
|
110 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
= 1.9.7 – 08.04.2020 =
|
112 |
* Added: Divi Before After Image Slider.
|
113 |
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.0.1
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
108 |
|
109 |
|
110 |
== Changelog ==
|
111 |
+
= 2.0.1 – 09.04.2020 =
|
112 |
+
* Fixed: Divi Before After Image Slider module $animation_style var not found.
|
113 |
+
|
114 |
+
= 2.0.0 – 08.04.2020 =
|
115 |
+
* Enhanced: Divi Before After Image Slider label text with spaces.
|
116 |
+
|
117 |
+
= 1.9.9 – 08.04.2020 =
|
118 |
+
* Fixed: Divi Before After Image Slider JSON error on frontend.
|
119 |
+
|
120 |
+
= 1.9.8 – 08.04.2020 =
|
121 |
+
* Fixed: Divi Before After Image Slider not uploaded to WordPress repository.
|
122 |
+
|
123 |
= 1.9.7 – 08.04.2020 =
|
124 |
* Added: Divi Before After Image Slider.
|
125 |
|
scripts/frontend-bundle.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(i){var t={};function a(n){if(t[n])return t[n].exports;var e=t[n]={i:n,l:!1,exports:{}};return i[n].call(e.exports,e,e.exports,a),e.l=!0,e.exports}a.m=i,a.c=t,a.d=function(i,t,n){a.o(i,t)||Object.defineProperty(i,t,{configurable:!1,enumerable:!0,get:n})},a.n=function(i){var t=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(t,"a",t),t},a.o=function(i,t){return Object.prototype.hasOwnProperty.call(i,t)},a.p="/",a(a.s=334)}({334:function(i,t,a){a(87),a(93),a(90),a(335),a(57),a(56),a(76),a(75),a(77),a(336),a(337),a(338),a(52),a(339),a(55),a(91),a(340),a(88),a(53),a(89),a(341),a(92),a(54),a(342),i.exports=a(343)},335:function(i,t){},336:function(i,t){},337:function(i,t){},338:function(i,t){},339:function(i,t){},340:function(i,t){},341:function(i,t){},342:function(i,t){},343:function(i,t){jQuery(function(i){navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/);var t=i("body").hasClass("et-fb"),a=i(".dsm-typing-effect .dsm-typing");i(".dsm-typing-effect").length&&i(a).each(function(t,a){var n=i(this).data("dsm-typing-strings").split("|"),e=i(this).data("dsm-typing-loop"),o=parseFloat(i(this).data("dsm-typing-speed"),10),d=parseFloat(i(this).data("dsm-typing-backdelay"),10),s=this,c={strings:n,loop:e,typeSpeed:o,backSpeed:parseFloat(i(this).data("dsm-typing-backspeed"),10),backDelay:d,contentType:"null"},I="";i(this).waypoint({handler:function(i){"down"===i?I=new Typed(s,c):I.destroy()},offset:"100%"})});var n=i(".dsm_before_after_image_wrapper");n.length&&i(n).each(function(t,a){$thisData=
|
1 |
+
!function(i){var t={};function a(n){if(t[n])return t[n].exports;var e=t[n]={i:n,l:!1,exports:{}};return i[n].call(e.exports,e,e.exports,a),e.l=!0,e.exports}a.m=i,a.c=t,a.d=function(i,t,n){a.o(i,t)||Object.defineProperty(i,t,{configurable:!1,enumerable:!0,get:n})},a.n=function(i){var t=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(t,"a",t),t},a.o=function(i,t){return Object.prototype.hasOwnProperty.call(i,t)},a.p="/",a(a.s=334)}({334:function(i,t,a){a(87),a(93),a(90),a(335),a(57),a(56),a(76),a(75),a(77),a(336),a(337),a(338),a(52),a(339),a(55),a(91),a(340),a(88),a(53),a(89),a(341),a(92),a(54),a(342),i.exports=a(343)},335:function(i,t){},336:function(i,t){},337:function(i,t){},338:function(i,t){},339:function(i,t){},340:function(i,t){},341:function(i,t){},342:function(i,t){},343:function(i,t){jQuery(function(i){navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/);var t=i("body").hasClass("et-fb"),a=i(".dsm-typing-effect .dsm-typing");i(".dsm-typing-effect").length&&i(a).each(function(t,a){var n=i(this).data("dsm-typing-strings").split("|"),e=i(this).data("dsm-typing-loop"),o=parseFloat(i(this).data("dsm-typing-speed"),10),d=parseFloat(i(this).data("dsm-typing-backdelay"),10),s=this,c={strings:n,loop:e,typeSpeed:o,backSpeed:parseFloat(i(this).data("dsm-typing-backspeed"),10),backDelay:d,contentType:"null"},I="";i(this).waypoint({handler:function(i){"down"===i?I=new Typed(s,c):I.destroy()},offset:"100%"})});var n=i(".dsm_before_after_image_wrapper");n.length&&i(n).each(function(t,a){$thisData=i(this).data("params"),i(this).twentytwenty({default_offset_pct:$thisData[0].offset,orientation:$thisData[0].orientation,before_label:$thisData[0].before_label,after_label:$thisData[0].after_label,no_overlay:$thisData[0].overlay,move_slider_on_hover:$thisData[0].hover,move_with_handle_only:$thisData[0].handle,click_to_move:$thisData[0].click})}),i(".dsm_contact_form_7_btn_icon").length&&i(".dsm_contact_form_7_btn_icon").each(function(t,a){var n=i(this).attr("data-dsm-btn-icon");i(this).find(".wpcf7-submit").addClass("et_pb_custom_button_icon"),i(this).find(".wpcf7-submit").attr("data-icon",n)}),i(".dsm_caldera_forms_btn_icon").length&&i(".dsm_caldera_forms_btn_icon").each(function(t,a){var n=i(this).attr("data-dsm-btn-icon");i(this).find(".dsm-cf-submit-button").addClass("et_pb_custom_button_icon"),i(this).find(".dsm-cf-submit-button").attr("data-icon",n)}),i(".dsm_caldera_forms_advanced_btn_icon").length&&i(".dsm_caldera_forms_advanced_btn_icon").each(function(t,a){var n=i(this).attr("data-dsm-advanced-btn-icon");i(this).find(".dsm-cf-advanced-button").addClass("et_pb_custom_button_icon"),i(this).find(".dsm-cf-advanced-button").attr("data-icon",n)}),i("a.dsm-video-lightbox").length&&i("a.dsm-video-lightbox").magnificPopup({type:"iframe",iframe:{markup:'<div class="mfp-iframe-scaler dsm-video-popup"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe></div>',patterns:{youtube:{index:"youtube.com/",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"},youtu_be:{index:"youtu.be",id:"/",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=0"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},dailymotion:{index:"dailymotion.com",id:function(i){var t=i.match(/^.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/);return null!==t?void 0!==t[4]?t[4]:t[2]:null},src:"https://www.dailymotion.com/embed/video/%id%"}},srcAction:"iframe_src"},mainClass:"dsm-video-popup-wrap mfp-fade"}),i("a.dsm-image-lightbox").length&&i("a.dsm-image-lightbox").magnificPopup({type:"image",removalDelay:500,mainClass:"mfp-fade"}),i(window).load(function(){t&&window.ETBuilderBackend&&window.ETBuilderBackend.defaults&&(window.ETBuilderBackend.defaults.dsm_before_after_image={before_src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTA4MCIgaGVpZ2h0PSI1NDAiIHZpZXdCb3g9IjAgMCAxMDgwIDU0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iI0VCRUJFQiIgZD0iTTAgMGgxMDgwdjU0MEgweiIvPgogICAgICAgIDxwYXRoIGQ9Ik00NDUuNjQ5IDU0MGgtOTguOTk1TDE0NC42NDkgMzM3Ljk5NSAwIDQ4Mi42NDR2LTk4Ljk5NWwxMTYuMzY1LTExNi4zNjVjMTUuNjItMTUuNjIgNDAuOTQ3LTE1LjYyIDU2LjU2OCAwTDQ0NS42NSA1NDB6IiBmaWxsLW9wYWNpdHk9Ii4xIiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz4KICAgICAgICA8Y2lyY2xlIGZpbGwtb3BhY2l0eT0iLjA1IiBmaWxsPSIjMDAwIiBjeD0iMzMxIiBjeT0iMTQ4IiByPSI3MCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMDgwIDM3OXYxMTMuMTM3TDcyOC4xNjIgMTQwLjMgMzI4LjQ2MiA1NDBIMjE1LjM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wvZz4KPC9zdmc+Cg=="})})})},52:function(i,t){},53:function(i,t){},54:function(i,t){},55:function(i,t){},56:function(i,t){},57:function(i,t){},75:function(i,t){},76:function(i,t){},77:function(i,t){},87:function(i,t){},88:function(i,t){},89:function(i,t){},90:function(i,t){},91:function(i,t){},92:function(i,t){},93:function(i,t){}});
|
supreme-modules-for-divi.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder
|
4 |
* Plugin URI: https://suprememodules.com
|
5 |
* 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:
|
7 |
* Author: Supreme Modules
|
8 |
* Author URI: https://suprememodules.com/about-us/
|
9 |
* License: GPL2
|
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'DSM_VERSION' ) ) {
|
37 |
-
define( 'DSM_VERSION', '
|
38 |
}
|
39 |
if ( ! defined( 'DSM_SHORTCODE' ) ) {
|
40 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|
3 |
* Plugin Name: Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder
|
4 |
* Plugin URI: https://suprememodules.com
|
5 |
* 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.0.1
|
7 |
* Author: Supreme Modules
|
8 |
* Author URI: https://suprememodules.com/about-us/
|
9 |
* License: GPL2
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'DSM_VERSION' ) ) {
|
37 |
+
define( 'DSM_VERSION', '2.0.1' );
|
38 |
}
|
39 |
if ( ! defined( 'DSM_SHORTCODE' ) ) {
|
40 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|