Version Description
- February 28th 2017 =
Download this release
Release Info
Developer | LiveComposer |
Plugin | Page Builder: Live Composer – drag and drop website builder (visual front end site editor) |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- css/builder.min.css +1 -1
- css/builder/builder.main.css +2 -2
- ds-live-composer.php +2 -2
- includes/display-functions.php +47 -38
- includes/editor-messages.php +35 -34
- includes/editorinterface.class.php +1 -1
- includes/functions.php +1 -0
- includes/options.extension.class.php +4 -3
- includes/other-functions.php +17 -1
- includes/other.php +21 -22
- includes/plugin-options-framework/inc/init.php +1 -1
- includes/post-options-framework/css/main.css +20 -1
- includes/post-options-framework/css/main.min.css +1 -1
- includes/post-options-framework/post-options-framework.php +18 -0
- includes/post-templates.php +13 -5
- includes/row-system/inc/options.php +356 -364
- includes/single-templates-framework/inc/filters.php +6 -3
- js/builder.all.min.js +5 -5
- js/builder/builder.module.functions.js +0 -1
- js/builder/builder.row.functions.js +23 -1
- js/builder/builder.settings.panel.functions.js +19 -1
- js/builder/builder.util.class.js +34 -0
- js/builder/builder.util.functions.js +22 -0
- modules/accordion/module.php +2 -3
- modules/html/module.php +1 -1
- modules/image/module.php +10 -2
- modules/infobox/module.php +9 -3
- modules/shortcode/module.php +2920 -0
- modules/tabs/module.php +2 -3
- modules/text-simple/module.php +1 -3
- modules/tp-comments-form/module.php +1 -1
- modules/tp-content/module.php +54 -8
- modules/tp-meta/module.php +3 -3
- readme.txt +37 -1
css/builder.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.dslc-clear,.dslc-clearfix:after,.dslc-module-heading:after{clear:both}html{top:-32px;position:relative}#wpwrap{overflow:hidden}body{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}body.toplevel_page_livecomposer_editor{background:#464646}body div.mce-inline-toolbar-grp.mce-arrow-up{margin-top:48px}.dslca-editable-content,.dslca-editable-content *,.inline-editor,.inline-editor *,a[contenteditable=true],div[contenteditable=true],h1[contenteditable=true],h2[contenteditable=true],h3[contenteditable=true],h4[contenteditable=true],h5[contenteditable=true],h6[contenteditable=true],span[contenteditable=true]{-webkit-touch-callout:text;-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}body .dslca-editable-content:hover,body .dslca-editable-content:hover *,body .inline-editor:hover,body .inline-editor:hover *{cursor:text}div:hover,div>span:hover,span>span:hover{cursor:default}body a{text-decoration:none}body a:focus{color:inherit;box-shadow:none}#dslc-preview-error{text-align:center;padding:160px 0 0;text-transform:uppercase;letter-spacing:2px}.dslc-clearfix:after,.dslc-clearfix:before,.dslc-module-heading:after,.dslc-module-heading:before{content:" ";display:table}.dslc-fl{float:left}.dslc-fr{float:right}.dslc-no-float{float:none!important}.dslca-container *{padding:0;margin:0;border:none;outline:0}.dslca-disable-selection{-ms-user-select:none!important;-moz-user-select:-moz-none!important;-khtml-user-select:none!important;-webkit-user-select:none!important;user-select:none!important}.dslca-container p{margin-bottom:20px}.dslca-container input[type=text],.dslca-container input[type=number],.dslca-container select,.dslca-container textarea{background:rgba(255,255,255,.1);border:0;color:#fff;padding:7px 10px;font-family:'Open Sans',sans-serif;font-size:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.dslca-container,.dslca-container *,.dslca-container ::after,.dslca-container ::before,.dslca-module-manage,.dslca-module-manage *,.dslca-module-manage ::after,.dslca-module-manage ::before,.dslca-sections{box-sizing:border-box}.dslca-container .dslca-module-edit-option-slider input[type=number]{padding-right:30px}.dslca-container input[type=text],.dslca-container input[type=number],.dslca-container input[type=email]{height:auto}.dslca-container select,.dslca-modules-section-edit-option select{line-height:12px;padding:6px 10px;min-height:32px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;background:url(../../images/dropdown-arrow.png) 90% 55%/7px no-repeat #6c9fed}.dslca-module-edit-option-select .dslca-icon,.dslca-modules-section-edit-option-select .dslca-icon{position:absolute;right:30px;top:77px;cursor:pointer}.dslca-container input[type=submit]{background:#6ba253;border:0;color:#fff;cursor:pointer;padding:8px 10px;line-height:17px}.dslca-container{font-family:'Open Sans',sans-serif;bottom:0;color:#fff;left:0;position:fixed;right:0;z-index:99999;-webkit-transition:bottom .3s;-moz-transition:bottom .3s;transition:bottom .3s;margin-bottom:40px}.dslca-show-js-error-hook{padding:10px;bottom:-1px;display:inline-block;color:rgba(199,199,199,.64)!important;visibility:hidden;float:left}.dslca-show-js-error-hook:hover{color:#ff4040}.dslca-show-js-error-hook .dslca-icon{color:#ff4040;margin-right:5px;margin-left:8px}#dslca-js-errors-report{display:none}.dslca-error-report{display:block;overflow:scroll;text-align:left;white-space:nowrap;font-size:12px;max-height:120px;-webkit-touch-callout:text;-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.dslca-error-report:hover{cursor:text}.dslca-editable-content>p:only-child{margin-bottom:0!important}.dslca-header{position:absolute;min-height:38px;bottom:100%;left:0}.dslca-header .dslca-currently-editing{position:absolute;bottom:45px;left:5px;background-color:rgba(71,70,70,.49);color:rgba(255,255,255,.5);padding:6px 10px;border-radius:3px;font-weight:400;font-family:'Open Sans',sans-serif;font-size:10px;line-height:1;display:none;white-space:nowrap;letter-spacing:.4px;text-transform:uppercase;cursor:pointer}.dslca-header .dslca-currently-editing .dslca-icon{margin-right:5px}.dslca-header .dslca-currently-editing strong{color:#fff}.dslca-header .dslca-go-to-section-hook,.dslca-header .dslca-options-filter-hook,.dslca-header .dslca-row-options-filter-hook,.dslca-pseudo-header .dslca-pseudo-options-filter-hook{bottom:0;background:#313131;border-radius:3px 3px 0 0;color:#adadad;cursor:pointer;display:block;float:left;font-size:13px;font-family:'Open Sans',sans-serif;font-weight:600;line-height:1;padding:13px 15px;position:relative}.dslca-header .dslca-options-filter-hook,.dslca-header .dslca-row-pseudo-options-filter-hook,.dslca-pseudo-options-filter-hook{display:none;margin-right:3px}.dslca-header .dslca-go-to-section-hook.dslca-active,.dslca-header .dslca-options-filter-hook.dslca-active,.dslca-header .dslca-row-options-filter-hook.dslca-active,.dslca-pseudo-header .dslca-pseudo-options-filter-hook.dslca-active{border-top-color:#4777c2;background:#3b6fbe;color:#fff;cursor:default}.dslca-header .dslca-options-filter-hook .dslca-icon,.dslca-header .dslca-row-options-filter-hook .dslca-icon,.dslca-pseudo-header .dslca-pseudo-options-filter-hook .dslca-icon{margin-right:4px}.dslca-header .dslca-options-filter-hook.dslca-active,.dslca-header .dslca-row-options-filter-hook.dslca-active,.dslca-pseudo-header .dslca-pseudo-options-filter-hook.dslca-active{background:#5890e5}.dslca-header .dslca-go-to-section-templates.dslca-active{border-top-color:#bf7671;background:#a94640}.dslca-header .dslca-go-to-section-hook .dslca-icon{font-weight:400}.dslca-module-edit-actions,.dslca-pseudo-module-edit-actions,.dslca-row-edit-actions{display:none;float:left;margin-left:4px;margin-top:1px}.dslca-module-edit-cancel,.dslca-module-edit-save,.dslca-prompt-modal-cancel-hook,.dslca-prompt-modal-confirm-hook,.dslca-pseudo-module-edit-cancel,.dslca-pseudo-module-edit-save,.dslca-row-edit-cancel,.dslca-row-edit-save,.dslca-wp-editor-cancel-hook,.dslca-wp-editor-save-hook{background:#78ca4f;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;font-family:'Open Sans',sans-serif;font-weight:600;line-height:1;padding:10px 12px;margin-right:6px;text-decoration:none}.dslca-module-edit-cancel,.dslca-prompt-modal-cancel-hook,.dslca-pseudo-module-edit-cancel,.dslca-row-edit-cancel,.dslca-wp-editor-cancel-hook{background:#e55f5f}.dslca-module-edit-save:hover,.dslca-prompt-modal-confirm-hook:hover,.dslca-pseudo-module-edit-save:hover,.dslca-row-edit-save:hover,.dslca-wp-editor-save-hook:hover{background:#91dc1e;color:#fff}.dslca-module-edit-cancel:hover,.dslca-prompt-modal-cancel-hook:hover,.dslca-pseudo-module-edit-cancel:hover,.dslca-row-edit-cancel:hover,.dslca-wp-editor-cancel-hook:hover{background:#f27562;color:#fff}.dslca-actions,.dslca-pseudo-actions{position:absolute;bottom:100%;right:0;padding-bottom:5px;padding-right:5px}.dslca-sections{background:#4A7AC3}.dslca-pseudo-section,.dslca-section.dslca-module-edit,.dslca-section.dslca-modules-section-edit{background:#5890e5}.dslca-modal.dslca-modal-templates-export,.dslca-modal.dslca-modal-templates-import,.dslca-modal.dslca-modal-templates-save,.dslca-section.dslca-templates,.dslca-section.dslca-templates-load{background:#ca564f}.dslca-section{display:none;position:relative}.dslca-section-back{display:block;float:left;width:32px;line-height:74px;text-align:center;color:#fff}.dslca-section-back:hover{background:#e25c54;color:#fff}.dslca-section-title{display:block;float:left;background:#3b6fbe;color:#fff;font-family:'Open Sans',sans-serif;font-size:17px;line-height:1;padding:28px 25px}.dslca-section-title:hover,.dslca-section-title:hover *{cursor:pointer}.dslca-templates .dslca-section-title,.dslca-templates-load .dslca-section-title,.dslca-templates-save .dslca-section-title{background:#a94640}.dslca-section-title-filter{position:relative;cursor:pointer}.dslca-section-title-filter .dslca-icon{color:rgba(255,255,255,.5);margin-left:10px;vertical-align:top}.dslca-section-title-filter-options{background:#5890E5;border-radius:3px 3px 0 0;bottom:35px;display:none;min-width:100px;left:-10px;position:absolute;z-index:999999;box-shadow:0 2px 8px 0 rgba(0,0,0,.21)}.dslca-section-title-filter-options a{display:block;cursor:pointer;margin:1px 0 0;padding:10px 13px;border-top:1px solid rgba(0,0,0,.09);font-size:13px;white-space:nowrap;color:#fff}.dslca-section-title-filter-options a:hover{background:#5890E5}.dslca-section.dslca-templates-load .dslca-section-title-filter-options{background:#CA564F}.dslca-section.dslca-templates-load .dslca-section-title-filter-options a:hover{background:#e25c54}.dslca-sections .dslca-exclude,.dslca-subsection{display:none}.dslca-module{color:#fff;display:inline-block;font-family:font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400;line-height:1;padding:2px 12px 9px;background:#5890e5;margin:4px 2px;box-shadow:0 1px 3px 0 rgba(0,0,0,.15),-1px 1px 0 0 rgba(255,255,255,.05) inset;border-radius:2px;text-align:center;min-width:70px;transition:transform 50ms linear 10ms;z-index:1;position:relative}.dslca-module[data-id=DSLC_Notification],.dslca-module[data-id=DSLC_Sliders],.dslca-module[data-id=DSLC_Staff],.dslca-module[data-id=DSLC_Separator]{margin-right:14px}.dslca-module[data-id=DSLC_M_A]{margin-left:5px;margin-right:14px;background:#b2b7bc;box-shadow:none}.dslca-module[data-id=DSLC_M_A] .dslca-icon{color:#fff}.dslca-module[data-id=DSLC_M_A]:hover{background:#BDC3C9}.dslca-module:hover{background:#6b9ff1;box-shadow:-2px 4px 3px 0 rgba(0,0,0,.19),-1px 1px 0 0 rgba(255,255,255,.05) inset;transform:translate(1px,-2px)}div.dslca-module:hover,div.dslca-module:hover *{color:#fff;cursor:grab;cursor:-webkit-grab}div.dslca-module.dslca-module-dragging{position:relative;opacity:1}.dslc-module-front.dslca-module-dragging{box-shadow:none!important;animation:none!important}.dslc-module-front.dslca-module-ghost{background:rgba(229,163,88,.28)}div.dslca-module.dslca-module-dragging,div.dslca-module.dslca-module-dragging *,div.dslca-module.dslca-module-dragging:hover,div.dslca-module.dslca-module-dragging:hover *{cursor:grabbing;cursor:-webkit-grabbing}.dslca-manage-action.dslca-move-module-hook:hover,.dslca-manage-action.dslca-move-module-hook:hover *,.dslca-manage-action.dslca-move-modules-area-hook:hover,.dslca-manage-action.dslca-move-modules-area-hook:hover *,.dslca-manage-action.dslca-move-modules-section-hook:hover,.dslca-manage-action.dslca-move-modules-section-hook:hover *{cursor:grab;cursor:-webkit-grab}.dslca-module .dslca-icon{color:#AECEF9;vertical-align:top;font-size:20px;display:block;line-height:41px;text-align:center;text-shadow:0 1px rgba(0,0,0,.05)}.dslca-module.ui-draggable-dragging .dslca-icon{margin-right:0}.dslca-module-edit{position:relative}.dslca-module-edit-options,.dslca-modules-section-edit-options,.dslca-pseudo-module-edit-options{padding:16px 15px 5px;min-height:58px;transform:translate(0,0)}.dslca-module-edit-option,.dslca-modules-section-edit-option,.dslca-pseudo-module-edit-option{display:table-cell;min-width:180px;position:relative;padding:40px 15px}.dslca-module-control-group{padding:4px}.dslca-module-control-group>.controls-group-inner{min-width:180px;border:1px solid rgba(0,0,0,.1);border-radius:3px;position:relative;padding:0 15px}.dslca-module-control-group>.controls-group-inner>.dslca-module-edit-label{position:absolute;background:rgba(76,129,207,.4);padding:6px 11px;left:0;border-radius:2px 2px 0 0;width:100%;text-transform:uppercase;letter-spacing:1px;font-size:75%;border-bottom:1px solid #4C81CF}.dslca-module-control-group>.controls-group-inner>.dslca-module-edit-label .dslc-control-toggle{display:none}.dslca-module-edit-option-hidden{display:none!important}.dslca-module-edit-option input[type=text],.dslca-module-edit-option input[type=text]:focus,.dslca-module-edit-option input[type=number],.dslca-module-edit-option input[type=number]:focus,.dslca-module-edit-option input[type=email],.dslca-module-edit-option input[type=email]:focus,.dslca-module-edit-option select,.dslca-module-edit-option select:focus,.dslca-module-edit-option textarea,.dslca-module-edit-option textarea:focus,.dslca-pseudo-module-edit-field{background-color:#6c9fed;border:1px solid #447bce;border-radius:3px;width:100%;min-width:140px;height:auto}.dslca-module-edit-option-text,.dslca-pseudo-module-edit-option{width:235px}.dslca-module-edit-option-textarea{width:500px}.dslca-module-edit-label,.dslca-modules-section-edit-label,.dslca-pseudo-module-edit-label{color:#fff;display:block;font-family:'Open Sans',sans-serif;font-weight:400;font-size:13px;line-height:1;margin-bottom:10px;padding-right:40px;white-space:nowrap;position:relative}.dslca-module-edit-field-font{min-width:140px}.dslca-module-edit-field-font-wrapper,.dslca-module-edit-field-icon-wrapper{display:table-cell;padding-right:5px;position:relative}.dslca-module-edit-field-font,.dslca-module-edit-field-icon{vertical-align:middle}.dslca-options-iconbutton{background:#3b6fbe;border:1px solid #3565ad;border-radius:3px;cursor:pointer;display:table-cell;height:32px;text-align:center;vertical-align:middle;padding:0 10px}.dslca-options-iconbutton.dslca-module-edit-field-font-prev{border-top-right-radius:0;border-bottom-right-radius:0}.dslca-options-iconbutton.dslca-module-edit-field-font-next{border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0}.dslca-options-iconbutton .dslca-icon{color:#8db6f3;font-size:12px;line-height:30px}.dslca-module-edit-field-font-suggest,.dslca-module-edit-field-icon-suggest{color:#fff;color:rgba(255,255,255,.5);position:absolute;left:11px;top:0;line-height:32px;font-family:"Open Sans",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px}.dslca-module-edit-option-checkbox{white-space:nowrap;width:auto}.dslca-module-edit-option-checkbox input[type=checkbox]{display:none}.dslca-module-edit-option-checkbox-wrapper{display:table-cell;background:#3b6fbe;border-radius:3px;border:1px solid #3565ad;padding:0 10px}.dslca-module-edit-option-checkbox-single{padding:6px 8px;display:table-cell}.dslca-module-edit-option-checkbox-hook{cursor:pointer;font-size:13px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-module-edit-option-checkbox-hook .dslca-icon{margin-right:10px}.dslca-module-edit-option-radio{width:auto}.dslca-module-edit-option-radio input[type=radio]{vertical-align:bottom}.dslca-module-edit-option-radio-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px}.dslca-module-edit-option-radio-single{margin:6px;display:inline-block;font-size:12px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-module-edit-field-icon-switch-set{position:absolute;margin-top:8px;font-size:10px;line-height:13px;cursor:pointer}.dslca-module-edit-field-icon-switch-set .dslca-icon{color:rgba(255,255,255,.7);margin-right:4px}.dslca-module-edit-field-icon-switch-sets{background:#fff;color:#8a8a8a;font-family:'Open Sans',sans-serif;font-size:13px;display:none;border-radius:3px;padding:20px 25px;border:1px solid rgba(0,0,0,.12);position:absolute;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);text-align:center;z-index:999999}.dslca-module-edit-field-icon-switch-sets span{display:block;padding:5px 10px;cursor:pointer;border-radius:3px}.dslca-module-edit-field-icon-switch-sets span:hover{background:rgba(0,0,0,.1)}.dslca-module-edit-field-icon-switch-sets span.dslca-active{background:#5890e5;color:#fff}.dslca-module-edit-option-box_shadow,.dslca-module-edit-option-text_shadow{width:auto}.dslca-module-edit-option-box-shadow-wrapper,.dslca-module-edit-option-text-shadow-wrapper{display:table-cell;background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:2px 10px;font-size:0}.dslca-module-edit-option-box-shadow-single,.dslca-module-edit-option-text-shadow-single{display:table-cell;width:auto;line-height:1;vertical-align:middle;white-space:nowrap;padding-left:20px;position:relative}.dslca-module-edit-option-box-shadow-single input[type=checkbox],.dslca-module-edit-option-text-align input[type=checkbox]{display:none}.dslca-module-edit-option-box-shadow-single:first-child,.dslca-module-edit-option-text-shadow-single:first-child{padding-left:0}.dslca-module-edit-option-box-shadow-single span,.dslca-module-edit-option-text-shadow-single span{font-size:12px;margin-right:10px;vertical-align:middle}.dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook,.dslca-module-edit-option-box-shadow-single span.wp-picker-input-wrap,.dslca-module-edit-option-text-shadow-single span.wp-picker-input-wrap{margin-right:0}.dslca-module-edit-option-box-shadow-single input[type=text],.dslca-module-edit-option-box-shadow-single input[type=text]:focus,.dslca-module-edit-option-box-shadow-single input[type=number],.dslca-module-edit-option-box-shadow-single input[type=number]:focus,.dslca-module-edit-option-text-shadow-single input[type=text],.dslca-module-edit-option-text-shadow-single input[type=text]:focus,.dslca-module-edit-option-text-shadow-single input[type=number],.dslca-module-edit-option-text-shadow-single input[type=number]:focus{width:60px;min-width:auto;padding:3px 7px;vertical-align:middle}.dslca-module-edit-option-box-shadow-single input[type=text].dslca-module-edit-option-box-shadow-color,.dslca-module-edit-option-text-shadow-single input[type=text].dslca-module-edit-option-text-shadow-color{width:100px}.dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook .dslca-icon{margin-left:10px;margin-right:0;font-size:13px;font-weight:400}.dslca-module-edit-option-text-align{width:auto}.dslca-module-edit-option-text-align-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px;font-size:0;display:table-cell}.dslca-module-edit-option-text-align-single{display:table-cell;font-size:14px;text-align:center;line-height:1;vertical-align:middle;padding:5px 12px}.dslca-module-edit-option-text-align-hook{cursor:pointer;opacity:.6;line-height:20px}.dslca-module-edit-option-text-align-hook:hover{opacity:.8}.dslca-module-edit-option-text-align-hook.dslca-active{opacity:1}.dslca-module-edit-options-tab-hook,.dslca-pseudo-module-edit-options-tab-hook{color:#fff;cursor:pointer;font-family:'Open Sans',sans-serif;font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;padding:6px 10px;border-radius:3px;float:left}.dslca-module-edit-options-tab-hook.dslca-active,.dslca-module-edit-options-tab-hook.dslca-active:hover{background:rgba(0,0,0,.11);box-shadow:-1px 1px 1px 0 rgba(0,0,0,.22) inset}.dslc-modules-area.dslc-modules-area-empty,.dslc-modules-area:hover{box-shadow:0 0 0 2px rgba(173,175,179,.4) inset}.dslca-module-edit-options-tab-hook:hover,.dslca-pseudo-module-edit-options-tab-hook:hover{background:rgba(169,239,255,.17);color:#fff}.dslca-module-edit-options-tab-hook[data-id=animation_styling],.dslca-module-edit-options-tab-hook[data-id=presets_styling]{float:right}.dslca-clear-styling-button{border:1px solid rgba(255,255,255,.4);border-radius:4px;display:inline-block!important;float:right;padding:4px 6px;position:absolute;right:0;top:15px;color:#a0c0f0;cursor:pointer;font-size:11px;font-weight:900;margin-right:18px}.dslca-modules-section-edit,.dslca-templates{position:relative}.dslca-clear-styling-button:hover{color:#fff}.dslca-modules-section-edit-option-hidden{display:none!important}.dslca-modules-section-edit-option input[type=text],.dslca-modules-section-edit-option input[type=number],.dslca-modules-section-edit-option input[type=email],.dslca-modules-section-edit-option select,.dslca-modules-section-edit-option textarea{background-color:#6c9fed;border:1px solid #447bce;width:100%;height:auto}.dslca-modules-section-edit-option-text{width:235px}.dslca-modules-section-edit-option-textarea{width:500px}.dslca-modules-section-edit-option-checkbox{width:auto}.dslca-modules-section-edit-option-checkbox input[type=checkbox]{display:none}.dslca-modules-section-edit-option-checkbox-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px}.dslca-modules-section-edit-option-checkbox-single{margin:6px;display:table-cell;white-space:nowrap;padding:8px}.dslca-modules-section-edit-option-checkbox-hook{cursor:pointer;font-size:12px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-modules-section-edit-option-checkbox-hook .dslca-icon{margin-right:10px}.dslca-modules-section-settings{display:none}.dslca-template,.dslca-templates .dslca-go-to-section-hook,.dslca-templates .dslca-open-modal-hook{border-right:1px solid rgba(0,0,0,.12);color:#fff;cursor:pointer;display:block;float:left;font-family:'Open Sans',sans-serif;font-size:15px;line-height:1;padding:29px 29px 27px}.dslca-template:hover,.dslca-templates .dslca-go-to-section-hook:hover,.dslca-templates .dslca-open-modal-hook:hover{background:#e25c54;color:#fff}.dslca-templates .dslca-go-to-section-hook .dslca-icon,.dslca-templates .dslca-open-modal-hook .dslca-icon{color:rgba(255,255,255,.5);margin-right:9px;vertical-align:top;line-height:14px}.dslca-templates-load{border-top:1px solid #d8827d}.dslca-template-origin-user{padding-right:50px}.dslca-template .dslca-delete-template-hook{background:rgba(0,0,0,.2);border-radius:3px;display:inline-block;margin-top:-6px;margin-left:7px;padding:5px 7px;cursor:pointer}.dslca-template-save-form input[type=text]{background:#fff;border:1px solid #d9dcdf;border-radius:3px;color:#bfbfbf;display:block;margin-bottom:15px;width:224px}#dslca-export-code,#dslca-import-code{background:#fff;border:1px solid #d9dcdf;border-radius:3px;color:#bfbfbf;display:block;height:150px;margin-bottom:15px;overflow:hidden;width:224px}.dslca-template-export-form .dslca-close-modal-hook{display:block;width:auto}.dslca-switch{background:#1783bc;border-radius:50%;bottom:-50px;cursor:pointer;height:100px;left:45%;position:fixed;width:100px}.dslca-cancel,.dslca-submit,.dslca-submit-secondary{color:#fff;cursor:pointer;font-size:14px;font-weight:700;line-height:34px;width:110px;display:inline-block;border-radius:3px;font-family:'Open Sans',sans-serif;text-align:center}.dslca-submit{background:#4cc12d;position:relative}.dslca-submit-secondary{background:#5890e5}.dslca-cancel{background:#e55f5f}.dslca-module-reloading{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8);color:#5890e5}.dslca-module-reloading .dslca-icon{font-size:20px;position:absolute;top:50%;left:50%;margin-left:-10px}.dslca-module-placeholder{position:relative;background:#5890e5;height:40px;float:left}.dslc-modules-area.dslc-modules-area-empty{margin-bottom:20px;min-height:120px;text-align:center;vertical-align:middle}.dslc-modules-area.dslc-modules-area-empty:last-child{margin-bottom:0}.dslc-modules-area-empty::after{content:"Drop modules here";display:inline-block;opacity:1;color:rgba(173,175,179,.4);left:0;right:0;top:50%;margin-top:-10px;position:absolute;font-size:15px;font-family:'Open Sans',sans-serif}.dslc-module-front{position:relative;min-height:30px}.dslc-module-front.dslca-change-width-active{z-index:999999}body.module-editing-in-progress .dslc-module-front:not(.dslca-module-being-edited),body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-section-being-edited){cursor:default!important}body.module-editing-in-progress .dslc-module-front:not(.dslca-module-being-edited):before,body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-section-being-edited):before{content:"";position:absolute;height:100%;width:100%;z-index:199999}.dslc-module-front:hover,.dslc-module-front:hover *{cursor:pointer}.dslc-modules-area:hover .dslc-module-front:hover{box-shadow:0 0 0 2px #4f8ff1 inset}.dslc-modules-area.dslca-options-hovered .dslc-module-front{box-shadow:0 0 0 0 transparent}.dslc-control-toggle{cursor:pointer;font-size:15px;opacity:.5;position:absolute;right:0}.dslc-control-toggle:hover{opacity:1}.dslca-option-off{opacity:.5}.dslc-control-toggle:before{content:"\f205"}.dslca-option-off .dslc-control-toggle:before{content:"\f204"}.dslc-modules-area{outline:0}.dslc-modules-area-empty.dslc-modules-area.dslca-options-hovered,.dslc-modules-area.dslca-options-hovered{box-shadow:0 0 0 2px rgba(173,175,179,.4)}.dslc-modules-area-empty.dslca-options-hovered{outline:0!important}.dslc-module-front.ui-sortable-helper{background:#5890e5;border-radius:3px;height:0!important;width:0!important;overflow:hidden;opacity:1!important;cursor:move;padding:0!important;border:0!important;outline:0!important}.dslc-module-front.ui-sortable-helper *{opacity:0}.dslc-module-front .dslc-sortable-helper-icon{display:none;position:absolute;left:25px;top:25px;color:rgba(255,255,255,.5)}.dslc-module-front.ui-sortable-helper .dslc-sortable-helper-icon{display:block;opacity:1}.dslc-modules-area.ui-sortable-helper{cursor:move;border:0!important;outline:0!important}.dslc-modules-area.ui-sortable-helper *{opacity:0}.dslc-modules-section.ui-sortable-helper{max-height:0!important;width:100%!important;overflow:hidden!important;opacity:0!important;padding:0!important;outline:0!important;border:0!important}.dslca-save-composer,.dslca-save-draft-composer{background:#313131;border-radius:3px 6px 6px 3px;cursor:pointer;font-size:13px;font-weight:400;font-family:'Open Sans',sans-serif;float:left;line-height:1;opacity:0;display:none;padding:10px 43px 10px 12px;text-decoration:none;position:relative;margin-right:6px}.dslca-save-composer-helptext{color:#adadad;white-space:nowrap}.dslca-save-composer .dslca-save-composer-icon,.dslca-save-draft-composer .dslca-save-draft-composer-icon{background:#78ca4f;bottom:0;border-radius:0 3px 3px 0;border-top:1px solid #b8e3a2;cursor:pointer;color:#fff;display:block;position:absolute;right:0;top:0;text-align:center;width:30px}.dslca-save-composer .dslca-save-composer-icon .dslca-icon{color:#fff;margin:0;position:relative;top:10px}.dslca-save-draft-composer-helptext{color:#adadad;white-space:nowrap}.dslca-save-draft-composer .dslca-save-draft-composer-icon .dslca-icon{color:#fff;margin:0;position:relative;top:10px}.dslca-no-content{position:absolute;display:none;border:2px dashed #5890e5;padding:35px 10px;width:100%;text-align:center}.dslca-add-modules-section-hook,.dslca-import-modules-section-hook,.dslca-no-content-primary{border-radius:3px;font-size:15px;line-height:1;font-family:'Open Sans',sans-serif}.dslc-modules-area-empty .dslca-no-content{display:block}.dslca-no-content-primary{color:#5890e5;display:inline-block;background:rgba(255,255,255,.75);margin:0;padding:13px}.dslca-no-content .dslca-icon{margin-right:10px}.dslc-modules-area.dslc-1-col .dslca-no-content-help-text,.dslc-modules-area.dslc-2-col .dslca-no-content-help-text{display:none}.dslc-modules-area.dslc-1-col .dslca-icon,.dslc-modules-area.dslc-2-col .dslca-icon{margin-right:0}.dslca-templates-actions{background:rgba(0,0,0,.3);position:absolute;bottom:0;left:0;right:0}.dslca-add-modules-section{text-align:center;width:1180px;max-width:100%;overflow:hidden;margin:30px auto 120px}.dslca-add-modules-section-hook,.dslca-import-modules-section-hook{background:#e5855f;color:#fff!important;cursor:pointer;display:block;float:left;padding:14px 0;text-decoration:none;width:80%}.dslca-add-modules-section-hook:hover,.dslca-import-modules-section-hook:hover{background:#FF9162;color:#fff}.dslca-add-modules-section .dslca-icon,.dslca-import-modules-section .dslca-icon{margin-right:10px;color:rgba(255,255,255,.5)}.dslca-import-modules-section-hook{float:right;width:18%}.dslc-modules-section{position:relative}.dslc-modules-section:hover{box-shadow:0 0 0 2px #EF7C5B inset}.dslc-modules-section.dslca-change-width-active{z-index:100}.dslca-manage-action{color:#fff;display:inline-block;text-decoration:none;font-size:12px;line-height:15px;text-align:center;padding:5px 6px;min-width:20px;margin-right:-2px}.dslca-icon{vertical-align:middle}.dslca-manage-action:first-child{padding-left:8px;border-radius:3px 0 0 3px}.dslca-manage-action:last-child{padding-right:8px;border-radius:0 3px 3px 0}.dslca-modules-section-manage{bottom:0;left:0;right:0;visibility:hidden;margin-bottom:0;padding-right:0;position:absolute;z-index:99998;width:100%;text-align:center}.dslca-modules-section-manage:hover{z-index:100000}.dslc-modules-section:hover .dslca-modules-section-manage{visibility:visible!important}.dslca-module-manage-inner,.dslca-modules-section-manage-inner{background:#f17c56;border-radius:3px;display:inline-block;line-height:1;position:relative;z-index:99999;vertical-align:middle;opacity:0;cursor:pointer}.dslca-modules-section-manage-inner{border-top-right-radius:0;border-top-left-radius:0}.dslca-modules-section-manage .dslca-manage-action:hover{background:#db6a3a}.dslca-module-manage-inner .dslca-manage-action:hover{background:#507FC9}.dslca-modules-section-placeholder{position:relative;background:#E5855F;height:2px;width:100%;margin:10px 0}.dslca-modules-section-placeholder .dslca-placeholder-help-text-inner{background:#E5855F}.dslca-placeholder-help-text{position:absolute;left:0;bottom:0;right:0;text-align:center}.dslca-placeholder-help-text-inner{background:#5890e5;border-radius:3px 3px 0 0;color:#fff;font-family:'Open Sans',sans-serif;font-style:12px;font-weight:700;display:inline-block;padding:5px 10px}.dslca-add-modules-area-hook{background:#5fb7e5;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:11px;font-family:'Open Sans',sans-serif;font-weight:700;line-height:1;margin-right:7px;padding:7px 10px;text-decoration:none;vertical-align:middle}.dslca-add-modules-area-hook:hover{color:#fff}.dslca-add-modules-area-hook .dslca-icon{margin-right:5px;color:rgba(255,255,255,.5);position:relative;top:1px}.dslc-modules-area{position:relative}.dslca-modules-area-drag-in-progress .dslc-modules-area{margin-right:1%!important;clear:none}.dslca-modules-area-manage{visibility:hidden;opacity:.5;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;bottom:0;position:absolute;left:-24px;top:0;margin-right:0;text-align:center;z-index:999999}.dslc-modules-area:hover .dslca-modules-area-manage{visibility:visible;opacity:.5}.dslc-modules-area .dslca-modules-area-manage:hover{opacity:1}.dslca-modules-area-manage.dslca-horizontal{top:50%}.dslc-modules-section.dslc-full .dslca-modules-area-manage{right:auto;left:0;margin-right:0}.dslca-modules-area-manage-inner{background:#b2b7bc;border-radius:3px 0 0 3px;border-right-width:0;display:inline-block;margin-top:10px;position:relative;z-index:99999}.dslca-horizontal .dslca-modules-area-manage-inner{margin-top:-47px}.dslc-modules-section.dslc-full .dslca-modules-area-manage-inner{border-radius:0 3px 3px 0}.dslca-modules-area-manage .dslca-manage-action{color:#fff;display:block;text-decoration:none;font-size:12px;line-height:16px;text-align:center;margin:0}.dslca-modules-area-manage-inner .dslca-manage-action:first-child{margin-left:0;margin-top:0;padding-top:6px;border-radius:3px 0 0}.dslca-modules-area-manage .dslca-manage-action:last-child{padding-bottom:6px;border-radius:0 0 0 3px}#dslc-content .dslca-modules-area-manage .dslca-manage-action:hover{color:#fff;background:#a4a5a9}#dslc-content .dslca-modules-area-manage .dslca-change-width-modules-area-hook{position:relative}#dslc-content .dslca-modules-area-manage .dslca-icon{font-size:12px}.dslca-change-width-module-options,.dslca-change-width-modules-area-options{background:#fff;border:1px solid #d9dcdf;border-radius:3px;display:none;padding:7px;position:absolute;top:-6px;left:25px;z-index:99999;width:122px}.dslca-change-width-module-options{top:24px;left:0;border-top-right-radius:0;border-top-left-radius:0;border-top:none;padding-bottom:18px}.dslca-change-width-modules-area-options:after,.dslca-change-width-modules-area-options:before{right:100%;top:18px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslca-change-width-modules-area-options:after{border-color:rgba(255,255,255,0);border-right-color:#fff;border-width:10px;margin-top:-10px}.dslca-change-width-modules-area-options:before{border-color:rgba(205,205,205,0);border-right-color:#cdcdcd;border-width:11px;margin-top:-11px}.dslca-change-width-module-options span,.dslca-change-width-modules-area-options span{background:#4785db;border-radius:3px;display:inline-block;font-family:'Open Sans',sans-serif;font-size:13px;font-weight:400;line-height:24px;max-width:44px;margin:1px;text-align:center;width:44px}.dslca-change-width-module-options span:hover,.dslca-change-width-modules-area-options span:hover{background:#6B9FF1}.dslca-change-width-module-options span:first-child,.dslca-change-width-modules-area-options span:first-child{background:0 0;color:#5e636a;display:inline-block;font-size:13px;margin-bottom:5px;max-width:none;width:auto}#dslc-content .dslca-module-manage .dslca-module-manage-hook:hover,.dslca-section-scroller-next .dslca-icon,.dslca-section-scroller-prev .dslca-icon{color:#fff}.dslc-module-front.dslc-1-col .dslca-change-width-module-options span[data-size="1"],.dslc-module-front.dslc-10-col .dslca-change-width-module-options span[data-size="10"],.dslc-module-front.dslc-11-col .dslca-change-width-module-options span[data-size="11"],.dslc-module-front.dslc-12-col .dslca-change-width-module-options span[data-size="12"],.dslc-module-front.dslc-2-col .dslca-change-width-module-options span[data-size="2"],.dslc-module-front.dslc-3-col .dslca-change-width-module-options span[data-size="3"],.dslc-module-front.dslc-4-col .dslca-change-width-module-options span[data-size="4"],.dslc-module-front.dslc-5-col .dslca-change-width-module-options span[data-size="5"],.dslc-module-front.dslc-6-col .dslca-change-width-module-options span[data-size="6"],.dslc-module-front.dslc-7-col .dslca-change-width-module-options span[data-size="7"],.dslc-module-front.dslc-8-col .dslca-change-width-module-options span[data-size="8"],.dslc-module-front.dslc-9-col .dslca-change-width-module-options span[data-size="9"],.dslc-modules-area.dslc-1-col .dslca-change-width-modules-area-options span[data-size="1"],.dslc-modules-area.dslc-10-col .dslca-change-width-modules-area-options span[data-size="10"],.dslc-modules-area.dslc-11-col .dslca-change-width-modules-area-options span[data-size="11"],.dslc-modules-area.dslc-12-col .dslca-change-width-modules-area-options span[data-size="12"],.dslc-modules-area.dslc-2-col .dslca-change-width-modules-area-options span[data-size="2"],.dslc-modules-area.dslc-3-col .dslca-change-width-modules-area-options span[data-size="3"],.dslc-modules-area.dslc-4-col .dslca-change-width-modules-area-options span[data-size="4"],.dslc-modules-area.dslc-5-col .dslca-change-width-modules-area-options span[data-size="5"],.dslc-modules-area.dslc-6-col .dslca-change-width-modules-area-options span[data-size="6"],.dslc-modules-area.dslc-7-col .dslca-change-width-modules-area-options span[data-size="7"],.dslc-modules-area.dslc-8-col .dslca-change-width-modules-area-options span[data-size="8"],.dslc-modules-area.dslc-9-col .dslca-change-width-modules-area-options span[data-size="9"]{background:#3B6FBE;box-shadow:1px 1px 3px rgba(0,0,0,.28) inset;cursor:default}.dslc-modules-area-empty .dslca-modules-area-manage{top:12px;bottom:auto}.dslc-modules-area-empty .dslca-modules-area-manage-inner{margin-top:0}.dslca-modules-area-placeholder{position:relative;background:#5890e5;height:2px;margin:10px;float:left}body.rtl .dslca-modules-area-placeholder{float:right}.dslca-module-manage{display:block;position:absolute;left:50%;margin-left:-47px;top:0;text-align:center;z-index:99999;line-height:1}.dslca-module-manage-inner{background:#5890e5}.dslca-module-manage-inner.dslca-dev-mode{background:#444;border-color:#333}#dslc-content .dslc-modules-area.dslc-1-col .dslca-module-manage .dslca-module-manage-hook,#dslc-content .dslc-modules-area.dslc-2-col .dslca-module-manage .dslca-module-manage-hook{margin-right:-2px}#dslc-content .dslca-module-manage .dslca-module-manage-hook:first-child{margin-top:0;border-radius:0 0 0 3px}#dslc-content .dslca-module-manage .dslca-module-manage-hook:last-child{margin-right:0!important;border-radius:0 0 3px}.dslca-section-scroller{position:relative;height:74px;margin-right:80px;overflow:hidden}.dslca-section-scroller-inner{position:absolute;top:0;left:0;bottom:0;width:999999px;text-align:left;-webkit-transition:left .3s ease-in-out;-moz-transition:left .3s ease-in-out;transition:left .3s ease-in-out}.dslca-prompt-modal-actions,.dslca-prompt-modal-msg{text-align:center}.dslca-section-scroller-content{display:inline-block;padding-right:80px}.dslca-section-scroller-fade{background:-moz-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(88,144,229,0)),color-stop(100%,rgba(70,116,185,1)));background:-webkit-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-o-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-ms-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:linear-gradient(to right,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#00004799', endColorstr='#5890e5', GradientType=1 );position:absolute;right:80px;width:20px;bottom:0;top:0;z-index:1}.dslca-section-scroller-nav{position:absolute;right:0;top:0;bottom:0;overflow:hidden;width:80px;font-size:30px}.dslca-section-scroller-nav>a{cursor:pointer;display:flex;justify-content:center;align-items:center;width:40px;position:absolute;left:0;top:0;bottom:0;text-decoration:none;outline:0!important;background:rgba(0,0,0,.2)}.dslca-section-scroller-nav>a:hover{background:rgba(0,0,0,.15)}.dslca-section-scroller-nav>a:active{background:rgba(0,0,0,.25)}.dslca-section-scroller-nav .dslca-section-scroller-next{left:auto;right:0}.dslca-modal{background:#fff;border-radius:3px;color:#444;display:none;padding:14px 17px;position:absolute;bottom:55px;-moz-box-shadow:0 1px 6px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 6px rgba(0,0,0,.2);box-shadow:0 1px 6px rgba(0,0,0,.2);z-index:9999991}.dslca-modal:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:7px;left:50%;margin-left:-7px}.dslca-prompt-modal-msg textarea{width:100%;min-height:80px;padding:5px;line-height:1.6em;font-size:13px;color:#848484}.dslca-prompt-modal-confirm-hook{margin-right:7px}.dslca-prompt-modal{background:rgba(255,255,255,.8);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999;height:100%}.dslca-prompt-modal-content{background:#fff;border-radius:3px;top:50%;position:relative;width:400px;margin:-123px auto 0;padding:30px 20px;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12)}.dslca-prompt-modal-descr,.dslca-prompt-modal-title{display:block;font-family:'Open Sans',sans-serif;margin-bottom:22px}.dslca-prompt-modal-title{color:#424242;font-size:16px;font-weight:700;line-height:1}.dslca-prompt-modal-descr{color:#8a8a8a;font-size:13px;font-weight:400;line-height:22px}.dslca-prompt-modal-descr textarea{width:100%;min-height:80px;padding:5px;font-size:11px}.dslca-prompt-modal-actions .dslc-icon{color:rgba(255,255,255,.5);margin-right:6px}.dslca-accordion-plain-content,.dslca-module-options-front,.dslca-module-options-front-backup,.dslca-tab-plain-content{display:none}#dslca-code,#dslca-content-for-search,.dslca-module-code,.dslca-module-edit-option-size,.dslca-section-code{display:none!important}#dslca-wysiwyg-actions-cancel-hook,#dslca-wysiwyg-actions-save-hook{border-radius:3px;display:inline-block;padding:13px 10px;position:relative;color:#fff;font-family:'Open Sans',sans-serif;font-weight:700;cursor:pointer;font-size:12px;line-height:1}#dslca-wysiwyg{position:absolute;top:0;left:-110%;z-index:99999;height:200px;padding-bottom:60px}#dslcawysiwyg{overflow:hidden;height:100px}#wp-dslcawysiwyg-editor-container{height:82%}#dslc-content .dslc-module-front.dslca-module-wysiwyg-active{opacity:0;min-height:200px}#dslca-wysiwyg-actions{bottom:0;position:absolute;color:#fff;left:0;line-height:1;right:0;text-align:right}#dslca-wysiwyg-actions-save-hook{background:#5bd63b;text-align:center}#dslca-wysiwyg-actions-cancel-hook{background:#e55858;text-align:center}#dslc-content .dslca-wysiwyg-actions-edit{position:absolute;top:0;right:0;overflow:hidden}#dslc-content .dslca-wysiwyg-actions-edit-hook{background:#5890e5;color:#fff;cursor:pointer;display:block;font-size:12px;font-family:'Open Sans',sans-serif;line-height:1;font-weight:700;position:relative;padding:7px 10px;border-radius:0 0 0 3px;letter-spacing:0}#dslc-content .dslca-wysiwyg-actions-edit-hook:hover{background:#5080C9}body.dslca-enabled #mce-modal-block,body.dslca-enabled #mceModalBlocker,body.dslca-enabled #wp-link-backdrop,body.dslca-enabled .ui-dialog,body.dslca-enabled .ui-widget-overlay{z-index:99999999!important}body.dslca-enabled #dslcawpeditor_forecolor_menu,body.dslca-enabled #menu_dslcawpeditor_dslcawpeditor_formatselect_menu,body.dslca-enabled #wp-link-wrap,body.dslca-enabled .clearlooks2,body.dslca-enabled .mce-menu,body.dslca-enabled .mce-panel{z-index:999999991!important}body.dslca-enabled .mce_fullscreen{display:none}@keyframes dslcBounceIn{0%{-webkit-transform:scale(0);-moz-transform:scale(0);transform:scale(0);opacity:0}70%{-webkit-transform:scale(1.05);-moz-transform:scale(1.05);transform:scale(1.05)}90%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}100%{opacity:1}}@-moz-keyframes dslcBounceIn{0%{-moz-transform:scale(0);transform:scale(0);filter:alpha(opacity=0);opacity:0}70%{-moz-transform:scale(1.05);transform:scale(1.05)}90%{-moz-transform:scale(1);transform:scale(1)}100%{filter:alpha(opacity=100);opacity:1}}@-webkit-keyframes dslcBounceIn{0%{-webkit-transform:scale(0);transform:scale(0);filter:alpha(opacity=0);opacity:0}70%{-webkit-transform:scale(1.05);transform:scale(1.05)}90%{-webkit-transform:scale(1);transform:scale(1)}100%{filter:alpha(opacity=100);opacity:1}}@keyframes dslcBounceOut{0%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(.9);-moz-transform:scale(.9);transform:scale(.9)}}@-moz-keyframes dslcBounceOut{0%{-moz-transform:scale(1);transform:scale(1)}100%{-moz-transform:scale(.9);transform:scale(.9)}}@-webkit-keyframes dslcBounceOut{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes dslcBounceOut2{0%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}30%{-webkit-transform:scale(1.01);-moz-transform:scale(1.01);transform:scale(1.01)}100%{-webkit-transform:scale(.9);-moz-transform:scale(.9);transform:scale(.9)}}@-moz-keyframes dslcBounceOut2{0%{-moz-transform:scale(1);transform:scale(1)}30%{-moz-transform:scale(1.01);transform:scale(1.01)}100%{-moz-transform:scale(.9);transform:scale(.9)}}@-webkit-keyframes dslcBounceOut2{0%{-webkit-transform:scale(1);transform:scale(1)}30%{-webkit-transform:scale(1.01);transform:scale(1.01)}100%{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@-moz-keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@-webkit-keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@keyframes dslcRotate{0%{-webkit-transform:rotate(0);-moz-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes dslcRotate{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dslcRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.dslc-modules-area.dslca-init-animation,.dslca-save-composer.dslca-init-animation,.dslca-save-draft-composer.dslca-init-animation{display:block;opacity:1;-webkit-animation-name:dslcBounceIn;-moz-animation-name:dslcBounceIn;animation-name:dslcBounceIn;animation-duration:.6s;-webkit-animation-duration:.6s}.dslc-editable-content.dslc-pen,.dslc-editable-content:focus{outline:rgba(0,0,0,.2) dashed 1px}span.dslca-manage-action,span.dslca-manage-action:hover,span.dslca-manage-action:hover *{cursor:pointer}.dslca-module-being-edited .dslca-module-manage{display:none!important}.dslc-notification .dslca-refresh-module-hook{right:35px}.dslca-container .dslca-module-edit-option-slider,.dslca-container .dslca-modules-section-edit-option-slider{position:relative}.dslca-modules-edit-field-slider{display:none}.dslca-container .dslca-module-edit-field-slider,.dslca-container .dslca-modules-section-edit-field-slider{background:#6c9fed;border-radius:5px;position:absolute;height:5px;left:15px;right:15px;margin-top:15px}.dslca-container .dslca-module-edit-field-slider .ui-slider-handle,.dslca-container .dslca-modules-section-edit-field-slider .ui-slider-handle{background:#3b6fbe;border:1px solid #3565ad;border-radius:50%;top:-6px;position:absolute;width:15px;height:15px;margin-left:-7px;cursor:ew-resize}.dslca-module-edit-field-numeric-wrap,.dslca-modules-section-edit-field-numeric-wrap{position:relative}.dslca-module-edit-field-numeric-ext,.dslca-modules-section-edit-field-numeric-ext{position:absolute;color:rgba(255,255,255,.8);font-size:12px;right:15px;top:50%;margin-top:-5px;line-height:1}.dslca-module-edit-option-slider .dslca-module-edit-field-numeric-ext{right:10px;top:14px}.dslca-separator-empty{height:1px;line-height:0;border-bottom:1px solid rgba(0,0,0,.06);text-align:center;position:absolute;top:50%;left:0;right:0}.dslca-separator-empty span{background:#fff;border-radius:3px;color:#a0a0a0;display:inline-block;font-family:"Open Sans",sans-serif;font-size:10px;line-height:1;padding:3px 6px;position:relative;top:-7px}.dslca-wp-editor{background:rgba(0,0,0,.7);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999}.dslca-wp-editor-inner{background:#fff;position:fixed;top:30px;left:30px;right:30px;bottom:30px;padding:50px}.dslca-wp-editor-actions,.dslca-wp-editor-notification{margin-top:30px}#wp-dslcawpeditor-editor-container{border:1px solid #ddd}.dslca-invisible-overlay{display:block;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99998}.dslca-disable-selection .dslca-invisible-overlay{display:block}.dslca-loading-modal{background:rgba(0,0,0,.75);position:fixed;top:0;left:0;right:0;bottom:200px;z-index:999999}.dslca-loading-modal-content{position:relative;top:200px;width:580px;margin:0 auto}.dslca-loading-modal-msg{background:#fff;border-radius:3px;color:#707070;font-size:14px;font-family:'Open Sans',sans-serif;font-weight:400;line-height:1.5;padding:35px 25px;text-align:center;margin-bottom:10px;-moz-box-shadow:0 0 7px #000;-webkit-box-shadow:0 0 7px #000;box-shadow:0 0 7px #000}.dslca-loading-modal-actions{text-align:right}.dslca-loading-modal-cancel-hook,.dslca-loading-modal-confirm-hook{background:#e55f5f;border-radius:3px;cursor:pointer;color:#fff;display:inline-block;font-size:14px;font-family:'Open Sans',sans-serif;font-weight:700;line-height:1;padding:13px 15px}.dslca-loading-modal-confirm-hook{background:#4cc12d;margin-right:7px}.dslca-module-edit-field-ttip-content{display:none}.dslca-module-edit-field-icon-ttip-hook,.dslca-module-edit-field-ttip-hook{background:#3b6fbe;color:#5890e5;cursor:pointer;border-radius:50%;position:relative;display:inline-block;width:13px;height:13px;margin-left:10px;vertical-align:bottom}.dslca-module-edit-field-icon-ttip-hook .dslca-icon,.dslca-module-edit-field-ttip-hook .dslca-icon{position:absolute;left:5px;font-weight:400;font-size:10px;top:1px}.dslca-module-edit-field-icon-ttip,.dslca-module-edit-field-ttip{background:#fff;color:#8a8a8a;font-family:'Opens Sans',sans-serif;font-size:13px;line-height:1.4;display:none;border-radius:3px;padding:20px 25px;border:1px solid rgba(0,0,0,.12);position:absolute;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);text-align:center;z-index:999999}.dslca-module-edit-field-icon-ttip a,.dslca-module-edit-field-ttip a{color:#5890e5;font-weight:700;text-decoration:none}.dslca-module-edit-field-icon-ttip:after,.dslca-module-edit-field-icon-ttip:before,.dslca-module-edit-field-ttip:after,.dslca-module-edit-field-ttip:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslca-module-edit-field-icon-ttip:after,.dslca-module-edit-field-ttip:after{border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:8px;left:50%;margin-left:-8px}.dslca-module-edit-field-icon-ttip:before,.dslca-module-edit-field-ttip:before{border-color:rgba(224,224,224,0);border-top-color:#d2d2d2;border-width:9px;left:50%;margin-left:-9px}.dslca-module-edit-field-ttip-close{position:absolute;background:#e55f5f;top:-9px;right:-9px;width:18px;line-height:18px;border-radius:18px;color:#fff;font-size:11px}.dslca-module-edit-option-image,.dslca-modules-section-edit-option-upload{min-width:auto}.dslca-module-edit-field-image-add-hook,.dslca-module-edit-field-image-remove-hook,.dslca-modules-section-edit-field-image-add-hook,.dslca-modules-section-edit-field-image-remove-hook{background:#3b6fbe;border:1px solid #3565ad;border-radius:3px;color:#a0c0f0;cursor:pointer;display:inline-block;font-size:12px;font-family:'Open Sans',sans-serif;font-weight:400;padding:9px 12px;line-height:1;white-space:nowrap}.dslca-module-edit-field-image-add-hook .dslca-icon,.dslca-module-edit-field-image-remove-hook .dslca-icon,.dslca-modules-section-edit-field-image-add-hook .dslca-icon,.dslca-modules-section-edit-field-image-remove-hook .dslca-icon{margin-right:7px}#dslc-footer,#dslc-header{position:relative}.dslc-hf-block-overlay{display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(88,144,229,.9);z-index:99999;text-align:center;opacity:0;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.dslc-hf-block-overlay:hover{opacity:1}.dslc-hf-block-overlay-button,.dslc-hf-block-overlay-text{display:inline-block;color:#fff;font-size:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;text-decoration:none}.dslc-hf-block-overlay-text{font-size:13px;opacity:.5;margin-top:5px}body.dslca-composer-hidden .dslc-module-front,body.dslca-composer-hidden .dslc-modules-area,body.dslca-composer-hidden .dslc-modules-section{box-shadow:none!important;border:none!important}.dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage,.dslca-composer-hidden .dslca-add-modules-section,body.dslca-composer-hidden .dslc-modules-section .dslca-modules-section-manage,body.dslca-composer-hidden .dslca-module-manage,body.dslca-composer-hidden .dslca-modules-area-manage{display:none!important}.dslca-loading{position:absolute;top:15px;left:25px;display:none}.followingBallsGWrap{width:64px;height:5px}.followingBallsG{background-color:rgba(255,255,255,.5);position:absolute;top:0;left:0;width:5px;height:5px;-moz-border-radius:3px;-moz-animation-name:bounce_followingBallsG;-moz-animation-duration:2.3s;-moz-animation-iteration-count:infinite;-moz-animation-direction:linear;-webkit-border-radius:3px;-webkit-animation-name:bounce_followingBallsG;-webkit-animation-duration:2.3s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:linear;-ms-border-radius:3px;-ms-animation-name:bounce_followingBallsG;-ms-animation-duration:2.3s;-ms-animation-iteration-count:infinite;-ms-animation-direction:linear;-o-border-radius:3px;-o-animation-name:bounce_followingBallsG;-o-animation-duration:2.3s;-o-animation-iteration-count:infinite;-o-animation-direction:linear;border-radius:3px;animation-name:bounce_followingBallsG;animation-duration:2.3s;animation-iteration-count:infinite;animation-direction:linear}.followingBallsG_1{-moz-animation-delay:0s;-webkit-animation-delay:0s;-ms-animation-delay:0s;-o-animation-delay:0s;animation-delay:0s}.followingBallsG_2{-moz-animation-delay:.23s;-webkit-animation-delay:.23s;-ms-animation-delay:.23s;-o-animation-delay:.23s;animation-delay:.23s}.followingBallsG_3{-moz-animation-delay:.46s;-webkit-animation-delay:.46s;-ms-animation-delay:.46s;-o-animation-delay:.46s;animation-delay:.46s}.followingBallsG_4{-moz-animation-delay:.69s;-webkit-animation-delay:.69s;-ms-animation-delay:.69s;-o-animation-delay:.69s;animation-delay:.69s}@-moz-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-webkit-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-ms-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-o-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}.dslca-container-loader{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.2);display:none}.dslca-container-loader-inner{position:absolute;top:10px;left:15px}body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Excerpt],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Meta],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Downloads_Button],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Gallery_Slider],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Project_Slider],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Staff_Social]{display:none!important}.dslca-module.dslca-origin[data-display-module=true]{display:inline-block}.dslca-module.dslca-exclude,.dslca-module.dslca-origin[data-display-module=false]{display:none}.media-modal{z-index:999999999!important}.media-modal-backdrop{z-index:999999998!important}.dslca-container .dslca-activate-composer-hook,.dslca-container .dslca-close-composer-hook,.dslca-container .dslca-hide-composer-hook,.dslca-container .dslca-show-composer-hook,.dslca-pseudo-panel .dslca-pseudo-close-composer-hook,.dslca-pseudo-panel .dslca-pseudo-hide-composer-hook{background:#e55f5f;border-radius:3px;bottom:4px;color:#fff;cursor:pointer;display:block;font-size:11px;font-family:Roboto,sans-serif;font-weight:900;line-height:1;padding:11px 12px;text-transform:uppercase;text-decoration:none;white-space:nowrap;float:left;margin-left:5px}.dslca-container .dslca-close-composer-hook:hover{background:#f27562}.dslca-container .dslca-hide-composer-hook,.dslca-pseudo-panel .dslca-pseudo-hide-composer-hook{background:#06b2ac}.dslca-container .dslca-show-composer-hook{background:#9268a9;display:none}.dslca-activate-composer-hook:hover,.dslca-activate-composer-hook:visited,.dslca-close-composer-hook:hover,.dslca-close-composer-hook:visited{color:#fff}.dslca-activate-composer-hook{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;background:#54c13f;color:#fff;position:fixed;z-index:99999;right:5px;bottom:5px}.dslca-activate-composer-hook:hover{background:#40D71F}.dslca-activate-composer-hook.dslca-position-left{right:auto;left:5px}.dslca-activate-composer-hook .dslca-icon,.dslca-container .dslca-close-composer-hook .dslca-icon,.dslca-container .dslca-hide-composer-hook .dslca-icon,.dslca-container .dslca-show-composer-hook .dslca-icon,.dslca-pseudo-close-composer-hook .dslca-icon,.dslca-pseudo-hide-composer-hook .dslca-icon{color:rgba(255,255,255,.66);margin-right:5px}body.rtl .dslca-templates .dslca-go-to-section-hook .dslca-icon,body.rtl .dslca-templates .dslca-open-modal-hook .dslca-icon{margin-right:0;margin-left:9px}body.rtl .dslca-section-title-filter .dslca-icon{margin-left:0;margin-right:10px}body.rtl .dslca-activate-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-close-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-hide-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-show-composer-hook .dslca-icon{margin-right:0;margin-left:5px}body.rtl .dslca-module .dslca-icon{margin-right:0;margin-left:11px}body.rtl .dslca-header .dslca-options-filter-hook .dslca-icon{margin-right:0;margin-left:4px}body.rtl .dslca-prompt-modal-actions .dslc-icon{margin-right:0;margin-left:6px}body.rtl .dslca-module-edit-option-checkbox-hook .dslca-icon,body.rtl .dslca-no-content .dslca-icon{margin-right:0;margin-left:10px}body.rtl .dslca-module-edit-options-inner,body.rtl .dslca-modules-section-edit-options-inner{overflow-x:auto}body.rtl .dslca-module-edit-option,body.rtl .dslca-modules-section-edit-option{float:right}.dslca-module-edit-options-wrapper,.dslca-modules-section-edit-options-wrapper,.dslca-pseudo-module-edit-options-wrapper{display:table-cell;padding:0}.dslca-module-edit-options-inner,.dslca-modules-section-edit-options-inner{overflow-x:scroll;padding-top:4px}.dslca-styling-presets{position:absolute;top:0;right:0;margin-right:15px;margin-top:15px}.dslca-drag-not-in-progress .dslc-modules-section .dslca-modules-section-manage-inner{-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dslca-drag-not-in-progress .dslc-modules-section:hover .dslca-modules-section-manage-inner{opacity:1}.dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage-inner{opacity:0}.dslca-drag-not-in-progress #dslc-content .dslc-module-front .dslca-module-manage-inner:hover,.dslca-drag-not-in-progress #dslc-content .dslc-module-front:hover .dslca-module-manage-inner,.dslca-drag-not-in-progress #dslc-content .dslc-module-front:hover .dslca-wysiwyg-actions-edit{opacity:1}.dslca-drag-not-in-progress .dslc-module-front .dslca-wysiwyg-actions-edit,.dslca-drag-not-in-progress .dslc-modules-area .dslca-modules-area-manage-inner{opacity:0}.dslca-drag-not-in-progress .dslc-modules-area .dslca-modules-area-manage-inner:hover,.dslca-drag-not-in-progress .dslc-modules-area:hover .dslca-modules-area-manage-inner{opacity:1}.dslca-modal.dslca-modal-icons{width:70%;position:fixed;padding:0;overflow:scroll;top:2%;left:50%!important;visibility:visible;transform:translate(-50%,0);z-index:100001}.dslca-prompt-modal-custom{background:rgba(255,255,255,.8);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:100000;height:100%}.dslca-modal-icons .modal-content{height:100%}.dslca-modal-icons .dslc-icons-grid{list-style:none;margin:0;padding:0;text-align:left}.dslca-modal-icons .icon-item{display:inline-block;width:12.4%;min-height:120px;padding:0;margin:0 0 0 -1px;vertical-align:top;text-align:center;border-left:1px solid rgba(155,155,155,.05);border-bottom:1px solid rgba(155,155,155,.05)}.dslca-modal-icons .icon-item:hover{-webkit-box-shadow:0 1px 5px 0 rgba(68,68,68,.52);-moz-box-shadow:0 1px 5px 0 rgba(68,68,68,.52);box-shadow:0 1px 5px 0 rgba(68,68,68,.52);cursor:pointer}.dslca-modal-icons .icon-item:active{-webkit-box-shadow:0 1px 5px 0 #5890e5 inset;-moz-box-shadow:0 1px 5px 0 #5890e5 inset;box-shadow:0 1px 5px 0 #5890e5 inset}.dslca-modal-icons .icon-item_icon{display:inline-block;width:100%;padding:28px 0 16px;font-size:24px;opacity:.7}.dslca-modal-icons .icon-item:hover .icon-item_icon{opacity:1}.dslca-modal-icons .icon-item_name{opacity:.35;display:inline-block;font-family:'Open Sans',sans-serif;font-size:12px;line-height:1.25;padding:5px 8px 12px}body.dslca-enabled.dslc-res-phone #page-builder-preview-area,body.dslca-enabled.dslc-res-tablet #page-builder-preview-area{display:block;margin:0 auto;position:relative;border:14px solid #000;border-top-width:60px;border-radius:16px;top:40px}body.dslca-enabled.dslc-res-phone #page-builder-preview-area{width:480px;max-width:767px}body.dslca-enabled.dslc-res-tablet #page-builder-preview-area{width:768px;min-width:768px;max-width:1024px}body.dslca-enabled.dslc-res-phone #page-builder-frame,body.dslca-enabled.dslc-res-tablet #page-builder-frame{display:block;position:relative}html.dslc-responsive-preview{background:#61666A}#page-builder-preview-area.ui-resizable-resizing .ui-resizable-e{width:100%}#page-builder-preview-area .ui-resizable-e{cursor:e-resize;height:100%;right:-14px;width:14px;top:0}#page-builder-preview-area .ui-resizable-handle{display:block;font-size:.1px;position:absolute}.dslca-module-edit-field-colorpicker,.dslca-modules-section-edit-field-colorpicker{display:block!important;cursor:pointer;position:relative;z-index:1}.dslca-module-edit-option-box-shadow-color,.dslca-module-edit-option-text-shadow-color{display:inline-block!important;cursor:pointer;position:relative;z-index:1;width:auto}body .sp-palette-container{border-right:1px solid #3e3e3e}body .sp-palette .sp-thumb-el{border:none;height:25px;margin:1px;width:25px}.dslca-pseudo-panel{bottom:0;left:0;position:fixed;right:0;z-index:99999;-webkit-transition:bottom .3s;-moz-transition:bottom .3s;transition:bottom .3s}.dslca-pseudo-header{position:absolute;z-index:100;min-height:38px;bottom:100%;left:0}.dslca-pseudo-module-edit-label{width:80px;background:#6c9fed;border-radius:3px}.dslca-pseudo-module-edit-field{border:0;width:100%;height:33px}.dslca-pseudo-module-edit-option{opacity:0;transition:opacity .3s 0s ease-in}.dslca-pseudo-module-edit-option:nth-child(2){transition-delay:.15s}.dslca-pseudo-module-edit-option:nth-child(3){transition-delay:.25s}.dslca-pseudo-module-edit-option:nth-child(4){transition-delay:.5s}.dslca-pseudo-module-edit-option:nth-child(5){transition-delay:.75s}.dslca-pseudo-panel.show .dslca-pseudo-module-edit-option{opacity:1}.lc-shake-effect.active{animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;transform:translate3d(0,0,0);backface-visibility:hidden;perspective:1000px}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}body.dslca-drag-in-progress .lc-scroll-top-area,body.dslca-new-module-drag-in-progress .lc-scroll-top-area{position:fixed;top:0;z-index:99999;left:0;width:100%;height:80px}body.dslca-drag-in-progress .lc-scroll-bottom-area,body.dslca-new-module-drag-in-progress .lc-scroll-bottom-area{position:fixed;bottom:0;left:0;z-index:99999;width:100%;height:140px}div#scroller-stopper{position:absolute;bottom:-33px;left:0;width:100%;height:83px}.dslc-control-toggle:hover,.dslca-module-edit-field-icon-ttip-hook .dslca-icon,.dslca-module-edit-field-icon-ttip-hook:hover,.dslca-module-edit-field-ttip-close,.dslca-module-edit-field-ttip-close .dslc-icon,.dslca-module-edit-field-ttip-hook .dslca-icon,.dslca-module-edit-field-ttip-hook:hover,.dslca-module-edit-option-checkbox-hook .dslca-icon:hover,.dslca-module-edit-option-text-align-hook .dslca-icon,.dslca-modules-section-edit-field-image-add-hook .dslca-icon:hover,.dslca-modules-section-edit-field-image-add-hook:hover,.dslca-modules-section-edit-field-image-remove-hook .dslca-icon:hover,.dslca-modules-section-edit-field-image-remove-hook:hover,.dslca-modules-section-edit-option-checkbox-hook .dslca-icon,.dslca-options-iconbutton .dslca-icon,.dslca-options-iconbutton:hover,.dslca-prompt-modal-cancel-hook:hover,.dslca-row-edit-cancel:hover,.dslca-row-edit-save:hover{cursor:pointer}.mce-tinymce .mce-btn button:hover{background-color:#e3e3e3;border-color:#ccc}.dslca_editor_messages_section{position:fixed;bottom:0;width:100%;height:40px;font-family:'Open Sans',sans-serif;color:#fff;font-weight:100;background:#404a58}.dslca_editor_messages_title{float:left;background:#303030;color:#fff;font-size:14px;line-height:22px;text-transform:uppercase;padding:12px 17px;text-align:center;display:block;letter-spacing:1px}a.dslca_editor_messages_title:hover{color:#fff}#editor_messages{font-size:14px;text-overflow:ellipsis;white-space:nowrap;margin:0!important;padding:0!important;opacity:0}#editor_messages li{position:relative;padding:13px 20px 11px 50px!important;margin:0;line-height:1;font-size:16px}#editor_messages a{text-decoration:none;display:block;position:absolute;left:0;top:0;width:100%;height:100%}#editor_messages strong{font-weight:500}#editor_messages .dslc-icon{font-size:19px;margin-right:10px;position:absolute;left:20px;top:12px}.dslca_editor_messages_hide{float:right;padding:12px 17px;background:#283546;font-size:14px;text-align:center;color:#fff;display:none}.dslca_editor_messages_hide .dslc-icon{font-size:17px;margin-right:10px}a.dslca_editor_messages_hide:hover{color:#fff}.dslca-module-edit-option-box-shadow-single .wp-picker-holder,.dslca-module-edit-option-color .wp-picker-holder,.dslca-module-edit-option-text-shadow-single .wp-picker-holder,.dslca-modules-section-edit-option .wp-picker-holder{position:fixed;margin-top:-315px;z-index:1}body .dslca-module-edit-option-box-shadow-single input[type=text].dslca-module-edit-option-box-shadow-color,body .dslca-module-edit-option-color input[type=text].dslca-module-edit-field-colorpicker,body .dslca-module-edit-option-text-shadow-single input[type=text].dslca-module-edit-option-text-shadow-color,body .dslca-modules-section-edit-option input[type=text].dslca-modules-section-edit-field-colorpicker{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.7),0 0 7px rgba(0,0,0,.28),4px 3px 6px rgba(0,0,0,.1);padding:0;line-height:31px;text-align:center;font-size:14px;min-height:33px}.dslca-module-edit-option-box-shadow-single .wp-picker-clear,.dslca-module-edit-option-color .wp-picker-clear,.dslca-module-edit-option-text-shadow-single .wp-picker-clear,.dslca-modules-section-edit-option .wp-picker-clear{display:none}.dslca-module-edit-option-box-shadow-single .wp-color-result,.dslca-module-edit-option-color .wp-color-result,.dslca-module-edit-option-text-shadow-single .wp-color-result,.dslca-modules-section-edit-option .wp-color-result{position:absolute;top:53px;z-index:2;right:10px;height:33px;left:16px;opacity:0}.dslca-module-edit-option-color .wp-picker-container input[type=text].wp-color-picker,.dslca-modules-section-edit-option .wp-picker-container input[type=text].wp-color-picker{width:100%!important;font-family:inherit;margin:inherit}.dslca-module-edit-option-box-shadow-single .wp-picker-container input[type=text].wp-color-picker,.dslca-module-edit-option-text-shadow-single .wp-picker-container input[type=text].wp-color-picker{width:100px;font-family:'Open Sans',sans-serif}.wp-picker-open+.wp-picker-input-wrap{vertical-align:middle!important}.dslca-module-edit-option-box-shadow-single .iris-picker.iris-border,.dslca-module-edit-option-color .iris-picker.iris-border,.dslca-modules-section-edit-option .iris-picker.iris-border{border-top-right-radius:3px;border-top-left-radius:3px}.dslca-colorpicker-apply{background:#f1f1f1;border-radius:0 0 3px 3px;color:#444;cursor:pointer;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:600;line-height:1;padding:10px 0;text-decoration:none;z-index:1;position:absolute;bottom:-36px;left:-1px;width:100%;display:block;border:1px solid #FFF}.dslca-module-edit-option-box-shadow-single .iris-picker .iris-palette:last-child,.dslca-module-edit-option-color .iris-picker .iris-palette:last-child,.dslca-modules-section-edit-option .iris-picker .iris-palette:last-child{position:relative;background:linear-gradient(rgba(255,255,255,.4) 0,rgba(255,255,255,.6) 100%),url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==)!important}.dslca-module-edit-option-box-shadow-single .iris-picker .iris-palette:last-child:before,.dslca-module-edit-option-color .iris-picker .iris-palette:last-child:before,.dslca-modules-section-edit-option .iris-picker .iris-palette:last-child:before{content:'×';position:absolute;left:0;right:0;top:0;bottom:0;display:block;text-align:center;vertical-align:middle;color:red;font-size:20px;line-height:27px}
|
1 |
+
.dslc-clear,.dslc-clearfix:after,.dslc-module-heading:after{clear:both}html{top:-32px;position:relative}#wpwrap{overflow:hidden}body{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}body.toplevel_page_livecomposer_editor{background:#464646}body div.mce-inline-toolbar-grp.mce-arrow-up{margin-top:48px}.dslca-editable-content,.dslca-editable-content *,.inline-editor,.inline-editor *,a[contenteditable=true],div[contenteditable=true],h1[contenteditable=true],h2[contenteditable=true],h3[contenteditable=true],h4[contenteditable=true],h5[contenteditable=true],h6[contenteditable=true],span[contenteditable=true]{-webkit-touch-callout:text;-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}body .dslca-editable-content:hover,body .dslca-editable-content:hover *,body .inline-editor:hover,body .inline-editor:hover *{cursor:text}div:hover,div>span:hover,span>span:hover{cursor:default}body a{text-decoration:none}body a:focus{color:inherit;box-shadow:none}#dslc-preview-error{text-align:center;padding:160px 0 0;text-transform:uppercase;letter-spacing:2px}.dslc-clearfix:after,.dslc-clearfix:before,.dslc-module-heading:after,.dslc-module-heading:before{content:" ";display:table}.dslc-fl{float:left}.dslc-fr{float:right}.dslc-no-float{float:none!important}.dslca-container *{padding:0;margin:0;border:none;outline:0}.dslca-disable-selection{-ms-user-select:none!important;-moz-user-select:-moz-none!important;-khtml-user-select:none!important;-webkit-user-select:none!important;user-select:none!important}.dslca-container p{margin-bottom:20px}.dslca-container input[type=text],.dslca-container input[type=number],.dslca-container select,.dslca-container textarea{background:rgba(255,255,255,.1);border:0;color:#fff;padding:7px 10px;font-family:'Open Sans',sans-serif;font-size:12px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.dslca-container,.dslca-container *,.dslca-container ::after,.dslca-container ::before,.dslca-module-manage,.dslca-module-manage *,.dslca-module-manage ::after,.dslca-module-manage ::before,.dslca-sections{box-sizing:border-box}.dslca-container .dslca-module-edit-option-slider input[type=number]{padding-right:30px}.dslca-container input[type=text],.dslca-container input[type=number],.dslca-container input[type=email]{height:auto}.dslca-container select,.dslca-modules-section-edit-option select{line-height:12px;padding:6px 10px;min-height:32px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;background:url(../../images/dropdown-arrow.png) 90% 55%/7px no-repeat #6c9fed}.dslca-module-edit-option-select .dslca-icon,.dslca-modules-section-edit-option-select .dslca-icon{position:absolute;right:30px;top:77px;cursor:pointer}.dslca-container input[type=submit]{background:#6ba253;border:0;color:#fff;cursor:pointer;padding:8px 10px;line-height:17px}.dslca-container{font-family:'Open Sans',sans-serif;bottom:0;color:#fff;left:0;position:fixed;right:0;z-index:99999;-webkit-transition:bottom .3s;-moz-transition:bottom .3s;transition:bottom .3s;margin-bottom:40px}.dslca-show-js-error-hook{padding:10px;bottom:-1px;display:inline-block;color:rgba(199,199,199,.64)!important;visibility:hidden;float:left}.dslca-show-js-error-hook:hover{color:#ff4040}.dslca-show-js-error-hook .dslca-icon{color:#ff4040;margin-right:5px;margin-left:8px}#dslca-js-errors-report{display:none}.dslca-error-report{display:block;overflow:scroll;text-align:left;white-space:nowrap;font-size:12px;max-height:120px;-webkit-touch-callout:text;-webkit-user-select:text;-khtml-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.dslca-error-report:hover{cursor:text}.dslca-editable-content>p:only-child{margin-bottom:0!important}.dslca-header{position:absolute;min-height:38px;bottom:100%;left:0}.dslca-header .dslca-currently-editing{position:absolute;bottom:45px;left:5px;background-color:rgba(71,70,70,.49);color:rgba(255,255,255,.5);padding:6px 10px;border-radius:3px;font-weight:400;font-family:'Open Sans',sans-serif;font-size:10px;line-height:1;display:none;white-space:nowrap;letter-spacing:.4px;text-transform:uppercase;cursor:pointer}.dslca-header .dslca-currently-editing .dslca-icon{margin-right:5px}.dslca-header .dslca-currently-editing strong{color:#fff}.dslca-header .dslca-go-to-section-hook,.dslca-header .dslca-options-filter-hook,.dslca-header .dslca-row-options-filter-hook,.dslca-pseudo-header .dslca-pseudo-options-filter-hook{bottom:0;background:#313131;border-radius:3px 3px 0 0;color:#adadad;cursor:pointer;display:block;float:left;font-size:13px;font-family:'Open Sans',sans-serif;font-weight:600;line-height:1;padding:13px 15px;position:relative}.dslca-header .dslca-options-filter-hook,.dslca-header .dslca-row-pseudo-options-filter-hook,.dslca-pseudo-options-filter-hook{display:none;margin-right:3px}.dslca-header .dslca-go-to-section-hook.dslca-active,.dslca-header .dslca-options-filter-hook.dslca-active,.dslca-header .dslca-row-options-filter-hook.dslca-active,.dslca-pseudo-header .dslca-pseudo-options-filter-hook.dslca-active{border-top-color:#4777c2;background:#3b6fbe;color:#fff;cursor:default}.dslca-header .dslca-options-filter-hook .dslca-icon,.dslca-header .dslca-row-options-filter-hook .dslca-icon,.dslca-pseudo-header .dslca-pseudo-options-filter-hook .dslca-icon{margin-right:4px}.dslca-header .dslca-options-filter-hook.dslca-active,.dslca-header .dslca-row-options-filter-hook.dslca-active,.dslca-pseudo-header .dslca-pseudo-options-filter-hook.dslca-active{background:#5890e5}.dslca-header .dslca-go-to-section-templates.dslca-active{border-top-color:#bf7671;background:#a94640}.dslca-header .dslca-go-to-section-hook .dslca-icon{font-weight:400}.dslca-module-edit-actions,.dslca-pseudo-module-edit-actions,.dslca-row-edit-actions{display:none;float:left;margin-left:4px;margin-top:1px}.dslca-module-edit-cancel,.dslca-module-edit-save,.dslca-prompt-modal-cancel-hook,.dslca-prompt-modal-confirm-hook,.dslca-pseudo-module-edit-cancel,.dslca-pseudo-module-edit-save,.dslca-row-edit-cancel,.dslca-row-edit-save,.dslca-wp-editor-cancel-hook,.dslca-wp-editor-save-hook{background:#78ca4f;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:13px;font-family:'Open Sans',sans-serif;font-weight:600;line-height:1;padding:10px 12px;margin-right:6px;text-decoration:none}.dslca-module-edit-cancel,.dslca-prompt-modal-cancel-hook,.dslca-pseudo-module-edit-cancel,.dslca-row-edit-cancel,.dslca-wp-editor-cancel-hook{background:#e55f5f}.dslca-module-edit-save:hover,.dslca-prompt-modal-confirm-hook:hover,.dslca-pseudo-module-edit-save:hover,.dslca-row-edit-save:hover,.dslca-wp-editor-save-hook:hover{background:#91dc1e;color:#fff}.dslca-module-edit-cancel:hover,.dslca-prompt-modal-cancel-hook:hover,.dslca-pseudo-module-edit-cancel:hover,.dslca-row-edit-cancel:hover,.dslca-wp-editor-cancel-hook:hover{background:#f27562;color:#fff}.dslca-actions,.dslca-pseudo-actions{position:absolute;bottom:100%;right:0;padding-bottom:5px;padding-right:5px}.dslca-sections{background:#4A7AC3}.dslca-pseudo-section,.dslca-section.dslca-module-edit,.dslca-section.dslca-modules-section-edit{background:#5890e5}.dslca-modal.dslca-modal-templates-export,.dslca-modal.dslca-modal-templates-import,.dslca-modal.dslca-modal-templates-save,.dslca-section.dslca-templates,.dslca-section.dslca-templates-load{background:#ca564f}.dslca-section{display:none;position:relative}.dslca-section-back{display:block;float:left;width:32px;line-height:74px;text-align:center;color:#fff}.dslca-section-back:hover{background:#e25c54;color:#fff}.dslca-section-title{display:block;float:left;background:#3b6fbe;color:#fff;font-family:'Open Sans',sans-serif;font-size:17px;line-height:1;padding:28px 25px}.dslca-section-title:hover,.dslca-section-title:hover *{cursor:pointer}.dslca-templates .dslca-section-title,.dslca-templates-load .dslca-section-title,.dslca-templates-save .dslca-section-title{background:#a94640}.dslca-section-title-filter{position:relative;cursor:pointer}.dslca-section-title-filter .dslca-icon{color:rgba(255,255,255,.5);margin-left:10px;vertical-align:top}.dslca-section-title-filter-options{background:#5890E5;border-radius:3px 3px 0 0;bottom:35px;display:none;min-width:100px;left:-10px;position:absolute;z-index:999999;box-shadow:0 2px 8px 0 rgba(0,0,0,.21)}.dslca-section-title-filter-options a{display:block;cursor:pointer;margin:1px 0 0;padding:10px 13px;border-top:1px solid rgba(0,0,0,.09);font-size:13px;white-space:nowrap;color:#fff}.dslca-section-title-filter-options a:hover{background:#5890E5}.dslca-section.dslca-templates-load .dslca-section-title-filter-options{background:#CA564F}.dslca-section.dslca-templates-load .dslca-section-title-filter-options a:hover{background:#e25c54}.dslca-sections .dslca-exclude,.dslca-subsection{display:none}.dslca-module{color:#fff;display:inline-block;font-family:font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400;line-height:1;padding:2px 12px 9px;background:#5890e5;margin:4px 2px;box-shadow:0 1px 3px 0 rgba(0,0,0,.15),-1px 1px 0 0 rgba(255,255,255,.05) inset;border-radius:2px;text-align:center;min-width:70px;transition:transform 50ms linear 10ms;z-index:1;position:relative}.dslca-module[data-id=DSLC_Notification],.dslca-module[data-id=DSLC_Sliders],.dslca-module[data-id=DSLC_Staff],.dslca-module[data-id=DSLC_Separator]{margin-right:14px}.dslca-module[data-id=DSLC_M_A]{margin-left:5px;margin-right:14px;background:#b2b7bc;box-shadow:none}.dslca-module[data-id=DSLC_M_A] .dslca-icon{color:#fff}.dslca-module[data-id=DSLC_M_A]:hover{background:#BDC3C9}.dslca-module:hover{background:#6b9ff1;box-shadow:-2px 4px 3px 0 rgba(0,0,0,.19),-1px 1px 0 0 rgba(255,255,255,.05) inset;transform:translate(1px,-2px)}div.dslca-module:hover,div.dslca-module:hover *{color:#fff;cursor:grab;cursor:-webkit-grab}div.dslca-module.dslca-module-dragging{position:relative;opacity:1}.dslc-module-front.dslca-module-dragging{box-shadow:none!important;animation:none!important}.dslc-module-front.dslca-module-ghost{background:rgba(229,163,88,.28)}div.dslca-module.dslca-module-dragging,div.dslca-module.dslca-module-dragging *,div.dslca-module.dslca-module-dragging:hover,div.dslca-module.dslca-module-dragging:hover *{cursor:grabbing;cursor:-webkit-grabbing}.dslca-manage-action.dslca-move-module-hook:hover,.dslca-manage-action.dslca-move-module-hook:hover *,.dslca-manage-action.dslca-move-modules-area-hook:hover,.dslca-manage-action.dslca-move-modules-area-hook:hover *,.dslca-manage-action.dslca-move-modules-section-hook:hover,.dslca-manage-action.dslca-move-modules-section-hook:hover *{cursor:grab;cursor:-webkit-grab}.dslca-module .dslca-icon{color:#AECEF9;vertical-align:top;font-size:20px;display:block;line-height:41px;text-align:center;text-shadow:0 1px rgba(0,0,0,.05)}.dslca-module.ui-draggable-dragging .dslca-icon{margin-right:0}.dslca-module-edit{position:relative}.dslca-module-edit-options,.dslca-modules-section-edit-options,.dslca-pseudo-module-edit-options{padding:16px 15px 5px;min-height:58px;transform:translate(0,0)}.dslca-module-edit-option,.dslca-modules-section-edit-option,.dslca-pseudo-module-edit-option{display:table-cell;min-width:180px;position:relative;padding:40px 15px}.dslca-module-control-group{padding:4px}.dslca-module-control-group>.controls-group-inner{min-width:180px;border:1px solid rgba(0,0,0,.1);border-radius:3px;position:relative;padding:0 15px}.dslca-module-control-group>.controls-group-inner>.dslca-module-edit-label{position:absolute;background:rgba(76,129,207,.4);padding:6px 11px;left:0;border-radius:2px 2px 0 0;width:100%;text-transform:uppercase;letter-spacing:1px;font-size:75%;border-bottom:1px solid #4C81CF}.dslca-module-control-group>.controls-group-inner>.dslca-module-edit-label .dslc-control-toggle{display:none}.dslca-module-edit-option-hidden{display:none!important}.dslca-module-edit-option input[type=text],.dslca-module-edit-option input[type=text]:focus,.dslca-module-edit-option input[type=number],.dslca-module-edit-option input[type=number]:focus,.dslca-module-edit-option input[type=email],.dslca-module-edit-option input[type=email]:focus,.dslca-module-edit-option select,.dslca-module-edit-option select:focus,.dslca-module-edit-option textarea,.dslca-module-edit-option textarea:focus,.dslca-pseudo-module-edit-field{background-color:#6c9fed;border:1px solid #447bce;border-radius:3px;width:100%;min-width:140px;height:auto}.dslca-module-edit-option-text,.dslca-pseudo-module-edit-option{width:235px}.dslca-module-edit-option-textarea{width:500px}.dslca-module-edit-label,.dslca-modules-section-edit-label,.dslca-pseudo-module-edit-label{color:#fff;display:block;font-family:'Open Sans',sans-serif;font-weight:400;font-size:13px;line-height:1;margin-bottom:10px;padding-right:40px;white-space:nowrap;position:relative}.dslca-module-edit-field-font{min-width:140px}.dslca-module-edit-field-font-wrapper,.dslca-module-edit-field-icon-wrapper{display:table-cell;padding-right:5px;position:relative}.dslca-module-edit-field-font,.dslca-module-edit-field-icon{vertical-align:middle}.dslca-options-iconbutton{background:#3b6fbe;border:1px solid #3565ad;border-radius:3px;cursor:pointer;display:table-cell;height:32px;text-align:center;vertical-align:middle;padding:0 10px}.dslca-options-iconbutton.dslca-module-edit-field-font-prev{border-top-right-radius:0;border-bottom-right-radius:0}.dslca-options-iconbutton.dslca-module-edit-field-font-next{border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0}.dslca-options-iconbutton .dslca-icon{color:#8db6f3;font-size:12px;line-height:30px}.dslca-module-edit-field-font-suggest,.dslca-module-edit-field-icon-suggest{color:#fff;color:rgba(255,255,255,.5);position:absolute;left:11px;top:0;line-height:32px;font-family:"Open Sans",HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px}.dslca-module-edit-option-checkbox{white-space:nowrap;width:auto}.dslca-module-edit-option-checkbox input[type=checkbox]{display:none}.dslca-module-edit-option-checkbox-wrapper{display:table-cell;background:#3b6fbe;border-radius:3px;border:1px solid #3565ad;padding:0 10px}.dslca-module-edit-option-checkbox-single{padding:6px 8px;display:table-cell}.dslca-module-edit-option-checkbox-hook{cursor:pointer;font-size:13px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-module-edit-option-checkbox-hook .dslca-icon{margin-right:10px}.dslca-module-edit-option-radio{width:auto}.dslca-module-edit-option-radio input[type=radio]{vertical-align:bottom}.dslca-module-edit-option-radio-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px}.dslca-module-edit-option-radio-single{margin:6px;display:inline-block;font-size:12px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-module-edit-field-icon-switch-set{position:absolute;margin-top:8px;font-size:10px;line-height:13px;cursor:pointer}.dslca-module-edit-field-icon-switch-set .dslca-icon{color:rgba(255,255,255,.7);margin-right:4px}.dslca-module-edit-field-icon-switch-sets{background:#fff;color:#8a8a8a;font-family:'Open Sans',sans-serif;font-size:13px;display:none;border-radius:3px;padding:20px 25px;border:1px solid rgba(0,0,0,.12);position:absolute;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);text-align:center;z-index:999999}.dslca-module-edit-field-icon-switch-sets span{display:block;padding:5px 10px;cursor:pointer;border-radius:3px}.dslca-module-edit-field-icon-switch-sets span:hover{background:rgba(0,0,0,.1)}.dslca-module-edit-field-icon-switch-sets span.dslca-active{background:#5890e5;color:#fff}.dslca-module-edit-option-box_shadow,.dslca-module-edit-option-text_shadow{width:auto}.dslca-module-edit-option-box-shadow-wrapper,.dslca-module-edit-option-text-shadow-wrapper{display:table-cell;background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:2px 10px;font-size:0}.dslca-module-edit-option-box-shadow-single,.dslca-module-edit-option-text-shadow-single{display:table-cell;width:auto;line-height:1;vertical-align:middle;white-space:nowrap;padding-left:20px;position:relative}.dslca-module-edit-option-box-shadow-single input[type=checkbox],.dslca-module-edit-option-text-align input[type=checkbox]{display:none}.dslca-module-edit-option-box-shadow-single:first-child,.dslca-module-edit-option-text-shadow-single:first-child{padding-left:0}.dslca-module-edit-option-box-shadow-single span,.dslca-module-edit-option-text-shadow-single span{font-size:12px;margin-right:10px;vertical-align:middle}.dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook,.dslca-module-edit-option-box-shadow-single span.wp-picker-input-wrap,.dslca-module-edit-option-text-shadow-single span.wp-picker-input-wrap{margin-right:0}.dslca-module-edit-option-box-shadow-single input[type=text],.dslca-module-edit-option-box-shadow-single input[type=text]:focus,.dslca-module-edit-option-box-shadow-single input[type=number],.dslca-module-edit-option-box-shadow-single input[type=number]:focus,.dslca-module-edit-option-text-shadow-single input[type=text],.dslca-module-edit-option-text-shadow-single input[type=text]:focus,.dslca-module-edit-option-text-shadow-single input[type=number],.dslca-module-edit-option-text-shadow-single input[type=number]:focus{width:60px;min-width:auto;padding:3px 7px;vertical-align:middle}.dslca-module-edit-option-box-shadow-single input[type=text].dslca-module-edit-option-box-shadow-color,.dslca-module-edit-option-text-shadow-single input[type=text].dslca-module-edit-option-text-shadow-color{width:100px}.dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook .dslca-icon{margin-left:10px;margin-right:0;font-size:13px;font-weight:400}.dslca-module-edit-option-text-align{width:auto}.dslca-module-edit-option-text-align-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px;font-size:0;display:table-cell}.dslca-module-edit-option-text-align-single{display:table-cell;font-size:14px;text-align:center;line-height:1;vertical-align:middle;padding:5px 12px}.dslca-module-edit-option-text-align-hook{cursor:pointer;opacity:.6;line-height:20px}.dslca-module-edit-option-text-align-hook:hover{opacity:.8}.dslca-module-edit-option-text-align-hook.dslca-active{opacity:1}.dslca-module-edit-options-tab-hook,.dslca-pseudo-module-edit-options-tab-hook{color:#fff;cursor:pointer;font-family:'Open Sans',sans-serif;font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;padding:6px 10px;border-radius:3px;float:left}.dslca-module-edit-options-tab-hook.dslca-active,.dslca-module-edit-options-tab-hook.dslca-active:hover{background:rgba(0,0,0,.11);box-shadow:-1px 1px 1px 0 rgba(0,0,0,.22) inset}.dslc-modules-area.dslc-modules-area-empty,.dslc-modules-area:hover{box-shadow:0 0 0 2px rgba(173,175,179,.4) inset}.dslca-module-edit-options-tab-hook:hover,.dslca-pseudo-module-edit-options-tab-hook:hover{background:rgba(169,239,255,.17);color:#fff}.dslca-module-edit-options-tab-hook[data-id=animation_styling],.dslca-module-edit-options-tab-hook[data-id=presets_styling]{float:right}.dslca-clear-styling-button{border:1px solid rgba(255,255,255,.4);border-radius:4px;display:inline-block!important;float:right;padding:4px 6px;position:absolute;right:0;top:15px;color:#a0c0f0;cursor:pointer;font-size:11px;font-weight:900;margin-right:18px}.dslca-modules-section-edit,.dslca-templates{position:relative}.dslca-clear-styling-button:hover{color:#fff}.dslca-modules-section-edit-option-hidden{display:none!important}.dslca-modules-section-edit-option input[type=text],.dslca-modules-section-edit-option input[type=number],.dslca-modules-section-edit-option input[type=email],.dslca-modules-section-edit-option select,.dslca-modules-section-edit-option textarea{background-color:#6c9fed;border:1px solid #447bce;width:100%;height:auto}.dslca-modules-section-edit-option-text{width:235px}.dslca-modules-section-edit-option-textarea{width:500px}.dslca-modules-section-edit-option-checkbox{width:auto}.dslca-modules-section-edit-option-checkbox input[type=checkbox]{display:none}.dslca-modules-section-edit-option-checkbox-wrapper{background:#3b6fbe;border-radius:4px;border:1px solid #3565ad;padding:0 10px}.dslca-modules-section-edit-option-checkbox-single{margin:6px;display:table-cell;white-space:nowrap;padding:8px}.dslca-modules-section-edit-option-checkbox-hook{cursor:pointer;font-size:12px;font-weight:400;font-family:'Open Sans',sans-serif}.dslca-modules-section-edit-option-checkbox-hook .dslca-icon{margin-right:10px}.dslca-modules-section-settings{display:none}.dslca-template,.dslca-templates .dslca-go-to-section-hook,.dslca-templates .dslca-open-modal-hook{border-right:1px solid rgba(0,0,0,.12);color:#fff;cursor:pointer;display:block;float:left;font-family:'Open Sans',sans-serif;font-size:15px;line-height:1;padding:29px 29px 27px}.dslca-template:hover,.dslca-templates .dslca-go-to-section-hook:hover,.dslca-templates .dslca-open-modal-hook:hover{background:#e25c54;color:#fff}.dslca-templates .dslca-go-to-section-hook .dslca-icon,.dslca-templates .dslca-open-modal-hook .dslca-icon{color:rgba(255,255,255,.5);margin-right:9px;vertical-align:top;line-height:14px}.dslca-templates-load{border-top:1px solid #d8827d}.dslca-template-origin-user{padding-right:50px}.dslca-template .dslca-delete-template-hook{background:rgba(0,0,0,.2);border-radius:3px;display:inline-block;margin-top:-6px;margin-left:7px;padding:5px 7px;cursor:pointer}.dslca-template-save-form input[type=text]{background:#fff;border:1px solid #d9dcdf;border-radius:3px;color:#bfbfbf;display:block;margin-bottom:15px;width:224px}#dslca-export-code,#dslca-import-code{background:#fff;border:1px solid #d9dcdf;border-radius:3px;color:#bfbfbf;display:block;height:150px;margin-bottom:15px;overflow:hidden;width:224px}.dslca-template-export-form .dslca-close-modal-hook{display:block;width:auto}.dslca-switch{background:#1783bc;border-radius:50%;bottom:-50px;cursor:pointer;height:100px;left:45%;position:fixed;width:100px}.dslca-cancel,.dslca-submit,.dslca-submit-secondary{color:#fff;cursor:pointer;font-size:14px;font-weight:700;line-height:34px;width:110px;display:inline-block;border-radius:3px;font-family:'Open Sans',sans-serif;text-align:center}.dslca-submit{background:#4cc12d;position:relative}.dslca-submit-secondary{background:#5890e5}.dslca-cancel{background:#e55f5f}.dslca-module-reloading{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8);color:#5890e5}.dslca-module-reloading .dslca-icon{font-size:20px;position:absolute;top:50%;left:50%;margin-left:-10px}.dslca-module-placeholder{position:relative;background:#5890e5;height:40px;float:left}.dslc-modules-area.dslc-modules-area-empty{margin-bottom:20px;min-height:120px;text-align:center;vertical-align:middle}.dslc-modules-area.dslc-modules-area-empty:last-child{margin-bottom:0}.dslc-modules-area-empty::after{content:"Drop modules here";display:inline-block;opacity:1;color:rgba(173,175,179,.4);left:0;right:0;top:50%;margin-top:-10px;position:absolute;font-size:15px;font-family:'Open Sans',sans-serif}.dslc-module-front{position:relative;min-height:30px}.dslc-module-front.dslca-change-width-active{z-index:999999}body.module-editing-in-progress .dslc-module-front:not(.dslca-module-being-edited),body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-section-being-edited){cursor:default!important}body.module-editing-in-progress .dslc-module-front:not(.dslca-module-being-edited):before,body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-section-being-edited):before{content:"";position:absolute;height:100%;width:100%;z-index:199999}.dslc-module-front:hover,.dslc-module-front:hover *{cursor:pointer}.dslc-modules-area:hover .dslc-module-front:hover{box-shadow:0 0 0 2px #4f8ff1 inset}.dslc-modules-area.dslca-options-hovered .dslc-module-front{box-shadow:0 0 0 0 transparent}.dslc-control-toggle{cursor:pointer;font-size:15px;opacity:.5;position:absolute;right:0}.dslc-control-toggle:hover{opacity:1}.dslca-option-off{opacity:.5}.dslc-control-toggle:before{content:"\f205"}.dslca-option-off .dslc-control-toggle:before{content:"\f204"}.dslc-modules-area{outline:0}.dslc-modules-area-empty.dslc-modules-area.dslca-options-hovered,.dslc-modules-area.dslca-options-hovered{box-shadow:0 0 0 2px rgba(173,175,179,.4)}.dslc-modules-area-empty.dslca-options-hovered{outline:0!important}.dslc-module-front.ui-sortable-helper{background:#5890e5;border-radius:3px;height:0!important;width:0!important;overflow:hidden;opacity:1!important;cursor:move;padding:0!important;border:0!important;outline:0!important}.dslc-module-front.ui-sortable-helper *{opacity:0}.dslc-module-front .dslc-sortable-helper-icon{display:none;position:absolute;left:25px;top:25px;color:rgba(255,255,255,.5)}.dslc-module-front.ui-sortable-helper .dslc-sortable-helper-icon{display:block;opacity:1}.dslc-modules-area.ui-sortable-helper{cursor:move;border:0!important;outline:0!important}.dslc-modules-area.ui-sortable-helper *{opacity:0}.dslc-modules-section.ui-sortable-helper{max-height:0!important;width:100%!important;overflow:hidden!important;opacity:0!important;padding:0!important;outline:0!important;border:0!important}.dslca-save-composer,.dslca-save-draft-composer{background:#313131;border-radius:3px 6px 6px 3px;cursor:pointer;font-size:13px;font-weight:400;font-family:'Open Sans',sans-serif;float:left;line-height:1;opacity:0;display:none;padding:10px 43px 10px 12px;text-decoration:none;position:relative;margin-right:6px}.dslca-save-composer-helptext{color:#adadad;white-space:nowrap}.dslca-save-composer .dslca-save-composer-icon,.dslca-save-draft-composer .dslca-save-draft-composer-icon{background:#78ca4f;bottom:0;border-radius:0 3px 3px 0;border-top:1px solid #b8e3a2;cursor:pointer;color:#fff;display:block;position:absolute;right:0;top:0;text-align:center;width:30px}.dslca-save-composer .dslca-save-composer-icon .dslca-icon{color:#fff;margin:0;position:relative;top:10px}.dslca-save-draft-composer-helptext{color:#adadad;white-space:nowrap}.dslca-save-draft-composer .dslca-save-draft-composer-icon .dslca-icon{color:#fff;margin:0;position:relative;top:10px}.dslca-no-content{position:absolute;display:none;border:2px dashed #5890e5;padding:35px 10px;width:100%;text-align:center}.dslca-add-modules-section-hook,.dslca-import-modules-section-hook,.dslca-no-content-primary{border-radius:3px;font-size:15px;line-height:1;font-family:'Open Sans',sans-serif}.dslc-modules-area-empty .dslca-no-content{display:block}.dslca-no-content-primary{color:#5890e5;display:inline-block;background:rgba(255,255,255,.75);margin:0;padding:13px}.dslca-no-content .dslca-icon{margin-right:10px}.dslc-modules-area.dslc-1-col .dslca-no-content-help-text,.dslc-modules-area.dslc-2-col .dslca-no-content-help-text{display:none}.dslc-modules-area.dslc-1-col .dslca-icon,.dslc-modules-area.dslc-2-col .dslca-icon{margin-right:0}.dslca-templates-actions{background:rgba(0,0,0,.3);position:absolute;bottom:0;left:0;right:0}.dslca-add-modules-section{text-align:center;width:1180px;max-width:100%;overflow:hidden;margin:30px auto 120px}.dslca-add-modules-section-hook,.dslca-import-modules-section-hook{background:#e5855f;color:#fff!important;cursor:pointer;display:block;float:left;padding:14px 0;text-decoration:none;width:80%}.dslca-add-modules-section-hook:hover,.dslca-import-modules-section-hook:hover{background:#FF9162;color:#fff}.dslca-add-modules-section .dslca-icon,.dslca-import-modules-section .dslca-icon{margin-right:10px;color:rgba(255,255,255,.5)}.dslca-import-modules-section-hook{float:right;width:18%}.dslc-modules-section{position:relative}.dslc-modules-section:hover{box-shadow:0 0 0 2px #EF7C5B inset}.dslc-modules-section.dslca-change-width-active{z-index:100}.dslca-manage-action{color:#fff;display:inline-block;text-decoration:none;font-size:12px;line-height:15px;text-align:center;padding:5px 6px;min-width:20px;margin-right:-2px}.dslca-icon{vertical-align:middle}.dslca-manage-action:first-child{padding-left:8px;border-radius:3px 0 0 3px}.dslca-manage-action:last-child{padding-right:8px;border-radius:0 3px 3px 0}.dslca-modules-section-manage{bottom:0;left:0;right:0;visibility:hidden;margin-bottom:0;padding-right:0;position:absolute;z-index:99998;width:100%;text-align:center}.dslca-modules-section-manage:hover{z-index:100000}.dslc-modules-section:hover .dslca-modules-section-manage{visibility:visible!important}.dslca-module-manage-inner,.dslca-modules-section-manage-inner{background:#f17c56;border-radius:3px;display:inline-block;line-height:1;position:relative;z-index:99999;vertical-align:middle;opacity:0;cursor:pointer}.dslca-modules-section-manage-inner{border-top-right-radius:0;border-top-left-radius:0}.dslca-modules-section-manage .dslca-manage-action:hover{background:#db6a3a}.dslca-module-manage-inner .dslca-manage-action:hover{background:#507FC9}.dslca-modules-section-placeholder{position:relative;background:#E5855F;height:2px;width:100%;margin:10px 0}.dslca-modules-section-placeholder .dslca-placeholder-help-text-inner{background:#E5855F}.dslca-placeholder-help-text{position:absolute;left:0;bottom:0;right:0;text-align:center}.dslca-placeholder-help-text-inner{background:#5890e5;border-radius:3px 3px 0 0;color:#fff;font-family:'Open Sans',sans-serif;font-style:12px;font-weight:700;display:inline-block;padding:5px 10px}.dslca-add-modules-area-hook{background:#5fb7e5;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:11px;font-family:'Open Sans',sans-serif;font-weight:700;line-height:1;margin-right:7px;padding:7px 10px;text-decoration:none;vertical-align:middle}.dslca-add-modules-area-hook:hover{color:#fff}.dslca-add-modules-area-hook .dslca-icon{margin-right:5px;color:rgba(255,255,255,.5);position:relative;top:1px}.dslc-modules-area{position:relative}.dslca-modules-area-drag-in-progress .dslc-modules-area{margin-right:1%!important;clear:none}.dslca-modules-area-manage{visibility:hidden;opacity:.5;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;bottom:0;position:absolute;left:-24px;top:0;margin-right:0;text-align:center;z-index:999999}.dslc-modules-area:hover .dslca-modules-area-manage{visibility:visible;opacity:.5}.dslc-modules-area .dslca-modules-area-manage:hover{opacity:1}.dslca-modules-area-manage.dslca-horizontal{top:50%}.dslc-modules-section.dslc-full .dslca-modules-area-manage{right:auto;left:0;margin-right:0}.dslca-modules-area-manage-inner{background:#b2b7bc;border-radius:3px 0 0 3px;border-right-width:0;display:inline-block;margin-top:10px;position:relative;z-index:99999}.dslca-horizontal .dslca-modules-area-manage-inner{margin-top:-47px}.dslc-modules-section.dslc-full .dslca-modules-area-manage-inner{border-radius:0 3px 3px 0}.dslca-modules-area-manage .dslca-manage-action{color:#fff;display:block;text-decoration:none;font-size:12px;line-height:16px;text-align:center;margin:0}.dslca-modules-area-manage-inner .dslca-manage-action:first-child{margin-left:0;margin-top:0;padding-top:6px;border-radius:3px 0 0}.dslca-modules-area-manage .dslca-manage-action:last-child{padding-bottom:6px;border-radius:0 0 0 3px}#dslc-content .dslca-modules-area-manage .dslca-manage-action:hover{color:#fff;background:#a4a5a9}#dslc-content .dslca-modules-area-manage .dslca-change-width-modules-area-hook{position:relative}#dslc-content .dslca-modules-area-manage .dslca-icon{font-size:12px}.dslca-change-width-module-options,.dslca-change-width-modules-area-options{background:#fff;border:1px solid #d9dcdf;border-radius:3px;display:none;padding:7px;position:absolute;top:-6px;left:25px;z-index:99999;width:122px}.dslca-change-width-module-options{top:24px;left:0;border-top-right-radius:0;border-top-left-radius:0;border-top:none;padding-bottom:18px}.dslca-change-width-modules-area-options:after,.dslca-change-width-modules-area-options:before{right:100%;top:18px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslca-change-width-modules-area-options:after{border-color:rgba(255,255,255,0);border-right-color:#fff;border-width:10px;margin-top:-10px}.dslca-change-width-modules-area-options:before{border-color:rgba(205,205,205,0);border-right-color:#cdcdcd;border-width:11px;margin-top:-11px}.dslca-change-width-module-options span,.dslca-change-width-modules-area-options span{background:#4785db;border-radius:3px;display:inline-block;font-family:'Open Sans',sans-serif;font-size:13px;font-weight:400;line-height:24px;max-width:44px;margin:1px;text-align:center;width:44px}.dslca-change-width-module-options span:hover,.dslca-change-width-modules-area-options span:hover{background:#6B9FF1}.dslca-change-width-module-options span:first-child,.dslca-change-width-modules-area-options span:first-child{background:0 0;color:#5e636a;display:inline-block;font-size:13px;margin-bottom:5px;max-width:none;width:auto}#dslc-content .dslca-module-manage .dslca-module-manage-hook:hover,.dslca-section-scroller-next .dslca-icon,.dslca-section-scroller-prev .dslca-icon{color:#fff}.dslc-module-front.dslc-1-col .dslca-change-width-module-options span[data-size="1"],.dslc-module-front.dslc-10-col .dslca-change-width-module-options span[data-size="10"],.dslc-module-front.dslc-11-col .dslca-change-width-module-options span[data-size="11"],.dslc-module-front.dslc-12-col .dslca-change-width-module-options span[data-size="12"],.dslc-module-front.dslc-2-col .dslca-change-width-module-options span[data-size="2"],.dslc-module-front.dslc-3-col .dslca-change-width-module-options span[data-size="3"],.dslc-module-front.dslc-4-col .dslca-change-width-module-options span[data-size="4"],.dslc-module-front.dslc-5-col .dslca-change-width-module-options span[data-size="5"],.dslc-module-front.dslc-6-col .dslca-change-width-module-options span[data-size="6"],.dslc-module-front.dslc-7-col .dslca-change-width-module-options span[data-size="7"],.dslc-module-front.dslc-8-col .dslca-change-width-module-options span[data-size="8"],.dslc-module-front.dslc-9-col .dslca-change-width-module-options span[data-size="9"],.dslc-modules-area.dslc-1-col .dslca-change-width-modules-area-options span[data-size="1"],.dslc-modules-area.dslc-10-col .dslca-change-width-modules-area-options span[data-size="10"],.dslc-modules-area.dslc-11-col .dslca-change-width-modules-area-options span[data-size="11"],.dslc-modules-area.dslc-12-col .dslca-change-width-modules-area-options span[data-size="12"],.dslc-modules-area.dslc-2-col .dslca-change-width-modules-area-options span[data-size="2"],.dslc-modules-area.dslc-3-col .dslca-change-width-modules-area-options span[data-size="3"],.dslc-modules-area.dslc-4-col .dslca-change-width-modules-area-options span[data-size="4"],.dslc-modules-area.dslc-5-col .dslca-change-width-modules-area-options span[data-size="5"],.dslc-modules-area.dslc-6-col .dslca-change-width-modules-area-options span[data-size="6"],.dslc-modules-area.dslc-7-col .dslca-change-width-modules-area-options span[data-size="7"],.dslc-modules-area.dslc-8-col .dslca-change-width-modules-area-options span[data-size="8"],.dslc-modules-area.dslc-9-col .dslca-change-width-modules-area-options span[data-size="9"]{background:#3B6FBE;box-shadow:1px 1px 3px rgba(0,0,0,.28) inset;cursor:default}.dslc-modules-area-empty .dslca-modules-area-manage{top:12px;bottom:auto}.dslc-modules-area-empty .dslca-modules-area-manage-inner{margin-top:0}.dslca-modules-area-placeholder{position:relative;background:#5890e5;height:2px;margin:10px;float:left}body.rtl .dslca-modules-area-placeholder{float:right}.dslca-module-manage{display:block;position:absolute;left:50%;margin-left:-47px;top:0;text-align:center;z-index:99999;line-height:1}.dslca-module-manage-inner{background:#5890e5}.dslca-module-manage-inner.dslca-dev-mode{background:#444;border-color:#333}#dslc-content .dslc-modules-area.dslc-1-col .dslca-module-manage .dslca-module-manage-hook,#dslc-content .dslc-modules-area.dslc-2-col .dslca-module-manage .dslca-module-manage-hook{margin-right:-2px}#dslc-content .dslca-module-manage .dslca-module-manage-hook:first-child{margin-top:0;border-radius:0 0 0 3px}#dslc-content .dslca-module-manage .dslca-module-manage-hook:last-child{margin-right:0!important;border-radius:0 0 3px}.dslca-section-scroller{position:relative;height:74px;margin-right:80px;overflow:hidden}.dslca-section-scroller-inner{position:absolute;top:0;left:0;bottom:0;width:999999px;text-align:left;-webkit-transition:left .3s ease-in-out;-moz-transition:left .3s ease-in-out;transition:left .3s ease-in-out}.dslca-prompt-modal-actions,.dslca-prompt-modal-msg{text-align:center}.dslca-section-scroller-content{display:inline-block;padding-right:80px}.dslca-section-scroller-fade{background:-moz-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(88,144,229,0)),color-stop(100%,rgba(70,116,185,1)));background:-webkit-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-o-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:-ms-linear-gradient(left,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);background:linear-gradient(to right,rgba(88,144,229,0) 0,rgba(70,116,185,1) 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#00004799', endColorstr='#5890e5', GradientType=1 );position:absolute;right:80px;width:20px;bottom:0;top:0;z-index:1}.dslca-section-scroller-nav{position:absolute;right:0;top:0;bottom:0;overflow:hidden;width:80px;font-size:30px}.dslca-section-scroller-nav>a{cursor:pointer;display:flex;justify-content:center;align-items:center;width:40px;position:absolute;left:0;top:0;bottom:0;text-decoration:none;outline:0!important;background:rgba(0,0,0,.2)}.dslca-section-scroller-nav>a:hover{background:rgba(0,0,0,.15)}.dslca-section-scroller-nav>a:active{background:rgba(0,0,0,.25)}.dslca-section-scroller-nav .dslca-section-scroller-next{left:auto;right:0}.dslca-modal{background:#fff;border-radius:3px;color:#444;display:none;padding:14px 17px;position:absolute;bottom:55px;-moz-box-shadow:0 1px 6px rgba(0,0,0,.2);-webkit-box-shadow:0 1px 6px rgba(0,0,0,.2);box-shadow:0 1px 6px rgba(0,0,0,.2);z-index:9999991}.dslca-modal:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:7px;left:50%;margin-left:-7px}.dslca-prompt-modal-msg textarea{width:100%;min-height:80px;padding:5px;line-height:1.6em;font-size:13px;color:#848484}.dslca-prompt-modal-confirm-hook{margin-right:7px}.dslca-prompt-modal{background:rgba(255,255,255,.8);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999;height:100%}.dslca-prompt-modal-content{background:#fff;border-radius:3px;top:50%;position:relative;width:400px;margin:-123px auto 0;padding:30px 20px;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12)}.dslca-prompt-modal-descr,.dslca-prompt-modal-title{display:block;font-family:'Open Sans',sans-serif;margin-bottom:22px}.dslca-prompt-modal-title{color:#424242;font-size:16px;font-weight:700;line-height:1}.dslca-prompt-modal-descr{color:#8a8a8a;font-size:13px;font-weight:400;line-height:22px}.dslca-prompt-modal-descr textarea{width:100%;min-height:80px;padding:5px;font-size:11px}.dslca-prompt-modal-actions .dslc-icon{color:rgba(255,255,255,.5);margin-right:6px}.dslca-accordion-plain-content,.dslca-module-options-front,.dslca-module-options-front-backup,.dslca-tab-plain-content{display:none}#dslca-code,#dslca-content-for-search,.dslca-module-code,.dslca-module-edit-option-size,.dslca-section-code{display:none!important}#dslca-wysiwyg-actions-cancel-hook,#dslca-wysiwyg-actions-save-hook{border-radius:3px;display:inline-block;padding:13px 10px;position:relative;color:#fff;font-family:'Open Sans',sans-serif;font-weight:700;cursor:pointer;font-size:12px;line-height:1}#dslca-wysiwyg{position:absolute;top:0;left:-110%;z-index:99999;height:200px;padding-bottom:60px}#dslcawysiwyg{overflow:hidden;height:100px}#wp-dslcawysiwyg-editor-container{height:82%}#dslc-content .dslc-module-front.dslca-module-wysiwyg-active{opacity:0;min-height:200px}#dslca-wysiwyg-actions{bottom:0;position:absolute;color:#fff;left:0;line-height:1;right:0;text-align:right}#dslca-wysiwyg-actions-save-hook{background:#5bd63b;text-align:center}#dslca-wysiwyg-actions-cancel-hook{background:#e55858;text-align:center}#dslc-content .dslca-wysiwyg-actions-edit{position:absolute;top:0;right:0;overflow:hidden}#dslc-content .dslca-wysiwyg-actions-edit-hook{background:#5890e5;color:#fff;cursor:pointer;display:block;font-size:12px;font-family:'Open Sans',sans-serif;line-height:1;font-weight:700;position:relative;padding:7px 10px;border-radius:0 0 0 3px;letter-spacing:0}#dslc-content .dslca-wysiwyg-actions-edit-hook:hover{background:#5080C9}body.dslca-enabled #mce-modal-block,body.dslca-enabled #mceModalBlocker,body.dslca-enabled #wp-link-backdrop,body.dslca-enabled .ui-dialog,body.dslca-enabled .ui-widget-overlay{z-index:99999999!important}body.dslca-enabled #dslcawpeditor_forecolor_menu,body.dslca-enabled #menu_dslcawpeditor_dslcawpeditor_formatselect_menu,body.dslca-enabled #wp-link-wrap,body.dslca-enabled .clearlooks2,body.dslca-enabled .mce-menu,body.dslca-enabled .mce-panel{z-index:999999991!important}body.dslca-enabled .mce_fullscreen{display:none}@keyframes dslcBounceIn{0%{-webkit-transform:scale(0);-moz-transform:scale(0);transform:scale(0);opacity:0}70%{-webkit-transform:scale(1.05);-moz-transform:scale(1.05);transform:scale(1.05)}90%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}100%{opacity:1}}@-moz-keyframes dslcBounceIn{0%{-moz-transform:scale(0);transform:scale(0);filter:alpha(opacity=0);opacity:0}70%{-moz-transform:scale(1.05);transform:scale(1.05)}90%{-moz-transform:scale(1);transform:scale(1)}100%{filter:alpha(opacity=100);opacity:1}}@-webkit-keyframes dslcBounceIn{0%{-webkit-transform:scale(0);transform:scale(0);filter:alpha(opacity=0);opacity:0}70%{-webkit-transform:scale(1.05);transform:scale(1.05)}90%{-webkit-transform:scale(1);transform:scale(1)}100%{filter:alpha(opacity=100);opacity:1}}@keyframes dslcBounceOut{0%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(.9);-moz-transform:scale(.9);transform:scale(.9)}}@-moz-keyframes dslcBounceOut{0%{-moz-transform:scale(1);transform:scale(1)}100%{-moz-transform:scale(.9);transform:scale(.9)}}@-webkit-keyframes dslcBounceOut{0%{-webkit-transform:scale(1);transform:scale(1)}100%{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes dslcBounceOut2{0%{-webkit-transform:scale(1);-moz-transform:scale(1);transform:scale(1)}30%{-webkit-transform:scale(1.01);-moz-transform:scale(1.01);transform:scale(1.01)}100%{-webkit-transform:scale(.9);-moz-transform:scale(.9);transform:scale(.9)}}@-moz-keyframes dslcBounceOut2{0%{-moz-transform:scale(1);transform:scale(1)}30%{-moz-transform:scale(1.01);transform:scale(1.01)}100%{-moz-transform:scale(.9);transform:scale(.9)}}@-webkit-keyframes dslcBounceOut2{0%{-webkit-transform:scale(1);transform:scale(1)}30%{-webkit-transform:scale(1.01);transform:scale(1.01)}100%{-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@-moz-keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@-webkit-keyframes dslcOpacityDrop{0%{opacity:1}100%{opacity:.7}}@keyframes dslcRotate{0%{-webkit-transform:rotate(0);-moz-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes dslcRotate{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dslcRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.dslc-modules-area.dslca-init-animation,.dslca-save-composer.dslca-init-animation,.dslca-save-draft-composer.dslca-init-animation{display:block;opacity:1;-webkit-animation-name:dslcBounceIn;-moz-animation-name:dslcBounceIn;animation-name:dslcBounceIn;animation-duration:.6s;-webkit-animation-duration:.6s}.dslc-editable-content.dslc-pen,.dslc-editable-content:focus{outline:rgba(0,0,0,.2) dashed 1px}span.dslca-manage-action,span.dslca-manage-action:hover,span.dslca-manage-action:hover *{cursor:pointer}.dslca-module-being-edited .dslca-module-manage{display:none!important}.dslc-notification .dslca-refresh-module-hook{right:35px}.dslca-container .dslca-module-edit-option-slider,.dslca-container .dslca-modules-section-edit-option-slider{position:relative}.dslca-modules-edit-field-slider{display:none}.dslca-container .dslca-module-edit-field-slider,.dslca-container .dslca-modules-section-edit-field-slider{background:#6c9fed;border-radius:5px;position:absolute;height:5px;left:15px;right:15px;margin-top:15px}.dslca-container .dslca-module-edit-field-slider .ui-slider-handle,.dslca-container .dslca-modules-section-edit-field-slider .ui-slider-handle{background:#3b6fbe;border:1px solid #3565ad;border-radius:50%;top:-6px;position:absolute;width:15px;height:15px;margin-left:-7px;cursor:ew-resize}.dslca-module-edit-field-numeric-wrap,.dslca-modules-section-edit-field-numeric-wrap{position:relative}.dslca-module-edit-field-numeric-ext,.dslca-modules-section-edit-field-numeric-ext{position:absolute;color:rgba(255,255,255,.8);font-size:12px;right:15px;top:50%;margin-top:-5px;line-height:1}.dslca-module-edit-option-slider .dslca-module-edit-field-numeric-ext{right:10px;top:14px}.dslca-separator-empty{height:1px;line-height:0;border-bottom:1px solid rgba(0,0,0,.06);text-align:center;position:absolute;top:50%;left:0;right:0}.dslca-separator-empty span{background:#fff;border-radius:3px;color:#a0a0a0;display:inline-block;font-family:"Open Sans",sans-serif;font-size:10px;line-height:1;padding:3px 6px;position:relative;top:-7px}.dslca-wp-editor{background:rgba(0,0,0,.7);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999}.dslca-wp-editor-inner{background:#fff;position:fixed;top:30px;left:30px;right:30px;bottom:30px;padding:50px}.dslca-wp-editor-actions,.dslca-wp-editor-notification{margin-top:30px}#wp-dslcawpeditor-editor-container{border:1px solid #ddd}.dslca-invisible-overlay{display:block;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99998}.dslca-disable-selection .dslca-invisible-overlay{display:block}.dslca-loading-modal{background:rgba(0,0,0,.75);position:fixed;top:0;left:0;right:0;bottom:200px;z-index:999999}.dslca-loading-modal-content{position:relative;top:200px;width:580px;margin:0 auto}.dslca-loading-modal-msg{background:#fff;border-radius:3px;color:#707070;font-size:14px;font-family:'Open Sans',sans-serif;font-weight:400;line-height:1.5;padding:35px 25px;text-align:center;margin-bottom:10px;-moz-box-shadow:0 0 7px #000;-webkit-box-shadow:0 0 7px #000;box-shadow:0 0 7px #000}.dslca-loading-modal-actions{text-align:right}.dslca-loading-modal-cancel-hook,.dslca-loading-modal-confirm-hook{background:#e55f5f;border-radius:3px;cursor:pointer;color:#fff;display:inline-block;font-size:14px;font-family:'Open Sans',sans-serif;font-weight:700;line-height:1;padding:13px 15px}.dslca-loading-modal-confirm-hook{background:#4cc12d;margin-right:7px}.dslca-module-edit-field-ttip-content{display:none}.dslca-module-edit-field-icon-ttip-hook,.dslca-module-edit-field-ttip-hook{background:#3b6fbe;color:#5890e5;cursor:pointer;border-radius:50%;position:relative;display:inline-block;width:13px;height:13px;margin-left:10px;vertical-align:bottom}.dslca-module-edit-field-icon-ttip-hook .dslca-icon,.dslca-module-edit-field-ttip-hook .dslca-icon{position:absolute;left:5px;font-weight:400;font-size:10px;top:1px}.dslca-module-edit-field-icon-ttip,.dslca-module-edit-field-ttip{background:#fff;color:#8a8a8a;font-family:'Opens Sans',sans-serif;font-size:13px;line-height:1.4;display:none;border-radius:3px;padding:20px 25px;border:1px solid rgba(0,0,0,.12);position:absolute;-moz-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);text-align:center;z-index:999999}.dslca-module-edit-field-icon-ttip a,.dslca-module-edit-field-ttip a{color:#5890e5;font-weight:700;text-decoration:none}.dslca-module-edit-field-icon-ttip:after,.dslca-module-edit-field-icon-ttip:before,.dslca-module-edit-field-ttip:after,.dslca-module-edit-field-ttip:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslca-module-edit-field-icon-ttip:after,.dslca-module-edit-field-ttip:after{border-color:rgba(255,255,255,0);border-top-color:#fff;border-width:8px;left:50%;margin-left:-8px}.dslca-module-edit-field-icon-ttip:before,.dslca-module-edit-field-ttip:before{border-color:rgba(224,224,224,0);border-top-color:#d2d2d2;border-width:9px;left:50%;margin-left:-9px}.dslca-module-edit-field-ttip-close{position:absolute;background:#e55f5f;top:-9px;right:-9px;width:18px;line-height:18px;border-radius:18px;color:#fff;font-size:11px}.dslca-module-edit-option-image,.dslca-modules-section-edit-option-upload{min-width:auto}.dslca-module-edit-field-image-add-hook,.dslca-module-edit-field-image-remove-hook,.dslca-modules-section-edit-field-image-add-hook,.dslca-modules-section-edit-field-image-remove-hook{background:#3b6fbe;border:1px solid #3565ad;border-radius:3px;color:#a0c0f0;cursor:pointer;display:inline-block;font-size:12px;font-family:'Open Sans',sans-serif;font-weight:400;padding:9px 12px;line-height:1;white-space:nowrap}.dslca-module-edit-field-image-add-hook .dslca-icon,.dslca-module-edit-field-image-remove-hook .dslca-icon,.dslca-modules-section-edit-field-image-add-hook .dslca-icon,.dslca-modules-section-edit-field-image-remove-hook .dslca-icon{margin-right:7px}#dslc-footer,#dslc-header{position:relative}.dslc-hf-block-overlay{display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(88,144,229,.9);z-index:99999;text-align:center;opacity:0;-webkit-transition:opacity .2s ease-in-out;-moz-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.dslc-hf-block-overlay:hover{opacity:1}.dslc-hf-block-overlay-button,.dslc-hf-block-overlay-text{display:inline-block;color:#fff;font-size:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;text-decoration:none}.dslc-hf-block-overlay-text{font-size:13px;opacity:.5;margin-top:5px}body.dslca-composer-hidden .dslc-module-front,body.dslca-composer-hidden .dslc-modules-area,body.dslca-composer-hidden .dslc-modules-section{box-shadow:none!important;border:none!important}.dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage,.dslca-composer-hidden .dslca-add-modules-section,body.dslca-composer-hidden .dslc-modules-section .dslca-modules-section-manage,body.dslca-composer-hidden .dslca-module-manage,body.dslca-composer-hidden .dslca-modules-area-manage{display:none!important}.dslca-loading{position:absolute;top:15px;left:25px;display:none}.followingBallsGWrap{width:64px;height:5px}.followingBallsG{background-color:rgba(255,255,255,.5);position:absolute;top:0;left:0;width:5px;height:5px;-moz-border-radius:3px;-moz-animation-name:bounce_followingBallsG;-moz-animation-duration:2.3s;-moz-animation-iteration-count:infinite;-moz-animation-direction:linear;-webkit-border-radius:3px;-webkit-animation-name:bounce_followingBallsG;-webkit-animation-duration:2.3s;-webkit-animation-iteration-count:infinite;-webkit-animation-direction:linear;-ms-border-radius:3px;-ms-animation-name:bounce_followingBallsG;-ms-animation-duration:2.3s;-ms-animation-iteration-count:infinite;-ms-animation-direction:linear;-o-border-radius:3px;-o-animation-name:bounce_followingBallsG;-o-animation-duration:2.3s;-o-animation-iteration-count:infinite;-o-animation-direction:linear;border-radius:3px;animation-name:bounce_followingBallsG;animation-duration:2.3s;animation-iteration-count:infinite;animation-direction:linear}.followingBallsG_1{-moz-animation-delay:0s;-webkit-animation-delay:0s;-ms-animation-delay:0s;-o-animation-delay:0s;animation-delay:0s}.followingBallsG_2{-moz-animation-delay:.23s;-webkit-animation-delay:.23s;-ms-animation-delay:.23s;-o-animation-delay:.23s;animation-delay:.23s}.followingBallsG_3{-moz-animation-delay:.46s;-webkit-animation-delay:.46s;-ms-animation-delay:.46s;-o-animation-delay:.46s;animation-delay:.46s}.followingBallsG_4{-moz-animation-delay:.69s;-webkit-animation-delay:.69s;-ms-animation-delay:.69s;-o-animation-delay:.69s;animation-delay:.69s}@-moz-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-webkit-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-ms-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@-o-keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}@keyframes bounce_followingBallsG{0%,100%{left:0;background-color:rgba(255,255,255,.5)}50%{left:59px;background-color:rgba(0,0,0,0)}}.dslca-container-loader{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.2);display:none}.dslca-container-loader-inner{position:absolute;top:10px;left:15px}body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Excerpt],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Meta],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Downloads_Button],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Gallery_Slider],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Project_Slider],body.page .dslca-module.dslca-origin-single[data-id=DSLC_TP_Staff_Social]{display:none!important}.dslca-module.dslca-origin[data-display-module=true]{display:inline-block}.dslca-module.dslca-exclude,.dslca-module.dslca-origin[data-display-module=false]{display:none}.media-modal{z-index:999999999!important}.media-modal-backdrop{z-index:999999998!important}.dslca-container .dslca-activate-composer-hook,.dslca-container .dslca-close-composer-hook,.dslca-container .dslca-hide-composer-hook,.dslca-container .dslca-show-composer-hook,.dslca-pseudo-panel .dslca-pseudo-close-composer-hook,.dslca-pseudo-panel .dslca-pseudo-hide-composer-hook{background:#e55f5f;border-radius:3px;bottom:4px;color:#fff;cursor:pointer;display:block;font-size:11px;font-family:Roboto,sans-serif;font-weight:900;line-height:1;padding:11px 12px;text-transform:uppercase;text-decoration:none;white-space:nowrap;float:left;margin-left:5px}.dslca-container .dslca-close-composer-hook:hover{background:#f27562}.dslca-container .dslca-hide-composer-hook,.dslca-pseudo-panel .dslca-pseudo-hide-composer-hook{background:#06b2ac}.dslca-container .dslca-show-composer-hook{background:#9268a9;display:none}.dslca-activate-composer-hook:hover,.dslca-activate-composer-hook:visited,.dslca-close-composer-hook:hover,.dslca-close-composer-hook:visited{color:#fff}.dslca-activate-composer-hook{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;background:#54c13f;color:#fff;position:fixed;z-index:99999;right:5px;bottom:5px}.dslca-activate-composer-hook:hover{background:#40D71F}.dslca-activate-composer-hook.dslca-position-left{right:auto;left:5px}.dslca-activate-composer-hook .dslca-icon,.dslca-container .dslca-close-composer-hook .dslca-icon,.dslca-container .dslca-hide-composer-hook .dslca-icon,.dslca-container .dslca-show-composer-hook .dslca-icon,.dslca-pseudo-close-composer-hook .dslca-icon,.dslca-pseudo-hide-composer-hook .dslca-icon{color:rgba(255,255,255,.66);margin-right:5px}body.rtl .dslca-templates .dslca-go-to-section-hook .dslca-icon,body.rtl .dslca-templates .dslca-open-modal-hook .dslca-icon{margin-right:0;margin-left:9px}body.rtl .dslca-section-title-filter .dslca-icon{margin-left:0;margin-right:10px}body.rtl .dslca-activate-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-close-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-hide-composer-hook .dslca-icon,body.rtl .dslca-container .dslca-show-composer-hook .dslca-icon{margin-right:0;margin-left:5px}body.rtl .dslca-module .dslca-icon{margin-right:0;margin-left:11px}body.rtl .dslca-header .dslca-options-filter-hook .dslca-icon{margin-right:0;margin-left:4px}body.rtl .dslca-prompt-modal-actions .dslc-icon{margin-right:0;margin-left:6px}body.rtl .dslca-module-edit-option-checkbox-hook .dslca-icon,body.rtl .dslca-no-content .dslca-icon{margin-right:0;margin-left:10px}body.rtl .dslca-module-edit-options-inner,body.rtl .dslca-modules-section-edit-options-inner{overflow-x:auto}body.rtl .dslca-module-edit-option,body.rtl .dslca-modules-section-edit-option{float:right}.dslca-module-edit-options-wrapper,.dslca-modules-section-edit-options-wrapper,.dslca-pseudo-module-edit-options-wrapper{display:table-cell;padding:0}.dslca-module-edit-options-inner,.dslca-modules-section-edit-options-inner{overflow-x:scroll;padding-top:4px}.dslca-styling-presets{position:absolute;top:0;right:0;margin-right:15px;margin-top:15px}.dslca-drag-not-in-progress .dslc-modules-section .dslca-modules-section-manage-inner{-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dslca-drag-not-in-progress .dslc-modules-section:hover .dslca-modules-section-manage-inner{opacity:1}.dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage-inner{opacity:0}.dslca-drag-not-in-progress #dslc-content .dslc-module-front .dslca-module-manage-inner:hover,.dslca-drag-not-in-progress #dslc-content .dslc-module-front:hover .dslca-module-manage-inner,.dslca-drag-not-in-progress #dslc-content .dslc-module-front:hover .dslca-wysiwyg-actions-edit{opacity:1}.dslca-drag-not-in-progress .dslc-module-front .dslca-wysiwyg-actions-edit,.dslca-drag-not-in-progress .dslc-modules-area .dslca-modules-area-manage-inner{opacity:0}.dslca-drag-not-in-progress .dslc-modules-area .dslca-modules-area-manage-inner:hover,.dslca-drag-not-in-progress .dslc-modules-area:hover .dslca-modules-area-manage-inner{opacity:1}.dslca-modal.dslca-modal-icons{width:70%;position:fixed;padding:0;overflow:scroll;top:2%;left:50%!important;visibility:visible;transform:translate(-50%,0);z-index:100001}.dslca-prompt-modal-custom{background:rgba(255,255,255,.8);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:100000;height:100%}.dslca-modal-icons .modal-content{height:100%}.dslca-modal-icons .dslc-icons-grid{list-style:none;margin:0;padding:0;text-align:left}.dslca-modal-icons .icon-item{display:inline-block;width:12.4%;min-height:120px;padding:0;margin:0 0 0 -1px;vertical-align:top;text-align:center;border-left:1px solid rgba(155,155,155,.05);border-bottom:1px solid rgba(155,155,155,.05)}.dslca-modal-icons .icon-item:hover{-webkit-box-shadow:0 1px 5px 0 rgba(68,68,68,.52);-moz-box-shadow:0 1px 5px 0 rgba(68,68,68,.52);box-shadow:0 1px 5px 0 rgba(68,68,68,.52);cursor:pointer}.dslca-modal-icons .icon-item:active{-webkit-box-shadow:0 1px 5px 0 #5890e5 inset;-moz-box-shadow:0 1px 5px 0 #5890e5 inset;box-shadow:0 1px 5px 0 #5890e5 inset}.dslca-modal-icons .icon-item_icon{display:inline-block;width:100%;padding:28px 0 16px;font-size:24px;opacity:.7}.dslca-modal-icons .icon-item:hover .icon-item_icon{opacity:1}.dslca-modal-icons .icon-item_name{opacity:.35;display:inline-block;font-family:'Open Sans',sans-serif;font-size:12px;line-height:1.25;padding:5px 8px 12px}body.dslca-enabled.dslc-res-phone #page-builder-preview-area,body.dslca-enabled.dslc-res-tablet #page-builder-preview-area{display:block;margin:0 auto;position:relative;border:14px solid #000;border-top-width:60px;border-radius:16px;top:40px}body.dslca-enabled.dslc-res-phone #page-builder-preview-area{width:480px;max-width:767px}body.dslca-enabled.dslc-res-tablet #page-builder-preview-area{width:768px;min-width:768px;max-width:1024px}body.dslca-enabled.dslc-res-phone #page-builder-frame,body.dslca-enabled.dslc-res-tablet #page-builder-frame{display:block;position:relative}html.dslc-responsive-preview{background:#61666A}#page-builder-preview-area.ui-resizable-resizing .ui-resizable-e{width:100%}#page-builder-preview-area .ui-resizable-e{cursor:e-resize;height:100%;right:-14px;width:14px;top:0}#page-builder-preview-area .ui-resizable-handle{display:block;font-size:.1px;position:absolute}.dslca-module-edit-field-colorpicker,.dslca-modules-section-edit-field-colorpicker{display:block!important;cursor:pointer;position:relative;z-index:1}.dslca-module-edit-option-box-shadow-color,.dslca-module-edit-option-text-shadow-color{display:inline-block!important;cursor:pointer;position:relative;z-index:1;width:auto}body .sp-palette-container{border-right:1px solid #3e3e3e}body .sp-palette .sp-thumb-el{border:none;height:25px;margin:1px;width:25px}.dslca-pseudo-panel{bottom:0;left:0;position:fixed;right:0;z-index:99999;-webkit-transition:bottom .3s;-moz-transition:bottom .3s;transition:bottom .3s}.dslca-pseudo-header{position:absolute;z-index:100;min-height:38px;bottom:100%;left:0}.dslca-pseudo-module-edit-label{width:80px;background:#6c9fed;border-radius:3px}.dslca-pseudo-module-edit-field{border:0;width:100%;height:33px}.dslca-pseudo-module-edit-option{opacity:0;transition:opacity .3s 0s ease-in}.dslca-pseudo-module-edit-option:nth-child(2){transition-delay:.15s}.dslca-pseudo-module-edit-option:nth-child(3){transition-delay:.25s}.dslca-pseudo-module-edit-option:nth-child(4){transition-delay:.5s}.dslca-pseudo-module-edit-option:nth-child(5){transition-delay:.75s}.dslca-pseudo-panel.show .dslca-pseudo-module-edit-option{opacity:1}.lc-shake-effect.active{animation:shake .82s cubic-bezier(.36,.07,.19,.97) both;transform:translate3d(0,0,0);backface-visibility:hidden;perspective:1000px}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}body.dslca-drag-in-progress .lc-scroll-top-area,body.dslca-new-module-drag-in-progress .lc-scroll-top-area{position:fixed;top:0;z-index:99999;left:0;width:100%;height:80px}body.dslca-drag-in-progress .lc-scroll-bottom-area,body.dslca-new-module-drag-in-progress .lc-scroll-bottom-area{position:fixed;bottom:0;left:0;z-index:99999;width:100%;height:140px}div#scroller-stopper{position:absolute;bottom:-33px;left:0;width:100%;height:83px}.dslc-control-toggle:hover,.dslca-module-edit-field-icon-ttip-hook .dslca-icon,.dslca-module-edit-field-icon-ttip-hook:hover,.dslca-module-edit-field-ttip-close,.dslca-module-edit-field-ttip-close .dslc-icon,.dslca-module-edit-field-ttip-hook .dslca-icon,.dslca-module-edit-field-ttip-hook:hover,.dslca-module-edit-option-checkbox-hook .dslca-icon:hover,.dslca-module-edit-option-text-align-hook .dslca-icon,.dslca-modules-section-edit-field-image-add-hook .dslca-icon:hover,.dslca-modules-section-edit-field-image-add-hook:hover,.dslca-modules-section-edit-field-image-remove-hook .dslca-icon:hover,.dslca-modules-section-edit-field-image-remove-hook:hover,.dslca-modules-section-edit-option-checkbox-hook .dslca-icon,.dslca-options-iconbutton .dslca-icon,.dslca-options-iconbutton:hover,.dslca-prompt-modal-cancel-hook:hover,.dslca-row-edit-cancel:hover,.dslca-row-edit-save:hover{cursor:pointer}.mce-tinymce .mce-btn button:hover{background:#e3e3e3!important;border-color:#ccc!important}.dslca_editor_messages_section{position:fixed;bottom:0;width:100%;height:40px;font-family:'Open Sans',sans-serif;color:#fff;font-weight:100;background:#404a58}.dslca_editor_messages_title{float:left;background:#303030;color:#fff;font-size:14px;line-height:22px;text-transform:uppercase;padding:12px 17px;text-align:center;display:block;letter-spacing:1px}a.dslca_editor_messages_title:hover{color:#fff}#editor_messages{font-size:14px;text-overflow:ellipsis;white-space:nowrap;margin:0!important;padding:0!important;opacity:0}#editor_messages li{position:relative;padding:13px 20px 11px 50px!important;margin:0;line-height:1;font-size:16px}#editor_messages a{text-decoration:none;display:block;position:absolute;left:0;top:0;width:100%;height:100%}#editor_messages strong{font-weight:500}#editor_messages .dslc-icon{font-size:19px;margin-right:10px;position:absolute;left:20px;top:12px}.dslca_editor_messages_hide{float:right;padding:12px 17px;background:#283546;font-size:14px;text-align:center;color:#fff;display:none}.dslca_editor_messages_hide .dslc-icon{font-size:17px;margin-right:10px}a.dslca_editor_messages_hide:hover{color:#fff}.dslca-module-edit-option-box-shadow-single .wp-picker-holder,.dslca-module-edit-option-color .wp-picker-holder,.dslca-module-edit-option-text-shadow-single .wp-picker-holder,.dslca-modules-section-edit-option .wp-picker-holder{position:fixed;margin-top:-315px;z-index:1}body .dslca-module-edit-option-box-shadow-single input[type=text].dslca-module-edit-option-box-shadow-color,body .dslca-module-edit-option-color input[type=text].dslca-module-edit-field-colorpicker,body .dslca-module-edit-option-text-shadow-single input[type=text].dslca-module-edit-option-text-shadow-color,body .dslca-modules-section-edit-option input[type=text].dslca-modules-section-edit-field-colorpicker{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.7),0 0 7px rgba(0,0,0,.28),4px 3px 6px rgba(0,0,0,.1);padding:0;line-height:31px;text-align:center;font-size:14px;min-height:33px}.dslca-module-edit-option-box-shadow-single .wp-picker-clear,.dslca-module-edit-option-color .wp-picker-clear,.dslca-module-edit-option-text-shadow-single .wp-picker-clear,.dslca-modules-section-edit-option .wp-picker-clear{display:none}.dslca-module-edit-option-box-shadow-single .wp-color-result,.dslca-module-edit-option-color .wp-color-result,.dslca-module-edit-option-text-shadow-single .wp-color-result,.dslca-modules-section-edit-option .wp-color-result{position:absolute;top:53px;z-index:2;right:10px;height:33px;left:16px;opacity:0}.dslca-module-edit-option-color .wp-picker-container input[type=text].wp-color-picker,.dslca-modules-section-edit-option .wp-picker-container input[type=text].wp-color-picker{width:100%!important;font-family:inherit;margin:inherit}.dslca-module-edit-option-box-shadow-single .wp-picker-container input[type=text].wp-color-picker,.dslca-module-edit-option-text-shadow-single .wp-picker-container input[type=text].wp-color-picker{width:100px;font-family:'Open Sans',sans-serif}.wp-picker-open+.wp-picker-input-wrap{vertical-align:middle!important}.dslca-module-edit-option-box-shadow-single .iris-picker.iris-border,.dslca-module-edit-option-color .iris-picker.iris-border,.dslca-modules-section-edit-option .iris-picker.iris-border{border-top-right-radius:3px;border-top-left-radius:3px}.dslca-colorpicker-apply{background:#f1f1f1;border-radius:0 0 3px 3px;color:#444;cursor:pointer;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-weight:600;line-height:1;padding:10px 0;text-decoration:none;z-index:1;position:absolute;bottom:-36px;left:-1px;width:100%;display:block;border:1px solid #FFF}.dslca-module-edit-option-box-shadow-single .iris-picker .iris-palette:last-child,.dslca-module-edit-option-color .iris-picker .iris-palette:last-child,.dslca-modules-section-edit-option .iris-picker .iris-palette:last-child{position:relative;background:linear-gradient(rgba(255,255,255,.4) 0,rgba(255,255,255,.6) 100%),url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==)!important}.dslca-module-edit-option-box-shadow-single .iris-picker .iris-palette:last-child:before,.dslca-module-edit-option-color .iris-picker .iris-palette:last-child:before,.dslca-modules-section-edit-option .iris-picker .iris-palette:last-child:before{content:'×';position:absolute;left:0;right:0;top:0;bottom:0;display:block;text-align:center;vertical-align:middle;color:red;font-size:20px;line-height:27px}
|
css/builder/builder.main.css
CHANGED
@@ -4248,8 +4248,8 @@ div#scroller-stopper {
|
|
4248 |
}
|
4249 |
|
4250 |
.mce-tinymce .mce-btn button:hover {
|
4251 |
-
background
|
4252 |
-
border-color: #ccc;
|
4253 |
}
|
4254 |
|
4255 |
/**
|
4248 |
}
|
4249 |
|
4250 |
.mce-tinymce .mce-btn button:hover {
|
4251 |
+
background: #e3e3e3 !important;
|
4252 |
+
border-color: #ccc !important;
|
4253 |
}
|
4254 |
|
4255 |
/**
|
ds-live-composer.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://www.livecomposerplugin.com
|
5 |
* Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
6 |
* Author: Live Composer Team
|
7 |
-
* Version: 1.2.
|
8 |
* Author URI: https://livecomposerplugin.com
|
9 |
* License: GPL2
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -42,7 +42,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
|
|
42 |
* Constants
|
43 |
*/
|
44 |
|
45 |
-
define( 'DS_LIVE_COMPOSER_VER', '1.2.
|
46 |
|
47 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
48 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
4 |
* Plugin URI: https://www.livecomposerplugin.com
|
5 |
* Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
6 |
* Author: Live Composer Team
|
7 |
+
* Version: 1.2.5
|
8 |
* Author URI: https://livecomposerplugin.com
|
9 |
* License: GPL2
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
42 |
* Constants
|
43 |
*/
|
44 |
|
45 |
+
define( 'DS_LIVE_COMPOSER_VER', '1.2.5' );
|
46 |
|
47 |
define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
|
48 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
includes/display-functions.php
CHANGED
@@ -48,6 +48,12 @@ function dslc_display_composer() {
|
|
48 |
$default_section = 'functionality';
|
49 |
}
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
?>
|
52 |
|
53 |
<div class="dslca-container dslca-state-off" data-post-id="<?php echo intval( $_GET['page_id'] ); ?>">
|
@@ -105,7 +111,7 @@ function dslc_display_composer() {
|
|
105 |
<a href="#" class="dslca-hide-composer-hook"><span class="dslca-icon dslc-icon-arrow-down"></span><?php _e( 'Hide Editor', 'live-composer-page-builder' ); ?></a>
|
106 |
|
107 |
<!-- Disable -->
|
108 |
-
<a href="<?php the_permalink( $
|
109 |
|
110 |
<div class="dslc-clear"></div>
|
111 |
|
@@ -196,8 +202,8 @@ function dslc_display_composer() {
|
|
196 |
|
197 |
<form class="dslca-template-save-form">
|
198 |
<input type="text" id="dslca-save-template-title" placeholder="<?php _e( 'Name of the template', 'live-composer-page-builder' ); ?>">
|
199 |
-
<
|
200 |
-
<
|
201 |
</form>
|
202 |
|
203 |
</div><!-- .dslca-modal -->
|
@@ -215,15 +221,15 @@ function dslc_display_composer() {
|
|
215 |
|
216 |
<form class="dslca-template-import-form">
|
217 |
<textarea id="dslca-import-code" placeholder="<?php _e( 'Enter the exported code heree', 'live-composer-page-builder' ); ?>"></textarea>
|
218 |
-
<
|
219 |
-
<
|
220 |
<div class="dslca-loading followingBallsGWrap">
|
221 |
<div class="followingBallsG_1 followingBallsG"></div>
|
222 |
<div class="followingBallsG_2 followingBallsG"></div>
|
223 |
<div class="followingBallsG_3 followingBallsG"></div>
|
224 |
<div class="followingBallsG_4 followingBallsG"></div>
|
225 |
</div>
|
226 |
-
</
|
227 |
<span class="dslca-cancel dslca-close-modal-hook" data-modal=".dslca-modal-templates-import"><?php _e( 'Cancel', 'live-composer-page-builder' ); ?></span>
|
228 |
</form>
|
229 |
|
@@ -321,36 +327,35 @@ function dslc_display_composer() {
|
|
321 |
<div class="dslca-invisible-overlay"></div>
|
322 |
<div id="scroller-stopper"></div>
|
323 |
<script id="pseudo-panel" type="template">
|
324 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
|
326 |
-
|
327 |
|
328 |
-
|
329 |
-
<!-- Module Option filters -->
|
330 |
-
<span class="dslca-pseudo-options-filter-hook dslca-active" data-section="functionality" style="display: block;"><span class="dslca-icon dslc-icon-cog"></span> Functionality</span>
|
331 |
-
<span class="dslca-pseudo-options-filter-hook" data-section="styling" style="display: block;"><span class="dslca-icon dslc-icon-tint"></span> Styling</span>
|
332 |
-
<span class="dslca-pseudo-options-filter-hook" data-section="responsive" style="display: block;"><span class="dslca-icon dslc-icon-mobile-phone"></span> Responsive</span>
|
333 |
|
334 |
-
|
335 |
-
|
336 |
-
<a href="#" class="dslca-pseudo-module-edit-save">Confirm</a>
|
337 |
-
<a href="#" class="dslca-pseudo-module-edit-cancel">Cancel</a>
|
338 |
-
</div>
|
339 |
-
<!-- Row Options Actions -->
|
340 |
|
341 |
-
|
|
|
342 |
|
343 |
-
|
344 |
|
345 |
-
|
346 |
-
<a href="#" class="dslca-pseudo-hide-composer-hook"><span class="dslca-icon dslc-icon-arrow-down"></span>Hide Editor</a>
|
347 |
-
|
348 |
-
<!-- Disable -->
|
349 |
-
<a href="#" class="dslca-pseudo-close-composer-hook"><span class="dslca-icon dslc-icon-remove"></span>Disable Editor</a>
|
350 |
-
|
351 |
-
<div class="dslc-clear"></div>
|
352 |
-
|
353 |
-
</div><!-- .dslca-actions -->
|
354 |
|
355 |
|
356 |
|
@@ -391,15 +396,14 @@ function dslc_display_composer() {
|
|
391 |
</div><!-- .dslc-module-edit-option -->
|
392 |
</div>
|
393 |
</div>
|
394 |
-
|
395 |
</div>
|
396 |
-
|
397 |
-
</div>
|
398 |
</script>
|
399 |
<?php
|
400 |
|
401 |
-
// Output editor messages
|
402 |
-
|
|
|
403 |
|
404 |
endif;
|
405 |
|
@@ -1120,12 +1124,17 @@ function dslc_modules_section_front( $atts, $content = null, $version = 1 ) {
|
|
1120 |
if ( ! isset( $atts['show_on'] ) ) {
|
1121 |
$atts['show_on'] = 'desktop tablet phone';
|
1122 |
}
|
1123 |
-
|
1124 |
// Unique section ID
|
1125 |
if ( ! isset( $atts['section_instance_id'] ) ) {
|
1126 |
$atts['section_instance_id'] = dslc_get_new_module_id();
|
1127 |
}
|
1128 |
-
|
|
|
|
|
|
|
|
|
|
|
1129 |
// Custom ID.
|
1130 |
if ( ! isset( $atts['custom_id'] ) ) {
|
1131 |
$atts['custom_id'] = '';
|
@@ -1299,7 +1308,7 @@ function dslc_modules_section_front( $atts, $content = null, $version = 1 ) {
|
|
1299 |
|
1300 |
//data-section-id='. $atts['section_instance_id'] . '
|
1301 |
$output = '
|
1302 |
-
<div ' . $section_id_output . ' class="dslc-modules-section ' . $a_container_class . $parallax_class . $section_class . $extra_classes . '" style="' . dslc_row_get_style( $atts ) . '">
|
1303 |
|
1304 |
'.$bg_video . '
|
1305 |
|
48 |
$default_section = 'functionality';
|
49 |
}
|
50 |
|
51 |
+
if ( isset( $_GET['preview_id'] ) ) {
|
52 |
+
$url_id = $_GET['preview_id'];
|
53 |
+
} else {
|
54 |
+
$url_id = $_GET['page_id'];
|
55 |
+
}
|
56 |
+
|
57 |
?>
|
58 |
|
59 |
<div class="dslca-container dslca-state-off" data-post-id="<?php echo intval( $_GET['page_id'] ); ?>">
|
111 |
<a href="#" class="dslca-hide-composer-hook"><span class="dslca-icon dslc-icon-arrow-down"></span><?php _e( 'Hide Editor', 'live-composer-page-builder' ); ?></a>
|
112 |
|
113 |
<!-- Disable -->
|
114 |
+
<a href="<?php the_permalink( $url_id ); ?>" class="dslca-close-composer-hook"><span class="dslca-icon dslc-icon-remove"></span><?php _e( 'Disable Editor', 'live-composer-page-builder' ); ?></a>
|
115 |
|
116 |
<div class="dslc-clear"></div>
|
117 |
|
202 |
|
203 |
<form class="dslca-template-save-form">
|
204 |
<input type="text" id="dslca-save-template-title" placeholder="<?php _e( 'Name of the template', 'live-composer-page-builder' ); ?>">
|
205 |
+
<div class="dslca-submit"><?php _e( 'Save', 'live-composer-page-builder' ); ?></div>
|
206 |
+
<div class="dslca-cancel dslca-close-modal-hook" data-modal=".dslca-modal-templates-save"><?php _e( 'Cancel', 'live-composer-page-builder' ); ?></div>
|
207 |
</form>
|
208 |
|
209 |
</div><!-- .dslca-modal -->
|
221 |
|
222 |
<form class="dslca-template-import-form">
|
223 |
<textarea id="dslca-import-code" placeholder="<?php _e( 'Enter the exported code heree', 'live-composer-page-builder' ); ?>"></textarea>
|
224 |
+
<div class="dslca-submit">
|
225 |
+
<div class="dslca-modal-title"><?php _e( 'Import', 'live-composer-page-builder' ); ?></div>
|
226 |
<div class="dslca-loading followingBallsGWrap">
|
227 |
<div class="followingBallsG_1 followingBallsG"></div>
|
228 |
<div class="followingBallsG_2 followingBallsG"></div>
|
229 |
<div class="followingBallsG_3 followingBallsG"></div>
|
230 |
<div class="followingBallsG_4 followingBallsG"></div>
|
231 |
</div>
|
232 |
+
</div>
|
233 |
<span class="dslca-cancel dslca-close-modal-hook" data-modal=".dslca-modal-templates-import"><?php _e( 'Cancel', 'live-composer-page-builder' ); ?></span>
|
234 |
</form>
|
235 |
|
327 |
<div class="dslca-invisible-overlay"></div>
|
328 |
<div id="scroller-stopper"></div>
|
329 |
<script id="pseudo-panel" type="template">
|
330 |
+
<div class="dslca-pseudo-panel">
|
331 |
+
<div class="dslca-pseudo-header dslc-clearfix">
|
332 |
+
|
333 |
+
<!-- Tabs -->
|
334 |
+
<!-- Module Option filters -->
|
335 |
+
<span class="dslca-pseudo-options-filter-hook dslca-active" data-section="functionality" style="display: block;"><span class="dslca-icon dslc-icon-cog"></span> Functionality</span>
|
336 |
+
<span class="dslca-pseudo-options-filter-hook" data-section="styling" style="display: block;"><span class="dslca-icon dslc-icon-tint"></span> Styling</span>
|
337 |
+
<span class="dslca-pseudo-options-filter-hook" data-section="responsive" style="display: block;"><span class="dslca-icon dslc-icon-mobile-phone"></span> Responsive</span>
|
338 |
+
|
339 |
+
<!-- Module Options Actions -->
|
340 |
+
<div class="dslca-pseudo-module-edit-actions" style="display: block;">
|
341 |
+
<a href="#" class="dslca-pseudo-module-edit-save">Confirm</a>
|
342 |
+
<a href="#" class="dslca-pseudo-module-edit-cancel">Cancel</a>
|
343 |
+
</div>
|
344 |
+
<!-- Row Options Actions -->
|
345 |
|
346 |
+
</div><!-- .dslca-header -->
|
347 |
|
348 |
+
<div class="dslca-pseudo-actions">
|
|
|
|
|
|
|
|
|
349 |
|
350 |
+
<!-- Hide/Show -->
|
351 |
+
<a href="#" class="dslca-pseudo-hide-composer-hook"><span class="dslca-icon dslc-icon-arrow-down"></span>Hide Editor</a>
|
|
|
|
|
|
|
|
|
352 |
|
353 |
+
<!-- Disable -->
|
354 |
+
<a href="#" class="dslca-pseudo-close-composer-hook"><span class="dslca-icon dslc-icon-remove"></span>Disable Editor</a>
|
355 |
|
356 |
+
<div class="dslc-clear"></div>
|
357 |
|
358 |
+
</div><!-- .dslca-actions -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
359 |
|
360 |
|
361 |
|
396 |
</div><!-- .dslc-module-edit-option -->
|
397 |
</div>
|
398 |
</div>
|
|
|
399 |
</div>
|
400 |
+
</div>
|
|
|
401 |
</script>
|
402 |
<?php
|
403 |
|
404 |
+
// Output editor messages.
|
405 |
+
$editor_messages = new Editor_Messages();
|
406 |
+
echo $editor_messages->dslc_print_editor_messages();
|
407 |
|
408 |
endif;
|
409 |
|
1124 |
if ( ! isset( $atts['show_on'] ) ) {
|
1125 |
$atts['show_on'] = 'desktop tablet phone';
|
1126 |
}
|
1127 |
+
|
1128 |
// Unique section ID
|
1129 |
if ( ! isset( $atts['section_instance_id'] ) ) {
|
1130 |
$atts['section_instance_id'] = dslc_get_new_module_id();
|
1131 |
}
|
1132 |
+
|
1133 |
+
// Apply new instance ID if needed.
|
1134 |
+
if ( isset( $atts['give_new_id'] ) ) {
|
1135 |
+
$atts['section_instance_id'] = dslc_get_new_module_id();
|
1136 |
+
}
|
1137 |
+
|
1138 |
// Custom ID.
|
1139 |
if ( ! isset( $atts['custom_id'] ) ) {
|
1140 |
$atts['custom_id'] = '';
|
1308 |
|
1309 |
//data-section-id='. $atts['section_instance_id'] . '
|
1310 |
$output = '
|
1311 |
+
<div ' . $section_id_output . ' class="dslc-modules-section ' . $a_container_class . $parallax_class . $section_class . $extra_classes . '" style="' . dslc_row_get_style( $atts ) . '" data-section-id="' . $atts['section_instance_id'] . '">
|
1312 |
|
1313 |
'.$bg_video . '
|
1314 |
|
includes/editor-messages.php
CHANGED
@@ -1,11 +1,14 @@
|
|
1 |
<?php
|
2 |
|
3 |
/**
|
4 |
-
*
|
5 |
*/
|
6 |
-
|
7 |
|
8 |
-
|
|
|
|
|
|
|
9 |
'messages' => array(
|
10 |
'message_1' => array(
|
11 |
'text' => 'Our WooCommerce integration add-on is almost ready for realese. Price growths with every update. <strong>Buy it today to save 30%!</strong>',
|
@@ -41,39 +44,37 @@ function dslc_update_messages() {
|
|
41 |
'can_hide' => 0,
|
42 |
);
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
<a href="#" class="dslca_editor_messages_title"><?php echo __( 'Live Composer Updates', 'live-composer-page-builder' ); ?></a>
|
55 |
-
<a href="#" class="dslca_editor_messages_hide"><span class="dslc-icon dslc-icon-remove"></span><?php echo __( 'Hide this Line', 'live-composer-page-builder' ); ?></a>
|
56 |
-
<ul id="editor_messages">
|
57 |
-
<?php
|
58 |
|
59 |
-
|
60 |
-
dslc_update_messages();
|
61 |
-
}
|
62 |
|
63 |
-
|
|
|
|
|
64 |
|
65 |
-
|
66 |
-
if ( 'can_hide' !== $key ) {
|
67 |
-
foreach ( $messages as $message ) { ?>
|
68 |
-
<li>
|
69 |
-
<span class="dslc-icon <?php echo $message['icon']; ?>"></span><?php echo $message['text']; ?><a href="<?php echo $message['link']; ?>" target="_blank"></a>
|
70 |
-
</li>
|
71 |
-
<?php }
|
72 |
-
}
|
73 |
-
}
|
74 |
-
?>
|
75 |
-
</ul>
|
76 |
-
</div>
|
77 |
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
1 |
<?php
|
2 |
|
3 |
/**
|
4 |
+
* Main Editor_Messages Class.
|
5 |
*/
|
6 |
+
class Editor_Messages {
|
7 |
|
8 |
+
/**
|
9 |
+
* Messages
|
10 |
+
*/
|
11 |
+
public $array_messages = array(
|
12 |
'messages' => array(
|
13 |
'message_1' => array(
|
14 |
'text' => 'Our WooCommerce integration add-on is almost ready for realese. Price growths with every update. <strong>Buy it today to save 30%!</strong>',
|
44 |
'can_hide' => 0,
|
45 |
);
|
46 |
|
47 |
+
/**
|
48 |
+
* Display the editor messages
|
49 |
+
*/
|
50 |
+
public function dslc_print_editor_messages() {
|
51 |
+
?>
|
52 |
+
<div class="dslca_editor_messages_section">
|
53 |
+
<a href="#" class="dslca_editor_messages_title"><?php echo __( 'Live Composer Updates', 'live-composer-page-builder' ); ?></a>
|
54 |
+
<a href="#" class="dslca_editor_messages_hide"><span class="dslc-icon dslc-icon-remove"></span><?php echo __( 'Hide this Line', 'live-composer-page-builder' ); ?></a>
|
55 |
+
<ul id="editor_messages">
|
56 |
+
<?php
|
|
|
|
|
|
|
|
|
57 |
|
58 |
+
if ( false === get_option( 'dslc_editor_messages' ) ) {
|
|
|
|
|
59 |
|
60 |
+
$dslc_messages = $this->array_messages;
|
61 |
+
add_option( 'dslc_editor_messages', $dslc_messages );
|
62 |
+
}
|
63 |
|
64 |
+
$array = get_option( 'dslc_editor_messages' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
+
foreach ( $array as $key => $messages ) {
|
67 |
+
if ( 'can_hide' !== $key ) {
|
68 |
+
foreach ( $messages as $message ) { ?>
|
69 |
+
<li>
|
70 |
+
<span class="dslc-icon <?php echo $message['icon']; ?>"></span><?php echo $message['text']; ?><a href="<?php echo $message['link']; ?>" target="_blank"></a>
|
71 |
+
</li>
|
72 |
+
<?php }
|
73 |
+
}
|
74 |
+
}
|
75 |
+
?>
|
76 |
+
</ul>
|
77 |
+
</div>
|
78 |
+
<?php
|
79 |
+
}
|
80 |
}
|
includes/editorinterface.class.php
CHANGED
@@ -205,7 +205,7 @@ class DSLC_EditorInterface {
|
|
205 |
|
206 |
} elseif ( is_singular() && $use_lc_templates ) {
|
207 |
// If a singular page ( posts and pages ) and IS using LC templates.
|
208 |
-
self::the_edit_template_link( get_the_ID() );
|
209 |
|
210 |
} elseif ( is_404() ) {
|
211 |
// If it's a 404 page.
|
205 |
|
206 |
} elseif ( is_singular() && $use_lc_templates ) {
|
207 |
// If a singular page ( posts and pages ) and IS using LC templates.
|
208 |
+
self::the_edit_template_link( get_the_ID(), true );
|
209 |
|
210 |
} elseif ( is_404() ) {
|
211 |
// If it's a 404 page.
|
includes/functions.php
CHANGED
@@ -51,6 +51,7 @@ function dslc_register_modules() {
|
|
51 |
|
52 |
// Register default modules.
|
53 |
dslc_register_module( 'DSLC_Html' );
|
|
|
54 |
dslc_register_module( 'DSLC_Text_Simple' );
|
55 |
dslc_register_module( 'DSLC_Image' );
|
56 |
dslc_register_module( 'DSLC_Button' );
|
51 |
|
52 |
// Register default modules.
|
53 |
dslc_register_module( 'DSLC_Html' );
|
54 |
+
dslc_register_module( 'DSLC_Shortcode' );
|
55 |
dslc_register_module( 'DSLC_Text_Simple' );
|
56 |
dslc_register_module( 'DSLC_Image' );
|
57 |
dslc_register_module( 'DSLC_Button' );
|
includes/options.extension.class.php
CHANGED
@@ -167,9 +167,10 @@ class DSLC_Options_Extender {
|
|
167 |
$value = '';
|
168 |
$options = get_option( 'dslc_custom_options_' . $option['extension_id'] );
|
169 |
|
170 |
-
if ( isset( $options[$option['id']] ) ) {
|
171 |
-
|
172 |
-
|
|
|
173 |
}
|
174 |
|
175 |
$option['value'] = $value;
|
167 |
$value = '';
|
168 |
$options = get_option( 'dslc_custom_options_' . $option['extension_id'] );
|
169 |
|
170 |
+
if ( isset( $options[ $option['id'] ] ) ) {
|
171 |
+
$value = $options[ $option['id'] ];
|
172 |
+
} elseif ( isset( $option['std'] ) ) {
|
173 |
+
$value = $option['std'];
|
174 |
}
|
175 |
|
176 |
$option['value'] = $value;
|
includes/other-functions.php
CHANGED
@@ -484,4 +484,20 @@ function dslc_admin_int_on() {
|
|
484 |
return true;
|
485 |
}
|
486 |
|
487 |
-
add_filter( 'dslc_admin_interface_on', 'dslc_admin_int_on', 1 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
484 |
return true;
|
485 |
}
|
486 |
|
487 |
+
add_filter( 'dslc_admin_interface_on', 'dslc_admin_int_on', 1 );
|
488 |
+
|
489 |
+
|
490 |
+
/**
|
491 |
+
* Filter textarea
|
492 |
+
*
|
493 |
+
* @param string $content Get textarea.
|
494 |
+
*/
|
495 |
+
function dslc_filter_textarea( $content ) {
|
496 |
+
|
497 |
+
$content = str_replace( '<lctextarea', '<textarea', $content );
|
498 |
+
$content = str_replace( '</lctextarea', '</textarea', $content );
|
499 |
+
|
500 |
+
return $content;
|
501 |
+
}
|
502 |
+
|
503 |
+
add_filter( 'dslc_before_render', 'dslc_filter_textarea' );
|
includes/other.php
CHANGED
@@ -214,37 +214,36 @@ add_action( 'admin_notices', 'dslc_w3tc_admin_notice' );
|
|
214 |
* In this case users can't edit website via front end
|
215 |
* as they not logged in as admin there.
|
216 |
*/
|
217 |
-
|
218 |
function dslc_check_wpsettings_admin_notice() {
|
219 |
-
$wp_url = get_option( 'siteurl' );
|
220 |
-
$wp_site_url = get_option( 'home' );
|
221 |
-
$check_url = strcmp( $wp_url, $wp_site_url );
|
222 |
|
223 |
-
|
224 |
-
|
|
|
225 |
|
226 |
-
|
227 |
-
|
228 |
-
$notice_dismissed = dslc_notice_dismissed( $notice_id );
|
229 |
-
$notice_nonce = dslc_generate_notice_nonce( $notice_id );
|
230 |
|
|
|
|
|
|
|
|
|
231 |
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
|
236 |
-
|
237 |
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
|
242 |
-
|
243 |
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
}
|
249 |
add_action( 'admin_notices', 'dslc_check_wpsettings_admin_notice' );
|
250 |
|
214 |
* In this case users can't edit website via front end
|
215 |
* as they not logged in as admin there.
|
216 |
*/
|
|
|
217 |
function dslc_check_wpsettings_admin_notice() {
|
|
|
|
|
|
|
218 |
|
219 |
+
$wp_url = get_option( 'siteurl' );
|
220 |
+
$wp_site_url = get_option( 'home' );
|
221 |
+
$check_url = strcmp( $wp_url, $wp_site_url );
|
222 |
|
223 |
+
$screen = get_current_screen();
|
224 |
+
$current_parent_base = $screen->parent_base;
|
|
|
|
|
225 |
|
226 |
+
$notice_id = 'wrong_wpsettings_settings';
|
227 |
+
$display_notice = false;
|
228 |
+
$notice_dismissed = dslc_notice_dismissed( $notice_id );
|
229 |
+
$notice_nonce = dslc_generate_notice_nonce( $notice_id );
|
230 |
|
231 |
+
if ( ! $notice_dismissed && $check_url ) {
|
232 |
+
$display_notice = true;
|
233 |
+
}
|
234 |
|
235 |
+
if ( $display_notice && $current_parent_base != 'dslc_plugin_options' ) {?>
|
236 |
|
237 |
+
<div class="notice dslc-notice notice-error is-dismissible" id="<?php echo $notice_id; ?>" data-nonce="<?php echo $notice_nonce; ?>">
|
238 |
+
<p><?php _e( '<strong>Live Composer:</strong> probably there is a problem with your website settings. <a href="' . admin_url( 'admin.php?page=dslc_plugin_options' ) . '">Click here to find out more.</a>', 'live-composer-page-builder' ); ?></p>
|
239 |
+
</div><?php
|
240 |
|
241 |
+
} elseif ( $display_notice && $current_parent_base == 'dslc_plugin_options' ) { ?>
|
242 |
|
243 |
+
<div class="notice dslc-notice notice-error is-dismissible" id="<?php echo $notice_id; ?>" data-nonce="<?php echo $notice_nonce; ?>">
|
244 |
+
<p><?php _e( 'Wrong settings found in <strong><a href="' . admin_url( 'options-general.php' ) . '" target="_blank">WP Admin → Settings</a></strong>: <strong>Wordpress Address</strong> and <strong>Site Address</strong> should be the same to make front-editing possible with Live Composer.', 'live-composer-page-builder' ); ?></p>
|
245 |
+
</div>
|
246 |
+
<?php }
|
247 |
}
|
248 |
add_action( 'admin_notices', 'dslc_check_wpsettings_admin_notice' );
|
249 |
|
includes/plugin-options-framework/inc/init.php
CHANGED
@@ -252,7 +252,7 @@ function dslc_option_display_funcitons_router( $option ) {
|
|
252 |
* @param section $section Docs section.
|
253 |
*/
|
254 |
function dslc_plugin_options_display_options( $section ) {
|
255 |
-
|
256 |
}
|
257 |
|
258 |
/**
|
252 |
* @param section $section Docs section.
|
253 |
*/
|
254 |
function dslc_plugin_options_display_options( $section ) {
|
255 |
+
echo apply_filters( 'dslc_filter_section_description', '', $section['id'] );
|
256 |
}
|
257 |
|
258 |
/**
|
includes/post-options-framework/css/main.css
CHANGED
@@ -163,7 +163,7 @@
|
|
163 |
display: block;
|
164 |
}
|
165 |
|
166 |
-
.lc-active #post-status-info, .lc-active #wp-content-editor-container {
|
167 |
display: none;
|
168 |
opacity: 0;
|
169 |
}
|
@@ -215,4 +215,23 @@
|
|
215 |
|
216 |
#lc_content_wrap {
|
217 |
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
}
|
163 |
display: block;
|
164 |
}
|
165 |
|
166 |
+
.lc-active #post-status-info, .lc-active #wp-content-editor-container, .lc-active .dslc-notice {
|
167 |
display: none;
|
168 |
opacity: 0;
|
169 |
}
|
215 |
|
216 |
#lc_content_wrap {
|
217 |
display: none;
|
218 |
+
}
|
219 |
+
|
220 |
+
/**
|
221 |
+
* Backed Content in WP Editor
|
222 |
+
*/
|
223 |
+
|
224 |
+
.dslc-notice {
|
225 |
+
background: #fff;
|
226 |
+
border-left: 4px solid #dc3232;
|
227 |
+
padding: 7px 0px 7px 10px;
|
228 |
+
font-size: 14px;
|
229 |
+
line-height: 1;
|
230 |
+
border-top: 1px solid #E8E5E5;
|
231 |
+
border-right: 1px solid #E8E5E5;
|
232 |
+
}
|
233 |
+
|
234 |
+
.dslc-notice a {
|
235 |
+
text-decoration: none;
|
236 |
+
font-weight: bold;
|
237 |
}
|
includes/post-options-framework/css/main.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.dslca-post-options{padding:20px 10px}.dslca-post-option{border-top:1px dashed #ddd;margin-top:20px;padding-top:20px}.dslca-post-option:first-child{margin-top:0;padding-top:0;border-top:0}.dslca-post-option-label{font-weight:700;font-size:1.2em;margin-bottom:15px}.dslca-post-option-description{margin-bottom:20px}.dslca-post-option-field-choice{margin-bottom:10px}.dslca-post-option-field-choice>input{margin:2px 0 0;position:absolute}.dslca-post-option-field-choice>label{display:block;margin-left:26px}.dslca-post-option-add-file-hook{background:#54C13F;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:11px;line-height:1;margin-bottom:20px;padding:10px 13px;text-transform:uppercase;font-weight:700}.dslca-post-option-image{background:0 0;border:1px solid #ddd;display:block;float:left;margin:0 15px 15px 0;padding:7px;position:relative;border-radius:3px}.dslca-post-option-image-inner{width:100px;overflow:hidden}.dslca-post-option-image img{max-width:100%;border-radius:3px;display:block;margin:0;padding:0}.dslca-post-option-image-remove{background:#E55F5F;border-radius:50%;color:#fff;cursor:pointer;display:block;font-size:10px;line-height:8px;position:absolute;padding:3px;top:-8px;right:-8px;width:10px;height:10px;text-align:center}.dslca-post-options input[type=text],.dslca-post-options textarea{border:1px solid #ddd;border-radius:0;padding:8px 15px;width:100%}.dslca-post-options textarea{height:150px}.dslca-post-options select{border:1px solid #ddd;border-radius:0;padding:8px 15px;height:auto}.dslca-clearfix:after,.dslca-clearfix:before{content:" ";display:table}.dslca-clear,.dslca-clearfix:after{clear:both}#major-publishing-actions .button-hero{text-align:center;width:100%;margin-bottom:14px}.dslca-post-options .button{text-align:center;width:50%;margin-top:14px;display:block}.lc-active #post-status-info,.lc-active #wp-content-editor-container{display:none;opacity:0}.lc-active .switch-lc{background:#f5f5f5;border-bottom-color:#f5f5f5}.lc-active .wp-switch-editor:focus{outline:0;box-shadow:none}.lc-active .html-active .switch-html{background:#ebebeb;border-bottom-color:#e5e5e5}.lc-active .wp-switch-editor-lc{background:#f5f5f5;color:#555;border-bottom-color:#f5f5f5}.lc-active #lc_content_wrap{display:block;background:#f5f5f5;height:250px;padding-top:70px;border:1px solid #e5e5e5;border-top:none;text-align:center}.lc-active #lc_content_wrap h2{font-size:21px;font-weight:400;line-height:1.2}.lc-active #lc_content_wrap .description{font-size:14px;line-height:1.5;color:#777;margin:10px auto 20px;max-width:400px}#lc_content_wrap{display:none}
|
1 |
+
.dslca-post-options{padding:20px 10px}.dslca-post-option{border-top:1px dashed #ddd;margin-top:20px;padding-top:20px}.dslca-post-option:first-child{margin-top:0;padding-top:0;border-top:0}.dslca-post-option-label{font-weight:700;font-size:1.2em;margin-bottom:15px}.dslca-post-option-description{margin-bottom:20px}.dslca-post-option-field-choice{margin-bottom:10px}.dslca-post-option-field-choice>input{margin:2px 0 0;position:absolute}.dslca-post-option-field-choice>label{display:block;margin-left:26px}.dslca-post-option-add-file-hook{background:#54C13F;border-radius:3px;color:#fff;cursor:pointer;display:inline-block;font-size:11px;line-height:1;margin-bottom:20px;padding:10px 13px;text-transform:uppercase;font-weight:700}.dslca-post-option-image{background:0 0;border:1px solid #ddd;display:block;float:left;margin:0 15px 15px 0;padding:7px;position:relative;border-radius:3px}.dslca-post-option-image-inner{width:100px;overflow:hidden}.dslca-post-option-image img{max-width:100%;border-radius:3px;display:block;margin:0;padding:0}.dslca-post-option-image-remove{background:#E55F5F;border-radius:50%;color:#fff;cursor:pointer;display:block;font-size:10px;line-height:8px;position:absolute;padding:3px;top:-8px;right:-8px;width:10px;height:10px;text-align:center}.dslca-post-options input[type=text],.dslca-post-options textarea{border:1px solid #ddd;border-radius:0;padding:8px 15px;width:100%}.dslca-post-options textarea{height:150px}.dslca-post-options select{border:1px solid #ddd;border-radius:0;padding:8px 15px;height:auto}.dslca-clearfix:after,.dslca-clearfix:before{content:" ";display:table}.dslca-clear,.dslca-clearfix:after{clear:both}#major-publishing-actions .button-hero{text-align:center;width:100%;margin-bottom:14px}.dslca-post-options .button{text-align:center;width:50%;margin-top:14px;display:block}.lc-active #post-status-info,.lc-active #wp-content-editor-container,.lc-active .dslc-notice{display:none;opacity:0}.lc-active .switch-lc{background:#f5f5f5;border-bottom-color:#f5f5f5}.lc-active .wp-switch-editor:focus{outline:0;box-shadow:none}.lc-active .html-active .switch-html{background:#ebebeb;border-bottom-color:#e5e5e5}.lc-active .wp-switch-editor-lc{background:#f5f5f5;color:#555;border-bottom-color:#f5f5f5}.lc-active #lc_content_wrap{display:block;background:#f5f5f5;height:250px;padding-top:70px;border:1px solid #e5e5e5;border-top:none;text-align:center}.lc-active #lc_content_wrap h2{font-size:21px;font-weight:400;line-height:1.2}.lc-active #lc_content_wrap .description{font-size:14px;line-height:1.5;color:#777;margin:10px auto 20px;max-width:400px}#lc_content_wrap{display:none}.dslc-notice{background:#fff;border-left:4px solid #dc3232;padding:7px 0 7px 10px;font-size:14px;line-height:1;border-top:1px solid #E8E5E5;border-right:1px solid #E8E5E5}.dslc-notice a{text-decoration:none;font-weight:700}
|
includes/post-options-framework/post-options-framework.php
CHANGED
@@ -542,3 +542,21 @@ function dslc_tab_content( $content ) {
|
|
542 |
return $content;
|
543 |
}
|
544 |
add_filter( 'the_editor', 'dslc_tab_content' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
542 |
return $content;
|
543 |
}
|
544 |
add_filter( 'the_editor', 'dslc_tab_content' );
|
545 |
+
|
546 |
+
/**
|
547 |
+
* Add notice in in WP Editor
|
548 |
+
*
|
549 |
+
* @param array $wrapper HTML output.
|
550 |
+
*/
|
551 |
+
function dslc_notice( $wrapper ) {
|
552 |
+
|
553 |
+
$custom_fields = get_post_custom( get_the_ID() );
|
554 |
+
$url = DSLC_EditorInterface::get_editor_link_url( get_the_ID() );
|
555 |
+
|
556 |
+
if ( is_admin() && is_array( $custom_fields ) && array_key_exists( 'dslc_code', $custom_fields ) ) {
|
557 |
+
$wrapper .= '</textarea><div class="dslc-notice">This page was created in a page builder. <a target="_blank" href="'. $url . '">'. __( 'Open it in Live Composer', 'live-composer-page-builder' ) .'</a> to make any content or design changes.</div>';
|
558 |
+
}
|
559 |
+
|
560 |
+
return $wrapper;
|
561 |
+
}
|
562 |
+
add_filter( 'the_editor', 'dslc_notice' );
|
includes/post-templates.php
CHANGED
@@ -60,6 +60,8 @@ function dslc_can_edit_in_lc( $post_data ) {
|
|
60 |
global $dslc_var_templates_pt;
|
61 |
global $dslc_enabled_cpt;
|
62 |
|
|
|
|
|
63 |
if ( is_int( $post_data ) || empty( $post_data ) ) {
|
64 |
# code...
|
65 |
} else {
|
@@ -69,24 +71,30 @@ function dslc_can_edit_in_lc( $post_data ) {
|
|
69 |
// If $post_type is included in $dslc_var_templates_pt (can edit with LC).
|
70 |
if ( array_key_exists( $post_type, $dslc_var_templates_pt ) ||
|
71 |
array_key_exists( $post_type, $dslc_enabled_cpt ) ) {
|
72 |
-
|
73 |
} elseif ( 'dslc_hf' === $post_type ) {
|
74 |
// Make header/footer CPT as editable.
|
75 |
-
|
76 |
}
|
|
|
|
|
77 |
}
|
78 |
|
79 |
-
return
|
80 |
}
|
81 |
|
82 |
function dslc_cpt_use_templates( $post_type ) {
|
83 |
|
84 |
global $dslc_var_templates_pt;
|
85 |
|
|
|
|
|
86 |
// If $post_type is included in $dslc_var_templates_pt (can edit with LC).
|
87 |
if ( array_key_exists( $post_type, $dslc_var_templates_pt ) ) {
|
88 |
-
|
89 |
}
|
90 |
|
91 |
-
|
|
|
|
|
92 |
}
|
60 |
global $dslc_var_templates_pt;
|
61 |
global $dslc_enabled_cpt;
|
62 |
|
63 |
+
$can_edit = false;
|
64 |
+
|
65 |
if ( is_int( $post_data ) || empty( $post_data ) ) {
|
66 |
# code...
|
67 |
} else {
|
71 |
// If $post_type is included in $dslc_var_templates_pt (can edit with LC).
|
72 |
if ( array_key_exists( $post_type, $dslc_var_templates_pt ) ||
|
73 |
array_key_exists( $post_type, $dslc_enabled_cpt ) ) {
|
74 |
+
$can_edit = true;
|
75 |
} elseif ( 'dslc_hf' === $post_type ) {
|
76 |
// Make header/footer CPT as editable.
|
77 |
+
$can_edit = true;
|
78 |
}
|
79 |
+
|
80 |
+
$can_edit = apply_filters( 'dslc_can_edit_in_lc', $can_edit, $post_type );
|
81 |
}
|
82 |
|
83 |
+
return $can_edit;
|
84 |
}
|
85 |
|
86 |
function dslc_cpt_use_templates( $post_type ) {
|
87 |
|
88 |
global $dslc_var_templates_pt;
|
89 |
|
90 |
+
$use_templates = false;
|
91 |
+
|
92 |
// If $post_type is included in $dslc_var_templates_pt (can edit with LC).
|
93 |
if ( array_key_exists( $post_type, $dslc_var_templates_pt ) ) {
|
94 |
+
$use_templates = true;
|
95 |
}
|
96 |
|
97 |
+
$use_templates = apply_filters( 'dslc_cpt_use_templates', $use_templates, $post_type );
|
98 |
+
|
99 |
+
return $use_templates;
|
100 |
}
|
includes/row-system/inc/options.php
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Table of Contents
|
5 |
*
|
6 |
* - dslc_row_register_options ( Register options )
|
|
|
|
|
7 |
*/
|
8 |
|
9 |
// Prevent direct access to the file.
|
@@ -12,375 +13,366 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
12 |
exit;
|
13 |
}
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
'value' => 'desktop',
|
41 |
-
),
|
42 |
-
array(
|
43 |
-
'label' => 'Tablet',
|
44 |
-
'value' => 'tablet',
|
45 |
-
),
|
46 |
-
array(
|
47 |
-
'label' => 'Phone',
|
48 |
-
'value' => 'phone',
|
49 |
-
),
|
50 |
),
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
'id' => 'type',
|
55 |
-
'std' => 'wrapper',
|
56 |
-
'label' => __( 'Type', 'live-composer-page-builder' ),
|
57 |
-
'type' => 'select',
|
58 |
-
'choices' => array(
|
59 |
-
array(
|
60 |
-
'label' => 'Wrapped',
|
61 |
-
'value' => 'wrapper',
|
62 |
-
),
|
63 |
-
array(
|
64 |
-
'label' => 'Full',
|
65 |
-
'value' => 'full',
|
66 |
-
),
|
67 |
),
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
'id' => 'columns_spacing',
|
72 |
-
'std' => 'spacing',
|
73 |
-
'label' => __( 'Columns Spacing', 'live-composer-page-builder' ),
|
74 |
-
'type' => 'select',
|
75 |
-
'choices' => array(
|
76 |
-
array(
|
77 |
-
'label' => __( 'With Spacing', 'live-composer-page-builder' ),
|
78 |
-
'value' => 'spacing',
|
79 |
-
),
|
80 |
-
array(
|
81 |
-
'label' => __( 'Without Spacing', 'live-composer-page-builder' ),
|
82 |
-
'value' => 'nospacing',
|
83 |
-
),
|
84 |
-
)
|
85 |
-
);
|
86 |
-
|
87 |
-
$dslc_var_row_options['bg_color'] = array(
|
88 |
-
'id' => 'bg_color',
|
89 |
-
'std' => '',
|
90 |
-
'label' => __( 'BG Color', 'live-composer-page-builder' ),
|
91 |
-
'type' => 'color',
|
92 |
-
'affect_on_change_rule' => 'background-color',
|
93 |
-
);
|
94 |
-
|
95 |
-
$dslc_var_row_options['bg_image_thumb'] = array(
|
96 |
-
'id' => 'bg_image_thumb',
|
97 |
-
'std' => 'disabled',
|
98 |
-
'label' => __( 'BG Image - Use Featured', 'live-composer-page-builder' ),
|
99 |
-
'type' => 'select',
|
100 |
-
'choices' => array(
|
101 |
-
array(
|
102 |
-
'label' => __( 'Enabled', 'live-composer-page-builder' ),
|
103 |
-
'value' => 'enabled',
|
104 |
-
),
|
105 |
-
array(
|
106 |
-
'label' => __( 'Disabled', 'live-composer-page-builder' ),
|
107 |
-
'value' => 'disabled',
|
108 |
-
),
|
109 |
),
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
'id' => 'bg_image_repeat',
|
123 |
-
'std' => 'repeat',
|
124 |
-
'label' => __( 'BG Image Repeat', 'live-composer-page-builder' ),
|
125 |
-
'type' => 'select',
|
126 |
-
'choices' => array(
|
127 |
-
array(
|
128 |
-
'label' => __( 'Repeat', 'live-composer-page-builder' ),
|
129 |
-
'value' => 'repeat',
|
130 |
-
),
|
131 |
-
array(
|
132 |
-
'label' => __( 'Repeat Horizontal', 'live-composer-page-builder' ),
|
133 |
-
'value' => 'repeat-x',
|
134 |
-
),
|
135 |
-
array(
|
136 |
-
'label' => __( 'Repeat Vertical', 'live-composer-page-builder' ),
|
137 |
-
'value' => 'repeat-y',
|
138 |
-
),
|
139 |
-
array(
|
140 |
-
'label' => __( 'Do NOT Repeat', 'live-composer-page-builder' ),
|
141 |
-
'value' => 'no-repeat',
|
142 |
-
),
|
143 |
),
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
$dslc_var_row_options['bg_image_position'] = array(
|
148 |
-
'id' => 'bg_image_position',
|
149 |
-
'std' => 'left top',
|
150 |
-
'label' => __( 'BG Image Position', 'live-composer-page-builder' ),
|
151 |
-
'type' => 'select',
|
152 |
-
'choices' => array(
|
153 |
-
array(
|
154 |
-
'label' => __( 'Top Left', 'live-composer-page-builder' ),
|
155 |
-
'value' => 'left top',
|
156 |
-
),
|
157 |
-
array(
|
158 |
-
'label' => __( 'Top Right', 'live-composer-page-builder' ),
|
159 |
-
'value' => 'right top',
|
160 |
-
),
|
161 |
-
array(
|
162 |
-
'label' => __( 'Top Center', 'live-composer-page-builder' ),
|
163 |
-
'value' => 'center top',
|
164 |
-
),
|
165 |
-
array(
|
166 |
-
'label' => __( 'Center Left', 'live-composer-page-builder' ),
|
167 |
-
'value' => 'left center',
|
168 |
-
),
|
169 |
-
array(
|
170 |
-
'label' => __( 'Center Right', 'live-composer-page-builder' ),
|
171 |
-
'value' => 'right center',
|
172 |
-
),
|
173 |
-
array(
|
174 |
-
'label' => __( 'Center', 'live-composer-page-builder' ),
|
175 |
-
'value' => 'center center',
|
176 |
-
),
|
177 |
-
array(
|
178 |
-
'label' => __( 'Bottom Left', 'live-composer-page-builder' ),
|
179 |
-
'value' => 'left bottom',
|
180 |
-
),
|
181 |
-
array(
|
182 |
-
'label' => __( 'Bottom Right', 'live-composer-page-builder' ),
|
183 |
-
'value' => 'right bottom',
|
184 |
-
),
|
185 |
-
array(
|
186 |
-
'label' => __( 'Bottom Center', 'live-composer-page-builder' ),
|
187 |
-
'value' => 'center bottom',
|
188 |
-
),
|
189 |
),
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
),
|
203 |
-
array(
|
204 |
-
'label' => __( 'Fixed', 'live-composer-page-builder' ),
|
205 |
-
'value' => 'fixed',
|
206 |
-
),
|
207 |
-
array(
|
208 |
-
'label' => __( 'Parallax', 'live-composer-page-builder' ),
|
209 |
-
'value' => 'parallax',
|
210 |
-
),
|
211 |
),
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
$dslc_var_row_options['bg_image_size'] = array(
|
216 |
-
'id' => 'bg_image_size',
|
217 |
-
'std' => 'auto',
|
218 |
-
'label' => __( 'BG Image Size', 'live-composer-page-builder' ),
|
219 |
-
'type' => 'select',
|
220 |
-
'choices' => array(
|
221 |
-
array(
|
222 |
-
'label' => __( 'Original', 'live-composer-page-builder' ),
|
223 |
-
'value' => 'auto',
|
224 |
-
),
|
225 |
-
array(
|
226 |
-
'label' => __( 'Cover', 'live-composer-page-builder' ),
|
227 |
-
'value' => 'cover',
|
228 |
-
),
|
229 |
-
array(
|
230 |
-
'label' => __( 'Contain', 'live-composer-page-builder' ),
|
231 |
-
'value' => 'contain',
|
232 |
-
),
|
233 |
),
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
$dslc_var_row_options['bg_video_overlay_opacity'] = array(
|
255 |
-
'id' => 'bg_video_overlay_opacity',
|
256 |
-
'std' => '0',
|
257 |
-
'label' => __( 'BG - Overlay Opacity', 'live-composer-page-builder' ),
|
258 |
-
'type' => 'slider',
|
259 |
-
'affect_on_change_rule' => 'opacity',
|
260 |
-
'affect_on_change_el' => '.dslc-bg-video-overlay',
|
261 |
-
'min' => 0,
|
262 |
-
'max' => 1,
|
263 |
-
'increment' => 0.05,
|
264 |
-
);
|
265 |
-
|
266 |
-
$dslc_var_row_options['border_color'] = array(
|
267 |
-
'id' => 'border_color',
|
268 |
-
'std' => '',
|
269 |
-
'label' => __( 'Border Color', 'live-composer-page-builder' ),
|
270 |
-
'type' => 'color',
|
271 |
-
'affect_on_change_rule' => 'border-color',
|
272 |
-
);
|
273 |
-
|
274 |
-
$dslc_var_row_options['border_width'] = array(
|
275 |
-
'id' => 'border_width',
|
276 |
-
'min' => 0,
|
277 |
-
|
278 |
-
|
279 |
-
'std' => '0',
|
280 |
-
'label' => __( 'Border Width', 'live-composer-page-builder' ),
|
281 |
-
'type' => 'slider',
|
282 |
-
'affect_on_change_rule' => 'border-width',
|
283 |
-
'ext' => 'px',
|
284 |
-
);
|
285 |
-
|
286 |
-
$dslc_var_row_options['border_style'] = array(
|
287 |
-
'id' => 'border_style',
|
288 |
-
'std' => 'solid',
|
289 |
-
'label' => __( 'Border Style', 'live-composer-page-builder' ),
|
290 |
-
'type' => 'select',
|
291 |
-
'choices' => array(
|
292 |
-
array(
|
293 |
-
'label' => __( 'Solid', 'live-composer-page-builder' ),
|
294 |
-
'value' => 'solid',
|
295 |
-
),
|
296 |
-
array(
|
297 |
-
'label' => __( 'Dotted', 'live-composer-page-builder' ),
|
298 |
-
'value' => 'dotted',
|
299 |
-
),
|
300 |
-
array(
|
301 |
-
'label' => __( 'Dashed', 'live-composer-page-builder' ),
|
302 |
-
'value' => 'dashed',
|
303 |
-
),
|
304 |
),
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
385 |
|
386 |
-
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Table of Contents
|
4 |
*
|
5 |
* - dslc_row_register_options ( Register options )
|
6 |
+
*
|
7 |
+
* @package LiveComposer
|
8 |
*/
|
9 |
|
10 |
// Prevent direct access to the file.
|
13 |
exit;
|
14 |
}
|
15 |
|
16 |
+
/**
|
17 |
+
* Register Options
|
18 |
+
*
|
19 |
+
* @since 1.0
|
20 |
+
*/
|
21 |
+
function dslc_row_register_options() {
|
22 |
+
|
23 |
+
global $dslc_var_row_options;
|
24 |
+
|
25 |
+
$dslc_var_row_options['element_type'] = array(
|
26 |
+
'id' => 'element_type',
|
27 |
+
'std' => 'row',
|
28 |
+
'label' => '',
|
29 |
+
'type' => 'hidden',
|
30 |
+
);
|
31 |
+
|
32 |
+
$dslc_var_row_options['show_on'] = array(
|
33 |
+
'id' => 'show_on',
|
34 |
+
'std' => 'desktop tablet phone',
|
35 |
+
'label' => __( 'Show On', 'live-composer-page-builder' ),
|
36 |
+
'type' => 'checkbox',
|
37 |
+
'choices' => array(
|
38 |
+
array(
|
39 |
+
'label' => 'Desktop',
|
40 |
+
'value' => 'desktop',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
),
|
42 |
+
array(
|
43 |
+
'label' => 'Tablet',
|
44 |
+
'value' => 'tablet',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
),
|
46 |
+
array(
|
47 |
+
'label' => 'Phone',
|
48 |
+
'value' => 'phone',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
),
|
50 |
+
),
|
51 |
+
);
|
52 |
+
|
53 |
+
$dslc_var_row_options['type'] = array(
|
54 |
+
'id' => 'type',
|
55 |
+
'std' => 'wrapper',
|
56 |
+
'label' => __( 'Type', 'live-composer-page-builder' ),
|
57 |
+
'type' => 'select',
|
58 |
+
'choices' => array(
|
59 |
+
array(
|
60 |
+
'label' => 'Wrapped',
|
61 |
+
'value' => 'wrapper',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
),
|
63 |
+
array(
|
64 |
+
'label' => 'Full',
|
65 |
+
'value' => 'full',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
),
|
67 |
+
),
|
68 |
+
);
|
69 |
+
|
70 |
+
$dslc_var_row_options['columns_spacing'] = array(
|
71 |
+
'id' => 'columns_spacing',
|
72 |
+
'std' => 'spacing',
|
73 |
+
'label' => __( 'Columns Spacing', 'live-composer-page-builder' ),
|
74 |
+
'type' => 'select',
|
75 |
+
'choices' => array(
|
76 |
+
array(
|
77 |
+
'label' => __( 'With Spacing', 'live-composer-page-builder' ),
|
78 |
+
'value' => 'spacing',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
),
|
80 |
+
array(
|
81 |
+
'label' => __( 'Without Spacing', 'live-composer-page-builder' ),
|
82 |
+
'value' => 'nospacing',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
),
|
84 |
+
),
|
85 |
+
);
|
86 |
+
|
87 |
+
$dslc_var_row_options['bg_color'] = array(
|
88 |
+
'id' => 'bg_color',
|
89 |
+
'std' => '',
|
90 |
+
'label' => __( 'BG Color', 'live-composer-page-builder' ),
|
91 |
+
'type' => 'color',
|
92 |
+
'affect_on_change_rule' => 'background-color',
|
93 |
+
);
|
94 |
+
|
95 |
+
$dslc_var_row_options['bg_image_thumb'] = array(
|
96 |
+
'id' => 'bg_image_thumb',
|
97 |
+
'std' => 'disabled',
|
98 |
+
'label' => __( 'BG Image - Use Featured', 'live-composer-page-builder' ),
|
99 |
+
'type' => 'select',
|
100 |
+
'choices' => array(
|
101 |
+
array(
|
102 |
+
'label' => __( 'Enabled', 'live-composer-page-builder' ),
|
103 |
+
'value' => 'enabled',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
),
|
105 |
+
array(
|
106 |
+
'label' => __( 'Disabled', 'live-composer-page-builder' ),
|
107 |
+
'value' => 'disabled',
|
108 |
+
),
|
109 |
+
),
|
110 |
+
'affect_on_change_rule' => 'background-image',
|
111 |
+
);
|
112 |
+
|
113 |
+
$dslc_var_row_options['bg_image'] = array(
|
114 |
+
'id' => 'bg_image',
|
115 |
+
'std' => '',
|
116 |
+
'label' => __( 'BG Image', 'live-composer-page-builder' ),
|
117 |
+
'type' => 'image',
|
118 |
+
'affect_on_change_rule' => 'background-image',
|
119 |
+
);
|
120 |
+
|
121 |
+
$dslc_var_row_options['bg_image_repeat'] = array(
|
122 |
+
'id' => 'bg_image_repeat',
|
123 |
+
'std' => 'repeat',
|
124 |
+
'label' => __( 'BG Image Repeat', 'live-composer-page-builder' ),
|
125 |
+
'type' => 'select',
|
126 |
+
'choices' => array(
|
127 |
+
array(
|
128 |
+
'label' => __( 'Repeat', 'live-composer-page-builder' ),
|
129 |
+
'value' => 'repeat',
|
130 |
+
),
|
131 |
+
array(
|
132 |
+
'label' => __( 'Repeat Horizontal', 'live-composer-page-builder' ),
|
133 |
+
'value' => 'repeat-x',
|
134 |
+
),
|
135 |
+
array(
|
136 |
+
'label' => __( 'Repeat Vertical', 'live-composer-page-builder' ),
|
137 |
+
'value' => 'repeat-y',
|
138 |
+
),
|
139 |
+
array(
|
140 |
+
'label' => __( 'Do NOT Repeat', 'live-composer-page-builder' ),
|
141 |
+
'value' => 'no-repeat',
|
142 |
+
),
|
143 |
+
),
|
144 |
+
'affect_on_change_rule' => 'background-repeat',
|
145 |
+
);
|
146 |
+
|
147 |
+
$dslc_var_row_options['bg_image_position'] = array(
|
148 |
+
'id' => 'bg_image_position',
|
149 |
+
'std' => 'left top',
|
150 |
+
'label' => __( 'BG Image Position', 'live-composer-page-builder' ),
|
151 |
+
'type' => 'select',
|
152 |
+
'choices' => array(
|
153 |
+
array(
|
154 |
+
'label' => __( 'Top Left', 'live-composer-page-builder' ),
|
155 |
+
'value' => 'left top',
|
156 |
+
),
|
157 |
+
array(
|
158 |
+
'label' => __( 'Top Right', 'live-composer-page-builder' ),
|
159 |
+
'value' => 'right top',
|
160 |
+
),
|
161 |
+
array(
|
162 |
+
'label' => __( 'Top Center', 'live-composer-page-builder' ),
|
163 |
+
'value' => 'center top',
|
164 |
+
),
|
165 |
+
array(
|
166 |
+
'label' => __( 'Center Left', 'live-composer-page-builder' ),
|
167 |
+
'value' => 'left center',
|
168 |
+
),
|
169 |
+
array(
|
170 |
+
'label' => __( 'Center Right', 'live-composer-page-builder' ),
|
171 |
+
'value' => 'right center',
|
172 |
+
),
|
173 |
+
array(
|
174 |
+
'label' => __( 'Center', 'live-composer-page-builder' ),
|
175 |
+
'value' => 'center center',
|
176 |
+
),
|
177 |
+
array(
|
178 |
+
'label' => __( 'Bottom Left', 'live-composer-page-builder' ),
|
179 |
+
'value' => 'left bottom',
|
180 |
+
),
|
181 |
+
array(
|
182 |
+
'label' => __( 'Bottom Right', 'live-composer-page-builder' ),
|
183 |
+
'value' => 'right bottom',
|
184 |
+
),
|
185 |
+
array(
|
186 |
+
'label' => __( 'Bottom Center', 'live-composer-page-builder' ),
|
187 |
+
'value' => 'center bottom',
|
188 |
+
),
|
189 |
+
),
|
190 |
+
'affect_on_change_rule' => 'background-position',
|
191 |
+
);
|
192 |
+
|
193 |
+
$dslc_var_row_options['bg_image_attachment'] = array(
|
194 |
+
'id' => 'bg_image_attachment',
|
195 |
+
'std' => 'scroll',
|
196 |
+
'label' => __( 'BG Image Attachment', 'live-composer-page-builder' ),
|
197 |
+
'type' => 'select',
|
198 |
+
'choices' => array(
|
199 |
+
array(
|
200 |
+
'label' => __( 'Scroll', 'live-composer-page-builder' ),
|
201 |
+
'value' => 'scroll',
|
202 |
+
),
|
203 |
+
array(
|
204 |
+
'label' => __( 'Fixed', 'live-composer-page-builder' ),
|
205 |
+
'value' => 'fixed',
|
206 |
+
),
|
207 |
+
array(
|
208 |
+
'label' => __( 'Parallax', 'live-composer-page-builder' ),
|
209 |
+
'value' => 'parallax',
|
210 |
+
),
|
211 |
+
),
|
212 |
+
'affect_on_change_rule' => 'background-attachment',
|
213 |
+
);
|
214 |
+
|
215 |
+
$dslc_var_row_options['bg_image_size'] = array(
|
216 |
+
'id' => 'bg_image_size',
|
217 |
+
'std' => 'auto',
|
218 |
+
'label' => __( 'BG Image Size', 'live-composer-page-builder' ),
|
219 |
+
'type' => 'select',
|
220 |
+
'choices' => array(
|
221 |
+
array(
|
222 |
+
'label' => __( 'Original', 'live-composer-page-builder' ),
|
223 |
+
'value' => 'auto',
|
224 |
+
),
|
225 |
+
array(
|
226 |
+
'label' => __( 'Cover', 'live-composer-page-builder' ),
|
227 |
+
'value' => 'cover',
|
228 |
+
),
|
229 |
+
array(
|
230 |
+
'label' => __( 'Contain', 'live-composer-page-builder' ),
|
231 |
+
'value' => 'contain',
|
232 |
+
),
|
233 |
+
),
|
234 |
+
'affect_on_change_rule' => 'background-size',
|
235 |
+
);
|
236 |
+
|
237 |
+
$dslc_var_row_options['bg_video'] = array(
|
238 |
+
'id' => 'bg_video',
|
239 |
+
'std' => '',
|
240 |
+
'label' => __( 'BG Video', 'live-composer-page-builder' ),
|
241 |
+
'type' => 'video',
|
242 |
+
'affect_on_change_rule' => 'background-video',
|
243 |
+
);
|
244 |
+
|
245 |
+
$dslc_var_row_options['bg_video_overlay_color'] = array(
|
246 |
+
'id' => 'bg_video_overlay_color',
|
247 |
+
'std' => '#000000',
|
248 |
+
'label' => __( 'BG - Overlay Color', 'live-composer-page-builder' ),
|
249 |
+
'type' => 'color',
|
250 |
+
'affect_on_change_el' => '.dslc-bg-video-overlay',
|
251 |
+
'affect_on_change_rule' => 'background-color',
|
252 |
+
);
|
253 |
+
|
254 |
+
$dslc_var_row_options['bg_video_overlay_opacity'] = array(
|
255 |
+
'id' => 'bg_video_overlay_opacity',
|
256 |
+
'std' => '0',
|
257 |
+
'label' => __( 'BG - Overlay Opacity', 'live-composer-page-builder' ),
|
258 |
+
'type' => 'slider',
|
259 |
+
'affect_on_change_rule' => 'opacity',
|
260 |
+
'affect_on_change_el' => '.dslc-bg-video-overlay',
|
261 |
+
'min' => 0,
|
262 |
+
'max' => 1,
|
263 |
+
'increment' => 0.05,
|
264 |
+
);
|
265 |
+
|
266 |
+
$dslc_var_row_options['border_color'] = array(
|
267 |
+
'id' => 'border_color',
|
268 |
+
'std' => '',
|
269 |
+
'label' => __( 'Border Color', 'live-composer-page-builder' ),
|
270 |
+
'type' => 'color',
|
271 |
+
'affect_on_change_rule' => 'border-color',
|
272 |
+
);
|
273 |
+
|
274 |
+
$dslc_var_row_options['border_width'] = array(
|
275 |
+
'id' => 'border_width',
|
276 |
+
'min' => 0,
|
277 |
+
'std' => '0',
|
278 |
+
'label' => __( 'Border Width', 'live-composer-page-builder' ),
|
279 |
+
'type' => 'slider',
|
280 |
+
'affect_on_change_rule' => 'border-width',
|
281 |
+
'ext' => 'px',
|
282 |
+
);
|
283 |
+
|
284 |
+
$dslc_var_row_options['border_style'] = array(
|
285 |
+
'id' => 'border_style',
|
286 |
+
'std' => 'solid',
|
287 |
+
'label' => __( 'Border Style', 'live-composer-page-builder' ),
|
288 |
+
'type' => 'select',
|
289 |
+
'choices' => array(
|
290 |
+
array(
|
291 |
+
'label' => __( 'Solid', 'live-composer-page-builder' ),
|
292 |
+
'value' => 'solid',
|
293 |
+
),
|
294 |
+
array(
|
295 |
+
'label' => __( 'Dotted', 'live-composer-page-builder' ),
|
296 |
+
'value' => 'dotted',
|
297 |
+
),
|
298 |
+
array(
|
299 |
+
'label' => __( 'Dashed', 'live-composer-page-builder' ),
|
300 |
+
'value' => 'dashed',
|
301 |
+
),
|
302 |
+
),
|
303 |
+
'affect_on_change_rule' => 'border-style',
|
304 |
+
);
|
305 |
+
|
306 |
+
$dslc_var_row_options['border'] = array(
|
307 |
+
'id' => 'border',
|
308 |
+
'std' => 'top right bottom left',
|
309 |
+
'label' => __( 'Borders', 'live-composer-page-builder' ),
|
310 |
+
'type' => 'border_checkbox',
|
311 |
+
);
|
312 |
+
|
313 |
+
$dslc_var_row_options['margin_h'] = array(
|
314 |
+
'id' => 'margin_h',
|
315 |
+
'std' => '0',
|
316 |
+
'label' => __( 'Margin Horizontal', 'live-composer-page-builder' ),
|
317 |
+
'type' => 'slider',
|
318 |
+
'affect_on_change_rule' => 'margin-left,margin-right',
|
319 |
+
'ext' => '%',
|
320 |
+
'max' => 90,
|
321 |
+
);
|
322 |
+
|
323 |
+
$dslc_var_row_options['margin_b'] = array(
|
324 |
+
'id' => 'margin_b',
|
325 |
+
'std' => '0',
|
326 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
327 |
+
'type' => 'slider',
|
328 |
+
'affect_on_change_rule' => 'margin-bottom',
|
329 |
+
'ext' => 'px',
|
330 |
+
'max' => 500,
|
331 |
+
);
|
332 |
+
|
333 |
+
$dslc_var_row_options['padding'] = array(
|
334 |
+
'id' => 'padding',
|
335 |
+
'std' => '80',
|
336 |
+
'label' => __( 'Padding Vertical', 'live-composer-page-builder' ),
|
337 |
+
'type' => 'slider',
|
338 |
+
'affect_on_change_rule' => 'padding-bottom,padding-top',
|
339 |
+
'ext' => 'px',
|
340 |
+
'max' => 500,
|
341 |
+
);
|
342 |
+
|
343 |
+
$dslc_var_row_options['padding_h'] = array(
|
344 |
+
'id' => 'padding_h',
|
345 |
+
'std' => '0',
|
346 |
+
'label' => __( 'Padding Horizontal', 'live-composer-page-builder' ),
|
347 |
+
'type' => 'slider',
|
348 |
+
'affect_on_change_rule' => 'padding-left,padding-right',
|
349 |
+
'ext' => '%',
|
350 |
+
'max' => 90,
|
351 |
+
);
|
352 |
+
|
353 |
+
$dslc_var_row_options['custom_class'] = array(
|
354 |
+
'id' => 'custom_class',
|
355 |
+
'label' => __( 'Custom Class', 'live-composer-page-builder' ),
|
356 |
+
'type' => 'text',
|
357 |
+
);
|
358 |
+
|
359 |
+
$dslc_var_row_options['custom_id'] = array(
|
360 |
+
'id' => 'custom_id',
|
361 |
+
'label' => __( 'Custom ID', 'live-composer-page-builder' ),
|
362 |
+
'type' => 'text',
|
363 |
+
);
|
364 |
+
|
365 |
+
$dslc_var_row_options['section_instance_id'] = array(
|
366 |
+
'id' => 'section_instance_id',
|
367 |
+
'label' => '',
|
368 |
+
'type' => 'hidden',
|
369 |
+
);
|
370 |
+
|
371 |
+
// Hook to register custom modules or alter current.
|
372 |
+
do_action( 'dslc_hook_row_options' );
|
373 |
+
|
374 |
+
// Filter to filter the registered row controls.
|
375 |
+
$dslc_var_row_options = apply_filters( 'dslc_filter_row_options', $dslc_var_row_options );
|
376 |
+
}
|
377 |
|
378 |
+
add_action( 'init', 'dslc_row_register_options' );
|
includes/single-templates-framework/inc/filters.php
CHANGED
@@ -311,9 +311,12 @@ function dslc_tp_update_archive_templates_option( $post_id ) {
|
|
311 |
$plugin_options = get_option( 'dslc_plugin_options' );
|
312 |
|
313 |
$this_template_in_options = array();
|
314 |
-
|
315 |
-
|
316 |
-
|
|
|
|
|
|
|
317 |
}
|
318 |
}
|
319 |
/**
|
311 |
$plugin_options = get_option( 'dslc_plugin_options' );
|
312 |
|
313 |
$this_template_in_options = array();
|
314 |
+
|
315 |
+
if ( $plugin_options ) {
|
316 |
+
foreach ( $plugin_options as $key => $value ) {
|
317 |
+
if ( ! is_array( $value ) && strval( $value ) === strval( $post_id ) ) {
|
318 |
+
$this_template_in_options[] = $key;
|
319 |
+
}
|
320 |
}
|
321 |
}
|
322 |
/**
|
js/builder.all.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
"use strict";function dslc_ui_animations(){if(dslcDebug)console.log("dslc_ui_animations");jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered")}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<190)jQuery(".dslca-module-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){}});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<130)jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){}})}jQuery(document).ready(function(){dslc_ui_animations()});"use strict";function dslc_save_composer(){if(dslcDebug)console.log("dslc_save_composer");dslc_generate_code();dslca_gen_content_for_search();var a=jQuery("#dslca-code").val(),b=jQuery("#dslca-content-for-search").val(),c=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:c,dslc_code:a,dslc_content_for_search:b},timeout:1e4}).done(function(a){if(a.status=="success"){jQuery(".dslca-save-composer").fadeOut(250);jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+a.status)}}).fail(function(a){if(a.statusText=="timeout"){alert("The request timed out after 10 seconds. Server do not respond in time. Please try again.")}else{alert("Something went wrong. Please try again. Error Code: "+a.statusText)}}).always(function(a){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok");jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){if(dslcDebug)console.log("dslc_save_draft_composer");var a=jQuery("#dslca-code").val(),b=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:b,dslc_code:a},function(a){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save");if(a.status=="success"){jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again.")}jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){if(dslcDebug)console.log("dslc_generate_code");var a="",b,c="",d="",e=12,f=12,g=0,h=0,i,j,k,l,m,n="",o;jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-module-front",this).length){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content",this).hide()}else{jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300)}});jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){m=jQuery(this);o=dslc_generate_section_code(m);m.find(".dslca-section-code").val(o);d=d+o+","});d=d.slice(0,-1);d="["+d+"]";jQuery("#dslca-code").val(d);jQuery("#dslca-export-code").val(d)}function dslc_generate_section_code(a){if(dslcDebug)console.log("dslc_generate_section_code");var b="",c,d="",e="",f=12,g=12,h=0,i=0,j,k,l,m,n,o="",p="",q;n=a;if(jQuery(".dslc-modules-area",n).length){n.removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{n.removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");i=0;p=n.find(".dslca-section-code").val();q=JSON.parse(p);o="";jQuery(".dslca-modules-section-settings input",n).each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();o=o+b+'="'+c+'" ';q[b]=c});if(undefined!==q["give_new_id"]){delete q["give_new_id"]}q["content"]=[];jQuery(".dslc-modules-area",n).each(function(){h=0;k=jQuery(this);j=parseInt(k.data("size"));l="no";m="no";i+=j;jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");if(i==g){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");i=0;l="yes"}else if(i>g){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");i=j;m="yes"}if(i==j){m="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}var a='{"element_type":"module_area","last":"'+l+'","first":"'+m+'","size":"'+j+'"}';a=JSON.parse(a);if(undefined!==a["give_new_id"]){delete a["give_new_id"]}a.content=[];jQuery(".dslc-module-front",k).each(function(){var d=jQuery(this);c=parseInt(d[0].getAttribute("data-dslc-module-size"));var e="no";var g="no";jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");h+=c;if(h==f){jQuery(this).addClass("dslc-last-col");jQuery(this).next(".dslc-module-front").addClass("dslc-first-col");h=0;e="yes";g="yes"}else if(h>f){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");h=c;g="yes"}if(h==c){g="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}try{b=d[0].querySelector(".dslca-module-code").value}catch(i){console.info("No DSLC code found in module: "+d[0].getAttribute("id"))}if(""!==b){var j=JSON.parse(b);j.last=e;jQuery.each(j,function(a,b){if(false===b||""===b){delete j[a]}if("give_new_id"===a){delete j[a]}});d[0].querySelector(".dslca-module-code").value=JSON.stringify(j);a["content"].push(j)}b=""});q["content"].push(a)});return JSON.stringify(q)}jQuery(document).ready(function(a){a(document).on("click",".dslca-save-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_composer()}});a(document).on("click",".dslca-save-draft-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_draft_composer()}})});function dslca_gen_content_for_search(){if(dslcDebug)console.log("dslca_gen_content_for_search");var a=document.getElementById("dslca-content-for-search");if(null===a){return}var b=a.value;var c="";var d=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");if(undefined!==d){Array.prototype.forEach.call(d,function(a,b){var d;if(a.getAttribute("data-exportable-content")!==""){var e=a.getAttribute("data-exportable-content");d="<"+e+">"+a.innerHTML+"</"+e+">"}else{d=a.innerHTML}if(d!==null){c+=d.replace(/\s+/g," ").trim()+"\n"}})}a.value=c;if(b!==c){dslc_show_publish_button()}}var massagesTicker=jQuery("#editor_messages").newsTicker({row_height:40,max_rows:2,speed:900,direction:"up",duration:12e3,autostart:1,pauseOnHover:1,start:function(){jQuery("#editor_messages").css("opacity","1")}});"use strict";var dslcRegularFontsArray=DSLCFonts.regular;var dslcGoogleFontsArray=DSLCFonts.google;var dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray);var dslcIconsCurrentSet=DSLCIcons.fontawesome;var dslcDebug=false;var LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}};(function(){LiveComposer.Builder.Flags={windowScroller:false,panelOpened:false,generate_code_after_row_changed:true};LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(a){if(a===undefined){return}if(isNaN(this.postponed_actions_queue[a])){this.postponed_actions_queue[a]=0}this.postponed_actions_queue[a]+=1},release_postponed_actions:function(){var a=this;jQuery.each(this.postponed_actions_queue,function(b,c){if(1<c){a.postponed_actions_queue[b]-=1}else if(1==c){window[b]();a.postponed_actions_queue[b]-=1}})}};LiveComposer.Builder.Helpers.insertModule=function(a,b){var c=jQuery(a),b=jQuery(b);var d=[];c.find("script").each(function(){d.push(this.innerHTML);this.parentNode.removeChild(this)});b.after(c).remove();d.forEach(function(a){var b=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");b.innerHTML=a;b.type="text/javascript";LiveComposer.Builder.PreviewAreaDocument[0].getElementById(c[0].id).appendChild(b)});d=null;b=null;return c}})();"use strict";LiveComposer.Builder.UI.CModalWindow=function(a){if(typeof a!="object"||this.instancesExists===true)return false;var b=this;var c='<div class="dslca-prompt-modal dslca-prompt-modal-active">'+'<div class="dslca-prompt-modal-content"><div class="dslca-prompt-modal-msg">'+'<span class="dslca-prompt-modal-title">'+a.title+"</span>"+'<span class="dslca-prompt-modal-descr">'+a.content+"</span></div>";var d="";if(a.confirm||a.cancel){d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.confirm_title?a.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove">'+"</span>"+(a.cancel_title?a.cancel_title:"Cancel")+"</span></div>"}else{d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.ok_title?a.ok_title:"OK")+"</a></div>"}c+=d+"</div>";c=jQuery(c);if(typeof a.confirm!="function")a.confirm=function(){};if(typeof a.cancel!="function")a.cancel=function(){};c.find(".dslca-prompt-modal-confirm-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){a.confirm();b.instancesExists=false;jQuery(this).remove()});return false});c.find(".dslca-prompt-modal-cancel-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){jQuery(this).remove();b.instancesExists=false;a.cancel()});return false});c.hide();jQuery("body").append(c);c.css({opacity:0}).show().animate({opacity:1},400);c.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400);this.instancesExists=true};"use strict";function dslc_show_modal(a,b){if(dslcDebug)console.log("dslc_show_modal");dslc_hide_modal("",jQuery(".dslca-modal:visible"));var b=jQuery(b);var c=jQuery(".dslca-container").height();b.outerHide({clbk:function(){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}});var d=jQuery(a).position(),e=b.outerWidth()/2-a.outerWidth()/2,f=d.left-e;b.css({left:f}).show();jQuery(".dslca-prompt-modal-custom").insertAfter(b);jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeIn();b.addClass("dslca-modal-open");b.css({}).fadeIn(600)}function dslc_hide_modal(a,b){if(dslcDebug)console.log("dslc_hide_modal");var b=jQuery(b);b.outerHide("destroy");b.hide();jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeOut();b.removeClass("dslca-modal-open")}jQuery(document).ready(function(a){a(document).on("click",".dslca-open-modal-hook",function(a){a.preventDefault();var b=jQuery(this).data("modal");dslc_show_modal(jQuery(this),b)});jQuery(document).on("click",".dslca-close-modal-hook",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-action-disabled")){var b=jQuery(this).data("modal");dslc_hide_modal(jQuery(this),b)}})});function dslc_js_confirm(a,b,c){if(dslcDebug)console.log("dslc_js_confirm");jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").data("id",a);jQuery(".dslca-prompt-modal").data("target",c);jQuery(".dslca-prompt-modal-msg").html(b);jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400);jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){if(dslcDebug)console.log("dslc_js_confirm_close");jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide();jQuery(".dslca-prompt-modal-cancel-hook").show();jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)});jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_modal_keypress_events(a){if(a.which==13){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-confirm-hook").trigger("click")}}else if(a.which==27){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")}}}jQuery(document).ready(function(a){a(document).on("click",".dslca-prompt-modal-cancel-hook",function(a){a.preventDefault();var b=jQuery(".dslca-prompt-modal").data("id");var c=jQuery(".dslca-prompt-modal").data("target");if(b=="edit_in_progress"){dslc_module_options_cancel_changes(function(){c.trigger("click")})}else if(b=="delete_module"){}dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")});a(document).on("click",".dslca-prompt-modal-confirm-hook",function(b){b.preventDefault();var c=jQuery(".dslca-prompt-modal").data("id");var d=jQuery(".dslca-prompt-modal").data("target");var e=true;if(c=="edit_in_progress"){dslc_module_options_confirm_changes(function(){d.trigger("click")})}else if(c=="disable_lc"){window.location=d}else if("delete_module"===c){var f=d.closest(".dslc-module-front");dslc_delete_module(f)}else if("delete_modules_area"===c){var g=d.closest(".dslc-modules-area");var h=g.closest(".dslc-modules-section-inner");dslc_modules_area_delete(g)}else if(c=="delete_modules_section"){dslc_row_delete(d.closest(".dslc-modules-section"))}else if(c=="export_modules_section"){}else if(c=="import_modules_section"){dslc_row_import(a(".dslca-prompt-modal textarea").val());a(".dslca-prompt-modal-confirm-hook span").css({opacity:0});a(".dslca-prompt-modal-confirm-hook .dslca-loading").show();e=false}if(e)dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")})});"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_module_copy(a(this).closest(".dslc-module-front"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-module-hook",function(c){c.preventDefault();if(!b())return false;var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var a=jQuery(d).closest(".dslc-module-front");dslc_delete_module(a)}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-edit-hook, .dslc-module-front > div:not(.dslca-module-manage)",function(b){if(dslcDebug)console.log("dslca-module-edit-hook");b.preventDefault();var c=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var d=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||c>0||d>0){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0]!=jQuery(this).closest(".dslc-module-front")[0]){LiveComposer.Builder.UI.shakePanelConfirmButton()}return false}var e=a(this).closest(".dslc-module-front"),f=e.data("dslc-module-id");a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");e.addClass("dslca-module-being-edited");dslc_module_options_show(f);jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("module-editing-in-progress")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){jQuery(".dslca-change-width-module-options",this).toggle();a(this).closest(".dslc-module-front").toggleClass("dslca-change-width-active")}});LiveComposer.Builder.PreviewAreaDocument.on("mouseleave",".dslca-change-width-module-options",function(b){jQuery(this).hide();a(this).closest(".dslc-module-front").removeClass("dslca-change-width-active")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-get-defaults-hook",function(){var b=jQuery(this).closest(".dslc-module-front");var c=dslc_dm_get_defaults(b);var d='<span class="dslca-prompt-modal-title">Module Defaults</span>'+'<span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span>'+"<textarea></textarea><br><br>";a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK');dslc_js_confirm("dev_mode_get_default",d,b)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-refresh-module-hook",function(a){jQuery(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"});jQuery(this).closest(".dslc-module-front").addClass("dslca-module-being-edited");dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-wysiwyg-actions-edit-hook",function(){var a=jQuery(this).parent().siblings(".dslca-editable-content");var b=a.closest(".dslc-module-front");if(b.hasClass("dslc-module-handle-like-accordion")){LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(b.find(".dslc-accordion"));var c=b.find('.dslca-module-option-front[data-id="accordion_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-accordion-item").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(b.hasClass("dslc-module-handle-like-tabs")){LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(b.find(".dslc-tabs"));var c=b.find('.dslca-module-option-front[data-id="tabs_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-tabs-tab-content").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else{var f=b.find('.dslca-module-option-front[data-id="'+a.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}if(typeof tinymce!="undefined"){var g=tinymce.get("dslcawpeditor");if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){g.setContent(f,{format:"html"})}else{jQuery("textarea#dslcawpeditor").val(f)}if(!b.hasClass("dslca-module-being-edited")){b.find(".dslca-module-edit-hook").trigger("click")}jQuery(".dslca-wp-editor").show();a.addClass("dslca-wysiwyg-active");jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else{console.info("Live Composer: TinyMCE is undefined.")}});LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){dslc_editable_content_gen_code(jQuery(this))}}).on("paste",".dslca-editable-content:not(.inline-editor)",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){var a=jQuery(this);setTimeout(function(){if(a.data("type")=="simple"){a.html(a.text())}dslc_editable_content_gen_code(a)},100)}}).on("focus",".dslca-editable-content",function(){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length>0&&!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).trigger("blur")}}).on("keyup",".dslca-editable-content",function(){if(jQuery(this).data("type")=="simple"){jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}})});function dslc_module_delete(a){if(dslcDebug)console.log("dslc_delete_module");a.addClass("dslca-module-being-deleted");if(a.hasClass("dslca-module-being-edited")){dslc_show_section(".dslca-modules")}setTimeout(function(){a.remove();dslc_generate_code();dslc_show_publish_button()},1e3);a.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){a.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(a){if(dslcDebug)console.log("dslc_copy_module");jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");var b=a[0].cloneNode(true);jQuery(b).appendTo(a.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).addClass("dslca-module-being-edited");dslc_module_new_id(b);dslc_generate_code();jQuery(b).css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300);dslc_show_publish_button()}function dslc_module_new_id(a){var b=LiveComposer.Utils.get_unique_id();var c=a.getAttribute("id");a.setAttribute("data-module-id",b);a.setAttribute("id","dslc-module-"+b);var d=a.getElementsByTagName("style")[0];var e=d.textContent;d.setAttribute("id","#css-for-dslc-module-"+b);e=e.split(c).join("dslc-module-"+b);d.textContent=e;LiveComposer.Utils.update_module_property_raw(a,"module_instance_id",b)}function dslc_module_width_set(a,b){if(dslcDebug)console.log("dslc_module_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c);a[0].setAttribute("data-dslc-module-size",b);LiveComposer.Utils.update_module_property_raw(a[0],"dslc_m_size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();dslc_generate_code();dslc_show_publish_button()}function dslc_module_options_show(a){if(dslcDebug)console.log("dslc_module_options_show");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=jQuery(".dslca-module-options-front textarea",b),d=jQuery(".dslca-header").data("default-section"),e=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(e);var f={};f["action"]="dslc-ajax-display-module-options";f["dslc"]="active";f["dslc_module_id"]=a;f["dslc_post_id"]=jQuery(".dslca-container").data("data-post-id");f.dslc_url_vars=LiveComposer.Utils.get_page_params();c.each(function(){var a=jQuery(this),b=a.data("id"),c=a.val();f[b]=c});jQuery(".dslca-wp-editor-actions").hide();jQuery(".dslca-wp-editor-notification").show();dslc_hide_publish_button();LiveComposer.Builder.UI.initInlineEditors();var g=jQuery(".dslca-module-options-front",b).children().clone();LiveComposer.Builder.moduleBackup=g;LiveComposer.Builder.Flags.panelOpened=true;e.show();e.addClass("show");jQuery.post(DSLCAjax.ajaxurl,f,function(a){e.remove();dslc_show_section(".dslca-module-edit");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html(a.output)}else{jQuery(".dslca-module-edit-options-inner").html(a.output)}jQuery(".dslca-module-edit-options-tabs").html(a.output_tabs);var b=[];jQuery(".dslca-module-edit-options-inner .dslca-module-edit-option").each(function(){var a=jQuery(this).data("section");if(b.indexOf(a)==-1){b.push(a)}});var c=b.length;for(var f=0;f<c;f++){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+b[f]+'"]').show()}if(jQuery('.dslca-module-edit-option[data-section="'+d+'"]').length){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').show();jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').trigger("click")}else{jQuery(".dslca-header .dslca-options-filter-hook:first").hide();jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")}jQuery(".dslca-module-edit-actions").show();jQuery(".dslca-wp-editor-notification").hide();jQuery(".dslca-wp-editor-actions").show();jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery(".dslca-row-edit-actions").hide();LiveComposer.Builder.UI.loadOptionsDeps()})}function dslc_module_output_default(a,b){if(dslcDebug)console.log("dslc_module_output_default");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:a,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params(),dslc_new_module:true},function(a){b(a)})}function dslc_module_output_altered(a){if(dslcDebug)console.log("dslc_module_output_altered");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=b.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",b),e=b.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");if(b.hasClass("dslca-preload-preset"))f["dslc_preload_preset"]="enabled";else f["dslc_preload_preset"]="disabled";b.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});f.dslc_url_vars=LiveComposer.Utils.get_page_params();jQuery.post(DSLCAjax.ajaxurl,f,function(c){var d=LiveComposer.Builder.Helpers.insertModule(c.output,b);d.addClass("dslca-module-being-edited");c=null;d=null;dslc_generate_code();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();var e=new Event("dslc_module_output_altered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(e);if(a){a(c)}})}function dslc_module_output_reload(a,b){if(dslcDebug)console.log("dslc_module_output_reload");b=typeof b!=="undefined"?b:false;var c=a.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",a),e=a.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");f["dslc_preload_preset"]="enabled";a.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});a.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>');jQuery.post(DSLCAjax.ajaxurl,f,function(c){a.after(c.output).next().addClass("dslca-module-being-edited");a.remove();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(b){b(c)}jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})}function dslc_delete_module(a){dslc_module_delete(a)}function dslc_copy_module(a){dslc_module_copy(a)}function dslc_display_module_options(a){dslc_module_options_show(a)}function dslc_get_module_output(a,b){dslc_module_output_default(a,b)}function dslc_preview_change(a){dslc_module_output_altered(a)}function dslc_reload_module(a,b){dslc_module_output_reload(a,b)}"use strict";LiveComposer.Builder.Elements.CModuleArea=function(a){var b=this;this.section=jQuery(a).closest(".dslc-modules-section");this.elem=a;this.observer=new mqMutationObserver(a,function(){var c=b.elem.classList;if(a.querySelectorAll(".dslc-module-front").length==0){c.add("dslc-modules-area-empty");c.remove("dslc-modules-area-not-empty")}else{c.remove("dslc-modules-area-empty");c.add("dslc-modules-area-not-empty")}},{childList:true});this.sortable=Sortable.create(a,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress")},onEnd:function(a){a.oldIndex;a.newIndex;a.preventDefault();dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress")},onAdd:function(a){var c=a.item;a.from;if(jQuery(c).data("id")=="DSLC_M_A"){dslc_modules_area_add(jQuery(b.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner"));c.remove()}},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;if(jQuery(".dslc-modules-area-empty").find(".dslc-module-front").length>0){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})}}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){function a(){var a=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);
|
2 |
-
jQuery(a).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)})}var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};if(!jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length&&!jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length){dslc_row_add(a())}else{a()}LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area");dslc_copy_modules_area(c)}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty");if(!c){var d=jQuery(this);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){var a=d.closest(".dslc-modules-area");dslc_modules_area_delete(a)}})}else{var e=jQuery(this).closest(".dslc-modules-area");dslc_delete_modules_area(e)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){if(jQuery(".dslca-change-width-modules-area-options:visible",this).length){jQuery(".dslca-change-width-modules-area-options",this).hide()}else{jQuery(".dslca-change-width-modules-area-options",this).show()}}});LiveComposer.Builder.PreviewAreaDocument.on("mouseleave",".dslca-change-width-modules-area-options",function(a){jQuery(this).hide()});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",function(a){a.preventDefault();if(!b())return false;dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});function dslc_modules_area_add(a){if(dslcDebug)console.log("dslc_add_modules_area");var b='<div class="dslc-modules-area dslc-col dslc-12-col dslc-modules-area-empty " data-size="12">'+'<div class="dslca-modules-area-manage"> <div class="dslca-modules-area-manage-inner">'+'<span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy">'+'</span></span> <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" >'+'<span class="dslca-icon dslc-icon-move"></span></span>'+'<span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >'+'<span class="dslca-icon dslc-icon-columns"></span> <div class="dslca-change-width-modules-area-options">'+'<span>Container Width</span><span data-size="1">1/12</span><span data-size="2">2/12</span>'+'<span data-size="3">3/12</span><span data-size="4">4/12</span> <span data-size="5">5/12</span><span data-size="6">6/12</span>'+'<span data-size="7">7/12</span><span data-size="8">8/12</span> <span data-size="9">9/12</span><span data-size="10">10/12</span>'+'<span data-size="11">11/12</span><span data-size="12">12/12</span> </div> </span>'+'<span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span> </div> </div>'+"</div>";jQuery(b).appendTo(a).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation");var c=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(c).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)});dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()}function dslc_modules_area_delete(a){if(dslcDebug)console.log("dslc_delete_modules_area");var b=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),c=false;a.addClass("dslca-modules-area-being-deleted");if(b.find(".dslc-modules-area").length<2){c=true}if(a.find(".dslca-module-being-edited").length){jQuery(".dslca-header .dslca-options-filter-hook",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-module-edit-actions",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-header .dslca-go-to-section-hook",LiveComposer.Builder.PreviewAreaDocument).show();dslc_show_section(".dslca-modules")}setTimeout(function(){if(c){var d=a.closest(".dslc-modules-section-inner");if(2<=a.closest("#dslc-main").find(".dslc-modules-section").length){dslc_row_delete(a.closest(".dslc-modules-section"))}else{a.remove();dslc_modules_area_add(b)}}a.remove();dslc_generate_code();dslc_show_publish_button()},900);a.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){a.remove();dslc_generate_code();dslc_show_publish_button()})}function dslc_modules_area_copy(a){if(dslcDebug)console.log("dslc_copy_modules_area");var b,c=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner");var d=a.clone().appendTo(c);new LiveComposer.Builder.Elements.CModuleArea(d[0]);d.find(".dslca-modules-area-manage").trigger("mouseleave");d.data("size",a.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");dslc_generate_code();a.animate({opacity:1},300)});dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()}function dslc_modules_area_width_set(a,b){if(dslcDebug)console.log("dslc_modules_area_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c).data("size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();if(LiveComposer.Builder.Flags.panelOpened){return false}dslc_generate_code();dslc_show_publish_button()}LiveComposer.Builder.moduleareas_init=function(){jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CModuleArea(this)}})};function dslc_add_modules_area(a){dslc_modules_area_add(a)}function dslc_delete_modules_area(a){dslc_modules_area_delete(a)}function dslc_copy_modules_area(a){dslc_modules_area_copy(a)}"use strict";function dslc_update_preset(){if(dslcDebug)console.log("dslc_update_preset");var a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),b=a.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),c=a.find(".dslca-module-code").val(),d=a.data("dslc-module-id");if("none"!==b&&""!==b){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:b,dslc_preset_code:c,dslc_module_id:d},function(b){jQuery(".dslc-module-front:not(#"+a.attr("id")+')[data-dslc-module-id="'+a.data("dslc-module-id")+'"][data-dslc-preset="'+a.data("dslc-preset")+'"]',LiveComposer.Builder.PreviewAreaDocument).each(function(){dslc_module_output_reload(jQuery(this))})})}}jQuery(document).ready(function(a){a(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(b){if(b.which==13){var c=a(this).val(),d=c.toLowerCase().replace(/\s/g,"-");a("body").addClass("dslca-new-preset-added");a('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+d+'">'+d+"</option>").val(d).trigger("change");a(this).val("")}});a(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(b){a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")})});"use strict";LiveComposer.Builder.Elements.CRow=function(a){var b=this;this.elem=a;var c=jQuery(a).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0];jQuery(a).droppable({drop:function(a,b){var c=jQuery(this).find(".dslc-modules-section-inner");var d=b.draggable.data("id");if(d=="DSLC_M_A"){dslc_modules_area_add(c)}}});this.sortable=jQuery(c).sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:true,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(a,b){var c=b.placeholder.closest(".dslc-modules-section");jQuery(c).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty");c.siblings(".dslc-modules-section").each(function(){if(jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}})},remove:function(){jQuery(b.elem).find(".dslc-modules-area").length==0&&dslc_modules_area_add(jQuery(c))},update:function(a,b){dslc_generate_code();dslc_show_publish_button()},start:function(a,b){b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>");if(!jQuery(b.item).hasClass("dslc-12-col")){b.placeholder.width(b.item.width()-10)}else{b.placeholder.width(b.item.width()).css({margin:0})}jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress");jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(a,b){LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(a,b){}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new LiveComposer.Builder.Elements.CRow(this)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",function(c){if(!b())return false;c.preventDefault();var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){dslc_row_delete(a(d).closest(".dslc-modules-section"))}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){dslc_row_import(jQuery(".dslca-prompt-modal textarea").val());jQuery(".dslca-prompt-modal-confirm-hook span").css({opacity:0});jQuery(".dslca-prompt-modal-confirm-hook .dslca-loading").show()},confirm_title:DSLCString.str_import})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-export-modules-section-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>"+"["+dslc_generate_section_code(a(this).closest(".dslc-modules-section"))+"]"+"</textarea></span>"})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_row_copy(jQuery(this).closest(".dslc-modules-section"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",function(c){c.preventDefault();if(!b())return false;var d=a(this);if(!a(this).hasClass("dslca-action-disabled")){d.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin");dslc_row_add(function(){d.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-edit-modules-section-hook",function(){if(!b())return false;var c=this;var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||d>0||e>0)return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_row_edit(a(this).closest(".dslc-modules-section"))}jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})});function dslc_row_add(a){if(dslcDebug)console.log("dslc_row_add");a=typeof a!=="undefined"?a:false;var b=jQuery.Deferred();var c=sessionStorage;var d=jQuery();var e=c.getItem("cache-dslc-ajax-add-modules-section");if(null===e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(e){c.setItem("cache-dslc-ajax-add-modules-section",e.output);d=dslc_row_after_add(e.output);if(a){a()}return b})}else{d=dslc_row_after_add(e);if(a){a()}return b}}function dslc_row_after_add(a){var b=jQuery(a);b.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main"));dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button();new LiveComposer.Builder.Elements.CRow(b);new LiveComposer.Builder.Elements.CModuleArea(b.find(".dslc-modules-area").eq(0)[0]);b.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col");return b}function dslc_row_delete(a){if(dslcDebug)console.log("dslc_row_delete");if(a.find(".dslca-module-being-edited")){jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_section(".dslca-modules")}a.trigger("mouseleave").remove();dslc_generate_code();dslc_show_publish_button()}function dslc_row_edit(a){if(dslcDebug)console.log("dslc_row_edit");var b,c;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made");a.addClass("dslca-modules-section-being-edited");jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show();jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-row-edit-actions").show();jQuery(".dslca-modules-section-edit-field").each(function(){if("type"===jQuery(this).data("id")){if(""===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()||"wrapped"===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()){jQuery('select[data-id="type"]').val("wrapper").change()}}if(jQuery(this).data("id")=="border-top"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("top")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-right"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("right")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-bottom"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("bottom")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-left"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("left")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox")){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf(jQuery(this).data("val"))>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else{jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val());if(jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var a=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":a.val()});jQuery(this).css({"background-color":a.val()})}}});jQuery(".dslca-modules-section-edit-field-upload").each(function(){var a=jQuery(this).closest(".dslca-modules-section-edit-option");if(jQuery(this).val()&&jQuery(this).val()!=="disabled"){jQuery(".dslca-modules-section-edit-field-image-add-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).show()}else{jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-add-hook",a).show()}});dslc_show_section(".dslca-modules-section-edit");LiveComposer.Builder.Flags.panelOpened=true;dslc_hide_publish_button()}function dslc_row_edit_cancel(a){if(dslcDebug)console.log("dslc_row_cancel_changes");a=typeof a!=="undefined"?a:false;LiveComposer.Builder.Flags.generate_code_after_row_changed=false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).val(jQuery(this).data("def"));jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")});LiveComposer.Builder.Flags.generate_code_after_row_changed=true;dslc_generate_code();dslc_show_publish_button();dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button;jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_edit_confirm(a){if(dslcDebug)console.log("dslc_confirm_row_changes");a=typeof a!=="undefined"?a:false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).data("def",jQuery(this).val())});dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");dslc_generate_code();dslc_show_publish_button();if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_copy(a){if(dslcDebug)console.log("dslc_row_copy");var b,c,d;c=a.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument));c[0].removeAttribute("data-jsinit");c.find(".dslc-modules-area").each(function(){var b=jQuery(this).index();jQuery(this).data("size",a.find(".dslc-modules-area:eq( "+b+" )").data("size"));this.removeAttribute("data-jsinit")});new LiveComposer.Builder.Elements.CRow(c);c.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_generate_code();dslc_drag_and_drop();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");a.animate({opacity:1},300);dslc_show_publish_button()})}function dslc_row_import(a){if(dslcDebug)console.log("dslc_row_import");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:a},function(a){dslc_js_confirm_close();jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).append(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(a){dslc_row_delete(a)}function dslc_edit_modules_section(a){dslc_row_edit(a)}function dslc_copy_modules_section(a){dslc_row_copy(a)}function dslc_import_modules_section(a){dslc_row_import(a)}jQuery(document).ready(function(a){a(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)});a(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)})});LiveComposer.Builder.rows_init=function(){jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CRow(this)}})};jQuery(document).ready(function(a){var b=function(a){var b=.75;var c=500;var d=100;var e=jQuery(".dslca-section-scroller",a);var f=jQuery(".dslca-section-scroller-inner",a)[0];e.on("wheel",function(a){g(a.originalEvent.deltaY||a.originalEvent.deltaX);return false});function g(a){if(a<0){a=-d}else{a=d}a=a*b;var c=e.find(".dslca-section-scroller-content").width();var g=e.width();if(c<=g)return false;var h=c-g+10;a=parseInt(f.style.left||0)-a;a=a>=0?0:a;a=a<=-h?-h:a;f.style.left=a+"px"}jQuery(".dslca-section-scroller-prev",a).click(function(a){a.preventDefault();g(-c)});jQuery(".dslca-section-scroller-next",a).click(function(a){a.preventDefault();g(c)});jQuery(window).load(function(){jQuery(window).resize(function(){g(0)})})};b(jQuery(".dslca-section.dslca-modules"));b(jQuery(".dslca-section.dslca-templates-load"))});jQuery(document).ready(function(a){LiveComposer.Builder.UI.initPreviewAreaScroller=function(){var a=5;var b=6;LiveComposer.Builder.Flags.windowScroller=false;jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragleave",".lc-scroll-top-area, .lc-scroll-bottom-area",function(a){LiveComposer.Builder.UI.stopScroller()});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter dragover",".lc-scroll-bottom-area",function(c){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",function(c){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",function(a){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()})};LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{});clearInterval(LiveComposer.Builder.Flags.windowScroller);LiveComposer.Builder.Flags.windowScroller=false};jQuery("#scroller-stopper").on("dragover",function(){LiveComposer.Builder.UI.stopScroller()})});"use strict";LiveComposer.Builder.Elements.CSectionsContainer=function(a){var b=this;this.sortable=jQuery(a).sortable({items:".dslc-modules-section",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"intersect",cursorAt:{bottom:10},axis:"y",scroll:true,scrollSensitivity:140,scrollSpeed:5,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(a,b){dslc_show_publish_button()},start:function(a,b){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_row_helper_text+"</span></span>");jQuery(".dslc-content").sortable("refreshPositions")},stop:function(a,b){dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")}});jQuery(document).on("LC.sortableOff",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).ready(function(a){dslc_module_options_tooltip();dslc_module_options_font();dslc_module_options_icon();dslc_module_options_icon_returnid();dslc_module_options_text_align();dslc_module_options_checkbox();dslc_module_options_box_shadow();dslc_module_options_text_shadow();var b="";b+=".dslca-module-edit-field-colorpicker";b+=", .dslca-modules-section-edit-field-colorpicker";b+=", .dslca-module-edit-option-box-shadow-color";b+=", .dslca-module-edit-option-text-shadow-color";jQuery(document).on("click",b,function(){dslc_module_options_color(this);var a=jQuery(this).closest(".dslca-color-option");var b=jQuery(".dslca-module-edit-options-inner");var c=a.find(".wp-picker-holder");var d=a.offset();var e=d.left+15;var f=window.innerWidth;var g=260;if(f<e+g){e=f-g}c.css("left",e+"px");jQuery(b).on("scroll",function(b){d=a.offset();var e=d.left+15;var f=window.innerWidth;var g=260;if(f<e+g){e=f-g}c.css("left",e+"px")})});jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-module-edit-form").submit(function(a){a.preventDefault();dslc_module_output_altered()});a(document).on("click",".dslca-module-edit-options-tab-hook",function(b){b.preventDefault();dslc_module_options_tab_filter(a(this))});a(document).on("click",".dslca-options-filter-hook",function(b){b.preventDefault();var c=jQuery(".dslca-options-filter-hook.dslca-active").data("section");var d=jQuery(this).data("section");a(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");a(this).addClass("dslca-active");dslc_module_options_section_filter(d);if(c=="responsive"){jQuery(".dslca-container-loader").show();LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()});jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")}if(d=="responsive"){jQuery("#page-builder-preview-area").resizable()}});jQuery(document).on("click",".dslca-module-edit-save",function(a){a.preventDefault();dslc_module_options_confirm_changes(function(){LiveComposer.Builder.UI.initInlineEditors({withRemove:true});LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress");
|
3 |
-
});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-cancel",function(a){a.preventDefault();dslc_module_options_cancel_changes(function(){LiveComposer.Builder.UI.initInlineEditors({withRemove:true});LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-field-icon-switch-set",function(){var a=jQuery(".dslca-module-edit-field-icon-switch-sets");var b=jQuery(this);jQuery(".dslca-module-edit-field-icon-switch-set.dslca-active").removeClass("dslca-active");b.addClass("dslca-active");if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-switch-sets").hide()}else{var c=b.find(".dslca-module-edit-field-icon-curr-set").text();jQuery(".dslca-module-edit-field-icon-switch-sets span.dslca-active").removeClass("dslca-active");jQuery('.dslca-module-edit-field-icon-switch-sets span[data-set="'+c+'"]').addClass("dslca-active");var d=b.offset(),e=a.outerHeight(),f=a.outerWidth(),g=d.left-f/2+6,h="50%";if(g<0){h=f/2+g+"px";g=0}jQuery(".dslca-module-edit-field-icon-switch-sets").show().css({top:d.top-e-20,left:g});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-switch-sets:after, .dslca-module-edit-field-icon-switch-sets:before { left: "+h+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-switch-sets span",function(){var b=a(this).data("set");dslcIconsCurrentSet=DSLCIcons[b];a('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data("modal",".dslc-list-icons-"+b);a(this).addClass("dslca-active").siblings(".dslca-active").removeClass("dslca-active");a(".dslca-module-edit-field-icon-switch-set.dslca-active .dslca-module-edit-field-icon-curr-set").text(b);a(".dslca-module-edit-field-icon-switch-set.dslca-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field-icon-next").trigger("click");a(".dslca-module-edit-field-icon-switch-sets").hide()});jQuery(document).on("mouseenter",".dslca-module-edit-option-icon",function(){var b=a(this).find(".dslca-module-edit-field-icon-curr-set").text();dslcIconsCurrentSet=DSLCIcons[b];a('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data("modal",".dslc-list-icons-"+b)})});(function(){var a=jQuery;var b=LiveComposer.Builder;LiveComposer.Builder.Helpers.colorpickers=[];LiveComposer.Builder.UI.initInlineEditors=function(a){a=a||{};if(a.withRemove==true){try{LiveComposer.Builder.PreviewAreaWindow.tinyMCE.remove()}catch(b){console.info("No tinyMCE code found. Error code: 10181116.")}}LiveComposer.Builder.PreviewAreaWindow.tinyMCE.init({selector:".inline-editor.dslca-editable-content",editor_deselector:"mce-content-body",menubar:false,inline:true,plugins:"wordpress wplink lists paste",paste_as_text:true,paste_block_drop:true,style_formats:[{title:"Paragraph",format:"p"},{title:"Header 1",format:"h1"},{title:"Header 2",format:"h2"},{title:"Header 3",format:"h3"},{title:"Header 4",format:"h4"},{title:"Header 5",format:"h5"},{title:"Header 6",format:"h6"}],toolbar:"styleselect | bold italic blockquote | removeformat | bullist numlist "})};LiveComposer.Builder.UI.clearUtils=function(){if(dslcDebug)console.log("LiveComposer.Builder.UI.clearUtils");LiveComposer.Builder.UI.clearColorPickers();if(undefined!==LiveComposer.Builder.moduleBackup){LiveComposer.Builder.moduleBackup.remove()}jQuery(".temp-styles-for-module",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery(".mce-tinymce",LiveComposer.Builder.PreviewAreaDocument).hide()};LiveComposer.Builder.UI.clearColorPickers=function(){if(Array.isArray(b.Helpers.colorpickers)){b.Helpers.colorpickers.forEach(function(a){if(!jQuery(a).hasClass("dslca-modules-section-edit-field")){jQuery(a).remove()}});b.Helpers.colorpickers=[]}jQuery("body").off("click.wpcolorpicker")};LiveComposer.Builder.Helpers.depsHandlers=[];LiveComposer.Builder.UI.loadOptionsDeps=function(){var b=this;a(".dslca-module-edit-option").each(function(){var b=this;var c=true;try{var d=JSON.parse(LiveComposer.Utils.b64_to_utf8(a(this).data("dep")))}catch(e){c=false}if(c){var f=function(){var b=this;var c={};if((b.type=="radio"||b.type=="checkbox")&&d[b.value]==undefined){return false}if(b.type=="checkbox"&&d[b.value]!=undefined){c[b.value]=d[b.value]}else{c=d}Object.keys(c).forEach(function(d){c[d].split(",").forEach(function(c){var e=a(".dslca-module-edit-option-"+c.trim()).closest(".dslca-module-edit-option");var f=true;if(b.type=="radio"||b.type=="checkbox"){f=a(b).is(":checked")}if(b.value==d&&f){e.show()}else{e.hide()}})})};a(document).on("change dslc-init-deps",'.dslca-module-edit-option *[data-id="'+a(this).data("id")+'"]',f);LiveComposer.Builder.Helpers.depsHandlers.push(f)}});a(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")};LiveComposer.Builder.UI.unloadOptionsDeps=function(){LiveComposer.Builder.Helpers.depsHandlers.forEach(function(b){a(document).unbind("change",b);a(document).unbind("dslc-init-deps",b)});LiveComposer.Builder.Helpers.depsHandlers=[]};LiveComposer.Builder.Helpers.processInlineStyleTag=function(a){if(typeof a!="object")return false;var b="",c="";if(a.context.closest(".dslca-module-edit-option").data("tab")=="tablet_responsive"){b="@media only screen and (max-width: 1024px) and (min-width: 768px) {";c="}"}else if(a.context.closest(".dslca-module-edit-option").data("tab")=="phone_responsive"){b="@media only screen and (max-width: 767px) {";c="}"}a.styleContent=b+a.styleContent+c;var d=b+a.rule+a.elems;d=d.replace(/ /gi,"");if(LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d)==null){var e=document.createElement("style");e.innerHTML=a.styleContent;e.id=d;e.className="temp-styles-for-module";LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(e)}else{LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d).innerHTML=a.styleContent}};LiveComposer.Builder.UI.shakePanelConfirmButton=function(){jQuery(".dslca-module-edit-save").addClass("lc-shake-effect active");setTimeout(function(){jQuery(".dslca-module-edit-save").removeClass("lc-shake-effect active")},1e3)}})();function dslc_module_options_section_filter(a){if(dslcDebug)console.log("dslc_module_options_section_filter");jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-section="'+a+'"]').show();dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(a){if(dslcDebug)console.log("dslc_module_options_tab_filter");var b=jQuery(".dslca-options-filter-hook.dslca-active").data("section");a=typeof a!=="undefined"?a:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]:first');var c=a.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active");a.addClass("dslca-active");jQuery(".dslca-module-edit-options-tabs").show();jQuery(".dslca-module-edit-options-tab-hook").hide();jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]').show();if(c){jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-tab="'+c+'"]').show();dslc_module_options_hideshow_tabs();if(jQuery(".dslca-module-edit-options-tab-hook:visible").length<2){jQuery(".dslca-module-edit-options-tabs").hide()}else{jQuery(".dslca-module-edit-options-tabs").show()}dslc_disable_responsive_view();if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-tablet");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-phone");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"||c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})}}}function dslc_module_options_hideshow_tabs(){if(dslcDebug)console.log("dslc_module_options_hideshow_tabs");var a=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(a=="styling"){var b=jQuery(".dslca-module-edit"),c=true,d=true,e=true,f=true,g=true,h=true,i=true,j=true,k=true,l=true,m=true,n=true,o=true,p=true,q=true,r=true,s=true,t=true,u=true,v=true,w=true,x=true,y=true,z=true,A=true;if(!jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked"))c=false;if(!jQuery('.dslca-module-edit-field[value="filters"]').is(":checked"))d=false;if(!jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked"))e=false;if(!jQuery('.dslca-module-edit-field[value="circles"]').is(":checked"))f=false;if(jQuery('.dslca-module-edit-field[data-id="type"]').val()!="carousel"){e=false;f=false}if(jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()=="disabled"){g=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")){h=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")){i=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")){j=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")){k=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")){l=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")){m=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")){o=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")){n=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")){p=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")){q=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")){r=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")){s=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")){t=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")){u=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")){v=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")){w=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")){x=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")){y=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")){z=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")){A=false}if(c)jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide();if(d)jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide();if(e)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide();if(f)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide();if(g)jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide();if(h)jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide();if(i)jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide();if(j)jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide();if(k)jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide();if(l)jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide();if(m)jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide();if(o)jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide();if(n)jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide();if(p)jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide();if(r)jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide();if(q)jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide();if(s)jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide();if(t)jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide();if(u)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide();if(v)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide();if(w||x)jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide();if(y)jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide();if(z)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide();if(A)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Text_Simple"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_TP_Content"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Html"){var B=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),C=B.find("select").val();if(C=="enabled"){jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"});jQuery(".dslca-module-edit-options-tabs").show()}else{jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"});jQuery(".dslca-module-edit-options-tabs").hide();B.css({visibility:"visible"})}}}else{jQuery(".dslca-module-edit-options-tabs").show()}if(jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible")}if(jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible")}jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(a){if(dslcDebug)console.log("dslc_module_options_confirm_changes");a=typeof a!=="undefined"?a:false;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")}else{jQuery("body").addClass("dslca-module-saving-in-progress");dslc_module_output_altered(function(){dslc_update_preset();dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery("body").removeClass("dslca-module-saving-in-progress");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(a){a()}})}dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_cancel_changes(a){if(dslcDebug)console.log("dslc_module_options_cancel_changes");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",b).html("").append(LiveComposer.Builder.moduleBackup);dslc_module_output_altered(function(){dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(a){a()}});dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button();LiveComposer.Builder.UI.clearUtils()}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()});jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-ttip"),b=a.find(".dslca-module-edit-field-ttip-inner"),c=jQuery(this),d=c.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html();if(a.is(":visible")){jQuery(".dslca-module-edit-field-ttip").hide()}else{b.html(d);var e=c.offset();var f=a.outerHeight();var g=a.outerWidth();var h=e.left-g/2+6;var i="50%";if(h<0){i=g/2+h+"px";h=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:e.top-f-20,left:h});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+i+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-icon-ttip");var b=jQuery(this);if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-ttip").hide()}else{var c=b.offset();var d=a.outerHeight();var e=a.outerWidth();var f=c.left-e/2+6;var g="50%";if(f<0){g=e/2+f+"px";f=0}jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:c.top-d-20,left:f});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+g+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d+1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d-1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");if(e<0){e=dslcAllFontsArray.length-1}c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("keyup",".dslca-module-edit-field-font",function(a){var b,c,d,e=false,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){jQuery(".dslca-module-edit-field-font-prev",c).click()}if(a.which==40){jQuery(".dslca-module-edit-field-font-next",c).click()}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val();var g=[];var h=new RegExp("^"+d,"i");var i=dslcAllFontsArray.length;var j=0;do{if(h.test(dslcAllFontsArray[j])){if(!e){var e=dslcAllFontsArray[j]}}j++}while(j<i);if(!e){f=d;jQuery(".dslca-module-edit-field-font-suggest",c).hide()}else{f=e;jQuery(".dslca-module-edit-field-font-suggest",c).show()}jQuery(".dslca-module-edit-field-font-suggest",c).text(f);if(f.length){b.val(f.substring(0,b.val().length))}}});jQuery(document).on("keypress",".dslca-module-edit-field-font",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-font-suggest",c).text("")}})}function dslc_list_icon(a,b){var c=jQuery(a).closest(".dslca-module-edit-option-icon");var d=jQuery(".dslca-module-edit-field-icon",c);var e=dslcIconsCurrentSet.indexOf(d.val());if(b=="previous"){var f=e-1}else{var f=e+1}jQuery(".dslca-module-edit-field-icon-suggest",c).text("");if(f<0){f=dslcIconsCurrentSet.length-1}d.val(dslcIconsCurrentSet[f]).trigger("change")}function dslc_module_options_icon(){jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(a){var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){dslc_list_icon(b,"previous")}if(a.which==40){dslc_list_icon(b,"next")}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val().toLowerCase();b.val(d);e=jQuery.grep(dslcIconsCurrentSet,function(a,b){return a.indexOf(d)==0});f=e[0];jQuery(".dslca-module-edit-field-icon-suggest",c).text(f)}});jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-icon-suggest",c).text("")}})}function dslc_module_options_icon_returnid(){jQuery(document).on("click",'.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]',function(a){jQuery(this).closest(".dslca-module-edit-option-icon").find("input").addClass("icon-modal-active")});jQuery(document).on("click",".dslca-modal-icons .icon-item",function(a){var b=jQuery(this).find(".icon-item_name").text();jQuery("input.icon-modal-active").val(b).change();dslc_hide_modal("",jQuery(".dslca-modal:visible"));jQuery("input.icon-modal-active").removeClass("icon-modal-active")})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var a=jQuery(this),b=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),c=a.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");b.removeClass("dslca-active");a.addClass("dslca-active");d.val(c).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var a=jQuery(this);var b=a.siblings('input[type="checkbox"]');if(b.prop("checked")){b.prop("checked",false);a.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}else{b.prop("checked",true);a.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}b.change()})}function dslc_module_options_box_shadow(){if(dslcDebug)console.log("dslc_module_options_box_shadow");jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, "+".dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread,"+" .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-box-shadow-hor").val(),d=a.find(".dslca-module-edit-option-box-shadow-ver").val(),e=a.find(".dslca-module-edit-option-box-shadow-blur").val(),f=a.find(".dslca-module-edit-option-box-shadow-spread").val(),g=a.find(".dslca-module-edit-option-box-shadow-color").val(),h=a.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");if(h){h=" inset"}else{h=""}var i=c+"px "+d+"px "+e+"px "+f+"px "+g+h;b.val(i).trigger("change")})}function dslc_module_options_text_shadow(){if(dslcDebug)console.log("dslc_module_options_text_shadow");jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver,"+".dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-text-shadow-hor").val(),d=a.find(".dslca-module-edit-option-text-shadow-ver").val(),e=a.find(".dslca-module-edit-option-text-shadow-blur").val(),f=a.find(".dslca-module-edit-option-text-shadow-color").val();var g=c+"px "+d+"px "+e+"px "+f;b.val(g).trigger("change")})}function dslc_module_options_color(a){if(dslcDebug)console.log("dslc_module_options_color");var b,c,d,e,f,g,h;var i=[],j,k;var l="dslcColors-"+document.domain;if(undefined!==localStorage[l]){j=JSON.parse(localStorage[l]);i=j}if(1>i.length){i.push("#78b")}if(2>i.length){i.push("#ab0")}if(3>i.length){i.push("#de3")}i.push("#fff");i.push("#000");i.push("rgba(0,0,0,0)");var m=a;jQuery(m).each(function(){var a=jQuery(this).closest(".dslca-color-option");var j=jQuery(this);h=jQuery(this).val();j.wpColorPicker({mode:"hsl",palettes:i,change:function(a,h){b=j;var i=j.wpColorPicker("color");if(i==null){e=""}else{e=i}b.val(e).trigger("change");b.css("background",e);c=b.data("affect-on-change-el");d=b.data("affect-on-change-rule");if(null!=c){jQuery(c,".dslca-module-being-edited").css(d,e)}f=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);g=b.data("id");jQuery('.dslca-module-option-front[data-id="'+g+'"]',f).val(e);f.addClass("dslca-module-change-made")}});var k=a.find(".wp-picker-holder .iris-picker");k.append('<button type="button" class="dslca-colorpicker-apply">Apply</button>');var m=a.find(".dslca-colorpicker-apply");j.wpColorPicker("open");jQuery(m).on("click",function(){if("#fff"!==e&&"#ffffff"!==e&&"#000"!==e&&"#000000"!==e&&"rgba(0,0,0,0)"!==e){if(undefined===localStorage[l]){var a=[e];localStorage[l]=JSON.stringify(a)}else{var a=JSON.parse(localStorage[l]);if(a.indexOf(e)==-1){a.unshift(e);if(3<a.length){a.pop()}}localStorage[l]=JSON.stringify(a)}}j.wpColorPicker("close")});LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))})}function dslc_module_options_numeric(a){if(dslcDebug)console.log("dslc_module_options_numeric");var b=a;jQuery(b).each(function(){var a=jQuery(this);if(0===jQuery(".dslca-module-edit-field-slider",a).length){a.append('<div class="dslca-module-edit-field-slider"></div>')}var b=true;if(a.hasClass("dslca-modules-section-edit-option")){b=false}else{b=true}if(b){var c=a.find(".dslca-module-edit-field")}else{var c=a.find(".dslca-modules-section-edit-field")}if(a.hasClass("dslca-modules-section-edit-option")){var c=a.find(".dslca-modules-section-edit-field")}else{var c=a.find(".dslca-module-edit-field")}var d="",e=a.find(".dslca-module-edit-field-slider"),f=parseFloat(c.val()),g=parseFloat(c.data("max")),h=parseFloat(c.data("min")),i=parseFloat(c.data("increment")),j=g,k=h;var l=false;if(undefined!==c.data("onlypositive")&&1===c.data("onlypositive")){l=true}if(f>=g){g=f*2}if(!l&&f<=h){h=f*2}e.slider({min:h,max:g,step:i,value:c.val(),slide:function(a,b){c.val(b.value+d);c.trigger("change")},change:function(b,c){if(c.value>=g||c.value<=h){e.slider("destroy");dslc_module_options_numeric(a)}}});e.show();jQuery(a).on("mouseleave",function(){if(undefined!==e.slider("instance")){jQuery(e).slider("destroy")}e.remove()});if(c[0].classList.contains("slider-initiated"))return;c[0].classList.add("slider-initiated");c.on("keyup",function(a){if(undefined===a){return false}if(a.shiftKey){if(a.keyCode==38){this.value=(parseInt(this.value)||0)+9;c.trigger("change")}if(a.keyCode==40){this.value=parseInt(this.value)+0-9;c.trigger("change")}}if(a.keyCode==8||a.keyCode==45){c.trigger("change")}if(a.keyCode>=48&&a.keyCode<=57||a.keyCode>=96&&a.keyCode<=105){c.trigger("change")}var b=a.which?a.which:a.keyCode;if((b>=48&&b<=57||b>=96&&b<=105)&&a.keyCode!=8&&a.keyCode!=39&&a.keyCode!=37&&a.keyCode!=46){return false}});c.on("change",function(a){if(l&&this.value<0){this.value=0}var c;if(b){c=jQuery(a.target.closest(".dslca-module-edit-option-slider"))}else{c=jQuery(a.target.closest(".dslca-modules-section-edit-option-slider"))}var d=c.find(".dslca-module-edit-field-slider");if(undefined!==d.slider("instance")){d.slider("value",this.value)}if(b){var e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);e.addClass("dslca-module-change-made")}});return false})}function dslc_disable_responsive_view(){jQuery("html").removeClass("dslc-responsive-preview");jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function dslc_filter_module_options(a){dslc_module_options_section_filter(a)}function dslc_show_module_options_tab(a){dslc_module_options_tab_filter(a)}
|
4 |
-
function dslc_confirm_changes(a){dslc_module_options_confirm_changes(a)}function dslc_cancel_changes(a){dslc_module_options_cancel_changes(a)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}"use strict";function dslc_template_load(a){if(dslcDebug)console.log("dslc_load_template");var b,c;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:a},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_import(){if(dslcDebug)console.log("dslc_import_template");var a,b;jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0});jQuery(".dslca-modal-templates-import .dslca-loading").show();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);jQuery(".dslca-modal-templates-import .dslca-loading").hide();jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1});dslc_hide_modal("",".dslca-modal-templates-import");LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_save(){if(dslcDebug)console.log("dslc_save_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(a){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(a){if(dslcDebug)console.log("dslc_delete_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:a},function(b){jQuery('.dslca-template[data-id="'+a+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(a){dslc_template_load(a)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(a){dslc_template_delete(a)}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-template",function(a){a.preventDefault();dslc_template_load(jQuery(this).data("id"))});a(".dslca-template-import-form").submit(function(a){a.preventDefault();dslc_template_import()});a(".dslca-template-save-form").submit(function(a){a.preventDefault();dslc_template_save()});a(document).on("click",".dslca-delete-template-hook",function(b){b.stopPropagation();dslc_template_delete(a(this).data("id"))})});"use strict";window.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};jQuery(document).on("click",".dslca-show-js-error-hook",function(a){a.preventDefault();var b=document.getElementById("dslca-js-errors-report");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:'<a href="https://livecomposerplugin.com/support/support-request/" target="_blank"><span class="dslca-icon dslc-icon-comment"></span> Open Support Ticket</a>',content:'<span class="dslca-error-report">'+b.value+"</span>"})}});jQuery(document).ready(function(a){jQuery("#page-builder-frame")[0].contentWindow.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};dslca_update_report_log();jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress");jQuery(".dslca-invisible-overlay").hide();jQuery(".dslca-section").eq(0).show();window.previewAreaTinyMCELoaded=function(){var a=this;LiveComposer.Builder.PreviewAreaWindow=this;LiveComposer.Builder.PreviewAreaDocument=jQuery(this.document);jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove();LiveComposer.Builder.UI.initInlineEditors();dslc_fix_contenteditable();var b=LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0];new LiveComposer.Builder.Elements.CSectionsContainer(b);jQuery(document).trigger("editorFrameLoaded");dslc_drag_and_drop();dslc_generate_code();dslc_keypress_events();LiveComposer.Builder.UI.initPreviewAreaScroller()}});jQuery(document).on("click",".dslca-currently-editing",function(){var a=false,b=false,c;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#5890e5"}else if(jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#eabba9"}if(a){b=a.offset().top-100;if(b<0){b=0}var d=[];jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:b},300,function(){a.removeAttr("style")})}});jQuery(window).keypress(function(a){if((a.metaKey||a.ctrlKey)&&a.keyCode==83){dslc_ajax_save_composer();a.preventDefault();return false}});jQuery(document).on("click",".dslca-hide-composer-hook",function(a){a.preventDefault();dslc_hide_composer()});jQuery(document).on("click",".dslca-show-composer-hook",function(a){a.preventDefault();dslc_show_composer()});jQuery(document).on("click",".dslca-go-to-modules-hook",function(a){a.preventDefault();dslc_show_section(".dslca-modules")});jQuery(document).on("click",".dslca-go-to-section-hook",function(a){a.preventDefault();if(jQuery(this).hasClass("dslca-active")){return}var b=jQuery(this).data("section");dslc_show_section(b);if(jQuery(this).hasClass("dslca-go-to-section-modules")||jQuery(this).hasClass("dslca-go-to-section-templates")){jQuery(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}});jQuery(document).on("click",".dslca-close-composer-hook",function(a){a.preventDefault();var b=jQuery(this).attr("href");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=b}})}});jQuery(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()});jQuery(document).on("click",".dslca-section-title",function(a){a.stopPropagation();if(jQuery(".dslca-section-title-filter",this).length){dslc_generate_filters();jQuery(".dslca-section-title-filter-options").slideToggle(300)}});jQuery(document).on("click",".dslca-section-title-filter-options a",function(a){a.preventDefault();a.stopPropagation();var b=jQuery(this).data("origin");var c=jQuery(this).closest(".dslca-section");if(c.hasClass("dslca-templates-load")){jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}else{jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}jQuery(".dslca-section-scroller-inner").css({left:0});dslc_filter_origin(b,c);jQuery(".dslca-section-title-filter-options").slideToggle(300)});function dslc_hide_composer(){if(dslcDebug)console.log("dslc_hide_composer");jQuery(".dslca-hide-composer-hook").hide();jQuery(".dslca-show-composer-hook").show();jQuery("body").addClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:jQuery(".dslca-container").outerHeight()*-1});jQuery(".dslca-header").hide()}function dslc_show_composer(){if(dslcDebug)console.log("dslc_show_composer");jQuery(".dslca-show-composer-hook").hide();jQuery(".dslca-hide-composer-hook").show();jQuery("body").removeClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:0});jQuery(".dslca-header").show()}function dslc_show_publish_button(){if(dslcDebug)console.log("dslc_show_publish_button");jQuery(".dslca-save-composer").show().addClass("dslca-init-animation");jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_hide_publish_button(){if(dslcDebug)console.log("dslc_hide_publish_button");jQuery(".dslca-save-composer").hide();jQuery(".dslca-save-draft-composer").hide()}function dslc_show_section(a){if(dslcDebug)console.log("dslc_show_section");var b=jQuery(a).data("title"),c=jQuery(a).data("bg");jQuery(".dslca-container").css({bottom:-500});jQuery(".dslca-section").hide();jQuery(a).show();if(a==".dslca-module-edit"){jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element")}else if(a==".dslca-modules-section-edit"){jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row")}else{jQuery(".dslca-currently-editing").hide().find("strong").text("")}dslc_module_options_tab_filter();jQuery(".dslca-container").css({bottom:0});jQuery(a).find("input.dslca-module-edit-field-colorpicker").each(function(a){jQuery(this).css("background",jQuery(this).val())})}function dslc_generate_filters(){if(dslcDebug)console.log("dslc_generate_filters");var a,b=[],c='<a html="#" data-origin="">Show All</a>',d=jQuery(".dslca-section:visible .dslca-origin");d.each(function(){a=jQuery(this);if(jQuery.inArray(a.data("origin"),b)==-1){b.push(a.data("origin"));c+='<a href="#" data-origin="'+a.data("origin")+'">'+a.data("origin")+"</a>"}});jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(c).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(a,b){if(dslcDebug)console.log("dslc_filter_origin");jQuery(".dslca-origin",b).attr("data-display-module","false");jQuery('.dslca-origin[data-origin="'+a+'"]',b).attr("data-display-module","true");if(a==""){jQuery(".dslca-origin",b).attr("data-display-module","true");jQuery(".dslca-origin.dslca-exclude",b).attr("data-display-module","false")}}function dslc_drag_and_drop(){if(dslcDebug)console.log("dslc_drag_and_drop");var a,b,c,d;var e=jQuery(".dslca-modules .dslca-section-scroller-content");if(e.length==0){e=[document.createElement("div")]}var f=Sortable.create(e[0],{sort:false,group:{name:"modules",pull:"clone",put:false},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("#dslc-header").addClass("dslca-header-low-z-index")},onEnd:function(a){a.oldIndex;a.newIndex;var e=a.item;a.preventDefault();if(jQuery(e).closest(".dslca-section-scroller-content").length>0)return false;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered");b=jQuery(e.parentNode);c=e.dataset.id;dslc_generate_code();if(c=="DSLC_M_A"||jQuery("body").hasClass("dslca-module-drop-in-progress")||b.closest("#dslc-header").length||b.closest("#dslc-footer").length){}else{jQuery("body").addClass("dslca-module-drop-in-progress");dslc_module_output_default(c,function(a){d=a.output;var c=LiveComposer.Builder.Helpers.insertModule(d,jQuery(".dslca-module",b));setTimeout(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();jQuery("body").removeClass("dslca-module-drop-in-progress")},700);jQuery(".dslca-no-content-primary",b).css({opacity:1});jQuery(".dslca-modules-area-manage",b).css({visibility:"visible"});LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.UI.initInlineEditors()});jQuery(e).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin");jQuery(".dslca-no-content-primary",b).css({opacity:0});jQuery(".dslca-modules-area-manage",b).css({visibility:"hidden"})}LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("#dslc-header").removeClass("dslca-header-low-z-index")},onAdd:function(a){var b=a.item;a.from},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){a.preventDefault()},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;jQuery(a.to).addClass("dslca-options-hovered")}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_fix_contenteditable(){LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",false)});LiveComposer.Builder.PreviewAreaDocument.on("dragend mousedown",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",true)})}function dslc_toogle_control(a){if(a===undefined)a=false;if(!a)return;var b=jQuery(".dslca-module-edit-option-"+a);var c=b.find(".dslca-module-edit-field");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var e=d[0].id;var f="";if("tablet_responsive"===b.data("tab")){f="body.dslc-res-tablet "}else if("phone_responsive"===b.data("tab")){f="body.dslc-res-phone "}var g=c.data("affect-on-change-el");if(g===undefined)return;var h=g.split(",");g="";for(var i=0;i<h.length;i++){if(i>0){g+=", "}g+=f+"#"+e+" "+h[i]}var j=c.data("affect-on-change-rule").replace(/ /g,"");var k=j.split(",");var l;var m=c.data("ext");b.toggleClass("dslca-option-off");if(b.hasClass("dslca-option-off")){l=dslc_get_control_value(a);c.data("val-bckp",l);for(var i=0;i<k.length;i++){jQuery(g,LiveComposer.Builder.PreviewAreaDocument).css(k[i],"");disable_css_rule(g,k[i],e)}c.val("").trigger("change")}else{c.val(c.data("val-bckp")).trigger("change");l=dslc_get_control_value(a);l=dslc_combine_value_and_extension(l,m||"");for(var i=0;i<k.length;i++){var n=g+"{"+k[i]+": "+l+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:b,rule:k[i],elems:g.replace(new RegExp("#"+e,"gi"),"").trim(),styleContent:n})}}}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(a){a.preventDefault();var b=jQuery(a.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(b)});jQuery(document).on("mousedown",".dslca-module-edit-option",function(b){var c=a(".dslc-control-toggle");if(!c.is(b.target)&&c.has(b.target).length===0){if(jQuery(b.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")){var d=a(b.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(d)}}})});function disable_css_rule(a,b,c){var d;var e="css-for-"+c;var f=document.getElementById("page-builder-frame").contentWindow.document.getElementById(e);a=a.replace(/\s\s+/g," ");if(f){f=f.sheet;if(f["rules"]){d="rules"}else if(f["cssRules"]){d="cssRules"}else{}for(var g=0;g<f[d].length;g++){if(f[d][g].selectorText==a){if(f[d][g].style[b]){f[d][g].style[b]="";break}}}}}function dslc_combine_value_and_extension(a,b){if(""===a||null===a){return a}if(a.indexOf(b)==-1){a=a+b}return a}function dslc_get_control_value(a){var b=jQuery(".dslca-module-edit-option-"+a);var c="text";var d=b.find(".dslca-module-edit-field");var e;e=d.val();return e}function dslc_keypress_events(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",function(a){dslc_modal_keypress_events(a);dslc_disable_backspace_navigation(a);dslc_notice_on_refresh(a);dslc_save_page(a)})}function dslc_disable_backspace_navigation(a){var b=false;if(a.keyCode===8){var c=a.srcElement||a.target;if(c.tagName.toUpperCase()==="INPUT"&&(c.type.toUpperCase()==="TEXT"||c.type.toUpperCase()==="PASSWORD"||c.type.toUpperCase()==="NUMBER"||c.type.toUpperCase()==="FILE")||c.tagName.toUpperCase()==="TEXTAREA"||jQuery(c).hasClass("dslca-editable-content")||jQuery(c).hasClass("dslc-tabs-nav-hook-title")||jQuery(c).hasClass("dslc-accordion-title")){b=c.readOnly||c.disabled}else{b=true}}if(b){a.preventDefault()}}function dslc_notice_on_refresh(a){if(a.which==116||a.which===82&&a.metaKey){if(jQuery(".dslca-save-composer-hook").offsetParent!==null||jQuery(".dslca-module-edit-save").offsetParent!==null){a.preventDefault();LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}})}}}function dslc_save_page(a){if(a.which==83&&(a.metaKey||a.ctrlKey)){if(jQuery(".dslca-save-composer-hook").css("display")=="block"){dslc_save_composer();a.preventDefault();return false}}}function dslca_generate_error_report(a,b,c,d){var e="JavaScript error detected in a third-party plugin";if(b.match("wp-content/plugins/live-composer-page-builder/js")!=null){e="Live Composer returned JS error"}var f="";f+='<br /><strong style="color:#E55F5F;">'+e+"</strong><br />";f+=a+'<br /> File "'+b+'", line '+c+", char "+d+"<br />";if("undefined"!==typeof Storage){localStorage.setItem("js_errors_report",f)}}function dslca_update_report_log(){var a=document.getElementById("dslca-js-errors-report");var b=localStorage.getItem("js_errors_report");if(null!==b){a.value=b;localStorage.removeItem("js_errors_report");document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")}}"use strict";LiveComposer.Utils={addslashes:function(a){a=a.replace(/\\/g,"\\\\");a=a.replace(/\'/g,"\\'");a=a.replace(/\"/g,'\\"');a=a.replace(/\0/g,"\\0");return a},basename:function(a){return a.split(/[\\\/]/).pop()},msieversion:function(){var a=window.navigator.userAgent;var b=a.indexOf("MSIE ");if(b>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return parseInt(a.substring(b+5,a.indexOf(".",b)))}else{return false}},checkParams:function(a){if(!Array.isArray(a)){throw"Param is not array"}var b={integer:function(a){return isNaN(parseInt(a))},"float":function(a){return isNaN(parseFloat(a))},string:function(a){return a!=null&&a!=undefined&&typeof a=="string"},array:function(a){return Array.isArray(a)},object:function(a){return typeof a=="object"}};a.map(function(a){if(!b[a[1]](a[0])){throw"Param "+a[0]+" is not "+a[1]}})},utf8_to_b64:function(a){return window.btoa(unescape(encodeURIComponent(a)))},b64_to_utf8:function(a){return decodeURIComponent(escape(window.atob(a)))},get_page_params:function(){return decodeURIComponent(window.location.search.slice(1)).split("&").reduce(function a(b,c){c=c.split("=");b[c[0]]=c[1];return b},{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},update_module_property_raw:function(a,b,c){var d=a.getElementsByClassName("dslca-module-code")[0];var e=a.querySelector('.dslca-module-option-front[data-id="'+b+'"]');var f=d.value;f=JSON.parse(f);f[b]=c;f=JSON.stringify(f);d.value=f;d.innerHTML=f;e.value=c;e.innerHTML=c},publish:function(a,b){b=b?b:{};this.checkParams([[a,"string"],[b,"object"]]);jQuery(document).trigger({type:a,message:{details:b}});LiveComposer.Builder.PreviewAreaWindow.dslca_publish_event(a,b)}};"use strict";function dslc_dm_get_defaults(a){if(dslcDebug)console.log("dslc_dm_get_defaults");var b=a.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:b},function(a){jQuery(".dslca-prompt-modal textarea").val(a.output)})}function dslc_editable_content_gen_code(a){if(dslcDebug)console.log("dslc_editable_content_gen_code");if(undefined===a){return false}var b,c,d;b=a.closest(".dslc-module-front");c=a.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");d=a.data("id");jQuery('.dslca-module-option-front[data-id="'+d+'"]',b).val(c)}window.onbeforeunload=function(){return};jQuery(document).ready(function(a){jQuery(document).on("change",".dslca-modules-section-edit-field",function(){var b,c,d,e,f,g,h,i,j,k,l;b=a(this);c=b.data("id");f=b.val();g=f;h=f+b.data("ext");i=b.data("css-rule");d=a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);k=d;j=a('.dslca-modules-section-settings input[data-id="'+c+'"]',d);d.addClass("dslca-modules-section-change-made");if(b.hasClass("dslca-modules-section-edit-field-upload")){if(f&&f.length){f=a('.dslca-modules-section-settings input[data-id="dslca-img-url"]',d).val()}}if(i=="background-image"){f='url("'+f+'")';LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}if(c=="bg_image_attachment"){d.removeClass("dslc-init-parallax")}if(c=="border-top"||c=="border-right"||c=="border-bottom"||c=="border-left"){var m=a('.dslca-modules-section-settings input[data-id="border_style"]').val();j=a('.dslca-modules-section-settings input[data-id="border"]',d);g="";var n=b.closest(".dslca-modules-section-edit-option-checkbox-wrapper");n.find(".dslca-modules-section-edit-field-checkbox").each(function(){if(a(this).is(":checked")){if(a(this).data("id")=="border-top"){g+="top "}else if(a(this).data("id")=="border-right"){g+="right "}else if(a(this).data("id")=="border-bottom"){g+="bottom "}else if(a(this).data("id")=="border-left"){g+="left "}}});if(b.is(":checked")){if(b.data("id")=="border-top"){d.css({"border-top-style":m})}else if(b.data("id")=="border-right"){d.css({"border-right-style":m})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":m})}else if(b.data("id")=="border-left"){d.css({"border-left-style":m})}}else{if(b.data("id")=="border-top"){d.css({"border-top-style":"hidden"})}else if(b.data("id")=="border-right"){d.css({"border-right-style":"hidden"})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":"hidden"})}else if(b.data("id")=="border-left"){d.css({"border-left-style":"hidden"})}}}else if(b.hasClass("dslca-modules-section-edit-field-checkbox")){var o=a(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox");var p="";o.each(function(){if(a(this).prop("checked")){p+=a(this).data("val")+" "}});var g=p;if(b.data("id")=="show_on"){if(p.indexOf("desktop")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop")}if(p.indexOf("tablet")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet")}if(p.indexOf("phone")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")}}}else if(c=="bg_image_attachment"&&f=="parallax"||c=="type"){if(c=="bg_image_attachment"){d.addClass("dslc-init-parallax");LiveComposer.Builder.PreviewAreaWindow.dslc_parallax()}else if(c=="type"){if(f=="full"){d.addClass("dslc-full")}else{d.removeClass("dslc-full")}LiveComposer.Builder.PreviewAreaWindow.dslc_masonry()}}else if(c=="columns_spacing"){if(f=="nospacing"){d.addClass("dslc-no-columns-spacing")}else{d.removeClass("dslc-no-columns-spacing")}}else if(c=="custom_class"){}else if(c=="custom_id"){}else if(c=="bg_video"){jQuery(".dslc-bg-video video",d).remove();if(f&&f.length){var q=f;q=q.replace(".webm","");q=q.replace(".mp4","");jQuery(".dslc-bg-video-inner",d).html('<video><source type="video/mp4" src="'+q+'.mp4" /><source type="video/webm" src="'+q+'.webm" /></video>');LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if(c=="bg_image_thumb"){if(g=="enabled"){if(jQuery("#dslca-post-data-thumb").length){var r="url('"+jQuery("#dslca-post-data-thumb").val()+"')";k.css(i,r)}}else if(g=="disabled"){k.css(i,"none")}}else{if(b.data("css-element")){k=jQuery(b.data("css-element"),d)}i=i.replace(/ /g,"").split(",");var s;if(null!=b.data("ext")){s=h}else{s=f}for(var t=0;t<i.length;t++){k.css(i[t],s)}}j.val(g);if(!LiveComposer.Builder.Flags.generate_code_after_row_changed)return false});jQuery(document).on("blur",".dslc-editable-area",function(b){var c=a(this).closest(".dslc-module-front");var d=a(this).data("dslc-option-id");var e=a(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+d+'"]',c).val(e);dslc_module_output_altered()});jQuery(document).on("change",".dslca-module-edit-field",function(){if(dslcDebug)console.log("on change event for .dslca-module-edit-field");var b="",c="",d=jQuery(this),e=d.data("id"),f=d.closest(".dslca-module-edit-option"),g=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),h=g.data("dslc-module-id"),i=jQuery(".dslca-module-options-front textarea",g);g.addClass("dslca-module-change-made");if(f.hasClass("dslca-module-edit-option-select")||f.hasClass("dslca-module-edit-option-checkbox")){dslc_module_options_hideshow_tabs()}if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")=="active"){if(f.find(".dslca-module-edit-option-checkbox-wrapper").length){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(a(this).prop("checked")){b=b+jQuery(this).val()+" "}})}else if(d.hasClass("dslca-module-edit-option-radio")){var b=jQuery(".dslca-module-edit-field:checked",d).val()}else{var b=d.val();if(e=="orientation"&&b=="horizontal"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("40").trigger("change")}else if(e=="orientation"&&b=="vertical"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("100").trigger("change")}}jQuery('.dslca-module-options-front textarea[data-id="'+e+'"]',g).val(b);jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made");if(e=="css_load_preset"&&!jQuery("body").hasClass("dslca-new-preset-added")){dslc_module_options_show(h);jQuery(".dslca-container-loader").hide()}else{jQuery(".dslca-container-loader").hide()}jQuery("body").removeClass("dslca-new-preset-added");LiveComposer.Utils.publish("LC.moduleChange",{moduleId:h,optionID:e,optionVal:d.val()})})}else{if(d.hasClass("dslca-module-edit-field-font")){var l=d.val();l=l+":400,100,200,300,500,600,700,800,900";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;var q=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);if(d.val().length&&dslcGoogleFontsArray.indexOf(d.val())!==-1){document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[l]},active:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var c=m.split(",");var e="#"+q[0].id+" "+c.join(", #"+q[0].id+" ")+" {"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:e})},inactive:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}})}else{setTimeout(function(){if(jQuery(".dslca-font-loading.dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var a=m.split(",");var b="#"+q[0].id+" "+a.join(", #"+q[0].id+" ")+" {"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:b})},100)}}else if(d.hasClass("dslca-module-edit-field-checkbox")){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(jQuery(this).prop("checked")){b=b+"solid ";c=c+a(this).val()+" "}else{b=b+"none "}})}if(!d.hasClass("dslca-module-edit-field-font")&&d.data("affect-on-change-el")!=null&&d.data("affect-on-change-rule")!=null){var r=d.data("ext")||"";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;if(d.hasClass("dslca-module-edit-field-checkbox")){o=b;p=c}if(d.hasClass("dslca-module-edit-field-image")){o='url("'+o+'")'}if(null!==o&&o.length<1&&(n=="background-color"||n=="background")){o="transparent"}n.split(",").forEach(function(a){a=a.replace(/\s+/g,"");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var c=m.split(",");var e="#"+b[0].id+" "+c.join(", #"+b[0].id+" ")+" {"+a+": "+o+r+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:a,elems:m,styleContent:e})})}var s="";if(e.indexOf("css_")!==-1){s=p}else{s=d.val()}jQuery('.dslca-module-option-front[data-id="'+e+'"]',g).val(s);LiveComposer.Utils.publish("LC.moduleChange",{moduleId:g[0].id,optionID:e,optionVal:p||d.val()})}})});jQuery(document).ready(function(a){var b;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){var a=jQuery(this);if(a.hasClass("dslca-module-edit-field-image-add-hook")){var c=a.siblings(".dslca-module-edit-field-image");var d=a.siblings(".dslca-module-edit-field-image-remove-hook")}else{var c=a.siblings(".dslca-modules-section-edit-field-upload");var d=a.siblings(".dslca-modules-section-edit-field-image-remove-hook")}var e=false;b=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:e});b.on("select",function(){var e=b.state().get("selection").first().toJSON();c.val(e.id);jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id="dslca-img-url"]').val(e.url);c.trigger("change");a.hide();d.show()});b.open()});jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var a=jQuery(this);if(a.hasClass("dslca-module-edit-field-image-remove-hook")){var b=a.siblings(".dslca-module-edit-field-image");var c=a.siblings(".dslca-module-edit-field-image-add-hook")}else{var b=a.siblings(".dslca-modules-section-edit-field-upload");var c=a.siblings(".dslca-modules-section-edit-field-image-add-hook")}b.val("").trigger("change");a.hide();c.show()});jQuery(document).on("click",".dslca-wp-editor-save-hook",function(){var a=jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).closest(".dslc-module-front");if(typeof tinymce!="undefined"){if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){var b=tinymce.get("dslcawpeditor");
|
5 |
-
var c=b.getContent()}else{var c=jQuery("#dslcawpeditor").val()}jQuery(".dslca-wp-editor").hide();jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).html(c);if(a.hasClass("dslc-module-handle-like-accordion")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-accordion-plain-content").val(c);var d=a.find(".dslc-accordion");LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(d)}else if(a.hasClass("dslc-module-handle-like-tabs")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-tab-plain-content").val(c);var e=a.find(".dslc-tabs");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(e)}dslc_editable_content_gen_code(jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")}else{console.info("Live Composer: TinyMCE is undefined.")}});jQuery(document).on("click",".dslca-wp-editor-cancel-hook",function(){a(".dslca-wp-editor").hide();a(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")})});
|
1 |
+
"use strict";function dslc_ui_animations(){if(dslcDebug)console.log("dslc_ui_animations");jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered")}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<190)jQuery(".dslca-module-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(a){if(!jQuery("body").hasClass("dslca-composer-hidden")){}});jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){if(jQuery(this).height()<130)jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal");else jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal")}}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(a){var b=jQuery(this);if(!jQuery("body").hasClass("dslca-composer-hidden")){}})}jQuery(document).ready(function(){dslc_ui_animations()});"use strict";function dslc_save_composer(){if(dslcDebug)console.log("dslc_save_composer");dslc_generate_code();dslca_gen_content_for_search();var a=jQuery("#dslca-code").val(),b=jQuery("#dslca-content-for-search").val(),c=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:c,dslc_code:a,dslc_content_for_search:b},timeout:1e4}).done(function(a){if(a.status=="success"){jQuery(".dslca-save-composer").fadeOut(250);jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again. Are you sure to make any changes? Error Code: "+a.status)}}).fail(function(a){if(a.statusText=="timeout"){alert("The request timed out after 10 seconds. Server do not respond in time. Please try again.")}else{alert("Something went wrong. Please try again. Error Code: "+a.statusText)}}).always(function(a){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok");jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){if(dslcDebug)console.log("dslc_save_draft_composer");var a=jQuery("#dslca-code").val(),b=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress");jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:b,dslc_code:a},function(a){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save");if(a.status=="success"){jQuery(".dslca-save-draft-composer").fadeOut(250)}else{alert("Something went wrong, please try to save again.")}jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){if(dslcDebug)console.log("dslc_generate_code");var a="",b,c="",d="",e=12,f=12,g=0,h=0,i,j,k,l,m,n="",o;jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(".dslc-module-front",this).length){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content",this).hide()}else{jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300)}});jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){m=jQuery(this);o=dslc_generate_section_code(m);m.find(".dslca-section-code").val(o);d=d+o+","});d=d.slice(0,-1);d="["+d+"]";jQuery("#dslca-code").val(d);jQuery("#dslca-export-code").val(d)}function dslc_generate_section_code(a){if(dslcDebug)console.log("dslc_generate_section_code");var b="",c,d="",e="",f=12,g=12,h=0,i=0,j,k,l,m,n,o="",p="",q;n=a;if(jQuery(".dslc-modules-area",n).length){n.removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{n.removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}jQuery(".dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");jQuery(".dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col",this).removeClass("dslc-last-col dslc-first-col");i=0;p=n.find(".dslca-section-code").val();q=JSON.parse(p);o="";jQuery(".dslca-modules-section-settings input",n).each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();o=o+b+'="'+c+'" ';q[b]=c});if(undefined!==q["give_new_id"]){delete q["give_new_id"]}q["content"]=[];jQuery(".dslc-modules-area",n).each(function(){h=0;k=jQuery(this);j=parseInt(k.data("size"));l="no";m="no";i+=j;jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");if(i==g){jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col");i=0;l="yes"}else if(i>g){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");i=j;m="yes"}if(i==j){m="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}var a='{"element_type":"module_area","last":"'+l+'","first":"'+m+'","size":"'+j+'"}';a=JSON.parse(a);if(undefined!==a["give_new_id"]){delete a["give_new_id"]}a.content=[];jQuery(".dslc-module-front",k).each(function(){var d=jQuery(this);c=parseInt(d[0].getAttribute("data-dslc-module-size"));var e="no";var g="no";jQuery(this).removeClass("dslc-first-col");jQuery(this).removeClass("dslc-last-col");h+=c;if(h==f){jQuery(this).addClass("dslc-last-col");jQuery(this).next(".dslc-module-front").addClass("dslc-first-col");h=0;e="yes";g="yes"}else if(h>f){jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col");h=c;g="yes"}if(h==c){g="yes";jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col")}try{b=d[0].querySelector(".dslca-module-code").value}catch(i){console.info("No DSLC code found in module: "+d[0].getAttribute("id"))}if(""!==b){var j=JSON.parse(b);j.last=e;jQuery.each(j,function(a,b){if(false===b||""===b){delete j[a]}if("give_new_id"===a){delete j[a]}});d[0].querySelector(".dslca-module-code").value=JSON.stringify(j);a["content"].push(j)}b=""});q["content"].push(a)});return JSON.stringify(q)}jQuery(document).ready(function(a){a(document).on("click",".dslca-save-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_composer()}});a(document).on("click",".dslca-save-draft-composer-hook",function(b){b.preventDefault();if(!a("body").hasClass("dslca-module-saving-in-progress")&&!a("body").hasClass("dslca-saving-in-progress")){dslc_save_draft_composer()}})});function dslca_gen_content_for_search(){if(dslcDebug)console.log("dslca_gen_content_for_search");var a=document.getElementById("dslca-content-for-search");if(null===a){return}var b=a.value;var c="";var d=LiveComposer.Builder.PreviewAreaWindow.document.querySelectorAll("#dslc-main .dslc-module-front [data-exportable-content]");if(undefined!==d){Array.prototype.forEach.call(d,function(a,b){var d;if(a.getAttribute("data-exportable-content")!==""){var e=a.getAttribute("data-exportable-content");d="<"+e+">"+a.innerHTML+"</"+e+">"}else{d=a.innerHTML}if(d!==null){c+=d.replace(/\s+/g," ").trim()+"\n"}})}a.value=c;if(b!==c){dslc_show_publish_button()}}var massagesTicker=jQuery("#editor_messages").newsTicker({row_height:40,max_rows:2,speed:900,direction:"up",duration:12e3,autostart:1,pauseOnHover:1,start:function(){jQuery("#editor_messages").css("opacity","1")}});"use strict";var dslcRegularFontsArray=DSLCFonts.regular;var dslcGoogleFontsArray=DSLCFonts.google;var dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray);var dslcIconsCurrentSet=DSLCIcons.fontawesome;var dslcDebug=false;var LiveComposer={Builder:{Elements:{},UI:{},Actions:{},Flags:{},PreviewFrame:{},Helpers:{}},Production:{},Utils:{}};(function(){LiveComposer.Builder.Flags={windowScroller:false,panelOpened:false,generate_code_after_row_changed:true};LiveComposer.Builder.Actions={postponed_actions_queue:{},add_postponed_action:function(a){if(a===undefined){return}if(isNaN(this.postponed_actions_queue[a])){this.postponed_actions_queue[a]=0}this.postponed_actions_queue[a]+=1},release_postponed_actions:function(){var a=this;jQuery.each(this.postponed_actions_queue,function(b,c){if(1<c){a.postponed_actions_queue[b]-=1}else if(1==c){window[b]();a.postponed_actions_queue[b]-=1}})}};LiveComposer.Builder.Helpers.insertModule=function(a,b){var c=jQuery(a),b=jQuery(b);var d=[];c.find("script").each(function(){d.push(this.innerHTML);this.parentNode.removeChild(this)});b.after(c).remove();d.forEach(function(a){var b=LiveComposer.Builder.PreviewAreaDocument[0].createElement("script");b.innerHTML=a;b.type="text/javascript";LiveComposer.Builder.PreviewAreaDocument[0].getElementById(c[0].id).appendChild(b)});d=null;b=null;return c}})();"use strict";LiveComposer.Builder.UI.CModalWindow=function(a){if(typeof a!="object"||this.instancesExists===true)return false;var b=this;var c='<div class="dslca-prompt-modal dslca-prompt-modal-active">'+'<div class="dslca-prompt-modal-content"><div class="dslca-prompt-modal-msg">'+'<span class="dslca-prompt-modal-title">'+a.title+"</span>"+'<span class="dslca-prompt-modal-descr">'+a.content+"</span></div>";var d="";if(a.confirm||a.cancel){d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.confirm_title?a.confirm_title:"Confirm")+'</a><span class="dslca-prompt-modal-cancel-hook"><span class="dslc-icon dslc-icon-remove">'+"</span>"+(a.cancel_title?a.cancel_title:"Cancel")+"</span></div>"}else{d='<div class="dslca-prompt-modal-actions">'+'<a href="#" class="dslca-prompt-modal-confirm-hook"><span class="dslc-icon dslc-icon-ok">'+"</span>"+(a.ok_title?a.ok_title:"OK")+"</a></div>"}c+=d+"</div>";c=jQuery(c);if(typeof a.confirm!="function")a.confirm=function(){};if(typeof a.cancel!="function")a.cancel=function(){};c.find(".dslca-prompt-modal-confirm-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){a.confirm();b.instancesExists=false;jQuery(this).remove()});return false});c.find(".dslca-prompt-modal-cancel-hook").click(function(d){d.stopPropagation();c.find(".dslca-prompt-modal-content").animate({top:"55%"},400);c.animate({opacity:0},400,function(){jQuery(this).remove();b.instancesExists=false;a.cancel()});return false});c.hide();jQuery("body").append(c);c.css({opacity:0}).show().animate({opacity:1},400);c.find(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400);this.instancesExists=true};"use strict";function dslc_show_modal(a,b){if(dslcDebug)console.log("dslc_show_modal");dslc_hide_modal("",jQuery(".dslca-modal:visible"));var b=jQuery(b);var c=jQuery(".dslca-container").height();b.outerHide({clbk:function(){dslc_hide_modal("",jQuery(".dslca-modal:visible"))}});var d=jQuery(a).position(),e=b.outerWidth()/2-a.outerWidth()/2,f=d.left-e;b.css({left:f}).show();jQuery(".dslca-prompt-modal-custom").insertAfter(b);jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeIn();b.addClass("dslca-modal-open");b.css({}).fadeIn(600)}function dslc_hide_modal(a,b){if(dslcDebug)console.log("dslc_hide_modal");var b=jQuery(b);b.outerHide("destroy");b.hide();jQuery(".dslca-prompt-modal-custom").length>0&&jQuery(".dslca-prompt-modal-custom").fadeOut();b.removeClass("dslca-modal-open")}jQuery(document).ready(function(a){a(document).on("click",".dslca-open-modal-hook",function(a){a.preventDefault();var b=jQuery(this).data("modal");dslc_show_modal(jQuery(this),b)});jQuery(document).on("click",".dslca-close-modal-hook",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-action-disabled")){var b=jQuery(this).data("modal");dslc_hide_modal(jQuery(this),b)}})});function dslc_js_confirm(a,b,c){if(dslcDebug)console.log("dslc_js_confirm");jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").data("id",a);jQuery(".dslca-prompt-modal").data("target",c);jQuery(".dslca-prompt-modal-msg").html(b);jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400);jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){if(dslcDebug)console.log("dslc_js_confirm_close");jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active");jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide();jQuery(".dslca-prompt-modal-cancel-hook").show();jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)});jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_modal_keypress_events(a){if(a.which==13){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-confirm-hook").trigger("click")}}else if(a.which==27){if(jQuery(".dslca-prompt-modal-active").length){jQuery(".dslca-prompt-modal-cancel-hook").trigger("click")}}}jQuery(document).ready(function(a){a(document).on("click",".dslca-prompt-modal-cancel-hook",function(a){a.preventDefault();var b=jQuery(".dslca-prompt-modal").data("id");var c=jQuery(".dslca-prompt-modal").data("target");if(b=="edit_in_progress"){dslc_module_options_cancel_changes(function(){c.trigger("click")})}else if(b=="delete_module"){}dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")});a(document).on("click",".dslca-prompt-modal-confirm-hook",function(b){b.preventDefault();var c=jQuery(".dslca-prompt-modal").data("id");var d=jQuery(".dslca-prompt-modal").data("target");var e=true;if(c=="edit_in_progress"){dslc_module_options_confirm_changes(function(){d.trigger("click")})}else if(c=="disable_lc"){window.location=d}else if("delete_module"===c){var f=d.closest(".dslc-module-front");dslc_delete_module(f)}else if("delete_modules_area"===c){var g=d.closest(".dslc-modules-area");var h=g.closest(".dslc-modules-section-inner");dslc_modules_area_delete(g)}else if(c=="delete_modules_section"){dslc_row_delete(d.closest(".dslc-modules-section"))}else if(c=="export_modules_section"){}else if(c=="import_modules_section"){dslc_row_import(a(".dslca-prompt-modal textarea").val());a(".dslca-prompt-modal-confirm-hook span").css({opacity:0});a(".dslca-prompt-modal-confirm-hook .dslca-loading").show();e=false}if(e)dslc_js_confirm_close();jQuery(".dslca-prompt-modal").data("id","")})});"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_module_copy(a(this).closest(".dslc-module-front"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-module-hook",function(c){c.preventDefault();if(!b())return false;var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_module_title,content:DSLCString.str_del_module_descr,confirm:function(){var a=jQuery(d).closest(".dslc-module-front");dslc_delete_module(a)}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-edit-hook, .dslc-module-front > div:not(.dslca-module-manage)",function(b){if(dslcDebug)console.log("dslca-module-edit-hook");b.preventDefault();var c=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var d=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||c>0||d>0){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument)[0]!=jQuery(this).closest(".dslc-module-front")[0]){LiveComposer.Builder.UI.shakePanelConfirmButton()}return false}var e=a(this).closest(".dslc-module-front"),f=e.data("dslc-module-id");a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");e.addClass("dslca-module-being-edited");dslc_module_options_show(f);jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("module-editing-in-progress")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){jQuery(".dslca-change-width-module-options",this).toggle();a(this).closest(".dslc-module-front").toggleClass("dslca-change-width-active")}});LiveComposer.Builder.PreviewAreaDocument.on("mouseleave",".dslca-change-width-module-options",function(b){jQuery(this).hide();a(this).closest(".dslc-module-front").removeClass("dslca-change-width-active")});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-module-get-defaults-hook",function(){var b=jQuery(this).closest(".dslc-module-front");var c=dslc_dm_get_defaults(b);var d='<span class="dslca-prompt-modal-title">Module Defaults</span>'+'<span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span>'+"<textarea></textarea><br><br>";a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK');dslc_js_confirm("dev_mode_get_default",d,b)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-refresh-module-hook",function(a){jQuery(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"});jQuery(this).closest(".dslc-module-front").addClass("dslca-module-being-edited");dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-wysiwyg-actions-edit-hook",function(){var a=jQuery(this).parent().siblings(".dslca-editable-content");var b=a.closest(".dslc-module-front");if(b.hasClass("dslc-module-handle-like-accordion")){LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(b.find(".dslc-accordion"));var c=b.find('.dslca-module-option-front[data-id="accordion_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-accordion-item").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(b.hasClass("dslc-module-handle-like-tabs")){LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(b.find(".dslc-tabs"));var c=b.find('.dslca-module-option-front[data-id="tabs_content"]').val();var d=c.split("(dslc_sep)");var e=a.closest(".dslc-tabs-tab-content").index();var f=d[e].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else{var f=b.find('.dslca-module-option-front[data-id="'+a.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}if(typeof tinymce!="undefined"){var g=tinymce.get("dslcawpeditor");if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){g.setContent(f,{format:"html"})}else{jQuery("textarea#dslcawpeditor").val(f)}if(!b.hasClass("dslca-module-being-edited")){b.find(".dslca-module-edit-hook").trigger("click")}jQuery(".dslca-wp-editor").show();a.addClass("dslca-wysiwyg-active");jQuery("#dslcawpeditor_ifr, #dslcawpeditor").css({height:jQuery(".dslca-wp-editor").height()-300})}else{console.info("Live Composer: TinyMCE is undefined.")}});LiveComposer.Builder.PreviewAreaDocument.on("blur",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){dslc_editable_content_gen_code(jQuery(this))}}).on("paste",".dslca-editable-content:not(.inline-editor)",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&jQuery(this).data("type")=="simple"){var a=jQuery(this);setTimeout(function(){if(a.data("type")=="simple"){a.html(a.text())}dslc_editable_content_gen_code(a)},100)}}).on("focus",".dslca-editable-content",function(){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length>0&&!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).trigger("blur")}}).on("keyup",".dslca-editable-content",function(){if(jQuery(this).data("type")=="simple"){jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}})});function dslc_module_delete(a){if(dslcDebug)console.log("dslc_delete_module");a.addClass("dslca-module-being-deleted");if(a.hasClass("dslca-module-being-edited")){dslc_show_section(".dslca-modules")}setTimeout(function(){a.remove();dslc_generate_code();dslc_show_publish_button()},1e3);a.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){a.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(a){if(dslcDebug)console.log("dslc_copy_module");jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");var b=a[0].cloneNode(true);jQuery(b).appendTo(a.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).addClass("dslca-module-being-edited");dslc_module_new_id(b);dslc_generate_code();jQuery(b).css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300);dslc_show_publish_button()}function dslc_module_new_id(a){var b=LiveComposer.Utils.get_unique_id();var c=a.getAttribute("id");a.setAttribute("data-module-id",b);a.setAttribute("id","dslc-module-"+b);var d=a.getElementsByTagName("style")[0];var e=d.textContent;d.setAttribute("id","#css-for-dslc-module-"+b);e=e.split(c).join("dslc-module-"+b);d.textContent=e;LiveComposer.Utils.update_module_property_raw(a,"module_instance_id",b)}function dslc_module_width_set(a,b){if(dslcDebug)console.log("dslc_module_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c);a[0].setAttribute("data-dslc-module-size",b);LiveComposer.Utils.update_module_property_raw(a[0],"dslc_m_size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();dslc_generate_code();dslc_show_publish_button()}function dslc_module_options_show(a){if(dslcDebug)console.log("dslc_module_options_show");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=jQuery(".dslca-module-options-front textarea",b),d=jQuery(".dslca-header").data("default-section"),e=jQuery(jQuery("#pseudo-panel").html());jQuery("#wpwrap").append(e);var f={};f["action"]="dslc-ajax-display-module-options";f["dslc"]="active";f["dslc_module_id"]=a;f["dslc_post_id"]=jQuery(".dslca-container").data("data-post-id");f.dslc_url_vars=LiveComposer.Utils.get_page_params();c.each(function(){var a=jQuery(this),b=a.data("id"),c=a.val();f[b]=c});jQuery(".dslca-wp-editor-actions").hide();jQuery(".dslca-wp-editor-notification").show();dslc_hide_publish_button();LiveComposer.Builder.UI.initInlineEditors();var g=jQuery(".dslca-module-options-front",b).children().clone();LiveComposer.Builder.moduleBackup=g;LiveComposer.Builder.Flags.panelOpened=true;e.show();e.addClass("show");jQuery.post(DSLCAjax.ajaxurl,f,function(a){e.remove();dslc_show_section(".dslca-module-edit");if(!jQuery("body").hasClass("rtl")){jQuery(".dslca-module-edit-options-inner").html(a.output)}else{jQuery(".dslca-module-edit-options-inner").html(a.output)}jQuery(".dslca-module-edit-options-tabs").html(a.output_tabs);var b=[];jQuery(".dslca-module-edit-options-inner .dslca-module-edit-option").each(function(){var a=jQuery(this).data("section");if(b.indexOf(a)==-1){b.push(a)}});var c=b.length;for(var f=0;f<c;f++){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+b[f]+'"]').show()}if(jQuery('.dslca-module-edit-option[data-section="'+d+'"]').length){jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').show();jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+d+'"]').trigger("click")}else{jQuery(".dslca-header .dslca-options-filter-hook:first").hide();jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")}jQuery(".dslca-module-edit-actions").show();jQuery(".dslca-wp-editor-notification").hide();jQuery(".dslca-wp-editor-actions").show();jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery(".dslca-row-edit-actions").hide();LiveComposer.Builder.UI.loadOptionsDeps()})}function dslc_module_output_default(a,b){if(dslcDebug)console.log("dslc_module_output_default");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:a,dslc_post_id:jQuery(".dslca-container").data("post-id"),dslc_url_vars:LiveComposer.Utils.get_page_params(),dslc_new_module:true},function(a){b(a)})}function dslc_module_output_altered(a){if(dslcDebug)console.log("dslc_module_output_altered");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),c=b.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",b),e=b.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");if(b.hasClass("dslca-preload-preset"))f["dslc_preload_preset"]="enabled";else f["dslc_preload_preset"]="disabled";b.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});f.dslc_url_vars=LiveComposer.Utils.get_page_params();jQuery.post(DSLCAjax.ajaxurl,f,function(c){var d=LiveComposer.Builder.Helpers.insertModule(c.output,b);d.addClass("dslca-module-being-edited");c=null;d=null;LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();var e=new Event("dslc_module_output_altered");LiveComposer.Builder.PreviewAreaWindow.dispatchEvent(e);if(a){a(c)}})}function dslc_module_output_reload(a,b){if(dslcDebug)console.log("dslc_module_output_reload");b=typeof b!=="undefined"?b:false;var c=a.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",a),e=a.data("module-id");var f={};f["action"]="dslc-ajax-add-module";f["dslc"]="active";f["dslc_module_id"]=c;f["dslc_module_instance_id"]=e;f["dslc_post_id"]=jQuery(".dslca-container").data("post-id");f["dslc_preload_preset"]="enabled";a.removeClass("dslca-preload-preset");d.each(function(){var a=jQuery(this);var b=a.data("id");var c=a.val();f[b]=c});a.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>');jQuery.post(DSLCAjax.ajaxurl,f,function(c){a.after(c.output).next().addClass("dslca-module-being-edited");a.remove();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();if(b){b(c)}jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")})}function dslc_delete_module(a){dslc_module_delete(a)}function dslc_copy_module(a){dslc_module_copy(a)}function dslc_display_module_options(a){dslc_module_options_show(a)}function dslc_get_module_output(a,b){dslc_module_output_default(a,b)}function dslc_preview_change(a){dslc_module_output_altered(a)}function dslc_reload_module(a,b){dslc_module_output_reload(a,b)}"use strict";LiveComposer.Builder.Elements.CModuleArea=function(a){var b=this;this.section=jQuery(a).closest(".dslc-modules-section");this.elem=a;this.observer=new mqMutationObserver(a,function(){var c=b.elem.classList;if(a.querySelectorAll(".dslc-module-front").length==0){c.add("dslc-modules-area-empty");c.remove("dslc-modules-area-not-empty")}else{c.remove("dslc-modules-area-empty");c.add("dslc-modules-area-not-empty")}},{childList:true});this.sortable=Sortable.create(a,{group:"modules",animation:350,handle:".dslca-move-module-hook",draggable:".dslc-module-front",ghostClass:"dslca-module-ghost",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress")},onEnd:function(a){a.oldIndex;a.newIndex;a.preventDefault();dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaWindow.document).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress")},onAdd:function(a){var c=a.item;a.from;if(jQuery(c).data("id")=="DSLC_M_A"){dslc_modules_area_add(jQuery(b.section).find(".dslc-modules-section-wrapper .dslc-modules-section-inner"));c.remove()}},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;if(jQuery(".dslc-modules-area-empty").find(".dslc-module-front").length>0){jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty");jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})}}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",true)});jQuery(document).on("LC.sortableOn",function(){b.sortable&&b.sortable.option&&b.sortable.option("disabled",false)})};"use strict";jQuery(document).on("editorFrameLoaded",function(){function a(){var a=jQuery(".dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument);jQuery(a).each(function(a,b){
|
2 |
+
new LiveComposer.Builder.Elements.CModuleArea(b)})}var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};if(!jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).length&&!jQuery("#dslca-tut-page",LiveComposer.Builder.PreviewAreaDocument).length){dslc_row_add(a())}else{a()}LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area");dslc_copy_modules_area(c)}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){var c=jQuery(this).closest(".dslc-modules-area").hasClass("dslc-modules-area-empty");if(!c){var d=jQuery(this);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_area_title,content:DSLCString.str_del_area_descr,confirm:function(){var a=d.closest(".dslc-modules-area");dslc_modules_area_delete(a)}})}else{var e=jQuery(this).closest(".dslc-modules-area");dslc_delete_modules_area(e)}}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-options span",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-change-width-modules-area-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){if(jQuery(".dslca-change-width-modules-area-options:visible",this).length){jQuery(".dslca-change-width-modules-area-options",this).hide()}else{jQuery(".dslca-change-width-modules-area-options",this).show()}}});LiveComposer.Builder.PreviewAreaDocument.on("mouseleave",".dslca-change-width-modules-area-options",function(a){jQuery(this).hide()});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-area-hook",function(a){a.preventDefault();if(!b())return false;dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))})});function dslc_modules_area_add(a){if(dslcDebug)console.log("dslc_add_modules_area");var b='<div class="dslc-modules-area dslc-col dslc-12-col dslc-modules-area-empty " data-size="12">'+'<div class="dslca-modules-area-manage"> <div class="dslca-modules-area-manage-inner">'+'<span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy">'+'</span></span> <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" >'+'<span class="dslca-icon dslc-icon-move"></span></span>'+'<span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >'+'<span class="dslca-icon dslc-icon-columns"></span> <div class="dslca-change-width-modules-area-options">'+'<span>Container Width</span><span data-size="1">1/12</span><span data-size="2">2/12</span>'+'<span data-size="3">3/12</span><span data-size="4">4/12</span> <span data-size="5">5/12</span><span data-size="6">6/12</span>'+'<span data-size="7">7/12</span><span data-size="8">8/12</span> <span data-size="9">9/12</span><span data-size="10">10/12</span>'+'<span data-size="11">11/12</span><span data-size="12">12/12</span> </div> </span>'+'<span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span> </div> </div>'+"</div>";jQuery(b).appendTo(a).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation");var c=jQuery(".dslc-modules-area-empty",LiveComposer.Builder.PreviewAreaDocument);jQuery(c).each(function(a,b){new LiveComposer.Builder.Elements.CModuleArea(b)});dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()}function dslc_modules_area_delete(a){if(dslcDebug)console.log("dslc_delete_modules_area");var b=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),c=false;a.addClass("dslca-modules-area-being-deleted");if(b.find(".dslc-modules-area").length<2){c=true}if(a.find(".dslca-module-being-edited").length){jQuery(".dslca-header .dslca-options-filter-hook",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-module-edit-actions",LiveComposer.Builder.PreviewAreaDocument).hide();jQuery(".dslca-header .dslca-go-to-section-hook",LiveComposer.Builder.PreviewAreaDocument).show();dslc_show_section(".dslca-modules")}setTimeout(function(){if(c){var d=a.closest(".dslc-modules-section-inner");if(2<=a.closest("#dslc-main").find(".dslc-modules-section").length){dslc_row_delete(a.closest(".dslc-modules-section"))}else{a.remove();dslc_modules_area_add(b)}}a.remove();dslc_generate_code();dslc_show_publish_button()},900);a.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){a.remove();dslc_generate_code();dslc_show_publish_button()})}function dslc_modules_area_copy(a){if(dslcDebug)console.log("dslc_copy_modules_area");var b,c=a.closest(".dslc-modules-section").find(".dslc-modules-section-inner");var d=a.clone().appendTo(c);new LiveComposer.Builder.Elements.CModuleArea(d[0]);d.find(".dslca-modules-area-manage").trigger("mouseleave");d.data("size",a.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");dslc_generate_code();a.animate({opacity:1},300)});dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()}function dslc_modules_area_width_set(a,b){if(dslcDebug)console.log("dslc_modules_area_width_set");var c="dslc-"+b+"-col";a.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(c).data("size",b);LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();if(LiveComposer.Builder.Flags.panelOpened){return false}dslc_generate_code();dslc_show_publish_button()}LiveComposer.Builder.moduleareas_init=function(){jQuery("#dslc-main .dslc-modules-area",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CModuleArea(this)}})};function dslc_add_modules_area(a){dslc_modules_area_add(a)}function dslc_delete_modules_area(a){dslc_modules_area_delete(a)}function dslc_copy_modules_area(a){dslc_modules_area_copy(a)}"use strict";function dslc_update_preset(){if(dslcDebug)console.log("dslc_update_preset");var a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),b=a.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),c=a.find(".dslca-module-code").val(),d=a.data("dslc-module-id");if("none"!==b&&""!==b){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:b,dslc_preset_code:c,dslc_module_id:d},function(b){jQuery(".dslc-module-front:not(#"+a.attr("id")+')[data-dslc-module-id="'+a.data("dslc-module-id")+'"][data-dslc-preset="'+a.data("dslc-preset")+'"]',LiveComposer.Builder.PreviewAreaDocument).each(function(){dslc_module_output_reload(jQuery(this))})})}}jQuery(document).ready(function(a){a(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(b){if(b.which==13){var c=a(this).val(),d=c.toLowerCase().replace(/\s/g,"-");a("body").addClass("dslca-new-preset-added");a('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+d+'">'+d+"</option>").val(d).trigger("change");a(this).val("")}});a(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(b){a(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-preload-preset")})});"use strict";LiveComposer.Builder.Elements.CRow=function(a){var b=this;this.elem=a;var c=jQuery(a).find(".dslc-modules-section-wrapper .dslc-modules-section-inner").eq(0)[0];jQuery(a).droppable({drop:function(a,b){var c=jQuery(this).find(".dslc-modules-section-inner");var d=b.draggable.data("id");if(d=="DSLC_M_A"){dslc_modules_area_add(c)}}});this.sortable=jQuery(c).sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:true,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(a,b){var c=b.placeholder.closest(".dslc-modules-section");jQuery(c).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty");c.siblings(".dslc-modules-section").each(function(){if(jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length){jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty")}else{jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}})},remove:function(){jQuery(b.elem).find(".dslc-modules-area").length==0&&dslc_modules_area_add(jQuery(c))},update:function(a,b){dslc_generate_code();dslc_show_publish_button()},start:function(a,b){b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>");if(!jQuery(b.item).hasClass("dslc-12-col")){b.placeholder.width(b.item.width()-10)}else{b.placeholder.width(b.item.width()).css({margin:0})}jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress");jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(a,b){LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(a,b){}});jQuery(a).attr("data-jsinit","initialized");jQuery(document).on("LC.sortableOff",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).on("editorFrameLoaded",function(){var a=jQuery;var b=function(){if(LiveComposer.Builder.Flags.panelOpened){LiveComposer.Builder.UI.shakePanelConfirmButton();return false}return true};jQuery(".dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){new LiveComposer.Builder.Elements.CRow(this)});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-delete-modules-section-hook",function(c){if(!b())return false;c.preventDefault();var d=this;if(!a(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_del_row_title,content:DSLCString.str_del_row_descr,confirm:function(){dslc_row_delete(a(d).closest(".dslc-modules-section"))}})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-import-modules-section-hook",function(a){a.preventDefault();if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_import_row_title,content:DSLCString.str_import_row_descr+"<br><br><textarea></textarea>",confirm:function(){dslc_row_import(jQuery(".dslca-prompt-modal textarea").val());jQuery(".dslca-prompt-modal-confirm-hook span").css({opacity:0});jQuery(".dslca-prompt-modal-confirm-hook .dslca-loading").show()},confirm_title:DSLCString.str_import})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-export-modules-section-hook",function(c){c.preventDefault();if(!b())return false;if(!a(this).hasClass("dslca-action-disabled")){a(".dslca-prompt-modal-cancel-hook").hide();a(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok);LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_export_row_title,content:DSLCString.str_export_row_descr+"<br><br><textarea>"+"["+dslc_generate_section_code(a(this).closest(".dslc-modules-section"))+"]"+"</textarea></span>"})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-copy-modules-section-hook",function(){if(!b())return false;if(!jQuery(this).hasClass("dslca-action-disabled")){dslc_row_copy(jQuery(this).closest(".dslc-modules-section"))}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-add-modules-section-hook",function(c){c.preventDefault();if(!b())return false;var d=a(this);if(!a(this).hasClass("dslca-action-disabled")){d.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin");dslc_row_add(function(){d.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")})}});LiveComposer.Builder.PreviewAreaDocument.on("click",".dslca-edit-modules-section-hook",function(){if(!b())return false;var c=this;var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;var e=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length;if(a("body").hasClass("dslca-composer-hidden")||d>0||e>0)return false;if(!a(this).hasClass("dslca-action-disabled")){dslc_row_edit(a(this).closest(".dslc-modules-section"))}jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("section-editing-in-progress")})});function dslc_row_add(a){if(dslcDebug)console.log("dslc_row_add");a=typeof a!=="undefined"?a:false;var b=jQuery.Deferred();var c=sessionStorage;var d=jQuery();var e=c.getItem("cache-dslc-ajax-add-modules-section");if(null===e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(e){c.setItem("cache-dslc-ajax-add-modules-section",e.output);d=dslc_row_after_add(e.output);if(a){a()}return b})}else{d=dslc_row_after_add(e);if(a){a()}return b}}function dslc_row_after_add(a){var b=jQuery(a);b.appendTo(LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main"));dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button();new LiveComposer.Builder.Elements.CRow(b);new LiveComposer.Builder.Elements.CModuleArea(b.find(".dslc-modules-area").eq(0)[0]);b.find(".dslc-modules-area").addClass("dslc-modules-area-empty dslc-last-col");return b}function dslc_row_delete(a){if(dslcDebug)console.log("dslc_row_delete");if(a.find(".dslca-module-being-edited")){jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_section(".dslca-modules")}a.trigger("mouseleave").remove();dslc_generate_code();dslc_show_publish_button()}function dslc_row_edit(a){if(dslcDebug)console.log("dslc_row_edit");var b,c;jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made");a.addClass("dslca-modules-section-being-edited");jQuery(".dslca-header .dslca-go-to-section-hook").hide();jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show();jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-row-edit-actions").show();jQuery(".dslca-modules-section-edit-field").each(function(){if("type"===jQuery(this).data("id")){if(""===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()||"wrapped"===jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="type"]',LiveComposer.Builder.PreviewAreaDocument).val()){jQuery('select[data-id="type"]').val("wrapper").change()}}if(jQuery(this).data("id")=="border-top"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("top")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-right"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("right")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-bottom"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("bottom")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).data("id")=="border-left"){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf("left")>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox")){if(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val().indexOf(jQuery(this).data("val"))>=0){jQuery(this).prop("checked",true);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}else{jQuery(this).prop("checked",false);jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}}else{jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]',LiveComposer.Builder.PreviewAreaDocument).val());if(jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var a=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":a.val()});jQuery(this).css({"background-color":a.val()})}}});jQuery(".dslca-modules-section-edit-field-upload").each(function(){var a=jQuery(this).closest(".dslca-modules-section-edit-option");if(jQuery(this).val()&&jQuery(this).val()!=="disabled"){jQuery(".dslca-modules-section-edit-field-image-add-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).show()}else{jQuery(".dslca-modules-section-edit-field-image-remove-hook",a).hide();jQuery(".dslca-modules-section-edit-field-image-add-hook",a).show()}});dslc_show_section(".dslca-modules-section-edit");LiveComposer.Builder.Flags.panelOpened=true;dslc_hide_publish_button()}function dslc_row_edit_cancel(a){if(dslcDebug)console.log("dslc_row_cancel_changes");a=typeof a!=="undefined"?a:false;LiveComposer.Builder.Flags.generate_code_after_row_changed=false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).val(jQuery(this).data("def"));jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")});LiveComposer.Builder.Flags.generate_code_after_row_changed=true;dslc_generate_code();dslc_show_publish_button();dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button;jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_edit_confirm(a){if(dslcDebug)console.log("dslc_confirm_row_changes");a=typeof a!=="undefined"?a:false;jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input",LiveComposer.Builder.PreviewAreaDocument).each(function(){jQuery(this).data("def",jQuery(this).val())});dslc_show_section(".dslca-modules");jQuery(".dslca-row-edit-actions").hide();jQuery(".dslca-row-options-filter-hook").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made");dslc_generate_code();dslc_show_publish_button();if(a){a()}LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("section-editing-in-progress")}function dslc_row_copy(a){if(dslcDebug)console.log("dslc_row_copy");var b,c,d;c=a.clone().appendTo(jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument));c[0].removeAttribute("data-jsinit");c.find(".dslc-modules-area").each(function(){var b=jQuery(this).index();jQuery(this).data("size",a.find(".dslc-modules-area:eq( "+b+" )").data("size"));this.removeAttribute("data-jsinit")});new LiveComposer.Builder.Elements.CRow(c);c.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var a=jQuery(this);dslc_module_new_id(a[0]);LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_generate_code();dslc_drag_and_drop();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");a.animate({opacity:1},300);dslc_show_publish_button()});dslc_section_new_id(c[0])}function dslc_section_new_id(a){if(dslcDebug)console.log("dslc_section_new_id");var b=LiveComposer.Utils.get_unique_id();a.setAttribute("data-section-id",b);LiveComposer.Utils.update_section_property_raw(a,"section_instance_id",b)}function dslc_row_import(a){if(dslcDebug)console.log("dslc_row_import");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:a},function(a){dslc_js_confirm_close();jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).append(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();LiveComposer.Builder.rows_init();LiveComposer.Builder.moduleareas_init();dslc_drag_and_drop();dslc_generate_code();dslc_show_publish_button()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(a){dslc_row_delete(a)}function dslc_edit_modules_section(a){dslc_row_edit(a)}function dslc_copy_modules_section(a){dslc_row_copy(a)}function dslc_import_modules_section(a){dslc_row_import(a)}jQuery(document).ready(function(a){a(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)});a(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel();a(".dslca-currently-editing").removeAttr("style");a(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active");LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes(true)})});LiveComposer.Builder.rows_init=function(){jQuery("#dslc-main .dslc-modules-section",LiveComposer.Builder.PreviewAreaDocument).each(function(){if(jQuery(this).data("jsinit")!=="initialized"){new LiveComposer.Builder.Elements.CRow(this)}})};jQuery(document).ready(function(a){var b=function(a){var b=.75;var c=500;var d=100;var e=jQuery(".dslca-section-scroller",a);var f=jQuery(".dslca-section-scroller-inner",a)[0];e.on("wheel",function(a){g(a.originalEvent.deltaY||a.originalEvent.deltaX);return false});function g(a){if(a<0){a=-d}else{a=d}a=a*b;var c=e.find(".dslca-section-scroller-content").width();var g=e.width();if(c<=g)return false;var h=c-g+10;a=parseInt(f.style.left||0)-a;a=a>=0?0:a;a=a<=-h?-h:a;f.style.left=a+"px"}jQuery(".dslca-section-scroller-prev",a).click(function(a){a.preventDefault();g(-c)});jQuery(".dslca-section-scroller-next",a).click(function(a){a.preventDefault();g(c)});jQuery(window).load(function(){jQuery(window).resize(function(){g(0)})})};b(jQuery(".dslca-section.dslca-modules"));b(jQuery(".dslca-section.dslca-templates-load"))});jQuery(document).ready(function(a){LiveComposer.Builder.UI.initPreviewAreaScroller=function(){var a=5;var b=6;LiveComposer.Builder.Flags.windowScroller=false;jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragleave",".lc-scroll-top-area, .lc-scroll-bottom-area",function(a){LiveComposer.Builder.UI.stopScroller()});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter dragover",".lc-scroll-bottom-area",function(c){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragenter",".lc-scroll-top-area",function(c){if(LiveComposer.Builder.Flags.windowScroller!==false)return false;LiveComposer.Utils.publish("LC.sortableOff",{});LiveComposer.Builder.Flags.windowScroller=setInterval(function(){LiveComposer.Builder.PreviewAreaWindow.scrollBy(0,-a)},b)});jQuery(LiveComposer.Builder.PreviewAreaDocument).on("dragend mouseup","body",function(a){LiveComposer.Builder.Flags.windowScroller&&LiveComposer.Builder.UI.stopScroller()})};LiveComposer.Builder.UI.stopScroller=function(){LiveComposer.Utils.publish("LC.sortableOn",{});clearInterval(LiveComposer.Builder.Flags.windowScroller);LiveComposer.Builder.Flags.windowScroller=false};jQuery("#scroller-stopper").on("dragover",function(){LiveComposer.Builder.UI.stopScroller()})});"use strict";LiveComposer.Builder.Elements.CSectionsContainer=function(a){var b=this;this.sortable=jQuery(a).sortable({items:".dslc-modules-section",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"intersect",cursorAt:{bottom:10},axis:"y",scroll:true,scrollSensitivity:140,scrollSpeed:5,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(a,b){dslc_show_publish_button()},start:function(a,b){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress");b.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_row_helper_text+"</span></span>");jQuery(".dslc-content").sortable("refreshPositions")},stop:function(a,b){dslc_generate_code();LiveComposer.Builder.UI.stopScroller();jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress");jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")}});jQuery(document).on("LC.sortableOff",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",true)}});jQuery(document).on("LC.sortableOn",function(){if(undefined!==b.sortable.sortable("instance")){b.sortable.sortable("option","disabled",false)}})};"use strict";jQuery(document).ready(function(a){dslc_module_options_tooltip();dslc_module_options_font();dslc_module_options_icon();dslc_module_options_icon_returnid();dslc_module_options_text_align();dslc_module_options_checkbox();dslc_module_options_box_shadow();dslc_module_options_text_shadow();var b="";b+=".dslca-module-edit-field-colorpicker";b+=", .dslca-modules-section-edit-field-colorpicker";b+=", .dslca-module-edit-option-box-shadow-color";b+=", .dslca-module-edit-option-text-shadow-color";jQuery(document).on("click",b,function(){dslc_module_options_color(this);var a=jQuery(this).closest(".dslca-color-option");var b=jQuery(".dslca-module-edit-options-inner");var c=a.find(".wp-picker-holder");var d=a.offset();var e=d.left+15;var f=window.innerWidth;var g=260;if(f<e+g){e=f-g}c.css("left",e+"px");jQuery(b).on("scroll",function(b){d=a.offset();var e=d.left+15;var f=window.innerWidth;var g=260;if(f<e+g){e=f-g}c.css("left",e+"px")})});jQuery(".dslca-container").on("mouseenter",".dslca-module-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-container").on("mouseenter",".dslca-modules-section-edit-option-slider",function(){dslc_module_options_numeric(this)});jQuery(".dslca-module-edit-form").submit(function(a){a.preventDefault();dslc_module_output_altered()});a(document).on("click",".dslca-module-edit-options-tab-hook",function(b){b.preventDefault();dslc_module_options_tab_filter(a(this))});a(document).on("click",".dslca-options-filter-hook",function(b){b.preventDefault();var c=jQuery(".dslca-options-filter-hook.dslca-active").data("section");var d=jQuery(this).data("section");a(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");a(this).addClass("dslca-active");dslc_module_options_section_filter(d);if(c=="responsive"){jQuery(".dslca-container-loader").show();LiveComposer.Builder.PreviewAreaWindow.dslc_responsive_classes();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()});jQuery("#page-builder-preview-area").resizable("destroy").attr("style","")}if(d=="responsive"){jQuery("#page-builder-preview-area").resizable()}});jQuery(document).on("click",".dslca-module-edit-save",function(a){a.preventDefault();dslc_module_options_confirm_changes(function(){LiveComposer.Builder.UI.initInlineEditors({
|
3 |
+
withRemove:true});LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-cancel",function(a){a.preventDefault();dslc_module_options_cancel_changes(function(){LiveComposer.Builder.UI.initInlineEditors({withRemove:true});LiveComposer.Builder.UI.unloadOptionsDeps();LiveComposer.Builder.Flags.panelOpened=false;jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("module-editing-in-progress")});jQuery(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active");dslc_disable_responsive_view()});jQuery(document).on("click",".dslca-module-edit-field-icon-switch-set",function(){var a=jQuery(".dslca-module-edit-field-icon-switch-sets");var b=jQuery(this);jQuery(".dslca-module-edit-field-icon-switch-set.dslca-active").removeClass("dslca-active");b.addClass("dslca-active");if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-switch-sets").hide()}else{var c=b.find(".dslca-module-edit-field-icon-curr-set").text();jQuery(".dslca-module-edit-field-icon-switch-sets span.dslca-active").removeClass("dslca-active");jQuery('.dslca-module-edit-field-icon-switch-sets span[data-set="'+c+'"]').addClass("dslca-active");var d=b.offset(),e=a.outerHeight(),f=a.outerWidth(),g=d.left-f/2+6,h="50%";if(g<0){h=f/2+g+"px";g=0}jQuery(".dslca-module-edit-field-icon-switch-sets").show().css({top:d.top-e-20,left:g});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-switch-sets:after, .dslca-module-edit-field-icon-switch-sets:before { left: "+h+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-switch-sets span",function(){var b=a(this).data("set");dslcIconsCurrentSet=DSLCIcons[b];a('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data("modal",".dslc-list-icons-"+b);a(this).addClass("dslca-active").siblings(".dslca-active").removeClass("dslca-active");a(".dslca-module-edit-field-icon-switch-set.dslca-active .dslca-module-edit-field-icon-curr-set").text(b);a(".dslca-module-edit-field-icon-switch-set.dslca-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field-icon-next").trigger("click");a(".dslca-module-edit-field-icon-switch-sets").hide()});jQuery(document).on("mouseenter",".dslca-module-edit-option-icon",function(){var b=a(this).find(".dslca-module-edit-field-icon-curr-set").text();dslcIconsCurrentSet=DSLCIcons[b];a('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data("modal",".dslc-list-icons-"+b)})});(function(){var a=jQuery;var b=LiveComposer.Builder;LiveComposer.Builder.Helpers.colorpickers=[];LiveComposer.Builder.UI.initInlineEditors=function(a){a=a||{};if(a.withRemove==true){try{LiveComposer.Builder.PreviewAreaWindow.tinyMCE.remove()}catch(b){console.info("No tinyMCE code found. Error code: 10181116.")}}LiveComposer.Builder.PreviewAreaWindow.tinyMCE.init({selector:".inline-editor.dslca-editable-content",editor_deselector:"mce-content-body",menubar:false,inline:true,plugins:"wordpress wplink lists paste",paste_as_text:true,paste_block_drop:true,style_formats:[{title:"Paragraph",format:"p"},{title:"Header 1",format:"h1"},{title:"Header 2",format:"h2"},{title:"Header 3",format:"h3"},{title:"Header 4",format:"h4"},{title:"Header 5",format:"h5"},{title:"Header 6",format:"h6"}],toolbar:"styleselect | bold italic blockquote | removeformat | bullist numlist "})};LiveComposer.Builder.UI.clearUtils=function(){if(dslcDebug)console.log("LiveComposer.Builder.UI.clearUtils");LiveComposer.Builder.UI.clearColorPickers();if(undefined!==LiveComposer.Builder.moduleBackup){LiveComposer.Builder.moduleBackup.remove()}jQuery(".temp-styles-for-module",LiveComposer.Builder.PreviewAreaDocument).remove();jQuery(".mce-tinymce",LiveComposer.Builder.PreviewAreaDocument).hide()};LiveComposer.Builder.UI.clearColorPickers=function(){if(Array.isArray(b.Helpers.colorpickers)){b.Helpers.colorpickers.forEach(function(a){if(!jQuery(a).hasClass("dslca-modules-section-edit-field")){jQuery(a).remove()}});b.Helpers.colorpickers=[]}jQuery("body").off("click.wpcolorpicker")};LiveComposer.Builder.Helpers.depsHandlers=[];LiveComposer.Builder.UI.loadOptionsDeps=function(){var b=this;a(".dslca-module-edit-option").each(function(){var b=this;var c=true;try{var d=JSON.parse(LiveComposer.Utils.b64_to_utf8(a(this).data("dep")))}catch(e){c=false}if(c){var f=function(){var b=this;var c={};if((b.type=="radio"||b.type=="checkbox")&&d[b.value]==undefined){return false}if(b.type=="checkbox"&&d[b.value]!=undefined){c[b.value]=d[b.value]}else{c=d}Object.keys(c).forEach(function(d){c[d].split(",").forEach(function(c){var e=a(".dslca-module-edit-option-"+c.trim()).closest(".dslca-module-edit-option");var f=true;if(b.type=="radio"||b.type=="checkbox"){f=a(b).is(":checked")}if(b.value==d&&f){e.show()}else{e.hide()}})})};a(document).on("change dslc-init-deps",'.dslca-module-edit-option *[data-id="'+a(this).data("id")+'"]',f);LiveComposer.Builder.Helpers.depsHandlers.push(f)}});a(".dslca-module-edit-option input, .dslca-module-edit-option select").trigger("dslc-init-deps")};LiveComposer.Builder.UI.unloadOptionsDeps=function(){LiveComposer.Builder.Helpers.depsHandlers.forEach(function(b){a(document).unbind("change",b);a(document).unbind("dslc-init-deps",b)});LiveComposer.Builder.Helpers.depsHandlers=[]};LiveComposer.Builder.Helpers.processInlineStyleTag=function(a){if(typeof a!="object")return false;var b="",c="";if(a.context.closest(".dslca-module-edit-option").data("tab")=="tablet_responsive"){b="@media only screen and (max-width: 1024px) and (min-width: 768px) {";c="}"}else if(a.context.closest(".dslca-module-edit-option").data("tab")=="phone_responsive"){b="@media only screen and (max-width: 767px) {";c="}"}a.styleContent=b+a.styleContent+c;var d=b+a.rule+a.elems;d=d.replace(/ /gi,"");if(LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d)==null){var e=document.createElement("style");e.innerHTML=a.styleContent;e.id=d;e.className="temp-styles-for-module";LiveComposer.Builder.PreviewAreaDocument[0].body.appendChild(e)}else{LiveComposer.Builder.PreviewAreaDocument[0].getElementById(d).innerHTML=a.styleContent}};LiveComposer.Builder.UI.shakePanelConfirmButton=function(){jQuery(".dslca-module-edit-save").addClass("lc-shake-effect active");setTimeout(function(){jQuery(".dslca-module-edit-save").removeClass("lc-shake-effect active")},1e3)}})();function dslc_module_options_section_filter(a){if(dslcDebug)console.log("dslc_module_options_section_filter");jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-section="'+a+'"]').show();dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(a){if(dslcDebug)console.log("dslc_module_options_tab_filter");var b=jQuery(".dslca-options-filter-hook.dslca-active").data("section");a=typeof a!=="undefined"?a:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]:first');var c=a.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active");a.addClass("dslca-active");jQuery(".dslca-module-edit-options-tabs").show();jQuery(".dslca-module-edit-options-tab-hook").hide();jQuery('.dslca-module-edit-options-tab-hook[data-section="'+b+'"]').show();if(c){jQuery(".dslca-module-edit-option").hide();jQuery('.dslca-module-edit-option[data-tab="'+c+'"]').show();dslc_module_options_hideshow_tabs();if(jQuery(".dslca-module-edit-options-tab-hook:visible").length<2){jQuery(".dslca-module-edit-options-tabs").hide()}else{jQuery(".dslca-module-edit-options-tabs").show()}dslc_disable_responsive_view();if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-tablet");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet");jQuery("body").addClass("dslc-res-phone");jQuery("html").addClass("dslc-responsive-preview")}if(c==DSLCString.str_res_tablet.toLowerCase()+"_responsive"||c==DSLCString.str_res_phone.toLowerCase()+"_responsive"){jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})}}}function dslc_module_options_hideshow_tabs(){if(dslcDebug)console.log("dslc_module_options_hideshow_tabs");var a=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if(a=="styling"){var b=jQuery(".dslca-module-edit"),c=true,d=true,e=true,f=true,g=true,h=true,i=true,j=true,k=true,l=true,m=true,n=true,o=true,p=true,q=true,r=true,s=true,t=true,u=true,v=true,w=true,x=true,y=true,z=true,A=true,B=true;if(!jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked"))c=false;if(!jQuery('.dslca-module-edit-field[value="filters"]').is(":checked"))d=false;if(!jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked"))e=false;if(!jQuery('.dslca-module-edit-field[value="circles"]').is(":checked"))f=false;if(jQuery('.dslca-module-edit-field[data-id="type"]').val()!="carousel"){e=false;f=false}if(jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()=="disabled"){g=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")){h=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")){i=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")){j=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")){k=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")){l=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")){m=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")){o=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")){n=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")){p=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")){q=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")){r=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")){s=false}if(jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")){t=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")){u=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")){v=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")){w=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")){x=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")){y=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")){z=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")){A=false}if(!jQuery('.dslca-module-edit-field[data-id*="elements"][value="image"]').is(":checked")){B=false}if(c)jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide();if(d)jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide();if(e)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide();if(f)jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide();if(g)jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide();if(h)jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide();if(i)jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide();if(j)jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide();if(k)jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide();if(l)jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"],'+' .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide();if(m)jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide();if(o)jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide();if(n)jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide();if(p)jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide();if(r)jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide();if(q)jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide();if(s)jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide();if(t)jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide();if(u)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide();if(v)jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide();if(w||x)jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide();if(y)jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide();if(z)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide();if(A)jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide();if(B)jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').show();else jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Text_Simple"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_TP_Content"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Html"){var C=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),D=C.find("select").val();if(D=="enabled"){jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"});jQuery(".dslca-module-edit-option[data-tab]").css("visibility","visible");jQuery(".dslca-module-edit-options-tabs").show()}else{jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"});jQuery(".dslca-module-edit-option[data-tab]").css("visibility","hidden");jQuery(".dslca-module-edit-options-tabs").hide();C.css({visibility:"visible"})}}}else{jQuery(".dslca-module-edit-options-tabs").show()}if(jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css("visibility","visible")}if(jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()=="disabled"){jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","hidden")}else{jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible");jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css("visibility","visible")}jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(a){if(dslcDebug)console.log("dslc_module_options_confirm_changes");a=typeof a!=="undefined"?a:false;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).hasClass("dslc-module-DSLC_Sliders")){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited")}else{jQuery("body").addClass("dslca-module-saving-in-progress");dslc_module_output_altered(function(){dslc_update_preset();dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery("body").removeClass("dslca-module-saving-in-progress");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(a){a()}})}dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button()}function dslc_module_options_cancel_changes(a){if(dslcDebug)console.log("dslc_module_options_cancel_changes");a=typeof a!=="undefined"?a:false;var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);jQuery(".dslca-module-options-front",b).html("").append(LiveComposer.Builder.moduleBackup);dslc_module_output_altered(function(){dslc_generate_code();jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-module-being-edited");jQuery(".dslca-module-edit-options-inner").html("");jQuery(".dslca-module-edit-options-tabs").html("");LiveComposer.Builder.UI.clearUtils();if(a){a()}});dslc_show_section(".dslca-modules");jQuery(".dslca-header .dslca-options-filter-hook").hide();jQuery(".dslca-module-edit-actions").hide();jQuery(".dslca-header .dslca-go-to-section-hook").show();dslc_show_publish_button();LiveComposer.Builder.UI.clearUtils()}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()});jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-ttip"),b=a.find(".dslca-module-edit-field-ttip-inner"),c=jQuery(this),d=c.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html();if(a.is(":visible")){jQuery(".dslca-module-edit-field-ttip").hide()}else{b.html(d);var e=c.offset();var f=a.outerHeight();var g=a.outerWidth();var h=e.left-g/2+6;var i="50%";if(h<0){i=g/2+h+"px";h=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:e.top-f-20,left:h});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+i+" }</style>"))}});jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var a=jQuery(".dslca-module-edit-field-icon-ttip");var b=jQuery(this);if(a.is(":visible")){jQuery(".dslca-module-edit-field-icon-ttip").hide()}else{var c=b.offset();var d=a.outerHeight();var e=a.outerWidth();var f=c.left-e/2+6;var g="50%";if(f<0){g=e/2+f+"px";f=0}jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:c.top-d-20,left:f});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+g+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d+1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(a){a.preventDefault();if(!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var b=jQuery(this).closest(".dslca-module-edit-option-font");var c=jQuery(".dslca-module-edit-field-font",b);var d=dslcAllFontsArray.indexOf(c.val());var e=d-1;jQuery(".dslca-module-edit-field-font-suggest",b).text("");if(e<0){e=dslcAllFontsArray.length-1}c.val(dslcAllFontsArray[e]).trigger("change");jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}});jQuery(document).on("keyup",".dslca-module-edit-field-font",function(a){var b,c,d,e=false,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){jQuery(".dslca-module-edit-field-font-prev",c).click()}if(a.which==40){jQuery(".dslca-module-edit-field-font-next",c).click()}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val();var g=[];var h=new RegExp("^"+d,"i");var i=dslcAllFontsArray.length;var j=0;do{if(h.test(dslcAllFontsArray[j])){if(!e){var e=dslcAllFontsArray[j]}}j++}while(j<i);if(!e){f=d;jQuery(".dslca-module-edit-field-font-suggest",c).hide()}else{f=e;jQuery(".dslca-module-edit-field-font-suggest",c).show()}jQuery(".dslca-module-edit-field-font-suggest",c).text(f);if(f.length){b.val(f.substring(0,b.val().length))}}});jQuery(document).on("keypress",".dslca-module-edit-field-font",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-font-suggest",c).text("")}})}function dslc_list_icon(a,b){var c=jQuery(a).closest(".dslca-module-edit-option-icon");var d=jQuery(".dslca-module-edit-field-icon",c);var e=dslcIconsCurrentSet.indexOf(d.val());if(b=="previous"){var f=e-1}else{var f=e+1}jQuery(".dslca-module-edit-field-icon-suggest",c).text("");if(f<0){f=dslcIconsCurrentSet.length-1}d.val(dslcIconsCurrentSet[f]).trigger("change")}function dslc_module_options_icon(){jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(a){var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");if(a.which==38){dslc_list_icon(b,"previous")}if(a.which==40){dslc_list_icon(b,"next")}if(a.which!=13&&a.which!=38&&a.which!=40){d=b.val().toLowerCase();b.val(d);e=jQuery.grep(dslcIconsCurrentSet,function(a,b){return a.indexOf(d)==0});f=e[0];jQuery(".dslca-module-edit-field-icon-suggest",c).text(f)}});jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(a){if(a.which==13){a.preventDefault();var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslca-module-edit-option");jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",c).text()).trigger("change");jQuery(".dslca-module-edit-field-icon-suggest",c).text("")}})}function dslc_module_options_icon_returnid(){jQuery(document).on("click",'.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]',function(a){jQuery(this).closest(".dslca-module-edit-option-icon").find("input").addClass("icon-modal-active")});jQuery(document).on("click",".dslca-modal-icons .icon-item",function(a){var b=jQuery(this).find(".icon-item_name").text();jQuery("input.icon-modal-active").val(b).change();dslc_hide_modal("",jQuery(".dslca-modal:visible"));jQuery("input.icon-modal-active").removeClass("icon-modal-active")})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var a=jQuery(this),b=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),c=a.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");b.removeClass("dslca-active");a.addClass("dslca-active");d.val(c).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var a=jQuery(this);var b=a.siblings('input[type="checkbox"]');if(b.prop("checked")){b.prop("checked",false);a.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")}else{b.prop("checked",true);a.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")}b.change()})}function dslc_module_options_box_shadow(){if(dslcDebug)console.log("dslc_module_options_box_shadow");jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, "+".dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread,"+" .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-box-shadow-hor").val(),d=a.find(".dslca-module-edit-option-box-shadow-ver").val(),e=a.find(".dslca-module-edit-option-box-shadow-blur").val(),f=a.find(".dslca-module-edit-option-box-shadow-spread").val(),g=a.find(".dslca-module-edit-option-box-shadow-color").val(),h=a.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");if(h){h=" inset"}else{h=""}var i=c+"px "+d+"px "+e+"px "+f+"px "+g+h;b.val(i).trigger("change")})}function dslc_module_options_text_shadow(){if(dslcDebug)console.log("dslc_module_options_text_shadow");jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver,"+".dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var a=jQuery(this).closest(".dslca-module-edit-option"),b=a.find(".dslca-module-edit-field"),c=a.find(".dslca-module-edit-option-text-shadow-hor").val(),d=a.find(".dslca-module-edit-option-text-shadow-ver").val(),e=a.find(".dslca-module-edit-option-text-shadow-blur").val(),f=a.find(".dslca-module-edit-option-text-shadow-color").val();var g=c+"px "+d+"px "+e+"px "+f;b.val(g).trigger("change")})}function dslc_module_options_color(a){if(dslcDebug)console.log("dslc_module_options_color");var b,c,d,e,f,g,h;var i=[],j,k;var l="dslcColors-"+document.domain;if(undefined!==localStorage[l]){j=JSON.parse(localStorage[l]);i=j}if(1>i.length){i.push("#78b")}if(2>i.length){i.push("#ab0")}if(3>i.length){i.push("#de3")}i.push("#fff");i.push("#000");i.push("rgba(0,0,0,0)");var m=a;jQuery(m).each(function(){var a=jQuery(this).closest(".dslca-color-option");var j=jQuery(this);h=jQuery(this).val();j.wpColorPicker({mode:"hsl",palettes:i,change:function(a,h){b=j;var i=j.wpColorPicker("color");if(i==null){e=""}else{e=i}b.val(e).trigger("change");b.css("background",e);c=b.data("affect-on-change-el");d=b.data("affect-on-change-rule");if(null!=c){jQuery(c,".dslca-module-being-edited").css(d,e)}f=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);g=b.data("id");jQuery('.dslca-module-option-front[data-id="'+g+'"]',f).val(e);f.addClass("dslca-module-change-made")}});var k=a.find(".wp-picker-holder .iris-picker");k.append('<button type="button" class="dslca-colorpicker-apply">Apply</button>');var m=a.find(".dslca-colorpicker-apply");j.wpColorPicker("open");jQuery(m).on("click",function(){if("#fff"!==e&&"#ffffff"!==e&&"#000"!==e&&"#000000"!==e&&"rgba(0,0,0,0)"!==e){if(undefined===localStorage[l]){var a=[e];localStorage[l]=JSON.stringify(a)}else{var a=JSON.parse(localStorage[l]);if(a.indexOf(e)==-1){a.unshift(e);if(3<a.length){a.pop()}}localStorage[l]=JSON.stringify(a)}}j.wpColorPicker("close")});LiveComposer.Builder.Helpers.colorpickers.push(jQuery(this))})}function dslc_module_options_numeric(a){if(dslcDebug)console.log("dslc_module_options_numeric");var b=a;jQuery(b).each(function(){var a=jQuery(this);if(0===jQuery(".dslca-module-edit-field-slider",a).length){a.append('<div class="dslca-module-edit-field-slider"></div>')}var b=true;if(a.hasClass("dslca-modules-section-edit-option")){b=false}else{b=true}if(b){var c=a.find(".dslca-module-edit-field")}else{var c=a.find(".dslca-modules-section-edit-field")}if(a.hasClass("dslca-modules-section-edit-option")){var c=a.find(".dslca-modules-section-edit-field")}else{var c=a.find(".dslca-module-edit-field")}var d="",e=a.find(".dslca-module-edit-field-slider"),f=parseFloat(c.val()),g=parseFloat(c.data("max")),h=parseFloat(c.data("min")),i=parseFloat(c.data("increment")),j=g,k=h;var l=false;if(undefined!==c.data("onlypositive")&&1===c.data("onlypositive")){l=true}if(f>=g){g=f*2}if(!l&&f<=h){h=f*2}e.slider({min:h,max:g,step:i,value:c.val(),slide:function(a,b){c.val(b.value+d);c.trigger("change")},change:function(b,c){if(c.value>=g||c.value<=h){e.slider("destroy");dslc_module_options_numeric(a)}}});e.show();jQuery(a).on("mouseleave",function(){if(undefined!==e.slider("instance")){jQuery(e).slider("destroy")}e.remove()});if(c[0].classList.contains("slider-initiated"))return;c[0].classList.add("slider-initiated");c.on("keyup",function(a){if(undefined===a){return false}if(a.shiftKey){if(a.keyCode==38){this.value=(parseInt(this.value)||0)+9;c.trigger("change")}if(a.keyCode==40){this.value=parseInt(this.value)+0-9;c.trigger("change")}}if(a.keyCode==8||a.keyCode==45){c.trigger("change")}if(a.keyCode>=48&&a.keyCode<=57||a.keyCode>=96&&a.keyCode<=105){
|
4 |
+
c.trigger("change")}var b=a.which?a.which:a.keyCode;if((b>=48&&b<=57||b>=96&&b<=105)&&a.keyCode!=8&&a.keyCode!=39&&a.keyCode!=37&&a.keyCode!=46){return false}});c.on("change",function(a){if(l&&this.value<0){this.value=0}var c;if(b){c=jQuery(a.target.closest(".dslca-module-edit-option-slider"))}else{c=jQuery(a.target.closest(".dslca-modules-section-edit-option-slider"))}var d=c.find(".dslca-module-edit-field-slider");if(undefined!==d.slider("instance")){d.slider("value",this.value)}if(b){var e=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);e.addClass("dslca-module-change-made")}});return false})}function dslc_disable_responsive_view(){jQuery("html").removeClass("dslc-responsive-preview");jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet")}function dslc_filter_module_options(a){dslc_module_options_section_filter(a)}function dslc_show_module_options_tab(a){dslc_module_options_tab_filter(a)}function dslc_confirm_changes(a){dslc_module_options_confirm_changes(a)}function dslc_cancel_changes(a){dslc_module_options_cancel_changes(a)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}"use strict";function dslc_template_load(a){if(dslcDebug)console.log("dslc_load_template");var b,c;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:a},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_import(){if(dslcDebug)console.log("dslc_import_template");var a,b;jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0});jQuery(".dslca-modal-templates-import .dslca-loading").show();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(a){jQuery("#dslc-main",LiveComposer.Builder.PreviewAreaDocument).html(a.output);jQuery(".dslca-modal-templates-import .dslca-loading").hide();jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1});dslc_hide_modal("",".dslca-modal-templates-import");LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video();dslc_drag_and_drop();dslc_show_publish_button();dslc_generate_code()})}function dslc_template_save(){if(dslcDebug)console.log("dslc_save_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(a){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(a){if(dslcDebug)console.log("dslc_delete_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:a},function(b){jQuery('.dslca-template[data-id="'+a+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(a){dslc_template_load(a)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(a){dslc_template_delete(a)}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-template",function(a){a.preventDefault();dslc_template_load(jQuery(this).data("id"))});a(".dslca-template-import-form").submit(function(a){a.preventDefault();dslc_template_import()});a(".dslca-template-save-form").submit(function(a){a.preventDefault();dslc_template_save()});a(document).on("click",".dslca-delete-template-hook",function(b){b.stopPropagation();dslc_template_delete(a(this).data("id"))})});"use strict";window.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};jQuery(document).on("click",".dslca-show-js-error-hook",function(a){a.preventDefault();var b=document.getElementById("dslca-js-errors-report");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:'<a href="https://livecomposerplugin.com/support/support-request/" target="_blank"><span class="dslca-icon dslc-icon-comment"></span> Open Support Ticket</a>',content:'<span class="dslca-error-report">'+b.value+"</span>"})}});jQuery(document).ready(function(a){jQuery("#page-builder-frame")[0].contentWindow.onerror=function(a,b,c,d){dslca_generate_error_report(a,b,c,d)};dslca_update_report_log();jQuery("body").addClass("dslca-enabled dslca-drag-not-in-progress");jQuery(".dslca-invisible-overlay").hide();jQuery(".dslca-section").eq(0).show();window.previewAreaTinyMCELoaded=function(){var a=this;LiveComposer.Builder.PreviewAreaWindow=this;LiveComposer.Builder.PreviewAreaDocument=jQuery(this.document);jQuery("#wpadminbar",LiveComposer.Builder.PreviewAreaDocument).remove();LiveComposer.Builder.UI.initInlineEditors();dslc_fix_contenteditable();var b=LiveComposer.Builder.PreviewAreaDocument.find("#dslc-main").eq(0)[0];new LiveComposer.Builder.Elements.CSectionsContainer(b);jQuery(document).trigger("editorFrameLoaded");dslc_drag_and_drop();dslc_generate_code();dslc_keypress_events();LiveComposer.Builder.UI.initPreviewAreaScroller()}});jQuery(document).on("click",".dslca-currently-editing",function(){var a=false,b=false,c;if(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#5890e5"}else if(jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).length){a=jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);c="#eabba9"}if(a){b=a.offset().top-100;if(b<0){b=0}var d=[];jQuery("html, body",LiveComposer.Builder.PreviewAreaDocument).animate({scrollTop:b},300,function(){a.removeAttr("style")})}});jQuery(window).keypress(function(a){if((a.metaKey||a.ctrlKey)&&a.keyCode==83){dslc_ajax_save_composer();a.preventDefault();return false}});jQuery(document).on("click",".dslca-hide-composer-hook",function(a){a.preventDefault();dslc_hide_composer()});jQuery(document).on("click",".dslca-show-composer-hook",function(a){a.preventDefault();dslc_show_composer()});jQuery(document).on("click",".dslca-go-to-modules-hook",function(a){a.preventDefault();dslc_show_section(".dslca-modules")});jQuery(document).on("click",".dslca-go-to-section-hook",function(a){a.preventDefault();if(jQuery(this).hasClass("dslca-active")){return}var b=jQuery(this).data("section");dslc_show_section(b);if(jQuery(this).hasClass("dslca-go-to-section-modules")||jQuery(this).hasClass("dslca-go-to-section-templates")){jQuery(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}});jQuery(document).on("click",".dslca-close-composer-hook",function(a){a.preventDefault();var b=jQuery(this).attr("href");if(!jQuery("body").hasClass("dslca-saving-in-progress")){LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_exit_title,content:DSLCString.str_exit_descr,confirm:function(){window.location=b}})}});jQuery(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()});jQuery(document).on("click",".dslca-section-title",function(a){a.stopPropagation();if(jQuery(".dslca-section-title-filter",this).length){dslc_generate_filters();jQuery(".dslca-section-title-filter-options").slideToggle(300)}});jQuery(document).on("click",".dslca-section-title-filter-options a",function(a){a.preventDefault();a.stopPropagation();var b=jQuery(this).data("origin");var c=jQuery(this).closest(".dslca-section");if(c.hasClass("dslca-templates-load")){jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}else{jQuery(".dslca-section-title-filter-curr",c).text(jQuery(this).text())}jQuery(".dslca-section-scroller-inner").css({left:0});dslc_filter_origin(b,c);jQuery(".dslca-section-title-filter-options").slideToggle(300)});function dslc_hide_composer(){if(dslcDebug)console.log("dslc_hide_composer");jQuery(".dslca-hide-composer-hook").hide();jQuery(".dslca-show-composer-hook").show();jQuery("body").addClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:jQuery(".dslca-container").outerHeight()*-1});jQuery(".dslca-header").hide()}function dslc_show_composer(){if(dslcDebug)console.log("dslc_show_composer");jQuery(".dslca-show-composer-hook").hide();jQuery(".dslca-hide-composer-hook").show();jQuery("body").removeClass("dslca-composer-hidden");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-composer-hidden");jQuery(".dslca-container").css({bottom:0});jQuery(".dslca-header").show()}function dslc_show_publish_button(){if(dslcDebug)console.log("dslc_show_publish_button");jQuery(".dslca-save-composer").show().addClass("dslca-init-animation");jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_hide_publish_button(){if(dslcDebug)console.log("dslc_hide_publish_button");jQuery(".dslca-save-composer").hide();jQuery(".dslca-save-draft-composer").hide()}function dslc_show_section(a){if(dslcDebug)console.log("dslc_show_section");var b=jQuery(a).data("title"),c=jQuery(a).data("bg");jQuery(".dslca-container").css({bottom:-500});jQuery(".dslca-section").hide();jQuery(a).show();if(a==".dslca-module-edit"){jQuery(".dslca-currently-editing").show().find("strong").text(jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).attr("title")+" element")}else if(a==".dslca-modules-section-edit"){jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row")}else{jQuery(".dslca-currently-editing").hide().find("strong").text("")}dslc_module_options_tab_filter();jQuery(".dslca-container").css({bottom:0});jQuery(a).find("input.dslca-module-edit-field-colorpicker").each(function(a){jQuery(this).css("background",jQuery(this).val())})}function dslc_generate_filters(){if(dslcDebug)console.log("dslc_generate_filters");var a,b=[],c='<a html="#" data-origin="">Show All</a>',d=jQuery(".dslca-section:visible .dslca-origin");d.each(function(){a=jQuery(this);if(jQuery.inArray(a.data("origin"),b)==-1){b.push(a.data("origin"));c+='<a href="#" data-origin="'+a.data("origin")+'">'+a.data("origin")+"</a>"}});jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(c).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(a,b){if(dslcDebug)console.log("dslc_filter_origin");jQuery(".dslca-origin",b).attr("data-display-module","false");jQuery('.dslca-origin[data-origin="'+a+'"]',b).attr("data-display-module","true");if(a==""){jQuery(".dslca-origin",b).attr("data-display-module","true");jQuery(".dslca-origin.dslca-exclude",b).attr("data-display-module","false")}}function dslc_drag_and_drop(){if(dslcDebug)console.log("dslc_drag_and_drop");var a,b,c,d;var e=jQuery(".dslca-modules .dslca-section-scroller-content");if(e.length==0){e=[document.createElement("div")]}var f=Sortable.create(e[0],{sort:false,group:{name:"modules",pull:"clone",put:false},animation:150,handle:".dslca-module",draggable:".dslca-module",chosenClass:"dslca-module-dragging",scroll:true,scrollSensitivity:150,scrollSpeed:15,setData:function(a,b){a.setData(LiveComposer.Utils.msieversion()!==false?"Text":"text/html",b.innerHTML)},onStart:function(a){a.oldIndex;jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress");jQuery("#dslc-header").addClass("dslca-header-low-z-index")},onEnd:function(a){a.oldIndex;a.newIndex;var e=a.item;a.preventDefault();if(jQuery(e).closest(".dslca-section-scroller-content").length>0)return false;jQuery(".dslca-options-hovered",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-options-hovered");b=jQuery(e.parentNode);c=e.dataset.id;dslc_generate_code();if(c=="DSLC_M_A"||jQuery("body").hasClass("dslca-module-drop-in-progress")||b.closest("#dslc-header").length||b.closest("#dslc-footer").length){}else{jQuery("body").addClass("dslca-module-drop-in-progress");dslc_module_output_default(c,function(a){d=a.output;var c=LiveComposer.Builder.Helpers.insertModule(d,jQuery(".dslca-module",b));setTimeout(function(){LiveComposer.Builder.PreviewAreaWindow.dslc_masonry();jQuery("body").removeClass("dslca-module-drop-in-progress")},700);jQuery(".dslca-no-content-primary",b).css({opacity:1});jQuery(".dslca-modules-area-manage",b).css({visibility:"visible"});LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();LiveComposer.Builder.PreviewAreaWindow.dslc_tabs();LiveComposer.Builder.PreviewAreaWindow.dslc_init_accordion();dslc_generate_code();dslc_show_publish_button();LiveComposer.Builder.UI.initInlineEditors()});jQuery(e).find(".dslca-icon").attr("class","").attr("class","dslca-icon dslc-icon-refresh dslc-icon-spin");jQuery(".dslca-no-content-primary",b).css({opacity:0});jQuery(".dslca-modules-area-manage",b).css({visibility:"hidden"})}LiveComposer.Builder.UI.stopScroller();jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("body",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress");jQuery("#dslc-header").removeClass("dslca-header-low-z-index")},onAdd:function(a){var b=a.item;a.from},onUpdate:function(a){var b=a.item;dslc_show_publish_button()},onSort:function(a){a.preventDefault()},onRemove:function(a){},onFilter:function(a){var b=a.item},onMove:function(a){a.dragged;a.draggedRect;a.related;a.relatedRect;jQuery(a.to).addClass("dslca-options-hovered")}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_fix_contenteditable(){LiveComposer.Builder.PreviewAreaDocument.on("dragstart",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",false)});LiveComposer.Builder.PreviewAreaDocument.on("dragend mousedown",".dslca-module, .dslc-module-front, .dslc-modules-area, .dslc-modules-section",function(a){jQuery("[contenteditable]",LiveComposer.Builder.PreviewAreaDocument).attr("contenteditable",true)})}function dslc_toogle_control(a){if(a===undefined)a=false;if(!a)return;var b=jQuery(".dslca-module-edit-option-"+a);var c=b.find(".dslca-module-edit-field");var d=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var e=d[0].id;var f="";if("tablet_responsive"===b.data("tab")){f="body.dslc-res-tablet "}else if("phone_responsive"===b.data("tab")){f="body.dslc-res-phone "}var g=c.data("affect-on-change-el");if(g===undefined)return;var h=g.split(",");g="";for(var i=0;i<h.length;i++){if(i>0){g+=", "}g+=f+"#"+e+" "+h[i]}var j=c.data("affect-on-change-rule").replace(/ /g,"");var k=j.split(",");var l;var m=c.data("ext");b.toggleClass("dslca-option-off");if(b.hasClass("dslca-option-off")){l=dslc_get_control_value(a);c.data("val-bckp",l);for(var i=0;i<k.length;i++){jQuery(g,LiveComposer.Builder.PreviewAreaDocument).css(k[i],"");disable_css_rule(g,k[i],e)}c.val("").trigger("change")}else{c.val(c.data("val-bckp")).trigger("change");l=dslc_get_control_value(a);l=dslc_combine_value_and_extension(l,m||"");for(var i=0;i<k.length;i++){var n=g+"{"+k[i]+": "+l+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:b,rule:k[i],elems:g.replace(new RegExp("#"+e,"gi"),"").trim(),styleContent:n})}}}jQuery(document).ready(function(a){jQuery(document).on("click",".dslca-module-edit-option .dslc-control-toggle",function(a){a.preventDefault();var b=jQuery(a.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(b)});jQuery(document).on("mousedown",".dslca-module-edit-option",function(b){var c=a(".dslc-control-toggle");if(!c.is(b.target)&&c.has(b.target).length===0){if(jQuery(b.target).closest(".dslca-module-edit-option").hasClass("dslca-option-off")){var d=a(b.target).closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("id");dslc_toogle_control(d)}}})});function disable_css_rule(a,b,c){var d;var e="css-for-"+c;var f=document.getElementById("page-builder-frame").contentWindow.document.getElementById(e);a=a.replace(/\s\s+/g," ");if(f){f=f.sheet;if(f["rules"]){d="rules"}else if(f["cssRules"]){d="cssRules"}else{}for(var g=0;g<f[d].length;g++){if(f[d][g].selectorText==a){if(f[d][g].style[b]){f[d][g].style[b]="";break}}}}}function dslc_combine_value_and_extension(a,b){if(""===a||null===a){return a}if(a.indexOf(b)==-1){a=a+b}return a}function dslc_get_control_value(a){var b=jQuery(".dslca-module-edit-option-"+a);var c="text";var d=b.find(".dslca-module-edit-field");var e;e=d.val();return e}function dslc_keypress_events(){jQuery([document,LiveComposer.Builder.PreviewAreaWindow.document]).unbind("keydown").bind("keydown",function(a){dslc_modal_keypress_events(a);dslc_disable_backspace_navigation(a);dslc_notice_on_refresh(a);dslc_save_page(a)})}function dslc_disable_backspace_navigation(a){var b=false;if(a.keyCode===8){var c=a.srcElement||a.target;if(c.tagName.toUpperCase()==="INPUT"&&(c.type.toUpperCase()==="TEXT"||c.type.toUpperCase()==="PASSWORD"||c.type.toUpperCase()==="NUMBER"||c.type.toUpperCase()==="FILE")||c.tagName.toUpperCase()==="TEXTAREA"||jQuery(c).hasClass("dslca-editable-content")||jQuery(c).hasClass("dslc-tabs-nav-hook-title")||jQuery(c).hasClass("dslc-accordion-title")){b=c.readOnly||c.disabled}else{b=true}}if(b){a.preventDefault()}}function dslc_notice_on_refresh(a){if(a.which==116||a.which===82&&a.metaKey){if(jQuery(".dslca-save-composer-hook").offsetParent!==null||jQuery(".dslca-module-edit-save").offsetParent!==null){a.preventDefault();LiveComposer.Builder.UI.CModalWindow({title:DSLCString.str_refresh_title,content:DSLCString.str_refresh_descr,confirm:function(){window.location.reload()}})}}}function dslc_save_page(a){if(a.which==83&&(a.metaKey||a.ctrlKey)){if(jQuery(".dslca-save-composer-hook").css("display")=="block"){dslc_save_composer();a.preventDefault();return false}}}function dslca_generate_error_report(a,b,c,d){var e="JavaScript error detected in a third-party plugin";if(b.match("wp-content/plugins/live-composer-page-builder/js")!=null){e="Live Composer returned JS error"}var f="";f+='<br /><strong style="color:#E55F5F;">'+e+"</strong><br />";f+=a+'<br /> File "'+b+'", line '+c+", char "+d+"<br />";if("undefined"!==typeof Storage){localStorage.setItem("js_errors_report",f)}}function dslca_update_report_log(){var a=document.getElementById("dslca-js-errors-report");var b=localStorage.getItem("js_errors_report");if(null!==b){a.value=b;localStorage.removeItem("js_errors_report");document.querySelector(".dslca-show-js-error-hook").setAttribute("style","visibility:visible")}}"use strict";LiveComposer.Utils={addslashes:function(a){a=a.replace(/\\/g,"\\\\");a=a.replace(/\'/g,"\\'");a=a.replace(/\"/g,'\\"');a=a.replace(/\0/g,"\\0");return a},basename:function(a){return a.split(/[\\\/]/).pop()},msieversion:function(){var a=window.navigator.userAgent;var b=a.indexOf("MSIE ");if(b>0||!!navigator.userAgent.match(/Trident.*rv\:11\./)){return parseInt(a.substring(b+5,a.indexOf(".",b)))}else{return false}},checkParams:function(a){if(!Array.isArray(a)){throw"Param is not array"}var b={integer:function(a){return isNaN(parseInt(a))},"float":function(a){return isNaN(parseFloat(a))},string:function(a){return a!=null&&a!=undefined&&typeof a=="string"},array:function(a){return Array.isArray(a)},object:function(a){return typeof a=="object"}};a.map(function(a){if(!b[a[1]](a[0])){throw"Param "+a[0]+" is not "+a[1]}})},utf8_to_b64:function(a){return window.btoa(unescape(encodeURIComponent(a)))},b64_to_utf8:function(a){return decodeURIComponent(escape(window.atob(a)))},get_page_params:function(){return decodeURIComponent(window.location.search.slice(1)).split("&").reduce(function a(b,c){c=c.split("=");b[c[0]]=c[1];return b},{})},get_unique_id:function(){return Math.random().toString(32).slice(2)},update_module_property_raw:function(a,b,c){var d=a.getElementsByClassName("dslca-module-code")[0];var e=a.querySelector('.dslca-module-option-front[data-id="'+b+'"]');var f=d.value;f=JSON.parse(f);f[b]=c;f=JSON.stringify(f);d.value=f;d.innerHTML=f;e.value=c;e.innerHTML=c},update_section_property_raw:function(a,b,c){var d=a.getElementsByClassName("dslca-section-code")[0];var e=a.querySelector('.dslca-modules-section-settings input[data-id="'+b+'"]');var f=d.value;f=JSON.parse(f);f[b]=c;f=JSON.stringify(f);d.value=f;d.innerHTML=f;e.setAttribute("value",c);e.setAttribute("data-def",c)},publish:function(a,b){b=b?b:{};this.checkParams([[a,"string"],[b,"object"]]);jQuery(document).trigger({type:a,message:{details:b}});LiveComposer.Builder.PreviewAreaWindow.dslca_publish_event(a,b)}};"use strict";function dslc_dm_get_defaults(a){if(dslcDebug)console.log("dslc_dm_get_defaults");var b=a.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:b},function(a){jQuery(".dslca-prompt-modal textarea").val(a.output)})}function dslc_editable_content_gen_code(a){if(dslcDebug)console.log("dslc_editable_content_gen_code");if(undefined===a){return false}var b,c,d;b=a.closest(".dslc-module-front");c=a.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");d=a.data("id");jQuery('.dslca-module-option-front[data-id="'+d+'"]',b).val(c)}function dslc_filter_textarea(a){if(dslcDebug)console.log("dslc_filter_textarea");if(undefined===a){return false}var b;b=a.trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");return b}window.onbeforeunload=function(){return};jQuery(document).ready(function(a){jQuery(document).on("change",".dslca-modules-section-edit-field",function(){var b,c,d,e,f,g,h,i,j,k,l;b=a(this);c=b.data("id");f=b.val();g=f;h=f+b.data("ext");i=b.data("css-rule");d=a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument);k=d;j=a('.dslca-modules-section-settings input[data-id="'+c+'"]',d);d.addClass("dslca-modules-section-change-made");if(b.hasClass("dslca-modules-section-edit-field-upload")){if(f&&f.length){f=a('.dslca-modules-section-settings input[data-id="dslca-img-url"]',d).val()}}if(i=="background-image"){f='url("'+f+'")';LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}if(c=="bg_image_attachment"){d.removeClass("dslc-init-parallax")}if(c=="border-top"||c=="border-right"||c=="border-bottom"||c=="border-left"){var m=a('.dslca-modules-section-settings input[data-id="border_style"]').val();j=a('.dslca-modules-section-settings input[data-id="border"]',d);g="";var n=b.closest(".dslca-modules-section-edit-option-checkbox-wrapper");n.find(".dslca-modules-section-edit-field-checkbox").each(function(){if(a(this).is(":checked")){if(a(this).data("id")=="border-top"){g+="top "}else if(a(this).data("id")=="border-right"){g+="right "}else if(a(this).data("id")=="border-bottom"){g+="bottom "}else if(a(this).data("id")=="border-left"){g+="left "}}});if(b.is(":checked")){if(b.data("id")=="border-top"){d.css({"border-top-style":m})}else if(b.data("id")=="border-right"){d.css({"border-right-style":m})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":m})}else if(b.data("id")=="border-left"){d.css({"border-left-style":m})}}else{if(b.data("id")=="border-top"){d.css({"border-top-style":"hidden"})}else if(b.data("id")=="border-right"){d.css({"border-right-style":"hidden"})}else if(b.data("id")=="border-bottom"){d.css({"border-bottom-style":"hidden"})}else if(b.data("id")=="border-left"){d.css({"border-left-style":"hidden"})}}}else if(b.hasClass("dslca-modules-section-edit-field-checkbox")){var o=a(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox");var p="";o.each(function(){if(a(this).prop("checked")){p+=a(this).data("val")+" "}});var g=p;if(b.data("id")=="show_on"){if(p.indexOf("desktop")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-desktop")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-desktop")}if(p.indexOf("tablet")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-tablet")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-tablet")}if(p.indexOf("phone")!==-1){a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslc-hide-on-phone")}else{a(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslc-hide-on-phone")}}}else if(c=="bg_image_attachment"&&f=="parallax"||c=="type"){if(c=="bg_image_attachment"){d.addClass("dslc-init-parallax");LiveComposer.Builder.PreviewAreaWindow.dslc_parallax()}else if(c=="type"){if(f=="full"){d.addClass("dslc-full")}else{d.removeClass("dslc-full")}LiveComposer.Builder.PreviewAreaWindow.dslc_masonry()}}else if(c=="columns_spacing"){if(f=="nospacing"){d.addClass("dslc-no-columns-spacing")}else{d.removeClass("dslc-no-columns-spacing")}}else if(c=="custom_class"){}else if(c=="custom_id"){}else if(c=="bg_video"){jQuery(".dslc-bg-video video",d).remove();if(f&&f.length){var q=f;q=q.replace(".webm","");q=q.replace(".mp4","");jQuery(".dslc-bg-video-inner",d).html('<video><source type="video/mp4" src="'+q+'.mp4" /><source type="video/webm" src="'+q+'.webm" /></video>');LiveComposer.Builder.PreviewAreaWindow.dslc_bg_video()}}else if(c=="bg_image_thumb"){if(g=="enabled"){if(jQuery("#dslca-post-data-thumb").length){var r="url('"+jQuery("#dslca-post-data-thumb").val()+"')";k.css(i,r)}}else if(g=="disabled"){k.css(i,"none")}}else{if(b.data("css-element")){k=jQuery(b.data("css-element"),d)}i=i.replace(/ /g,"").split(",");var s;if(null!=b.data("ext")){s=h}else{s=f}for(var t=0;t<i.length;t++){k.css(i[t],s)}}j.val(g);if(!LiveComposer.Builder.Flags.generate_code_after_row_changed)return false});jQuery(document).on("blur",".dslc-editable-area",function(b){var c=a(this).closest(".dslc-module-front");var d=a(this).data("dslc-option-id");var e=a(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+d+'"]',c).val(e);dslc_module_output_altered()});jQuery(document).on("change",".dslca-module-edit-field",function(){if(dslcDebug)console.log("on change event for .dslca-module-edit-field");var b="",c="",d=jQuery(this),e=d.data("id"),f=d.closest(".dslca-module-edit-option"),g=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument),h=g.data("dslc-module-id"),i=jQuery(".dslca-module-options-front textarea",g);g.addClass("dslca-module-change-made");if(f.hasClass("dslca-module-edit-option-select")||f.hasClass("dslca-module-edit-option-checkbox")){dslc_module_options_hideshow_tabs()}if(jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")=="active"){if(f.find(".dslca-module-edit-option-checkbox-wrapper").length){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(a(this).prop("checked")){b=b+jQuery(this).val()+" "}})}else if(d.hasClass("dslca-module-edit-option-radio")){var b=jQuery(".dslca-module-edit-field:checked",d).val()}else{var b=d.val();if(e=="orientation"&&b=="horizontal"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("40").trigger("change")}else if(e=="orientation"&&b=="vertical"){var k=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field");k.val("100").trigger("change")}}b=dslc_filter_textarea(b);jQuery('.dslca-module-options-front textarea[data-id="'+e+'"]',g).val(b);jQuery(".dslca-container-loader").show();dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).addClass("dslca-module-change-made");if(e=="css_load_preset"&&!jQuery("body").hasClass("dslca-new-preset-added")){dslc_module_options_show(h);jQuery(".dslca-container-loader").hide()}else{jQuery(".dslca-container-loader").hide()}jQuery("body").removeClass("dslca-new-preset-added");LiveComposer.Utils.publish("LC.moduleChange",{moduleId:h,optionID:e,optionVal:d.val()})})}else{if(d.hasClass("dslca-module-edit-field-font")){var l=d.val();l=l+":400,100,200,300,500,600,700,800,900";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;var q=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);if(d.val().length&&dslcGoogleFontsArray.indexOf(d.val())!==-1){document.getElementById("page-builder-frame").contentWindow.WebFont.load({google:{families:[l]},active:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var c=m.split(",");var e="#"+q[0].id+" "+c.join(", #"+q[0].id+" ")+" {"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:e})},inactive:function(a,b){if(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}})}else{setTimeout(function(){if(jQuery(".dslca-font-loading.dslca-module-edit-field-font-next").length){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right")}else{jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}var a=m.split(",");var b="#"+q[0].id+" "+a.join(", #"+q[0].id+" ")+" {"+n+": "+o+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:n,elems:m,styleContent:b})},100)}}else if(d.hasClass("dslca-module-edit-field-checkbox")){var j=jQuery('input[type="checkbox"]',f);j.each(function(){if(jQuery(this).prop("checked")){b=b+"solid ";c=c+a(this).val()+" "}else{b=b+"none "}})}if(!d.hasClass("dslca-module-edit-field-font")&&d.data("affect-on-change-el")!=null&&d.data("affect-on-change-rule")!=null){var r=d.data("ext")||"";var m=d.data("affect-on-change-el");var n=d.data("affect-on-change-rule");var o=d.val();var p=o;if(d.hasClass("dslca-module-edit-field-checkbox")){o=b;p=c}if(d.hasClass("dslca-module-edit-field-image")){o='url("'+o+'")'}if(null!==o&&o.length<1&&(n=="background-color"||n=="background")){o="transparent"}n.split(",").forEach(function(a){a=a.replace(/\s+/g,"");var b=jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument);var c=m.split(",");var e="#"+b[0].id+" "+c.join(", #"+b[0].id+" ")+" {"+a+": "+o+r+"}";LiveComposer.Builder.Helpers.processInlineStyleTag({context:d,rule:a,elems:m,styleContent:e})})}var s="";if(e.indexOf("css_")!==-1){s=p}else{s=d.val()}jQuery('.dslca-module-option-front[data-id="'+e+'"]',g).val(s);LiveComposer.Utils.publish("LC.moduleChange",{moduleId:g[0].id,optionID:e,optionVal:p||d.val()})}})});jQuery(document).ready(function(a){var b;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){
|
5 |
+
var a=jQuery(this);if(a.hasClass("dslca-module-edit-field-image-add-hook")){var c=a.siblings(".dslca-module-edit-field-image");var d=a.siblings(".dslca-module-edit-field-image-remove-hook")}else{var c=a.siblings(".dslca-modules-section-edit-field-upload");var d=a.siblings(".dslca-modules-section-edit-field-image-remove-hook")}var e=false;b=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:e});b.on("select",function(){var e=b.state().get("selection").first().toJSON();c.val(e.id);jQuery(".dslca-modules-section-being-edited",LiveComposer.Builder.PreviewAreaDocument).find('.dslca-modules-section-settings input[data-id="dslca-img-url"]').val(e.url);c.trigger("change");a.hide();d.show()});b.open()});jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var a=jQuery(this);if(a.hasClass("dslca-module-edit-field-image-remove-hook")){var b=a.siblings(".dslca-module-edit-field-image");var c=a.siblings(".dslca-module-edit-field-image-add-hook")}else{var b=a.siblings(".dslca-modules-section-edit-field-upload");var c=a.siblings(".dslca-modules-section-edit-field-image-add-hook")}b.val("").trigger("change");a.hide();c.show()});jQuery(document).on("click",".dslca-wp-editor-save-hook",function(){var a=jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).closest(".dslc-module-front");if(typeof tinymce!="undefined"){if(jQuery("#wp-dslcawpeditor-wrap").hasClass("tmce-active")){var b=tinymce.get("dslcawpeditor");var c=b.getContent()}else{var c=jQuery("#dslcawpeditor").val()}jQuery(".dslca-wp-editor").hide();jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).html(c);if(a.hasClass("dslc-module-handle-like-accordion")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-accordion-plain-content").val(c);var d=a.find(".dslc-accordion");LiveComposer.Builder.PreviewAreaWindow.dslc_accordion_generate_code(d)}else if(a.hasClass("dslc-module-handle-like-tabs")){jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).siblings(".dslca-tab-plain-content").val(c);var e=a.find(".dslc-tabs");LiveComposer.Builder.PreviewAreaWindow.dslc_tabs_generate_code(e)}dslc_editable_content_gen_code(jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument));jQuery(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")}else{console.info("Live Composer: TinyMCE is undefined.")}});jQuery(document).on("click",".dslca-wp-editor-cancel-hook",function(){a(".dslca-wp-editor").hide();a(".dslca-wysiwyg-active",LiveComposer.Builder.PreviewAreaDocument).removeClass("dslca-wysiwyg-active")})});
|
js/builder/builder.module.functions.js
CHANGED
@@ -668,7 +668,6 @@ function dslc_module_output_altered( callback ) {
|
|
668 |
|
669 |
// TODO: Add new postponed action to run after all done
|
670 |
|
671 |
-
dslc_generate_code(); // Do not delete. It refresh classes on "option preview refresh -> true"
|
672 |
// dslc_show_publish_button();
|
673 |
LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();
|
674 |
|
668 |
|
669 |
// TODO: Add new postponed action to run after all done
|
670 |
|
|
|
671 |
// dslc_show_publish_button();
|
672 |
LiveComposer.Builder.PreviewAreaWindow.dslc_carousel();
|
673 |
|
js/builder/builder.row.functions.js
CHANGED
@@ -550,7 +550,6 @@ function dslc_row_copy( row ) {
|
|
550 |
|
551 |
new LiveComposer.Builder.Elements.CRow(dslcModulesSectionCloned);
|
552 |
|
553 |
-
|
554 |
/**
|
555 |
* Re-render modules inside of the new ROW
|
556 |
*/
|
@@ -596,6 +595,29 @@ function dslc_row_copy( row ) {
|
|
596 |
|
597 |
dslc_show_publish_button();
|
598 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
599 |
}
|
600 |
|
601 |
|
550 |
|
551 |
new LiveComposer.Builder.Elements.CRow(dslcModulesSectionCloned);
|
552 |
|
|
|
553 |
/**
|
554 |
* Re-render modules inside of the new ROW
|
555 |
*/
|
595 |
|
596 |
dslc_show_publish_button();
|
597 |
});
|
598 |
+
|
599 |
+
// Generate new ID for the new section.
|
600 |
+
dslc_section_new_id( dslcModulesSectionCloned[0] );
|
601 |
+
}
|
602 |
+
|
603 |
+
/**
|
604 |
+
* Generate new ID for the section provided
|
605 |
+
*
|
606 |
+
*
|
607 |
+
* @param DOM section that needs ID updated (new ID).
|
608 |
+
* @return void
|
609 |
+
*/
|
610 |
+
function dslc_section_new_id( section ) {
|
611 |
+
|
612 |
+
if ( dslcDebug ) console.log( 'dslc_section_new_id' );
|
613 |
+
|
614 |
+
var dslc_section_id = LiveComposer.Utils.get_unique_id(); // Generate new section ID.
|
615 |
+
|
616 |
+
// Update section ID in data attribute
|
617 |
+
section.setAttribute( 'data-section-id', dslc_section_id );
|
618 |
+
|
619 |
+
// Update section ID in raw base64 code (dslc_code) of the section
|
620 |
+
LiveComposer.Utils.update_section_property_raw( section, 'section_instance_id', dslc_section_id );
|
621 |
}
|
622 |
|
623 |
|
js/builder/builder.settings.panel.functions.js
CHANGED
@@ -640,7 +640,8 @@ function dslc_module_options_hideshow_tabs() {
|
|
640 |
dslcElDetails = true,
|
641 |
dslcElQuote = true,
|
642 |
dslcElAuthorName = true,
|
643 |
-
dslcElAuthorPos = true
|
|
|
644 |
|
645 |
|
646 |
// Is heading selected?
|
@@ -770,6 +771,11 @@ function dslc_module_options_hideshow_tabs() {
|
|
770 |
dslcElAuthorPos = false;
|
771 |
}
|
772 |
|
|
|
|
|
|
|
|
|
|
|
773 |
|
774 |
// Show/Hide Heading
|
775 |
if ( dslcHeading )
|
@@ -917,6 +923,12 @@ function dslc_module_options_hideshow_tabs() {
|
|
917 |
else
|
918 |
jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide();
|
919 |
|
|
|
|
|
|
|
|
|
|
|
|
|
920 |
}
|
921 |
|
922 |
/**
|
@@ -935,9 +947,11 @@ function dslc_module_options_hideshow_tabs() {
|
|
935 |
if ( dslcCustomCSSVal == 'enabled' ) {
|
936 |
|
937 |
jQuery('.dslca-module-edit-option[data-section="styling"]').css({ visibility : 'visible' });
|
|
|
938 |
jQuery('.dslca-module-edit-options-tabs').show();
|
939 |
} else {
|
940 |
jQuery('.dslca-module-edit-option[data-section="styling"]').css({ visibility : 'hidden' });
|
|
|
941 |
jQuery('.dslca-module-edit-options-tabs').hide();
|
942 |
dslcCustomCSS.css({ visibility : 'visible' });
|
943 |
}
|
@@ -950,14 +964,18 @@ function dslc_module_options_hideshow_tabs() {
|
|
950 |
|
951 |
if ( jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val() == 'disabled' ) {
|
952 |
jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css( 'visibility', 'hidden' );
|
|
|
953 |
} else {
|
954 |
jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css( 'visibility', 'visible' );
|
|
|
955 |
}
|
956 |
|
957 |
if ( jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val() == 'disabled' ) {
|
958 |
jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css( 'visibility', 'hidden' );
|
|
|
959 |
} else {
|
960 |
jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css( 'visibility', 'visible' );
|
|
|
961 |
}
|
962 |
|
963 |
jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css( 'visibility', 'visible' );
|
640 |
dslcElDetails = true,
|
641 |
dslcElQuote = true,
|
642 |
dslcElAuthorName = true,
|
643 |
+
dslcElAuthorPos = true,
|
644 |
+
dslcElImage = true;
|
645 |
|
646 |
|
647 |
// Is heading selected?
|
771 |
dslcElAuthorPos = false;
|
772 |
}
|
773 |
|
774 |
+
// Is image enabled?
|
775 |
+
if ( ! jQuery('.dslca-module-edit-field[data-id*="elements"][value="image"]').is(':checked') ) {
|
776 |
+
dslcElImage = false;
|
777 |
+
}
|
778 |
+
|
779 |
|
780 |
// Show/Hide Heading
|
781 |
if ( dslcHeading )
|
923 |
else
|
924 |
jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide();
|
925 |
|
926 |
+
// Show/Hide Image
|
927 |
+
if ( dslcElImage )
|
928 |
+
jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').show();
|
929 |
+
else
|
930 |
+
jQuery('.dslca-module-edit-options-tab-hook[data-id="image_styling"]').hide();
|
931 |
+
|
932 |
}
|
933 |
|
934 |
/**
|
947 |
if ( dslcCustomCSSVal == 'enabled' ) {
|
948 |
|
949 |
jQuery('.dslca-module-edit-option[data-section="styling"]').css({ visibility : 'visible' });
|
950 |
+
jQuery('.dslca-module-edit-option[data-tab]').css( 'visibility', 'visible' );
|
951 |
jQuery('.dslca-module-edit-options-tabs').show();
|
952 |
} else {
|
953 |
jQuery('.dslca-module-edit-option[data-section="styling"]').css({ visibility : 'hidden' });
|
954 |
+
jQuery('.dslca-module-edit-option[data-tab]').css( 'visibility', 'hidden' );
|
955 |
jQuery('.dslca-module-edit-options-tabs').hide();
|
956 |
dslcCustomCSS.css({ visibility : 'visible' });
|
957 |
}
|
964 |
|
965 |
if ( jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val() == 'disabled' ) {
|
966 |
jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css( 'visibility', 'hidden' );
|
967 |
+
jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css( 'visibility', 'hidden' );
|
968 |
} else {
|
969 |
jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css( 'visibility', 'visible' );
|
970 |
+
jQuery('.dslca-module-edit-option[data-tab="tablet_responsive"]').css( 'visibility', 'visible' );
|
971 |
}
|
972 |
|
973 |
if ( jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val() == 'disabled' ) {
|
974 |
jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css( 'visibility', 'hidden' );
|
975 |
+
jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css( 'visibility', 'hidden' );
|
976 |
} else {
|
977 |
jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css( 'visibility', 'visible' );
|
978 |
+
jQuery('.dslca-module-edit-option[data-tab="phone_responsive"]').css( 'visibility', 'visible' );
|
979 |
}
|
980 |
|
981 |
jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css( 'visibility', 'visible' );
|
js/builder/builder.util.class.js
CHANGED
@@ -159,6 +159,40 @@ LiveComposer.Utils = {
|
|
159 |
*/
|
160 |
},
|
161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
/**
|
163 |
* Provide custom events publish.
|
164 |
* Also echoes all the custom events in the preview iframe as well.
|
159 |
*/
|
160 |
},
|
161 |
|
162 |
+
/**
|
163 |
+
* Update section option in raw JSON code (dslc_code) of the section
|
164 |
+
*
|
165 |
+
* @param {DOM element} section `section Element
|
166 |
+
* @param {string} property_name Name of the option we change
|
167 |
+
* @param {string} property_value Value of the option we change
|
168 |
+
* @return {void}
|
169 |
+
*/
|
170 |
+
update_section_property_raw: function (section, property_name, property_value ) {
|
171 |
+
|
172 |
+
// Hidden textarea element with raw base64 code of the roq
|
173 |
+
// <textarea class="dslca-section-code"></textarea>
|
174 |
+
var section_code_container = section.getElementsByClassName('dslca-section-code')[0];
|
175 |
+
|
176 |
+
// Hidden input element with value of this particular setting
|
177 |
+
// <input data-id="property_name">property_value</textarea>
|
178 |
+
var property_container = section.querySelector( '.dslca-modules-section-settings input[data-id="' + property_name + '"]' );
|
179 |
+
|
180 |
+
// Get module raw code
|
181 |
+
var section_code = section_code_container.value;
|
182 |
+
|
183 |
+
section_code = JSON.parse( section_code );
|
184 |
+
section_code[property_name] = property_value;
|
185 |
+
section_code = JSON.stringify( section_code );
|
186 |
+
|
187 |
+
// Update raw code
|
188 |
+
section_code_container.value = section_code;
|
189 |
+
section_code_container.innerHTML = section_code; // See comment block below
|
190 |
+
|
191 |
+
// Change the property in hidden textarea as well
|
192 |
+
property_container.setAttribute( 'value', property_value );
|
193 |
+
property_container.setAttribute( 'data-def', property_value );
|
194 |
+
},
|
195 |
+
|
196 |
/**
|
197 |
* Provide custom events publish.
|
198 |
* Also echoes all the custom events in the preview iframe as well.
|
js/builder/builder.util.functions.js
CHANGED
@@ -70,6 +70,26 @@ function dslc_editable_content_gen_code( dslcField ) {
|
|
70 |
jQuery('.dslca-module-option-front[data-id="' + dslcFieldID + '"]', dslcModule).val( dslcContent );
|
71 |
}
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
// Disable the prompt ( are you sure ) on refresh
|
74 |
window.onbeforeunload = function () { return; };
|
75 |
|
@@ -402,6 +422,8 @@ jQuery(document).ready(function($) {
|
|
402 |
* Change old value with new value
|
403 |
*/
|
404 |
|
|
|
|
|
405 |
jQuery( '.dslca-module-options-front textarea[data-id="' + dslcOptionID + '"]', dslcModule ).val(dslcOptionValue);
|
406 |
|
407 |
jQuery('.dslca-container-loader').show();
|
70 |
jQuery('.dslca-module-option-front[data-id="' + dslcFieldID + '"]', dslcModule).val( dslcContent );
|
71 |
}
|
72 |
|
73 |
+
/**
|
74 |
+
* Filter Textarea
|
75 |
+
*/
|
76 |
+
function dslc_filter_textarea( dslcOptionValue ) {
|
77 |
+
|
78 |
+
if ( dslcDebug ) console.log( 'dslc_filter_textarea' );
|
79 |
+
|
80 |
+
// In some rare cases we have the next error:
|
81 |
+
// TypeError: undefined is not an object (evaluating 'dslcField.html().trim()...')
|
82 |
+
if ( undefined === dslcOptionValue ) {
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
|
86 |
+
var dslcContent;
|
87 |
+
|
88 |
+
dslcContent = dslcOptionValue.trim().replace(/<textarea/g, '<lctextarea').replace(/<\/textarea/g, '</lctextarea');
|
89 |
+
|
90 |
+
return dslcContent;
|
91 |
+
}
|
92 |
+
|
93 |
// Disable the prompt ( are you sure ) on refresh
|
94 |
window.onbeforeunload = function () { return; };
|
95 |
|
422 |
* Change old value with new value
|
423 |
*/
|
424 |
|
425 |
+
dslcOptionValue = dslc_filter_textarea( dslcOptionValue );
|
426 |
+
|
427 |
jQuery( '.dslca-module-options-front textarea[data-id="' + dslcOptionID + '"]', dslcModule ).val(dslcOptionValue);
|
428 |
|
429 |
jQuery('.dslca-container-loader').show();
|
modules/accordion/module.php
CHANGED
@@ -1245,9 +1245,8 @@ class DSLC_Accordion extends DSLC_Module {
|
|
1245 |
<div class="dslca-editable-content"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>
|
1246 |
<?php
|
1247 |
$accordion_content_output = stripslashes( $accordion_content );
|
1248 |
-
$accordion_content_output =
|
1249 |
-
|
1250 |
-
echo do_shortcode( $accordion_content_output );
|
1251 |
?>
|
1252 |
</div>
|
1253 |
<?php if ( $dslc_is_admin ) : ?>
|
1245 |
<div class="dslca-editable-content"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>
|
1246 |
<?php
|
1247 |
$accordion_content_output = stripslashes( $accordion_content );
|
1248 |
+
$accordion_content_output = do_shortcode( $accordion_content_output );
|
1249 |
+
echo apply_filters( 'dslc_before_render', $accordion_content_output );
|
|
|
1250 |
?>
|
1251 |
</div>
|
1252 |
<?php if ( $dslc_is_admin ) : ?>
|
modules/html/module.php
CHANGED
@@ -3503,7 +3503,7 @@ class DSLC_Html extends DSLC_Module {
|
|
3503 |
$output_content = '<div class="dslc-notification dslc-green">' . __('Save and refresh the page to display the module safely.', 'live-composer-page-builder') . '</div>';
|
3504 |
}
|
3505 |
|
3506 |
-
echo $output_content;
|
3507 |
|
3508 |
?></div><?php
|
3509 |
|
3503 |
$output_content = '<div class="dslc-notification dslc-green">' . __('Save and refresh the page to display the module safely.', 'live-composer-page-builder') . '</div>';
|
3504 |
}
|
3505 |
|
3506 |
+
echo apply_filters( 'dslc_before_render', $output_content );
|
3507 |
|
3508 |
?></div><?php
|
3509 |
|
modules/image/module.php
CHANGED
@@ -853,9 +853,17 @@ class DSLC_Image extends DSLC_Module {
|
|
853 |
<div class="dslc-image-caption">
|
854 |
|
855 |
<?php if ( $dslc_is_admin ) : ?>
|
856 |
-
<div class="dslca-editable-content" data-id="custom_text" data-type="simple" <?php if ( $dslc_is_admin ) echo 'contenteditable';
|
|
|
|
|
|
|
|
|
|
|
857 |
<?php else : ?>
|
858 |
-
<?php
|
|
|
|
|
|
|
859 |
<?php endif; ?>
|
860 |
|
861 |
</div>
|
853 |
<div class="dslc-image-caption">
|
854 |
|
855 |
<?php if ( $dslc_is_admin ) : ?>
|
856 |
+
<div class="dslca-editable-content" data-id="custom_text" data-type="simple" <?php if ( $dslc_is_admin ) echo 'contenteditable'; ?>>
|
857 |
+
<?php
|
858 |
+
$output_content = stripslashes( $options['custom_text'] );
|
859 |
+
echo apply_filters( 'dslc_before_render', $output_content );
|
860 |
+
?>
|
861 |
+
</div>
|
862 |
<?php else : ?>
|
863 |
+
<?php
|
864 |
+
$output_content = stripslashes( $options['custom_text'] );
|
865 |
+
echo apply_filters( 'dslc_before_render', $output_content );
|
866 |
+
?>
|
867 |
<?php endif; ?>
|
868 |
|
869 |
</div>
|
modules/infobox/module.php
CHANGED
@@ -820,7 +820,7 @@ class DSLC_Info_Box extends DSLC_Module {
|
|
820 |
'std' => '0',
|
821 |
'type' => 'slider',
|
822 |
'refresh_on_change' => false,
|
823 |
-
'affect_on_change_el' => '.dslc-info-box-image',
|
824 |
'affect_on_change_rule' => 'margin-right',
|
825 |
'section' => 'styling',
|
826 |
'tab' => __( 'Icon', 'live-composer-page-builder' ),
|
@@ -2981,11 +2981,17 @@ class DSLC_Info_Box extends DSLC_Module {
|
|
2981 |
<div class="dslc-info-box-content">
|
2982 |
<?php if ( $dslc_is_admin ) : ?>
|
2983 |
<div class="dslca-editable-content inline-editor" data-type="simple" data-id="content">
|
2984 |
-
<?php
|
|
|
|
|
|
|
2985 |
</div><!-- .dslca-editable-content -->
|
2986 |
<div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook"><?php _e( 'Open in WP Editor', 'live-composer-page-builder' ); ?></span></div>
|
2987 |
<?php else : ?>
|
2988 |
-
<?php
|
|
|
|
|
|
|
2989 |
<?php endif; ?>
|
2990 |
</div><!-- .dslc-info-box-content -->
|
2991 |
<?php endif; ?>
|
820 |
'std' => '0',
|
821 |
'type' => 'slider',
|
822 |
'refresh_on_change' => false,
|
823 |
+
'affect_on_change_el' => '.dslc-info-box-image, .dslc-info-box-icon-pos-aside .dslc-info-box-image',
|
824 |
'affect_on_change_rule' => 'margin-right',
|
825 |
'section' => 'styling',
|
826 |
'tab' => __( 'Icon', 'live-composer-page-builder' ),
|
2981 |
<div class="dslc-info-box-content">
|
2982 |
<?php if ( $dslc_is_admin ) : ?>
|
2983 |
<div class="dslca-editable-content inline-editor" data-type="simple" data-id="content">
|
2984 |
+
<?php
|
2985 |
+
$output_content = stripslashes( $options['content'] );
|
2986 |
+
echo apply_filters( 'dslc_before_render', $output_content );
|
2987 |
+
?>
|
2988 |
</div><!-- .dslca-editable-content -->
|
2989 |
<div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook"><?php _e( 'Open in WP Editor', 'live-composer-page-builder' ); ?></span></div>
|
2990 |
<?php else : ?>
|
2991 |
+
<?php
|
2992 |
+
$output_content = stripslashes( $options['content'] );
|
2993 |
+
echo apply_filters( 'dslc_before_render', $output_content );
|
2994 |
+
?>
|
2995 |
<?php endif; ?>
|
2996 |
</div><!-- .dslc-info-box-content -->
|
2997 |
<?php endif; ?>
|
modules/shortcode/module.php
ADDED
@@ -0,0 +1,2920 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Module Shortcode
|
4 |
+
*
|
5 |
+
* @package LiveComposer
|
6 |
+
*/
|
7 |
+
|
8 |
+
// Prevent direct access to the file.
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
header( 'HTTP/1.0 403 Forbidden' );
|
11 |
+
exit;
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Module Class
|
16 |
+
*/
|
17 |
+
class DSLC_Shortcode extends DSLC_Module {
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Unique module id
|
21 |
+
*
|
22 |
+
* @var string
|
23 |
+
*/
|
24 |
+
var $module_id;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Module label to show in the page builder
|
28 |
+
*
|
29 |
+
* @var string
|
30 |
+
*/
|
31 |
+
var $module_title;
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Module icon name (FontAwesome)
|
35 |
+
*
|
36 |
+
* @var string
|
37 |
+
*/
|
38 |
+
var $module_icon;
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Section in the modules panel that includes this module
|
42 |
+
* Live Composer Extensions should use 'Extensions'
|
43 |
+
*
|
44 |
+
* @var string
|
45 |
+
*/
|
46 |
+
var $module_category;
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Construct
|
50 |
+
*/
|
51 |
+
function __construct() {
|
52 |
+
|
53 |
+
$this->module_id = 'DSLC_Shortcode';
|
54 |
+
$this->module_title = __( 'Shortcode', 'live-composer-page-builder' );
|
55 |
+
$this->module_icon = 'codepen';
|
56 |
+
$this->module_category = 'General';
|
57 |
+
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Module options.
|
62 |
+
* Function build array with all the module functionality and styling options.
|
63 |
+
* Based on this array Live Composer builds module settings panel.
|
64 |
+
* – Every array inside $dslc_options means one option = one control.
|
65 |
+
* – Every option should have unique (for this module) id.
|
66 |
+
* – Options divides on "Functionality" and "Styling".
|
67 |
+
* – Styling options start with css_XXXXXXX
|
68 |
+
* – Responsive options start with css_res_t_ (Tablet) or css_res_p_ (Phone)
|
69 |
+
* – Options can be hidden.
|
70 |
+
* – Options can have a default value.
|
71 |
+
* – Options can request refresh from server on change or do live refresh via CSS.
|
72 |
+
*
|
73 |
+
* @return array All the module options in array.
|
74 |
+
*/
|
75 |
+
function options() {
|
76 |
+
|
77 |
+
$dslc_options = array(
|
78 |
+
|
79 |
+
array(
|
80 |
+
'label' => __( 'Show On', 'live-composer-page-builder' ),
|
81 |
+
'id' => 'css_show_on',
|
82 |
+
'std' => 'desktop tablet phone',
|
83 |
+
'type' => 'checkbox',
|
84 |
+
'choices' => array(
|
85 |
+
array(
|
86 |
+
'label' => __( 'Desktop', 'live-composer-page-builder' ),
|
87 |
+
'value' => 'desktop',
|
88 |
+
),
|
89 |
+
array(
|
90 |
+
'label' => __( 'Tablet', 'live-composer-page-builder' ),
|
91 |
+
'value' => 'tablet',
|
92 |
+
),
|
93 |
+
array(
|
94 |
+
'label' => __( 'Phone', 'live-composer-page-builder' ),
|
95 |
+
'value' => 'phone',
|
96 |
+
),
|
97 |
+
),
|
98 |
+
),
|
99 |
+
|
100 |
+
array(
|
101 |
+
'label' => __( 'Shortcode', 'live-composer-page-builder' ),
|
102 |
+
'id' => 'content',
|
103 |
+
'std' => '',
|
104 |
+
'type' => 'textarea',
|
105 |
+
'section' => 'functionality',
|
106 |
+
),
|
107 |
+
|
108 |
+
array(
|
109 |
+
'label' => __( 'Error-Proof Mode', 'live-composer-page-builder' ),
|
110 |
+
'id' => 'error_proof_mode',
|
111 |
+
'std' => 'active',
|
112 |
+
'type' => 'checkbox',
|
113 |
+
'choices' => array(
|
114 |
+
array(
|
115 |
+
'label' => __( 'Enabled', 'live-composer-page-builder' ),
|
116 |
+
'value' => 'active',
|
117 |
+
),
|
118 |
+
),
|
119 |
+
'help' => __( 'Some JavaScript code and shortcodes can break the page editing.<br> Use <b>Error-Proof Mode</b> to make it work.', 'live-composer-page-builder' ),
|
120 |
+
'visibility' => 'hidden',
|
121 |
+
),
|
122 |
+
|
123 |
+
/**
|
124 |
+
* Styling Options
|
125 |
+
*/
|
126 |
+
|
127 |
+
array(
|
128 |
+
'label' => __( 'Enable/Disable Custom CSS', 'live-composer-page-builder' ),
|
129 |
+
'id' => 'css_custom',
|
130 |
+
'std' => 'disabled',
|
131 |
+
'type' => 'select',
|
132 |
+
'choices' => array(
|
133 |
+
array(
|
134 |
+
'label' => __( 'Enabled', 'live-composer-page-builder' ),
|
135 |
+
'value' => 'enabled',
|
136 |
+
),
|
137 |
+
array(
|
138 |
+
'label' => __( 'Disabled', 'live-composer-page-builder' ),
|
139 |
+
'value' => 'disabled',
|
140 |
+
),
|
141 |
+
),
|
142 |
+
'section' => 'styling',
|
143 |
+
),
|
144 |
+
array(
|
145 |
+
'label' => __( 'BG Color', 'live-composer-page-builder' ),
|
146 |
+
'id' => 'css_main_bg_color',
|
147 |
+
'std' => '',
|
148 |
+
'type' => 'color',
|
149 |
+
'refresh_on_change' => false,
|
150 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
151 |
+
'affect_on_change_rule' => 'background-color',
|
152 |
+
'section' => 'styling',
|
153 |
+
),
|
154 |
+
array(
|
155 |
+
'label' => __( 'Border Color', 'live-composer-page-builder' ),
|
156 |
+
'id' => 'css_main_border_color',
|
157 |
+
'std' => '',
|
158 |
+
'type' => 'color',
|
159 |
+
'refresh_on_change' => false,
|
160 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
161 |
+
'affect_on_change_rule' => 'border-color',
|
162 |
+
'section' => 'styling',
|
163 |
+
),
|
164 |
+
array(
|
165 |
+
'label' => __( 'Border Width', 'live-composer-page-builder' ),
|
166 |
+
'id' => 'css_main_border_width',
|
167 |
+
'onlypositive' => true, // Value can't be negative.
|
168 |
+
'max' => 10,
|
169 |
+
'std' => '0',
|
170 |
+
'type' => 'slider',
|
171 |
+
'refresh_on_change' => false,
|
172 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
173 |
+
'affect_on_change_rule' => 'border-width',
|
174 |
+
'section' => 'styling',
|
175 |
+
'ext' => 'px',
|
176 |
+
),
|
177 |
+
array(
|
178 |
+
'label' => __( 'Borders', 'live-composer-page-builder' ),
|
179 |
+
'id' => 'css_main_border_trbl',
|
180 |
+
'std' => 'top right bottom left',
|
181 |
+
'type' => 'checkbox',
|
182 |
+
'choices' => array(
|
183 |
+
array(
|
184 |
+
'label' => __( 'Top', 'live-composer-page-builder' ),
|
185 |
+
'value' => 'top',
|
186 |
+
),
|
187 |
+
array(
|
188 |
+
'label' => __( 'Right', 'live-composer-page-builder' ),
|
189 |
+
'value' => 'right',
|
190 |
+
),
|
191 |
+
array(
|
192 |
+
'label' => __( 'Bottom', 'live-composer-page-builder' ),
|
193 |
+
'value' => 'bottom',
|
194 |
+
),
|
195 |
+
array(
|
196 |
+
'label' => __( 'Left', 'live-composer-page-builder' ),
|
197 |
+
'value' => 'left',
|
198 |
+
),
|
199 |
+
),
|
200 |
+
'refresh_on_change' => false,
|
201 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
202 |
+
'affect_on_change_rule' => 'border-style',
|
203 |
+
'section' => 'styling',
|
204 |
+
),
|
205 |
+
array(
|
206 |
+
'label' => __( 'Border Radius - Top', 'live-composer-page-builder' ),
|
207 |
+
'id' => 'css_main_border_radius_top',
|
208 |
+
'onlypositive' => true, // Value can't be negative.
|
209 |
+
'std' => '0',
|
210 |
+
'type' => 'slider',
|
211 |
+
'refresh_on_change' => false,
|
212 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
213 |
+
'affect_on_change_rule' => 'border-top-left-radius,border-top-right-radius',
|
214 |
+
'section' => 'styling',
|
215 |
+
'ext' => 'px',
|
216 |
+
),
|
217 |
+
array(
|
218 |
+
'label' => __( 'Border Radius - Bottom', 'live-composer-page-builder' ),
|
219 |
+
'id' => 'css_main_border_radius_bottom',
|
220 |
+
'onlypositive' => true, // Value can't be negative.
|
221 |
+
'std' => '0',
|
222 |
+
'type' => 'slider',
|
223 |
+
'refresh_on_change' => false,
|
224 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
225 |
+
'affect_on_change_rule' => 'border-bottom-left-radius,border-bottom-right-radius',
|
226 |
+
'section' => 'styling',
|
227 |
+
'ext' => 'px',
|
228 |
+
),
|
229 |
+
array(
|
230 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
231 |
+
'id' => 'css_margin_bottom',
|
232 |
+
'std' => '0',
|
233 |
+
'type' => 'slider',
|
234 |
+
'refresh_on_change' => false,
|
235 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
236 |
+
'affect_on_change_rule' => 'margin-bottom',
|
237 |
+
'section' => 'styling',
|
238 |
+
'ext' => 'px',
|
239 |
+
),
|
240 |
+
array(
|
241 |
+
'label' => __( 'Minimum Height', 'live-composer-page-builder' ),
|
242 |
+
'id' => 'css_min_height',
|
243 |
+
'onlypositive' => true, // Value can't be negative.
|
244 |
+
'std' => '0',
|
245 |
+
'type' => 'slider',
|
246 |
+
'refresh_on_change' => false,
|
247 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
248 |
+
'affect_on_change_rule' => 'min-height',
|
249 |
+
'section' => 'styling',
|
250 |
+
'ext' => 'px',
|
251 |
+
'increment' => 5,
|
252 |
+
),
|
253 |
+
array(
|
254 |
+
'label' => __( 'Padding Vertical', 'live-composer-page-builder' ),
|
255 |
+
'id' => 'css_main_padding_vertical',
|
256 |
+
'onlypositive' => true, // Value can't be negative.
|
257 |
+
'max' => 600,
|
258 |
+
'std' => '0',
|
259 |
+
'type' => 'slider',
|
260 |
+
'refresh_on_change' => false,
|
261 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
262 |
+
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
263 |
+
'section' => 'styling',
|
264 |
+
'ext' => 'px',
|
265 |
+
),
|
266 |
+
array(
|
267 |
+
'label' => __( 'Padding Horizontal', 'live-composer-page-builder' ),
|
268 |
+
'id' => 'css_main_padding_horizontal',
|
269 |
+
'onlypositive' => true, // Value can't be negative.
|
270 |
+
'std' => '0',
|
271 |
+
'type' => 'slider',
|
272 |
+
'refresh_on_change' => false,
|
273 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
274 |
+
'affect_on_change_rule' => 'padding-left,padding-right',
|
275 |
+
'section' => 'styling',
|
276 |
+
'ext' => 'px',
|
277 |
+
),
|
278 |
+
array(
|
279 |
+
'label' => __( 'Box Shadow', 'live-composer-page-builder' ),
|
280 |
+
'id' => 'css_main_box_shadow',
|
281 |
+
'std' => '',
|
282 |
+
'type' => 'box_shadow',
|
283 |
+
'refresh_on_change' => false,
|
284 |
+
'affect_on_change_el' => '.dslc-module-shortcode',
|
285 |
+
'affect_on_change_rule' => 'box-shadow',
|
286 |
+
'section' => 'styling',
|
287 |
+
),
|
288 |
+
|
289 |
+
/**
|
290 |
+
* Content
|
291 |
+
*/
|
292 |
+
|
293 |
+
array(
|
294 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
295 |
+
'id' => 'css_main_color',
|
296 |
+
'std' => '',
|
297 |
+
'type' => 'color',
|
298 |
+
'refresh_on_change' => false,
|
299 |
+
'affect_on_change_el' => '.dslc-module-shortcode,.dslc-module-shortcode p',
|
300 |
+
'affect_on_change_rule' => 'color',
|
301 |
+
'section' => 'styling',
|
302 |
+
'tab' => __( 'Content', 'live-composer-page-builder' ),
|
303 |
+
),
|
304 |
+
array(
|
305 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
306 |
+
'id' => 'css_main_font_size',
|
307 |
+
'onlypositive' => true, // Value can't be negative.
|
308 |
+
'std' => '13',
|
309 |
+
'type' => 'slider',
|
310 |
+
'refresh_on_change' => false,
|
311 |
+
'affect_on_change_el' => '.dslc-module-shortcode,.dslc-module-shortcode p',
|
312 |
+
'affect_on_change_rule' => 'font-size',
|
313 |
+
'section' => 'styling',
|
314 |
+
'tab' => __( 'Content', 'live-composer-page-builder' ),
|
315 |
+
'ext' => 'px',
|
316 |
+
),
|
317 |
+
array(
|
318 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
319 |
+
'id' => 'css_main_font_weight',
|
320 |
+
'std' => '400',
|
321 |
+
'type' => 'select',
|
322 |
+
'choices' => array(
|
323 |
+
array(
|
324 |
+
'label' => '100 - Thin',
|
325 |
+
'value' => '100',
|
326 |
+
),
|
327 |
+
array(
|
328 |
+
'label' => '200 - Extra Light',
|
329 |
+
'value' => '200',
|
330 |
+
),
|
331 |
+
array(
|
332 |
+
'label' => '300 - Light',
|
333 |
+
'value' => '300',
|
334 |
+
),
|
335 |
+
array(
|
336 |
+
'label' => '400 - Normal',
|
337 |
+
'value' => '400',
|
338 |
+
),
|
339 |
+
array(
|
340 |
+
'label' => '500 - Medium',
|
341 |
+
'value' => '500',
|
342 |
+
),
|
343 |
+
array(
|
344 |
+
'label' => '600 - Semi Bold',
|
345 |
+
'value' => '600',
|
346 |
+
),
|
347 |
+
array(
|
348 |
+
'label' => '700 - Bold',
|
349 |
+
'value' => '700',
|
350 |
+
),
|
351 |
+
array(
|
352 |
+
'label' => '800 - Extra Bold',
|
353 |
+
'value' => '800',
|
354 |
+
),
|
355 |
+
array(
|
356 |
+
'label' => '900 - Black',
|
357 |
+
'value' => '900',
|
358 |
+
),
|
359 |
+
),
|
360 |
+
'refresh_on_change' => false,
|
361 |
+
'affect_on_change_el' => '.dslc-module-shortcode,.dslc-module-shortcode p',
|
362 |
+
'affect_on_change_rule' => 'font-weight',
|
363 |
+
'section' => 'styling',
|
364 |
+
'tab' => __( 'Content', 'live-composer-page-builder' ),
|
365 |
+
'ext' => '',
|
366 |
+
),
|
367 |
+
array(
|
368 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
369 |
+
'id' => 'css_main_font_family',
|
370 |
+
'std' => 'Open Sans',
|
371 |
+
'type' => 'font',
|
372 |
+
'refresh_on_change' => false,
|
373 |
+
'affect_on_change_el' => '.dslc-module-shortcode,.dslc-module-shortcode p',
|
374 |
+
'affect_on_change_rule' => 'font-family',
|
375 |
+
'section' => 'styling',
|
376 |
+
'tab' => __( 'Content', 'live-composer-page-builder' ),
|
377 |
+
),
|
378 |
+
array(
|
379 |
+
'label' => __( 'Font Style', 'live-composer-page-builder' ),
|
380 |
+
'id' => 'css_main_font_style',
|
381 |
+
'std' => 'normal',
|
382 |
+
'type' => 'select',
|
383 |
+
'refresh_on_change' => false,
|
384 |
+
'affect_on_change_el' => '.dslc-module-shortcode,.dslc-module-shortcode p',
|
385 |
+
'affect_on_change_rule' => 'font-style',
|
386 |
+
'section' => 'styling',
|
387 |
+
'tab' => __( 'Content', 'live-composer-page-builder' ),
|
388 |
+
'choices' => array(
|
389 |
+
array(
|
390 |
+
'label' => __( 'Normal', 'live-composer-page-builder' ),
|
391 |
+
'value' => 'normal',
|
392 |
+
),
|
393 |
+
array(
|
394 |
+
'label' => __( 'Italic', 'live-composer-page-builder' ),
|
395 |
+
'value' => 'italic',
|
396 |
+
),
|
397 |
+
),
|
398 |
+
),
|
399 |
+
array(
|
400 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
401 |
+
'id' => 'css_main_line_height',
|
402 |
+
'onlypositive' => true, // Value can't be negative.
|
403 |
+
'std' => '22',
|
404 |
+
'type' => 'slider',
|
405 |
+
'refresh_on_change' => false,
|
406 |
+
'affect_on_change_el' => '.dslc-module-shortcode,.dslc-module-shortcode p',
|
407 |
+
'affect_on_change_rule' => 'line-height',
|
408 |
+
'section' => 'styling',
|
409 |
+
'tab' => __( 'Content', 'live-composer-page-builder' ),
|
410 |
+
'ext' => 'px',
|
411 |
+
),
|
412 |
+
array(
|
413 |
+
'label' => __( 'Margin Bottom ( paragraph )', 'live-composer-page-builder' ),
|
414 |
+
'id' => 'css_main_margin_bottom',
|
415 |
+
'std' => '25',
|
416 |
+
'type' => 'slider',
|
417 |
+
'refresh_on_change' => false,
|
418 |
+
'affect_on_change_el' => '.dslc-module-shortcode p',
|
419 |
+
'affect_on_change_rule' => 'margin-bottom',
|
420 |
+
'section' => 'styling',
|
421 |
+
'tab' => __( 'Content', 'live-composer-page-builder' ),
|
422 |
+
'ext' => 'px',
|
423 |
+
),
|
424 |
+
array(
|
425 |
+
'label' => __( 'Text Align', 'live-composer-page-builder' ),
|
426 |
+
'id' => 'css_main_text_align',
|
427 |
+
'std' => 'left',
|
428 |
+
'type' => 'text_align',
|
429 |
+
'refresh_on_change' => false,
|
430 |
+
'affect_on_change_el' => '.dslc-module-shortcode,.dslc-module-shortcode p',
|
431 |
+
'affect_on_change_rule' => 'text-align',
|
432 |
+
'section' => 'styling',
|
433 |
+
'tab' => __( 'Content', 'live-composer-page-builder' ),
|
434 |
+
),
|
435 |
+
array(
|
436 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
437 |
+
'id' => 'css_main_text_shadow',
|
438 |
+
'std' => '',
|
439 |
+
'type' => 'text_shadow',
|
440 |
+
'refresh_on_change' => false,
|
441 |
+
'affect_on_change_el' => '.dslc-module-shortcode p',
|
442 |
+
'affect_on_change_rule' => 'text-shadow',
|
443 |
+
'section' => 'styling',
|
444 |
+
'tab' => __( 'Content', 'live-composer-page-builder' ),
|
445 |
+
),
|
446 |
+
|
447 |
+
/**
|
448 |
+
* Heading 1
|
449 |
+
*/
|
450 |
+
|
451 |
+
array(
|
452 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
453 |
+
'id' => 'css_h1_color',
|
454 |
+
'std' => '',
|
455 |
+
'type' => 'color',
|
456 |
+
'refresh_on_change' => false,
|
457 |
+
'affect_on_change_el' => '.dslc-module-shortcode h1',
|
458 |
+
'affect_on_change_rule' => 'color',
|
459 |
+
'section' => 'styling',
|
460 |
+
'tab' => __( 'H1', 'live-composer-page-builder' ),
|
461 |
+
),
|
462 |
+
array(
|
463 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
464 |
+
'id' => 'css_h1_font_size',
|
465 |
+
'onlypositive' => true, // Value can't be negative.
|
466 |
+
'std' => '25',
|
467 |
+
'type' => 'slider',
|
468 |
+
'refresh_on_change' => false,
|
469 |
+
'affect_on_change_el' => '.dslc-module-shortcode h1',
|
470 |
+
'affect_on_change_rule' => 'font-size',
|
471 |
+
'section' => 'styling',
|
472 |
+
'tab' => __( 'H1', 'live-composer-page-builder' ),
|
473 |
+
'ext' => 'px',
|
474 |
+
),
|
475 |
+
array(
|
476 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
477 |
+
'id' => 'css_h1_font_weight',
|
478 |
+
'std' => '400',
|
479 |
+
'type' => 'select',
|
480 |
+
'choices' => array(
|
481 |
+
array(
|
482 |
+
'label' => '100 - Thin',
|
483 |
+
'value' => '100',
|
484 |
+
),
|
485 |
+
array(
|
486 |
+
'label' => '200 - Extra Light',
|
487 |
+
'value' => '200',
|
488 |
+
),
|
489 |
+
array(
|
490 |
+
'label' => '300 - Light',
|
491 |
+
'value' => '300',
|
492 |
+
),
|
493 |
+
array(
|
494 |
+
'label' => '400 - Normal',
|
495 |
+
'value' => '400',
|
496 |
+
),
|
497 |
+
array(
|
498 |
+
'label' => '500 - Medium',
|
499 |
+
'value' => '500',
|
500 |
+
),
|
501 |
+
array(
|
502 |
+
'label' => '600 - Semi Bold',
|
503 |
+
'value' => '600',
|
504 |
+
),
|
505 |
+
array(
|
506 |
+
'label' => '700 - Bold',
|
507 |
+
'value' => '700',
|
508 |
+
),
|
509 |
+
array(
|
510 |
+
'label' => '800 - Extra Bold',
|
511 |
+
'value' => '800',
|
512 |
+
),
|
513 |
+
array(
|
514 |
+
'label' => '900 - Black',
|
515 |
+
'value' => '900',
|
516 |
+
),
|
517 |
+
),
|
518 |
+
'refresh_on_change' => false,
|
519 |
+
'affect_on_change_el' => '.dslc-module-shortcode h1',
|
520 |
+
'affect_on_change_rule' => 'font-weight',
|
521 |
+
'section' => 'styling',
|
522 |
+
'tab' => __( 'H1', 'live-composer-page-builder' ),
|
523 |
+
'ext' => '',
|
524 |
+
),
|
525 |
+
array(
|
526 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
527 |
+
'id' => 'css_h1_font_family',
|
528 |
+
'std' => 'Open Sans',
|
529 |
+
'type' => 'font',
|
530 |
+
'refresh_on_change' => false,
|
531 |
+
'affect_on_change_el' => '.dslc-module-shortcode h1',
|
532 |
+
'affect_on_change_rule' => 'font-family',
|
533 |
+
'section' => 'styling',
|
534 |
+
'tab' => __( 'H1', 'live-composer-page-builder' ),
|
535 |
+
),
|
536 |
+
array(
|
537 |
+
'label' => __( 'Font Style', 'live-composer-page-builder' ),
|
538 |
+
'id' => 'css_h1_font_style',
|
539 |
+
'std' => 'normal',
|
540 |
+
'type' => 'select',
|
541 |
+
'refresh_on_change' => false,
|
542 |
+
'affect_on_change_el' => '.dslc-module-shortcode h1',
|
543 |
+
'affect_on_change_rule' => 'font-style',
|
544 |
+
'section' => 'styling',
|
545 |
+
'tab' => __( 'H1', 'live-composer-page-builder' ),
|
546 |
+
'choices' => array(
|
547 |
+
array(
|
548 |
+
'label' => __( 'Normal', 'live-composer-page-builder' ),
|
549 |
+
'value' => 'normal',
|
550 |
+
),
|
551 |
+
array(
|
552 |
+
'label' => __( 'Italic', 'live-composer-page-builder' ),
|
553 |
+
'value' => 'italic',
|
554 |
+
),
|
555 |
+
),
|
556 |
+
),
|
557 |
+
array(
|
558 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
559 |
+
'id' => 'css_h1_line_height',
|
560 |
+
'onlypositive' => true, // Value can't be negative.
|
561 |
+
'std' => '35',
|
562 |
+
'type' => 'slider',
|
563 |
+
'refresh_on_change' => false,
|
564 |
+
'affect_on_change_el' => '.dslc-module-shortcode h1',
|
565 |
+
'affect_on_change_rule' => 'line-height',
|
566 |
+
'section' => 'styling',
|
567 |
+
'tab' => __( 'H1', 'live-composer-page-builder' ),
|
568 |
+
'ext' => 'px',
|
569 |
+
),
|
570 |
+
array(
|
571 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
572 |
+
'id' => 'css_h1_margin_bottom',
|
573 |
+
'std' => '15',
|
574 |
+
'type' => 'slider',
|
575 |
+
'refresh_on_change' => false,
|
576 |
+
'affect_on_change_el' => '.dslc-module-shortcode h1',
|
577 |
+
'affect_on_change_rule' => 'margin-bottom',
|
578 |
+
'section' => 'styling',
|
579 |
+
'tab' => __( 'H1', 'live-composer-page-builder' ),
|
580 |
+
'ext' => 'px',
|
581 |
+
),
|
582 |
+
array(
|
583 |
+
'label' => __( 'Text Align', 'live-composer-page-builder' ),
|
584 |
+
'id' => 'css_h1_text_align',
|
585 |
+
'std' => 'left',
|
586 |
+
'type' => 'text_align',
|
587 |
+
'refresh_on_change' => false,
|
588 |
+
'affect_on_change_el' => '.dslc-module-shortcode h1',
|
589 |
+
'affect_on_change_rule' => 'text-align',
|
590 |
+
'section' => 'styling',
|
591 |
+
'tab' => __( 'H1', 'live-composer-page-builder' ),
|
592 |
+
),
|
593 |
+
array(
|
594 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
595 |
+
'id' => 'css_h1_text_shadow',
|
596 |
+
'std' => '',
|
597 |
+
'type' => 'text_shadow',
|
598 |
+
'refresh_on_change' => false,
|
599 |
+
'affect_on_change_el' => '.dslc-module-shortcode h1',
|
600 |
+
'affect_on_change_rule' => 'text-shadow',
|
601 |
+
'section' => 'styling',
|
602 |
+
'tab' => __( 'H1', 'live-composer-page-builder' ),
|
603 |
+
),
|
604 |
+
|
605 |
+
/**
|
606 |
+
* Heading 2
|
607 |
+
*/
|
608 |
+
|
609 |
+
array(
|
610 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
611 |
+
'id' => 'css_h2_color',
|
612 |
+
'std' => '',
|
613 |
+
'type' => 'color',
|
614 |
+
'refresh_on_change' => false,
|
615 |
+
'affect_on_change_el' => '.dslc-module-shortcode h2',
|
616 |
+
'affect_on_change_rule' => 'color',
|
617 |
+
'section' => 'styling',
|
618 |
+
'tab' => __( 'H2', 'live-composer-page-builder' ),
|
619 |
+
),
|
620 |
+
array(
|
621 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
622 |
+
'id' => 'css_h2_font_size',
|
623 |
+
'onlypositive' => true, // Value can't be negative.
|
624 |
+
'std' => '23',
|
625 |
+
'type' => 'slider',
|
626 |
+
'refresh_on_change' => false,
|
627 |
+
'affect_on_change_el' => '.dslc-module-shortcode h2',
|
628 |
+
'affect_on_change_rule' => 'font-size',
|
629 |
+
'section' => 'styling',
|
630 |
+
'tab' => __( 'H2', 'live-composer-page-builder' ),
|
631 |
+
'ext' => 'px',
|
632 |
+
),
|
633 |
+
array(
|
634 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
635 |
+
'id' => 'css_h2_font_weight',
|
636 |
+
'std' => '400',
|
637 |
+
'type' => 'select',
|
638 |
+
'choices' => array(
|
639 |
+
array(
|
640 |
+
'label' => '100 - Thin',
|
641 |
+
'value' => '100',
|
642 |
+
),
|
643 |
+
array(
|
644 |
+
'label' => '200 - Extra Light',
|
645 |
+
'value' => '200',
|
646 |
+
),
|
647 |
+
array(
|
648 |
+
'label' => '300 - Light',
|
649 |
+
'value' => '300',
|
650 |
+
),
|
651 |
+
array(
|
652 |
+
'label' => '400 - Normal',
|
653 |
+
'value' => '400',
|
654 |
+
),
|
655 |
+
array(
|
656 |
+
'label' => '500 - Medium',
|
657 |
+
'value' => '500',
|
658 |
+
),
|
659 |
+
array(
|
660 |
+
'label' => '600 - Semi Bold',
|
661 |
+
'value' => '600',
|
662 |
+
),
|
663 |
+
array(
|
664 |
+
'label' => '700 - Bold',
|
665 |
+
'value' => '700',
|
666 |
+
),
|
667 |
+
array(
|
668 |
+
'label' => '800 - Extra Bold',
|
669 |
+
'value' => '800',
|
670 |
+
),
|
671 |
+
array(
|
672 |
+
'label' => '900 - Black',
|
673 |
+
'value' => '900',
|
674 |
+
),
|
675 |
+
),
|
676 |
+
'refresh_on_change' => false,
|
677 |
+
'affect_on_change_el' => '.dslc-module-shortcode h2',
|
678 |
+
'affect_on_change_rule' => 'font-weight',
|
679 |
+
'section' => 'styling',
|
680 |
+
'tab' => __( 'H2', 'live-composer-page-builder' ),
|
681 |
+
'ext' => '',
|
682 |
+
),
|
683 |
+
array(
|
684 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
685 |
+
'id' => 'css_h2_font_family',
|
686 |
+
'std' => 'Open Sans',
|
687 |
+
'type' => 'font',
|
688 |
+
'refresh_on_change' => false,
|
689 |
+
'affect_on_change_el' => '.dslc-module-shortcode h2',
|
690 |
+
'affect_on_change_rule' => 'font-family',
|
691 |
+
'section' => 'styling',
|
692 |
+
'tab' => __( 'H2', 'live-composer-page-builder' ),
|
693 |
+
),
|
694 |
+
array(
|
695 |
+
'label' => __( 'Font Style', 'live-composer-page-builder' ),
|
696 |
+
'id' => 'css_h2_font_style',
|
697 |
+
'std' => 'normal',
|
698 |
+
'type' => 'select',
|
699 |
+
'refresh_on_change' => false,
|
700 |
+
'affect_on_change_el' => '.dslc-module-shortcode h2',
|
701 |
+
'affect_on_change_rule' => 'font-style',
|
702 |
+
'section' => 'styling',
|
703 |
+
'tab' => __( 'H2', 'live-composer-page-builder' ),
|
704 |
+
'choices' => array(
|
705 |
+
array(
|
706 |
+
'label' => __( 'Normal', 'live-composer-page-builder' ),
|
707 |
+
'value' => 'normal',
|
708 |
+
),
|
709 |
+
array(
|
710 |
+
'label' => __( 'Italic', 'live-composer-page-builder' ),
|
711 |
+
'value' => 'italic',
|
712 |
+
),
|
713 |
+
),
|
714 |
+
),
|
715 |
+
array(
|
716 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
717 |
+
'id' => 'css_h2_line_height',
|
718 |
+
'onlypositive' => true, // Value can't be negative.
|
719 |
+
'std' => '33',
|
720 |
+
'type' => 'slider',
|
721 |
+
'refresh_on_change' => false,
|
722 |
+
'affect_on_change_el' => '.dslc-module-shortcode h2',
|
723 |
+
'affect_on_change_rule' => 'line-height',
|
724 |
+
'section' => 'styling',
|
725 |
+
'tab' => __( 'H2', 'live-composer-page-builder' ),
|
726 |
+
'ext' => 'px',
|
727 |
+
),
|
728 |
+
array(
|
729 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
730 |
+
'id' => 'css_h2_margin_bottom',
|
731 |
+
'std' => '15',
|
732 |
+
'type' => 'slider',
|
733 |
+
'refresh_on_change' => false,
|
734 |
+
'affect_on_change_el' => '.dslc-module-shortcode h2',
|
735 |
+
'affect_on_change_rule' => 'margin-bottom',
|
736 |
+
'section' => 'styling',
|
737 |
+
'tab' => __( 'H2', 'live-composer-page-builder' ),
|
738 |
+
'ext' => 'px',
|
739 |
+
),
|
740 |
+
array(
|
741 |
+
'label' => __( 'Text Align', 'live-composer-page-builder' ),
|
742 |
+
'id' => 'css_h2_text_align',
|
743 |
+
'std' => 'left',
|
744 |
+
'type' => 'text_align',
|
745 |
+
'refresh_on_change' => false,
|
746 |
+
'affect_on_change_el' => '.dslc-module-shortcode h2',
|
747 |
+
'affect_on_change_rule' => 'text-align',
|
748 |
+
'section' => 'styling',
|
749 |
+
'tab' => __( 'H2', 'live-composer-page-builder' ),
|
750 |
+
),
|
751 |
+
array(
|
752 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
753 |
+
'id' => 'css_h2_text_shadow',
|
754 |
+
'std' => '',
|
755 |
+
'type' => 'text_shadow',
|
756 |
+
'refresh_on_change' => false,
|
757 |
+
'affect_on_change_el' => '.dslc-module-shortcode h2',
|
758 |
+
'affect_on_change_rule' => 'text-shadow',
|
759 |
+
'section' => 'styling',
|
760 |
+
'tab' => __( 'H2', 'live-composer-page-builder' ),
|
761 |
+
),
|
762 |
+
|
763 |
+
/**
|
764 |
+
* Heading 3
|
765 |
+
*/
|
766 |
+
|
767 |
+
array(
|
768 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
769 |
+
'id' => 'css_h3_color',
|
770 |
+
'std' => '',
|
771 |
+
'type' => 'color',
|
772 |
+
'refresh_on_change' => false,
|
773 |
+
'affect_on_change_el' => '.dslc-module-shortcode h3',
|
774 |
+
'affect_on_change_rule' => 'color',
|
775 |
+
'section' => 'styling',
|
776 |
+
'tab' => __( 'H3', 'live-composer-page-builder' ),
|
777 |
+
),
|
778 |
+
array(
|
779 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
780 |
+
'id' => 'css_h3_font_size',
|
781 |
+
'onlypositive' => true, // Value can't be negative.
|
782 |
+
'std' => '21',
|
783 |
+
'type' => 'slider',
|
784 |
+
'refresh_on_change' => false,
|
785 |
+
'affect_on_change_el' => '.dslc-module-shortcode h3',
|
786 |
+
'affect_on_change_rule' => 'font-size',
|
787 |
+
'section' => 'styling',
|
788 |
+
'tab' => __( 'H3', 'live-composer-page-builder' ),
|
789 |
+
'ext' => 'px',
|
790 |
+
),
|
791 |
+
array(
|
792 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
793 |
+
'id' => 'css_h3_font_weight',
|
794 |
+
'std' => '400',
|
795 |
+
'type' => 'select',
|
796 |
+
'choices' => array(
|
797 |
+
array(
|
798 |
+
'label' => '100 - Thin',
|
799 |
+
'value' => '100',
|
800 |
+
),
|
801 |
+
array(
|
802 |
+
'label' => '200 - Extra Light',
|
803 |
+
'value' => '200',
|
804 |
+
),
|
805 |
+
array(
|
806 |
+
'label' => '300 - Light',
|
807 |
+
'value' => '300',
|
808 |
+
),
|
809 |
+
array(
|
810 |
+
'label' => '400 - Normal',
|
811 |
+
'value' => '400',
|
812 |
+
),
|
813 |
+
array(
|
814 |
+
'label' => '500 - Medium',
|
815 |
+
'value' => '500',
|
816 |
+
),
|
817 |
+
array(
|
818 |
+
'label' => '600 - Semi Bold',
|
819 |
+
'value' => '600',
|
820 |
+
),
|
821 |
+
array(
|
822 |
+
'label' => '700 - Bold',
|
823 |
+
'value' => '700',
|
824 |
+
),
|
825 |
+
array(
|
826 |
+
'label' => '800 - Extra Bold',
|
827 |
+
'value' => '800',
|
828 |
+
),
|
829 |
+
array(
|
830 |
+
'label' => '900 - Black',
|
831 |
+
'value' => '900',
|
832 |
+
),
|
833 |
+
),
|
834 |
+
'refresh_on_change' => false,
|
835 |
+
'affect_on_change_el' => '.dslc-module-shortcode h3',
|
836 |
+
'affect_on_change_rule' => 'font-weight',
|
837 |
+
'section' => 'styling',
|
838 |
+
'tab' => __( 'H3', 'live-composer-page-builder' ),
|
839 |
+
'ext' => '',
|
840 |
+
),
|
841 |
+
array(
|
842 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
843 |
+
'id' => 'css_h3_font_family',
|
844 |
+
'std' => 'Open Sans',
|
845 |
+
'type' => 'font',
|
846 |
+
'refresh_on_change' => false,
|
847 |
+
'affect_on_change_el' => '.dslc-module-shortcode h3',
|
848 |
+
'affect_on_change_rule' => 'font-family',
|
849 |
+
'section' => 'styling',
|
850 |
+
'tab' => __( 'H3', 'live-composer-page-builder' ),
|
851 |
+
),
|
852 |
+
array(
|
853 |
+
'label' => __( 'Font Style', 'live-composer-page-builder' ),
|
854 |
+
'id' => 'css_h3_font_style',
|
855 |
+
'std' => 'normal',
|
856 |
+
'type' => 'select',
|
857 |
+
'refresh_on_change' => false,
|
858 |
+
'affect_on_change_el' => '.dslc-module-shortcode h3',
|
859 |
+
'affect_on_change_rule' => 'font-style',
|
860 |
+
'section' => 'styling',
|
861 |
+
'tab' => __( 'H3', 'live-composer-page-builder' ),
|
862 |
+
'choices' => array(
|
863 |
+
array(
|
864 |
+
'label' => __( 'Normal', 'live-composer-page-builder' ),
|
865 |
+
'value' => 'normal',
|
866 |
+
),
|
867 |
+
array(
|
868 |
+
'label' => __( 'Italic', 'live-composer-page-builder' ),
|
869 |
+
'value' => 'italic',
|
870 |
+
),
|
871 |
+
),
|
872 |
+
),
|
873 |
+
array(
|
874 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
875 |
+
'id' => 'css_h3_line_height',
|
876 |
+
'onlypositive' => true, // Value can't be negative.
|
877 |
+
'std' => '31',
|
878 |
+
'type' => 'slider',
|
879 |
+
'refresh_on_change' => false,
|
880 |
+
'affect_on_change_el' => '.dslc-module-shortcode h3',
|
881 |
+
'affect_on_change_rule' => 'line-height',
|
882 |
+
'section' => 'styling',
|
883 |
+
'tab' => __( 'H3', 'live-composer-page-builder' ),
|
884 |
+
'ext' => 'px',
|
885 |
+
),
|
886 |
+
array(
|
887 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
888 |
+
'id' => 'css_h3_margin_bottom',
|
889 |
+
'std' => '15',
|
890 |
+
'type' => 'slider',
|
891 |
+
'refresh_on_change' => false,
|
892 |
+
'affect_on_change_el' => '.dslc-module-shortcode h3',
|
893 |
+
'affect_on_change_rule' => 'margin-bottom',
|
894 |
+
'section' => 'styling',
|
895 |
+
'tab' => __( 'H3', 'live-composer-page-builder' ),
|
896 |
+
'ext' => 'px',
|
897 |
+
),
|
898 |
+
array(
|
899 |
+
'label' => __( 'Text Align', 'live-composer-page-builder' ),
|
900 |
+
'id' => 'css_h3_text_align',
|
901 |
+
'std' => 'left',
|
902 |
+
'type' => 'text_align',
|
903 |
+
'refresh_on_change' => false,
|
904 |
+
'affect_on_change_el' => '.dslc-module-shortcode h3',
|
905 |
+
'affect_on_change_rule' => 'text-align',
|
906 |
+
'section' => 'styling',
|
907 |
+
'tab' => __( 'H3', 'live-composer-page-builder' ),
|
908 |
+
),
|
909 |
+
array(
|
910 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
911 |
+
'id' => 'css_h3_text_shadow',
|
912 |
+
'std' => '',
|
913 |
+
'type' => 'text_shadow',
|
914 |
+
'refresh_on_change' => false,
|
915 |
+
'affect_on_change_el' => '.dslc-module-shortcode h3',
|
916 |
+
'affect_on_change_rule' => 'text-shadow',
|
917 |
+
'section' => 'styling',
|
918 |
+
'tab' => __( 'H3', 'live-composer-page-builder' ),
|
919 |
+
),
|
920 |
+
|
921 |
+
/**
|
922 |
+
* Heading 4
|
923 |
+
*/
|
924 |
+
|
925 |
+
array(
|
926 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
927 |
+
'id' => 'css_h4_color',
|
928 |
+
'std' => '',
|
929 |
+
'type' => 'color',
|
930 |
+
'refresh_on_change' => false,
|
931 |
+
'affect_on_change_el' => '.dslc-module-shortcode h4',
|
932 |
+
'affect_on_change_rule' => 'color',
|
933 |
+
'section' => 'styling',
|
934 |
+
'tab' => __( 'H4', 'live-composer-page-builder' ),
|
935 |
+
),
|
936 |
+
array(
|
937 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
938 |
+
'id' => 'css_h4_font_size',
|
939 |
+
'onlypositive' => true, // Value can't be negative.
|
940 |
+
'std' => '19',
|
941 |
+
'type' => 'slider',
|
942 |
+
'refresh_on_change' => false,
|
943 |
+
'affect_on_change_el' => '.dslc-module-shortcode h4',
|
944 |
+
'affect_on_change_rule' => 'font-size',
|
945 |
+
'section' => 'styling',
|
946 |
+
'tab' => __( 'H4', 'live-composer-page-builder' ),
|
947 |
+
'ext' => 'px',
|
948 |
+
),
|
949 |
+
array(
|
950 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
951 |
+
'id' => 'css_h4_font_weight',
|
952 |
+
'std' => '400',
|
953 |
+
'type' => 'select',
|
954 |
+
'choices' => array(
|
955 |
+
array(
|
956 |
+
'label' => '100 - Thin',
|
957 |
+
'value' => '100',
|
958 |
+
),
|
959 |
+
array(
|
960 |
+
'label' => '200 - Extra Light',
|
961 |
+
'value' => '200',
|
962 |
+
),
|
963 |
+
array(
|
964 |
+
'label' => '300 - Light',
|
965 |
+
'value' => '300',
|
966 |
+
),
|
967 |
+
array(
|
968 |
+
'label' => '400 - Normal',
|
969 |
+
'value' => '400',
|
970 |
+
),
|
971 |
+
array(
|
972 |
+
'label' => '500 - Medium',
|
973 |
+
'value' => '500',
|
974 |
+
),
|
975 |
+
array(
|
976 |
+
'label' => '600 - Semi Bold',
|
977 |
+
'value' => '600',
|
978 |
+
),
|
979 |
+
array(
|
980 |
+
'label' => '700 - Bold',
|
981 |
+
'value' => '700',
|
982 |
+
),
|
983 |
+
array(
|
984 |
+
'label' => '800 - Extra Bold',
|
985 |
+
'value' => '800',
|
986 |
+
),
|
987 |
+
array(
|
988 |
+
'label' => '900 - Black',
|
989 |
+
'value' => '900',
|
990 |
+
),
|
991 |
+
),
|
992 |
+
'refresh_on_change' => false,
|
993 |
+
'affect_on_change_el' => '.dslc-module-shortcode h4',
|
994 |
+
'affect_on_change_rule' => 'font-weight',
|
995 |
+
'section' => 'styling',
|
996 |
+
'tab' => __( 'H4', 'live-composer-page-builder' ),
|
997 |
+
'ext' => '',
|
998 |
+
),
|
999 |
+
array(
|
1000 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
1001 |
+
'id' => 'css_h4_font_family',
|
1002 |
+
'std' => 'Open Sans',
|
1003 |
+
'type' => 'font',
|
1004 |
+
'refresh_on_change' => false,
|
1005 |
+
'affect_on_change_el' => '.dslc-module-shortcode h4',
|
1006 |
+
'affect_on_change_rule' => 'font-family',
|
1007 |
+
'section' => 'styling',
|
1008 |
+
'tab' => __( 'H4', 'live-composer-page-builder' ),
|
1009 |
+
),
|
1010 |
+
array(
|
1011 |
+
'label' => __( 'Font Style', 'live-composer-page-builder' ),
|
1012 |
+
'id' => 'css_h4_font_style',
|
1013 |
+
'std' => 'normal',
|
1014 |
+
'type' => 'select',
|
1015 |
+
'refresh_on_change' => false,
|
1016 |
+
'affect_on_change_el' => '.dslc-module-shortcode h4',
|
1017 |
+
'affect_on_change_rule' => 'font-style',
|
1018 |
+
'section' => 'styling',
|
1019 |
+
'tab' => __( 'H4', 'live-composer-page-builder' ),
|
1020 |
+
'choices' => array(
|
1021 |
+
array(
|
1022 |
+
'label' => __( 'Normal', 'live-composer-page-builder' ),
|
1023 |
+
'value' => 'normal',
|
1024 |
+
),
|
1025 |
+
array(
|
1026 |
+
'label' => __( 'Italic', 'live-composer-page-builder' ),
|
1027 |
+
'value' => 'italic',
|
1028 |
+
),
|
1029 |
+
),
|
1030 |
+
),
|
1031 |
+
array(
|
1032 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
1033 |
+
'id' => 'css_h4_line_height',
|
1034 |
+
'onlypositive' => true, // Value can't be negative.
|
1035 |
+
'std' => '29',
|
1036 |
+
'type' => 'slider',
|
1037 |
+
'refresh_on_change' => false,
|
1038 |
+
'affect_on_change_el' => '.dslc-module-shortcode h4',
|
1039 |
+
'affect_on_change_rule' => 'line-height',
|
1040 |
+
'section' => 'styling',
|
1041 |
+
'tab' => __( 'H4', 'live-composer-page-builder' ),
|
1042 |
+
'ext' => 'px',
|
1043 |
+
),
|
1044 |
+
array(
|
1045 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
1046 |
+
'id' => 'css_h4_margin_bottom',
|
1047 |
+
'std' => '15',
|
1048 |
+
'type' => 'slider',
|
1049 |
+
'refresh_on_change' => false,
|
1050 |
+
'affect_on_change_el' => '.dslc-module-shortcode h4',
|
1051 |
+
'affect_on_change_rule' => 'margin-bottom',
|
1052 |
+
'section' => 'styling',
|
1053 |
+
'tab' => __( 'H4', 'live-composer-page-builder' ),
|
1054 |
+
'ext' => 'px',
|
1055 |
+
),
|
1056 |
+
array(
|
1057 |
+
'label' => __( 'Text Align', 'live-composer-page-builder' ),
|
1058 |
+
'id' => 'css_h4_text_align',
|
1059 |
+
'std' => 'left',
|
1060 |
+
'type' => 'text_align',
|
1061 |
+
'refresh_on_change' => false,
|
1062 |
+
'affect_on_change_el' => '.dslc-module-shortcode h4',
|
1063 |
+
'affect_on_change_rule' => 'text-align',
|
1064 |
+
'section' => 'styling',
|
1065 |
+
'tab' => __( 'H4', 'live-composer-page-builder' ),
|
1066 |
+
),
|
1067 |
+
array(
|
1068 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
1069 |
+
'id' => 'css_h4_text_shadow',
|
1070 |
+
'std' => '',
|
1071 |
+
'type' => 'text_shadow',
|
1072 |
+
'refresh_on_change' => false,
|
1073 |
+
'affect_on_change_el' => '.dslc-module-shortcode h4',
|
1074 |
+
'affect_on_change_rule' => 'text-shadow',
|
1075 |
+
'section' => 'styling',
|
1076 |
+
'tab' => __( 'H4', 'live-composer-page-builder' ),
|
1077 |
+
),
|
1078 |
+
|
1079 |
+
/**
|
1080 |
+
* Heading 5
|
1081 |
+
*/
|
1082 |
+
|
1083 |
+
array(
|
1084 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
1085 |
+
'id' => 'css_h5_color',
|
1086 |
+
'std' => '',
|
1087 |
+
'type' => 'color',
|
1088 |
+
'refresh_on_change' => false,
|
1089 |
+
'affect_on_change_el' => '.dslc-module-shortcode h5',
|
1090 |
+
'affect_on_change_rule' => 'color',
|
1091 |
+
'section' => 'styling',
|
1092 |
+
'tab' => __( 'H5', 'live-composer-page-builder' ),
|
1093 |
+
),
|
1094 |
+
array(
|
1095 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
1096 |
+
'id' => 'css_h5_font_size',
|
1097 |
+
'onlypositive' => true, // Value can't be negative.
|
1098 |
+
'std' => '17',
|
1099 |
+
'type' => 'slider',
|
1100 |
+
'refresh_on_change' => false,
|
1101 |
+
'affect_on_change_el' => '.dslc-module-shortcode h5',
|
1102 |
+
'affect_on_change_rule' => 'font-size',
|
1103 |
+
'section' => 'styling',
|
1104 |
+
'tab' => __( 'H5', 'live-composer-page-builder' ),
|
1105 |
+
'ext' => 'px',
|
1106 |
+
),
|
1107 |
+
array(
|
1108 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
1109 |
+
'id' => 'css_h5_font_weight',
|
1110 |
+
'std' => '400',
|
1111 |
+
'type' => 'select',
|
1112 |
+
'choices' => array(
|
1113 |
+
array(
|
1114 |
+
'label' => '100 - Thin',
|
1115 |
+
'value' => '100',
|
1116 |
+
),
|
1117 |
+
array(
|
1118 |
+
'label' => '200 - Extra Light',
|
1119 |
+
'value' => '200',
|
1120 |
+
),
|
1121 |
+
array(
|
1122 |
+
'label' => '300 - Light',
|
1123 |
+
'value' => '300',
|
1124 |
+
),
|
1125 |
+
array(
|
1126 |
+
'label' => '400 - Normal',
|
1127 |
+
'value' => '400',
|
1128 |
+
),
|
1129 |
+
array(
|
1130 |
+
'label' => '500 - Medium',
|
1131 |
+
'value' => '500',
|
1132 |
+
),
|
1133 |
+
array(
|
1134 |
+
'label' => '600 - Semi Bold',
|
1135 |
+
'value' => '600',
|
1136 |
+
),
|
1137 |
+
array(
|
1138 |
+
'label' => '700 - Bold',
|
1139 |
+
'value' => '700',
|
1140 |
+
),
|
1141 |
+
array(
|
1142 |
+
'label' => '800 - Extra Bold',
|
1143 |
+
'value' => '800',
|
1144 |
+
),
|
1145 |
+
array(
|
1146 |
+
'label' => '900 - Black',
|
1147 |
+
'value' => '900',
|
1148 |
+
),
|
1149 |
+
),
|
1150 |
+
'refresh_on_change' => false,
|
1151 |
+
'affect_on_change_el' => '.dslc-module-shortcode h5',
|
1152 |
+
'affect_on_change_rule' => 'font-weight',
|
1153 |
+
'section' => 'styling',
|
1154 |
+
'tab' => __( 'H5', 'live-composer-page-builder' ),
|
1155 |
+
'ext' => '',
|
1156 |
+
),
|
1157 |
+
array(
|
1158 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
1159 |
+
'id' => 'css_h5_font_family',
|
1160 |
+
'std' => 'Open Sans',
|
1161 |
+
'type' => 'font',
|
1162 |
+
'refresh_on_change' => false,
|
1163 |
+
'affect_on_change_el' => '.dslc-module-shortcode h5',
|
1164 |
+
'affect_on_change_rule' => 'font-family',
|
1165 |
+
'section' => 'styling',
|
1166 |
+
'tab' => __( 'H5', 'live-composer-page-builder' ),
|
1167 |
+
),
|
1168 |
+
array(
|
1169 |
+
'label' => __( 'Font Style', 'live-composer-page-builder' ),
|
1170 |
+
'id' => 'css_h5_font_style',
|
1171 |
+
'std' => 'normal',
|
1172 |
+
'type' => 'select',
|
1173 |
+
'refresh_on_change' => false,
|
1174 |
+
'affect_on_change_el' => '.dslc-module-shortcode h5',
|
1175 |
+
'affect_on_change_rule' => 'font-style',
|
1176 |
+
'section' => 'styling',
|
1177 |
+
'tab' => __( 'H5', 'live-composer-page-builder' ),
|
1178 |
+
'choices' => array(
|
1179 |
+
array(
|
1180 |
+
'label' => __( 'Normal', 'live-composer-page-builder' ),
|
1181 |
+
'value' => 'normal',
|
1182 |
+
),
|
1183 |
+
array(
|
1184 |
+
'label' => __( 'Italic', 'live-composer-page-builder' ),
|
1185 |
+
'value' => 'italic',
|
1186 |
+
),
|
1187 |
+
),
|
1188 |
+
),
|
1189 |
+
array(
|
1190 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
1191 |
+
'id' => 'css_h5_line_height',
|
1192 |
+
'onlypositive' => true, // Value can't be negative.
|
1193 |
+
'std' => '27',
|
1194 |
+
'type' => 'slider',
|
1195 |
+
'refresh_on_change' => false,
|
1196 |
+
'affect_on_change_el' => '.dslc-module-shortcode h5',
|
1197 |
+
'affect_on_change_rule' => 'line-height',
|
1198 |
+
'section' => 'styling',
|
1199 |
+
'tab' => __( 'H5', 'live-composer-page-builder' ),
|
1200 |
+
'ext' => 'px',
|
1201 |
+
),
|
1202 |
+
array(
|
1203 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
1204 |
+
'id' => 'css_h5_margin_bottom',
|
1205 |
+
'std' => '15',
|
1206 |
+
'type' => 'slider',
|
1207 |
+
'refresh_on_change' => false,
|
1208 |
+
'affect_on_change_el' => '.dslc-module-shortcode h5',
|
1209 |
+
'affect_on_change_rule' => 'margin-bottom',
|
1210 |
+
'section' => 'styling',
|
1211 |
+
'tab' => __( 'H5', 'live-composer-page-builder' ),
|
1212 |
+
'ext' => 'px',
|
1213 |
+
),
|
1214 |
+
array(
|
1215 |
+
'label' => __( 'Text Align', 'live-composer-page-builder' ),
|
1216 |
+
'id' => 'css_h5_text_align',
|
1217 |
+
'std' => 'left',
|
1218 |
+
'type' => 'text_align',
|
1219 |
+
'refresh_on_change' => false,
|
1220 |
+
'affect_on_change_el' => '.dslc-module-shortcode h5',
|
1221 |
+
'affect_on_change_rule' => 'text-align',
|
1222 |
+
'section' => 'styling',
|
1223 |
+
'tab' => __( 'H5', 'live-composer-page-builder' ),
|
1224 |
+
),
|
1225 |
+
array(
|
1226 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
1227 |
+
'id' => 'css_h5_text_shadow',
|
1228 |
+
'std' => '',
|
1229 |
+
'type' => 'text_shadow',
|
1230 |
+
'refresh_on_change' => false,
|
1231 |
+
'affect_on_change_el' => '.dslc-module-shortcode h5',
|
1232 |
+
'affect_on_change_rule' => 'text-shadow',
|
1233 |
+
'section' => 'styling',
|
1234 |
+
'tab' => __( 'H5', 'live-composer-page-builder' ),
|
1235 |
+
),
|
1236 |
+
|
1237 |
+
/**
|
1238 |
+
* Heading 6
|
1239 |
+
*/
|
1240 |
+
|
1241 |
+
array(
|
1242 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
1243 |
+
'id' => 'css_h6_color',
|
1244 |
+
'std' => '',
|
1245 |
+
'type' => 'color',
|
1246 |
+
'refresh_on_change' => false,
|
1247 |
+
'affect_on_change_el' => '.dslc-module-shortcode h6',
|
1248 |
+
'affect_on_change_rule' => 'color',
|
1249 |
+
'section' => 'styling',
|
1250 |
+
'tab' => __( 'H6', 'live-composer-page-builder' ),
|
1251 |
+
),
|
1252 |
+
array(
|
1253 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
1254 |
+
'id' => 'css_h6_font_size',
|
1255 |
+
'onlypositive' => true, // Value can't be negative.
|
1256 |
+
'std' => '15',
|
1257 |
+
'type' => 'slider',
|
1258 |
+
'refresh_on_change' => false,
|
1259 |
+
'affect_on_change_el' => '.dslc-module-shortcode h6',
|
1260 |
+
'affect_on_change_rule' => 'font-size',
|
1261 |
+
'section' => 'styling',
|
1262 |
+
'tab' => __( 'H6', 'live-composer-page-builder' ),
|
1263 |
+
'ext' => 'px',
|
1264 |
+
),
|
1265 |
+
array(
|
1266 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
1267 |
+
'id' => 'css_h6_font_weight',
|
1268 |
+
'std' => '400',
|
1269 |
+
'type' => 'select',
|
1270 |
+
'choices' => array(
|
1271 |
+
array(
|
1272 |
+
'label' => '100 - Thin',
|
1273 |
+
'value' => '100',
|
1274 |
+
),
|
1275 |
+
array(
|
1276 |
+
'label' => '200 - Extra Light',
|
1277 |
+
'value' => '200',
|
1278 |
+
),
|
1279 |
+
array(
|
1280 |
+
'label' => '300 - Light',
|
1281 |
+
'value' => '300',
|
1282 |
+
),
|
1283 |
+
array(
|
1284 |
+
'label' => '400 - Normal',
|
1285 |
+
'value' => '400',
|
1286 |
+
),
|
1287 |
+
array(
|
1288 |
+
'label' => '500 - Medium',
|
1289 |
+
'value' => '500',
|
1290 |
+
),
|
1291 |
+
array(
|
1292 |
+
'label' => '600 - Semi Bold',
|
1293 |
+
'value' => '600',
|
1294 |
+
),
|
1295 |
+
array(
|
1296 |
+
'label' => '700 - Bold',
|
1297 |
+
'value' => '700',
|
1298 |
+
),
|
1299 |
+
array(
|
1300 |
+
'label' => '800 - Extra Bold',
|
1301 |
+
'value' => '800',
|
1302 |
+
),
|
1303 |
+
array(
|
1304 |
+
'label' => '900 - Black',
|
1305 |
+
'value' => '900',
|
1306 |
+
),
|
1307 |
+
),
|
1308 |
+
'refresh_on_change' => false,
|
1309 |
+
'affect_on_change_el' => '.dslc-module-shortcode h6',
|
1310 |
+
'affect_on_change_rule' => 'font-weight',
|
1311 |
+
'section' => 'styling',
|
1312 |
+
'tab' => __( 'H6', 'live-composer-page-builder' ),
|
1313 |
+
'ext' => '',
|
1314 |
+
),
|
1315 |
+
array(
|
1316 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
1317 |
+
'id' => 'css_h6_font_family',
|
1318 |
+
'std' => 'Open Sans',
|
1319 |
+
'type' => 'font',
|
1320 |
+
'refresh_on_change' => false,
|
1321 |
+
'affect_on_change_el' => '.dslc-module-shortcode h6',
|
1322 |
+
'affect_on_change_rule' => 'font-family',
|
1323 |
+
'section' => 'styling',
|
1324 |
+
'tab' => __( 'H6', 'live-composer-page-builder' ),
|
1325 |
+
),
|
1326 |
+
array(
|
1327 |
+
'label' => __( 'Font Style', 'live-composer-page-builder' ),
|
1328 |
+
'id' => 'css_h6_font_style',
|
1329 |
+
'std' => 'normal',
|
1330 |
+
'type' => 'select',
|
1331 |
+
'refresh_on_change' => false,
|
1332 |
+
'affect_on_change_el' => '.dslc-module-shortcode h6',
|
1333 |
+
'affect_on_change_rule' => 'font-style',
|
1334 |
+
'section' => 'styling',
|
1335 |
+
'tab' => __( 'H6', 'live-composer-page-builder' ),
|
1336 |
+
'choices' => array(
|
1337 |
+
array(
|
1338 |
+
'label' => __( 'Normal', 'live-composer-page-builder' ),
|
1339 |
+
'value' => 'normal',
|
1340 |
+
),
|
1341 |
+
array(
|
1342 |
+
'label' => __( 'Italic', 'live-composer-page-builder' ),
|
1343 |
+
'value' => 'italic',
|
1344 |
+
),
|
1345 |
+
),
|
1346 |
+
),
|
1347 |
+
array(
|
1348 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
1349 |
+
'id' => 'css_h6_line_height',
|
1350 |
+
'onlypositive' => true, // Value can't be negative.
|
1351 |
+
'std' => '25',
|
1352 |
+
'type' => 'slider',
|
1353 |
+
'refresh_on_change' => false,
|
1354 |
+
'affect_on_change_el' => '.dslc-module-shortcode h6',
|
1355 |
+
'affect_on_change_rule' => 'line-height',
|
1356 |
+
'section' => 'styling',
|
1357 |
+
'tab' => __( 'H6', 'live-composer-page-builder' ),
|
1358 |
+
'ext' => 'px',
|
1359 |
+
),
|
1360 |
+
array(
|
1361 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
1362 |
+
'id' => 'css_h6_margin_bottom',
|
1363 |
+
'std' => '15',
|
1364 |
+
'type' => 'slider',
|
1365 |
+
'refresh_on_change' => false,
|
1366 |
+
'affect_on_change_el' => '.dslc-module-shortcode h6',
|
1367 |
+
'affect_on_change_rule' => 'margin-bottom',
|
1368 |
+
'section' => 'styling',
|
1369 |
+
'tab' => __( 'H6', 'live-composer-page-builder' ),
|
1370 |
+
'ext' => 'px',
|
1371 |
+
),
|
1372 |
+
array(
|
1373 |
+
'label' => __( 'Text Align', 'live-composer-page-builder' ),
|
1374 |
+
'id' => 'css_h6_text_align',
|
1375 |
+
'std' => 'left',
|
1376 |
+
'type' => 'text_align',
|
1377 |
+
'refresh_on_change' => false,
|
1378 |
+
'affect_on_change_el' => '.dslc-module-shortcode h6',
|
1379 |
+
'affect_on_change_rule' => 'text-align',
|
1380 |
+
'section' => 'styling',
|
1381 |
+
'tab' => __( 'H6', 'live-composer-page-builder' ),
|
1382 |
+
),
|
1383 |
+
array(
|
1384 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
1385 |
+
'id' => 'css_h6_text_shadow',
|
1386 |
+
'std' => '',
|
1387 |
+
'type' => 'text_shadow',
|
1388 |
+
'refresh_on_change' => false,
|
1389 |
+
'affect_on_change_el' => '.dslc-module-shortcode h6',
|
1390 |
+
'affect_on_change_rule' => 'text-shadow',
|
1391 |
+
'section' => 'styling',
|
1392 |
+
'tab' => __( 'H6', 'live-composer-page-builder' ),
|
1393 |
+
),
|
1394 |
+
|
1395 |
+
/**
|
1396 |
+
* Links
|
1397 |
+
*/
|
1398 |
+
|
1399 |
+
array(
|
1400 |
+
'label' => __( 'Link Color', 'live-composer-page-builder' ),
|
1401 |
+
'id' => 'css_link_color',
|
1402 |
+
'std' => '',
|
1403 |
+
'type' => 'color',
|
1404 |
+
'refresh_on_change' => false,
|
1405 |
+
'affect_on_change_el' => '.dslc-module-shortcode a',
|
1406 |
+
'affect_on_change_rule' => 'color',
|
1407 |
+
'section' => 'styling',
|
1408 |
+
'tab' => __( 'Links', 'live-composer-page-builder' ),
|
1409 |
+
),
|
1410 |
+
array(
|
1411 |
+
'label' => __( 'Link - Hover Color', 'live-composer-page-builder' ),
|
1412 |
+
'id' => 'css_link_color_hover',
|
1413 |
+
'std' => '',
|
1414 |
+
'type' => 'color',
|
1415 |
+
'refresh_on_change' => false,
|
1416 |
+
'affect_on_change_el' => '.dslc-module-shortcode a:hover',
|
1417 |
+
'affect_on_change_rule' => 'color',
|
1418 |
+
'section' => 'styling',
|
1419 |
+
'tab' => __( 'Links', 'live-composer-page-builder' ),
|
1420 |
+
),
|
1421 |
+
array(
|
1422 |
+
'label' => __( 'Link - Text Shadow', 'live-composer-page-builder' ),
|
1423 |
+
'id' => 'css_link_text_shadow',
|
1424 |
+
'std' => '',
|
1425 |
+
'type' => 'text_shadow',
|
1426 |
+
'refresh_on_change' => false,
|
1427 |
+
'affect_on_change_el' => '.dslc-module-shortcode a',
|
1428 |
+
'affect_on_change_rule' => 'text-shadow',
|
1429 |
+
'section' => 'styling',
|
1430 |
+
'tab' => __( 'Links', 'live-composer-page-builder' ),
|
1431 |
+
),
|
1432 |
+
array(
|
1433 |
+
'label' => __( 'Blockquote Link - Color', 'live-composer-page-builder' ),
|
1434 |
+
'id' => 'css_blockquote_link_color',
|
1435 |
+
'std' => '',
|
1436 |
+
'type' => 'color',
|
1437 |
+
'refresh_on_change' => false,
|
1438 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote a',
|
1439 |
+
'affect_on_change_rule' => 'color',
|
1440 |
+
'section' => 'styling',
|
1441 |
+
'tab' => __( 'Links', 'live-composer-page-builder' ),
|
1442 |
+
),
|
1443 |
+
array(
|
1444 |
+
'label' => __( 'Blockquote Link - Hover Color', 'live-composer-page-builder' ),
|
1445 |
+
'id' => 'css_blockquote_link_color_hover',
|
1446 |
+
'std' => '',
|
1447 |
+
'type' => 'color',
|
1448 |
+
'refresh_on_change' => false,
|
1449 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote a:hover',
|
1450 |
+
'affect_on_change_rule' => 'color',
|
1451 |
+
'section' => 'styling',
|
1452 |
+
'tab' => __( 'Links', 'live-composer-page-builder' ),
|
1453 |
+
),
|
1454 |
+
array(
|
1455 |
+
'label' => __( 'Blockquote Link - Text Shadow', 'live-composer-page-builder' ),
|
1456 |
+
'id' => 'css_blockquote_link_text_shadow',
|
1457 |
+
'std' => '',
|
1458 |
+
'type' => 'text_shadow',
|
1459 |
+
'refresh_on_change' => false,
|
1460 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote a',
|
1461 |
+
'affect_on_change_rule' => 'text-shadow',
|
1462 |
+
'section' => 'styling',
|
1463 |
+
'tab' => __( 'Links', 'live-composer-page-builder' ),
|
1464 |
+
),
|
1465 |
+
|
1466 |
+
/**
|
1467 |
+
* Lists
|
1468 |
+
*/
|
1469 |
+
|
1470 |
+
array(
|
1471 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
1472 |
+
'id' => 'css_li_color',
|
1473 |
+
'std' => '',
|
1474 |
+
'type' => 'color',
|
1475 |
+
'refresh_on_change' => false,
|
1476 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1477 |
+
'affect_on_change_rule' => 'color',
|
1478 |
+
'section' => 'styling',
|
1479 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1480 |
+
),
|
1481 |
+
array(
|
1482 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
1483 |
+
'id' => 'css_li_font_size',
|
1484 |
+
'onlypositive' => true, // Value can't be negative.
|
1485 |
+
'std' => '13',
|
1486 |
+
'type' => 'slider',
|
1487 |
+
'refresh_on_change' => false,
|
1488 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1489 |
+
'affect_on_change_rule' => 'font-size',
|
1490 |
+
'section' => 'styling',
|
1491 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1492 |
+
'ext' => 'px',
|
1493 |
+
),
|
1494 |
+
array(
|
1495 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
1496 |
+
'id' => 'css_li_font_weight',
|
1497 |
+
'std' => '400',
|
1498 |
+
'type' => 'select',
|
1499 |
+
'choices' => array(
|
1500 |
+
array(
|
1501 |
+
'label' => '100 - Thin',
|
1502 |
+
'value' => '100',
|
1503 |
+
),
|
1504 |
+
array(
|
1505 |
+
'label' => '200 - Extra Light',
|
1506 |
+
'value' => '200',
|
1507 |
+
),
|
1508 |
+
array(
|
1509 |
+
'label' => '300 - Light',
|
1510 |
+
'value' => '300',
|
1511 |
+
),
|
1512 |
+
array(
|
1513 |
+
'label' => '400 - Normal',
|
1514 |
+
'value' => '400',
|
1515 |
+
),
|
1516 |
+
array(
|
1517 |
+
'label' => '500 - Medium',
|
1518 |
+
'value' => '500',
|
1519 |
+
),
|
1520 |
+
array(
|
1521 |
+
'label' => '600 - Semi Bold',
|
1522 |
+
'value' => '600',
|
1523 |
+
),
|
1524 |
+
array(
|
1525 |
+
'label' => '700 - Bold',
|
1526 |
+
'value' => '700',
|
1527 |
+
),
|
1528 |
+
array(
|
1529 |
+
'label' => '800 - Extra Bold',
|
1530 |
+
'value' => '800',
|
1531 |
+
),
|
1532 |
+
array(
|
1533 |
+
'label' => '900 - Black',
|
1534 |
+
'value' => '900',
|
1535 |
+
),
|
1536 |
+
),
|
1537 |
+
'refresh_on_change' => false,
|
1538 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1539 |
+
'affect_on_change_rule' => 'font-weight',
|
1540 |
+
'section' => 'styling',
|
1541 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1542 |
+
'ext' => '',
|
1543 |
+
),
|
1544 |
+
array(
|
1545 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
1546 |
+
'id' => 'css_li_font_family',
|
1547 |
+
'std' => 'Open Sans',
|
1548 |
+
'type' => 'font',
|
1549 |
+
'refresh_on_change' => false,
|
1550 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1551 |
+
'affect_on_change_rule' => 'font-family',
|
1552 |
+
'section' => 'styling',
|
1553 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1554 |
+
),
|
1555 |
+
array(
|
1556 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
1557 |
+
'id' => 'css_li_line_height',
|
1558 |
+
'onlypositive' => true, // Value can't be negative.
|
1559 |
+
'std' => '22',
|
1560 |
+
'type' => 'slider',
|
1561 |
+
'refresh_on_change' => false,
|
1562 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1563 |
+
'affect_on_change_rule' => 'line-height',
|
1564 |
+
'section' => 'styling',
|
1565 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1566 |
+
'ext' => 'px',
|
1567 |
+
),
|
1568 |
+
array(
|
1569 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
1570 |
+
'id' => 'css_ul_margin_bottom',
|
1571 |
+
'std' => '25',
|
1572 |
+
'type' => 'slider',
|
1573 |
+
'refresh_on_change' => false,
|
1574 |
+
'affect_on_change_el' => '.dslc-module-shortcode ul,.dslc-module-shortcode ol',
|
1575 |
+
'affect_on_change_rule' => 'margin-bottom',
|
1576 |
+
'section' => 'styling',
|
1577 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1578 |
+
'ext' => 'px',
|
1579 |
+
),
|
1580 |
+
array(
|
1581 |
+
'label' => __( 'Margin Left', 'live-composer-page-builder' ),
|
1582 |
+
'id' => 'css_ul_margin_left',
|
1583 |
+
'std' => '25',
|
1584 |
+
'type' => 'slider',
|
1585 |
+
'refresh_on_change' => false,
|
1586 |
+
'affect_on_change_el' => '.dslc-module-shortcode ul,.dslc-module-shortcode ol',
|
1587 |
+
'affect_on_change_rule' => 'margin-left',
|
1588 |
+
'section' => 'styling',
|
1589 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1590 |
+
'ext' => 'px',
|
1591 |
+
),
|
1592 |
+
array(
|
1593 |
+
'label' => __( 'Unordered Style', 'live-composer-page-builder' ),
|
1594 |
+
'id' => 'css_ul_style',
|
1595 |
+
'std' => 'disc',
|
1596 |
+
'type' => 'select',
|
1597 |
+
'choices' => array(
|
1598 |
+
array(
|
1599 |
+
'label' => __( 'Armenian', 'live-composer-page-builder' ),
|
1600 |
+
'value' => 'armenian',
|
1601 |
+
),
|
1602 |
+
array(
|
1603 |
+
'label' => __( 'Circle', 'live-composer-page-builder' ),
|
1604 |
+
'value' => 'circle',
|
1605 |
+
),
|
1606 |
+
array(
|
1607 |
+
'label' => __( 'Cjk-ideographic', 'live-composer-page-builder' ),
|
1608 |
+
'value' => 'cjk-ideographic',
|
1609 |
+
),
|
1610 |
+
array(
|
1611 |
+
'label' => __( 'Decimal', 'live-composer-page-builder' ),
|
1612 |
+
'value' => 'decimal',
|
1613 |
+
),
|
1614 |
+
array(
|
1615 |
+
'label' => __( 'Decimal Leading Zero', 'live-composer-page-builder' ),
|
1616 |
+
'value' => 'decimal-leading-zero',
|
1617 |
+
),
|
1618 |
+
array(
|
1619 |
+
'label' => __( 'Hebrew', 'live-composer-page-builder' ),
|
1620 |
+
'value' => 'hebrew',
|
1621 |
+
),
|
1622 |
+
array(
|
1623 |
+
'label' => __( 'Hiragana', 'live-composer-page-builder' ),
|
1624 |
+
'value' => 'hiragana',
|
1625 |
+
),
|
1626 |
+
array(
|
1627 |
+
'label' => __( 'Hiragana Iroha', 'live-composer-page-builder' ),
|
1628 |
+
'value' => 'hiragana-iroha',
|
1629 |
+
),
|
1630 |
+
array(
|
1631 |
+
'label' => __( 'Katakana', 'live-composer-page-builder' ),
|
1632 |
+
'value' => 'katakana',
|
1633 |
+
),
|
1634 |
+
array(
|
1635 |
+
'label' => __( 'Katakana Iroha', 'live-composer-page-builder' ),
|
1636 |
+
'value' => 'katakana-iroha',
|
1637 |
+
),
|
1638 |
+
array(
|
1639 |
+
'label' => __( 'Lower Alpha', 'live-composer-page-builder' ),
|
1640 |
+
'value' => 'lower-alpha',
|
1641 |
+
),
|
1642 |
+
array(
|
1643 |
+
'label' => __( 'Lower Greek', 'live-composer-page-builder' ),
|
1644 |
+
'value' => 'lower-greek',
|
1645 |
+
),
|
1646 |
+
array(
|
1647 |
+
'label' => __( 'Lower Latin', 'live-composer-page-builder' ),
|
1648 |
+
'value' => 'lower-latin',
|
1649 |
+
),
|
1650 |
+
array(
|
1651 |
+
'label' => __( 'Lower Roman', 'live-composer-page-builder' ),
|
1652 |
+
'value' => 'lower-roman',
|
1653 |
+
),
|
1654 |
+
array(
|
1655 |
+
'label' => __( 'None', 'live-composer-page-builder' ),
|
1656 |
+
'value' => 'none',
|
1657 |
+
),
|
1658 |
+
array(
|
1659 |
+
'label' => __( 'Upper Alpha', 'live-composer-page-builder' ),
|
1660 |
+
'value' => 'upper-alpha',
|
1661 |
+
),
|
1662 |
+
array(
|
1663 |
+
'label' => __( 'Upper Latin', 'live-composer-page-builder' ),
|
1664 |
+
'value' => 'upper-latin',
|
1665 |
+
),
|
1666 |
+
array(
|
1667 |
+
'label' => __( 'Upper Roman', 'live-composer-page-builder' ),
|
1668 |
+
'value' => 'upper-roman',
|
1669 |
+
),
|
1670 |
+
array(
|
1671 |
+
'label' => __( 'Inherit', 'live-composer-page-builder' ),
|
1672 |
+
'value' => 'inherit',
|
1673 |
+
),
|
1674 |
+
),
|
1675 |
+
'section' => 'styling',
|
1676 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1677 |
+
'refresh_on_change' => false,
|
1678 |
+
'affect_on_change_el' => '.dslc-module-shortcode ul',
|
1679 |
+
'affect_on_change_rule' => 'list-style-type',
|
1680 |
+
),
|
1681 |
+
array(
|
1682 |
+
'label' => __( 'Ordered Style', 'live-composer-page-builder' ),
|
1683 |
+
'id' => 'css_ol_style',
|
1684 |
+
'std' => 'decimal',
|
1685 |
+
'type' => 'select',
|
1686 |
+
'choices' => array(
|
1687 |
+
array(
|
1688 |
+
'label' => __( 'Armenian', 'live-composer-page-builder' ),
|
1689 |
+
'value' => 'armenian',
|
1690 |
+
),
|
1691 |
+
array(
|
1692 |
+
'label' => __( 'Circle', 'live-composer-page-builder' ),
|
1693 |
+
'value' => 'circle',
|
1694 |
+
),
|
1695 |
+
array(
|
1696 |
+
'label' => __( 'Cjk-ideographic', 'live-composer-page-builder' ),
|
1697 |
+
'value' => 'cjk-ideographic',
|
1698 |
+
),
|
1699 |
+
array(
|
1700 |
+
'label' => __( 'Decimal', 'live-composer-page-builder' ),
|
1701 |
+
'value' => 'decimal',
|
1702 |
+
),
|
1703 |
+
array(
|
1704 |
+
'label' => __( 'Decimal Leading Zero', 'live-composer-page-builder' ),
|
1705 |
+
'value' => 'decimal-leading-zero',
|
1706 |
+
),
|
1707 |
+
array(
|
1708 |
+
'label' => __( 'Hebrew', 'live-composer-page-builder' ),
|
1709 |
+
'value' => 'hebrew',
|
1710 |
+
),
|
1711 |
+
array(
|
1712 |
+
'label' => __( 'Hiragana', 'live-composer-page-builder' ),
|
1713 |
+
'value' => 'hiragana',
|
1714 |
+
),
|
1715 |
+
array(
|
1716 |
+
'label' => __( 'Hiragana Iroha', 'live-composer-page-builder' ),
|
1717 |
+
'value' => 'hiragana-iroha',
|
1718 |
+
),
|
1719 |
+
array(
|
1720 |
+
'label' => __( 'Katakana', 'live-composer-page-builder' ),
|
1721 |
+
'value' => 'katakana',
|
1722 |
+
),
|
1723 |
+
array(
|
1724 |
+
'label' => __( 'Katakana Iroha', 'live-composer-page-builder' ),
|
1725 |
+
'value' => 'katakana-iroha',
|
1726 |
+
),
|
1727 |
+
array(
|
1728 |
+
'label' => __( 'Lower Alpha', 'live-composer-page-builder' ),
|
1729 |
+
'value' => 'lower-alpha',
|
1730 |
+
),
|
1731 |
+
array(
|
1732 |
+
'label' => __( 'Lower Greek', 'live-composer-page-builder' ),
|
1733 |
+
'value' => 'lower-greek',
|
1734 |
+
),
|
1735 |
+
array(
|
1736 |
+
'label' => __( 'Lower Latin', 'live-composer-page-builder' ),
|
1737 |
+
'value' => 'lower-latin',
|
1738 |
+
),
|
1739 |
+
array(
|
1740 |
+
'label' => __( 'Lower Roman', 'live-composer-page-builder' ),
|
1741 |
+
'value' => 'lower-roman',
|
1742 |
+
),
|
1743 |
+
array(
|
1744 |
+
'label' => __( 'None', 'live-composer-page-builder' ),
|
1745 |
+
'value' => 'none',
|
1746 |
+
),
|
1747 |
+
array(
|
1748 |
+
'label' => __( 'Upper Alpha', 'live-composer-page-builder' ),
|
1749 |
+
'value' => 'upper-alpha',
|
1750 |
+
),
|
1751 |
+
array(
|
1752 |
+
'label' => __( 'Upper Latin', 'live-composer-page-builder' ),
|
1753 |
+
'value' => 'upper-latin',
|
1754 |
+
),
|
1755 |
+
array(
|
1756 |
+
'label' => __( 'Upper Roman', 'live-composer-page-builder' ),
|
1757 |
+
'value' => 'upper-roman',
|
1758 |
+
),
|
1759 |
+
array(
|
1760 |
+
'label' => __( 'Inherit', 'live-composer-page-builder' ),
|
1761 |
+
'value' => 'inherit',
|
1762 |
+
),
|
1763 |
+
),
|
1764 |
+
'section' => 'styling',
|
1765 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1766 |
+
'refresh_on_change' => false,
|
1767 |
+
'affect_on_change_el' => '.dslc-module-shortcode ol',
|
1768 |
+
'affect_on_change_rule' => 'list-style-type',
|
1769 |
+
),
|
1770 |
+
array(
|
1771 |
+
'label' => __( 'Spacing', 'live-composer-page-builder' ),
|
1772 |
+
'id' => 'css_ul_li_margin_bottom',
|
1773 |
+
'std' => '10',
|
1774 |
+
'type' => 'slider',
|
1775 |
+
'refresh_on_change' => false,
|
1776 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1777 |
+
'affect_on_change_rule' => 'margin-bottom',
|
1778 |
+
'section' => 'styling',
|
1779 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1780 |
+
'ext' => 'px',
|
1781 |
+
),
|
1782 |
+
array(
|
1783 |
+
'label' => __( 'Item - BG Color', 'live-composer-page-builder' ),
|
1784 |
+
'id' => 'css_li_bg_color',
|
1785 |
+
'std' => '',
|
1786 |
+
'type' => 'color',
|
1787 |
+
'refresh_on_change' => false,
|
1788 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1789 |
+
'affect_on_change_rule' => 'background-color',
|
1790 |
+
'section' => 'styling',
|
1791 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1792 |
+
),
|
1793 |
+
array(
|
1794 |
+
'label' => __( 'Item - Border Color', 'live-composer-page-builder' ),
|
1795 |
+
'id' => 'css_li_border_color',
|
1796 |
+
'std' => '',
|
1797 |
+
'type' => 'color',
|
1798 |
+
'refresh_on_change' => false,
|
1799 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1800 |
+
'affect_on_change_rule' => 'border-color',
|
1801 |
+
'section' => 'styling',
|
1802 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1803 |
+
),
|
1804 |
+
array(
|
1805 |
+
'label' => __( 'Item - Border Width', 'live-composer-page-builder' ),
|
1806 |
+
'id' => 'css_li_border_width',
|
1807 |
+
'onlypositive' => true, // Value can't be negative.
|
1808 |
+
'max' => 10,
|
1809 |
+
'std' => '0',
|
1810 |
+
'type' => 'slider',
|
1811 |
+
'refresh_on_change' => false,
|
1812 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1813 |
+
'affect_on_change_rule' => 'border-width',
|
1814 |
+
'section' => 'styling',
|
1815 |
+
'ext' => 'px',
|
1816 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1817 |
+
),
|
1818 |
+
array(
|
1819 |
+
'label' => __( 'Item - Borders', 'live-composer-page-builder' ),
|
1820 |
+
'id' => 'css_li_border_trbl',
|
1821 |
+
'std' => 'top right bottom left',
|
1822 |
+
'type' => 'checkbox',
|
1823 |
+
'choices' => array(
|
1824 |
+
array(
|
1825 |
+
'label' => __( 'Top', 'live-composer-page-builder' ),
|
1826 |
+
'value' => 'top',
|
1827 |
+
),
|
1828 |
+
array(
|
1829 |
+
'label' => __( 'Right', 'live-composer-page-builder' ),
|
1830 |
+
'value' => 'right',
|
1831 |
+
),
|
1832 |
+
array(
|
1833 |
+
'label' => __( 'Bottom', 'live-composer-page-builder' ),
|
1834 |
+
'value' => 'bottom',
|
1835 |
+
),
|
1836 |
+
array(
|
1837 |
+
'label' => __( 'Left', 'live-composer-page-builder' ),
|
1838 |
+
'value' => 'left',
|
1839 |
+
),
|
1840 |
+
),
|
1841 |
+
'refresh_on_change' => false,
|
1842 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1843 |
+
'affect_on_change_rule' => 'border-style',
|
1844 |
+
'section' => 'styling',
|
1845 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1846 |
+
),
|
1847 |
+
array(
|
1848 |
+
'label' => __( 'Item - Border Radius - Top', 'live-composer-page-builder' ),
|
1849 |
+
'id' => 'css_li_border_radius_top',
|
1850 |
+
'onlypositive' => true, // Value can't be negative.
|
1851 |
+
'std' => '0',
|
1852 |
+
'type' => 'slider',
|
1853 |
+
'refresh_on_change' => false,
|
1854 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1855 |
+
'affect_on_change_rule' => 'border-top-left-radius,border-top-right-radius',
|
1856 |
+
'section' => 'styling',
|
1857 |
+
'ext' => 'px',
|
1858 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1859 |
+
),
|
1860 |
+
array(
|
1861 |
+
'label' => __( 'Item - Border Radius - Bottom', 'live-composer-page-builder' ),
|
1862 |
+
'id' => 'css_li_border_radius_bottom',
|
1863 |
+
'onlypositive' => true, // Value can't be negative.
|
1864 |
+
'std' => '0',
|
1865 |
+
'type' => 'slider',
|
1866 |
+
'refresh_on_change' => false,
|
1867 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1868 |
+
'affect_on_change_rule' => 'border-bottom-left-radius,border-bottom-right-radius',
|
1869 |
+
'section' => 'styling',
|
1870 |
+
'ext' => 'px',
|
1871 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1872 |
+
),
|
1873 |
+
array(
|
1874 |
+
'label' => __( 'Item - Padding Vertical', 'live-composer-page-builder' ),
|
1875 |
+
'id' => 'css_li_padding_vertical',
|
1876 |
+
'onlypositive' => true, // Value can't be negative.
|
1877 |
+
'max' => 600,
|
1878 |
+
'std' => '0',
|
1879 |
+
'type' => 'slider',
|
1880 |
+
'refresh_on_change' => false,
|
1881 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1882 |
+
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
1883 |
+
'section' => 'styling',
|
1884 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1885 |
+
'ext' => 'px',
|
1886 |
+
),
|
1887 |
+
array(
|
1888 |
+
'label' => __( 'Item - Padding Horizontal', 'live-composer-page-builder' ),
|
1889 |
+
'id' => 'css_li_padding_horizontal',
|
1890 |
+
'onlypositive' => true, // Value can't be negative.
|
1891 |
+
'std' => '0',
|
1892 |
+
'type' => 'slider',
|
1893 |
+
'refresh_on_change' => false,
|
1894 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1895 |
+
'affect_on_change_rule' => 'padding-left,padding-right',
|
1896 |
+
'section' => 'styling',
|
1897 |
+
'ext' => 'px',
|
1898 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1899 |
+
),
|
1900 |
+
array(
|
1901 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
1902 |
+
'id' => 'css_li_text_shadow',
|
1903 |
+
'std' => '',
|
1904 |
+
'type' => 'text_shadow',
|
1905 |
+
'refresh_on_change' => false,
|
1906 |
+
'affect_on_change_el' => '.dslc-module-shortcode li',
|
1907 |
+
'affect_on_change_rule' => 'text-shadow',
|
1908 |
+
'section' => 'styling',
|
1909 |
+
'tab' => __( 'Lists', 'live-composer-page-builder' ),
|
1910 |
+
),
|
1911 |
+
|
1912 |
+
/**
|
1913 |
+
* Inputs
|
1914 |
+
*/
|
1915 |
+
|
1916 |
+
array(
|
1917 |
+
'label' => __( 'BG Color', 'live-composer-page-builder' ),
|
1918 |
+
'id' => 'css_inputs_bg_color',
|
1919 |
+
'std' => '#fff',
|
1920 |
+
'type' => 'color',
|
1921 |
+
'refresh_on_change' => false,
|
1922 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
1923 |
+
'affect_on_change_rule' => 'background-color',
|
1924 |
+
'section' => 'styling',
|
1925 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
1926 |
+
),
|
1927 |
+
array(
|
1928 |
+
'label' => __( 'Border Color', 'live-composer-page-builder' ),
|
1929 |
+
'id' => 'css_inputs_border_color',
|
1930 |
+
'std' => '#ddd',
|
1931 |
+
'type' => 'color',
|
1932 |
+
'refresh_on_change' => false,
|
1933 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
1934 |
+
'affect_on_change_rule' => 'border-color',
|
1935 |
+
'section' => 'styling',
|
1936 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
1937 |
+
),
|
1938 |
+
array(
|
1939 |
+
'label' => __( 'Border Width', 'live-composer-page-builder' ),
|
1940 |
+
'id' => 'css_inputs_border_width',
|
1941 |
+
'onlypositive' => true, // Value can't be negative.
|
1942 |
+
'max' => 10,
|
1943 |
+
'std' => '1',
|
1944 |
+
'type' => 'slider',
|
1945 |
+
'refresh_on_change' => false,
|
1946 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
1947 |
+
'affect_on_change_rule' => 'border-width',
|
1948 |
+
'section' => 'styling',
|
1949 |
+
'ext' => 'px',
|
1950 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
1951 |
+
),
|
1952 |
+
array(
|
1953 |
+
'label' => __( 'Borders', 'live-composer-page-builder' ),
|
1954 |
+
'id' => 'css_inputs_border_trbl',
|
1955 |
+
'std' => 'top right bottom left',
|
1956 |
+
'type' => 'checkbox',
|
1957 |
+
'choices' => array(
|
1958 |
+
array(
|
1959 |
+
'label' => __( 'Top', 'live-composer-page-builder' ),
|
1960 |
+
'value' => 'top',
|
1961 |
+
),
|
1962 |
+
array(
|
1963 |
+
'label' => __( 'Right', 'live-composer-page-builder' ),
|
1964 |
+
'value' => 'right',
|
1965 |
+
),
|
1966 |
+
array(
|
1967 |
+
'label' => __( 'Bottom', 'live-composer-page-builder' ),
|
1968 |
+
'value' => 'bottom',
|
1969 |
+
),
|
1970 |
+
array(
|
1971 |
+
'label' => __( 'Left', 'live-composer-page-builder' ),
|
1972 |
+
'value' => 'left',
|
1973 |
+
),
|
1974 |
+
),
|
1975 |
+
'refresh_on_change' => false,
|
1976 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
1977 |
+
'affect_on_change_rule' => 'border-style',
|
1978 |
+
'section' => 'styling',
|
1979 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
1980 |
+
),
|
1981 |
+
array(
|
1982 |
+
'label' => __( 'Border Radius', 'live-composer-page-builder' ),
|
1983 |
+
'id' => 'css_inputs_border_radius',
|
1984 |
+
'onlypositive' => true, // Value can't be negative.
|
1985 |
+
'std' => '0',
|
1986 |
+
'type' => 'slider',
|
1987 |
+
'refresh_on_change' => false,
|
1988 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
1989 |
+
'affect_on_change_rule' => 'border-radius',
|
1990 |
+
'section' => 'styling',
|
1991 |
+
'ext' => 'px',
|
1992 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
1993 |
+
),
|
1994 |
+
array(
|
1995 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
1996 |
+
'id' => 'css_inputs_color',
|
1997 |
+
'std' => '#4d4d4d',
|
1998 |
+
'type' => 'color',
|
1999 |
+
'refresh_on_change' => false,
|
2000 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2001 |
+
'affect_on_change_rule' => 'color',
|
2002 |
+
'section' => 'styling',
|
2003 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2004 |
+
),
|
2005 |
+
array(
|
2006 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
2007 |
+
'id' => 'css_inputs_font_size',
|
2008 |
+
'onlypositive' => true, // Value can't be negative.
|
2009 |
+
'std' => '13',
|
2010 |
+
'type' => 'slider',
|
2011 |
+
'refresh_on_change' => false,
|
2012 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2013 |
+
'affect_on_change_rule' => 'font-size',
|
2014 |
+
'section' => 'styling',
|
2015 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2016 |
+
'ext' => 'px',
|
2017 |
+
),
|
2018 |
+
array(
|
2019 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
2020 |
+
'id' => 'css_inputs_font_weight',
|
2021 |
+
'std' => '500',
|
2022 |
+
'type' => 'select',
|
2023 |
+
'choices' => array(
|
2024 |
+
array(
|
2025 |
+
'label' => '100 - Thin',
|
2026 |
+
'value' => '100',
|
2027 |
+
),
|
2028 |
+
array(
|
2029 |
+
'label' => '200 - Extra Light',
|
2030 |
+
'value' => '200',
|
2031 |
+
),
|
2032 |
+
array(
|
2033 |
+
'label' => '300 - Light',
|
2034 |
+
'value' => '300',
|
2035 |
+
),
|
2036 |
+
array(
|
2037 |
+
'label' => '400 - Normal',
|
2038 |
+
'value' => '400',
|
2039 |
+
),
|
2040 |
+
array(
|
2041 |
+
'label' => '500 - Medium',
|
2042 |
+
'value' => '500',
|
2043 |
+
),
|
2044 |
+
array(
|
2045 |
+
'label' => '600 - Semi Bold',
|
2046 |
+
'value' => '600',
|
2047 |
+
),
|
2048 |
+
array(
|
2049 |
+
'label' => '700 - Bold',
|
2050 |
+
'value' => '700',
|
2051 |
+
),
|
2052 |
+
array(
|
2053 |
+
'label' => '800 - Extra Bold',
|
2054 |
+
'value' => '800',
|
2055 |
+
),
|
2056 |
+
array(
|
2057 |
+
'label' => '900 - Black',
|
2058 |
+
'value' => '900',
|
2059 |
+
),
|
2060 |
+
),
|
2061 |
+
'refresh_on_change' => false,
|
2062 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2063 |
+
'affect_on_change_rule' => 'font-weight',
|
2064 |
+
'section' => 'styling',
|
2065 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2066 |
+
'ext' => '',
|
2067 |
+
),
|
2068 |
+
array(
|
2069 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
2070 |
+
'id' => 'css_inputs_font_family',
|
2071 |
+
'std' => 'Open Sans',
|
2072 |
+
'type' => 'font',
|
2073 |
+
'refresh_on_change' => false,
|
2074 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2075 |
+
'affect_on_change_rule' => 'font-family',
|
2076 |
+
'section' => 'styling',
|
2077 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2078 |
+
),
|
2079 |
+
array(
|
2080 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
2081 |
+
'id' => 'css_inputs_line_height',
|
2082 |
+
'onlypositive' => true, // Value can't be negative.
|
2083 |
+
'std' => '23',
|
2084 |
+
'type' => 'slider',
|
2085 |
+
'refresh_on_change' => false,
|
2086 |
+
'affect_on_change_el' => 'textarea',
|
2087 |
+
'affect_on_change_rule' => 'line-height',
|
2088 |
+
'section' => 'styling',
|
2089 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2090 |
+
'ext' => 'px',
|
2091 |
+
),
|
2092 |
+
array(
|
2093 |
+
'label' => __( 'Margin', 'live-composer-page-builder' ),
|
2094 |
+
'id' => 'css_inputs_margin_group',
|
2095 |
+
'type' => 'group',
|
2096 |
+
'action' => 'open',
|
2097 |
+
'section' => 'styling',
|
2098 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2099 |
+
),
|
2100 |
+
array(
|
2101 |
+
'label' => __( 'Top', 'live-composer-page-builder' ),
|
2102 |
+
'id' => 'css_inputs_margin_top',
|
2103 |
+
'std' => '0',
|
2104 |
+
'type' => 'slider',
|
2105 |
+
'refresh_on_change' => false,
|
2106 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2107 |
+
'affect_on_change_rule' => 'margin-top',
|
2108 |
+
'section' => 'styling',
|
2109 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2110 |
+
'ext' => 'px',
|
2111 |
+
),
|
2112 |
+
array(
|
2113 |
+
'label' => __( 'Bottom', 'live-composer-page-builder' ),
|
2114 |
+
'id' => 'css_inputs_margin_bottom',
|
2115 |
+
'std' => '0',
|
2116 |
+
'type' => 'slider',
|
2117 |
+
'refresh_on_change' => false,
|
2118 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2119 |
+
'affect_on_change_rule' => 'margin-bottom',
|
2120 |
+
'section' => 'styling',
|
2121 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2122 |
+
'ext' => 'px',
|
2123 |
+
),
|
2124 |
+
array(
|
2125 |
+
'id' => 'css_inputs_margin_group',
|
2126 |
+
'type' => 'group',
|
2127 |
+
'action' => 'close',
|
2128 |
+
'section' => 'styling',
|
2129 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2130 |
+
),
|
2131 |
+
|
2132 |
+
array(
|
2133 |
+
'label' => __( 'Width', 'live-composer-page-builder' ),
|
2134 |
+
'id' => 'css_inputs_width',
|
2135 |
+
'std' => '100',
|
2136 |
+
'type' => 'slider',
|
2137 |
+
'refresh_on_change' => false,
|
2138 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2139 |
+
'affect_on_change_rule' => 'width',
|
2140 |
+
'section' => 'styling',
|
2141 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2142 |
+
'ext' => '%',
|
2143 |
+
),
|
2144 |
+
|
2145 |
+
array(
|
2146 |
+
'label' => __( 'Padding Vertical', 'live-composer-page-builder' ),
|
2147 |
+
'id' => 'css_inputs_padding_vertical',
|
2148 |
+
'onlypositive' => true, // Value can't be negative.
|
2149 |
+
'max' => 600,
|
2150 |
+
'std' => '10',
|
2151 |
+
'type' => 'slider',
|
2152 |
+
'refresh_on_change' => false,
|
2153 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2154 |
+
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
2155 |
+
'section' => 'styling',
|
2156 |
+
'ext' => 'px',
|
2157 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2158 |
+
),
|
2159 |
+
array(
|
2160 |
+
'label' => __( 'Padding Horizontal', 'live-composer-page-builder' ),
|
2161 |
+
'id' => 'css_inputs_padding_horizontal',
|
2162 |
+
'onlypositive' => true, // Value can't be negative.
|
2163 |
+
'std' => '15',
|
2164 |
+
'type' => 'slider',
|
2165 |
+
'refresh_on_change' => false,
|
2166 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2167 |
+
'affect_on_change_rule' => 'padding-left,padding-right',
|
2168 |
+
'section' => 'styling',
|
2169 |
+
'ext' => 'px',
|
2170 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2171 |
+
),
|
2172 |
+
array(
|
2173 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
2174 |
+
'id' => 'css_inputs_text_shadow',
|
2175 |
+
'std' => '',
|
2176 |
+
'type' => 'text_shadow',
|
2177 |
+
'refresh_on_change' => false,
|
2178 |
+
'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],input[type=tel],textarea,select',
|
2179 |
+
'affect_on_change_rule' => 'text-shadow',
|
2180 |
+
'section' => 'styling',
|
2181 |
+
'tab' => __( 'Inputs', 'live-composer-page-builder' ),
|
2182 |
+
),
|
2183 |
+
|
2184 |
+
/**
|
2185 |
+
* Blockquote
|
2186 |
+
*/
|
2187 |
+
|
2188 |
+
array(
|
2189 |
+
'label' => __( 'BG Color', 'live-composer-page-builder' ),
|
2190 |
+
'id' => 'css_blockquote_bg_color',
|
2191 |
+
'std' => '',
|
2192 |
+
'type' => 'color',
|
2193 |
+
'refresh_on_change' => false,
|
2194 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2195 |
+
'affect_on_change_rule' => 'background-color',
|
2196 |
+
'section' => 'styling',
|
2197 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2198 |
+
),
|
2199 |
+
array(
|
2200 |
+
'label' => __( 'BG Image', 'live-composer-page-builder' ),
|
2201 |
+
'id' => 'css_blockquote_bg_img',
|
2202 |
+
'std' => '',
|
2203 |
+
'type' => 'image',
|
2204 |
+
'refresh_on_change' => false,
|
2205 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2206 |
+
'affect_on_change_rule' => 'background-image',
|
2207 |
+
'section' => 'styling',
|
2208 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2209 |
+
),
|
2210 |
+
array(
|
2211 |
+
'label' => __( 'BG Image Repeat', 'live-composer-page-builder' ),
|
2212 |
+
'id' => 'css_blockquote_bg_img_repeat',
|
2213 |
+
'std' => 'repeat',
|
2214 |
+
'type' => 'select',
|
2215 |
+
'choices' => array(
|
2216 |
+
array(
|
2217 |
+
'label' => __( 'Repeat', 'live-composer-page-builder' ),
|
2218 |
+
'value' => 'repeat',
|
2219 |
+
),
|
2220 |
+
array(
|
2221 |
+
'label' => __( 'Repeat Horizontal', 'live-composer-page-builder' ),
|
2222 |
+
'value' => 'repeat-x',
|
2223 |
+
),
|
2224 |
+
array(
|
2225 |
+
'label' => __( 'Repeat Vertical', 'live-composer-page-builder' ),
|
2226 |
+
'value' => 'repeat-y',
|
2227 |
+
),
|
2228 |
+
array(
|
2229 |
+
'label' => __( 'Do NOT Repeat', 'live-composer-page-builder' ),
|
2230 |
+
'value' => 'no-repeat',
|
2231 |
+
),
|
2232 |
+
),
|
2233 |
+
'refresh_on_change' => false,
|
2234 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2235 |
+
'affect_on_change_rule' => 'background-repeat',
|
2236 |
+
'section' => 'styling',
|
2237 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2238 |
+
),
|
2239 |
+
array(
|
2240 |
+
'label' => __( 'BG Image Attachment', 'live-composer-page-builder' ),
|
2241 |
+
'id' => 'css_blockquote_bg_img_attch',
|
2242 |
+
'std' => 'scroll',
|
2243 |
+
'type' => 'select',
|
2244 |
+
'choices' => array(
|
2245 |
+
array(
|
2246 |
+
'label' => __( 'Scroll', 'live-composer-page-builder' ),
|
2247 |
+
'value' => 'scroll',
|
2248 |
+
),
|
2249 |
+
array(
|
2250 |
+
'label' => __( 'Fixed', 'live-composer-page-builder' ),
|
2251 |
+
'value' => 'fixed',
|
2252 |
+
),
|
2253 |
+
),
|
2254 |
+
'refresh_on_change' => false,
|
2255 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2256 |
+
'affect_on_change_rule' => 'background-attachment',
|
2257 |
+
'section' => 'styling',
|
2258 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2259 |
+
),
|
2260 |
+
array(
|
2261 |
+
'label' => __( 'BG Image Position', 'live-composer-page-builder' ),
|
2262 |
+
'id' => 'css_blockquote_bg_img_pos',
|
2263 |
+
'std' => 'top left',
|
2264 |
+
'type' => 'select',
|
2265 |
+
'choices' => array(
|
2266 |
+
array(
|
2267 |
+
'label' => __( 'Top Left', 'live-composer-page-builder' ),
|
2268 |
+
'value' => 'left top',
|
2269 |
+
),
|
2270 |
+
array(
|
2271 |
+
'label' => __( 'Top Right', 'live-composer-page-builder' ),
|
2272 |
+
'value' => 'right top',
|
2273 |
+
),
|
2274 |
+
array(
|
2275 |
+
'label' => __( 'Top Center', 'live-composer-page-builder' ),
|
2276 |
+
'value' => 'Center Top',
|
2277 |
+
),
|
2278 |
+
array(
|
2279 |
+
'label' => __( 'Center Left', 'live-composer-page-builder' ),
|
2280 |
+
'value' => 'left center',
|
2281 |
+
),
|
2282 |
+
array(
|
2283 |
+
'label' => __( 'Center Right', 'live-composer-page-builder' ),
|
2284 |
+
'value' => 'right center',
|
2285 |
+
),
|
2286 |
+
array(
|
2287 |
+
'label' => __( 'Center', 'live-composer-page-builder' ),
|
2288 |
+
'value' => 'center center',
|
2289 |
+
),
|
2290 |
+
array(
|
2291 |
+
'label' => __( 'Bottom Left', 'live-composer-page-builder' ),
|
2292 |
+
'value' => 'left bottom',
|
2293 |
+
),
|
2294 |
+
array(
|
2295 |
+
'label' => __( 'Bottom Right', 'live-composer-page-builder' ),
|
2296 |
+
'value' => 'right bottom',
|
2297 |
+
),
|
2298 |
+
array(
|
2299 |
+
'label' => __( 'Bottom Center', 'live-composer-page-builder' ),
|
2300 |
+
'value' => 'center bottom',
|
2301 |
+
),
|
2302 |
+
array(
|
2303 |
+
'label' => __( '25px 25px', 'live-composer-page-builder' ),
|
2304 |
+
'value' => '25px 25px',
|
2305 |
+
),
|
2306 |
+
array(
|
2307 |
+
'label' => __( '50px 50px', 'live-composer-page-builder' ),
|
2308 |
+
'value' => '50px 50px',
|
2309 |
+
),
|
2310 |
+
array(
|
2311 |
+
'label' => __( '100px 100px', 'live-composer-page-builder' ),
|
2312 |
+
'value' => '100px 100px',
|
2313 |
+
),
|
2314 |
+
array(
|
2315 |
+
'label' => __( '200px 200px', 'live-composer-page-builder' ),
|
2316 |
+
'value' => '200px 200px',
|
2317 |
+
),
|
2318 |
+
),
|
2319 |
+
'refresh_on_change' => false,
|
2320 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2321 |
+
'affect_on_change_rule' => 'background-position',
|
2322 |
+
'section' => 'styling',
|
2323 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2324 |
+
),
|
2325 |
+
array(
|
2326 |
+
'label' => __( 'Border Color', 'live-composer-page-builder' ),
|
2327 |
+
'id' => 'css_blockquote_border_color',
|
2328 |
+
'std' => '',
|
2329 |
+
'type' => 'color',
|
2330 |
+
'refresh_on_change' => false,
|
2331 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2332 |
+
'affect_on_change_rule' => 'border-color',
|
2333 |
+
'section' => 'styling',
|
2334 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2335 |
+
),
|
2336 |
+
array(
|
2337 |
+
'label' => __( 'Border Width', 'live-composer-page-builder' ),
|
2338 |
+
'id' => 'css_blockquote_border_width',
|
2339 |
+
'onlypositive' => true, // Value can't be negative.
|
2340 |
+
'max' => 10,
|
2341 |
+
'std' => '0',
|
2342 |
+
'type' => 'slider',
|
2343 |
+
'refresh_on_change' => false,
|
2344 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2345 |
+
'affect_on_change_rule' => 'border-width',
|
2346 |
+
'section' => 'styling',
|
2347 |
+
'ext' => 'px',
|
2348 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2349 |
+
),
|
2350 |
+
array(
|
2351 |
+
'label' => __( 'Borders', 'live-composer-page-builder' ),
|
2352 |
+
'id' => 'css_blockquote_border_trbl',
|
2353 |
+
'std' => 'top right bottom left',
|
2354 |
+
'type' => 'checkbox',
|
2355 |
+
'choices' => array(
|
2356 |
+
array(
|
2357 |
+
'label' => __( 'Top', 'live-composer-page-builder' ),
|
2358 |
+
'value' => 'top',
|
2359 |
+
),
|
2360 |
+
array(
|
2361 |
+
'label' => __( 'Right', 'live-composer-page-builder' ),
|
2362 |
+
'value' => 'right',
|
2363 |
+
),
|
2364 |
+
array(
|
2365 |
+
'label' => __( 'Bottom', 'live-composer-page-builder' ),
|
2366 |
+
'value' => 'bottom',
|
2367 |
+
),
|
2368 |
+
array(
|
2369 |
+
'label' => __( 'Left', 'live-composer-page-builder' ),
|
2370 |
+
'value' => 'left',
|
2371 |
+
),
|
2372 |
+
),
|
2373 |
+
'refresh_on_change' => false,
|
2374 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2375 |
+
'affect_on_change_rule' => 'border-style',
|
2376 |
+
'section' => 'styling',
|
2377 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2378 |
+
),
|
2379 |
+
array(
|
2380 |
+
'label' => __( 'Border Radius - Top', 'live-composer-page-builder' ),
|
2381 |
+
'id' => 'css_blockquote_border_radius_top',
|
2382 |
+
'onlypositive' => true, // Value can't be negative.
|
2383 |
+
'std' => '0',
|
2384 |
+
'type' => 'slider',
|
2385 |
+
'refresh_on_change' => false,
|
2386 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2387 |
+
'affect_on_change_rule' => 'border-top-left-radius,border-top-right-radius',
|
2388 |
+
'section' => 'styling',
|
2389 |
+
'ext' => 'px',
|
2390 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2391 |
+
),
|
2392 |
+
array(
|
2393 |
+
'label' => __( 'Border Radius - Bottom', 'live-composer-page-builder' ),
|
2394 |
+
'id' => 'css_blockquote_border_radius_bottom',
|
2395 |
+
'onlypositive' => true, // Value can't be negative.
|
2396 |
+
'std' => '0',
|
2397 |
+
'type' => 'slider',
|
2398 |
+
'refresh_on_change' => false,
|
2399 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2400 |
+
'affect_on_change_rule' => 'border-bottom-left-radius,border-bottom-right-radius',
|
2401 |
+
'section' => 'styling',
|
2402 |
+
'ext' => 'px',
|
2403 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2404 |
+
),
|
2405 |
+
array(
|
2406 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
2407 |
+
'id' => 'css_blockquote_color',
|
2408 |
+
'std' => '',
|
2409 |
+
'type' => 'color',
|
2410 |
+
'refresh_on_change' => false,
|
2411 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote, .dslc-module-shortcode blockquote p',
|
2412 |
+
'affect_on_change_rule' => 'color',
|
2413 |
+
'section' => 'styling',
|
2414 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2415 |
+
),
|
2416 |
+
array(
|
2417 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
2418 |
+
'id' => 'css_blockquote_font_size',
|
2419 |
+
'onlypositive' => true, // Value can't be negative.
|
2420 |
+
'std' => '13',
|
2421 |
+
'type' => 'slider',
|
2422 |
+
'refresh_on_change' => false,
|
2423 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote, .dslc-module-shortcode blockquote p',
|
2424 |
+
'affect_on_change_rule' => 'font-size',
|
2425 |
+
'section' => 'styling',
|
2426 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2427 |
+
'ext' => 'px',
|
2428 |
+
),
|
2429 |
+
array(
|
2430 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
2431 |
+
'id' => 'css_blockquote_font_weight',
|
2432 |
+
'std' => '400',
|
2433 |
+
'type' => 'select',
|
2434 |
+
'choices' => array(
|
2435 |
+
array(
|
2436 |
+
'label' => '100 - Thin',
|
2437 |
+
'value' => '100',
|
2438 |
+
),
|
2439 |
+
array(
|
2440 |
+
'label' => '200 - Extra Light',
|
2441 |
+
'value' => '200',
|
2442 |
+
),
|
2443 |
+
array(
|
2444 |
+
'label' => '300 - Light',
|
2445 |
+
'value' => '300',
|
2446 |
+
),
|
2447 |
+
array(
|
2448 |
+
'label' => '400 - Normal',
|
2449 |
+
'value' => '400',
|
2450 |
+
),
|
2451 |
+
array(
|
2452 |
+
'label' => '500 - Medium',
|
2453 |
+
'value' => '500',
|
2454 |
+
),
|
2455 |
+
array(
|
2456 |
+
'label' => '600 - Semi Bold',
|
2457 |
+
'value' => '600',
|
2458 |
+
),
|
2459 |
+
array(
|
2460 |
+
'label' => '700 - Bold',
|
2461 |
+
'value' => '700',
|
2462 |
+
),
|
2463 |
+
array(
|
2464 |
+
'label' => '800 - Extra Bold',
|
2465 |
+
'value' => '800',
|
2466 |
+
),
|
2467 |
+
array(
|
2468 |
+
'label' => '900 - Black',
|
2469 |
+
'value' => '900',
|
2470 |
+
),
|
2471 |
+
),
|
2472 |
+
'refresh_on_change' => false,
|
2473 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote, .dslc-module-shortcode blockquote p',
|
2474 |
+
'affect_on_change_rule' => 'font-weight',
|
2475 |
+
'section' => 'styling',
|
2476 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2477 |
+
'ext' => '',
|
2478 |
+
),
|
2479 |
+
array(
|
2480 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
2481 |
+
'id' => 'css_blockquote_font_family',
|
2482 |
+
'std' => 'Open Sans',
|
2483 |
+
'type' => 'font',
|
2484 |
+
'refresh_on_change' => false,
|
2485 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote, .dslc-module-shortcode blockquote p',
|
2486 |
+
'affect_on_change_rule' => 'font-family',
|
2487 |
+
'section' => 'styling',
|
2488 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2489 |
+
),
|
2490 |
+
array(
|
2491 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
2492 |
+
'id' => 'css_blockquote_line_height',
|
2493 |
+
'onlypositive' => true, // Value can't be negative.
|
2494 |
+
'std' => '22',
|
2495 |
+
'type' => 'slider',
|
2496 |
+
'refresh_on_change' => false,
|
2497 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote, .dslc-module-shortcode blockquote p',
|
2498 |
+
'affect_on_change_rule' => 'line-height',
|
2499 |
+
'section' => 'styling',
|
2500 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2501 |
+
'ext' => 'px',
|
2502 |
+
),
|
2503 |
+
array(
|
2504 |
+
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
2505 |
+
'id' => 'css_blockquote_margin_bottom',
|
2506 |
+
'std' => '0',
|
2507 |
+
'type' => 'slider',
|
2508 |
+
'refresh_on_change' => false,
|
2509 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2510 |
+
'affect_on_change_rule' => 'margin-bottom',
|
2511 |
+
'section' => 'styling',
|
2512 |
+
'ext' => 'px',
|
2513 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2514 |
+
),
|
2515 |
+
array(
|
2516 |
+
'label' => __( 'Margin Left', 'live-composer-page-builder' ),
|
2517 |
+
'id' => 'css_blockquote_margin_left',
|
2518 |
+
'std' => '0',
|
2519 |
+
'type' => 'slider',
|
2520 |
+
'refresh_on_change' => false,
|
2521 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2522 |
+
'affect_on_change_rule' => 'margin-left',
|
2523 |
+
'section' => 'styling',
|
2524 |
+
'ext' => 'px',
|
2525 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2526 |
+
),
|
2527 |
+
array(
|
2528 |
+
'label' => __( 'Padding Vertical', 'live-composer-page-builder' ),
|
2529 |
+
'id' => 'css_blockquote_padding_vertical',
|
2530 |
+
'onlypositive' => true, // Value can't be negative.
|
2531 |
+
'max' => 600,
|
2532 |
+
'std' => '0',
|
2533 |
+
'type' => 'slider',
|
2534 |
+
'refresh_on_change' => false,
|
2535 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2536 |
+
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
2537 |
+
'section' => 'styling',
|
2538 |
+
'ext' => 'px',
|
2539 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2540 |
+
),
|
2541 |
+
array(
|
2542 |
+
'label' => __( 'Padding Horizontal', 'live-composer-page-builder' ),
|
2543 |
+
'id' => 'css_blockquote_padding_horizontal',
|
2544 |
+
'onlypositive' => true, // Value can't be negative.
|
2545 |
+
'std' => '0',
|
2546 |
+
'type' => 'slider',
|
2547 |
+
'refresh_on_change' => false,
|
2548 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2549 |
+
'affect_on_change_rule' => 'padding-left,padding-right',
|
2550 |
+
'section' => 'styling',
|
2551 |
+
'ext' => 'px',
|
2552 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2553 |
+
),
|
2554 |
+
array(
|
2555 |
+
'label' => __( 'Text Align', 'live-composer-page-builder' ),
|
2556 |
+
'id' => 'css_blockquote_text_align',
|
2557 |
+
'std' => 'left',
|
2558 |
+
'type' => 'text_align',
|
2559 |
+
'refresh_on_change' => false,
|
2560 |
+
'affect_on_change_el' => 'blockquote, .dslc-module-shortcode blockquote p',
|
2561 |
+
'affect_on_change_rule' => 'text-align',
|
2562 |
+
'section' => 'styling',
|
2563 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2564 |
+
),
|
2565 |
+
array(
|
2566 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
2567 |
+
'id' => 'css_blockquote_text_shadow',
|
2568 |
+
'std' => '',
|
2569 |
+
'type' => 'text_shadow',
|
2570 |
+
'refresh_on_change' => false,
|
2571 |
+
'affect_on_change_el' => '.dslc-module-shortcode blockquote',
|
2572 |
+
'affect_on_change_rule' => 'text-shadow',
|
2573 |
+
'section' => 'styling',
|
2574 |
+
'tab' => __( 'Blockquote', 'live-composer-page-builder' ),
|
2575 |
+
),
|
2576 |
+
|
2577 |
+
/**
|
2578 |
+
* Submit Button
|
2579 |
+
*/
|
2580 |
+
|
2581 |
+
array(
|
2582 |
+
'label' => __( 'BG Color', 'live-composer-page-builder' ),
|
2583 |
+
'id' => 'css_button_bg_color',
|
2584 |
+
'std' => '#5890e5',
|
2585 |
+
'type' => 'color',
|
2586 |
+
'refresh_on_change' => false,
|
2587 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2588 |
+
'affect_on_change_rule' => 'background-color',
|
2589 |
+
'section' => 'styling',
|
2590 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2591 |
+
),
|
2592 |
+
array(
|
2593 |
+
'label' => __( 'BG Color - Hover', 'live-composer-page-builder' ),
|
2594 |
+
'id' => 'css_button_bg_color_hover',
|
2595 |
+
'std' => '#5890e5',
|
2596 |
+
'type' => 'color',
|
2597 |
+
'refresh_on_change' => false,
|
2598 |
+
'affect_on_change_el' => 'input[type=submit]:hover, input[type=button]:hover, button:hover',
|
2599 |
+
'affect_on_change_rule' => 'background-color',
|
2600 |
+
'section' => 'styling',
|
2601 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2602 |
+
),
|
2603 |
+
array(
|
2604 |
+
'label' => __( 'Border Color', 'live-composer-page-builder' ),
|
2605 |
+
'id' => 'css_button_border_color',
|
2606 |
+
'std' => '#5890e5',
|
2607 |
+
'type' => 'color',
|
2608 |
+
'refresh_on_change' => false,
|
2609 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2610 |
+
'affect_on_change_rule' => 'border-color',
|
2611 |
+
'section' => 'styling',
|
2612 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2613 |
+
),
|
2614 |
+
array(
|
2615 |
+
'label' => __( 'Border Color - Hover', 'live-composer-page-builder' ),
|
2616 |
+
'id' => 'css_button_border_color_hover',
|
2617 |
+
'std' => '#5890e5',
|
2618 |
+
'type' => 'color',
|
2619 |
+
'refresh_on_change' => false,
|
2620 |
+
'affect_on_change_el' => 'input[type=submit]:hover, input[type=button]:hover, button:hover',
|
2621 |
+
'affect_on_change_rule' => 'border-color',
|
2622 |
+
'section' => 'styling',
|
2623 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2624 |
+
),
|
2625 |
+
array(
|
2626 |
+
'label' => __( 'Border Width', 'live-composer-page-builder' ),
|
2627 |
+
'id' => 'css_button_border_width',
|
2628 |
+
'onlypositive' => true, // Value can't be negative.
|
2629 |
+
'max' => 10,
|
2630 |
+
'std' => '0',
|
2631 |
+
'type' => 'slider',
|
2632 |
+
'refresh_on_change' => false,
|
2633 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2634 |
+
'affect_on_change_rule' => 'border-width',
|
2635 |
+
'section' => 'styling',
|
2636 |
+
'ext' => 'px',
|
2637 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2638 |
+
),
|
2639 |
+
array(
|
2640 |
+
'label' => __( 'Borders', 'live-composer-page-builder' ),
|
2641 |
+
'id' => 'css_button_border_trbl',
|
2642 |
+
'std' => 'top right bottom left',
|
2643 |
+
'type' => 'checkbox',
|
2644 |
+
'choices' => array(
|
2645 |
+
array(
|
2646 |
+
'label' => __( 'Top', 'live-composer-page-builder' ),
|
2647 |
+
'value' => 'top',
|
2648 |
+
),
|
2649 |
+
array(
|
2650 |
+
'label' => __( 'Right', 'live-composer-page-builder' ),
|
2651 |
+
'value' => 'right',
|
2652 |
+
),
|
2653 |
+
array(
|
2654 |
+
'label' => __( 'Bottom', 'live-composer-page-builder' ),
|
2655 |
+
'value' => 'bottom',
|
2656 |
+
),
|
2657 |
+
array(
|
2658 |
+
'label' => __( 'Left', 'live-composer-page-builder' ),
|
2659 |
+
'value' => 'left',
|
2660 |
+
),
|
2661 |
+
),
|
2662 |
+
'refresh_on_change' => false,
|
2663 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2664 |
+
'affect_on_change_rule' => 'border-style',
|
2665 |
+
'section' => 'styling',
|
2666 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2667 |
+
),
|
2668 |
+
array(
|
2669 |
+
'label' => __( 'Border Radius', 'live-composer-page-builder' ),
|
2670 |
+
'id' => 'css_button_border_radius',
|
2671 |
+
'onlypositive' => true, // Value can't be negative.
|
2672 |
+
'std' => '3',
|
2673 |
+
'type' => 'slider',
|
2674 |
+
'refresh_on_change' => false,
|
2675 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2676 |
+
'affect_on_change_rule' => 'border-radius',
|
2677 |
+
'section' => 'styling',
|
2678 |
+
'ext' => 'px',
|
2679 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2680 |
+
),
|
2681 |
+
array(
|
2682 |
+
'label' => __( 'Color', 'live-composer-page-builder' ),
|
2683 |
+
'id' => 'css_button_color',
|
2684 |
+
'std' => '#fff',
|
2685 |
+
'type' => 'color',
|
2686 |
+
'refresh_on_change' => false,
|
2687 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2688 |
+
'affect_on_change_rule' => 'color',
|
2689 |
+
'section' => 'styling',
|
2690 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2691 |
+
),
|
2692 |
+
array(
|
2693 |
+
'label' => __( 'Color - Hover', 'live-composer-page-builder' ),
|
2694 |
+
'id' => 'css_button_color_hover',
|
2695 |
+
'std' => '#fff',
|
2696 |
+
'type' => 'color',
|
2697 |
+
'refresh_on_change' => false,
|
2698 |
+
'affect_on_change_el' => 'input[type=submit]:hover, input[type=button]:hover, button:hover',
|
2699 |
+
'affect_on_change_rule' => 'color',
|
2700 |
+
'section' => 'styling',
|
2701 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2702 |
+
),
|
2703 |
+
array(
|
2704 |
+
'label' => __( 'Font Size', 'live-composer-page-builder' ),
|
2705 |
+
'id' => 'css_button_font_size',
|
2706 |
+
'onlypositive' => true, // Value can't be negative.
|
2707 |
+
'std' => '13',
|
2708 |
+
'type' => 'slider',
|
2709 |
+
'refresh_on_change' => false,
|
2710 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2711 |
+
'affect_on_change_rule' => 'font-size',
|
2712 |
+
'section' => 'styling',
|
2713 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2714 |
+
'ext' => 'px',
|
2715 |
+
),
|
2716 |
+
array(
|
2717 |
+
'label' => __( 'Font Weight', 'live-composer-page-builder' ),
|
2718 |
+
'id' => 'css_button_font_weight',
|
2719 |
+
'std' => '500',
|
2720 |
+
'type' => 'select',
|
2721 |
+
'choices' => array(
|
2722 |
+
array(
|
2723 |
+
'label' => '100 - Thin',
|
2724 |
+
'value' => '100',
|
2725 |
+
),
|
2726 |
+
array(
|
2727 |
+
'label' => '200 - Extra Light',
|
2728 |
+
'value' => '200',
|
2729 |
+
),
|
2730 |
+
array(
|
2731 |
+
'label' => '300 - Light',
|
2732 |
+
'value' => '300',
|
2733 |
+
),
|
2734 |
+
array(
|
2735 |
+
'label' => '400 - Normal',
|
2736 |
+
'value' => '400',
|
2737 |
+
),
|
2738 |
+
array(
|
2739 |
+
'label' => '500 - Medium',
|
2740 |
+
'value' => '500',
|
2741 |
+
),
|
2742 |
+
array(
|
2743 |
+
'label' => '600 - Semi Bold',
|
2744 |
+
'value' => '600',
|
2745 |
+
),
|
2746 |
+
array(
|
2747 |
+
'label' => '700 - Bold',
|
2748 |
+
'value' => '700',
|
2749 |
+
),
|
2750 |
+
array(
|
2751 |
+
'label' => '800 - Extra Bold',
|
2752 |
+
'value' => '800',
|
2753 |
+
),
|
2754 |
+
array(
|
2755 |
+
'label' => '900 - Black',
|
2756 |
+
'value' => '900',
|
2757 |
+
),
|
2758 |
+
),
|
2759 |
+
'refresh_on_change' => false,
|
2760 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2761 |
+
'affect_on_change_rule' => 'font-weight',
|
2762 |
+
'section' => 'styling',
|
2763 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2764 |
+
'ext' => '',
|
2765 |
+
),
|
2766 |
+
array(
|
2767 |
+
'label' => __( 'Font Family', 'live-composer-page-builder' ),
|
2768 |
+
'id' => 'css_button_font_family',
|
2769 |
+
'std' => 'Open Sans',
|
2770 |
+
'type' => 'font',
|
2771 |
+
'refresh_on_change' => false,
|
2772 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2773 |
+
'affect_on_change_rule' => 'font-family',
|
2774 |
+
'section' => 'styling',
|
2775 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2776 |
+
),
|
2777 |
+
array(
|
2778 |
+
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
2779 |
+
'id' => 'css_button_line_height',
|
2780 |
+
'onlypositive' => true, // Value can't be negative.
|
2781 |
+
'std' => '13',
|
2782 |
+
'type' => 'slider',
|
2783 |
+
'refresh_on_change' => false,
|
2784 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2785 |
+
'affect_on_change_rule' => 'line-height',
|
2786 |
+
'section' => 'styling',
|
2787 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2788 |
+
'ext' => 'px',
|
2789 |
+
),
|
2790 |
+
array(
|
2791 |
+
'label' => __( 'Padding Vertical', 'live-composer-page-builder' ),
|
2792 |
+
'id' => 'css_button_padding_vertical',
|
2793 |
+
'onlypositive' => true, // Value can't be negative.
|
2794 |
+
'max' => 600,
|
2795 |
+
'std' => '10',
|
2796 |
+
'type' => 'slider',
|
2797 |
+
'refresh_on_change' => false,
|
2798 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2799 |
+
'affect_on_change_rule' => 'padding-top,padding-bottom',
|
2800 |
+
'section' => 'styling',
|
2801 |
+
'ext' => 'px',
|
2802 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2803 |
+
),
|
2804 |
+
array(
|
2805 |
+
'label' => __( 'Padding Horizontal', 'live-composer-page-builder' ),
|
2806 |
+
'id' => 'css_button_padding_horizontal',
|
2807 |
+
'onlypositive' => true, // Value can't be negative.
|
2808 |
+
'std' => '15',
|
2809 |
+
'type' => 'slider',
|
2810 |
+
'refresh_on_change' => false,
|
2811 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2812 |
+
'affect_on_change_rule' => 'padding-left,padding-right',
|
2813 |
+
'section' => 'styling',
|
2814 |
+
'ext' => 'px',
|
2815 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2816 |
+
),
|
2817 |
+
array(
|
2818 |
+
'label' => __( 'Text Shadow', 'live-composer-page-builder' ),
|
2819 |
+
'id' => 'css_button_text_shadow',
|
2820 |
+
'std' => '',
|
2821 |
+
'type' => 'text_shadow',
|
2822 |
+
'refresh_on_change' => false,
|
2823 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2824 |
+
'affect_on_change_rule' => 'text-shadow',
|
2825 |
+
'section' => 'styling',
|
2826 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2827 |
+
),
|
2828 |
+
array(
|
2829 |
+
'label' => __( 'Box Shadow', 'live-composer-page-builder' ),
|
2830 |
+
'id' => 'css_button_box_shadow',
|
2831 |
+
'std' => '',
|
2832 |
+
'type' => 'box_shadow',
|
2833 |
+
'refresh_on_change' => false,
|
2834 |
+
'affect_on_change_el' => 'input[type=submit], input[type=button], button',
|
2835 |
+
'affect_on_change_rule' => 'box-shadow',
|
2836 |
+
'section' => 'styling',
|
2837 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2838 |
+
),
|
2839 |
+
array(
|
2840 |
+
'label' => __( 'Box Shadow - Hover', 'live-composer-page-builder' ),
|
2841 |
+
'id' => 'css_button_box_shadow_hover',
|
2842 |
+
'std' => '',
|
2843 |
+
'type' => 'box_shadow',
|
2844 |
+
'refresh_on_change' => false,
|
2845 |
+
'affect_on_change_el' => 'input[type=submit]:hover, input[type=button]:hover, button:hover',
|
2846 |
+
'affect_on_change_rule' => 'box-shadow',
|
2847 |
+
'section' => 'styling',
|
2848 |
+
'tab' => __( 'Buttons', 'live-composer-page-builder' ),
|
2849 |
+
),
|
2850 |
+
);
|
2851 |
+
|
2852 |
+
$dslc_options = array_merge( $dslc_options, $this->shared_options( 'animation_options', array( 'hover_opts' => false ) ) );
|
2853 |
+
$dslc_options = array_merge( $dslc_options, $this->presets_options() );
|
2854 |
+
|
2855 |
+
return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
|
2856 |
+
}
|
2857 |
+
|
2858 |
+
/**
|
2859 |
+
* Module HTML output.
|
2860 |
+
*
|
2861 |
+
* @param array $options Module options to fill the module template.
|
2862 |
+
* @return void
|
2863 |
+
*/
|
2864 |
+
function output( $options ) {
|
2865 |
+
|
2866 |
+
global $dslc_active;
|
2867 |
+
|
2868 |
+
if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
|
2869 |
+
$dslc_is_admin = true;
|
2870 |
+
} else {
|
2871 |
+
$dslc_is_admin = false;
|
2872 |
+
}
|
2873 |
+
|
2874 |
+
// Check if Error-Proof mode activated in module options.
|
2875 |
+
$error_proof_mode = false;
|
2876 |
+
if ( isset( $options['error_proof_mode'] ) && '' !== $options['error_proof_mode'] ) {
|
2877 |
+
$error_proof_mode = true;
|
2878 |
+
}
|
2879 |
+
|
2880 |
+
// Check if module rendered via ajax call.
|
2881 |
+
$ajax_module_render = true;
|
2882 |
+
if ( isset( $options['module_render_nonajax'] ) ) {
|
2883 |
+
$ajax_module_render = false;
|
2884 |
+
}
|
2885 |
+
|
2886 |
+
// Decide if we should render the module or wait for the page refresh.
|
2887 |
+
$render_code = true;
|
2888 |
+
if ( $dslc_is_admin && $error_proof_mode && $ajax_module_render ) {
|
2889 |
+
$render_code = false;
|
2890 |
+
}
|
2891 |
+
|
2892 |
+
$this->module_start( $options );
|
2893 |
+
|
2894 |
+
?>
|
2895 |
+
|
2896 |
+
<div class="dslc-module-shortcode">
|
2897 |
+
|
2898 |
+
<?php
|
2899 |
+
|
2900 |
+
if ( empty( $options['content'] ) ) {
|
2901 |
+
$output_content = '<div class="dslc-notification dslc-red">' . __( 'Please add your shortcode in the module settings.', 'live-composer-page-builder' ) . '</div>';
|
2902 |
+
} elseif ( $render_code ) {
|
2903 |
+
$output_content = stripslashes( $options['content'] );
|
2904 |
+
$output_content = do_shortcode( $output_content );
|
2905 |
+
} else {
|
2906 |
+
$output_content = '<div class="dslc-notification dslc-green">' . __( 'Save and refresh the page to display the module safely.', 'live-composer-page-builder' ) . '</div>';
|
2907 |
+
}
|
2908 |
+
|
2909 |
+
echo apply_filters( 'dslc_before_render', $output_content );
|
2910 |
+
|
2911 |
+
?>
|
2912 |
+
|
2913 |
+
</div>
|
2914 |
+
|
2915 |
+
<?php
|
2916 |
+
|
2917 |
+
$this->module_end( $options );
|
2918 |
+
|
2919 |
+
}
|
2920 |
+
}
|
modules/tabs/module.php
CHANGED
@@ -3580,9 +3580,8 @@ class DSLC_Tabs extends DSLC_Module {
|
|
3580 |
<div class="dslca-editable-content"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>
|
3581 |
<?php
|
3582 |
$tab_content_output = stripslashes( $tab_content );
|
3583 |
-
$tab_content_output =
|
3584 |
-
|
3585 |
-
echo do_shortcode( $tab_content_output );
|
3586 |
?>
|
3587 |
</div>
|
3588 |
<?php if ( $dslc_is_admin ) : ?>
|
3580 |
<div class="dslca-editable-content"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>
|
3581 |
<?php
|
3582 |
$tab_content_output = stripslashes( $tab_content );
|
3583 |
+
$tab_content_output = do_shortcode( $tab_content_output );
|
3584 |
+
echo apply_filters( 'dslc_before_render', $tab_content_output );
|
|
|
3585 |
?>
|
3586 |
</div>
|
3587 |
<?php if ( $dslc_is_admin ) : ?>
|
modules/text-simple/module.php
CHANGED
@@ -4964,10 +4964,8 @@ class DSLC_Text_Simple extends DSLC_Module {
|
|
4964 |
}
|
4965 |
|
4966 |
$output_content = stripslashes( $options['content'] );
|
4967 |
-
$output_content = str_replace( '<lctextarea', '<textarea', $output_content );
|
4968 |
-
$output_content = str_replace( '</lctextarea', '</textarea', $output_content );
|
4969 |
$output_content = do_shortcode( $output_content );
|
4970 |
-
echo $output_content;
|
4971 |
|
4972 |
if ( $dslc_active ) {
|
4973 |
?></div><!-- .dslca-editable-content --><?php
|
4964 |
}
|
4965 |
|
4966 |
$output_content = stripslashes( $options['content'] );
|
|
|
|
|
4967 |
$output_content = do_shortcode( $output_content );
|
4968 |
+
echo apply_filters( 'dslc_before_render', $output_content );
|
4969 |
|
4970 |
if ( $dslc_active ) {
|
4971 |
?></div><!-- .dslca-editable-content --><?php
|
modules/tp-comments-form/module.php
CHANGED
@@ -1317,7 +1317,7 @@ class DSLC_TP_Comments_Form extends DSLC_Module {
|
|
1317 |
'comment_notes_after' => '',
|
1318 |
'title_reply' => $txt_leave_comment,
|
1319 |
'title_reply_to' => __( 'Reply to %s.', 'live-composer-page-builder' ),
|
1320 |
-
'comment_field' => '<div class="comment-form-comment"><textarea id="comment" name="comment" placeholder="' .
|
1321 |
'fields' => apply_filters( 'comment_form_default_fields', array(
|
1322 |
'author' => '<div class="comment-form-name"><input id="author" name="author" type=text value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" placeholder="' . $txt_name . ' *" aria-required="true" /></div>',
|
1323 |
'email' => '<div class="comment-form-email"><input id="email" name="email" type=text value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" placeholder="' . $txt_email . ' *" aria-required="true" /></div>',
|
1317 |
'comment_notes_after' => '',
|
1318 |
'title_reply' => $txt_leave_comment,
|
1319 |
'title_reply_to' => __( 'Reply to %s.', 'live-composer-page-builder' ),
|
1320 |
+
'comment_field' => '<div class="comment-form-comment"><textarea id="comment" name="comment" placeholder="' . $txt_comment . '" aria-required="true"></textarea></div>',
|
1321 |
'fields' => apply_filters( 'comment_form_default_fields', array(
|
1322 |
'author' => '<div class="comment-form-name"><input id="author" name="author" type=text value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" placeholder="' . $txt_name . ' *" aria-required="true" /></div>',
|
1323 |
'email' => '<div class="comment-form-email"><input id="email" name="email" type=text value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" placeholder="' . $txt_email . ' *" aria-required="true" /></div>',
|
modules/tp-content/module.php
CHANGED
@@ -274,15 +274,61 @@ class DSLC_TP_Content extends DSLC_Module {
|
|
274 |
'ext' => 'px',
|
275 |
),
|
276 |
array(
|
277 |
-
'label' => __( 'Margin
|
278 |
-
'id' => '
|
279 |
-
'
|
280 |
-
'
|
281 |
-
'
|
282 |
-
|
283 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
'section' => 'styling',
|
285 |
-
'ext' => 'px',
|
286 |
),
|
287 |
array(
|
288 |
'label' => __( 'Minimum Height', 'live-composer-page-builder' ),
|
274 |
'ext' => 'px',
|
275 |
),
|
276 |
array(
|
277 |
+
'label' => __( 'Margin', 'live-composer-page-builder' ),
|
278 |
+
'id' => 'css_margin_group',
|
279 |
+
'type' => 'group',
|
280 |
+
'action' => 'open',
|
281 |
+
'section' => 'styling',
|
282 |
+
),
|
283 |
+
array(
|
284 |
+
'label' => __( 'Top', 'live-composer-page-builder' ),
|
285 |
+
'id' => 'css_margin_top',
|
286 |
+
'std' => '0',
|
287 |
+
'type' => 'slider',
|
288 |
+
'refresh_on_change' => false,
|
289 |
+
'affect_on_change_el' => '.dslc-tp-content',
|
290 |
+
'affect_on_change_rule' => 'margin-top',
|
291 |
+
'section' => 'styling',
|
292 |
+
'ext' => 'px',
|
293 |
+
),
|
294 |
+
array(
|
295 |
+
'label' => __( 'Right', 'live-composer-page-builder' ),
|
296 |
+
'id' => 'css_margin_right',
|
297 |
+
'std' => '0',
|
298 |
+
'type' => 'slider',
|
299 |
+
'refresh_on_change' => false,
|
300 |
+
'affect_on_change_el' => '.dslc-tp-content',
|
301 |
+
'affect_on_change_rule' => 'margin-right',
|
302 |
+
'section' => 'styling',
|
303 |
+
'ext' => 'px',
|
304 |
+
),
|
305 |
+
array(
|
306 |
+
'label' => __( 'Bottom', 'live-composer-page-builder' ),
|
307 |
+
'id' => 'css_margin_bottom',
|
308 |
+
'std' => '0',
|
309 |
+
'type' => 'slider',
|
310 |
+
'refresh_on_change' => false,
|
311 |
+
'affect_on_change_el' => '.dslc-tp-content',
|
312 |
+
'affect_on_change_rule' => 'margin-bottom',
|
313 |
+
'section' => 'styling',
|
314 |
+
'ext' => 'px',
|
315 |
+
),
|
316 |
+
array(
|
317 |
+
'label' => __( 'Left', 'live-composer-page-builder' ),
|
318 |
+
'id' => 'css_margin_left',
|
319 |
+
'std' => '0',
|
320 |
+
'type' => 'slider',
|
321 |
+
'refresh_on_change' => false,
|
322 |
+
'affect_on_change_el' => '.dslc-tp-content',
|
323 |
+
'affect_on_change_rule' => 'margin-left',
|
324 |
+
'section' => 'styling',
|
325 |
+
'ext' => 'px',
|
326 |
+
),
|
327 |
+
array(
|
328 |
+
'id' => 'css_margin_group',
|
329 |
+
'type' => 'group',
|
330 |
+
'action' => 'close',
|
331 |
'section' => 'styling',
|
|
|
332 |
),
|
333 |
array(
|
334 |
'label' => __( 'Minimum Height', 'live-composer-page-builder' ),
|
modules/tp-meta/module.php
CHANGED
@@ -692,7 +692,7 @@ class DSLC_TP_Meta extends DSLC_Module {
|
|
692 |
<?php else : ?>
|
693 |
<?php
|
694 |
foreach ( $post_type_taxonomies as $taxonomy ) {
|
695 |
-
if ( $taxonomy->hierarchical == true ) {
|
696 |
|
697 |
$cats = get_the_terms( get_the_ID(), $taxonomy->name );
|
698 |
$cats_count = 0;
|
@@ -719,7 +719,7 @@ class DSLC_TP_Meta extends DSLC_Module {
|
|
719 |
<?php else : ?>
|
720 |
<?php
|
721 |
foreach ( $post_type_taxonomies as $taxonomy ) {
|
722 |
-
if ( $taxonomy->hierarchical == false ) {
|
723 |
|
724 |
$cats = get_the_terms( get_the_ID(), $taxonomy->name );
|
725 |
$tags_count = 0;
|
@@ -759,4 +759,4 @@ class DSLC_TP_Meta extends DSLC_Module {
|
|
759 |
|
760 |
}
|
761 |
|
762 |
-
}
|
692 |
<?php else : ?>
|
693 |
<?php
|
694 |
foreach ( $post_type_taxonomies as $taxonomy ) {
|
695 |
+
if ( $taxonomy->hierarchical == true && $taxonomy->public ) {
|
696 |
|
697 |
$cats = get_the_terms( get_the_ID(), $taxonomy->name );
|
698 |
$cats_count = 0;
|
719 |
<?php else : ?>
|
720 |
<?php
|
721 |
foreach ( $post_type_taxonomies as $taxonomy ) {
|
722 |
+
if ( $taxonomy->hierarchical == false && $taxonomy->public ) {
|
723 |
|
724 |
$cats = get_the_terms( get_the_ID(), $taxonomy->name );
|
725 |
$tags_count = 0;
|
759 |
|
760 |
}
|
761 |
|
762 |
+
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: LiveComposer
|
|
3 |
Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
|
4 |
Requires at least: 4.3
|
5 |
Tested up to: 4.7.2
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv3
|
8 |
|
9 |
Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
@@ -134,6 +134,42 @@ Upcoming Releases:
|
|
134 |
* [Please, report any bugs on GitHub](https://github.com/livecomposer/live-composer-page-builder/issues/)
|
135 |
* [You can download any previous version here](https://wordpress.org/plugins/live-composer-page-builder/developers/)
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
= 1.2.4 - February 14th 2017 =
|
138 |
|
139 |
= Bug fixes: =
|
3 |
Tags: page builder, visual composer, visual editor, visual builder, drag and drop builder, landing page builder, frontend editor, frontend builder, landing pages, landing page, website builder, theme builder, site-builder, layout builder, drag-and-drop, builder, editor, responsive, mobile, layout, front end, frontend, Page Layout, squeeze page, page builder plugin, drag-n-drop page builder
|
4 |
Requires at least: 4.3
|
5 |
Tested up to: 4.7.2
|
6 |
+
Stable tag: 1.2.5
|
7 |
License: GPLv3
|
8 |
|
9 |
Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
|
134 |
* [Please, report any bugs on GitHub](https://github.com/livecomposer/live-composer-page-builder/issues/)
|
135 |
* [You can download any previous version here](https://wordpress.org/plugins/live-composer-page-builder/developers/)
|
136 |
|
137 |
+
= 1.2.5 - February 28th 2017 =
|
138 |
+
|
139 |
+
= New: =
|
140 |
+
|
141 |
+
* Added unique ID for every section. In the future updates it will help to improve the plugin performance.
|
142 |
+
* Extension developers now have possibility to create description for the plugin setting panels
|
143 |
+
* Added notice in the standard WP Editor to warn users to not make changes in the back-end.
|
144 |
+
* New Shortcode module.
|
145 |
+
|
146 |
+
= Improved: =
|
147 |
+
|
148 |
+
* Added more margin options to the CONTENT module.
|
149 |
+
* Issue [#589](https://github.com/livecomposer/live-composer-page-builder/issues/589): Minor optimization in the code generation functions
|
150 |
+
* Issue [#577](https://github.com/livecomposer/live-composer-page-builder/issues/577): Improved editor messages: added PHP class
|
151 |
+
* Issue [#604](https://github.com/livecomposer/live-composer-page-builder/issues/604): Improve function the_edit_template_link and button 'Disable Editor'
|
152 |
+
|
153 |
+
= Bug fixes: =
|
154 |
+
|
155 |
+
* Issue [#587](https://github.com/livecomposer/live-composer-page-builder/issues/587): Fixed a broken link in the Live Composer configuration notice.
|
156 |
+
* Issue [#583](https://github.com/livecomposer/live-composer-page-builder/issues/583): Fixed broken comment form placeholders.
|
157 |
+
* Issue [#581](https://github.com/livecomposer/live-composer-page-builder/issues/581): Inline editor - the wrong button hovers colors in some themes.
|
158 |
+
* Issue [#579](https://github.com/livecomposer/live-composer-page-builder/issues/579): Image tab doesn't hide in the Info Box module settings.
|
159 |
+
* Issue [#578](https://github.com/livecomposer/live-composer-page-builder/issues/578): Settings group wrapper doesn't hide in the responsive tab.
|
160 |
+
* Issue [#574](https://github.com/livecomposer/live-composer-page-builder/issues/574): Infobox > Icon > Margin Right setting doesn't working
|
161 |
+
* Issue [#573](https://github.com/livecomposer/live-composer-page-builder/issues/573): HTML element > insert - textarea = broken module
|
162 |
+
* Fixed the notice that appears when LC installed but settings never saved.
|
163 |
+
* Updated Meta module to ignore private taxonomies (compatibility with Yoast WP Pro).
|
164 |
+
* Make ‘std’ option in custom setting panel work as expected (needed for CPT extension to work properly).
|
165 |
+
|
166 |
+
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
+
|
171 |
+
|
172 |
+
|
173 |
= 1.2.4 - February 14th 2017 =
|
174 |
|
175 |
= Bug fixes: =
|