Version Description
- 24.09.2018 =
- Official Public Release
Download this release
Release Info
Developer | divisupreme |
Plugin | Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- assets/css/dsm-admin.css +27 -0
- assets/js/typed.min.js +11 -0
- includes/SupremeModulesForDivi.php +46 -0
- includes/loader.php +14 -0
- includes/modules/FlipBoxPerk/FlipBoxPerk.php +162 -0
- includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php +642 -0
- includes/modules/GradientText/GradientText.php +148 -0
- includes/modules/PerspectiveImage/PerspectiveImage.php +510 -0
- includes/modules/TextDivider/TextDivider.php +286 -0
- includes/modules/TypingEffect/TypingEffect.php +209 -0
- languages/en_US.mo +0 -0
- languages/en_US.po +629 -0
- readme.txt +71 -0
- scripts/builder-bundle.min.js +1 -0
- scripts/frontend-bundle.min.js +1 -0
- scripts/frontend.js +28 -0
- styles/style-dbp.min.css +1 -0
- styles/style.min.css +1 -0
- supreme-modules-for-divi.php +48 -0
assets/css/dsm-admin.css
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_flipbox,
|
2 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_perspective_image,
|
3 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_text_divider,
|
4 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_typing_effect,
|
5 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_gradient_text {
|
6 |
+
background: #6b09eb;
|
7 |
+
color: #fff;
|
8 |
+
}
|
9 |
+
|
10 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_flipbox:hover,
|
11 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_perspective_image:hover,
|
12 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_text_divider:hover,
|
13 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_typing_effect:hover,
|
14 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_gradient_text:hover,
|
15 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_flipbox:active,
|
16 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_perspective_image:active,
|
17 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_text_divider:active,
|
18 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_typing_effect:active,
|
19 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_gradient_text:active,
|
20 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_flipbox:focus,
|
21 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_perspective_image:focus,
|
22 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_text_divider:focus,
|
23 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_typing_effect:focus,
|
24 |
+
.et-db #et-boc .et-fb-modules-list li.dsm_gradient_text:focus {
|
25 |
+
background: rgba(107,9,235,0.78);
|
26 |
+
color: #fff;
|
27 |
+
}
|
assets/js/typed.min.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* typed.js - A JavaScript Typing Animation Library
|
4 |
+
* Author: Matt Boldt <me@mattboldt.com>
|
5 |
+
* Version: v2.0.9
|
6 |
+
* Url: https://github.com/mattboldt/typed.js
|
7 |
+
* License(s): MIT
|
8 |
+
*
|
9 |
+
*/
|
10 |
+
(function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Typed=e():t.Typed=e()})(this,function(){return function(t){function e(n){if(s[n])return s[n].exports;var i=s[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var s={};return e.m=t,e.c=s,e.p="",e(0)}([function(t,e,s){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var s=0;s<e.length;s++){var n=e[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,s,n){return s&&t(e.prototype,s),n&&t(e,n),e}}(),r=s(1),o=s(3),a=function(){function t(e,s){n(this,t),r.initializer.load(this,s,e),this.begin()}return i(t,[{key:"toggle",value:function(){this.pause.status?this.start():this.stop()}},{key:"stop",value:function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))}},{key:"start",value:function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))}},{key:"destroy",value:function(){this.reset(!1),this.options.onDestroy(this)}},{key:"reset",value:function(){var t=arguments.length<=0||void 0===arguments[0]||arguments[0];clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,t&&(this.insertCursor(),this.options.onReset(this),this.begin())}},{key:"begin",value:function(){var t=this;this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout(function(){t.currentElContent&&0!==t.currentElContent.length?t.backspace(t.currentElContent,t.currentElContent.length):t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},this.startDelay)}},{key:"typewrite",value:function(t,e){var s=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var n=this.humanizer(this.typeSpeed),i=1;return this.pause.status===!0?void this.setPauseStatus(t,e,!0):void(this.timeout=setTimeout(function(){e=o.htmlParser.typeHtmlChars(t,e,s);var n=0,r=t.substr(e);if("^"===r.charAt(0)&&/^\^\d+/.test(r)){var a=1;r=/\d+/.exec(r)[0],a+=r.length,n=parseInt(r),s.temporaryPause=!0,s.options.onTypingPaused(s.arrayPos,s),t=t.substring(0,e)+t.substring(e+a),s.toggleBlinking(!0)}if("`"===r.charAt(0)){for(;"`"!==t.substr(e+i).charAt(0)&&(i++,!(e+i>t.length)););var u=t.substring(0,e),l=t.substring(u.length+1,e+i),c=t.substring(e+i+1);t=u+l+c,i--}s.timeout=setTimeout(function(){s.toggleBlinking(!1),e===t.length?s.doneTyping(t,e):s.keepTyping(t,e,i),s.temporaryPause&&(s.temporaryPause=!1,s.options.onTypingResumed(s.arrayPos,s))},n)},n))}},{key:"keepTyping",value:function(t,e,s){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),e+=s;var n=t.substr(0,e);this.replaceText(n),this.typewrite(t,e)}},{key:"doneTyping",value:function(t,e){var s=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),this.loop===!1||this.curLoop===this.loopCount)||(this.timeout=setTimeout(function(){s.backspace(t,e)},this.backDelay))}},{key:"backspace",value:function(t,e){var s=this;if(this.pause.status===!0)return void this.setPauseStatus(t,e,!0);if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var n=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){e=o.htmlParser.backSpaceHtmlChars(t,e,s);var n=t.substr(0,e);if(s.replaceText(n),s.smartBackspace){var i=s.strings[s.arrayPos+1];i&&n===i.substr(0,e)?s.stopNum=e:s.stopNum=0}e>s.stopNum?(e--,s.backspace(t,e)):e<=s.stopNum&&(s.arrayPos++,s.arrayPos===s.strings.length?(s.arrayPos=0,s.options.onLastStringBackspaced(),s.shuffleStringsIfNeeded(),s.begin()):s.typewrite(s.strings[s.sequence[s.arrayPos]],e))},n)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(t,e,s){this.pause.typewrite=s,this.pause.curString=t,this.pause.curStrPos=e}},{key:"toggleBlinking",value:function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(t){return Math.round(Math.random()*t/2)+t}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort(function(){return Math.random()-.5}))}},{key:"initFadeOut",value:function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout(function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)},this.fadeOutDelay)}},{key:"replaceText",value:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t}},{key:"bindFocusEvents",value:function(){var t=this;this.isInput&&(this.el.addEventListener("focus",function(e){t.stop()}),this.el.addEventListener("blur",function(e){t.el.value&&0!==t.el.value.length||t.start()}))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),t}();e["default"]=a,t.exports=e["default"]},function(t,e,s){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n])}return t},o=function(){function t(t,e){for(var s=0;s<e.length;s++){var n=e[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,s,n){return s&&t(e.prototype,s),n&&t(e,n),e}}(),a=s(2),u=n(a),l=function(){function t(){i(this,t)}return o(t,[{key:"load",value:function(t,e,s){if("string"==typeof s?t.el=document.querySelector(s):t.el=s,t.options=r({},u["default"],e),t.isInput="input"===t.el.tagName.toLowerCase(),t.attr=t.options.attr,t.bindInputFocusEvents=t.options.bindInputFocusEvents,t.showCursor=!t.isInput&&t.options.showCursor,t.cursorChar=t.options.cursorChar,t.cursorBlinking=!0,t.elContent=t.attr?t.el.getAttribute(t.attr):t.el.textContent,t.contentType=t.options.contentType,t.typeSpeed=t.options.typeSpeed,t.startDelay=t.options.startDelay,t.backSpeed=t.options.backSpeed,t.smartBackspace=t.options.smartBackspace,t.backDelay=t.options.backDelay,t.fadeOut=t.options.fadeOut,t.fadeOutClass=t.options.fadeOutClass,t.fadeOutDelay=t.options.fadeOutDelay,t.isPaused=!1,t.strings=t.options.strings.map(function(t){return t.trim()}),"string"==typeof t.options.stringsElement?t.stringsElement=document.querySelector(t.options.stringsElement):t.stringsElement=t.options.stringsElement,t.stringsElement){t.strings=[],t.stringsElement.style.display="none";var n=Array.prototype.slice.apply(t.stringsElement.children),i=n.length;if(i)for(var o=0;o<i;o+=1){var a=n[o];t.strings.push(a.innerHTML.trim())}}t.strPos=0,t.arrayPos=0,t.stopNum=0,t.loop=t.options.loop,t.loopCount=t.options.loopCount,t.curLoop=0,t.shuffle=t.options.shuffle,t.sequence=[],t.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},t.typingComplete=!1;for(var o in t.strings)t.sequence[o]=o;t.currentElContent=this.getCurrentElContent(t),t.autoInsertCss=t.options.autoInsertCss,this.appendAnimationCss(t)}},{key:"getCurrentElContent",value:function(t){var e="";return e=t.attr?t.el.getAttribute(t.attr):t.isInput?t.el.value:"html"===t.contentType?t.el.innerHTML:t.el.textContent}},{key:"appendAnimationCss",value:function(t){var e="data-typed-js-css";if(t.autoInsertCss&&(t.showCursor||t.fadeOut)&&!document.querySelector("["+e+"]")){var s=document.createElement("style");s.type="text/css",s.setAttribute(e,!0);var n="";t.showCursor&&(n+="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n "),t.fadeOut&&(n+="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n "),0!==s.length&&(s.innerHTML=n,document.body.appendChild(s))}}}]),t}();e["default"]=l;var c=new l;e.initializer=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onComplete:function(t){},preStringTyped:function(t,e){},onStringTyped:function(t,e){},onLastStringBackspaced:function(t){},onTypingPaused:function(t,e){},onTypingResumed:function(t,e){},onReset:function(t){},onStop:function(t,e){},onStart:function(t,e){},onDestroy:function(t){}};e["default"]=s,t.exports=e["default"]},function(t,e){"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var s=0;s<e.length;s++){var n=e[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,s,n){return s&&t(e.prototype,s),n&&t(e,n),e}}(),i=function(){function t(){s(this,t)}return n(t,[{key:"typeHtmlChars",value:function(t,e,s){if("html"!==s.contentType)return e;var n=t.substr(e).charAt(0);if("<"===n||"&"===n){var i="";for(i="<"===n?">":";";t.substr(e+1).charAt(0)!==i&&(e++,!(e+1>t.length)););e++}return e}},{key:"backSpaceHtmlChars",value:function(t,e,s){if("html"!==s.contentType)return e;var n=t.substr(e).charAt(0);if(">"===n||";"===n){var i="";for(i=">"===n?"<":"&";t.substr(e-1).charAt(0)!==i&&(e--,!(e<0)););e--}return e}}]),t}();e["default"]=i;var r=new i;e.htmlParser=r}])});
|
11 |
+
//# sourceMappingURL=typed.min.js.map
|
includes/SupremeModulesForDivi.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class DSM_SupremeModulesForDivi extends DiviExtension {
|
4 |
+
|
5 |
+
/**
|
6 |
+
* The gettext domain for the extension's translations.
|
7 |
+
*
|
8 |
+
* @since 1.0.0
|
9 |
+
*
|
10 |
+
* @var string
|
11 |
+
*/
|
12 |
+
public $gettext_domain = 'dsm-supreme-modules-for-divi';
|
13 |
+
|
14 |
+
/**
|
15 |
+
* The extension's WP Plugin name.
|
16 |
+
*
|
17 |
+
* @since 1.0.0
|
18 |
+
*
|
19 |
+
* @var string
|
20 |
+
*/
|
21 |
+
public $name = 'supreme-modules-for-divi';
|
22 |
+
|
23 |
+
/**
|
24 |
+
* The extension's version
|
25 |
+
*
|
26 |
+
* @since 1.0.0
|
27 |
+
*
|
28 |
+
* @var string
|
29 |
+
*/
|
30 |
+
public $version = '1.0.0';
|
31 |
+
|
32 |
+
/**
|
33 |
+
* DSM_SupremeModulesForDivi constructor.
|
34 |
+
*
|
35 |
+
* @param string $name
|
36 |
+
* @param array $args
|
37 |
+
*/
|
38 |
+
public function __construct( $name = 'supreme-modules-for-divi', $args = array() ) {
|
39 |
+
$this->plugin_dir = plugin_dir_path( __FILE__ );
|
40 |
+
$this->plugin_dir_url = plugin_dir_url( $this->plugin_dir );
|
41 |
+
|
42 |
+
parent::__construct( $name, $args );
|
43 |
+
}
|
44 |
+
}
|
45 |
+
|
46 |
+
new DSM_SupremeModulesForDivi;
|
includes/loader.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! class_exists( 'ET_Builder_Element' ) ) {
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
|
7 |
+
$module_files = glob( __DIR__ . '/modules/*/*.php' );
|
8 |
+
|
9 |
+
// Load custom Divi Builder modules
|
10 |
+
foreach ( (array) $module_files as $module_file ) {
|
11 |
+
if ( $module_file && preg_match( "/\/modules\/\b([^\/]+)\/\\1\.php$/", $module_file ) ) {
|
12 |
+
require_once $module_file;
|
13 |
+
}
|
14 |
+
}
|
includes/modules/FlipBoxPerk/FlipBoxPerk.php
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class DSM_FlipBox_Perk extends ET_Builder_Module {
|
4 |
+
|
5 |
+
public $slug = 'dsm_flipbox';
|
6 |
+
public $vb_support = 'on';
|
7 |
+
public $child_slug = 'dsm_flipbox_child';
|
8 |
+
|
9 |
+
protected $module_credits = array(
|
10 |
+
'module_uri' => 'https://suprememodules.com/',
|
11 |
+
'author' => 'Supreme Modules',
|
12 |
+
'author_uri' => 'https://suprememodules.com/',
|
13 |
+
);
|
14 |
+
|
15 |
+
public function init() {
|
16 |
+
$this->name = esc_html__( 'Supreme Flipbox', 'dsm-supreme-modules-for-divi' );
|
17 |
+
$this->icon = 'j';
|
18 |
+
// Toggle settings
|
19 |
+
$this->settings_modal_toggles = array(
|
20 |
+
'general' => array(
|
21 |
+
'toggles' => array(
|
22 |
+
'main_content' => esc_html__( 'Text', 'dsm-supreme-modules-for-divi' ),
|
23 |
+
),
|
24 |
+
),
|
25 |
+
);
|
26 |
+
}
|
27 |
+
|
28 |
+
public function get_advanced_fields_config() {
|
29 |
+
return array(
|
30 |
+
'text' => array(
|
31 |
+
'use_text_orientation' => true,
|
32 |
+
'use_background_layout' => false,
|
33 |
+
'css' => array(
|
34 |
+
'text_shadow' => '%%order_class%%',
|
35 |
+
),
|
36 |
+
'options' => array(
|
37 |
+
'background_layout' => array(
|
38 |
+
'default' => 'light',
|
39 |
+
),
|
40 |
+
),
|
41 |
+
),
|
42 |
+
'borders' => array(
|
43 |
+
'default' => array(
|
44 |
+
'css' => array(
|
45 |
+
'main' => array(
|
46 |
+
'border_radii' => "%%order_class%% .dsm_flipbox_child",
|
47 |
+
'border_styles' => "%%order_class%% .dsm_flipbox_child",
|
48 |
+
),
|
49 |
+
),
|
50 |
+
),
|
51 |
+
),
|
52 |
+
'box_shadow' => array(
|
53 |
+
'default' => array(
|
54 |
+
'css' => array(
|
55 |
+
'main' => '%%order_class%% .dsm_flipbox_child',
|
56 |
+
),
|
57 |
+
),
|
58 |
+
),
|
59 |
+
'fonts' => false,
|
60 |
+
);
|
61 |
+
}
|
62 |
+
|
63 |
+
public function get_fields() {
|
64 |
+
return array(
|
65 |
+
'flipbox_effect' => array(
|
66 |
+
'label' => esc_html__( 'Flipbox Effect', 'dsm-supreme-modules-for-divi' ),
|
67 |
+
'type' => 'select',
|
68 |
+
'option_category' => 'configuration',
|
69 |
+
'default' => 'right',
|
70 |
+
'options' => array(
|
71 |
+
'left' => esc_html__( 'Flip Left', 'dsm-supreme-modules-for-divi' ),
|
72 |
+
'right' => esc_html__( 'Flip Right', 'dsm-supreme-modules-for-divi' ),
|
73 |
+
'up' => esc_html__( 'Flip Up', 'dsm-supreme-modules-for-divi' ),
|
74 |
+
'down' => esc_html__( 'Flip Down', 'dsm-supreme-modules-for-divi' ),
|
75 |
+
),
|
76 |
+
'tab_slug' => 'advanced',
|
77 |
+
'toggle_slug' => 'animation',
|
78 |
+
),
|
79 |
+
'flipbox_speed' => array(
|
80 |
+
'label' => esc_html__( 'Animation Speed (in s)', 'dsm-supreme-modules-for-divi' ),
|
81 |
+
'type' => 'range',
|
82 |
+
'option_category' => 'configuration',
|
83 |
+
'default' => '0.6s',
|
84 |
+
'default_on_front' => '0.6s',
|
85 |
+
'default_unit' => 's',
|
86 |
+
'range_settings' => array(
|
87 |
+
'min' => '0',
|
88 |
+
'max' => '10',
|
89 |
+
'step' => '0.1',
|
90 |
+
),
|
91 |
+
'tab_slug' => 'advanced',
|
92 |
+
'toggle_slug' => 'animation',
|
93 |
+
),
|
94 |
+
'flipbox_height' => array(
|
95 |
+
'label' => esc_html__( 'Height', 'dsm-supreme-modules-for-divi' ),
|
96 |
+
'type' => 'range',
|
97 |
+
'option_category' => 'layout',
|
98 |
+
'tab_slug' => 'advanced',
|
99 |
+
'toggle_slug' => 'width',
|
100 |
+
'mobile_options' => true,
|
101 |
+
'validate_unit' => true,
|
102 |
+
'default' => '200px',
|
103 |
+
'default_unit' => 'px',
|
104 |
+
'default_on_front'=> '',
|
105 |
+
'range_settings' => array(
|
106 |
+
'min' => '1',
|
107 |
+
'max' => '1200',
|
108 |
+
'step' => '1',
|
109 |
+
),
|
110 |
+
'responsive' => true,
|
111 |
+
),
|
112 |
+
);
|
113 |
+
}
|
114 |
+
|
115 |
+
public function render( $attrs, $content = null, $render_slug ) {
|
116 |
+
$background_layout = $this->props['background_layout'];
|
117 |
+
$flipbox_effect = $this->props['flipbox_effect'];
|
118 |
+
$flipbox_speed = $this->props['flipbox_speed'];
|
119 |
+
$flipbox_height = $this->props['flipbox_height'];
|
120 |
+
$flipbox_height_tablet = $this->props['flipbox_height_tablet'];
|
121 |
+
$flipbox_height_phone = $this->props['flipbox_height_phone'];
|
122 |
+
$flipbox_height_last_edited = $this->props['flipbox_height_last_edited'];
|
123 |
+
|
124 |
+
if ( '' !== $flipbox_height_tablet || '' !== $flipbox_height_phone || '' !== $flipbox_height ) {
|
125 |
+
$flipbox_height_responsive_active = et_pb_get_responsive_status( $flipbox_height_last_edited );
|
126 |
+
|
127 |
+
$content_max_width_values = array(
|
128 |
+
'desktop' => $flipbox_height,
|
129 |
+
'tablet' => $flipbox_height_responsive_active ? $flipbox_height_tablet : '',
|
130 |
+
'phone' => $flipbox_height_responsive_active ? $flipbox_height_phone : '',
|
131 |
+
);
|
132 |
+
|
133 |
+
et_pb_generate_responsive_css( $content_max_width_values, '%%order_class%% .dsm-flipbox', 'height', $render_slug );
|
134 |
+
}
|
135 |
+
|
136 |
+
if ( '0.6s' !== $flipbox_speed ) {
|
137 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
138 |
+
'selector' => '%%order_class%% .dsm_flipbox_child',
|
139 |
+
'declaration' => sprintf(
|
140 |
+
'transition: transform %1$s ease-in-out;',
|
141 |
+
esc_attr( $flipbox_speed )
|
142 |
+
),
|
143 |
+
) );
|
144 |
+
}
|
145 |
+
|
146 |
+
$this->add_classname( array(
|
147 |
+
"et_pb_bg_layout_{$background_layout}",
|
148 |
+
//"et_pb_text_align_{$text_orientation}",
|
149 |
+
));
|
150 |
+
|
151 |
+
// Render module content
|
152 |
+
$output = sprintf(
|
153 |
+
'<div class="dsm-flipbox%2$s">%1$s</div>',
|
154 |
+
et_sanitized_previously( $this->content ),
|
155 |
+
esc_attr( " dsm-flipbox-effect-${flipbox_effect}" )
|
156 |
+
);
|
157 |
+
|
158 |
+
return $this->_render_module_wrapper( $output, $render_slug );
|
159 |
+
}
|
160 |
+
}
|
161 |
+
|
162 |
+
new DSM_FlipBox_Perk;
|
includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php
ADDED
@@ -0,0 +1,642 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class DSM_FlipBox_Perk_Child extends ET_Builder_Module {
|
4 |
+
|
5 |
+
public $slug = 'dsm_flipbox_child';
|
6 |
+
public $vb_support = 'on';
|
7 |
+
public $type = 'child';
|
8 |
+
public $child_title_var = 'title';
|
9 |
+
// If the attribute defined on $this->child_title_var is empty, this attribute will be used instead
|
10 |
+
public $child_title_fallback_var = 'subtitle';
|
11 |
+
|
12 |
+
protected $module_credits = array(
|
13 |
+
'module_uri' => 'https://suprememodules.com/',
|
14 |
+
'author' => 'Supreme Modules',
|
15 |
+
'author_uri' => 'https://suprememodules.com/',
|
16 |
+
);
|
17 |
+
|
18 |
+
public function init() {
|
19 |
+
$this->name = esc_html__( 'Flipbox Item', 'dsm-supreme-modules-for-divi' );
|
20 |
+
$this->advanced_setting_title_text = esc_html__( 'Flipbox Item', 'dsm-supreme-modules-for-divi' );
|
21 |
+
$this->settings_text = esc_html__( 'Flipbox Item Settings', 'dsm-supreme-modules-for-divi' );
|
22 |
+
|
23 |
+
$this->settings_modal_toggles = array(
|
24 |
+
'general' => array(
|
25 |
+
'toggles' => array(
|
26 |
+
'main_content' => esc_html__( 'Text', 'dsm-supreme-modules-for-divi' ),
|
27 |
+
'link' => esc_html__( 'Link', 'dsm-supreme-modules-for-divi' ),
|
28 |
+
'image' => esc_html__( 'Image & Icon', 'dsm-supreme-modules-for-divi' ),
|
29 |
+
),
|
30 |
+
),
|
31 |
+
'advanced' => array(
|
32 |
+
'toggles' => array(
|
33 |
+
'icon_settings' => esc_html__( 'Image & Icon', 'dsm-supreme-modules-for-divi' ),
|
34 |
+
'text' => array(
|
35 |
+
'title' => esc_html__( 'Text', 'dsm-supreme-modules-for-divi' ),
|
36 |
+
'priority' => 49,
|
37 |
+
),
|
38 |
+
'width' => array(
|
39 |
+
'title' => esc_html__( 'Sizing', 'dsm-supreme-modules-for-divi' ),
|
40 |
+
'priority' => 65,
|
41 |
+
),
|
42 |
+
),
|
43 |
+
),
|
44 |
+
'custom_css' => array(
|
45 |
+
'toggles' => array(
|
46 |
+
'animation' => array(
|
47 |
+
'title' => esc_html__( 'Animation', 'dsm-supreme-modules-for-divi' ),
|
48 |
+
'priority' => 90,
|
49 |
+
),
|
50 |
+
'attributes' => array(
|
51 |
+
'title' => esc_html__( 'Attributes', 'dsm-supreme-modules-for-divi' ),
|
52 |
+
'priority' => 95,
|
53 |
+
),
|
54 |
+
),
|
55 |
+
),
|
56 |
+
);
|
57 |
+
}
|
58 |
+
|
59 |
+
public function get_advanced_fields_config() {
|
60 |
+
return array(
|
61 |
+
'fonts' => array(
|
62 |
+
'header' => array(
|
63 |
+
'label' => esc_html__( 'Title', 'dsm-supreme-modules-for-divi' ),
|
64 |
+
'css' => array(
|
65 |
+
'main' => '%%order_class%% h1.et_pb_module_header, %%order_class%% h2.et_pb_module_header, %%order_class%% h3.et_pb_module_header, %%order_class%% h4.et_pb_module_header, %%order_class%% h5.et_pb_module_header, %%order_class%% h6.et_pb_module_header',
|
66 |
+
),
|
67 |
+
'font_size' => array(
|
68 |
+
'default' => '26px',
|
69 |
+
),
|
70 |
+
'line_height' => array(
|
71 |
+
'default' => '1em',
|
72 |
+
),
|
73 |
+
'letter_spacing' => array(
|
74 |
+
'default' => '0px',
|
75 |
+
),
|
76 |
+
'header_level' => array(
|
77 |
+
'default' => 'h4',
|
78 |
+
),
|
79 |
+
),
|
80 |
+
'content' => array(
|
81 |
+
'label' => esc_html__( 'Body', 'dsm-supreme-modules-for-divi' ),
|
82 |
+
'css' => array(
|
83 |
+
'main' => '%%order_class%% .dsm-content',
|
84 |
+
),
|
85 |
+
'font_size' => array(
|
86 |
+
'default' => '14px',
|
87 |
+
),
|
88 |
+
'line_height' => array(
|
89 |
+
'default' => '1em',
|
90 |
+
),
|
91 |
+
'letter_spacing' => array(
|
92 |
+
'default' => '0px',
|
93 |
+
),
|
94 |
+
),
|
95 |
+
'subhead' => array(
|
96 |
+
'label' => esc_html__( 'Subhead', 'dsm-supreme-modules-for-divi' ),
|
97 |
+
'css' => array(
|
98 |
+
'main' => '%%order_class%% .dsm-subtitle',
|
99 |
+
),
|
100 |
+
'line_height' => array(
|
101 |
+
'default' => '1em',
|
102 |
+
),
|
103 |
+
'letter_spacing' => array(
|
104 |
+
'default' => '0px',
|
105 |
+
),
|
106 |
+
),
|
107 |
+
),
|
108 |
+
'text' => array(
|
109 |
+
'use_background_layout' => true,
|
110 |
+
'css' => array(
|
111 |
+
'text_shadow' => '%%order_class%% .dsm_flipbox_wrapper',
|
112 |
+
),
|
113 |
+
'options' => array(
|
114 |
+
'background_layout' => array(
|
115 |
+
'default_on_front' => 'light',
|
116 |
+
),
|
117 |
+
'text_orientation' => array(
|
118 |
+
'default_on_front' => 'left',
|
119 |
+
),
|
120 |
+
),
|
121 |
+
),
|
122 |
+
'borders' => array(
|
123 |
+
'default' => array(),
|
124 |
+
'image' => array(
|
125 |
+
'css' => array(
|
126 |
+
'main' => array(
|
127 |
+
'border_radii' => "%%order_class%% .dsm_flipbox_child_image .dsm_flipbox_child_image_wrap",
|
128 |
+
'border_styles' => "%%order_class%% .dsm_flipbox_child_image .dsm_flipbox_child_image_wrap",
|
129 |
+
)
|
130 |
+
),
|
131 |
+
'label_prefix' => esc_html__( 'Image', 'dsm-supreme-modules-for-divi' ),
|
132 |
+
'tab_slug' => 'advanced',
|
133 |
+
'toggle_slug' => 'icon_settings',
|
134 |
+
'depends_on' => array( 'use_icon' ),
|
135 |
+
'depends_show_if' => 'off',
|
136 |
+
),
|
137 |
+
),
|
138 |
+
'box_shadow' => array(
|
139 |
+
'default' => array(),
|
140 |
+
'image' => array(
|
141 |
+
'label' => esc_html__( 'Image Box Shadow', 'dsm-supreme-modules-for-divi' ),
|
142 |
+
'option_category' => 'layout',
|
143 |
+
'tab_slug' => 'advanced',
|
144 |
+
'toggle_slug' => 'icon_settings',
|
145 |
+
'depends_show_if' => 'off',
|
146 |
+
'css' => array(
|
147 |
+
'main' => '%%order_class%% .dsm_flipbox_child_image .dsm_flipbox_child_image_wrap',
|
148 |
+
'show_if_not' => array(
|
149 |
+
'use_icon' => 'on',
|
150 |
+
),
|
151 |
+
),
|
152 |
+
'default_on_fronts' => array(
|
153 |
+
'color' => '',
|
154 |
+
'position' => '',
|
155 |
+
),
|
156 |
+
),
|
157 |
+
),
|
158 |
+
'button' => array(
|
159 |
+
'button' => array(
|
160 |
+
'label' => esc_html__( 'Button', 'dsm-supreme-modules-for-divi' ),
|
161 |
+
'css' => array(
|
162 |
+
'plugin_main' => "{$this->main_css_element} .et_pb_button",
|
163 |
+
'alignment' => "{$this->main_css_element} .et_pb_button_wrapper",
|
164 |
+
),
|
165 |
+
'use_alignment' => true,
|
166 |
+
'box_shadow' => array(
|
167 |
+
'css' => array(
|
168 |
+
'main' => '%%order_class%% .et_pb_button',
|
169 |
+
),
|
170 |
+
),
|
171 |
+
),
|
172 |
+
),
|
173 |
+
'filters' => array(
|
174 |
+
'child_filters_target' => array(
|
175 |
+
'tab_slug' => 'advanced',
|
176 |
+
'toggle_slug' => 'icon_settings',
|
177 |
+
'depends_show_if' => 'off',
|
178 |
+
),
|
179 |
+
),
|
180 |
+
'icon_settings' => array(
|
181 |
+
'css' => array(
|
182 |
+
'main' => '%%order_class%% .et_pb_main_blurb_image',
|
183 |
+
),
|
184 |
+
),
|
185 |
+
);
|
186 |
+
}
|
187 |
+
|
188 |
+
public function get_fields() {
|
189 |
+
$et_accent_color = et_builder_accent_color();
|
190 |
+
|
191 |
+
$image_icon_placement = array(
|
192 |
+
'top' => esc_html__( 'Top', 'dsm-supreme-modules-for-divi' ),
|
193 |
+
);
|
194 |
+
|
195 |
+
if ( ! is_rtl() ) {
|
196 |
+
$image_icon_placement['left'] = esc_html__( 'Left', 'dsm-supreme-modules-for-divi' );
|
197 |
+
} else {
|
198 |
+
$image_icon_placement['right'] = esc_html__( 'Right', 'dsm-supreme-modules-for-divi' );
|
199 |
+
}
|
200 |
+
|
201 |
+
return array(
|
202 |
+
'title' => array(
|
203 |
+
'label' => esc_html__( 'Title', 'dsm-supreme-modules-for-divi' ),
|
204 |
+
'type' => 'text',
|
205 |
+
'option_category' => 'basic_option',
|
206 |
+
'description' => esc_html__( 'Text entered here will appear as title.', 'dsm-supreme-modules-for-divi' ),
|
207 |
+
'toggle_slug' => 'main_content',
|
208 |
+
),
|
209 |
+
'subtitle' => array(
|
210 |
+
'label' => esc_html__( 'Sub Title', 'dsm-supreme-modules-for-divi' ),
|
211 |
+
'type' => 'text',
|
212 |
+
'option_category' => 'basic_option',
|
213 |
+
'description' => esc_html__( 'Text entered here will appear as subtitle.', 'dsm-supreme-modules-for-divi' ),
|
214 |
+
'toggle_slug' => 'main_content',
|
215 |
+
),
|
216 |
+
'use_icon' => array(
|
217 |
+
'label' => esc_html__( 'Use Icon', 'dsm-supreme-modules-for-divi' ),
|
218 |
+
'type' => 'yes_no_button',
|
219 |
+
'option_category' => 'basic_option',
|
220 |
+
'options' => array(
|
221 |
+
'off' => esc_html__( 'No', 'dsm-supreme-modules-for-divi' ),
|
222 |
+
'on' => esc_html__( 'Yes', 'dsm-supreme-modules-for-divi' ),
|
223 |
+
),
|
224 |
+
'toggle_slug' => 'image',
|
225 |
+
'affects' => array(
|
226 |
+
'border_radii_image',
|
227 |
+
'border_styles_image',
|
228 |
+
'box_shadow_style_image',
|
229 |
+
'font_icon',
|
230 |
+
'image_max_width',
|
231 |
+
'use_icon_font_size',
|
232 |
+
'use_circle',
|
233 |
+
'icon_color',
|
234 |
+
'image',
|
235 |
+
'alt',
|
236 |
+
'child_filter_hue_rotate',
|
237 |
+
'child_filter_saturate',
|
238 |
+
'child_filter_brightness',
|
239 |
+
'child_filter_contrast',
|
240 |
+
'child_filter_invert',
|
241 |
+
'child_filter_sepia',
|
242 |
+
'child_filter_opacity',
|
243 |
+
'child_filter_blur',
|
244 |
+
'child_mix_blend_mode',
|
245 |
+
),
|
246 |
+
'description' => esc_html__( 'Here you can choose whether icon set below should be used.', 'dsm-supreme-modules-for-divi' ),
|
247 |
+
'default_on_front'=> 'off',
|
248 |
+
),
|
249 |
+
'font_icon' => array(
|
250 |
+
'label' => esc_html__( 'Icon', 'dsm-supreme-modules-for-divi' ),
|
251 |
+
'type' => 'select_icon',
|
252 |
+
'option_category' => 'basic_option',
|
253 |
+
'class' => array( 'et-pb-font-icon' ),
|
254 |
+
'toggle_slug' => 'image',
|
255 |
+
'description' => esc_html__( 'Choose an icon to display with your blurb.', 'dsm-supreme-modules-for-divi' ),
|
256 |
+
'depends_show_if' => 'on',
|
257 |
+
),
|
258 |
+
'icon_color' => array(
|
259 |
+
'default' => $et_accent_color,
|
260 |
+
'label' => esc_html__( 'Icon Color', 'dsm-supreme-modules-for-divi' ),
|
261 |
+
'type' => 'color-alpha',
|
262 |
+
'description' => esc_html__( 'Here you can define a custom color for your icon.', 'dsm-supreme-modules-for-divi' ),
|
263 |
+
'depends_show_if' => 'on',
|
264 |
+
'tab_slug' => 'advanced',
|
265 |
+
'toggle_slug' => 'icon_settings',
|
266 |
+
),
|
267 |
+
'use_circle' => array(
|
268 |
+
'label' => esc_html__( 'Circle Icon', 'dsm-supreme-modules-for-divi' ),
|
269 |
+
'type' => 'yes_no_button',
|
270 |
+
'option_category' => 'configuration',
|
271 |
+
'options' => array(
|
272 |
+
'off' => esc_html__( 'No', 'dsm-supreme-modules-for-divi' ),
|
273 |
+
'on' => esc_html__( 'Yes', 'dsm-supreme-modules-for-divi' ),
|
274 |
+
),
|
275 |
+
'affects' => array(
|
276 |
+
'use_circle_border',
|
277 |
+
'circle_color',
|
278 |
+
),
|
279 |
+
'tab_slug' => 'advanced',
|
280 |
+
'toggle_slug' => 'icon_settings',
|
281 |
+
'description' => esc_html__( 'Here you can choose whether icon set above should display within a circle.', 'dsm-supreme-modules-for-divi' ),
|
282 |
+
'depends_show_if' => 'on',
|
283 |
+
'default_on_front'=> 'off',
|
284 |
+
),
|
285 |
+
'circle_color' => array(
|
286 |
+
'default' => $et_accent_color,
|
287 |
+
'label' => esc_html__( 'Circle Color', 'dsm-supreme-modules-for-divi' ),
|
288 |
+
'type' => 'color-alpha',
|
289 |
+
'description' => esc_html__( 'Here you can define a custom color for the icon circle.', 'dsm-supreme-modules-for-divi' ),
|
290 |
+
'depends_show_if' => 'on',
|
291 |
+
'tab_slug' => 'advanced',
|
292 |
+
'toggle_slug' => 'icon_settings',
|
293 |
+
),
|
294 |
+
'use_circle_border' => array(
|
295 |
+
'label' => esc_html__( 'Show Circle Border', 'dsm-supreme-modules-for-divi' ),
|
296 |
+
'type' => 'yes_no_button',
|
297 |
+
'option_category' => 'layout',
|
298 |
+
'options' => array(
|
299 |
+
'off' => esc_html__( 'No', 'dsm-supreme-modules-for-divi' ),
|
300 |
+
'on' => esc_html__( 'Yes', 'dsm-supreme-modules-for-divi' ),
|
301 |
+
),
|
302 |
+
'affects' => array(
|
303 |
+
'circle_border_color',
|
304 |
+
),
|
305 |
+
'description' => esc_html__( 'Here you can choose whether if the icon circle border should display.', 'dsm-supreme-modules-for-divi' ),
|
306 |
+
'depends_show_if' => 'on',
|
307 |
+
'tab_slug' => 'advanced',
|
308 |
+
'toggle_slug' => 'icon_settings',
|
309 |
+
'default_on_front' => 'off',
|
310 |
+
),
|
311 |
+
'circle_border_color' => array(
|
312 |
+
'default' => $et_accent_color,
|
313 |
+
'label' => esc_html__( 'Circle Border Color', 'dsm-supreme-modules-for-divi' ),
|
314 |
+
'type' => 'color-alpha',
|
315 |
+
'description' => esc_html__( 'Here you can define a custom color for the icon circle border.', 'dsm-supreme-modules-for-divi' ),
|
316 |
+
'depends_show_if' => 'on',
|
317 |
+
'tab_slug' => 'advanced',
|
318 |
+
'toggle_slug' => 'icon_settings',
|
319 |
+
),
|
320 |
+
'image' => array(
|
321 |
+
'label' => esc_html__( 'Image', 'dsm-supreme-modules-for-divi' ),
|
322 |
+
'type' => 'upload',
|
323 |
+
'option_category' => 'basic_option',
|
324 |
+
'upload_button_text' => esc_attr__( 'Upload an image', 'dsm-supreme-modules-for-divi' ),
|
325 |
+
'choose_text' => esc_attr__( 'Choose an Image', 'dsm-supreme-modules-for-divi' ),
|
326 |
+
'update_text' => esc_attr__( 'Set As Image', 'dsm-supreme-modules-for-divi' ),
|
327 |
+
'depends_show_if' => 'off',
|
328 |
+
'description' => esc_html__( 'Upload an image to display at the top of your blurb.', 'dsm-supreme-modules-for-divi' ),
|
329 |
+
'toggle_slug' => 'image',
|
330 |
+
),
|
331 |
+
'alt' => array(
|
332 |
+
'label' => esc_html__( 'Image Alt Text', 'dsm-supreme-modules-for-divi' ),
|
333 |
+
'type' => 'text',
|
334 |
+
'option_category' => 'basic_option',
|
335 |
+
'description' => esc_html__( 'Define the HTML ALT text for your image here.', 'dsm-supreme-modules-for-divi' ),
|
336 |
+
'depends_show_if' => 'off',
|
337 |
+
'tab_slug' => 'custom_css',
|
338 |
+
'toggle_slug' => 'attributes',
|
339 |
+
),
|
340 |
+
'icon_placement' => array(
|
341 |
+
'label' => esc_html__( 'Image/Icon Placement', 'dsm-supreme-modules-for-divi' ),
|
342 |
+
'type' => 'select',
|
343 |
+
'option_category' => 'layout',
|
344 |
+
'options' => $image_icon_placement,
|
345 |
+
'tab_slug' => 'advanced',
|
346 |
+
'toggle_slug' => 'icon_settings',
|
347 |
+
'description' => esc_html__( 'Here you can choose where to place the icon.', 'dsm-supreme-modules-for-divi' ),
|
348 |
+
'default_on_front' => 'top',
|
349 |
+
),
|
350 |
+
'content' => array(
|
351 |
+
'label' => esc_html__( 'Content', 'dsm-supreme-modules-for-divi' ),
|
352 |
+
'type' => 'tiny_mce',
|
353 |
+
'option_category' => 'basic_option',
|
354 |
+
'description' => esc_html__( 'Content entered here will appear inside the module.', 'dsm-supreme-modules-for-divi' ),
|
355 |
+
'toggle_slug' => 'main_content',
|
356 |
+
),
|
357 |
+
'image_max_width' => array(
|
358 |
+
'label' => esc_html__( 'Image Width', 'dsm-supreme-modules-for-divi' ),
|
359 |
+
'type' => 'range',
|
360 |
+
'option_category' => 'layout',
|
361 |
+
'tab_slug' => 'advanced',
|
362 |
+
'toggle_slug' => 'width',
|
363 |
+
'mobile_options' => true,
|
364 |
+
'validate_unit' => true,
|
365 |
+
'depends_show_if' => 'off',
|
366 |
+
'default' => '100%',
|
367 |
+
'default_unit' => '%',
|
368 |
+
'default_on_front'=> '',
|
369 |
+
'allow_empty' => true,
|
370 |
+
'range_settings' => array(
|
371 |
+
'min' => '0',
|
372 |
+
'max' => '100',
|
373 |
+
'step' => '1',
|
374 |
+
),
|
375 |
+
'responsive' => true,
|
376 |
+
),
|
377 |
+
'use_icon_font_size' => array(
|
378 |
+
'label' => esc_html__( 'Use Icon Font Size', 'dsm-supreme-modules-for-divi' ),
|
379 |
+
'type' => 'yes_no_button',
|
380 |
+
'option_category' => 'font_option',
|
381 |
+
'options' => array(
|
382 |
+
'off' => esc_html__( 'No', 'dsm-supreme-modules-for-divi' ),
|
383 |
+
'on' => esc_html__( 'Yes', 'dsm-supreme-modules-for-divi' ),
|
384 |
+
),
|
385 |
+
'affects' => array(
|
386 |
+
'icon_font_size',
|
387 |
+
),
|
388 |
+
'depends_show_if' => 'on',
|
389 |
+
'tab_slug' => 'advanced',
|
390 |
+
'toggle_slug' => 'icon_settings',
|
391 |
+
'default_on_front'=> 'off',
|
392 |
+
),
|
393 |
+
'icon_font_size' => array(
|
394 |
+
'label' => esc_html__( 'Icon Font Size', 'dsm-supreme-modules-for-divi' ),
|
395 |
+
'type' => 'range',
|
396 |
+
'option_category' => 'font_option',
|
397 |
+
'tab_slug' => 'advanced',
|
398 |
+
'toggle_slug' => 'icon_settings',
|
399 |
+
'default' => '96px',
|
400 |
+
'default_unit' => 'px',
|
401 |
+
'default_on_front'=> '',
|
402 |
+
'range_settings' => array(
|
403 |
+
'min' => '1',
|
404 |
+
'max' => '120',
|
405 |
+
'step' => '1',
|
406 |
+
),
|
407 |
+
'mobile_options' => true,
|
408 |
+
'depends_show_if' => 'on',
|
409 |
+
'responsive' => true,
|
410 |
+
),
|
411 |
+
'button_text' => array(
|
412 |
+
'label' => esc_html__( 'Button Text', 'dsm-supreme-modules-for-divi' ),
|
413 |
+
'type' => 'text',
|
414 |
+
'option_category' => 'basic_option',
|
415 |
+
'description' => esc_html__( 'Input your desired button text, or leave blank for no button.', 'dsm-supreme-modules-for-divi' ),
|
416 |
+
'toggle_slug' => 'button',
|
417 |
+
),
|
418 |
+
'button_url' => array(
|
419 |
+
'label' => esc_html__( 'Button URL', 'dsm-supreme-modules-for-divi' ),
|
420 |
+
'type' => 'text',
|
421 |
+
'option_category' => 'basic_option',
|
422 |
+
'description' => esc_html__( 'Input URL for your button.', 'dsm-supreme-modules-for-divi' ),
|
423 |
+
'toggle_slug' => 'button',
|
424 |
+
),
|
425 |
+
'button_url_new_window' => array(
|
426 |
+
'default' => 'off',
|
427 |
+
'default_on_front'=> true,
|
428 |
+
'label' => esc_html__( 'Url Opens', 'dsm-supreme-modules-for-divi' ),
|
429 |
+
'type' => 'select',
|
430 |
+
'option_category' => 'configuration',
|
431 |
+
'options' => array(
|
432 |
+
'off' => esc_html__( 'In The Same Window', 'dsm-supreme-modules-for-divi' ),
|
433 |
+
'on' => esc_html__( 'In The New Tab', 'dsm-supreme-modules-for-divi' ),
|
434 |
+
),
|
435 |
+
'toggle_slug' => 'button',
|
436 |
+
'description' => esc_html__( 'Choose whether your link opens in a new window or not', 'dsm-supreme-modules-for-divi' ),
|
437 |
+
),
|
438 |
+
'content_orientation' => array(
|
439 |
+
'label' => esc_html__( 'Text Vertical Alignment', 'dsm-supreme-modules-for-divi' ),
|
440 |
+
'type' => 'select',
|
441 |
+
'option_category' => 'layout',
|
442 |
+
'options' => array(
|
443 |
+
'flex-start' => esc_html__( 'Top', 'dsm-supreme-modules-for-divi' ),
|
444 |
+
'center' => esc_html__( 'Center', 'dsm-supreme-modules-for-divi' ),
|
445 |
+
'flex-end' => esc_html__( 'Bottom', 'dsm-supreme-modules-for-divi' ),
|
446 |
+
),
|
447 |
+
'default' => 'center',
|
448 |
+
'tab_slug' => 'advanced',
|
449 |
+
'toggle_slug' => 'text',
|
450 |
+
'description' => esc_html__( 'This setting determines the vertical alignment of your content. Your content can either be align to the top, vertically centered, or aligned to the bottom.', 'dsm-supreme-modules-for-divi' ),
|
451 |
+
),
|
452 |
+
);
|
453 |
+
}
|
454 |
+
|
455 |
+
public function render( $attrs, $content = null, $render_slug ) {
|
456 |
+
$title = $this->props['title'];
|
457 |
+
$subtitle = $this->props['subtitle'];
|
458 |
+
$button_text = $this->props['button_text'];
|
459 |
+
$image = $this->props['image'];
|
460 |
+
$alt = $this->props['alt'];
|
461 |
+
$icon_placement = $this->props['icon_placement'];
|
462 |
+
$font_icon = $this->props['font_icon'];
|
463 |
+
$use_icon = $this->props['use_icon'];
|
464 |
+
$use_circle = $this->props['use_circle'];
|
465 |
+
$use_circle_border = $this->props['use_circle_border'];
|
466 |
+
$icon_color = $this->props['icon_color'];
|
467 |
+
$circle_color = $this->props['circle_color'];
|
468 |
+
$circle_border_color = $this->props['circle_border_color'];
|
469 |
+
$use_icon_font_size = $this->props['use_icon_font_size'];
|
470 |
+
$icon_font_size = $this->props['icon_font_size'];
|
471 |
+
$icon_font_size_tablet = $this->props['icon_font_size_tablet'];
|
472 |
+
$icon_font_size_phone = $this->props['icon_font_size_phone'];
|
473 |
+
$icon_font_size_last_edited = $this->props['icon_font_size_last_edited'];
|
474 |
+
$image_max_width = $this->props['image_max_width'];
|
475 |
+
$image_max_width_tablet = $this->props['image_max_width_tablet'];
|
476 |
+
$image_max_width_phone = $this->props['image_max_width_phone'];
|
477 |
+
$image_max_width_last_edited = $this->props['image_max_width_last_edited'];
|
478 |
+
$button_url = $this->props['button_url'];
|
479 |
+
$button_url_new_window = $this->props['button_url_new_window'];
|
480 |
+
$button_custom = $this->props['custom_button'];
|
481 |
+
$button_rel = $this->props['button_rel'];
|
482 |
+
$custom_icon = $this->props['button_icon'];
|
483 |
+
$content_orientation = $this->props['content_orientation'];
|
484 |
+
$background_layout = $this->props['background_layout'];
|
485 |
+
$text_orientation = $this->props['text_orientation'];
|
486 |
+
$header_level = $this->props['header_level'];
|
487 |
+
|
488 |
+
$image_pathinfo = pathinfo( $image );
|
489 |
+
$is_image_svg = isset( $image_pathinfo['extension'] ) ? 'svg' === $image_pathinfo['extension'] : false;
|
490 |
+
|
491 |
+
if ( 'off' !== $use_icon_font_size ) {
|
492 |
+
$font_size_responsive_active = et_pb_get_responsive_status( $icon_font_size_last_edited );
|
493 |
+
|
494 |
+
$font_size_values = array(
|
495 |
+
'desktop' => $icon_font_size,
|
496 |
+
'tablet' => $font_size_responsive_active ? $icon_font_size_tablet : '',
|
497 |
+
'phone' => $font_size_responsive_active ? $icon_font_size_phone : '',
|
498 |
+
);
|
499 |
+
|
500 |
+
et_pb_generate_responsive_css( $font_size_values, '%%order_class%% .et-pb-icon', 'font-size', $render_slug );
|
501 |
+
}
|
502 |
+
|
503 |
+
if ( '' !== $image_max_width_tablet || '' !== $image_max_width_phone || '' !== $image_max_width || $is_image_svg ) {
|
504 |
+
$is_size_px = false;
|
505 |
+
|
506 |
+
// If size is given in px, we want to override parent width
|
507 |
+
if (
|
508 |
+
false !== strpos( $image_max_width, 'px' ) ||
|
509 |
+
false !== strpos( $image_max_width_tablet, 'px' ) ||
|
510 |
+
false !== strpos( $image_max_width_phone, 'px' )
|
511 |
+
) {
|
512 |
+
$is_size_px = true;
|
513 |
+
}
|
514 |
+
// SVG image overwrite. SVG image needs its value to be explicit
|
515 |
+
if ( '' === $image_max_width && $is_image_svg ) {
|
516 |
+
$image_max_width = '100%';
|
517 |
+
}
|
518 |
+
|
519 |
+
$image_max_width_selector = $icon_placement === 'top' && $is_image_svg ? '%%order_class%% .et_pb_main_blurb_image' : '%%order_class%% .et_pb_main_blurb_image .et_pb_image_wrap';
|
520 |
+
$image_max_width_property = ( $is_image_svg || $is_size_px ) ? 'width' : 'max-width';
|
521 |
+
|
522 |
+
$image_max_width_responsive_active = et_pb_get_responsive_status( $image_max_width_last_edited );
|
523 |
+
|
524 |
+
$image_max_width_values = array(
|
525 |
+
'desktop' => $image_max_width,
|
526 |
+
'tablet' => $image_max_width_responsive_active ? $image_max_width_tablet : '',
|
527 |
+
'phone' => $image_max_width_responsive_active ? $image_max_width_phone : '',
|
528 |
+
);
|
529 |
+
|
530 |
+
et_pb_generate_responsive_css( $image_max_width_values, $image_max_width_selector, $image_max_width_property, $render_slug );
|
531 |
+
}
|
532 |
+
|
533 |
+
if ( '' !== $title ) {
|
534 |
+
$title = sprintf( '<%1$s class="dsm-title et_pb_module_header">%2$s</%1$s>', et_pb_process_header_level( $header_level, 'h4' ), $title );
|
535 |
+
}
|
536 |
+
|
537 |
+
if ( '' !== $subtitle ) {
|
538 |
+
$subtitle = sprintf( '<span class="dsm-subtitle">%1$s</span>', $subtitle );
|
539 |
+
}
|
540 |
+
|
541 |
+
// Render button
|
542 |
+
$button = $this->render_button( array(
|
543 |
+
'button_classname' => array( 'et_pb_more_button' ),
|
544 |
+
'button_custom' => $button_custom,
|
545 |
+
'button_rel' => $button_rel,
|
546 |
+
'button_text' => $button_text,
|
547 |
+
'button_url' => $button_url,
|
548 |
+
'custom_icon' => $custom_icon,
|
549 |
+
'url_new_window' => $url_new_window,
|
550 |
+
'display_button' => '' !== $button_url && '' !== $button_text,
|
551 |
+
) );
|
552 |
+
|
553 |
+
if ( 'center' !== $content_orientation) {
|
554 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
555 |
+
'selector' => '%%order_class%%',
|
556 |
+
'declaration' => sprintf(
|
557 |
+
'align-items: %1$s;',
|
558 |
+
esc_attr( $content_orientation )
|
559 |
+
),
|
560 |
+
) );
|
561 |
+
}
|
562 |
+
|
563 |
+
if ( 'off' === $use_icon ) {
|
564 |
+
$image = ( '' !== trim( $image ) ) ? sprintf(
|
565 |
+
'<img src="%1$s" alt="%2$s" class="%3$s" />',
|
566 |
+
esc_url( $image ),
|
567 |
+
esc_attr( $alt ),
|
568 |
+
esc_attr( " et_pb_animation_{$animation}" )
|
569 |
+
) : '';
|
570 |
+
} else {
|
571 |
+
$icon_style = sprintf( 'color: %1$s;', esc_attr( $icon_color ) );
|
572 |
+
|
573 |
+
if ( 'on' === $use_circle ) {
|
574 |
+
$icon_style .= sprintf( ' background-color: %1$s;', esc_attr( $circle_color ) );
|
575 |
+
|
576 |
+
if ( 'on' === $use_circle_border ) {
|
577 |
+
$icon_style .= sprintf( ' border-color: %1$s;', esc_attr( $circle_border_color ) );
|
578 |
+
}
|
579 |
+
}
|
580 |
+
|
581 |
+
$image = ( '' !== $font_icon ) ? sprintf(
|
582 |
+
'<span class="et-pb-icon%2$s%3$s%4$s" style="%5$s">%1$s</span>',
|
583 |
+
esc_attr( et_pb_process_font_icon( $font_icon ) ),
|
584 |
+
esc_attr( " et_pb_animation_{$animation}" ),
|
585 |
+
( 'on' === $use_circle ? ' et-pb-icon-circle' : '' ),
|
586 |
+
( 'on' === $use_circle && 'on' === $use_circle_border ? ' et-pb-icon-circle-border' : '' ),
|
587 |
+
$icon_style
|
588 |
+
) : '';
|
589 |
+
}
|
590 |
+
|
591 |
+
// Images: Add CSS Filters and Mix Blend Mode rules (if set)
|
592 |
+
$generate_css_image_filters = '';
|
593 |
+
if ( $image && array_key_exists( 'icon_settings', $this->advanced_fields ) && array_key_exists( 'css', $this->advanced_fields['icon_settings'] ) ) {
|
594 |
+
$generate_css_image_filters = $this->generate_css_filters(
|
595 |
+
$render_slug,
|
596 |
+
'child_',
|
597 |
+
self::$data_utils->array_get( $this->advanced_fields['icon_settings']['css'], 'main', '%%order_class%%' )
|
598 |
+
);
|
599 |
+
}
|
600 |
+
|
601 |
+
$image = $image ? sprintf( '<span class="dsm_flipbox_child_image_wrap">%1$s</span>', $image ) : '';
|
602 |
+
$image = $image ? sprintf(
|
603 |
+
'<div class="dsm_flipbox_child_image%2$s">%1$s</div>',
|
604 |
+
$image,
|
605 |
+
esc_attr( $generate_css_image_filters )
|
606 |
+
) : '';
|
607 |
+
|
608 |
+
$video_background = $this->video_background();
|
609 |
+
$parallax_image_background = $this->get_parallax_image_background();
|
610 |
+
|
611 |
+
$this->add_classname( array(
|
612 |
+
"et_pb_bg_layout_{$background_layout}",
|
613 |
+
sprintf( ' dsm_flipbox_icon_position_%1$s', esc_attr( $icon_placement ) ),
|
614 |
+
));
|
615 |
+
|
616 |
+
// Render module content
|
617 |
+
return sprintf(
|
618 |
+
'%8$s
|
619 |
+
%7$s
|
620 |
+
%3$s
|
621 |
+
<div class="dsm_flipbox_wrapper%6$s">
|
622 |
+
%1$s
|
623 |
+
%2$s
|
624 |
+
%4$s
|
625 |
+
%5$s
|
626 |
+
</div>',
|
627 |
+
$title,
|
628 |
+
$subtitle,
|
629 |
+
$image,
|
630 |
+
'' !== $this->content ? sprintf(
|
631 |
+
'<div class="dsm-content">%1$s</div>',
|
632 |
+
et_sanitized_previously( $this->content )
|
633 |
+
) : '',
|
634 |
+
$button,
|
635 |
+
$this->get_text_orientation_classname(),
|
636 |
+
$video_background,
|
637 |
+
$parallax_image_background
|
638 |
+
);
|
639 |
+
}
|
640 |
+
}
|
641 |
+
|
642 |
+
new DSM_FlipBox_Perk_Child;
|
includes/modules/GradientText/GradientText.php
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class DSM_GradientText extends ET_Builder_Module {
|
4 |
+
|
5 |
+
public $slug = 'dsm_gradient_text';
|
6 |
+
public $vb_support = 'on';
|
7 |
+
|
8 |
+
protected $module_credits = array(
|
9 |
+
'module_uri' => 'https://suprememodules.com/',
|
10 |
+
'author' => 'Supreme Modules',
|
11 |
+
'author_uri' => 'https://suprememodules.com/',
|
12 |
+
);
|
13 |
+
|
14 |
+
public function init() {
|
15 |
+
$this->name = esc_html__( 'Supreme Gradient Text', 'dsm-supreme-modules-for-divi' );
|
16 |
+
//$this->icon = 'j';
|
17 |
+
// Toggle settings
|
18 |
+
$this->settings_modal_toggles = array(
|
19 |
+
'general' => array(
|
20 |
+
'toggles' => array(
|
21 |
+
'main_content' => esc_html__( 'Text', 'dsm-supreme-modules-for-divi' ),
|
22 |
+
),
|
23 |
+
),
|
24 |
+
'advanced' => array(
|
25 |
+
'toggles' => array(
|
26 |
+
),
|
27 |
+
),
|
28 |
+
);
|
29 |
+
}
|
30 |
+
|
31 |
+
public function get_advanced_fields_config() {
|
32 |
+
return array(
|
33 |
+
'fonts' => array(
|
34 |
+
'header' => array(
|
35 |
+
'label' => esc_html__( 'Title', 'dsm-supreme-modules-for-divi' ),
|
36 |
+
'css' => array(
|
37 |
+
'main' => '%%order_class%% h1.et_pb_module_header, %%order_class%% h2.et_pb_module_header, %%order_class%% h3.et_pb_module_header, %%order_class%% h4.et_pb_module_header, %%order_class%% h5.et_pb_module_header, %%order_class%% h6.et_pb_module_header',
|
38 |
+
),
|
39 |
+
'font_size' => array(
|
40 |
+
'default' => '30px',
|
41 |
+
),
|
42 |
+
'line_height' => array(
|
43 |
+
'default' => '1em',
|
44 |
+
),
|
45 |
+
'letter_spacing' => array(
|
46 |
+
'default' => '0px',
|
47 |
+
),
|
48 |
+
'header_level' => array(
|
49 |
+
'default' => 'h1',
|
50 |
+
),
|
51 |
+
),
|
52 |
+
),
|
53 |
+
'text' => array(
|
54 |
+
'use_text_orientation' => true,
|
55 |
+
'use_background_layout' => false,
|
56 |
+
'css' => array(
|
57 |
+
'text_shadow' => '%%order_class%%',
|
58 |
+
),
|
59 |
+
'options' => array(
|
60 |
+
'background_layout' => array(
|
61 |
+
'default' => 'light',
|
62 |
+
),
|
63 |
+
),
|
64 |
+
),
|
65 |
+
'background' => array(
|
66 |
+
'css' => array(
|
67 |
+
'main' => '%%order_class%% .dsm-gradient-text',
|
68 |
+
),
|
69 |
+
'options' => array(
|
70 |
+
'use_background_color' => array(
|
71 |
+
'default' => 'off',
|
72 |
+
),
|
73 |
+
'use_background_video' => array(
|
74 |
+
'default' => 'off',
|
75 |
+
),
|
76 |
+
'use_background_color_gradient' => array(
|
77 |
+
'default' => 'on',
|
78 |
+
),
|
79 |
+
'background_color_gradient_start' => array(
|
80 |
+
'default' => 'rgba(131,0,233,0.78)',
|
81 |
+
),
|
82 |
+
'background_color_gradient_end' => array(
|
83 |
+
'default' => 'rgba(41,196,169,0.62)',
|
84 |
+
),
|
85 |
+
'parallax_method' => array(
|
86 |
+
'default' => 'off',
|
87 |
+
),
|
88 |
+
),
|
89 |
+
),
|
90 |
+
'borders' => array(
|
91 |
+
'default' => array(
|
92 |
+
'css' => array(
|
93 |
+
'main' => array(
|
94 |
+
'border_radii' => "%%order_class%%",
|
95 |
+
'border_styles' => "%%order_class%%",
|
96 |
+
),
|
97 |
+
),
|
98 |
+
),
|
99 |
+
),
|
100 |
+
'box_shadow' => array(
|
101 |
+
'default' => array(
|
102 |
+
'css' => array(
|
103 |
+
'main' => '%%order_class%%',
|
104 |
+
),
|
105 |
+
),
|
106 |
+
),
|
107 |
+
);
|
108 |
+
}
|
109 |
+
|
110 |
+
public function get_fields() {
|
111 |
+
return array(
|
112 |
+
'gradient_text' => array(
|
113 |
+
'label' => esc_html__( 'Gradient Text', 'dsm-supreme-modules-for-divi' ),
|
114 |
+
'type' => 'text',
|
115 |
+
'option_category' => 'basic_option',
|
116 |
+
'toggle_slug' => 'main_content',
|
117 |
+
'default_on_front' => 'Supreme Gradient Text',
|
118 |
+
),
|
119 |
+
);
|
120 |
+
}
|
121 |
+
|
122 |
+
public function render( $attrs, $content = null, $render_slug ) {
|
123 |
+
$gradient_text = $this->props['gradient_text'];
|
124 |
+
$header_level = $this->props['header_level'];
|
125 |
+
|
126 |
+
if ( '' !== $gradient_text ) {
|
127 |
+
$gradient_text = sprintf( '<%1$s class="dsm-gradient-text et_pb_module_header">%2$s</%1$s>',
|
128 |
+
et_pb_process_header_level( $header_level, 'h1' ),
|
129 |
+
$gradient_text
|
130 |
+
);
|
131 |
+
}
|
132 |
+
|
133 |
+
|
134 |
+
$this->add_classname( array(
|
135 |
+
$this->get_text_orientation_classname(),
|
136 |
+
));
|
137 |
+
|
138 |
+
// Render module content
|
139 |
+
$output = sprintf(
|
140 |
+
'%1$s',
|
141 |
+
$gradient_text
|
142 |
+
);
|
143 |
+
|
144 |
+
return $this->_render_module_wrapper( $output, $render_slug );
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
new DSM_GradientText;
|
includes/modules/PerspectiveImage/PerspectiveImage.php
ADDED
@@ -0,0 +1,510 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class DSM_Perspective_Image extends ET_Builder_Module {
|
4 |
+
|
5 |
+
public $slug = 'dsm_perspective_image';
|
6 |
+
public $vb_support = 'on';
|
7 |
+
|
8 |
+
protected $module_credits = array(
|
9 |
+
'module_uri' => 'https://suprememodules.com/',
|
10 |
+
'author' => 'Supreme Modules',
|
11 |
+
'author_uri' => 'https://suprememodules.com/',
|
12 |
+
);
|
13 |
+
|
14 |
+
public function init() {
|
15 |
+
$this->name = esc_html__( 'Supreme Image', 'dsm-supreme-modules-for-divi' );
|
16 |
+
$this->plural = esc_html__( 'Supreme Images', 'dsm-supreme-modules-for-divi' );
|
17 |
+
$this->icon = '&';
|
18 |
+
|
19 |
+
$this->settings_modal_toggles = array(
|
20 |
+
'general' => array(
|
21 |
+
'toggles' => array(
|
22 |
+
'main_content' => esc_html__( 'Image', 'dsm-supreme-modules-for-divi' ),
|
23 |
+
'link' => esc_html__( 'Link', 'dsm-supreme-modules-for-divi' ),
|
24 |
+
'transform' => esc_html__( 'Transform & Rotation', 'dsm-supreme-modules-for-divi' ),
|
25 |
+
),
|
26 |
+
),
|
27 |
+
'advanced' => array(
|
28 |
+
'toggles' => array(
|
29 |
+
'overlay' => esc_html__( 'Overlay', 'dsm-supreme-modules-for-divi' ),
|
30 |
+
'alignment' => esc_html__( 'Alignment', 'dsm-supreme-modules-for-divi' ),
|
31 |
+
'width' => array(
|
32 |
+
'title' => esc_html__( 'Sizing', 'dsm-supreme-modules-for-divi' ),
|
33 |
+
'priority' => 65,
|
34 |
+
),
|
35 |
+
),
|
36 |
+
),
|
37 |
+
'custom_css' => array(
|
38 |
+
'toggles' => array(
|
39 |
+
'animation' => array(
|
40 |
+
'title' => esc_html__( 'Animation', 'dsm-supreme-modules-for-divi' ),
|
41 |
+
'priority' => 90,
|
42 |
+
),
|
43 |
+
'attributes' => array(
|
44 |
+
'title' => esc_html__( 'Attributes', 'dsm-supreme-modules-for-divi' ),
|
45 |
+
'priority' => 95,
|
46 |
+
),
|
47 |
+
),
|
48 |
+
),
|
49 |
+
);
|
50 |
+
|
51 |
+
}
|
52 |
+
|
53 |
+
public function get_advanced_fields_config() {
|
54 |
+
return array(
|
55 |
+
'margin_padding' => array(
|
56 |
+
'css' => array(
|
57 |
+
'important' => array( 'custom_margin' ),
|
58 |
+
),
|
59 |
+
),
|
60 |
+
'borders' => array(
|
61 |
+
'default' => array(
|
62 |
+
'css' => array(
|
63 |
+
'main' => array(
|
64 |
+
'border_radii' => "%%order_class%% .et_pb_image_wrap",
|
65 |
+
'border_styles' => "%%order_class%% .et_pb_image_wrap",
|
66 |
+
),
|
67 |
+
),
|
68 |
+
),
|
69 |
+
),
|
70 |
+
'box_shadow' => array(
|
71 |
+
'default' => array(
|
72 |
+
'css' => array(
|
73 |
+
'main' => '%%order_class%% .et_pb_image_wrap',
|
74 |
+
'custom_style' => true,
|
75 |
+
),
|
76 |
+
),
|
77 |
+
),
|
78 |
+
'max_width' => array(
|
79 |
+
'options' => array(
|
80 |
+
'max_width' => array(
|
81 |
+
'depends_show_if' => 'off',
|
82 |
+
),
|
83 |
+
),
|
84 |
+
),
|
85 |
+
'fonts' => false,
|
86 |
+
'text' => false,
|
87 |
+
'button' => false,
|
88 |
+
);
|
89 |
+
}
|
90 |
+
|
91 |
+
public function get_fields() {
|
92 |
+
return array(
|
93 |
+
'src' => array(
|
94 |
+
'type' => 'upload',
|
95 |
+
'option_category' => 'basic_option',
|
96 |
+
'upload_button_text' => esc_attr__( 'Upload an image', 'dsm-supreme-modules-for-divi' ),
|
97 |
+
'choose_text' => esc_attr__( 'Choose an Image', 'dsm-supreme-modules-for-divi' ),
|
98 |
+
'update_text' => esc_attr__( 'Set As Image', 'dsm-supreme-modules-for-divi' ),
|
99 |
+
'hide_metadata' => true,
|
100 |
+
'affects' => array(
|
101 |
+
'alt',
|
102 |
+
'title_text',
|
103 |
+
),
|
104 |
+
'description' => esc_html__( 'Upload your desired image, or type in the URL to the image you would like to display.', 'dsm-supreme-modules-for-divi' ),
|
105 |
+
'toggle_slug' => 'main_content',
|
106 |
+
),
|
107 |
+
'alt' => array(
|
108 |
+
'label' => esc_html__( 'Image Alternative Text', 'dsm-supreme-modules-for-divi' ),
|
109 |
+
'type' => 'text',
|
110 |
+
'option_category' => 'basic_option',
|
111 |
+
'depends_show_if' => 'on',
|
112 |
+
'depends_on' => array(
|
113 |
+
'src',
|
114 |
+
),
|
115 |
+
'description' => esc_html__( 'This defines the HTML ALT text. A short description of your image can be placed here.', 'dsm-supreme-modules-for-divi' ),
|
116 |
+
'tab_slug' => 'custom_css',
|
117 |
+
'toggle_slug' => 'attributes',
|
118 |
+
),
|
119 |
+
'title_text' => array(
|
120 |
+
'label' => esc_html__( 'Image Title Text', 'dsm-supreme-modules-for-divi' ),
|
121 |
+
'type' => 'text',
|
122 |
+
'option_category' => 'basic_option',
|
123 |
+
'depends_show_if' => 'on',
|
124 |
+
'depends_on' => array(
|
125 |
+
'src',
|
126 |
+
),
|
127 |
+
'description' => esc_html__( 'This defines the HTML Title text.', 'dsm-supreme-modules-for-divi' ),
|
128 |
+
'tab_slug' => 'custom_css',
|
129 |
+
'toggle_slug' => 'attributes',
|
130 |
+
),
|
131 |
+
'show_in_lightbox' => array(
|
132 |
+
'label' => esc_html__( 'Open in Lightbox', 'dsm-supreme-modules-for-divi' ),
|
133 |
+
'type' => 'yes_no_button',
|
134 |
+
'option_category' => 'configuration',
|
135 |
+
'options' => array(
|
136 |
+
'off' => esc_html__( 'No', 'dsm-supreme-modules-for-divi' ),
|
137 |
+
'on' => esc_html__( 'Yes', 'dsm-supreme-modules-for-divi' ),
|
138 |
+
),
|
139 |
+
'default_on_front' => 'off',
|
140 |
+
'affects' => array(
|
141 |
+
'url',
|
142 |
+
'url_new_window',
|
143 |
+
'use_overlay',
|
144 |
+
),
|
145 |
+
'toggle_slug' => 'link',
|
146 |
+
'description' => esc_html__( 'Here you can choose whether or not the image should open in Lightbox. Note: if you select to open the image in Lightbox, url options below will be ignored.', 'dsm-supreme-modules-for-divi' ),
|
147 |
+
),
|
148 |
+
'url' => array(
|
149 |
+
'label' => esc_html__( 'Link URL', 'dsm-supreme-modules-for-divi' ),
|
150 |
+
'type' => 'text',
|
151 |
+
'option_category' => 'basic_option',
|
152 |
+
'depends_show_if' => 'off',
|
153 |
+
'affects' => array(
|
154 |
+
'use_overlay',
|
155 |
+
),
|
156 |
+
'description' => esc_html__( 'If you would like your image to be a link, input your destination URL here. No link will be created if this field is left blank.', 'dsm-supreme-modules-for-divi' ),
|
157 |
+
'toggle_slug' => 'link',
|
158 |
+
),
|
159 |
+
'url_new_window' => array(
|
160 |
+
'label' => esc_html__( 'Url Opens', 'dsm-supreme-modules-for-divi' ),
|
161 |
+
'type' => 'select',
|
162 |
+
'option_category' => 'configuration',
|
163 |
+
'options' => array(
|
164 |
+
'off' => esc_html__( 'In The Same Window', 'dsm-supreme-modules-for-divi' ),
|
165 |
+
'on' => esc_html__( 'In The New Tab', 'dsm-supreme-modules-for-divi' ),
|
166 |
+
),
|
167 |
+
'default_on_front' => 'off',
|
168 |
+
'depends_show_if' => 'off',
|
169 |
+
'toggle_slug' => 'link',
|
170 |
+
'description' => esc_html__( 'Here you can choose whether or not your link opens in a new window', 'dsm-supreme-modules-for-divi' ),
|
171 |
+
),
|
172 |
+
'perspective' => array(
|
173 |
+
'label' => esc_html__( 'Perspective', 'dsm-supreme-modules-for-divi' ),
|
174 |
+
'type' => 'range',
|
175 |
+
'option_category' => 'layout',
|
176 |
+
'toggle_slug' => 'transform',
|
177 |
+
//'mobile_options' => true,
|
178 |
+
'validate_unit' => true,
|
179 |
+
'depends_show_if' => 'off',
|
180 |
+
'default' => '1000px',
|
181 |
+
'default_unit' => 'px',
|
182 |
+
'default_on_front'=> '1000px',
|
183 |
+
'range_settings' => array(
|
184 |
+
'min' => '500',
|
185 |
+
'max' => '1500',
|
186 |
+
'step' => '1',
|
187 |
+
),
|
188 |
+
//'responsive' => true,
|
189 |
+
),
|
190 |
+
'dsm_rotate_y' => array(
|
191 |
+
'label' => esc_html__( 'Rotate Y', 'dsm-supreme-modules-for-divi' ),
|
192 |
+
'type' => 'range',
|
193 |
+
'option_category' => 'layout',
|
194 |
+
'toggle_slug' => 'transform',
|
195 |
+
//'mobile_options' => true,
|
196 |
+
'validate_unit' => true,
|
197 |
+
'depends_show_if' => 'off',
|
198 |
+
'default' => '0deg',
|
199 |
+
'default_unit' => 'deg',
|
200 |
+
'default_on_front'=> '0deg',
|
201 |
+
'range_settings' => array(
|
202 |
+
'min' => '-90',
|
203 |
+
'max' => '90',
|
204 |
+
'step' => '1',
|
205 |
+
),
|
206 |
+
//'responsive' => true,
|
207 |
+
),
|
208 |
+
'dsm_rotate_x' => array(
|
209 |
+
'label' => esc_html__( 'Rotate X', 'dsm-supreme-modules-for-divi' ),
|
210 |
+
'type' => 'range',
|
211 |
+
'option_category' => 'layout',
|
212 |
+
'toggle_slug' => 'transform',
|
213 |
+
//'mobile_options' => true,
|
214 |
+
'validate_unit' => true,
|
215 |
+
'depends_show_if' => 'off',
|
216 |
+
'default' => '0deg',
|
217 |
+
'default_unit' => 'deg',
|
218 |
+
'default_on_front'=> '0deg',
|
219 |
+
'range_settings' => array(
|
220 |
+
'min' => '-90',
|
221 |
+
'max' => '90',
|
222 |
+
'step' => '1',
|
223 |
+
),
|
224 |
+
//'responsive' => true,
|
225 |
+
),
|
226 |
+
'dsm_rotate_z' => array(
|
227 |
+
'label' => esc_html__( 'Rotate Z', 'dsm-supreme-modules-for-divi' ),
|
228 |
+
'type' => 'range',
|
229 |
+
'option_category' => 'layout',
|
230 |
+
'toggle_slug' => 'transform',
|
231 |
+
//'mobile_options' => true,
|
232 |
+
'validate_unit' => true,
|
233 |
+
'depends_show_if' => 'off',
|
234 |
+
'default' => '0deg',
|
235 |
+
'default_unit' => 'deg',
|
236 |
+
'default_on_front'=> '0deg',
|
237 |
+
'range_settings' => array(
|
238 |
+
'min' => '-90',
|
239 |
+
'max' => '90',
|
240 |
+
'step' => '1',
|
241 |
+
),
|
242 |
+
//'responsive' => true,
|
243 |
+
),
|
244 |
+
'use_overlay' => array(
|
245 |
+
'label' => esc_html__( 'Image Overlay', 'dsm-supreme-modules-for-divi' ),
|
246 |
+
'type' => 'yes_no_button',
|
247 |
+
'option_category' => 'layout',
|
248 |
+
'options' => array(
|
249 |
+
'off' => esc_html__( 'Off', 'dsm-supreme-modules-for-divi' ),
|
250 |
+
'on' => esc_html__( 'On', 'dsm-supreme-modules-for-divi' ),
|
251 |
+
),
|
252 |
+
'default_on_front' => 'off',
|
253 |
+
'affects' => array(
|
254 |
+
'overlay_icon_color',
|
255 |
+
'hover_overlay_color',
|
256 |
+
'hover_icon',
|
257 |
+
),
|
258 |
+
'depends_show_if' => 'on',
|
259 |
+
'tab_slug' => 'advanced',
|
260 |
+
'toggle_slug' => 'overlay',
|
261 |
+
'description' => esc_html__( 'If enabled, an overlay color and icon will be displayed when a visitors hovers over the image', 'dsm-supreme-modules-for-divi' ),
|
262 |
+
),
|
263 |
+
'overlay_icon_color' => array(
|
264 |
+
'label' => esc_html__( 'Overlay Icon Color', 'dsm-supreme-modules-for-divi' ),
|
265 |
+
'type' => 'color-alpha',
|
266 |
+
'custom_color' => true,
|
267 |
+
'depends_show_if' => 'on',
|
268 |
+
'tab_slug' => 'advanced',
|
269 |
+
'toggle_slug' => 'overlay',
|
270 |
+
'description' => esc_html__( 'Here you can define a custom color for the overlay icon', 'dsm-supreme-modules-for-divi' ),
|
271 |
+
),
|
272 |
+
'hover_overlay_color' => array(
|
273 |
+
'label' => esc_html__( 'Hover Overlay Color', 'dsm-supreme-modules-for-divi' ),
|
274 |
+
'type' => 'color-alpha',
|
275 |
+
'custom_color' => true,
|
276 |
+
'depends_show_if' => 'on',
|
277 |
+
'tab_slug' => 'advanced',
|
278 |
+
'toggle_slug' => 'overlay',
|
279 |
+
'description' => esc_html__( 'Here you can define a custom color for the overlay', 'dsm-supreme-modules-for-divi' ),
|
280 |
+
),
|
281 |
+
'hover_icon' => array(
|
282 |
+
'label' => esc_html__( 'Hover Icon Picker', 'dsm-supreme-modules-for-divi' ),
|
283 |
+
'type' => 'select_icon',
|
284 |
+
'option_category' => 'configuration',
|
285 |
+
'default' => 'P',
|
286 |
+
'class' => array( 'et-pb-font-icon' ),
|
287 |
+
'depends_show_if' => 'on',
|
288 |
+
'tab_slug' => 'advanced',
|
289 |
+
'toggle_slug' => 'overlay',
|
290 |
+
'description' => esc_html__( 'Here you can define a custom icon for the overlay', 'dsm-supreme-modules-for-divi' ),
|
291 |
+
),
|
292 |
+
'align' => array(
|
293 |
+
'label' => esc_html__( 'Image Alignment', 'dsm-supreme-modules-for-divi' ),
|
294 |
+
'type' => 'text_align',
|
295 |
+
'option_category' => 'layout',
|
296 |
+
'options' => et_builder_get_text_orientation_options( array( 'justified' ) ),
|
297 |
+
'default_on_front' => 'left',
|
298 |
+
'tab_slug' => 'advanced',
|
299 |
+
'toggle_slug' => 'alignment',
|
300 |
+
'description' => esc_html__( 'Here you can choose the image alignment.', 'dsm-supreme-modules-for-divi' ),
|
301 |
+
'options_icon' => 'module_align',
|
302 |
+
),
|
303 |
+
'force_fullwidth' => array(
|
304 |
+
'label' => esc_html__( 'Force Fullwidth', 'dsm-supreme-modules-for-divi' ),
|
305 |
+
'type' => 'yes_no_button',
|
306 |
+
'option_category' => 'layout',
|
307 |
+
'options' => array(
|
308 |
+
'off' => esc_html__( 'No', 'dsm-supreme-modules-for-divi' ),
|
309 |
+
'on' => esc_html__( 'Yes', 'dsm-supreme-modules-for-divi' ),
|
310 |
+
),
|
311 |
+
'default_on_front' => 'off',
|
312 |
+
'tab_slug' => 'advanced',
|
313 |
+
'toggle_slug' => 'width',
|
314 |
+
'affects' => array(
|
315 |
+
'max_width',
|
316 |
+
),
|
317 |
+
),
|
318 |
+
'always_center_on_mobile' => array(
|
319 |
+
'label' => esc_html__( 'Always Center Image On Mobile', 'dsm-supreme-modules-for-divi' ),
|
320 |
+
'type' => 'yes_no_button',
|
321 |
+
'option_category' => 'layout',
|
322 |
+
'options' => array(
|
323 |
+
'on' => esc_html__( 'Yes', 'dsm-supreme-modules-for-divi' ),
|
324 |
+
'off' => esc_html__( 'No', 'dsm-supreme-modules-for-divi' ),
|
325 |
+
),
|
326 |
+
'default_on_front' => 'on',
|
327 |
+
'tab_slug' => 'advanced',
|
328 |
+
'toggle_slug' => 'alignment',
|
329 |
+
),
|
330 |
+
);
|
331 |
+
}
|
332 |
+
|
333 |
+
public function get_alignment() {
|
334 |
+
$alignment = isset( $this->props['align'] ) ? $this->props['align'] : '';
|
335 |
+
|
336 |
+
return et_pb_get_alignment( $alignment );
|
337 |
+
}
|
338 |
+
|
339 |
+
public function render( $attrs, $content = null, $render_slug ) {
|
340 |
+
$src = $this->props['src'];
|
341 |
+
$alt = $this->props['alt'];
|
342 |
+
$title_text = $this->props['title_text'];
|
343 |
+
$url = $this->props['url'];
|
344 |
+
$url_new_window = $this->props['url_new_window'];
|
345 |
+
$show_in_lightbox = $this->props['show_in_lightbox'];
|
346 |
+
$align = $this->get_alignment();
|
347 |
+
$force_fullwidth = $this->props['force_fullwidth'];
|
348 |
+
$always_center_on_mobile = $this->props['always_center_on_mobile'];
|
349 |
+
$overlay_icon_color = $this->props['overlay_icon_color'];
|
350 |
+
$hover_overlay_color = $this->props['hover_overlay_color'];
|
351 |
+
$hover_icon = $this->props['hover_icon'];
|
352 |
+
$use_overlay = $this->props['use_overlay'];
|
353 |
+
$animation_style = $this->props['animation_style'];
|
354 |
+
$perspective = $this->props['perspective'];
|
355 |
+
$dsm_rotate_y = $this->props['dsm_rotate_y'];
|
356 |
+
$dsm_rotate_x = $this->props['dsm_rotate_x'];
|
357 |
+
$dsm_rotate_z = $this->props['dsm_rotate_z'];
|
358 |
+
|
359 |
+
$video_background = $this->video_background();
|
360 |
+
$parallax_image_background = $this->get_parallax_image_background();
|
361 |
+
|
362 |
+
// Handle svg image behaviour
|
363 |
+
$src_pathinfo = pathinfo( $src );
|
364 |
+
$is_src_svg = isset( $src_pathinfo['extension'] ) ? 'svg' === $src_pathinfo['extension'] : false;
|
365 |
+
|
366 |
+
// overlay can be applied only if image has link or if lightbox enabled
|
367 |
+
$is_overlay_applied = 'on' === $use_overlay && ( 'on' === $show_in_lightbox || ( 'off' === $show_in_lightbox && '' !== $url ) ) ? 'on' : 'off';
|
368 |
+
|
369 |
+
if ( 'on' === $force_fullwidth ) {
|
370 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
371 |
+
'selector' => '%%order_class%%',
|
372 |
+
'declaration' => 'max-width: 100% !important;',
|
373 |
+
) );
|
374 |
+
|
375 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
376 |
+
'selector' => '%%order_class%% .et_pb_image_wrap, %%order_class%% img',
|
377 |
+
'declaration' => 'width: 100%;',
|
378 |
+
) );
|
379 |
+
}
|
380 |
+
|
381 |
+
if ( ! $this->_is_field_default( 'align', $align ) ) {
|
382 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
383 |
+
'selector' => '%%order_class%%',
|
384 |
+
'declaration' => sprintf(
|
385 |
+
'text-align: %1$s;',
|
386 |
+
esc_html( $align )
|
387 |
+
),
|
388 |
+
) );
|
389 |
+
}
|
390 |
+
|
391 |
+
if ( 'center' !== $align ) {
|
392 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
393 |
+
'selector' => '%%order_class%%',
|
394 |
+
'declaration' => sprintf(
|
395 |
+
'margin-%1$s: 0;',
|
396 |
+
esc_html( $align )
|
397 |
+
),
|
398 |
+
) );
|
399 |
+
}
|
400 |
+
|
401 |
+
if ( 'on' === $is_overlay_applied ) {
|
402 |
+
if ( '' !== $overlay_icon_color ) {
|
403 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
404 |
+
'selector' => '%%order_class%% .et_overlay:before',
|
405 |
+
'declaration' => sprintf(
|
406 |
+
'color: %1$s !important;',
|
407 |
+
esc_html( $overlay_icon_color )
|
408 |
+
),
|
409 |
+
) );
|
410 |
+
}
|
411 |
+
|
412 |
+
if ( '' !== $hover_overlay_color ) {
|
413 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
414 |
+
'selector' => '%%order_class%% .et_overlay',
|
415 |
+
'declaration' => sprintf(
|
416 |
+
'background-color: %1$s;',
|
417 |
+
esc_html( $hover_overlay_color )
|
418 |
+
),
|
419 |
+
) );
|
420 |
+
}
|
421 |
+
|
422 |
+
$data_icon = '' !== $hover_icon
|
423 |
+
? sprintf(
|
424 |
+
' data-icon="%1$s"',
|
425 |
+
esc_attr( et_pb_process_font_icon( $hover_icon ) )
|
426 |
+
)
|
427 |
+
: '';
|
428 |
+
|
429 |
+
$overlay_output = sprintf(
|
430 |
+
'<span class="et_overlay%1$s"%2$s></span>',
|
431 |
+
( '' !== $hover_icon ? ' et_pb_inline_icon' : '' ),
|
432 |
+
$data_icon
|
433 |
+
);
|
434 |
+
}
|
435 |
+
|
436 |
+
// Set display block for svg image to avoid disappearing svg image
|
437 |
+
if ( $is_src_svg ) {
|
438 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
439 |
+
'selector' => '%%order_class%% .et_pb_image_wrap',
|
440 |
+
'declaration' => 'display: block;',
|
441 |
+
) );
|
442 |
+
}
|
443 |
+
|
444 |
+
$output = sprintf(
|
445 |
+
'<span class="et_pb_image_wrap"><img src="%1$s" alt="%2$s"%3$s />%4$s</span>',
|
446 |
+
esc_attr( $src ),
|
447 |
+
esc_attr( $alt ),
|
448 |
+
( '' !== $title_text ? sprintf( ' title="%1$s"', esc_attr( $title_text ) ) : '' ),
|
449 |
+
'on' === $is_overlay_applied ? $overlay_output : ''
|
450 |
+
);
|
451 |
+
|
452 |
+
if ( 'on' === $show_in_lightbox ) {
|
453 |
+
$output = sprintf( '<a href="%1$s" class="et_pb_lightbox_image" title="%3$s">%2$s</a>',
|
454 |
+
esc_attr( $src ),
|
455 |
+
$output,
|
456 |
+
esc_attr( $alt )
|
457 |
+
);
|
458 |
+
} else if ( '' !== $url ) {
|
459 |
+
$output = sprintf( '<a href="%1$s"%3$s>%2$s</a>',
|
460 |
+
esc_url( $url ),
|
461 |
+
$output,
|
462 |
+
( 'on' === $url_new_window ? ' target="_blank"' : '' )
|
463 |
+
);
|
464 |
+
}
|
465 |
+
|
466 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
467 |
+
'selector' => '%%order_class%% .dsm-image-wrapper',
|
468 |
+
'declaration' => sprintf(
|
469 |
+
'transform: perspective(%1$s) rotateY(%2$s) rotateX(%3$s) rotateZ(%4$s);',
|
470 |
+
esc_attr( $perspective ),
|
471 |
+
esc_attr( $dsm_rotate_y ),
|
472 |
+
esc_attr( $dsm_rotate_x ),
|
473 |
+
esc_attr( $dsm_rotate_z )
|
474 |
+
),
|
475 |
+
) );
|
476 |
+
|
477 |
+
// Module classnames
|
478 |
+
|
479 |
+
$class = "dsm-image-wrapper";
|
480 |
+
if ( ! in_array( $animation_style, array( '', 'none' ) ) ) {
|
481 |
+
$class .= ' et-waypoint';
|
482 |
+
}
|
483 |
+
|
484 |
+
if ( 'on' === $is_overlay_applied ) {
|
485 |
+
$class .= ' et_pb_has_overlay';
|
486 |
+
}
|
487 |
+
|
488 |
+
if ( 'on' === $always_center_on_mobile ) {
|
489 |
+
$class .= ' et_always_center_on_mobile';
|
490 |
+
}
|
491 |
+
|
492 |
+
// Render module content
|
493 |
+
$output = sprintf(
|
494 |
+
'<div%3$s class="%2$s">
|
495 |
+
%5$s
|
496 |
+
%4$s
|
497 |
+
%1$s
|
498 |
+
</div>',
|
499 |
+
$output,
|
500 |
+
esc_attr( $class ),
|
501 |
+
$this->module_id(),
|
502 |
+
$video_background,
|
503 |
+
$parallax_image_background
|
504 |
+
);
|
505 |
+
|
506 |
+
return $this->_render_module_wrapper( $output, $render_slug );
|
507 |
+
}
|
508 |
+
}
|
509 |
+
|
510 |
+
new DSM_Perspective_Image;
|
includes/modules/TextDivider/TextDivider.php
ADDED
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class DSM_Text_Divider extends ET_Builder_Module {
|
4 |
+
|
5 |
+
public $slug = 'dsm_text_divider';
|
6 |
+
public $vb_support = 'on';
|
7 |
+
|
8 |
+
protected $module_credits = array(
|
9 |
+
'module_uri' => 'https://suprememodules.com/',
|
10 |
+
'author' => 'Supreme Modules',
|
11 |
+
'author_uri' => 'https://suprememodules.com/',
|
12 |
+
);
|
13 |
+
|
14 |
+
public function init() {
|
15 |
+
$this->name = esc_html__( 'Supreme Text Divider', 'dsm-supreme-modules-for-divi' );
|
16 |
+
$this->icon = 'd';
|
17 |
+
|
18 |
+
$this->settings_modal_toggles = array(
|
19 |
+
'general' => array(
|
20 |
+
'toggles' => array(
|
21 |
+
'main_content' => esc_html__( 'Text', 'dsm-supreme-modules-for-divi' ),
|
22 |
+
'visibility' => esc_html__( 'Visibility', 'dsm-supreme-modules-for-divi' ),
|
23 |
+
),
|
24 |
+
),
|
25 |
+
'advanced' => array(
|
26 |
+
'toggles' => array(
|
27 |
+
'color' => esc_html__( 'Color', 'dsm-supreme-modules-for-divi' ),
|
28 |
+
'styles' => esc_html__( 'Styles', 'dsm-supreme-modules-for-divi' ),
|
29 |
+
),
|
30 |
+
),
|
31 |
+
);
|
32 |
+
|
33 |
+
}
|
34 |
+
|
35 |
+
public function get_advanced_fields_config() {
|
36 |
+
return array(
|
37 |
+
'fonts' => array(
|
38 |
+
'header' => array(
|
39 |
+
'label' => esc_html__( 'Divider', 'dsm-supreme-modules-for-divi' ),
|
40 |
+
'css' => array(
|
41 |
+
'main' => '%%order_class%% h1.et_pb_module_header, %%order_class%% h2.et_pb_module_header, %%order_class%% h3.et_pb_module_header, %%order_class%% h4.et_pb_module_header, %%order_class%% h5.et_pb_module_header, %%order_class%% h6.et_pb_module_header',
|
42 |
+
),
|
43 |
+
'font_size' => array(
|
44 |
+
'default' => '22px',
|
45 |
+
),
|
46 |
+
'line_height' => array(
|
47 |
+
'default' => '1em',
|
48 |
+
),
|
49 |
+
'letter_spacing' => array(
|
50 |
+
'default' => '0px',
|
51 |
+
),
|
52 |
+
'header_level' => array(
|
53 |
+
'default' => 'h3',
|
54 |
+
),
|
55 |
+
),
|
56 |
+
),
|
57 |
+
'borders' => array(
|
58 |
+
'default' => false,
|
59 |
+
),
|
60 |
+
'margin_padding' => array(
|
61 |
+
'css' => array(
|
62 |
+
'important' => array( 'custom_margin' ), // needed to overwrite last module margin-bottom styling
|
63 |
+
),
|
64 |
+
),
|
65 |
+
'text' => array(
|
66 |
+
'use_background_layout' => true,
|
67 |
+
'use_text_orientation' => false,
|
68 |
+
'css' => array(
|
69 |
+
'text_shadow' => '%%order_class%%',
|
70 |
+
),
|
71 |
+
'options' => array(
|
72 |
+
'background_layout' => array(
|
73 |
+
'default_on_front' => 'light',
|
74 |
+
),
|
75 |
+
),
|
76 |
+
),
|
77 |
+
'button' => false,
|
78 |
+
);
|
79 |
+
}
|
80 |
+
|
81 |
+
public function get_fields() {
|
82 |
+
return array(
|
83 |
+
'header' => array(
|
84 |
+
'label' => esc_html__( 'Divider Text', 'dsm-supreme-modules-for-divi' ),
|
85 |
+
'type' => 'text',
|
86 |
+
'option_category' => 'basic_option',
|
87 |
+
'description' => esc_html__( 'The text of divider will appear in between the divider.', 'dsm-supreme-modules-for-divi' ),
|
88 |
+
'toggle_slug' => 'main_content',
|
89 |
+
'default_on_front' => 'Divider Text',
|
90 |
+
),
|
91 |
+
'text_alignment' => array(
|
92 |
+
'label' => esc_html__( 'Text Alignment', 'dsm-supreme-modules-for-divi' ),
|
93 |
+
'type' => 'select',
|
94 |
+
'option_category' => 'layout',
|
95 |
+
'options' => array(
|
96 |
+
'left' => esc_html__( 'Left', 'dsm-supreme-modules-for-divi' ),
|
97 |
+
'center' => esc_html__( 'Center', 'dsm-supreme-modules-for-divi' ),
|
98 |
+
'right' => esc_html__( 'Right', 'dsm-supreme-modules-for-divi' ),
|
99 |
+
),
|
100 |
+
'tab_slug' => 'advanced',
|
101 |
+
'toggle_slug' => 'text',
|
102 |
+
'default' => 'center',
|
103 |
+
),
|
104 |
+
'color' => array(
|
105 |
+
'default' => et_builder_accent_color(),
|
106 |
+
'label' => esc_html__( 'Color', 'dsm-supreme-modules-for-divi' ),
|
107 |
+
'type' => 'color-alpha',
|
108 |
+
'tab_slug' => 'advanced',
|
109 |
+
'description' => esc_html__( 'This will adjust the color of the 1px divider line.', 'dsm-supreme-modules-for-divi' ),
|
110 |
+
'toggle_slug' => 'color',
|
111 |
+
),
|
112 |
+
'divider_style' => array(
|
113 |
+
'label' => esc_html__( 'Divider Style', 'dsm-supreme-modules-for-divi' ),
|
114 |
+
'type' => 'select',
|
115 |
+
'option_category' => 'layout',
|
116 |
+
'options' => et_builder_get_border_styles(),
|
117 |
+
'tab_slug' => 'advanced',
|
118 |
+
'toggle_slug' => 'styles',
|
119 |
+
'default' => $this->defaults['divider_style'],
|
120 |
+
),
|
121 |
+
'divider_position' => array(
|
122 |
+
'label' => esc_html__( 'Divider Position', 'dsm-supreme-modules-for-divi' ),
|
123 |
+
'type' => 'select',
|
124 |
+
'option_category' => 'layout',
|
125 |
+
'options' => array(
|
126 |
+
'flex-start' => esc_html__( 'Top', 'dsm-supreme-modules-for-divi' ),
|
127 |
+
'center' => esc_html__( 'Vertically Centered', 'dsm-supreme-modules-for-divi' ),
|
128 |
+
'flex-end' => esc_html__( 'Bottom', 'dsm-supreme-modules-for-divi' ),
|
129 |
+
),
|
130 |
+
'tab_slug' => 'advanced',
|
131 |
+
'toggle_slug' => 'styles',
|
132 |
+
'default' => 'center',
|
133 |
+
),
|
134 |
+
'divider_weight' => array(
|
135 |
+
'label' => esc_html__( 'Divider Weight', 'dsm-supreme-modules-for-divi' ),
|
136 |
+
'type' => 'range',
|
137 |
+
'option_category' => 'layout',
|
138 |
+
'depends_show_if' => 'on',
|
139 |
+
'tab_slug' => 'advanced',
|
140 |
+
'toggle_slug' => 'width',
|
141 |
+
'default_unit' => 'px',
|
142 |
+
'default' => '1px',
|
143 |
+
),
|
144 |
+
'text_gap' => array(
|
145 |
+
'label' => esc_html__( 'Text Gap', 'dsm-supreme-modules-for-divi' ),
|
146 |
+
'type' => 'range',
|
147 |
+
'option_category' => 'layout',
|
148 |
+
'depends_show_if' => 'on',
|
149 |
+
'tab_slug' => 'advanced',
|
150 |
+
'toggle_slug' => 'width',
|
151 |
+
'default_unit' => 'px',
|
152 |
+
'default' => '10px',
|
153 |
+
),
|
154 |
+
'height' => array(
|
155 |
+
'label' => esc_html__( 'Height', 'dsm-supreme-modules-for-divi' ),
|
156 |
+
'type' => 'range',
|
157 |
+
'option_category' => 'layout',
|
158 |
+
'tab_slug' => 'advanced',
|
159 |
+
'toggle_slug' => 'width',
|
160 |
+
'description' => esc_html__( 'Define how much space should be added below the divider.', 'dsm-supreme-modules-for-divi' ),
|
161 |
+
'default' => '23px',
|
162 |
+
'default_unit' => 'px',
|
163 |
+
'default_on_front' => '23px',
|
164 |
+
),
|
165 |
+
);
|
166 |
+
}
|
167 |
+
|
168 |
+
public function get_alignment() {
|
169 |
+
$alignment = isset( $this->props['align'] ) ? $this->props['align'] : '';
|
170 |
+
|
171 |
+
return et_pb_get_alignment( $alignment );
|
172 |
+
}
|
173 |
+
|
174 |
+
public function render( $attrs, $content = null, $render_slug ) {
|
175 |
+
$header = $this->props['header'];
|
176 |
+
$text_alignment = $this->props['text_alignment'];
|
177 |
+
$color = $this->props['color'];
|
178 |
+
$height = $this->props['height'];
|
179 |
+
$divider_style = $this->props['divider_style'];
|
180 |
+
$divider_position = $this->props['divider_position'];
|
181 |
+
$divider_weight = $this->props['divider_weight'];
|
182 |
+
$text_gap = $this->props['text_gap'];
|
183 |
+
$header_level = $this->props['header_level'];
|
184 |
+
|
185 |
+
$video_background = $this->video_background();
|
186 |
+
$parallax_image_background = $this->get_parallax_image_background();
|
187 |
+
|
188 |
+
// Module classnames
|
189 |
+
|
190 |
+
if ( '' !== $header ) {
|
191 |
+
$header = sprintf( '<%1$s class="dsm-text-divider-header et_pb_module_header">%2$s</%1$s>', et_pb_process_header_level( $header_level, 'h3' ), $header );
|
192 |
+
}
|
193 |
+
|
194 |
+
if ( '' !== $color ) {
|
195 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
196 |
+
'selector' => '%%order_class%% .dsm-divider',
|
197 |
+
'declaration' => sprintf(
|
198 |
+
'border-top-color: %1$s;',
|
199 |
+
esc_html( $color )
|
200 |
+
),
|
201 |
+
) );
|
202 |
+
}
|
203 |
+
|
204 |
+
if ( '' !== $divider_style ) {
|
205 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
206 |
+
'selector' => '%%order_class%% .dsm-divider',
|
207 |
+
'declaration' => sprintf(
|
208 |
+
'border-top-style: %1$s;',
|
209 |
+
esc_attr( $divider_style )
|
210 |
+
),
|
211 |
+
) );
|
212 |
+
}
|
213 |
+
|
214 |
+
if ( '' !== $divider_weight ) {
|
215 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
216 |
+
'selector' => '%%order_class%% .dsm-divider',
|
217 |
+
'declaration' => sprintf(
|
218 |
+
'border-top-width: %1$s;',
|
219 |
+
esc_attr( $divider_weight )
|
220 |
+
),
|
221 |
+
) );
|
222 |
+
}
|
223 |
+
|
224 |
+
if ( 'left' === $text_alignment ) {
|
225 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
226 |
+
'selector' => '%%order_class%% .dsm-text-divider-header',
|
227 |
+
'declaration' => sprintf(
|
228 |
+
'margin: 0 %1$s 0 0;',
|
229 |
+
esc_attr( $text_gap )
|
230 |
+
),
|
231 |
+
) );
|
232 |
+
}
|
233 |
+
|
234 |
+
if ( 'right' === $text_alignment ) {
|
235 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
236 |
+
'selector' => '%%order_class%% .dsm-text-divider-header',
|
237 |
+
'declaration' => sprintf(
|
238 |
+
'margin: 0 0 0 %1$s;',
|
239 |
+
esc_attr( $text_gap )
|
240 |
+
),
|
241 |
+
) );
|
242 |
+
}
|
243 |
+
|
244 |
+
if ( 'center' !== $divider_position ) {
|
245 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
246 |
+
'selector' => '%%order_class%% .dsm-text-divider-wrapper',
|
247 |
+
'declaration' => sprintf(
|
248 |
+
'align-items: %1$s;',
|
249 |
+
esc_attr( $divider_position )
|
250 |
+
),
|
251 |
+
) );
|
252 |
+
}
|
253 |
+
|
254 |
+
if ( '' !== $height ) {
|
255 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
256 |
+
'selector' => '%%order_class%% .dsm-text-divider-wrapper',
|
257 |
+
'declaration' => sprintf(
|
258 |
+
'height: %1$s;',
|
259 |
+
esc_attr( et_builder_process_range_value( $height ) )
|
260 |
+
),
|
261 |
+
) );
|
262 |
+
}
|
263 |
+
|
264 |
+
$class = "dsm-text-divider-wrapper dsm-text-divider-align-{$text_alignment}";
|
265 |
+
|
266 |
+
// Render module content
|
267 |
+
$output = sprintf(
|
268 |
+
'<div%3$s class="%2$s">
|
269 |
+
%5$s
|
270 |
+
%4$s
|
271 |
+
<div class="dsm-text-divider-before dsm-divider"></div>
|
272 |
+
%1$s
|
273 |
+
<div class="dsm-text-divider-after dsm-divider"></div>
|
274 |
+
</div>',
|
275 |
+
$header,
|
276 |
+
esc_attr( $class ),
|
277 |
+
$this->module_id(),
|
278 |
+
$video_background,
|
279 |
+
$parallax_image_background
|
280 |
+
);
|
281 |
+
|
282 |
+
return $this->_render_module_wrapper( $output, $render_slug );
|
283 |
+
}
|
284 |
+
}
|
285 |
+
|
286 |
+
new DSM_Text_Divider;
|
includes/modules/TypingEffect/TypingEffect.php
ADDED
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class DSM_TypingEffect extends ET_Builder_Module {
|
4 |
+
|
5 |
+
public $slug = 'dsm_typing_effect';
|
6 |
+
public $vb_support = 'on';
|
7 |
+
|
8 |
+
protected $module_credits = array(
|
9 |
+
'module_uri' => 'https://suprememodules.com/',
|
10 |
+
'author' => 'Supreme Modules',
|
11 |
+
'author_uri' => 'https://suprememodules.com/',
|
12 |
+
);
|
13 |
+
|
14 |
+
|
15 |
+
public function init() {
|
16 |
+
$this->name = esc_html__( 'Supreme Typing', 'dsm-supreme-modules-for-divi' );
|
17 |
+
//$this->icon = 'j';
|
18 |
+
// Toggle settings
|
19 |
+
$this->settings_modal_toggles = array(
|
20 |
+
'general' => array(
|
21 |
+
'toggles' => array(
|
22 |
+
'main_content' => esc_html__( 'Text', 'dsm-supreme-modules-for-divi' ),
|
23 |
+
'typing_option' => esc_html__( 'Typing Options', 'dsm-supreme-modules-for-divi' ),
|
24 |
+
),
|
25 |
+
),
|
26 |
+
'advanced' => array(
|
27 |
+
'toggles' => array(
|
28 |
+
'typing_styles' => esc_html__( 'Typing Styles', 'dsm-supreme-modules-for-divi' ),
|
29 |
+
),
|
30 |
+
),
|
31 |
+
);
|
32 |
+
}
|
33 |
+
|
34 |
+
public function get_advanced_fields_config() {
|
35 |
+
return array(
|
36 |
+
'fonts' => array(
|
37 |
+
'header' => array(
|
38 |
+
'label' => esc_html__( 'Title', 'dsm-supreme-modules-for-divi' ),
|
39 |
+
'css' => array(
|
40 |
+
'main' => '%%order_class%% h1.et_pb_module_header, %%order_class%% h2.et_pb_module_header, %%order_class%% h3.et_pb_module_header, %%order_class%% h4.et_pb_module_header, %%order_class%% h5.et_pb_module_header, %%order_class%% h6.et_pb_module_header',
|
41 |
+
),
|
42 |
+
'font_size' => array(
|
43 |
+
'default' => '30px',
|
44 |
+
),
|
45 |
+
'line_height' => array(
|
46 |
+
'default' => '1em',
|
47 |
+
),
|
48 |
+
'letter_spacing' => array(
|
49 |
+
'default' => '0px',
|
50 |
+
),
|
51 |
+
'header_level' => array(
|
52 |
+
'default' => 'h1',
|
53 |
+
),
|
54 |
+
),
|
55 |
+
),
|
56 |
+
'text' => array(
|
57 |
+
'use_text_orientation' => true,
|
58 |
+
'use_background_layout' => true,
|
59 |
+
'css' => array(
|
60 |
+
'text_shadow' => '%%order_class%%',
|
61 |
+
),
|
62 |
+
'options' => array(
|
63 |
+
'background_layout' => array(
|
64 |
+
'default' => 'light',
|
65 |
+
),
|
66 |
+
),
|
67 |
+
),
|
68 |
+
'borders' => array(
|
69 |
+
'default' => array(
|
70 |
+
'css' => array(
|
71 |
+
'main' => array(
|
72 |
+
'border_radii' => "%%order_class%%",
|
73 |
+
'border_styles' => "%%order_class%%",
|
74 |
+
),
|
75 |
+
),
|
76 |
+
),
|
77 |
+
),
|
78 |
+
'box_shadow' => array(
|
79 |
+
'default' => array(
|
80 |
+
'css' => array(
|
81 |
+
'main' => '%%order_class%%',
|
82 |
+
),
|
83 |
+
),
|
84 |
+
),
|
85 |
+
);
|
86 |
+
}
|
87 |
+
|
88 |
+
public function get_fields() {
|
89 |
+
return array(
|
90 |
+
'typing_effect' => array(
|
91 |
+
'label' => esc_html__( 'Typing Effect', 'dsm-supreme-modules-for-divi' ),
|
92 |
+
'type' => 'text',
|
93 |
+
'option_category' => 'basic_option',
|
94 |
+
'description' => esc_html__( 'The title of your Typing Effect. Use "|" as a separator. eg Word One|Text Two|Divi 3', 'dsm-supreme-modules-for-divi' ),
|
95 |
+
'default_on_front' => 'Design Divi sites with|Divi|Supreme',
|
96 |
+
'toggle_slug' => 'main_content',
|
97 |
+
),
|
98 |
+
'typing_loop' => array(
|
99 |
+
'label' => esc_html__( 'Use Loop', 'dsm-supreme-modules-for-divi' ),
|
100 |
+
'type' => 'yes_no_button',
|
101 |
+
'option_category' => 'configuration',
|
102 |
+
'default' => 'on',
|
103 |
+
'default_on_front' => 'on',
|
104 |
+
'options' => array(
|
105 |
+
'off' => esc_html__( 'No', 'dsm-supreme-modules-for-divi' ),
|
106 |
+
'on' => esc_html__( 'Yes', 'dsm-supreme-modules-for-divi' ),
|
107 |
+
),
|
108 |
+
'description' => esc_html__( 'If enabled, typing effect will loop infinite.', 'dsm-supreme-modules-for-divi' ),
|
109 |
+
'toggle_slug' => 'typing_option',
|
110 |
+
),
|
111 |
+
'typing_speed' => array(
|
112 |
+
'label' => esc_html__( 'Typing Speed (in ms)', 'dsm-supreme-modules-for-divi' ),
|
113 |
+
'type' => 'range',
|
114 |
+
'option_category' => 'configuration',
|
115 |
+
'default' => '100ms',
|
116 |
+
'default_on_front' => '100ms',
|
117 |
+
'default_unit' => 'ms',
|
118 |
+
'range_settings' => array(
|
119 |
+
'min' => '10',
|
120 |
+
'max' => '3000',
|
121 |
+
'step' => '1',
|
122 |
+
),
|
123 |
+
'toggle_slug' => 'typing_option',
|
124 |
+
),
|
125 |
+
'typing_backspeed' => array(
|
126 |
+
'label' => esc_html__( 'Typing Backspeed (in ms)', 'dsm-supreme-modules-for-divi' ),
|
127 |
+
'type' => 'range',
|
128 |
+
'option_category' => 'configuration',
|
129 |
+
'default' => '50ms',
|
130 |
+
'default_on_front' => '50ms',
|
131 |
+
'default_unit' => 'ms',
|
132 |
+
'range_settings' => array(
|
133 |
+
'min' => '1',
|
134 |
+
'max' => '300',
|
135 |
+
'step' => '1',
|
136 |
+
),
|
137 |
+
'toggle_slug' => 'typing_option',
|
138 |
+
),
|
139 |
+
'typing_backdelay' => array(
|
140 |
+
'label' => esc_html__( 'Back delay (in ms)', 'dsm-supreme-modules-for-divi' ),
|
141 |
+
'type' => 'range',
|
142 |
+
'option_category' => 'configuration',
|
143 |
+
'default' => '700ms',
|
144 |
+
'default_on_front' => '700ms',
|
145 |
+
'range_settings' => array(
|
146 |
+
'min' => '200',
|
147 |
+
'max' => '2000',
|
148 |
+
'step' => '100',
|
149 |
+
),
|
150 |
+
'description' => esc_html__( 'Time before backspacing', 'dsm-supreme-modules-for-divi' ),
|
151 |
+
'toggle_slug' => 'typing_option',
|
152 |
+
),
|
153 |
+
'typing_cursor_color' => array(
|
154 |
+
'label' => esc_html__( 'Cursor Color', 'dsm-supreme-modules-for-divi' ),
|
155 |
+
'type' => 'color-alpha',
|
156 |
+
'custom_color' => true,
|
157 |
+
'tab_slug' => 'advanced',
|
158 |
+
'toggle_slug' => 'typing_styles',
|
159 |
+
),
|
160 |
+
);
|
161 |
+
}
|
162 |
+
|
163 |
+
public function render( $attrs, $content = null, $render_slug ) {
|
164 |
+
$typing_effect = $this->props['typing_effect'];
|
165 |
+
$typing_loop = $this->props['typing_loop'];
|
166 |
+
$typing_speed = $this->props['typing_speed'];
|
167 |
+
$typing_backspeed = $this->props['typing_backspeed'];
|
168 |
+
$typing_backdelay = $this->props['typing_backdelay'];
|
169 |
+
$typing_cursor_color = $this->props['typing_cursor_color'];
|
170 |
+
$background_layout = $this->props['background_layout'];
|
171 |
+
$header_level = $this->props['header_level'];
|
172 |
+
|
173 |
+
if ( '' !== $typing_effect ) {
|
174 |
+
$typing_effect = sprintf( '<%1$s class="dsm-typing-effect et_pb_module_header"><span class="dsm-typing" data-dsm-typing-strings="%2$s"%3$s%4$s></span></%1$s>',
|
175 |
+
et_pb_process_header_level( $header_level, 'h1' ),
|
176 |
+
$typing_effect,
|
177 |
+
esc_attr(" data-dsm-typing-speed={$typing_speed} data-dsm-typing-backspeed={$typing_backspeed} data-dsm-typing-backdelay={$typing_backdelay}"),
|
178 |
+
( 'off' !== $typing_loop ? esc_attr(' data-dsm-typing-loop=true') : esc_attr(' data-dsm-typing-loop=false') )
|
179 |
+
);
|
180 |
+
}
|
181 |
+
|
182 |
+
if ( '' !== $typing_cursor_color ) {
|
183 |
+
ET_Builder_Element::set_style( $render_slug, array(
|
184 |
+
'selector' => '%%order_class%% .dsm-typing-effect .typed-cursor',
|
185 |
+
'declaration' => sprintf(
|
186 |
+
'color: %1$s;',
|
187 |
+
esc_html( $typing_cursor_color )
|
188 |
+
),
|
189 |
+
) );
|
190 |
+
}
|
191 |
+
|
192 |
+
$this->add_classname( array(
|
193 |
+
"et_pb_bg_layout_{$background_layout}",
|
194 |
+
$this->get_text_orientation_classname(),
|
195 |
+
));
|
196 |
+
|
197 |
+
wp_enqueue_script('dsm-typed');
|
198 |
+
|
199 |
+
// Render module content
|
200 |
+
$output = sprintf(
|
201 |
+
'%1$s',
|
202 |
+
$typing_effect
|
203 |
+
);
|
204 |
+
|
205 |
+
return $this->_render_module_wrapper( $output, $render_slug );
|
206 |
+
}
|
207 |
+
}
|
208 |
+
|
209 |
+
new DSM_TypingEffect;
|
languages/en_US.mo
ADDED
Binary file
|
languages/en_US.po
ADDED
@@ -0,0 +1,629 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2018 Supreme Modules
|
2 |
+
# This file is distributed under the GPL2.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Supreme Modules 1.0.0\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/supreme-modules-"
|
7 |
+
"for-divi\n"
|
8 |
+
"POT-Creation-Date: 2018-09-23 20:10:59+00:00\n"
|
9 |
+
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
|
10 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
11 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
12 |
+
"Language: en\n"
|
13 |
+
"MIME-Version: 1.0\n"
|
14 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
+
"Content-Transfer-Encoding: 8bit\n"
|
16 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
17 |
+
"X-Poedit-Country: United States\n"
|
18 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
19 |
+
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
20 |
+
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
21 |
+
"esc_html_x:1,2c;\n"
|
22 |
+
"X-Poedit-Basepath: ../\n"
|
23 |
+
"X-Poedit-SearchPath-0: .\n"
|
24 |
+
"X-Poedit-Bookmarks: \n"
|
25 |
+
"X-Textdomain-Support: yes\n"
|
26 |
+
"X-Generator: grunt-wp-i18n1.0.2\n"
|
27 |
+
|
28 |
+
#: includes/modules/FlipBoxPerk/FlipBoxPerk.php:16
|
29 |
+
msgid "Supreme Flipbox"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: includes/modules/FlipBoxPerk/FlipBoxPerk.php:22
|
33 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:26
|
34 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:35
|
35 |
+
#: includes/modules/GradientText/GradientText.php:21
|
36 |
+
#: includes/modules/TextDivider/TextDivider.php:21
|
37 |
+
#: includes/modules/TypingEffect/TypingEffect.php:22
|
38 |
+
msgid "Text"
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#: includes/modules/FlipBoxPerk/FlipBoxPerk.php:66
|
42 |
+
msgid "Flipbox Effect"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: includes/modules/FlipBoxPerk/FlipBoxPerk.php:71
|
46 |
+
msgid "Flip Left"
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#: includes/modules/FlipBoxPerk/FlipBoxPerk.php:72
|
50 |
+
msgid "Flip Right"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: includes/modules/FlipBoxPerk/FlipBoxPerk.php:73
|
54 |
+
msgid "Flip Up"
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: includes/modules/FlipBoxPerk/FlipBoxPerk.php:74
|
58 |
+
msgid "Flip Down"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: includes/modules/FlipBoxPerk/FlipBoxPerk.php:80
|
62 |
+
msgid "Animation Speed (in s)"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: includes/modules/FlipBoxPerk/FlipBoxPerk.php:95
|
66 |
+
#: includes/modules/TextDivider/TextDivider.php:155
|
67 |
+
msgid "Height"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:19
|
71 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:20
|
72 |
+
msgid "Flipbox Item"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:21
|
76 |
+
msgid "Flipbox Item Settings"
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:27
|
80 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:23
|
81 |
+
msgid "Link"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:28
|
85 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:33
|
86 |
+
msgid "Image & Icon"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:39
|
90 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:32
|
91 |
+
msgid "Sizing"
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:47
|
95 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:40
|
96 |
+
msgid "Animation"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:51
|
100 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:44
|
101 |
+
msgid "Attributes"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:63
|
105 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:203
|
106 |
+
#: includes/modules/GradientText/GradientText.php:35
|
107 |
+
#: includes/modules/TypingEffect/TypingEffect.php:38
|
108 |
+
msgid "Title"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:81
|
112 |
+
msgid "Body"
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:96
|
116 |
+
msgid "Subhead"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:131
|
120 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:321
|
121 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:22
|
122 |
+
msgid "Image"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:141
|
126 |
+
msgid "Image Box Shadow"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:160
|
130 |
+
msgid "Button"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:192
|
134 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:443
|
135 |
+
#: includes/modules/TextDivider/TextDivider.php:126
|
136 |
+
msgid "Top"
|
137 |
+
msgstr ""
|
138 |
+
|
139 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:196
|
140 |
+
#: includes/modules/TextDivider/TextDivider.php:96
|
141 |
+
msgid "Left"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:198
|
145 |
+
#: includes/modules/TextDivider/TextDivider.php:98
|
146 |
+
msgid "Right"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:206
|
150 |
+
msgid "Text entered here will appear as title."
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:210
|
154 |
+
msgid "Sub Title"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:213
|
158 |
+
msgid "Text entered here will appear as subtitle."
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:217
|
162 |
+
msgid "Use Icon"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:221
|
166 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:272
|
167 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:299
|
168 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:382
|
169 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:136
|
170 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:308
|
171 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:324
|
172 |
+
#: includes/modules/TypingEffect/TypingEffect.php:105
|
173 |
+
msgid "No"
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:222
|
177 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:273
|
178 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:300
|
179 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:383
|
180 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:137
|
181 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:309
|
182 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:323
|
183 |
+
#: includes/modules/TypingEffect/TypingEffect.php:106
|
184 |
+
msgid "Yes"
|
185 |
+
msgstr ""
|
186 |
+
|
187 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:246
|
188 |
+
msgid "Here you can choose whether icon set below should be used."
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:250
|
192 |
+
msgid "Icon"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:255
|
196 |
+
msgid "Choose an icon to display with your blurb."
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:260
|
200 |
+
msgid "Icon Color"
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:262
|
204 |
+
msgid "Here you can define a custom color for your icon."
|
205 |
+
msgstr ""
|
206 |
+
|
207 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:268
|
208 |
+
msgid "Circle Icon"
|
209 |
+
msgstr ""
|
210 |
+
|
211 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:281
|
212 |
+
msgid ""
|
213 |
+
"Here you can choose whether icon set above should display within a circle."
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:287
|
217 |
+
msgid "Circle Color"
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:289
|
221 |
+
msgid "Here you can define a custom color for the icon circle."
|
222 |
+
msgstr ""
|
223 |
+
|
224 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:295
|
225 |
+
msgid "Show Circle Border"
|
226 |
+
msgstr ""
|
227 |
+
|
228 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:305
|
229 |
+
msgid "Here you can choose whether if the icon circle border should display."
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:313
|
233 |
+
msgid "Circle Border Color"
|
234 |
+
msgstr ""
|
235 |
+
|
236 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:315
|
237 |
+
msgid "Here you can define a custom color for the icon circle border."
|
238 |
+
msgstr ""
|
239 |
+
|
240 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:324
|
241 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:96
|
242 |
+
msgid "Upload an image"
|
243 |
+
msgstr ""
|
244 |
+
|
245 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:325
|
246 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:97
|
247 |
+
msgid "Choose an Image"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:326
|
251 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:98
|
252 |
+
msgid "Set As Image"
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:328
|
256 |
+
msgid "Upload an image to display at the top of your blurb."
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:332
|
260 |
+
msgid "Image Alt Text"
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:335
|
264 |
+
msgid "Define the HTML ALT text for your image here."
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:341
|
268 |
+
msgid "Image/Icon Placement"
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:347
|
272 |
+
msgid "Here you can choose where to place the icon."
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:351
|
276 |
+
msgid "Content"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:354
|
280 |
+
msgid "Content entered here will appear inside the module."
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:358
|
284 |
+
msgid "Image Width"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:378
|
288 |
+
msgid "Use Icon Font Size"
|
289 |
+
msgstr ""
|
290 |
+
|
291 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:394
|
292 |
+
msgid "Icon Font Size"
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:412
|
296 |
+
msgid "Button Text"
|
297 |
+
msgstr ""
|
298 |
+
|
299 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:415
|
300 |
+
msgid "Input your desired button text, or leave blank for no button."
|
301 |
+
msgstr ""
|
302 |
+
|
303 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:419
|
304 |
+
msgid "Button URL"
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:422
|
308 |
+
msgid "Input URL for your button."
|
309 |
+
msgstr ""
|
310 |
+
|
311 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:428
|
312 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:160
|
313 |
+
msgid "Url Opens"
|
314 |
+
msgstr ""
|
315 |
+
|
316 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:432
|
317 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:164
|
318 |
+
msgid "In The Same Window"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:433
|
322 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:165
|
323 |
+
msgid "In The New Tab"
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:436
|
327 |
+
msgid "Choose whether your link opens in a new window or not"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:439
|
331 |
+
msgid "Text Vertical Alignment"
|
332 |
+
msgstr ""
|
333 |
+
|
334 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:444
|
335 |
+
#: includes/modules/TextDivider/TextDivider.php:97
|
336 |
+
msgid "Center"
|
337 |
+
msgstr ""
|
338 |
+
|
339 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:445
|
340 |
+
#: includes/modules/TextDivider/TextDivider.php:128
|
341 |
+
msgid "Bottom"
|
342 |
+
msgstr ""
|
343 |
+
|
344 |
+
#: includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php:450
|
345 |
+
msgid ""
|
346 |
+
"This setting determines the vertical alignment of your content. Your content "
|
347 |
+
"can either be align to the top, vertically centered, or aligned to the "
|
348 |
+
"bottom."
|
349 |
+
msgstr ""
|
350 |
+
|
351 |
+
#: includes/modules/GradientText/GradientText.php:15
|
352 |
+
msgid "Supreme Gradient Text"
|
353 |
+
msgstr ""
|
354 |
+
|
355 |
+
#: includes/modules/GradientText/GradientText.php:113
|
356 |
+
msgid "Gradient Text"
|
357 |
+
msgstr ""
|
358 |
+
|
359 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:15
|
360 |
+
msgid "Supreme Image"
|
361 |
+
msgstr ""
|
362 |
+
|
363 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:16
|
364 |
+
msgid "Supreme Images"
|
365 |
+
msgstr ""
|
366 |
+
|
367 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:24
|
368 |
+
msgid "Transform & Rotation"
|
369 |
+
msgstr ""
|
370 |
+
|
371 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:29
|
372 |
+
msgid "Overlay"
|
373 |
+
msgstr ""
|
374 |
+
|
375 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:30
|
376 |
+
msgid "Alignment"
|
377 |
+
msgstr ""
|
378 |
+
|
379 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:104
|
380 |
+
msgid ""
|
381 |
+
"Upload your desired image, or type in the URL to the image you would like to "
|
382 |
+
"display."
|
383 |
+
msgstr ""
|
384 |
+
|
385 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:108
|
386 |
+
msgid "Image Alternative Text"
|
387 |
+
msgstr ""
|
388 |
+
|
389 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:115
|
390 |
+
msgid ""
|
391 |
+
"This defines the HTML ALT text. A short description of your image can be "
|
392 |
+
"placed here."
|
393 |
+
msgstr ""
|
394 |
+
|
395 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:120
|
396 |
+
msgid "Image Title Text"
|
397 |
+
msgstr ""
|
398 |
+
|
399 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:127
|
400 |
+
msgid "This defines the HTML Title text."
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:132
|
404 |
+
msgid "Open in Lightbox"
|
405 |
+
msgstr ""
|
406 |
+
|
407 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:146
|
408 |
+
msgid ""
|
409 |
+
"Here you can choose whether or not the image should open in Lightbox. Note: "
|
410 |
+
"if you select to open the image in Lightbox, url options below will be "
|
411 |
+
"ignored."
|
412 |
+
msgstr ""
|
413 |
+
|
414 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:149
|
415 |
+
msgid "Link URL"
|
416 |
+
msgstr ""
|
417 |
+
|
418 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:156
|
419 |
+
msgid ""
|
420 |
+
"If you would like your image to be a link, input your destination URL here. "
|
421 |
+
"No link will be created if this field is left blank."
|
422 |
+
msgstr ""
|
423 |
+
|
424 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:170
|
425 |
+
msgid "Here you can choose whether or not your link opens in a new window"
|
426 |
+
msgstr ""
|
427 |
+
|
428 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:173
|
429 |
+
msgid "Perspective"
|
430 |
+
msgstr ""
|
431 |
+
|
432 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:191
|
433 |
+
msgid "Rotate Y"
|
434 |
+
msgstr ""
|
435 |
+
|
436 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:209
|
437 |
+
msgid "Rotate X"
|
438 |
+
msgstr ""
|
439 |
+
|
440 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:227
|
441 |
+
msgid "Rotate Z"
|
442 |
+
msgstr ""
|
443 |
+
|
444 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:245
|
445 |
+
msgid "Image Overlay"
|
446 |
+
msgstr ""
|
447 |
+
|
448 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:249
|
449 |
+
msgid "Off"
|
450 |
+
msgstr ""
|
451 |
+
|
452 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:250
|
453 |
+
msgid "On"
|
454 |
+
msgstr ""
|
455 |
+
|
456 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:261
|
457 |
+
msgid ""
|
458 |
+
"If enabled, an overlay color and icon will be displayed when a visitors "
|
459 |
+
"hovers over the image"
|
460 |
+
msgstr ""
|
461 |
+
|
462 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:264
|
463 |
+
msgid "Overlay Icon Color"
|
464 |
+
msgstr ""
|
465 |
+
|
466 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:270
|
467 |
+
msgid "Here you can define a custom color for the overlay icon"
|
468 |
+
msgstr ""
|
469 |
+
|
470 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:273
|
471 |
+
msgid "Hover Overlay Color"
|
472 |
+
msgstr ""
|
473 |
+
|
474 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:279
|
475 |
+
msgid "Here you can define a custom color for the overlay"
|
476 |
+
msgstr ""
|
477 |
+
|
478 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:282
|
479 |
+
msgid "Hover Icon Picker"
|
480 |
+
msgstr ""
|
481 |
+
|
482 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:290
|
483 |
+
msgid "Here you can define a custom icon for the overlay"
|
484 |
+
msgstr ""
|
485 |
+
|
486 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:293
|
487 |
+
msgid "Image Alignment"
|
488 |
+
msgstr ""
|
489 |
+
|
490 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:300
|
491 |
+
msgid "Here you can choose the image alignment."
|
492 |
+
msgstr ""
|
493 |
+
|
494 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:304
|
495 |
+
msgid "Force Fullwidth"
|
496 |
+
msgstr ""
|
497 |
+
|
498 |
+
#: includes/modules/PerspectiveImage/PerspectiveImage.php:319
|
499 |
+
msgid "Always Center Image On Mobile"
|
500 |
+
msgstr ""
|
501 |
+
|
502 |
+
#: includes/modules/TextDivider/TextDivider.php:15
|
503 |
+
msgid "Supreme Text Divider"
|
504 |
+
msgstr ""
|
505 |
+
|
506 |
+
#: includes/modules/TextDivider/TextDivider.php:22
|
507 |
+
msgid "Visibility"
|
508 |
+
msgstr ""
|
509 |
+
|
510 |
+
#: includes/modules/TextDivider/TextDivider.php:27
|
511 |
+
#: includes/modules/TextDivider/TextDivider.php:106
|
512 |
+
msgid "Color"
|
513 |
+
msgstr ""
|
514 |
+
|
515 |
+
#: includes/modules/TextDivider/TextDivider.php:28
|
516 |
+
msgid "Styles"
|
517 |
+
msgstr ""
|
518 |
+
|
519 |
+
#: includes/modules/TextDivider/TextDivider.php:39
|
520 |
+
msgid "Divider"
|
521 |
+
msgstr ""
|
522 |
+
|
523 |
+
#: includes/modules/TextDivider/TextDivider.php:84
|
524 |
+
msgid "Divider Text"
|
525 |
+
msgstr ""
|
526 |
+
|
527 |
+
#: includes/modules/TextDivider/TextDivider.php:87
|
528 |
+
msgid "The text of divider will appear in between the divider."
|
529 |
+
msgstr ""
|
530 |
+
|
531 |
+
#: includes/modules/TextDivider/TextDivider.php:92
|
532 |
+
msgid "Text Alignment"
|
533 |
+
msgstr ""
|
534 |
+
|
535 |
+
#: includes/modules/TextDivider/TextDivider.php:109
|
536 |
+
msgid "This will adjust the color of the 1px divider line."
|
537 |
+
msgstr ""
|
538 |
+
|
539 |
+
#: includes/modules/TextDivider/TextDivider.php:113
|
540 |
+
msgid "Divider Style"
|
541 |
+
msgstr ""
|
542 |
+
|
543 |
+
#: includes/modules/TextDivider/TextDivider.php:122
|
544 |
+
msgid "Divider Position"
|
545 |
+
msgstr ""
|
546 |
+
|
547 |
+
#: includes/modules/TextDivider/TextDivider.php:127
|
548 |
+
msgid "Vertically Centered"
|
549 |
+
msgstr ""
|
550 |
+
|
551 |
+
#: includes/modules/TextDivider/TextDivider.php:135
|
552 |
+
msgid "Divider Weight"
|
553 |
+
msgstr ""
|
554 |
+
|
555 |
+
#: includes/modules/TextDivider/TextDivider.php:145
|
556 |
+
msgid "Text Gap"
|
557 |
+
msgstr ""
|
558 |
+
|
559 |
+
#: includes/modules/TextDivider/TextDivider.php:160
|
560 |
+
msgid "Define how much space should be added below the divider."
|
561 |
+
msgstr ""
|
562 |
+
|
563 |
+
#: includes/modules/TypingEffect/TypingEffect.php:16
|
564 |
+
msgid "Supreme Typing"
|
565 |
+
msgstr ""
|
566 |
+
|
567 |
+
#: includes/modules/TypingEffect/TypingEffect.php:23
|
568 |
+
msgid "Typing Options"
|
569 |
+
msgstr ""
|
570 |
+
|
571 |
+
#: includes/modules/TypingEffect/TypingEffect.php:28
|
572 |
+
msgid "Typing Styles"
|
573 |
+
msgstr ""
|
574 |
+
|
575 |
+
#: includes/modules/TypingEffect/TypingEffect.php:91
|
576 |
+
msgid "Typing Effect"
|
577 |
+
msgstr ""
|
578 |
+
|
579 |
+
#: includes/modules/TypingEffect/TypingEffect.php:94
|
580 |
+
msgid ""
|
581 |
+
"The title of your Typing Effect. Use \"|\" as a separator. eg Word One|Text "
|
582 |
+
"Two|Divi 3"
|
583 |
+
msgstr ""
|
584 |
+
|
585 |
+
#: includes/modules/TypingEffect/TypingEffect.php:99
|
586 |
+
msgid "Use Loop"
|
587 |
+
msgstr ""
|
588 |
+
|
589 |
+
#: includes/modules/TypingEffect/TypingEffect.php:108
|
590 |
+
msgid "If enabled, typing effect will loop infinite."
|
591 |
+
msgstr ""
|
592 |
+
|
593 |
+
#: includes/modules/TypingEffect/TypingEffect.php:112
|
594 |
+
msgid "Typing Speed (in ms)"
|
595 |
+
msgstr ""
|
596 |
+
|
597 |
+
#: includes/modules/TypingEffect/TypingEffect.php:126
|
598 |
+
msgid "Typing Backspeed (in ms)"
|
599 |
+
msgstr ""
|
600 |
+
|
601 |
+
#: includes/modules/TypingEffect/TypingEffect.php:140
|
602 |
+
msgid "Back delay (in ms)"
|
603 |
+
msgstr ""
|
604 |
+
|
605 |
+
#: includes/modules/TypingEffect/TypingEffect.php:150
|
606 |
+
msgid "Time before backspacing"
|
607 |
+
msgstr ""
|
608 |
+
|
609 |
+
#: includes/modules/TypingEffect/TypingEffect.php:154
|
610 |
+
msgid "Cursor Color"
|
611 |
+
msgstr ""
|
612 |
+
|
613 |
+
#. Author of the plugin/theme
|
614 |
+
msgid "Supreme Modules"
|
615 |
+
msgstr ""
|
616 |
+
|
617 |
+
#. Plugin URI of the plugin/theme
|
618 |
+
msgid "https://suprememodules.com"
|
619 |
+
msgstr ""
|
620 |
+
|
621 |
+
#. Description of the plugin/theme
|
622 |
+
msgid ""
|
623 |
+
"Divi Supreme enhances the experience and features found on Divi and extend "
|
624 |
+
"with custom and creative modules to help you build amazing websites."
|
625 |
+
msgstr ""
|
626 |
+
|
627 |
+
#. Author URI of the plugin/theme
|
628 |
+
msgid "https://suprememodules.com/about-us/"
|
629 |
+
msgstr ""
|
readme.txt
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Supreme Modules for Divi ===
|
2 |
+
Contributors: divisupreme
|
3 |
+
Tags: Divi, Divi Module, Divi Custom Module, Divi Gradient Text, Divi Typing Effect, Divi 3D Image, Divi Image, Divi Text Divider
|
4 |
+
Donate link: https://suprememodules.com/
|
5 |
+
Requires at least: 4.5
|
6 |
+
Tested up to: 4.9
|
7 |
+
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.0.0
|
9 |
+
License: GPLv2
|
10 |
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
+
|
12 |
+
Divi Supreme Modules plugin enhances the experience and features found on Divi and extend with custom and creative modules to help you build amazing websites.
|
13 |
+
|
14 |
+
== Description ==
|
15 |
+
|
16 |
+
Divi Supreme Modules plugin enhances the experience and features found on Divi and extend with custom and creative modules to help you build amazing websites.
|
17 |
+
|
18 |
+
Initial version contains 5 Divi custom modules and more to come soon.
|
19 |
+
|
20 |
+
- Supreme Gradient Text - By using Divi's built-in background gradient tool, this module allow you to have gradient text without coding.
|
21 |
+
- Supreme Flipbox - With 4 types of Flipbox effect to choose from (Flip Left, Flip Right, Flip Up and Flip Down), you can create stunning interactive content that converts.
|
22 |
+
- Supreme Text Divider - This allow you to create an organized and beautiful to read headlines with many border styles to choose from with the text in-between the Dividers.
|
23 |
+
- Supreme Image - This allow you to transform the image using 3D transformation. Rotate it like the way you always wanted without coding.
|
24 |
+
- Supreme Typing - An Animated Typing Effect.
|
25 |
+
|
26 |
+
Many more Divi Modules coming soon...
|
27 |
+
|
28 |
+
= About Divi Supreme Modules =
|
29 |
+
Divi is a great tool for building website, but without proper addons it might take more time and money. Divi's mission is to help users design websites in the easiest, fastest and most streamlined way.
|
30 |
+
|
31 |
+
We support Divi's mission through the development of Divi custom modules that focus on beauty, subtle animations and visitor engagement. Whether you are a developer or a designer. Our goal is to give you the perfect tool that is build for Divi professionals.
|
32 |
+
|
33 |
+
= Documentation and Support =
|
34 |
+
- For more information about features, FAQs and documentation, check out our website at [Divi Supreme](https://suprememodules.com/).
|
35 |
+
|
36 |
+
== Installation ==
|
37 |
+
|
38 |
+
= Minimum Requirements =
|
39 |
+
|
40 |
+
* WordPress 4.5 or greater
|
41 |
+
* PHP version 5.6 or greater
|
42 |
+
* MySQL version 5.0 or greater
|
43 |
+
|
44 |
+
= We recommend your host supports: =
|
45 |
+
|
46 |
+
* PHP version 7.0 or greater
|
47 |
+
* MySQL version 5.6 or greater
|
48 |
+
* WP Memory limit of 64 MB or greater (128 MB or higher is preferred)
|
49 |
+
|
50 |
+
= Installation =
|
51 |
+
|
52 |
+
1. Install using the WordPress built-in Plugin installer, or Extract the zip file and drop the contents in the `wp-content/plugins/` directory of your WordPress installation.
|
53 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
54 |
+
3. Go to Pages > Add New
|
55 |
+
4. Click on "Use The Divi Builder" and Click on "Use Visual Builder".
|
56 |
+
5. Now type in Supreme on the search box and it will Divi Supreme Module will appear.
|
57 |
+
|
58 |
+
== Frequently Asked Questions ==
|
59 |
+
|
60 |
+
**Do I need Divi Theme for this to work?**
|
61 |
+
|
62 |
+
You must have Divi theme, Extra Theme or the Divi Builder installed in order for this plugin to work.
|
63 |
+
|
64 |
+
**Does it work with the Divi Visual Builder?**
|
65 |
+
|
66 |
+
YES!
|
67 |
+
|
68 |
+
== Changelog ==
|
69 |
+
|
70 |
+
= 1.0.0 - 24.09.2018 =
|
71 |
+
* Official Public Release
|
scripts/builder-bundle.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=7)}([function(e,t){e.exports=React},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){e.exports=jQuery},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){n.d(t,"css",function(){return C}),n.d(t,"keyframes",function(){return ge}),n.d(t,"injectGlobal",function(){return _e}),n.d(t,"ThemeProvider",function(){return ie}),n.d(t,"withTheme",function(){return ye}),n.d(t,"ServerStyleSheet",function(){return W}),n.d(t,"StyleSheetManager",function(){return H});var r=n(17),o=n.n(r),a=n(19),i=n.n(a),s=n(0),c=n.n(s),u=n(20),l=n.n(u),p=n(23),f=n.n(p);function d(e){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var h=/([A-Z])/g;var y=function(e){return e.replace(h,"-$1").toLowerCase()},m=/^ms-/;var b,v=function(e){return y(e).replace(m,"-ms-")},g=function e(t,n){return t.reduce(function(t,r){return void 0===r||null===r||!1===r||""===r?t:Array.isArray(r)?[].concat(t,e(r,n)):r.hasOwnProperty("styledComponentId")?[].concat(t,["."+r.styledComponentId]):"function"===typeof r?n?t.concat.apply(t,e([r(n)],n)):t.concat(r):t.concat(o()(r)?function e(t,n){var r=Object.keys(t).filter(function(e){var n=t[e];return void 0!==n&&null!==n&&!1!==n&&""!==n}).map(function(n){return o()(t[n])?e(t[n],n):v(n)+": "+t[n]+";"}).join(" ");return n?n+" {\n "+r+"\n}":r}(r):r.toString())},[])},_=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!0}),w=function(e,t,n){var r=e.join("").replace(/^\s*\/\/.*$/gm,"");return _(n||!t?"":t,t&&n?n+" "+t+" { "+r+" }":r)},k="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),x=k.length,O=function(e){var t="",n=void 0;for(n=e;n>x;n=Math.floor(n/x))t=k[n%x]+t;return k[n%x]+t},C=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return g(function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])}(e,n))},S=/^[^\S\n]*?\/\* sc-component-id:\s+(\S+)\s+\*\//gm,j=function(e){var t=""+(e||""),n=[];return t.replace(S,function(e,t,r){return n.push({componentId:t,matchIndex:r}),e}),n.map(function(e,r){var o=e.componentId,a=e.matchIndex,i=n[r+1];return{componentId:o,cssFromDOM:i?t.slice(a,i.matchIndex):t.slice(a)}})},T=function(){return n.nc},E=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},P=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+d(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},N=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},R=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==d(t)&&"function"!==typeof t?e:t},F=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";E(this,e),this.el=t,this.isLocal=n,this.ready=!1;var o=j(r);this.size=o.length,this.components=o.reduce(function(e,t){return e[t.componentId]=t,e},{})}return e.prototype.isFull=function(){return this.size>=40},e.prototype.addComponent=function(e){this.ready||this.replaceElement();var t={componentId:e,textNode:document.createTextNode("")};this.el.appendChild(t.textNode),this.size+=1,this.components[e]=t},e.prototype.inject=function(e,t,n){this.ready||this.replaceElement();var r=this.components[e];if(""===r.textNode.data&&r.textNode.appendData("\n/* sc-component-id: "+e+" */\n"),r.textNode.appendData(t),n){var o=this.el.getAttribute(M);this.el.setAttribute(M,o?o+" "+n:n)}var a=T();a&&this.el.setAttribute("nonce",a)},e.prototype.toHTML=function(){return this.el.outerHTML},e.prototype.toReactElement=function(){throw new Error("BrowserTag doesn't implement toReactElement!")},e.prototype.clone=function(){throw new Error("BrowserTag cannot be cloned!")},e.prototype.replaceElement=function(){var e=this;if(this.ready=!0,0!==this.size){var t=this.el.cloneNode();if(t.appendChild(document.createTextNode("\n")),Object.keys(this.components).forEach(function(n){var r=e.components[n];r.textNode=document.createTextNode(r.cssFromDOM),t.appendChild(r.textNode)}),!this.el.parentNode)throw new Error("Trying to replace an element that wasn't mounted!");this.el.parentNode.replaceChild(t,this.el),this.el=t}},e}(),D={create:function(){for(var e=[],t={},n=document.querySelectorAll("["+M+"]"),r=n.length,o=0;o<r;o+=1){var a=n[o];e.push(new F(a,"true"===a.getAttribute(L),a.innerHTML));var i=a.getAttribute(M);i&&i.trim().split(/\s+/).forEach(function(e){t[e]=!0})}return new $(function(e){var t=document.createElement("style");if(t.type="text/css",t.setAttribute(M,""),t.setAttribute(L,e?"true":"false"),!document.head)throw new Error("Missing document <head>");return document.head.appendChild(t),new F(t,e)},e,t)}},M="data-styled-components",L="data-styled-components-is-local",B="__styled-components-stylesheet__",z=null,q=[],$=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.hashes={},this.deferredInjections={},this.stylesCacheable="undefined"!==typeof document,this.tagConstructor=t,this.tags=n,this.names=r,this.constructComponentTagMap()}return e.prototype.constructComponentTagMap=function(){var e=this;this.componentTags={},this.tags.forEach(function(t){Object.keys(t.components).forEach(function(n){e.componentTags[n]=t})})},e.prototype.getName=function(e){return this.hashes[e.toString()]},e.prototype.alreadyInjected=function(e,t){return!!this.names[t]&&(this.hashes[e.toString()]=t,!0)},e.prototype.hasInjectedComponent=function(e){return!!this.componentTags[e]},e.prototype.deferredInject=function(e,t,n){this===z&&q.forEach(function(r){r.deferredInject(e,t,n)}),this.getOrCreateTag(e,t),this.deferredInjections[e]=n},e.prototype.inject=function(e,t,n,r,o){this===z&&q.forEach(function(r){r.inject(e,t,n)});var a=this.getOrCreateTag(e,t),i=this.deferredInjections[e];i&&(a.inject(e,i),delete this.deferredInjections[e]),a.inject(e,n,o),r&&o&&(this.hashes[r.toString()]=o)},e.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},e.prototype.toReactElements=function(){return this.tags.map(function(e,t){return e.toReactElement("sc-"+t)})},e.prototype.getOrCreateTag=function(e,t){var n=this.componentTags[e];if(n)return n;var r=this.tags[this.tags.length-1],o=!r||r.isFull()||r.isLocal!==t?this.createNewTag(t):r;return this.componentTags[e]=o,o.addComponent(e),o},e.prototype.createNewTag=function(e){var t=this.tagConstructor(e);return this.tags.push(t),t},e.reset=function(t){z=e.create(t)},e.create=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"===typeof document)?W:D).create()},e.clone=function(t){var n=new e(t.tagConstructor,t.tags.map(function(e){return e.clone()}),A({},t.names));return n.hashes=A({},t.hashes),n.deferredInjections=A({},t.deferredInjections),q.push(n),n},P(e,null,[{key:"instance",get:function(){return z||(z=e.create())}}]),e}(),H=function(e){function t(){return E(this,t),R(this,e.apply(this,arguments))}return I(t,e),t.prototype.getChildContext=function(){var e;return(e={})[B]=this.props.sheet,e},t.prototype.render=function(){return c.a.Children.only(this.props.children)},t}(s.Component);H.childContextTypes=((b={})[B]=l.a.oneOfType([l.a.instanceOf($),l.a.instanceOf(W)]).isRequired,b),H.propTypes={sheet:l.a.oneOfType([l.a.instanceOf($),l.a.instanceOf(W)]).isRequired};var U=function(){function e(t){E(this,e),this.isLocal=t,this.components={},this.size=0,this.names=[]}return e.prototype.isFull=function(){return!1},e.prototype.addComponent=function(e){this.components[e]={componentId:e,css:""},this.size+=1},e.prototype.concatenateCSS=function(){var e=this;return Object.keys(this.components).reduce(function(t,n){return t+e.components[n].css},"")},e.prototype.inject=function(e,t,n){var r=this.components[e];""===r.css&&(r.css="/* sc-component-id: "+e+" */\n"),r.css+=t.replace(/\n*$/,"\n"),n&&this.names.push(n)},e.prototype.toHTML=function(){var e=['type="text/css"',M+'="'+this.names.join(" ")+'"',L+'="'+(this.isLocal?"true":"false")+'"'],t=T();return t&&e.push('nonce="'+t+'"'),"<style "+e.join(" ")+">"+this.concatenateCSS()+"</style>"},e.prototype.toReactElement=function(e){var t,n=((t={})[M]=this.names.join(" "),t[L]=this.isLocal.toString(),t),r=T();return r&&(n.nonce=r),c.a.createElement("style",A({key:e,type:"text/css"},n,{dangerouslySetInnerHTML:{__html:this.concatenateCSS()}}))},e.prototype.clone=function(){var t=this,n=new e(this.isLocal);return n.names=[].concat(this.names),n.size=this.size,n.components=Object.keys(this.components).reduce(function(e,n){return e[n]=A({},t.components[n]),e},{}),n},e}(),W=function(){function e(){E(this,e),this.instance=$.clone($.instance)}return e.prototype.collectStyles=function(e){if(this.closed)throw new Error("Can't collect styles once you've called getStyleTags!");return c.a.createElement(H,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.closed||(q.splice(q.indexOf(this.instance),1),this.closed=!0),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.closed||(q.splice(q.indexOf(this.instance),1),this.closed=!0),this.instance.toReactElements()},e.create=function(){return new $(function(e){return new U(e)})},e}(),V=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|(?:attribute|glyph)Nam|playsInlin|(?:formE|e)ncTyp|(?:writing|input|edge)Mod|(?:xlinkTy|itemSco|keyTy|slo)p|(?:amplitu|mo)d|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ntrol|ord)s|o(?:lor(?:Interpolation)?|ntent)|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|o(?:ntextMenu|ls)|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|(?:rossOrigi|olSpa)n|apHeight|lip(?:Path)?|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|autoFocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|formActio|zoomAndPa|onFocusI|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:gradientT|patternT|t)ransform|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|a(?:utoCorrec|bou)|markerStar|onFocusOu|in(?:tercep|lis)|restar|forma|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|m(?:arkerMi|etho)|preloa|kin)d|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:allowFullScre|hidd)en|strokeDasharray|systemLanguage|(?:strokeLineca|itemPro|useMa|wra|loo)p|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|unicodeRange|(?:(?:allowReord|placehold|frameBord|paintOrd|post|ord)e|repeatDu|d(?:efe|u))r|mathematical|(?:vI|i)deographic|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|vAlphabetic|mediaGroup|spellCheck|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|(?:xmlnsXl|valueL)ink|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|(?:text|m(?:in|ax))Length|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|r(?:e(?:quired|sult|f))?|o(?:verflow|pen)|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|f(?:o(?:ntSize|rm)|il(?:ter|l))|autoPlay|unicode|p(?:attern|oints)|t(?:arget[XY]|o)|i(?:temRef|n2|s)|divisor|d(?:efault|ata|ir)?|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|(?:stri|la)ng|prefix|itemID|s(?:t(?:roke|art)|hape|cope|rc)|a(?:ccept|s)|t(?:arget|ype)|typeof|width|value|x(?:mlns)?|label|m(?:edia|a(?:sk|x)|in)|size|href|k(?:ey)?|end|low|x[12]|i[dn]|y[12]|g[12]|by|f[xy]|[yz])$/,Y=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"));function G(e){return"string"===typeof e}function X(e){return"function"===typeof e&&"string"===typeof e.styledComponentId}function J(e){return e.displayName||e.name||"Component"}var K=function(e,t,n){var r=n&&e.theme===n.theme;return e.theme&&!r?e.theme:t},Z=/[[\].#*$><+~=|^:(),"'`-]+/g,Q=/(^-|-$)/g;function ee(e){return e.replace(Z,"-").replace(Q,"")}var te,ne,re="__styled-components__",oe=re+"next__",ae=l.a.shape({getTheme:l.a.func,subscribe:l.a.func,unsubscribe:l.a.func});var ie=function(e){function t(){E(this,t);var n=R(this,e.call(this));return n.unsubscribeToOuterId=-1,n.getTheme=n.getTheme.bind(n),n}return I(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.context[oe];void 0!==t&&(this.unsubscribeToOuterId=t.subscribe(function(t){e.outerTheme=t})),this.broadcast=function(e){var t={},n=0,r=e;return{publish:function(e){for(var n in r=e,t){var o=t[n];void 0!==o&&o(r)}},subscribe:function(e){var o=n;return t[o]=e,n+=1,e(r),o},unsubscribe:function(e){t[e]=void 0}}}(this.getTheme())},t.prototype.getChildContext=function(){var e,t=this;return A({},this.context,((e={})[oe]={getTheme:this.getTheme,subscribe:this.broadcast.subscribe,unsubscribe:this.broadcast.unsubscribe},e[re]=function(e){var n=t.broadcast.subscribe(e);return function(){return t.broadcast.unsubscribe(n)}},e))},t.prototype.componentWillReceiveProps=function(e){this.props.theme!==e.theme&&this.broadcast.publish(this.getTheme(e.theme))},t.prototype.componentWillUnmount=function(){-1!==this.unsubscribeToOuterId&&this.context[oe].unsubscribe(this.unsubscribeToOuterId)},t.prototype.getTheme=function(e){var t=e||this.props.theme;if("function"===typeof t)return t(this.outerTheme);if(!o()(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return A({},this.outerTheme,t)},t.prototype.render=function(){return this.props.children?c.a.Children.only(this.props.children):null},t}(s.Component);ie.childContextTypes=((te={})[re]=l.a.func,te[oe]=ae,te),ie.contextTypes=((ne={})[oe]=ae,ne);var se={};function ce(e,t){for(var n=1540483477,r=t^e.length,o=e.length,a=0;o>=4;){var i=ue(e,a);i=pe(i,n),i=pe(i^=i>>>24,n),r=pe(r,n),r^=i,a+=4,o-=4}switch(o){case 3:r^=le(e,a),r=pe(r^=e.charCodeAt(a+2)<<16,n);break;case 2:r=pe(r^=le(e,a),n);break;case 1:r=pe(r^=e.charCodeAt(a),n)}return r=pe(r^=r>>>13,n),(r^=r>>>15)>>>0}function ue(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function le(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function pe(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}var fe=function e(t,n){for(var r=0;r<t.length;r+=1){var o=t[r];if(Array.isArray(o)&&!e(o))return!1;if("function"===typeof o&&!X(o))return!1}if(void 0!==n)for(var a in n){if("function"===typeof n[a])return!1}return!0},de="undefined"!==typeof e&&e.hot&&!1,he=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ye=function(e){var t,n=e.displayName||e.name||"Component",r=X(e)||"function"===typeof e&&!(e.prototype&&"isReactComponent"in e.prototype),o=function(t){function n(){var e,r;E(this,n);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return e=r=R(this,t.call.apply(t,[this].concat(a))),r.state={},r.unsubscribeId=-1,R(r,e)}return I(n,t),n.prototype.componentWillMount=function(){var e=this,t=this.constructor.defaultProps,n=this.context[oe],r=K(this.props,void 0,t);if(void 0===n&&void 0!==r)this.setState({theme:r});else{var o=n.subscribe;this.unsubscribeId=o(function(n){var r=K(e.props,n,t);e.setState({theme:r})})}},n.prototype.componentWillReceiveProps=function(e){var t=this.constructor.defaultProps;this.setState(function(n){return{theme:K(e,n.theme,t)}})},n.prototype.componentWillUnmount=function(){-1!==this.unsubscribeId&&this.context[oe].unsubscribe(this.unsubscribeId)},n.prototype.render=function(){var t=this.props.innerRef,n=this.state.theme;return c.a.createElement(e,A({theme:n},this.props,{innerRef:r?t:void 0,ref:r?void 0:t}))},n}(c.a.Component);return o.displayName="WithTheme("+n+")",o.styledComponentId="withTheme",o.contextTypes=((t={})[re]=l.a.func,t[oe]=ae,t),f()(o,e)},me=function(e,t,n){return function(){function r(e,t,n){E(this,r),this.rules=e,this.isStatic=!de&&fe(e,t),this.componentId=n,$.instance.hasInjectedComponent(this.componentId)||$.instance.deferredInject(n,!0,"")}return r.prototype.generateAndInjectStyles=function(r,o){var a=this.isStatic,i=this.lastClassName;if(a&&void 0!==i)return i;var s=t(this.rules,r),c=ce(this.componentId+s.join("")),u=o.getName(c);if(void 0!==u)return o.stylesCacheable&&(this.lastClassName=u),u;var l=e(c);if(o.stylesCacheable&&(this.lastClassName=u),o.alreadyInjected(c,l))return l;var p="\n"+n(s,"."+l);return o.inject(this.componentId,!0,p,c,l),l},r.generateName=function(t){return e(ce(t))},r}()}(O,g,w),be=function(e){return function t(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(t){for(var a=arguments.length,i=Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return n(r,o,e.apply(void 0,[t].concat(i)))};return a.withConfig=function(e){return t(n,r,A({},o,e))},a.attrs=function(e){return t(n,r,A({},o,{attrs:A({},o.attrs||{},e)}))},a}}(C),ve=function(e,t){var n={},r=function(e){function t(){var n,r;E(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=R(this,e.call.apply(e,[this].concat(a))),r.attrs={},r.state={theme:null,generatedClassName:""},r.unsubscribeId=-1,R(r,n)}return I(t,e),t.prototype.unsubscribeFromContext=function(){-1!==this.unsubscribeId&&this.context[oe].unsubscribe(this.unsubscribeId)},t.prototype.buildExecutionContext=function(e,t){var n=this.constructor.attrs,r=A({},t,{theme:e});return void 0===n?r:(this.attrs=Object.keys(n).reduce(function(e,t){var o=n[t];return e[t]="function"===typeof o?o(r):o,e},{}),A({},r,this.attrs))},t.prototype.generateAndInjectStyles=function(e,t){var n=this.constructor,r=n.attrs,o=n.componentStyle,a=(n.warnTooManyClasses,this.context[B]||$.instance);if(o.isStatic&&void 0===r)return o.generateAndInjectStyles(se,a);var i=this.buildExecutionContext(e,t),s=o.generateAndInjectStyles(i,a);return s},t.prototype.componentWillMount=function(){var e=this,t=this.constructor.componentStyle,n=this.context[oe];if(t.isStatic){var r=this.generateAndInjectStyles(se,this.props);this.setState({generatedClassName:r})}else if(void 0!==n){var o=n.subscribe;this.unsubscribeId=o(function(t){var n=K(e.props,t,e.constructor.defaultProps),r=e.generateAndInjectStyles(n,e.props);e.setState({theme:n,generatedClassName:r})})}else{var a=this.props.theme||{},i=this.generateAndInjectStyles(a,this.props);this.setState({theme:a,generatedClassName:i})}},t.prototype.componentWillReceiveProps=function(e){var t=this;this.constructor.componentStyle.isStatic||this.setState(function(n){var r=K(e,n.theme,t.constructor.defaultProps);return{theme:r,generatedClassName:t.generateAndInjectStyles(r,e)}})},t.prototype.componentWillUnmount=function(){this.unsubscribeFromContext()},t.prototype.render=function(){var e=this,t=this.props.innerRef,n=this.state.generatedClassName,r=this.constructor,o=r.styledComponentId,a=r.target,i=G(a),c=[this.props.className,o,this.attrs.className,n].filter(Boolean).join(" "),u=A({},this.attrs,{className:c});X(a)?u.innerRef=t:u.ref=t;var l=Object.keys(this.props).reduce(function(t,n){var r;return"innerRef"===n||"className"===n||i&&(r=n,!V.test(r)&&!Y(r.toLowerCase()))||(t[n]=e.props[n]),t},u);return Object(s.createElement)(a,l)},t}(s.Component);return function o(a,i,s){var c,u=i.displayName,p=void 0===u?G(a)?"styled."+a:"Styled("+J(a)+")":u,f=i.componentId,d=void 0===f?function(t,r){var o="string"!==typeof t?"sc":ee(t),a=void 0;if(t)a=o+"-"+e.generateName(o);else{var i=(n[o]||0)+1;n[o]=i,a=o+"-"+e.generateName(o+i)}return void 0!==r?r+"-"+a:a}(i.displayName,i.parentComponentId):f,h=i.ParentComponent,y=void 0===h?r:h,m=i.rules,b=i.attrs,v=i.displayName&&i.componentId?ee(i.displayName)+"-"+i.componentId:d,g=new e(void 0===m?s:m.concat(s),b,v),_=function(e){function n(){return E(this,n),R(this,e.apply(this,arguments))}return I(n,e),n.withComponent=function(e){var t=i.componentId,r=N(i,["componentId"]),a=t&&t+"-"+(G(e)?e:ee(J(e))),c=A({},r,{componentId:a,ParentComponent:n});return o(e,c,s)},P(n,null,[{key:"extend",get:function(){var e=i.rules,r=i.componentId,c=N(i,["rules","componentId"]),u=void 0===e?s:e.concat(s),l=A({},c,{rules:u,parentComponentId:r,ParentComponent:n});return t(o,a,l)}}]),n}(y);return _.contextTypes=((c={})[re]=l.a.func,c[oe]=ae,c[B]=l.a.oneOfType([l.a.instanceOf($),l.a.instanceOf(W)]),c),_.displayName=p,_.styledComponentId=v,_.attrs=b,_.componentStyle=g,_.target=a,_}}(me,be),ge=function(e,t,n){return function(r){for(var o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];var s=n.apply(void 0,[r].concat(a)),c=ce(JSON.stringify(s).replace(/\s|\\n/g,"")),u=$.instance.getName(c);if(u)return u;var l=e(c);if($.instance.alreadyInjected(c,l))return l;var p=t(s,l,"@keyframes");return $.instance.inject("sc-keyframes-"+l,!0,p,c,l),l}}(O,w,C),_e=function(e,t){return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var i=t.apply(void 0,[n].concat(o)),s="sc-global-"+ce(JSON.stringify(i));$.instance.hasInjectedComponent(s)||$.instance.inject(s,!1,e(i))}}(w,C),we=function(e,t){var n=function(n){return t(e,n)};return he.forEach(function(e){n[e]=n(e)}),n}(ve,be);t.default=we}.call(t,n(16)(e))},function(e,t,n){n(8),e.exports=n(9)},function(e,t,n){"use strict"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=n.n(r),a=n(10);o()(window).on("et_builder_api_ready",function(e,t){t.registerModules(a.a)})},function(e,t,n){"use strict";var r=n(11),o=n(12),a=n(13),i=n(24),s=n(26),c=n(27);t.a=[r.a,o.a,a.a,i.a,s.a,c.a]},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(1);n.n(a);function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,a,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),n=t,i=[{key:"css",value:function(e){var t=[];return"0.6s"!==e.flipbox_speed&&t.push([{selector:"%%order_class%% .dsm_flipbox_child",declaration:"transition: transform ".concat(e.flipbox_speed," ease-in-out;")}]),e.flipbox_height&&t.push([{selector:"%%order_class%% .dsm-flipbox",declaration:"height: ".concat(e.flipbox_height,";")}]),e.flipbox_height_tablet&&t.push([{selector:".et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--tablet_preview %%order_class%% .dsm-flipbox",declaration:"height: ".concat(e.flipbox_height_tablet)}]),e.flipbox_height_phone&&t.push([{selector:".et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview %%order_class%% .dsm-flipbox",declaration:"height: ".concat(e.flipbox_height_phone)}]),t}}],(a=[{key:"render",value:function(){var e=this.props;return o.a.createElement(r.Fragment,null,o.a.createElement("div",{className:"dsm-flipbox et_pb_bg_layout_".concat(e.background_layout," dsm-flipbox-effect-").concat(e.flipbox_effect)},this.props.content))}}])&&s(n.prototype,a),i&&s(n,i),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"dsm_flipbox"}),t.a=u},function(e,t,n){"use strict";var r=n(0),o=n.n(r);function a(e){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,a,c;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),n=t,c=[{key:"css",value:function(e){var t=[];return"on"===e.use_icon&&t.push([{selector:"%%order_class%% .dsm_flipbox_child_image .et-pb-icon",declaration:"color: #7EBEC5"}]),"#7EBEC5"!==e.icon_color&&t.push([{selector:"%%order_class%% .dsm_flipbox_child_image .et-pb-icon",declaration:"color: ".concat(e.icon_color)}]),"on"===e.use_circle&&e.circle_color&&t.push([{selector:"%%order_class%% .dsm_flipbox_child_image .et-pb-icon",declaration:"background-color: ".concat(e.circle_color)}]),"on"===e.use_circle_border&&e.circle_border_color&&t.push([{selector:"%%order_class%% .dsm_flipbox_child_image .et-pb-icon",declaration:"border-color: ".concat(e.circle_border_color)}]),"on"===e.use_icon_font_size&&t.push([{selector:"%%order_class%% .dsm_flipbox_child_image .et-pb-icon",declaration:"font-size: ".concat(e.icon_font_size)}]),"on"===e.use_icon_font_size&&e.icon_font_size_tablet&&t.push([{selector:".et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--tablet_preview %%order_class%% .dsm_flipbox_child_image .et-pb-icon",declaration:"font-size: ".concat(e.icon_font_size_tablet)}]),"on"===e.use_icon_font_size&&e.icon_font_size_phone&&t.push([{selector:".et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview %%order_class%% .dsm_flipbox_child_image .et-pb-icon",declaration:"font-size: ".concat(e.icon_font_size_phone)}]),e.image_max_width&&t.push([{selector:"%%order_class%% .dsm_flipbox_child_image .dsm_flipbox_child_image_wrap img",declaration:"max-width: ".concat(e.image_max_width)}]),e.image_max_width_tablet&&t.push([{selector:".et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--tablet_preview %%order_class%% .dsm_flipbox_child_image .dsm_flipbox_child_image_wrap img",declaration:"max-width: ".concat(e.image_max_width_tablet)}]),e.image_max_width_phone&&t.push([{selector:".et_fb_preview_active.et_fb_preview_active--responsive_preview.et_fb_preview_active--responsive_preview--phone_preview %%order_class%% .dsm_flipbox_child_image .dsm_flipbox_child_image_wrap img",declaration:"max-width: ".concat(e.image_max_width_phone)}]),"center"!==e.content_orientation&&t.push([{selector:"%%order_class%%",declaration:"align-items: ".concat(e.content_orientation,";")}]),t}}],(a=[{key:"_renderTitle",value:function(){var e=this.props,t=""===e.header_level?"h2":"".concat(e.header_level);return e.title?void 0===e.header_level?o.a.createElement(r.Fragment,null,o.a.createElement("h2",{className:"dsm-title et_pb_module_header"},e.title)):o.a.createElement(r.Fragment,null,o.a.createElement(t,{className:"dsm-title et_pb_module_header"},e.title)):""}},{key:"_renderIcon",value:function(){var e=this.props,t=window.ET_Builder.API.Utils;return"off"===e.use_icon?"":o.a.createElement("div",{className:"dsm_flipbox_child_image"},o.a.createElement("span",{className:"dsm_flipbox_child_image_wrap"},o.a.createElement("span",{className:"et-pb-icon".concat("on"===this.props.use_circle?" et-pb-icon-circle":"").concat("on"===this.props.use_circle_border?" et-pb-icon-circle-border":"")},t.processFontIcon(e.font_icon))))}},{key:"_renderImage",value:function(){var e=this.props;return e.image?o.a.createElement("div",{className:"dsm_flipbox_child_image"},o.a.createElement("span",{className:"dsm_flipbox_child_image_wrap"},o.a.createElement("img",{src:"".concat(e.image),alt:"".concat(e.alt)}))):""}},{key:"_renderButton",value:function(){var e=this.props,t=window.ET_Builder.API.Utils,n="on"===e.url_new_window?"_blank":"",r=!!e.button_icon&&t.processFontIcon(e.button_icon),a={et_pb_button:!0,et_pb_more_button:!0,et_pb_custom_button_icon:e.button_icon};return e.button_text&&e.button_url?o.a.createElement("div",{className:"et_pb_button_wrapper"},o.a.createElement("a",{className:t.classnames(a),href:e.button_url,target:n,rel:t.linkRel(e.button_rel),"data-icon":r},e.button_text)):""}},{key:"render",value:function(){var e=this.props;return o.a.createElement(r.Fragment,null,o.a.createElement("div",{className:"dsm_flipbox_icon_position_".concat(e.icon_placement," et_pb_bg_layout_").concat(e.background_layout)},this._renderIcon(),this._renderImage(),o.a.createElement("div",{className:"dsm_flipbox_wrapper et_pb_text_align_".concat(e.text_orientation)},this._renderTitle(),o.a.createElement("span",{className:"dsm-subtitle"},this.props.subtitle),o.a.createElement("div",{className:"dsm-content"},this.props.content()),this._renderButton())))}}])&&i(n.prototype,a),c&&i(n,c),t}();Object.defineProperty(c,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"dsm_flipbox_child"}),t.a=c},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(14),i=n.n(a);function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,a,s;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),n=t,s=[{key:"css",value:function(e){var t=[];return e.typing_cursor_color&&t.push([{selector:"%%order_class%% .typed-cursor",declaration:"color: ".concat(e.typing_cursor_color,";")}]),t}}],(a=[{key:"_renderTitle",value:function(){var e=this.props,t=""===e.header_level?"h1":"".concat(e.header_level),n=e.typing_effect.split("|"),a=parseFloat(e.typing_speed),s=parseFloat(e.typing_backspeed),c=parseFloat(e.typing_backdelay);return e.typing_effect?"on"===e.typing_loop?o.a.createElement(r.Fragment,null,o.a.createElement(t,{className:"dsm-typing-effect et_pb_module_header"},o.a.createElement(i.a,{strings:n,typeSpeed:a,backSpeed:s,backDelay:c,contentType:"html",className:"dsm-typing",loop:!0}))):o.a.createElement(r.Fragment,null,o.a.createElement(t,{className:"dsm-typing-effect et_pb_module_header"},o.a.createElement(i.a,{strings:n,typeSpeed:a,backSpeed:s,backDelay:c,contentType:"html",className:"dsm-typing dsm-typing-no-loop"}))):""}},{key:"render",value:function(){var e=this.props;return o.a.createElement(r.Fragment,null,o.a.createElement("div",{className:"et_pb_bg_layout_".concat(e.background_layout)},this._renderTitle()))}}])&&c(n.prototype,a),s&&c(n,s),t}();Object.defineProperty(l,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"dsm_typing_effect"}),t.a=l},function(e,t,n){(function(e){var r,o,a,i;function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=4)}([function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r=function(e){};r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")},e.exports=function(e,t,n,o,a,i,s,c){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,a,i,s,c],p=0;(u=new Error(t.replace(/%s/g,function(){return l[p++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(0);r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!==typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}).apply(void 0,[t].concat(r))}},e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(r=["\n .typed-cursor{\n opacity: 1;\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0;}\n 100% { opacity: 1; }\n }\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n -webkit-animation: 0;\n animation: 0;\n }\n"],o=["\n .typed-cursor{\n opacity: 1;\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0;}\n 100% { opacity: 1; }\n }\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n -webkit-animation: 0;\n animation: 0;\n }\n"],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}}))),c=n(5),u=f(c),l=f(n(6)),p=f(n(11));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==s(t)&&"function"!==typeof t?e:t}var y=f(n(12)).default.span(i),m=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.setRef=function(e){r.rootElement=e},h(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+s(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.Component),a(t,[{key:"componentDidMount",value:function(){var e=this.props,t=(e.style,e.typedRef,e.stopped),n=(e.className,d(e,["style","typedRef","stopped","className"]));this.constructTyped(n),t&&this.typed.stop()}},{key:"constructTyped",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props,r=(n.style,n.typedRef,n.stopped,n.className,d(n,["style","typedRef","stopped","className"]));this.typed&&this.typed.destroy(),this.typed=new p.default(this.rootElement,Object.assign(r,t)),this.props.typedRef&&this.props.typedRef(this.typed),this.typed.reConstruct=function(t){e.constructTyped(t)}}},{key:"shouldComponentUpdate",value:function(e){var t=this;if(this.props!==e){e.style,e.typedRef,e.stopped,e.className;var n=d(e,["style","typedRef","stopped","className"]);return this.typed.options=Object.assign(this.typed.options,n),!Object.keys(e).every(function(n){return!t.props[n]&&e[n]?(t.constructTyped(e),!1):(t.typed[n]&&(t.typed[n]=e[n]),!0)})||this.props.strings.length===e.strings.length||this.constructTyped(e),!0}return!1}},{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,r=e.children,o=u.default.createElement("span",{ref:this.setRef});return r&&(o=u.default.cloneElement(r,{ref:this.setRef})),u.default.createElement(y,{style:t,className:n},o)}}]),t}();m.propTypes={style:l.default.object,className:l.default.string,children:l.default.object,typedRef:l.default.func,stopped:l.default.bool,strings:l.default.arrayOf(l.default.string),typeSpeed:l.default.number,startDelay:l.default.number,backSpeed:l.default.number,smartBackspace:l.default.bool,shuffle:l.default.bool,backDelay:l.default.number,fadeOut:l.default.bool,fadeOutClass:l.default.string,fadeOutDelay:l.default.number,loop:l.default.bool,loopCount:l.default.number,showCursor:l.default.bool,cursorChar:l.default.string,autoInsertCss:l.default.bool,attr:l.default.string,bindInputFocusEvents:l.default.bool,contentType:l.default.oneOf(["html",""]),onComplete:l.default.func,preStringTyped:l.default.func,onStringTyped:l.default.func,onLastStringBackspaced:l.default.func,onTypingPaused:l.default.func,onTypingResumed:l.default.func,onReset:l.default.func,onStop:l.default.func,onStart:l.default.func,onDestroy:l.default.func},t.default=m},function(t,n){t.exports=e},function(e,t,n){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(7)(function(e){return"object"===s(e)&&null!==e&&e.$$typeof===r},!0)},function(e,t,n){"use strict";var r=n(0),o=n(1),a=n(3),i=n(8),c=n(2),u=n(9);e.exports=function(e,t){var n="function"===typeof Symbol&&Symbol.iterator,l="@@iterator";var p="<<anonymous>>",f={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:y(r.thatReturnsNull),arrayOf:function(e){return y(function(t,n,r,o,a){if("function"!==typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var i=t[n];if(!Array.isArray(i)){var s=v(i);return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected an array.")}for(var u=0;u<i.length;u++){var l=e(i,u,r,o,a+"["+u+"]",c);if(l instanceof Error)return l}return null})},element:function(){return y(function(t,n,r,o,a){var i=t[n];if(!e(i)){var s=v(i);return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected a single ReactElement.")}return null})}(),instanceOf:function(e){return y(function(t,n,r,o,a){if(!(t[n]instanceof e)){var i=e.name||p,s=function(e){if(!e.constructor||!e.constructor.name)return p;return e.constructor.name}(t[n]);return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected instance of `"+i+"`.")}return null})},node:function(){return y(function(e,t,n,r,o){if(!b(e[t]))return new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.");return null})}(),objectOf:function(e){return y(function(t,n,r,o,a){if("function"!==typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var i=t[n],s=v(i);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var u in i)if(i.hasOwnProperty(u)){var l=e(i,u,r,o,a+"."+u,c);if(l instanceof Error)return l}return null})},oneOf:function(e){if(!Array.isArray(e))return a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull;return y(function(t,n,r,o,a){for(var i=t[n],s=0;s<e.length;s++)if(d(i,e[s]))return null;var c=JSON.stringify(e);return new h("Invalid "+o+" `"+a+"` of value `"+i+"` supplied to `"+r+"`, expected one of "+c+".")})},oneOfType:function(e){if(!Array.isArray(e))return a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var t=0;t<e.length;t++){var n=e[t];if("function"!==typeof n)return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",_(n),t),r.thatReturnsNull}return y(function(t,n,r,o,a){for(var i=0;i<e.length;i++){var s=e[i];if(null==s(t,n,r,o,a,c))return null}return new h("Invalid "+o+" `"+a+"` supplied to `"+r+"`.")})},shape:function(e){return y(function(t,n,r,o,a){var i=t[n],s=v(i);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var l=e[u];if(l){var p=l(i,u,r,o,a+"."+u,c);if(p)return p}}return null})},exact:function(e){return y(function(t,n,r,o,a){var s=t[n],u=v(s);if("object"!==u)return new h("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var l=i({},t[n],e);for(var p in l){var f=e[p];if(!f)return new h("Invalid "+o+" `"+a+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=f(s,p,r,o,a+"."+p,c);if(d)return d}return null})}};function d(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function h(e){this.message=e,this.stack=""}function y(e){var n={},r=0;function i(i,s,u,l,f,d,y){if(l=l||p,d=d||u,y!==c)if(t)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("undefined"!==typeof console){var m=l+":"+u;!n[m]&&r<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",d,l),n[m]=!0,r++)}return null==s[u]?i?null===s[u]?new h("The "+f+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+f+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(s,u,l,f,d)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function m(e){return y(function(t,n,r,o,a,i){var s=t[n];return v(s)!==e?new h("Invalid "+o+" `"+a+"` of type `"+g(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null})}function b(t){switch(s(t)){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(b);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e[l]);if("function"===typeof t)return t}(t);if(!r)return!1;var o,a=r.call(t);if(r!==t.entries){for(;!(o=a.next()).done;)if(!b(o.value))return!1}else for(;!(o=a.next()).done;){var i=o.value;if(i&&!b(i[1]))return!1}return!0;default:return!1}}function v(e){var t=s(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function g(e){if("undefined"===typeof e||null===e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=g(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=u,f.PropTypes=f,f}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){i=r(n);for(var l=0;l<i.length;l++)a.call(n,i[l])&&(s[i[l]]=n[i[l]])}}return s}},function(e,t,n){"use strict";var r=n(1),o=n(3),a=n(2),i={};e.exports=function(e,t,n,c,u){for(var l in e)if(e.hasOwnProperty(l)){var p;try{r("function"===typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",n,l,s(e[l])),p=e[l](t,l,c,n,null,a)}catch(e){p=e}if(o(!p||p instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",n,l,s(p)),p instanceof Error&&!(p.message in i)){i[p.message]=!0;var f=u?u():"";o(!1,"Failed %s type: %s%s",n,p.message,null!=f?f:"")}}}},function(e,t,n){"use strict";var r=n(0),o=n(1),a=n(2);e.exports=function(){function e(e,t,n,r,i,s){s!==a&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=n(1),a=n(3),i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o.initializer.load(this,n,t),this.begin()}return r(e,[{key:"toggle",value:function(){this.pause.status?this.start():this.stop()}},{key:"stop",value:function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))}},{key:"start",value:function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))}},{key:"destroy",value:function(){this.reset(!1),this.options.onDestroy(this)}},{key:"reset",value:function(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0];clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,e&&(this.insertCursor(),this.options.onReset(this),this.begin())}},{key:"begin",value:function(){var e=this;this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout(function(){e.currentElContent&&0!==e.currentElContent.length?e.backspace(e.currentElContent,e.currentElContent.length):e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos)},this.startDelay)}},{key:"typewrite",value:function(e,t){var n=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var r=this.humanizer(this.typeSpeed),o=1;!0!==this.pause.status?this.timeout=setTimeout(function(){t=a.htmlParser.typeHtmlChars(e,t,n);var r=0,i=e.substr(t);if("^"===i.charAt(0)&&/^\^\d+/.test(i)){var s=1;s+=(i=/\d+/.exec(i)[0]).length,r=parseInt(i),n.temporaryPause=!0,n.options.onTypingPaused(n.arrayPos,n),e=e.substring(0,t)+e.substring(t+s),n.toggleBlinking(!0)}if("`"===i.charAt(0)){for(;"`"!==e.substr(t+o).charAt(0)&&!(t+ ++o>e.length););var c=e.substring(0,t),u=e.substring(c.length+1,t+o),l=e.substring(t+o+1);e=c+u+l,o--}n.timeout=setTimeout(function(){n.toggleBlinking(!1),t===e.length?n.doneTyping(e,t):n.keepTyping(e,t,o),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))},r)},r):this.setPauseStatus(e,t,!0)}},{key:"keepTyping",value:function(e,t,n){0===t&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),t+=n;var r=e.substr(0,t);this.replaceText(r),this.typewrite(e,t)}},{key:"doneTyping",value:function(e,t){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout(function(){n.backspace(e,t)},this.backDelay))}},{key:"backspace",value:function(e,t){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){t=a.htmlParser.backSpaceHtmlChars(e,t,n);var r=e.substr(0,t);if(n.replaceText(r),n.smartBackspace){var o=n.strings[n.arrayPos+1];o&&r===o.substr(0,t)?n.stopNum=t:n.stopNum=0}t>n.stopNum?(t--,n.backspace(e,t)):t<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],t))},r)}else this.setPauseStatus(e,t,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(e,t,n){this.pause.typewrite=n,this.pause.curString=e,this.pause.curStrPos=t}},{key:"toggleBlinking",value:function(e){if(this.cursor&&!this.pause.status&&this.cursorBlinking!==e){this.cursorBlinking=e;var t=e?"infinite":0;this.cursor.style.animationIterationCount=t}}},{key:"humanizer",value:function(e){return Math.round(Math.random()*e/2)+e}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort(function(){return Math.random()-.5}))}},{key:"initFadeOut",value:function(){var e=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout(function(){e.arrayPos++,e.replaceText(""),e.strings.length>e.arrayPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],0):(e.typewrite(e.strings[0],0),e.arrayPos=0)},this.fadeOutDelay)}},{key:"replaceText",value:function(e){this.attr?this.el.setAttribute(this.attr,e):this.isInput?this.el.value=e:"html"===this.contentType?this.el.innerHTML=e:this.el.textContent=e}},{key:"bindFocusEvents",value:function(){var e=this;this.isInput&&(this.el.addEventListener("focus",function(t){e.stop()}),this.el.addEventListener("blur",function(t){e.el.value&&0!==e.el.value.length||e.start()}))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var a,i=n(2),s=(a=i)&&a.__esModule?a:{default:a},c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return o(e,[{key:"load",value:function(e,t,n){if(e.el="string"===typeof n?document.querySelector(n):n,e.options=r({},s.default,t),e.isInput="input"===e.el.tagName.toLowerCase(),e.attr=e.options.attr,e.bindInputFocusEvents=e.options.bindInputFocusEvents,e.showCursor=!e.isInput&&e.options.showCursor,e.cursorChar=e.options.cursorChar,e.cursorBlinking=!0,e.elContent=e.attr?e.el.getAttribute(e.attr):e.el.textContent,e.contentType=e.options.contentType,e.typeSpeed=e.options.typeSpeed,e.startDelay=e.options.startDelay,e.backSpeed=e.options.backSpeed,e.smartBackspace=e.options.smartBackspace,e.backDelay=e.options.backDelay,e.fadeOut=e.options.fadeOut,e.fadeOutClass=e.options.fadeOutClass,e.fadeOutDelay=e.options.fadeOutDelay,e.isPaused=!1,e.strings=e.options.strings.map(function(e){return e.trim()}),"string"===typeof e.options.stringsElement?e.stringsElement=document.querySelector(e.options.stringsElement):e.stringsElement=e.options.stringsElement,e.stringsElement){e.strings=[],e.stringsElement.style.display="none";var o=Array.prototype.slice.apply(e.stringsElement.children),a=o.length;if(a)for(var i=0;i<a;i+=1){var c=o[i];e.strings.push(c.innerHTML.trim())}}for(var i in e.strPos=0,e.arrayPos=0,e.stopNum=0,e.loop=e.options.loop,e.loopCount=e.options.loopCount,e.curLoop=0,e.shuffle=e.options.shuffle,e.sequence=[],e.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},e.typingComplete=!1,e.strings)e.sequence[i]=i;e.currentElContent=this.getCurrentElContent(e),e.autoInsertCss=e.options.autoInsertCss,this.appendAnimationCss(e)}},{key:"getCurrentElContent",value:function(e){return e.attr?e.el.getAttribute(e.attr):e.isInput?e.el.value:"html"===e.contentType?e.el.innerHTML:e.el.textContent}},{key:"appendAnimationCss",value:function(e){if(e.autoInsertCss&&e.showCursor&&e.fadeOut){var t=document.createElement("style");t.type="text/css";var n="";e.showCursor&&(n+="\n .typed-cursor{\n opacity: 1;\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n "),e.fadeOut&&(n+="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n -webkit-animation: 0;\n animation: 0;\n }\n "),0!==t.length&&(t.innerHTML=n,document.head.appendChild(t))}}}]),e}();t.default=c;var u=new c;t.initializer=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onComplete:function(e){},preStringTyped:function(e,t){},onStringTyped:function(e,t){},onLastStringBackspaced:function(e){},onTypingPaused:function(e,t){},onTypingResumed:function(e,t){},onReset:function(e){},onStop:function(e,t){},onStart:function(e,t){},onDestroy:function(e){}};t.default=n,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,[{key:"typeHtmlChars",value:function(e,t,n){if("html"!==n.contentType)return t;var r=e.substr(t).charAt(0);if("<"===r||"&"===r){var o="";for(o="<"===r?">":";";e.substr(t+1).charAt(0)!==o&&!(++t+1>e.length););t++}return t}},{key:"backSpaceHtmlChars",value:function(e,t,n){if("html"!==n.contentType)return t;var r=e.substr(t).charAt(0);if(">"===r||";"===r){var o="";for(o=">"===r?"<":"&";e.substr(t-1).charAt(0)!==o&&!(--t<0););t--}return t}}]),e}();t.default=r;var o=new r;t.htmlParser=o}])},e.exports=r()},function(e,n){e.exports=t}])},"object"===s(t)&&"object"===s(e)?e.exports=i(n(0),n(6)):(o=[n(0),n(6)],void 0===(a="function"===typeof(r=i)?r.apply(t,o):r)||(e.exports=a))}).call(t,n(15)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(18);function o(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==o(e)&&("function"===typeof(t=e.constructor)&&(!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!=e&&"object"===r(e)&&!1===Array.isArray(e)}},function(e,t,n){var r,o,a;function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,o=/: */g,a=/zoo|gra/,i=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,c=/ +\s*(?![^(]*[)])/g,u=/ *[\0] */g,l=/,\r+?/g,p=/([\t\r\n ])*\f?&/g,f=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,m=/:(read-only)/g,b=/\s+(?=[{\];=:>])/g,v=/([[}=:>])\s+/g,g=/(\{[^{]+?);(?=\})/g,_=/\s{2,}/g,w=/([^\(])(:+) */g,k=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,C=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,E="-webkit-",P="-moz-",A="-ms-",I=59,N=125,R=123,F=40,D=41,M=91,L=93,B=10,z=13,q=9,$=64,H=32,U=38,W=45,V=95,Y=42,G=44,X=58,J=39,K=34,Z=47,Q=62,ee=43,te=126,ne=0,re=12,oe=11,ae=107,ie=109,se=115,ce=112,ue=111,le=105,pe=99,fe=100,de=112,he=1,ye=1,me=0,be=1,ve=1,ge=1,_e=0,we=0,ke=0,xe=[],Oe=[],Ce=0,Se=null,je=-2,Te=-1,Ee=0,Pe=1,Ae=2,Ie=3,Ne=0,Re=1,Fe="",De="",Me="";function Le(e,t,o,a,i){for(var s,c,l=0,p=0,f=0,d=0,b=0,v=0,g=0,_=0,k=0,O=0,C=0,S=0,j=0,T=0,V=0,_e=0,Oe=0,Se=0,je=0,Te=o.length,ze=Te-1,Ve="",Ye="",Ge="",Xe="",Je="",Ke="";V<Te;){if(g=o.charCodeAt(V),V===ze&&p+d+f+l!==0&&(0!==p&&(g=p===Z?B:Z),d=f=l=0,Te++,ze++),p+d+f+l===0){if(V===ze&&(_e>0&&(Ye=Ye.replace(r,"")),Ye.trim().length>0)){switch(g){case H:case q:case I:case z:case B:break;default:Ye+=o.charAt(V)}g=I}if(1===Oe)switch(g){case R:case N:case I:case K:case J:case F:case D:case G:Oe=0;case q:case z:case B:case H:break;default:for(Oe=0,je=V,b=g,V--,g=I;je<Te;)switch(o.charCodeAt(je++)){case B:case z:case I:++V,g=b,je=Te;break;case X:_e>0&&(++V,g=b);case R:je=Te}}switch(g){case R:for(b=(Ye=Ye.trim()).charCodeAt(0),C=1,je=++V;V<Te;){switch(g=o.charCodeAt(V)){case R:C++;break;case N:C--;break;case Z:switch(v=o.charCodeAt(V+1)){case Y:case Z:V=We(v,V,ze,o)}break;case M:g++;case F:g++;case K:case J:for(;V++<ze&&o.charCodeAt(V)!==g;);}if(0===C)break;V++}switch(Ge=o.substring(je,V),b===ne&&(b=(Ye=Ye.replace(n,"").trim()).charCodeAt(0)),b){case $:switch(_e>0&&(Ye=Ye.replace(r,"")),v=Ye.charCodeAt(1)){case fe:case ie:case se:case W:s=t;break;default:s=xe}if(je=(Ge=Le(t,s,Ge,v,i+1)).length,ke>0&&0===je&&(je=Ye.length),Ce>0&&(s=Be(xe,Ye,Se),c=Ue(Ie,Ge,s,t,ye,he,je,v,i,a),Ye=s.join(""),void 0!==c&&0===(je=(Ge=c.trim()).length)&&(v=0,Ge="")),je>0)switch(v){case se:Ye=Ye.replace(x,He);case fe:case ie:case W:Ge=Ye+"{"+Ge+"}";break;case ae:Ge=(Ye=Ye.replace(h,"$1 $2"+(Re>0?Fe:"")))+"{"+Ge+"}",Ge=1===ve||2===ve&&$e("@"+Ge,3)?"@"+E+Ge+"@"+Ge:"@"+Ge;break;default:Ge=Ye+Ge,a===de&&(Xe+=Ge,Ge="")}else Ge="";break;default:Ge=Le(t,Be(t,Ye,Se),Ge,a,i+1)}Je+=Ge,S=0,Oe=0,T=0,_e=0,Se=0,j=0,Ye="",Ge="",g=o.charCodeAt(++V);break;case N:case I:if((je=(Ye=(_e>0?Ye.replace(r,""):Ye).trim()).length)>1)switch(0===T&&((b=Ye.charCodeAt(0))===W||b>96&&b<123)&&(je=(Ye=Ye.replace(" ",":")).length),Ce>0&&void 0!==(c=Ue(Pe,Ye,t,e,ye,he,Xe.length,a,i,a))&&0===(je=(Ye=c.trim()).length)&&(Ye="\0\0"),b=Ye.charCodeAt(0),v=Ye.charCodeAt(1),b){case ne:break;case $:if(v===le||v===pe){Ke+=Ye+o.charAt(V);break}default:if(Ye.charCodeAt(je-1)===X)break;Xe+=qe(Ye,b,v,Ye.charCodeAt(2))}S=0,Oe=0,T=0,_e=0,Se=0,Ye="",g=o.charCodeAt(++V)}}switch(g){case z:case B:if(p+d+f+l+we===0)switch(O){case D:case J:case K:case $:case te:case Q:case Y:case ee:case Z:case W:case X:case G:case I:case R:case N:break;default:T>0&&(Oe=1)}p===Z?p=0:be+S===0&&a!==ae&&Ye.length>0&&(_e=1,Ye+="\0"),Ce*Ne>0&&Ue(Ee,Ye,t,e,ye,he,Xe.length,a,i,a),he=1,ye++;break;case I:case N:if(p+d+f+l===0){he++;break}default:switch(he++,Ve=o.charAt(V),g){case q:case H:if(d+l+p===0)switch(_){case G:case X:case q:case H:Ve="";break;default:g!==H&&(Ve=" ")}break;case ne:Ve="\\0";break;case re:Ve="\\f";break;case oe:Ve="\\v";break;case U:d+p+l===0&&be>0&&(Se=1,_e=1,Ve="\f"+Ve);break;case 108:if(d+p+l+me===0&&T>0)switch(V-T){case 2:_===ce&&o.charCodeAt(V-3)===X&&(me=_);case 8:k===ue&&(me=k)}break;case X:d+p+l===0&&(T=V);break;case G:p+f+d+l===0&&(_e=1,Ve+="\r");break;case K:case J:0===p&&(d=d===g?0:0===d?g:d);break;case M:d+p+f===0&&l++;break;case L:d+p+f===0&&l--;break;case D:d+p+l===0&&f--;break;case F:if(d+p+l===0){if(0===S)switch(2*_+3*k){case 533:break;default:C=0,S=1}f++}break;case $:p+f+d+l+T+j===0&&(j=1);break;case Y:case Z:if(d+l+f>0)break;switch(p){case 0:switch(2*g+3*o.charCodeAt(V+1)){case 235:p=Z;break;case 220:je=V,p=Y}break;case Y:g===Z&&_===Y&&je+2!==V&&(33===o.charCodeAt(je+2)&&(Xe+=o.substring(je,V+1)),Ve="",p=0)}}if(0===p){if(be+d+l+j===0&&a!==ae&&g!==I)switch(g){case G:case te:case Q:case ee:case D:case F:if(0===S){switch(_){case q:case H:case B:case z:Ve+="\0";break;default:Ve="\0"+Ve+(g===G?"":"\0")}_e=1}else switch(g){case F:T+7===V&&108===_&&(T=0),S=++C;break;case D:0===(S=--C)&&(_e=1,Ve+="\0")}break;case q:case H:switch(_){case ne:case R:case N:case I:case G:case re:case q:case H:case B:case z:break;default:0===S&&(_e=1,Ve+="\0")}}Ye+=Ve,g!==H&&g!==q&&(O=g)}}k=_,_=g,V++}if(je=Xe.length,ke>0&&0===je&&0===Je.length&&0===t[0].length===!1&&(a!==ie||1===t.length&&(be>0?De:Me)===t[0])&&(je=t.join(",").length+2),je>0){if(s=0===be&&a!==ae?function(e){for(var t,n,o=0,a=e.length,i=Array(a);o<a;++o){for(var s=e[o].split(u),c="",l=0,p=0,f=0,d=0,h=s.length;l<h;++l)if(!(0===(p=(n=s[l]).length)&&h>1)){if(f=c.charCodeAt(c.length-1),d=n.charCodeAt(0),t="",0!==l)switch(f){case Y:case te:case Q:case ee:case H:case F:break;default:t=" "}switch(d){case U:n=t+De;case te:case Q:case ee:case H:case D:case F:break;case M:n=t+n+De;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ge>0){n=t+n.substring(8,p-1);break}default:(l<1||s[l-1].length<1)&&(n=t+De+n)}break;case G:t="";default:n=p>1&&n.indexOf(":")>0?t+n.replace(w,"$1"+De+"$2"):t+n+De}c+=n}i[o]=c.replace(r,"").trim()}return i}(t):t,Ce>0&&void 0!==(c=Ue(Ae,Xe,s,e,ye,he,je,a,i,a))&&0===(Xe=c).length)return Ke+Xe+Je;if(Xe=s.join(",")+"{"+Xe+"}",ve*me!==0){switch(2!==ve||$e(Xe,2)||(me=0),me){case ue:Xe=Xe.replace(m,":"+P+"$1")+Xe;break;case ce:Xe=Xe.replace(y,"::"+E+"input-$1")+Xe.replace(y,"::"+P+"$1")+Xe.replace(y,":"+A+"input-$1")+Xe}me=0}}return Ke+Xe+Je}function Be(e,t,n){var r=t.trim().split(l),o=r,a=r.length,i=e.length;switch(i){case 0:case 1:for(var s=0,c=0===i?"":e[0]+" ";s<a;++s)o[s]=ze(c,o[s],n,i).trim();break;default:s=0;var u=0;for(o=[];s<a;++s)for(var p=0;p<i;++p)o[u++]=ze(e[p]+" ",r[s],n,i).trim()}return o}function ze(e,t,n,r){var o=t,a=o.charCodeAt(0);switch(a<33&&(a=(o=o.trim()).charCodeAt(0)),a){case U:switch(be+r){case 0:case 1:if(0===e.trim().length)break;default:return o.replace(p,"$1"+e.trim())}break;case X:switch(o.charCodeAt(1)){case 103:if(ge>0&&be>0)return o.replace(f,"$1").replace(p,"$1"+Me);break;default:return e.trim()+o.replace(p,"$1"+e.trim())}default:if(n*be>0&&o.indexOf("\f")>0)return o.replace(p,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+o}function qe(e,t,n,r){var u,l=0,p=e+";",f=2*t+3*n+4*r;if(944===f)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),o=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Re){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:for(var a=o.split((o="",s)),i=0,n=0,t=a.length;i<t;n=0,++i){for(var u=a[i],l=u.split(c);u=l[n];){var p=u.charCodeAt(0);if(1===Re&&(p>$&&p<90||p>96&&p<123||p===V||p===W&&u.charCodeAt(1)!==W))switch(isNaN(parseFloat(u))+(-1!==u.indexOf("("))){case 1:switch(u){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:u+=Fe}}l[n++]=u}o+=(0===i?"":",")+l.join(" ")}}return o=r+o+";",1===ve||2===ve&&$e(o,1)?E+o+o:o}(p);if(0===ve||2===ve&&!$e(p,1))return p;switch(f){case 1015:return 97===p.charCodeAt(10)?E+p+p:p;case 951:return 116===p.charCodeAt(3)?E+p+p:p;case 963:return 110===p.charCodeAt(5)?E+p+p:p;case 1009:if(100!==p.charCodeAt(4))break;case 969:case 942:return E+p+p;case 978:return E+p+P+p+p;case 1019:case 983:return E+p+P+p+A+p+p;case 883:return p.charCodeAt(8)===W?E+p+p:p.indexOf("image-set(",11)>0?p.replace(T,"$1"+E+"$2")+p:p;case 932:if(p.charCodeAt(4)===W)switch(p.charCodeAt(5)){case 103:return E+"box-"+p.replace("-grow","")+E+p+A+p.replace("grow","positive")+p;case 115:return E+p+A+p.replace("shrink","negative")+p;case 98:return E+p+A+p.replace("basis","preferred-size")+p}return E+p+A+p+p;case 964:return E+p+A+"flex-"+p+p;case 1023:if(99!==p.charCodeAt(8))break;return u=p.substring(p.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),E+"box-pack"+u+E+p+A+"flex-pack"+u+p;case 1005:return a.test(p)?p.replace(o,":"+E)+p.replace(o,":"+P)+p:p;case 1e3:switch(l=(u=p.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(l)){case 226:u=p.replace(k,"tb");break;case 232:u=p.replace(k,"tb-rl");break;case 220:u=p.replace(k,"lr");break;default:return p}return E+p+A+u+p;case 1017:if(-1===p.indexOf("sticky",9))return p;case 975:switch(l=(p=e).length-10,f=(u=(33===p.charCodeAt(l)?p.substring(0,l):p).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(u.charCodeAt(8)<111)break;case 115:p=p.replace(u,E+u)+";"+p;break;case 207:case 102:p=p.replace(u,E+(f>102?"inline-":"")+"box")+";"+p.replace(u,E+u)+";"+p.replace(u,A+u+"box")+";"+p}return p+";";case 938:if(p.charCodeAt(5)===W)switch(p.charCodeAt(6)){case 105:return u=p.replace("-items",""),E+p+E+"box-"+u+A+"flex-"+u+p;case 115:return E+p+A+"flex-item-"+p.replace(C,"")+p;default:return E+p+A+"flex-line-pack"+p.replace("align-content","").replace(C,"")+p}break;case 973:case 989:if(p.charCodeAt(3)!==W||122===p.charCodeAt(4))break;case 931:case 953:if(!0===j.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?qe(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):p.replace(u,E+u)+p.replace(u,P+u.replace("fill-",""))+p;break;case 962:if(p=E+p+(102===p.charCodeAt(5)?A+p:"")+p,n+r===211&&105===p.charCodeAt(13)&&p.indexOf("transform",10)>0)return p.substring(0,p.indexOf(";",27)+1).replace(i,"$1"+E+"$2")+p}return p}function $e(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),o=e.substring(n+1,e.length-1);return Se(2!==t?r:r.replace(S,"$1"),o,t)}function He(e,t){var n=qe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function Ue(e,t,n,r,o,a,i,s,c,u){for(var l,p=0,f=t;p<Ce;++p)switch(l=Oe[p].call(Ye,e,f,n,r,o,a,i,s,c,u)){case void 0:case!1:case!0:case null:break;default:f=l}switch(f){case void 0:case!1:case!0:case null:case t:break;default:return f}}function We(e,t,n,r){for(var o=t+1;o<n;++o)switch(r.charCodeAt(o)){case Z:if(e===Y&&r.charCodeAt(o-1)===Y&&t+2!==o)return o+1;break;case B:if(e===Z)return o+1}return o}function Ve(e){for(var t in e){var n=e[t];switch(t){case"keyframe":Re=0|n;break;case"global":ge=0|n;break;case"cascade":be=0|n;break;case"compress":_e=0|n;break;case"semicolon":we=0|n;break;case"preserve":ke=0|n;break;case"prefix":Se=null,n?"function"!==typeof n?ve=1:(ve=2,Se=n):ve=0}}return Ve}function Ye(t,n){if(void 0!==this&&this.constructor===Ye)return e(t);var o=t,a=o.charCodeAt(0);a<33&&(a=(o=o.trim()).charCodeAt(0)),Re>0&&(Fe=o.replace(d,a===M?"":"-")),a=1,1===be?Me=o:De=o;var i,s=[Me];Ce>0&&void 0!==(i=Ue(Te,n,s,s,ye,he,0,0,0,0))&&"string"===typeof i&&(n=i);var c=Le(xe,s,n,0,0);return Ce>0&&void 0!==(i=Ue(je,c,s,s,ye,he,c.length,0,0,0))&&"string"!==typeof(c=i)&&(a=0),Fe="",Me="",De="",me=0,ye=1,he=1,_e*a===0?c:function(e){return e.replace(r,"").replace(b,"").replace(v,"$1").replace(g,"$1").replace(_," ")}(c)}return Ye.use=function e(t){switch(t){case void 0:case null:Ce=Oe.length=0;break;default:switch(t.constructor){case Array:for(var n=0,r=t.length;n<r;++n)e(t[n]);break;case Function:Oe[Ce++]=t;break;case Boolean:Ne=0|!!t}}return e},Ye.set=Ve,void 0!==t&&Ve(t),Ye},"object"===i(t)&&"undefined"!==typeof e?e.exports=a(null):(r=a(null),void 0===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o))},function(e,t,n){e.exports=n(21)()},function(e,t,n){"use strict";var r=n(22);function o(){}e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},a="function"===typeof Object.getOwnPropertySymbols;e.exports=function(e,t,n){if("string"!==typeof t){var i=Object.getOwnPropertyNames(t);a&&(i=i.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;++s)if(!r[i[s]]&&!o[i[s]]&&(!n||!n[i[s]]))try{e[i[s]]=t[i[s]]}catch(e){}}return e}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(5),i=n.n(a),s=n(25),c=(n.n(s),n(2));n.n(c);function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,a,c;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),n=t,c=[{key:"css",value:function(e){var t=[];return t.push([{selector:"%%order_class%%",declaration:"transform: perspective(".concat(e.perspective,") rotateY(").concat(e.dsm_rotate_y,") rotateX(").concat(e.dsm_rotate_x,") rotateZ(").concat(e.dsm_rotate_z,");")}]),"left"!==e.align&&t.push([{selector:"%%order_class%%",declaration:"text-align: ".concat(e.align,";")}]),"on"===e.force_fullwidth&&t.push([{selector:"%%order_class%% .et_pb_image_wrap, %%order_class%% img",declaration:"width: 100%;"}]),"on"===e.use_overlay&&(e.hover_overlay_color&&t.push([{selector:"%%order_class%% .et_overlay",declaration:"background-color: ".concat(e.hover_overlay_color,";")}]),e.overlay_icon_color&&t.push([{selector:"%%order_class%% .et_overlay:before",declaration:"color: ".concat(e.overlay_icon_color,";")}])),t}}],(a=[{key:"componentDidUpdate",value:function(e){var t=Object(s.findDOMNode)(this.refs.lightboxIMG);i()(t).magnificPopup({type:"image",removalDelay:500,mainClass:"mfp-fade",zoom:{enabled:!0,duration:500,opener:function(e){return e.find("img")}}})}},{key:"_renderOverlay",value:function(){var e=this.props,t=window.ET_Builder.API.Utils.processFontIcon(e.hover_icon);return"off"===e.use_overlay&&("on"===e.show_in_lightbox||"off"===e.show_in_lightbox&&""!==e.url)?"":o.a.createElement(r.Fragment,null,o.a.createElement("span",{className:"et_overlay et_pb_inline_icon","data-icon":t}))}},{key:"_renderImageOutPut",value:function(){var e=this.props;return o.a.createElement(r.Fragment,null,o.a.createElement("span",{className:"et_pb_image_wrap"},o.a.createElement("img",{src:e.src,alt:e.alt,title:e.title_text}),this._renderOverlay()))}},{key:"_renderImageNoLink",value:function(){var e=this.props;return"on"===e.show_in_lightbox||""!==e.url?"":o.a.createElement(r.Fragment,null,this._renderImageOutPut())}},{key:"_renderImage",value:function(){var e=this.props,t="on"===e.url_new_window&&"off"===e.show_in_lightbox?"_blank":"";return e.src?"on"===e.show_in_lightbox?o.a.createElement(r.Fragment,null,o.a.createElement("a",{ref:"lightboxIMG",href:e.src,className:"et_pb_lightbox_image"},this._renderImageOutPut())):""!==e.url?o.a.createElement(r.Fragment,null,o.a.createElement("a",{href:e.url,target:t},this._renderImageOutPut())):void 0:""}},{key:"render",value:function(){var e=this.props;return o.a.createElement("div",{ref:"spaces",className:"dsm-image-wrapper".concat("on"===e.use_overlay&&("on"===e.show_in_lightbox||"off"===e.show_in_lightbox&&""!==e.url)?" et_pb_has_overlay":"")},o.a.createElement(r.Fragment,null,this._renderImage(),this._renderImageNoLink()))}}])&&l(n.prototype,a),c&&l(n,c),t}();Object.defineProperty(f,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"dsm_perspective_image"}),t.a=f},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(3);n.n(a);function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,a,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),n=t,i=[{key:"css",value:function(e){var t=[];return e.height&&t.push([{selector:"%%order_class%% .dsm-text-divider-wrapper",declaration:"height: ".concat(e.height,";")}]),e.divider_style&&t.push([{selector:"%%order_class%% .dsm-divider",declaration:"border-top-style: ".concat(e.divider_style,";")}]),"center"!==e.divider_position&&t.push([{selector:"%%order_class%% .dsm-text-divider-wrapper",declaration:"align-items: ".concat(e.divider_position,";")}]),e.color&&t.push([{selector:"%%order_class%% .dsm-divider",declaration:"border-top-color: ".concat(e.color,";")}]),e.divider_weight&&t.push([{selector:"%%order_class%% .dsm-divider",declaration:"border-top-width: ".concat(e.divider_weight,";")}]),"10px"!==e.text_gap&&("center"===e.text_alignment?t.push([{selector:"%%order_class%% .dsm-text-divider-header",declaration:"margin: 0 ".concat(e.text_gap,";")}]):"left"===e.text_alignment?t.push([{selector:"%%order_class%% .dsm-text-divider-header",declaration:"margin: 0 ".concat(e.text_gap," 0 0;")}]):t.push([{selector:"%%order_class%% .dsm-text-divider-header",declaration:"margin: 0 0 0 ".concat(e.text_gap,";")}])),t}}],(a=[{key:"_renderText",value:function(){var e=this.props,t=""===e.header_level?"h2":"".concat(e.header_level);return e.header?void 0===e.header_level?o.a.createElement(r.Fragment,null,o.a.createElement("h3",{className:"dsm-text-divider-header et_pb_module_header"},e.header)):o.a.createElement(r.Fragment,null,o.a.createElement(t,{className:"dsm-text-divider-header et_pb_module_header"},e.header)):""}},{key:"render",value:function(){var e=this.props;return o.a.createElement(r.Fragment,null,o.a.createElement("div",{className:"dsm-text-divider-wrapper et_pb_bg_layout_".concat(e.background_layout," dsm-text-divider-align-").concat(e.text_alignment)},o.a.createElement("div",{className:"dsm-text-divider-before dsm-divider"}),this._renderText(),o.a.createElement("div",{className:"dsm-text-divider-after dsm-divider"})))}}])&&s(n.prototype,a),i&&s(n,i),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"dsm_text_divider"}),t.a=u},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(4);n.n(a);function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,a,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r["Component"]),n=t,i=[{key:"css",value:function(e){return[]}}],(a=[{key:"_renderTitle",value:function(){var e=this.props,t=""===e.header_level?"h1":"".concat(e.header_level);return e.gradient_text?void 0===e.header_level?o.a.createElement(r.Fragment,null,o.a.createElement("h1",{className:"dsm-gradient-text et_pb_module_header"},e.gradient_text)):o.a.createElement(r.Fragment,null,o.a.createElement(t,{className:"dsm-gradient-text et_pb_module_header"},e.gradient_text)):""}},{key:"render",value:function(){var e=this.props;return o.a.createElement(r.Fragment,null,o.a.createElement("div",{className:"et_pb_bg_layout_".concat(e.background_layout)},this._renderTitle()))}}])&&s(n.prototype,a),i&&s(n,i),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"dsm_gradient_text"}),t.a=u}]);
|
scripts/frontend-bundle.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(t){var n={};function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s=28)}({1:function(t,n){},2:function(t,n){},28:function(t,n,e){e(1),e(29),e(4),e(2),e(3),e(30),t.exports=e(31)},29:function(t,n){},3:function(t,n){},30:function(t,n){},31:function(t,n){jQuery(function(t){var n=t(".dsm-typing-effect .dsm-typing");t(".dsm-typing-effect").length&&t(n).each(function(n,e){var o=t(this).data("dsm-typing-strings").split("|"),i=t(this).data("dsm-typing-loop"),r=parseFloat(t(this).data("dsm-typing-speed"),10),a=parseFloat(t(this).data("dsm-typing-backdelay"),10),s=parseFloat(t(this).data("dsm-typing-backspeed"),10);new Typed(this,{strings:o,loop:i,typeSpeed:r,backSpeed:s,backDelay:a,contentType:"html"})})})},4:function(t,n){}});
|
scripts/frontend.js
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// This script is loaded both on the frontend page and in the Visual Builder.
|
2 |
+
|
3 |
+
jQuery(function($) {
|
4 |
+
var diviSupremeTyping = $(".dsm-typing-effect .dsm-typing");
|
5 |
+
if ($(".dsm-typing-effect").length) {
|
6 |
+
$(diviSupremeTyping).each(function(index, value) {
|
7 |
+
var string = $(this).data('dsm-typing-strings'),
|
8 |
+
convertstring = string.split('|'),
|
9 |
+
typingloop = $(this).data('dsm-typing-loop'),
|
10 |
+
typingSpeed = parseFloat($(this).data('dsm-typing-speed'), 10),
|
11 |
+
typingbackdelay = parseFloat($(this).data('dsm-typing-backdelay'), 10),
|
12 |
+
typingbackSpeed = parseFloat($(this).data('dsm-typing-backspeed'), 10),
|
13 |
+
element = this;
|
14 |
+
|
15 |
+
var typedSetting = {
|
16 |
+
strings: convertstring,
|
17 |
+
loop: typingloop,
|
18 |
+
typeSpeed: typingSpeed,
|
19 |
+
backSpeed: typingbackSpeed,
|
20 |
+
backDelay: typingbackdelay,
|
21 |
+
contentType: 'html'
|
22 |
+
}
|
23 |
+
|
24 |
+
var typed = '';
|
25 |
+
typed = new Typed(element, typedSetting);
|
26 |
+
});
|
27 |
+
}
|
28 |
+
});
|
styles/style-dbp.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.et_divi_builder #et_builder_outer_content .et-db #et-boc .dsm_flipbox_child.et_pb_module{position:absolute}.et_divi_builder #et_builder_outer_content .dsm-flipbox{height:200px;position:relative;-webkit-perspective:1000px;perspective:1000px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.et_divi_builder #et_builder_outer_content .dsm_flipbox_child.et_pb_module{margin-bottom:0!important}.et_divi_builder #et_builder_outer_content .dsm_flipbox_child .et_pb_module_inner,.et_divi_builder #et_builder_outer_content .et-db #et-boc .dsm_flipbox_child>div{width:100%}.et_divi_builder #et_builder_outer_content .dsm_flipbox_child{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;text-align:center;position:absolute;width:100%;height:100%;-webkit-transition:transform .6s ease-in-out;-o-transition:transform .6s ease-in-out;-webkit-transition:-webkit-transform .6s ease-in-out;transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;transition:transform .6s ease-in-out,-webkit-transform .6s ease-in-out;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-style:solid}.et_divi_builder #et_builder_outer_content .dsm_flipbox_child .dsm_flipbox_child_image_wrap{display:block;margin:auto}.et_divi_builder #et_builder_outer_content .dsm_flipbox_child_image{display:inline-block;max-width:100%;margin-bottom:30px;line-height:0}.et_divi_builder #et_builder_outer_content .dsm_flipbox_icon_position_left .dsm_flipbox_child_image,.et_divi_builder #et_builder_outer_content .dsm_flipbox_icon_position_right .dsm_flipbox_child_image{display:table-cell;width:32px;line-height:0}.et_divi_builder #et_builder_outer_content .dsm_flipbox_icon_position_left .dsm_flipbox_wrapper{padding-left:15px}.et_divi_builder #et_builder_outer_content .dsm_flipbox_icon_position_left .dsm_flipbox_wrapper,.et_divi_builder #et_builder_outer_content .dsm_flipbox_icon_position_right .dsm_flipbox_wrapper{display:table-cell;vertical-align:top}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-right .dsm_flipbox_child:first-child{z-index:1;-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.et_divi_builder #et_builder_outer_content .dsm_flipbox:hover .dsm-flipbox-effect-right .dsm_flipbox_child:first-child{-webkit-transform:rotateX(0deg) rotateY(180deg);transform:rotateX(0deg) rotateY(180deg)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-right .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(-180deg);transform:rotateX(0deg) rotateY(-180deg)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-left .dsm_flipbox_child:first-child,.et_divi_builder #et_builder_outer_content .dsm_flipbox:hover .dsm-flipbox-effect-right .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-left .dsm_flipbox_child:first-child{z-index:1}.et_divi_builder #et_builder_outer_content .dsm_flipbox:hover .dsm-flipbox-effect-left .dsm_flipbox_child:first-child{-webkit-transform:rotateX(0deg) rotateY(-180deg);transform:rotateX(0deg) rotateY(-180deg)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-left .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(180deg);transform:rotateX(0deg) rotateY(180deg)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-up .dsm_flipbox_child:first-child,.et_divi_builder #et_builder_outer_content .dsm_flipbox:hover .dsm-flipbox-effect-left .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-up .dsm_flipbox_child:first-child{z-index:1}.et_divi_builder #et_builder_outer_content .dsm_flipbox:hover .dsm-flipbox-effect-up .dsm_flipbox_child:first-child{-webkit-transform:rotateX(180deg) rotateY(0);transform:rotateX(180deg) rotateY(0)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-up .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(-180deg) rotateY(0);transform:rotateX(-180deg) rotateY(0)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-down .dsm_flipbox_child:first-child,.et_divi_builder #et_builder_outer_content .dsm_flipbox:hover .dsm-flipbox-effect-up .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-down .dsm_flipbox_child:first-child{z-index:1}.et_divi_builder #et_builder_outer_content .dsm_flipbox:hover .dsm-flipbox-effect-down .dsm_flipbox_child:first-child{-webkit-transform:rotateX(-180deg) rotateY(0);transform:rotateX(-180deg) rotateY(0)}.et_divi_builder #et_builder_outer_content .dsm_flipbox .dsm-flipbox-effect-down .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(180deg) rotateY(0);transform:rotateX(180deg) rotateY(0)}.et_divi_builder #et_builder_outer_content .dsm_flipbox:hover .dsm-flipbox-effect-down .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.et_divi_builder #et_builder_outer_content .dsm_perspective_image{display:block;margin-right:auto;margin-left:auto;line-height:0}.et_divi_builder #et_builder_outer_content .dsm_perspective_image .dsm-image-wrapper{-webkit-transform:perspective(1000px);transform:perspective(1000px)}.et_divi_builder #et_builder_outer_content .dsm_perspective_image .et_pb_image_wrap{display:inline-block;position:relative;max-width:100%}.et_divi_builder #et_builder_outer_content .dsm_perspective_image img{position:relative}.et_divi_builder #et_builder_outer_content .dsm_text_divider .dsm-text-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;margin:0 auto}.et_divi_builder #et_builder_outer_content .dsm-text-divider-after,.et_divi_builder #et_builder_outer_content .dsm-text-divider-before{font-size:0;line-height:0;-ms-flex-positive:1;flex-grow:1;border-top-width:1px;border-top-style:solid;border-top-color:#7ebec5}.et_divi_builder #et_builder_outer_content .dsm-text-divider-header{padding-bottom:0;-ms-flex-negative:1;flex-shrink:1;margin:0 10px}.et_divi_builder #et_builder_outer_content .dsm-text-divider-align-left .dsm-text-divider-before,.et_divi_builder #et_builder_outer_content .dsm-text-divider-align-right .dsm-text-divider-after{display:none}.et_divi_builder #et_builder_outer_content .dsm-gradient-text{-webkit-background-clip:text;-webkit-text-fill-color:transparent}
|
styles/style.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.et-db #et-boc .dsm_flipbox_child.et_pb_module{position:absolute}.dsm-flipbox{height:200px;position:relative;-webkit-perspective:1000px;perspective:1000px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.dsm_flipbox_child.et_pb_module{margin-bottom:0!important}.dsm_flipbox_child .et_pb_module_inner,.et-db #et-boc .dsm_flipbox_child>div{width:100%}.dsm_flipbox_child{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;text-align:center;position:absolute;width:100%;height:100%;-webkit-transition:transform .6s ease-in-out;-o-transition:transform .6s ease-in-out;-webkit-transition:-webkit-transform .6s ease-in-out;transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;transition:transform .6s ease-in-out,-webkit-transform .6s ease-in-out;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-style:solid}.dsm_flipbox_child .dsm_flipbox_child_image_wrap{display:block;margin:auto}.dsm_flipbox_child_image{display:inline-block;max-width:100%;margin-bottom:30px;line-height:0}.dsm_flipbox_icon_position_left .dsm_flipbox_child_image,.dsm_flipbox_icon_position_right .dsm_flipbox_child_image{display:table-cell;width:32px;line-height:0}.dsm_flipbox_icon_position_left .dsm_flipbox_wrapper{padding-left:15px}.dsm_flipbox_icon_position_left .dsm_flipbox_wrapper,.dsm_flipbox_icon_position_right .dsm_flipbox_wrapper{display:table-cell;vertical-align:top}.dsm_flipbox .dsm-flipbox-effect-right .dsm_flipbox_child:first-child{z-index:1;-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.dsm_flipbox:hover .dsm-flipbox-effect-right .dsm_flipbox_child:first-child{-webkit-transform:rotateX(0deg) rotateY(180deg);transform:rotateX(0deg) rotateY(180deg)}.dsm_flipbox .dsm-flipbox-effect-right .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(-180deg);transform:rotateX(0deg) rotateY(-180deg)}.dsm_flipbox .dsm-flipbox-effect-left .dsm_flipbox_child:first-child,.dsm_flipbox:hover .dsm-flipbox-effect-right .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.dsm_flipbox .dsm-flipbox-effect-left .dsm_flipbox_child:first-child{z-index:1}.dsm_flipbox:hover .dsm-flipbox-effect-left .dsm_flipbox_child:first-child{-webkit-transform:rotateX(0deg) rotateY(-180deg);transform:rotateX(0deg) rotateY(-180deg)}.dsm_flipbox .dsm-flipbox-effect-left .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(180deg);transform:rotateX(0deg) rotateY(180deg)}.dsm_flipbox .dsm-flipbox-effect-up .dsm_flipbox_child:first-child,.dsm_flipbox:hover .dsm-flipbox-effect-left .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.dsm_flipbox .dsm-flipbox-effect-up .dsm_flipbox_child:first-child{z-index:1}.dsm_flipbox:hover .dsm-flipbox-effect-up .dsm_flipbox_child:first-child{-webkit-transform:rotateX(180deg) rotateY(0);transform:rotateX(180deg) rotateY(0)}.dsm_flipbox .dsm-flipbox-effect-up .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(-180deg) rotateY(0);transform:rotateX(-180deg) rotateY(0)}.dsm_flipbox .dsm-flipbox-effect-down .dsm_flipbox_child:first-child,.dsm_flipbox:hover .dsm-flipbox-effect-up .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.dsm_flipbox .dsm-flipbox-effect-down .dsm_flipbox_child:first-child{z-index:1}.dsm_flipbox:hover .dsm-flipbox-effect-down .dsm_flipbox_child:first-child{-webkit-transform:rotateX(-180deg) rotateY(0);transform:rotateX(-180deg) rotateY(0)}.dsm_flipbox .dsm-flipbox-effect-down .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(180deg) rotateY(0);transform:rotateX(180deg) rotateY(0)}.dsm_flipbox:hover .dsm-flipbox-effect-down .dsm_flipbox_child:nth-child(2){-webkit-transform:rotateX(0deg) rotateY(0deg);transform:rotateX(0deg) rotateY(0deg)}.dsm_perspective_image{display:block;margin-right:auto;margin-left:auto;line-height:0}.dsm_perspective_image .dsm-image-wrapper{-webkit-transform:perspective(1000px);transform:perspective(1000px)}.dsm_perspective_image .et_pb_image_wrap{display:inline-block;position:relative;max-width:100%}.dsm_perspective_image img{position:relative}.dsm_text_divider .dsm-text-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative;margin:0 auto}.dsm-text-divider-after,.dsm-text-divider-before{font-size:0;line-height:0;-ms-flex-positive:1;flex-grow:1;border-top-width:1px;border-top-style:solid;border-top-color:#7ebec5}.dsm-text-divider-header{padding-bottom:0;-ms-flex-negative:1;flex-shrink:1;margin:0 10px}.dsm-text-divider-align-left .dsm-text-divider-before,.dsm-text-divider-align-right .dsm-text-divider-after{display:none}.dsm-gradient-text{-webkit-background-clip:text;-webkit-text-fill-color:transparent}
|
supreme-modules-for-divi.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Supreme Modules for Divi
|
4 |
+
Plugin URI: https://suprememodules.com
|
5 |
+
Description: Supreme Modules enhances the experience and features found on Divi and extend with custom and creative modules to help you build amazing websites.
|
6 |
+
Version: 1.0.0
|
7 |
+
Author: Supreme Modules
|
8 |
+
Author URI: https://suprememodules.com/about-us/
|
9 |
+
License: GPL2
|
10 |
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
+
Text Domain: dsm-supreme-modules-for-divi
|
12 |
+
Domain Path: /languages
|
13 |
+
|
14 |
+
Supreme Modules is free software: you can redistribute it and/or modify
|
15 |
+
it under the terms of the GNU General Public License as published by
|
16 |
+
the Free Software Foundation, either version 2 of the License, or
|
17 |
+
any later version.
|
18 |
+
|
19 |
+
Supreme Modules is distributed in the hope that it will be useful,
|
20 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
+
GNU General Public License for more details.
|
23 |
+
|
24 |
+
You should have received a copy of the GNU General Public License
|
25 |
+
along with Supreme Modules. If not, see https://www.gnu.org/licenses/gpl-2.0.html.
|
26 |
+
*/
|
27 |
+
|
28 |
+
|
29 |
+
if ( ! function_exists( 'dsm_initialize_extension' ) ):
|
30 |
+
/**
|
31 |
+
* Creates the extension's main class instance.
|
32 |
+
*
|
33 |
+
* @since 1.0.0
|
34 |
+
*/
|
35 |
+
function dsm_initialize_extension() {
|
36 |
+
require_once plugin_dir_path( __FILE__ ) . 'includes/SupremeModulesForDivi.php';
|
37 |
+
}
|
38 |
+
add_action( 'divi_extensions_init', 'dsm_initialize_extension' );
|
39 |
+
endif;
|
40 |
+
|
41 |
+
function dsm_scripts(){
|
42 |
+
wp_register_script('dsm-typed', plugin_dir_url( __FILE__ ) . 'assets/js/typed.min.js', array(), null, true );
|
43 |
+
if ( et_core_is_fb_enabled() ) {
|
44 |
+
wp_enqueue_style('dsm-admin', plugin_dir_url( __FILE__ ) . 'assets/css/dsm-admin.css' );
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
add_action('wp_enqueue_scripts', 'dsm_scripts');
|