Page Builder: Live Composer – drag and drop website builder (visual front end site editor) - Version 1.3.2

Version Description

  • July 25th 2017 =
Download this release

Release Info

Developer LiveComposer
Plugin Icon 128x128 Page Builder: Live Composer – drag and drop website builder (visual front end site editor)
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

Files changed (51) hide show
  1. css/builder.min.css +1 -1
  2. css/builder/builder.main.css +73 -58
  3. css/font-awesome.css +1 -1
  4. css/frontend.min.css +1 -1
  5. css/frontend/main.css +1 -1
  6. css/frontend/modules.css +41 -6
  7. ds-live-composer.php +5 -19
  8. includes/ajax.php +42 -12
  9. includes/class-dslc-cache.php +171 -0
  10. includes/class.module.php +76 -63
  11. includes/css-generation.php +99 -37
  12. includes/display-functions.php +265 -186
  13. includes/editorinterface.class.php +5 -0
  14. includes/functions.php +10 -1
  15. includes/header-footer.php +200 -255
  16. includes/module-controls.php +28 -3
  17. includes/other-functions.php +29 -15
  18. includes/other.php +45 -13
  19. includes/plugin-options-framework/css/main.css +69 -0
  20. includes/plugin-options-framework/css/main.min.css +1 -1
  21. includes/plugin-options-framework/inc/performance.php +18 -0
  22. includes/plugin-options-framework/js/main.js +23 -1
  23. includes/plugin-options-framework/js/main.min.js +1 -1
  24. includes/post-options-framework/js/main.js +1 -3
  25. includes/post-options-framework/js/main.min.js +1 -1
  26. includes/post-options-framework/post-options-framework.php +2 -5
  27. includes/post-templates.php +2 -2
  28. includes/scripts.php +42 -5
  29. includes/single-templates-framework/inc/filters.php +57 -23
  30. includes/single-templates-framework/inc/functions.php +2 -1
  31. includes/tutorials/tutorial.css +0 -275
  32. includes/tutorials/tutorial.js +0 -1200
  33. includes/tutorials/tutorial.min.css +0 -1
  34. includes/tutorials/tutorial.min.js +0 -2
  35. includes/tutorials/tutorial.php +0 -142
  36. installing grunt.txt +3 -0
  37. js/builder.all.min.js +5 -5
  38. js/builder.frontend.all.min.js +1 -1
  39. js/builder.frontend/builder.frontend.main.js +17 -1
  40. js/builder/builder.codegeneration.functions.js +17 -7
  41. js/builder/builder.modalwindow.functions.js +20 -15
  42. js/builder/builder.module.functions.js +20 -0
  43. js/builder/builder.settings.panel.functions.js +1 -87
  44. js/builder/builder.uigeneral.functions.js +1 -0
  45. js/builder/builder.util.class.js +0 -1
  46. js/frontend.all.min.js +3 -3
  47. js/frontend/main.js +166 -160
  48. modules/accordion/module.php +11 -6
  49. modules/blog/module.php +28 -27
  50. modules/button/module.php +3 -6
  51. modules/downloads/module.php +2 -0
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}.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-non-active{opacity:.5!important}.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-field-ttip-close,.dslca-modules-section-edit-field-ttip-close .dslc-icon,.dslca-modules-section-edit-field-ttip-hook .dslca-icon,.dslca-modules-section-edit-field-ttip-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-container.active-message-panel{margin-bottom:40px}.dslc-editor-messages-section{position:fixed;bottom:0;width:100%;height:40px;font-family:'Open Sans',sans-serif;color:#fff;font-weight:100;background:#404a58;display:none}.dslc-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.dslc-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}#editor-messages .dslc-notice{background:#d90a0a;margin:0;padding:12px 17px;font-size:16px}#editor-messages .dslc-notice a{position:relative;color:#fff}.dslc-editor-messages-hide{float:right;padding:12px 17px;background:#283546;font-size:14px;text-align:center;display:block;color:#fff}.dslc-editor-messages-hide .dslc-icon{font-size:17px;margin-right:10px}a.dslc-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}.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-module-saving-in-progress .dslca-actions .dslca-save-composer-helptext,.dslca-module-saving-in-progress .dslca-actions .dslca-save-composer-icon,.dslca-module-saving-in-progress .dslca-actions .dslca-save-draft-composer-helptext,.dslca-module-saving-in-progress .dslca-actions .dslca-save-draft-composer-icon{opacity:.5;cursor:wait!important}.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-non-active{opacity:.5!important}.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-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 180px}.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-button-hook,.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!important;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}.dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage,.dslca-composer-hidden .dslca-add-modules-section,body.dslca-composer-hidden .dslc-editor-messages-section,body.dslca-composer-hidden .dslc-hf-block-overlay,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}.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}body.dslca-composer-hidden .dslca-container.active-message-panel{margin-bottom:0}.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}.dslc-editor-messages-section,.dslca-modal-icons .icon-item_name,.dslca-modal-icons .set-heading{font-family:'Open Sans',sans-serif}.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-enabled.dslc-res-phone .dslc-modules-area:hover,.dslca-enabled.dslc-res-phone .dslc-modules-area:hover .dslc-module-front:hover,.dslca-enabled.dslc-res-phone .dslc-modules-section:hover,.dslca-enabled.dslc-res-tablet .dslc-modules-area:hover,.dslca-enabled.dslc-res-tablet .dslc-modules-area:hover .dslc-module-front:hover,.dslca-enabled.dslc-res-tablet .dslc-modules-section:hover{box-shadow:none}.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-size:12px;line-height:1.25;padding:5px 8px 12px}.dslca-modal-icons .set-heading{text-transform:uppercase;padding:30px;text-align:center;letter-spacing:6px;font-size:16px;font-weight:300;line-height:1.25}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-field-ttip-close,.dslca-modules-section-edit-field-ttip-close .dslc-icon,.dslca-modules-section-edit-field-ttip-hook .dslca-icon,.dslca-modules-section-edit-field-ttip-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-container.active-message-panel{margin-bottom:40px}.dslc-editor-messages-section{position:fixed;bottom:0;width:100%;height:40px;color:#fff;font-weight:100;background:#404a58;display:none}.dslc-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.dslc-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}#editor-messages .dslc-notice{background:#d90a0a;margin:0;padding:12px 17px;font-size:16px}#editor-messages .dslc-notice a{position:relative;color:#fff}.dslc-editor-messages-hide{float:right;padding:12px 17px;background:#283546;font-size:14px;text-align:center;display:block;color:#fff}.dslc-editor-messages-hide .dslc-icon{font-size:17px;margin-right:10px}a.dslc-editor-messages-hide:hover{color:#fff}.dslca-enabled.dslc-res-phone .dslc-modules-section:hover .dslca-modules-section-manage,.dslca-enabled.dslc-res-tablet .dslc-modules-section:hover .dslca-modules-section-manage{visibility:hidden!important}.dslca-enabled.dslc-res-phone .dslc-modules-area:hover .dslca-modules-area-manage,.dslca-enabled.dslc-res-tablet .dslc-modules-area:hover .dslca-modules-area-manage{visibility:hidden!important;opacity:0}.dslca-enabled.dslca-drag-not-in-progress.dslc-res-phone #dslc-content .dslc-module-front .dslca-module-manage-inner:hover,.dslca-enabled.dslca-drag-not-in-progress.dslc-res-phone #dslc-content .dslc-module-front:hover .dslca-module-manage-inner,.dslca-enabled.dslca-drag-not-in-progress.dslc-res-phone #dslc-content .dslc-module-front:hover .dslca-wysiwyg-actions-edit,.dslca-enabled.dslca-drag-not-in-progress.dslc-res-tablet #dslc-content .dslc-module-front .dslca-module-manage-inner:hover,.dslca-enabled.dslca-drag-not-in-progress.dslc-res-tablet #dslc-content .dslc-module-front:hover .dslca-module-manage-inner,.dslca-enabled.dslca-drag-not-in-progress.dslc-res-tablet #dslc-content .dslc-module-front:hover .dslca-wysiwyg-actions-edit{opacity:0}body.module-editing-in-progress.dslc-res-phone .dslc-module-front:not(.dslca-module-being-edited):before,body.module-editing-in-progress.dslc-res-tablet .dslc-module-front:not(.dslca-module-being-edited):before,body.section-editing-in-progress.dslc-res-phone .dslc-modules-section:not(.dslca-modules-section-being-edited):before,body.section-editing-in-progress.dslc-res-tablet .dslc-modules-section:not(.dslca-modules-section-being-edited):before{z-index:1}.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
@@ -446,6 +446,16 @@ body a:focus {
446
  padding-right: 5px;
447
  }
448
 
 
 
 
 
 
 
 
 
 
 
449
  /**
450
  * Sections
451
  */
@@ -941,60 +951,6 @@ body a:focus {
941
  font-family: 'Open Sans', sans-serif;
942
  }
943
 
944
- /**
945
- * Icon option type - Switch set
946
- */
947
-
948
- .dslca-module-edit-field-icon-switch-set {
949
- /*display: inline-block;*/
950
- position: absolute;
951
- /*top: 0;*/
952
- /*right: 0;*/
953
- margin-top: 8px;
954
- font-size: 10px;
955
- line-height: 13px;
956
- cursor: pointer;
957
- }
958
-
959
- .dslca-module-edit-field-icon-switch-set .dslca-icon {
960
- color: rgba( 255, 255, 255, 0.7 );
961
- margin-right: 4px;
962
- }
963
-
964
- .dslca-module-edit-field-icon-switch-sets {
965
- background: #fff;
966
- color: #8a8a8a;
967
- font-family: 'Open Sans', sans-serif;
968
- font-size: 13px;
969
- display: none;
970
- border-radius: 3px;
971
- padding: 20px 25px;
972
- border: 1px solid rgba(0,0,0,.12);
973
- position: absolute;
974
- -moz-box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 0 7px rgba(0,0,0,.12);
975
- -webkit-box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 0 7px rgba(0,0,0,.12);
976
- box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 0 7px rgba(0,0,0,.12);
977
- text-align: center;
978
- z-index: 999999;
979
- }
980
-
981
- .dslca-module-edit-field-icon-switch-sets span {
982
- display: block;
983
- padding: 5px 10px;
984
- cursor: pointer;
985
- border-radius: 3px;
986
- }
987
-
988
- .dslca-module-edit-field-icon-switch-sets span:hover {
989
- background: rgba( 0, 0, 0, 0.1 );
990
- }
991
-
992
- .dslca-module-edit-field-icon-switch-sets span.dslca-active {
993
- background: #5890e5;
994
- color: #fff;
995
- }
996
-
997
-
998
  /**
999
  * Box shadow option type
1000
  * and
@@ -1824,7 +1780,7 @@ body.section-editing-in-progress .dslc-modules-section:not(.dslca-modules-sectio
1824
  margin-left: auto;
1825
  margin-right: auto;
1826
  max-width: 100%;
1827
- margin-bottom: 120px;
1828
  overflow: hidden;
1829
  }
1830
 
@@ -3401,12 +3357,13 @@ span.dslca-manage-action:hover * {
3401
  .dslca-modules-section-edit-field-image-add-hook,
3402
  .dslca-modules-section-edit-field-image-remove-hook,
3403
  .dslca-module-edit-field-image-add-hook,
3404
- .dslca-module-edit-field-image-remove-hook {
 
3405
  background: #3b6fbe;
3406
  border: 1px solid #3565ad;
3407
  border-radius: 3px;
3408
  color: #a0c0f0;
3409
- cursor: pointer;
3410
  display: inline-block;
3411
  font-size: 12px;
3412
  font-family: 'Open Sans', sans-serif;
@@ -3488,7 +3445,16 @@ body.dslca-composer-hidden .dslca-module-manage,
3488
  body.dslca-composer-hidden .dslca-modules-area-manage,
3489
  body.dslca-composer-hidden .dslc-modules-section .dslca-modules-section-manage,
3490
  .dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage,
3491
- .dslca-composer-hidden .dslca-add-modules-section {
 
 
 
 
 
 
 
 
 
3492
  display: none !important;
3493
  }
3494
 
@@ -4015,6 +3981,17 @@ body.page .dslca-module.dslca-origin-single[data-id="DSLC_TP_Staff_Social"] {
4015
  padding: 5px 8px 12px;
4016
  }
4017
 
 
 
 
 
 
 
 
 
 
 
 
4018
 
4019
  /**
4020
  * ----------------------------------------------------------------------
@@ -4365,3 +4342,41 @@ a.dslc-editor-messages-title:hover {
4365
  a.dslc-editor-messages-hide:hover {
4366
  color: #fff;
4367
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
  padding-right: 5px;
447
  }
448
 
449
+ /* Disabled actions while module saving is in progress. */
450
+
451
+ .dslca-module-saving-in-progress .dslca-actions .dslca-save-composer-helptext,
452
+ .dslca-module-saving-in-progress .dslca-actions .dslca-save-draft-composer-helptext,
453
+ .dslca-module-saving-in-progress .dslca-actions .dslca-save-composer-icon,
454
+ .dslca-module-saving-in-progress .dslca-actions .dslca-save-draft-composer-icon {
455
+ opacity: .5;
456
+ cursor: wait!important;
457
+ }
458
+
459
  /**
460
  * Sections
461
  */
951
  font-family: 'Open Sans', sans-serif;
952
  }
953
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
954
  /**
955
  * Box shadow option type
956
  * and
1780
  margin-left: auto;
1781
  margin-right: auto;
1782
  max-width: 100%;
1783
+ margin-bottom: 180px;
1784
  overflow: hidden;
1785
  }
1786
 
3357
  .dslca-modules-section-edit-field-image-add-hook,
3358
  .dslca-modules-section-edit-field-image-remove-hook,
3359
  .dslca-module-edit-field-image-add-hook,
3360
+ .dslca-module-edit-field-image-remove-hook,
3361
+ .dslca-module-edit-field-button-hook {
3362
  background: #3b6fbe;
3363
  border: 1px solid #3565ad;
3364
  border-radius: 3px;
3365
  color: #a0c0f0;
3366
+ cursor: pointer!important;
3367
  display: inline-block;
3368
  font-size: 12px;
3369
  font-family: 'Open Sans', sans-serif;
3445
  body.dslca-composer-hidden .dslca-modules-area-manage,
3446
  body.dslca-composer-hidden .dslc-modules-section .dslca-modules-section-manage,
3447
  .dslca-composer-hidden .dslc-modules-section:hover .dslca-modules-section-manage,
3448
+ .dslca-composer-hidden .dslca-add-modules-section,
3449
+ body.dslca-composer-hidden .dslc-hf-block-overlay {
3450
+ display: none !important;
3451
+ }
3452
+
3453
+ body.dslca-composer-hidden .dslca-container.active-message-panel {
3454
+ margin-bottom: 0;
3455
+ }
3456
+
3457
+ body.dslca-composer-hidden .dslc-editor-messages-section {
3458
  display: none !important;
3459
  }
3460
 
3981
  padding: 5px 8px 12px;
3982
  }
3983
 
3984
+ .dslca-modal-icons .set-heading {
3985
+ text-transform: uppercase;
3986
+ padding: 30px;
3987
+ text-align: center;
3988
+ letter-spacing: 6px;
3989
+ font-family: 'Open Sans', sans-serif;
3990
+ font-size: 16px;
3991
+ font-weight: 300;
3992
+ line-height: 1.25;
3993
+ }
3994
+
3995
 
3996
  /**
3997
  * ----------------------------------------------------------------------
4342
  a.dslc-editor-messages-hide:hover {
4343
  color: #fff;
4344
  }
4345
+
4346
+ .dslca-enabled.dslc-res-tablet .dslc-modules-section:hover, .dslca-enabled.dslc-res-phone .dslc-modules-section:hover {
4347
+ box-shadow: none;
4348
+ }
4349
+
4350
+ .dslca-enabled.dslc-res-tablet .dslc-modules-section:hover .dslca-modules-section-manage, .dslca-enabled.dslc-res-phone .dslc-modules-section:hover .dslca-modules-section-manage {
4351
+ visibility: hidden !important;
4352
+ }
4353
+
4354
+ .dslca-enabled.dslc-res-tablet .dslc-modules-area:hover, .dslca-enabled.dslc-res-phone .dslc-modules-area:hover {
4355
+ box-shadow: none;
4356
+ }
4357
+
4358
+ .dslca-enabled.dslc-res-tablet .dslc-modules-area:hover .dslca-modules-area-manage, .dslca-enabled.dslc-res-phone .dslc-modules-area:hover .dslca-modules-area-manage {
4359
+ visibility: hidden !important;
4360
+ opacity: 0;
4361
+ }
4362
+
4363
+ .dslca-enabled.dslca-drag-not-in-progress.dslc-res-tablet #dslc-content .dslc-module-front .dslca-module-manage-inner:hover,
4364
+ .dslca-enabled.dslca-drag-not-in-progress.dslc-res-tablet #dslc-content .dslc-module-front:hover .dslca-module-manage-inner,
4365
+ .dslca-enabled.dslca-drag-not-in-progress.dslc-res-tablet #dslc-content .dslc-module-front:hover .dslca-wysiwyg-actions-edit,
4366
+ .dslca-enabled.dslca-drag-not-in-progress.dslc-res-phone #dslc-content .dslc-module-front .dslca-module-manage-inner:hover,
4367
+ .dslca-enabled.dslca-drag-not-in-progress.dslc-res-phone #dslc-content .dslc-module-front:hover .dslca-module-manage-inner,
4368
+ .dslca-enabled.dslca-drag-not-in-progress.dslc-res-phone #dslc-content .dslc-module-front:hover .dslca-wysiwyg-actions-edit {
4369
+ opacity: 0;
4370
+ }
4371
+
4372
+ .dslca-enabled.dslc-res-tablet .dslc-modules-area:hover .dslc-module-front:hover, .dslca-enabled.dslc-res-phone .dslc-modules-area:hover .dslc-module-front:hover {
4373
+ box-shadow: none;
4374
+ }
4375
+
4376
+ body.module-editing-in-progress.dslc-res-tablet .dslc-module-front:not(.dslca-module-being-edited):before,
4377
+ body.section-editing-in-progress.dslc-res-tablet .dslc-modules-section:not(.dslca-modules-section-being-edited):before,
4378
+ body.module-editing-in-progress.dslc-res-phone .dslc-module-front:not(.dslca-module-being-edited):before,
4379
+ body.section-editing-in-progress.dslc-res-phone .dslc-modules-section:not(.dslca-modules-section-being-edited):before {
4380
+ z-index: 1;
4381
+ }
4382
+
css/font-awesome.css CHANGED
@@ -248,7 +248,7 @@ a [class*=" dslc-icon-"] {
248
  *line-height: 1em;
249
  }
250
  /* Animated rotating dslc-icon */
251
- .dslc-icon-spin {
252
  display: inline-block;
253
  -moz-animation: spin 2s infinite linear;
254
  -o-animation: spin 2s infinite linear;
248
  *line-height: 1em;
249
  }
250
  /* Animated rotating dslc-icon */
251
+ .dslc-icon-spin, .dashicon-spin {
252
  display: inline-block;
253
  -moz-animation: spin 2s infinite linear;
254
  -o-animation: spin 2s infinite linear;
css/frontend.min.css CHANGED
@@ -1 +1 @@
1
- .dslc-clear,.dslc-clearfix:after,.dslc-first-col,.dslc-module-heading:after{clear:both}.dslc-tp-comment-form textarea,.mfp-container{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mfp-arrow,.owl-controls{-webkit-tap-highlight-color:transparent}#dslc-content blockquote p:last-child{margin-bottom:0!important}#dslc-header{position:relative}#dslc-header.dslc-header-pos-absolute{position:absolute;top:0;left:0;right:0;z-index:99999}#dslc-header.dslc-header-pos-fixed{position:fixed;top:0;left:0;right:0;z-index:99999}body.admin-bar:not(.dslca-enabled) #dslc-header.dslc-header-pos-fixed{top:32px}#dslc-footer,body.dslca-enabled:not(.dslca-composer-hidden) #dslc-header.dslc-header-pos-absolute,body.dslca-enabled:not(.dslca-composer-hidden) #dslc-header.dslc-header-pos-fixed{position:relative}#dslc-footer.dslc-footer-pos-absolute{position:absolute;bottom:0;left:0;right:0;z-index:999999}#dslc-footer.dslc-footer-pos-fixed{position:fixed;bottom:0;left:0;right:0;z-index:999999}.dslc-modules-section{border:0 solid transparent;position:relative}.dslc-modules-section.dslc-init-parallax{background-attachment:fixed}.dslc-modules-section-wrapper{max-width:100%;margin:0 auto}.dslc-modules-section.dslc-full .dslc-modules-section-wrapper{width:100%}.dslc-module-front{position:relative}.dslc-col{display:block;float:left;margin-right:2.12766%;min-height:1px}body.rtl .dslc-col{float:right;margin-left:2.12766%;margin-right:0}.dslc-1-col{width:6.38297%}.dslc-2-col{width:14.89361%}.dslc-3-col{width:23.40425%}.dslc-4-col{width:31.91489%}.dslc-5-col{width:40.42553%}.dslc-6-col{width:48.93617%}.dslc-7-col{width:57.4468%}.dslc-8-col{width:65.95744%}.dslc-9-col{width:74.46808%}.dslc-10-col{width:82.97872%}.dslc-11-col{width:91.48936%}.dslc-12-col{width:100%}.dslc-last-col{margin-right:0}body.rtl .dslc-last-col{margin-left:0}.dslc-no-columns-spacing .dslc-col{margin:0}.dslc-no-columns-spacing .dslc-1-col{width:8.33333%}.dslc-no-columns-spacing .dslc-2-col{width:16.66666%}.dslc-no-columns-spacing .dslc-3-col{width:25%}.dslc-no-columns-spacing .dslc-4-col{width:33.33333%}.dslc-no-columns-spacing .dslc-5-col{width:41.66666%}.dslc-no-columns-spacing .dslc-6-col{width:50%}.dslc-no-columns-spacing .dslc-7-col{width:58.33333%}.dslc-no-columns-spacing .dslc-8-col{width:66.66666%}.dslc-no-columns-spacing .dslc-9-col{width:75%}.dslc-no-columns-spacing .dslc-10-col{width:83.33333%}.dslc-no-columns-spacing .dslc-11-col{width:91.66666%}.dslc-no-columns-spacing .dslc-12-col,.dslc-no-columns-spacing .dslc-carousel .dslc-col,.dslc-no-columns-spacing .dslc-carousel .dslc-first-col,.dslc-no-columns-spacing .dslc-carousel .dslc-last-col{width:100%}.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}.dslc-carousel .dslc-col,.dslc-carousel .dslc-first-col,.dslc-carousel .dslc-last-col{float:none;clear:none;margin:0}.dslc-carousel-item{width:auto}.dslc-carousel-nav{float:right}.dslc-carousel-nav-inner{display:block}.dslc-carousel-nav-next,.dslc-carousel-nav-prev{background:#c9c9c9;border:0 solid transparent;border-radius:3px;display:inline-flex;justify-content:center;align-items:center;height:23px;position:relative;width:23px;text-decoration:none;vertical-align:bottom}.dslc-carousel-nav-prev{margin-right:7px}.dslc-carousel-nav-next span,.dslc-carousel-nav-prev span{color:#fff;font-size:10px;text-align:center;font-weight:400}#dslc-content .dslc-carousel .owl-pagination .owl-page span{margin:0;filter:Alpha(Opacity=100);opacity:1}#dslc-content .dslc-slider{padding-bottom:1px;opacity:0;max-height:10px}#dslc-content .dslc-slider img{max-width:100%}#dslc-content .dslc-slider .owl-pagination .owl-page span{margin:0;filter:Alpha(Opacity=100);opacity:1}.dslc-carousel{opacity:0;max-height:100px;overflow:hidden}.dslc-carousel.owl-carousel .owl-wrapper-outer{overflow:visible}.dslca-activate-composer-hook{background:#54c13f;color:#fff;border-radius:3px;position:fixed;z-index:99999;right:5px;bottom:5px;cursor:pointer;display:block;font-size:11px;font-family:'Open Sans',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-activate-composer-hook:hover{background:#40D71F}.dslca-activate-composer-hook:visited{color:#fff}.dslca-activate-composer-hook.dslca-position-left{right:auto;left:5px}.dslca-activate-composer-hook .dslca-icon{color:rgba(255,255,255,.66);margin-right:5px}@keyframes dslcSpin{0%{-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes dslcSpin{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dslcSpin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-ms-keyframes "dslcSpin"{0%{-ms-transform:rotate(0);transform:rotate(0)}100%{-ms-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes dslcSpin{0%{-o-transform:rotate(0);transform:rotate(0)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}.dslc-loader{position:relative;width:20px;height:20px;border:2px solid #0cf;border-radius:50%;-webkit-animation:dslcSpin .75s infinite linear;-moz-animation:dslcSpin .75s infinite linear;-ms-animation:dslcSpin .75s infinite linear;-o-animation:dslcSpin .75s infinite linear;animation:dslcSpin .75s infinite linear;margin-left:48%}.dslc-loader::after,.dslc-loader::before{left:-2px;top:-2px;display:none;position:absolute;content:'';width:inherit;height:inherit;border:inherit;border-radius:inherit}.dslc-loader,.dslc-loader::before{display:inline-block;border-color:#0cf transparent transparent}.dslc-loader::before{-webkit-animation:dslcSpin 1.5s infinite ease;-moz-animation:dslcSpin 1.5s infinite ease;-ms-animation:dslcSpin 1.5s infinite ease;-o-animation:dslcSpin 1.5s infinite ease;animation:dslcSpin 1.5s infinite ease}.dslc-notification{background:#fff;border:1px solid #e8e8e8;border-radius:3px;color:#979797;margin-bottom:20px;padding:15px;position:relative;font-size:14px;line-height:25px}.dslc-notification.dslc-green,.dslc-notification.dslc-red,.dslc-notification.dslc-yellow{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.14)}.dslc-module-DSLC_Image .dslc-notification{font-family:'Open Sans',sans-serif}.dslc-notification .dslc-icon{cursor:pointer;position:absolute;right:14px;top:21px}.dslc-notification.dslc-red{background:#f65757;border-color:#e43737}.dslc-notification.dslc-yellow{background:#fac841;border-color:#eab72e}.dslc-notification.dslc-green{background:#8ccb25;border-color:#77b01a}#dslc-content .dslc-module-heading{overflow:hidden;position:relative}#dslc-content .dslc-module-heading h2{display:block;float:left;font-size:17px;font-weight:400;line-height:1;margin:0 15px 0 0;padding:0}#dslc-content .dslc-module-heading-view-all{display:block;float:left;font-size:11px;line-height:1;margin:3px 20px 3px 0}#dslc-content .dslc-module-heading-view-all a{display:block;padding-left:15px;border-left:1px dotted #4f4f4f;font-weight:600;line-height:1;text-decoration:none}.dslc-masonry-item{margin-bottom:30px;margin-right:0}.dslc-masonry-item-animate{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.dslc-post-separator{clear:both;height:1px;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #ededed}.dslc-pagination{border:0 solid transparent;overflow:hidden;margin-top:30px}.dslc-pagination ul{margin:0;padding:0}.dslc-pagination li{display:inline-block;margin:0 10px 0 0;padding:0}.dslc-pagination li:last-child{margin-right:0!important}.dslc-pagination-load-more .dslc-icon,.dslc-post-filter{margin-right:10px}.dslc-pagination li a{background:#eee;border:0 solid transparent;color:#000;display:block;line-height:1;padding:10px;text-decoration:none}.dslc-pagination li.current a{background:#000;color:#fff}.dslc-pagination li.dslc-pagination-load-more{width:auto;display:block}.dslc-pagination li.dslc-pagination-load-more.dslc-inactive a{cursor:default}.dslc-load-more-temp{display:none}.dslc-init-center{display:flex;align-items:center;justify-content:center}.dslc-init-topleft .dslc-init-target{position:absolute!important;top:0!important;left:0!important;bottom:auto!important;right:auto!important}.dslc-init-topright .dslc-init-target{position:absolute!important;top:0!important;right:0!important;bottom:auto!important;left:auto!important}.dslc-init-bottomleft .dslc-init-target{position:absolute!important;bottom:0!important;left:0!important;top:auto!important;right:auto!important}.dslc-init-bottomright .dslc-init-target{position:absolute!important;bottom:0!important;right:0!important;top:auto!important;left:auto!important}#dslc-content .dslc-products .dslc-product-thumb .dslc-init-topleft{position:absolute;top:0;left:0;bottom:auto;right:auto}#dslc-content .dslc-products .dslc-product-thumb .dslc-init-topright{position:absolute;top:0;right:0;bottom:auto;left:auto}#dslc-content .dslc-products .dslc-product-thumb .dslc-init-bottomleft{position:absolute;bottom:0;left:0;top:auto;right:auto}#dslc-content .dslc-products .dslc-product-thumb .dslc-init-bottomright{position:absolute;bottom:0;right:0;top:auto;left:auto}.dslc-post-filters{overflow:hidden;font-size:0}.dslc-post-filter{background:#fff;border:1px solid #e8e8e8;border-radius:3px;color:#979797;cursor:pointer;display:inline-block;font-size:11px;font-weight:700;line-height:1;padding:12px}.dslc-post-filter.dslc-active{color:#ff4e01}.dslc-post-filter:last-child{margin-right:0!important}#dslc-content .dslc-bg-video{background:0 0;position:absolute;left:0;right:0;bottom:0;top:0;opacity:0}#dslc-content .dslc-bg-video.dslc-force-show{opacity:1}#dslc-content .dslc-bg-video .mejs-container{background:0 0;position:absolute;left:0;right:0;bottom:0;top:0;width:100%!important;height:auto!important;overflow:hidden}#dslc-content .dslc-bg-video video{min-width:100%;height:auto!important;min-height:100%}#dslc-content .dslc-bg-video .mejs-controls{display:none!important}#dslc-content .dslc-bg-video-overlay{position:absolute;left:0;top:0;right:0;bottom:0;opacity:0;background:#000}.dslc-trigger-lightbox-gallery{cursor:pointer}@media only screen and (min-device-width :768px) and (max-device-width :1024px){.dslc-modules-section.dslc-init-parallax{background-attachment:scroll!important;background-position:0 0!important}}@media only screen and (max-width:767px){.dslc-modules-section.dslc-init-parallax{background-attachment:scroll!important;background-position:0 0!important}}@keyframes dslcFadeIn{to{opacity:1}}@keyframes dslcSlideUp{to{transform:translateY(0)}}@keyframes dslcSlideDown{to{transform:translateY(0)}}@keyframes dslcSlideRight{to{transform:translateX(0)}}@keyframes dslcSlideLeft{to{transform:translateX(0)}}@keyframes dslcSlideUpFadeIn{to{transform:translateY(0);opacity:1}}@keyframes dslcSlideDownFadeIn{to{transform:translateY(0);opacity:1}}@keyframes dslcSlideRightFadeIn{to{transform:translateX(0);opacity:1}}@keyframes dslcSlideLeftFadeIn{to{transform:translateX(0);opacity:1}}@media only screen and (min-width:768px){@-webkit-keyframes dslcFadeIn{to{opacity:1}}@-moz-keyframes dslcFadeIn{to{opacity:1}}.dslc-in-viewport-anim-dslcFadeIn.dslc-in-viewport-check{opacity:0}@-webkit-keyframes dslcSlideUp{to{-webkit-transform:translateY(0)}}@-moz-keyframes dslcSlideUp{to{-moz-transform:translateY(0)}}.dslc-in-viewport-anim-dslcSlideUp.dslc-in-viewport-check{-webkit-transform:translateY(100px);-moz-transform:translateY(100px);transform:translateY(100px)}@-webkit-keyframes dslcSlideDown{to{-webkit-transform:translateY(0)}}@-moz-keyframes dslcSlideDown{to{-moz-transform:translateY(0)}}.dslc-in-viewport-anim-dslcSlideDown.dslc-in-viewport-check{-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);transform:translateY(-100px)}@-webkit-keyframes dslcSlideRight{to{-webkit-transform:translateX(0)}}@-moz-keyframes dslcSlideRight{to{-moz-transform:translateX(0)}}.dslc-in-viewport-anim-dslcSlideRight.dslc-in-viewport-check{-webkit-transform:translateX(-100px);-moz-transform:translateX(-100px);transform:translateX(-100px)}@-webkit-keyframes dslcSlideLeft{to{-webkit-transform:translateX(0)}}@-moz-keyframes dslcSlideLeft{to{-moz-transform:translateX(0)}}.dslc-in-viewport-anim-dslcSlideLeft.dslc-in-viewport-check{-webkit-transform:translateX(100px);-moz-transform:translateX(100px);transform:translateX(100px)}@-webkit-keyframes dslcSlideUpFadeIn{to{-webkit-transform:translateY(0);opacity:1}}@-moz-keyframes dslcSlideUpFadeIn{to{-moz-transform:translateY(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideUpFadeIn.dslc-in-viewport-check{-webkit-transform:translateY(100px);-moz-transform:translateY(100px);transform:translateY(100px);opacity:0}@-webkit-keyframes dslcSlideDownFadeIn{to{-webkit-transform:translateY(0);opacity:1}}@-moz-keyframes dslcSlideDownFadeIn{to{-moz-transform:translateY(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideDownFadeIn.dslc-in-viewport-check{-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);transform:translateY(-100px);opacity:0}@-webkit-keyframes dslcSlideRightFadeIn{to{-webkit-transform:translateX(0);opacity:1}}@-moz-keyframes dslcSlideRightFadeIn{to{-moz-transform:translateX(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideRightFadeIn.dslc-in-viewport-check{-webkit-transform:translateX(-100px);-moz-transform:translateX(-100px);transform:translateX(-100px);opacity:0}@-webkit-keyframes dslcSlideLeftFadeIn{to{-webkit-transform:translateX(0);opacity:1}}@-moz-keyframes dslcSlideLeftFadeIn{to{-moz-transform:translateX(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideLeftFadeIn.dslc-in-viewport-check{-webkit-transform:translateX(100px);-moz-transform:translateX(100px);transform:translateX(100px);opacity:0}}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-post-thumb .dslc-on-hover-anim-target{opacity:1!important;-webkit-transform:translateY(0)!important;-moz-transform:translateY(0)!important;transform:translateY(0)!important;-webkit-transform:translateX(0)!important;-moz-transform:translateX(0)!important;transform:translateX(0)!important}.dslc-anim-dslcFadeIn,.dslc-anim-dslcSlideDownFadeIn,.dslc-anim-dslcSlideLeftFadeIn,.dslc-anim-dslcSlideRightFadeIn,.dslc-anim-dslcSlideUpFadeIn{opacity:0}.dslc-on-hover-anim:hover .dslc-anim-dslcFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDownFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeftFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRightFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUpFadeIn{opacity:1}.dslc-anim-dslcSlideDown,.dslc-anim-dslcSlideDownFadeIn{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);transform:translateY(-100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDown,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDownFadeIn{-webkit-transform:translateY(0);-moz-transform:translateY(0);transform:translateY(0)}.dslc-anim-dslcSlideUp,.dslc-anim-dslcSlideUpFadeIn{-webkit-transform:translateY(100%);-moz-transform:translateY(100%);transform:translateY(100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUp,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUpFadeIn{-webkit-transform:translateY(0);-moz-transform:translateY(0);transform:translateY(0)}.dslc-anim-dslcSlideRight,.dslc-anim-dslcSlideRightFadeIn{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);transform:translateX(-100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRight,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRightFadeIn{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.dslc-anim-dslcSlideLeft,.dslc-anim-dslcSlideLeftFadeIn{-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeft,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeftFadeIn{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.dslc-anim-none{opacity:0;-webkit-transition:all 0s ease-out!important}.dslc-on-hover-anim:hover .dslc-anim-none{opacity:1}#dslc-content{position:relative;overflow:hidden}.alignnone{margin:5px 20px 20px 0}.aligncenter,div.aligncenter{display:block;margin:5px auto}.alignright{float:right;margin:5px 0 20px 20px}.alignleft{float:left;margin:5px 20px 20px 0}.aligncenter{display:block;margin:5px auto}a img.alignright{float:right;margin:5px 0 20px 20px}#dslc-content .dslc-cpt-post-meta-author,a img.alignleft{float:left}a img.alignleft,a img.alignnone{margin:5px 20px 20px 0}a img.aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-caption{background:#fff;border:1px solid #f0f0f0;max-width:96%;padding:5px 3px 10px;text-align:center}.wp-caption.alignleft,.wp-caption.alignnone{margin:5px 20px 20px 0}.wp-caption.alignright{margin:5px 0 20px 20px}.wp-caption img{border:0;height:auto;margin:0;max-width:98.5%;padding:0;width:auto}.wp-caption p.wp-caption-text{font-size:11px;line-height:17px;margin:0;padding:0 4px 5px}.gallery-caption{font-weight:700}.dslc-content b,.dslc-content strong{font-weight:bolder}.dslc-content em,.dslc-content i:not(.fa,.dslc-icon){font-style:italic}@media only screen and (min-width :1025px){.dslc-hide-on-desktop{display:none!important}.dslca-enabled .dslc-hide-on-desktop{display:block!important}.dslca-composer-hidden .dslc-hide-on-desktop{display:none!important}}@media only screen and (min-width :768px) and (max-width :1024px){body.dslca-enabled.dslc-res-tablet{padding-bottom:200px}.dslc-hide-on-tablet{display:none!important}}@media only screen and (max-width:767px){body.dslca-enabled.dslc-res-phone{padding-bottom:200px}.dslc-col,.dslc-no-columns-spacing .dslc-col{width:100%;margin:0;min-width:0}.dslc-module-front.dslc-col{margin-bottom:0}.dslc-hide-on-phone{display:none!important}}@media all and (-ms-high-contrast:none){.dslc-image-container .dslc-image,.dslc-image-container .dslc-image a{width:100%!important}.dslc-in-viewport-check{transform:none!important;opacity:1!important}#dslc-content .dslc-info-box-image-alt-inner{width:100%}}.dslc-module-front a{text-decoration:none}#dslc-content .dslc-post{overflow:hidden}.dslc-module-front{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}#dslc-content .dslc-cpt-post-thumb{margin-bottom:20px;overflow:hidden;position:relative;line-height:0}#dslc-content .dslc-cpt-post-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-cpt-post-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-cpt-post-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main.dslc-cpt-post-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-cpt-post-thumb .dslc-cpt-post-main{opacity:1}#dslc-content .dslc-cpt-post-meta{margin-bottom:20px;overflow:hidden;padding:13px 0;font-size:11px;line-height:1}#dslc-content .dslc-cpt-post-meta-author a{text-decoration:none}#dslc-content .dslc-cpt-post-meta-date{float:right}#dslc-content .dslc-cpt-post-title{margin-bottom:13px}#dslc-content .dslc-cpt-post-title h2{font-weight:600;font-size:15px;line-height:26px;margin:0;padding:0}#dslc-content .dslc-cpt-post-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-cpt-post-excerpt{margin-bottom:22px;font-size:13px;line-height:22px}#dslc-content .dslc-cpt-post-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-cpt-posts-orientation-horizontal .dslc-cpt-post-thumb{float:left;margin-right:20px;width:200px}#dslc-content .dslc-cpt-posts-orientation-horizontal .dslc-cpt-post-main,.dslc-post-thumb{overflow:hidden}#dslc-content .dslc-blog-post-main{border:0 solid transparent}#dslc-content .dslc-blog-post-thumb{margin-bottom:20px;overflow:hidden;position:relative;line-height:0}#dslc-content .dslc-blog-post-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-blog-post-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-blog-post-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main.dslc-blog-post-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-blog-post-thumb .dslc-blog-post-main{opacity:1}#dslc-content .dslc-blog-post-meta{border-left:0;border-right:0;margin-bottom:20px;overflow:hidden;padding:13px 0;font-size:11px;line-height:1}#dslc-content .dslc-blog-post-meta-author{float:left}#dslc-content .dslc-blog-post-meta-avatar{margin-right:10px;width:30px;display:inline-block}#dslc-content .dslc-blog-post-meta-avatar img{vertical-align:middle;width:100%;height:auto;border-radius:50%}#dslc-content .dslc-blog-post-meta-author a{text-decoration:none}#dslc-content .dslc-blog-post-meta-date{float:right}#dslc-content .dslc-blog-post-title{margin-bottom:13px}#dslc-content .dslc-blog-post-title h2{font-weight:600;font-size:15px;line-height:26px;margin:0;padding:0}#dslc-content .dslc-blog-post-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-blog-post-excerpt{margin-bottom:22px;font-size:13px;line-height:22px}#dslc-content .dslc-blog-post-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}.dslc-posts-orientation-horizontal .dslc-post-thumb{float:left;margin-right:20px;width:200px}#dslc-content .dslc-posts-orientation-horizontal .dslc-post-main{overflow:hidden}#dslc-content .dslc-download-thumb{position:relative;line-height:0}#dslc-content .dslc-download-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-download-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-download-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-download-download a,#dslc-content .dslc-download-main{border:0 solid transparent;text-align:center}#dslc-content .dslc-download-thumb .dslc-download-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-download-thumb .dslc-download-main.dslc-download-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-download-thumb .dslc-download-main{opacity:1}#dslc-content .dslc-download-title{margin-bottom:13px}#dslc-content .dslc-download-title h2{font-size:15px;line-height:1.7;margin:0;padding:0}#dslc-content .dslc-download-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-download-tags{border:1px solid #e5e5e5;border-width:1px 0;font-size:12px;padding:8px 0;line-height:1;margin-bottom:22px}#dslc-content .dslc-download-excerpt{margin-bottom:22px;font-size:13px;line-height:22px;font-weight:400}#dslc-content .dslc-download-download{margin-bottom:10px}#dslc-content .dslc-download-download a{background:#ff4e01;border-radius:3px;color:#fff;display:block;font-size:13px;font-weight:700;line-height:1;padding:15px 0;text-decoration:none}#dslc-content .dslc-download-download .dslc-icon{margin-right:10px}#dslc-content .dslc-download-info{font-size:10px;font-style:italic}#dslc-content .dslc-gallery-thumb{position:relative;line-height:0}#dslc-content .dslc-gallery-thumb-inner{border:0 solid transparent;position:relative;overflow:hidden}#dslc-content .dslc-gallery-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;display:block;box-shadow:none;max-width:100%;height:auto}#dslc-content .dslc-gallery-thumb .dslc-gallery-images-count{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;text-decoration:none}#dslc-content .dslc-gallery-images-count-bg{background:0 0;border:0 solid transparent;position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-gallery-images-count-main{position:relative}#dslc-content .dslc-gallery-images-count-num{color:#fff;display:block;font-size:25px;font-weight:200;line-height:1;margin-bottom:8px}#dslc-content .dslc-gallery-images-count-txt{color:#7d7d7d;display:block;font-size:11px;line-height:1}#dslc-content .dslc-gallery-thumb .dslc-gallery-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-gallery-thumb .dslc-gallery-main.dslc-gallery-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-gallery-thumb .dslc-gallery-main{opacity:1}#dslc-content .dslc-gallery-main{border:0 solid transparent;text-align:center}#dslc-content .dslc-gallery-title{margin-bottom:15px}#dslc-content .dslc-gallery-title h2{font-size:11px;line-height:1;margin:0;padding:0}#dslc-content .dslc-info-box-icon-pos-aside .dslc-info-box-image,#dslc-content .dslc-info-box-image-pos-aside .dslc-info-box-image-alt{float:left;margin-right:20px}#dslc-content .dslc-gallery-title h2 a{display:block;color:#7d7d7d;text-decoration:none}#dslc-content .dslc-gallery-sep{display:block;height:1px;border-bottom:1px solid #4a4a4a;margin-bottom:15px}#dslc-content .dslc-gallery-excerpt{font-size:12px;border-width:1px 0 0}#dslc-content .dslc-gallery-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-gallery .dslc-lightbox-gallery{display:none}#dslc-content .dslc-info-box{text-align:center;border:0 solid transparent}#dslc-content .dslc-info-box-image{margin-bottom:25px;position:relative;font-size:0}#dslc-content .dslc-info-box-image-link{position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-info-box-icon-pos-aside .dslc-info-box-main{overflow:hidden}#dslc-content .dslc-info-box-image-inner{display:inline-flex;justify-content:center;align-items:center;position:relative;border:0 solid transparent}#dslc-content .dslc-info-box-image-inner .dslc-icon{color:#fff;line-height:1;font-size:40px}#dslc-content .dslc-info-box-image-pos-aside .dslc-info-box-main{overflow:hidden}#dslc-content .dslc-info-box-image-alt-inner{display:inline-block}#dslc-content .dslc-info-box-title h4{font-size:17px;line-height:1;margin:0;padding:0;font-weight:400}#dslc-content .dslc-info-box-title h4 a{color:inherit;text-decoration:none}#dslc-content .dslc-info-box-content{margin-bottom:25px}#dslc-content .dslc-info-box-button{font-size:0}#dslc-content .dslc-info-box-button a{display:inline-block;line-height:1;text-decoration:none;box-shadow:none;-webkit-appearance:none}#dslc-content .dslc-info-box-button-aside{float:right}#dslc-content .dslc-partner .dslc-partner-thumb{position:relative;line-height:0}#dslc-content .dslc-partner .dslc-partner-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-partner .dslc-partner-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:inline-block;vertical-align:bottom;width:auto;max-width:100%;height:auto}#dslc-content .dslc-partner-thumb .dslc-partner-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-partner-thumb .dslc-partner-main.dslc-partner-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-partner-thumb .dslc-partner-main{opacity:1}#dslc-content .dslc-partner-title{margin-bottom:10px}#dslc-content .dslc-partner-title h2{margin:0;padding:0}#dslc-content .dslc-partner-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-project-thumb{margin-bottom:24px;position:relative;line-height:0}#dslc-content .dslc-project-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-project-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-project-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-project-thumb .dslc-project-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-project-thumb .dslc-project-main.dslc-project-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-projects .dslc-post:first-child .dslc-project-thumb .dslc-project-main{opacity:1}#dslc-content .dslc-project-main{border:0 solid transparent}#dslc-content .dslc-project-title{margin-bottom:10px}#dslc-content .dslc-project-title h2{font-weight:700;font-size:12px;line-height:1;margin:0;padding:0}#dslc-content .dslc-project-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-project-cats{font-size:10px;font-style:italic;line-height:1}#dslc-content .dslc-project-excerpt{margin-bottom:22px;font-size:13px;line-height:22px;border-top:0 solid #000}#dslc-content .dslc-project-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}.dslc-separator-wrapper{padding-bottom:1px}.dslc-separator{clear:both;height:1px;padding-bottom:25px;margin-bottom:25px;width:100%}.dslc-module-front.dslc-module-DSLC_Separator{min-height:auto}.dslc-separator.dslc-separator-style-solid{border-bottom:1px solid #ededed}.dslc-separator.dslc-separator-style-dashed{border-bottom:1px dashed #ededed}.dslc-separator.dslc-separator-style-dotted{border-bottom:1px dotted #ededed}#dslc-content .dslc-staff-member-thumb{position:relative;line-height:0}#dslc-content .dslc-staff-member-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-staff-member-thumb img{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main.dslc-staff-member-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-staff-member-thumb .dslc-staff-member-main{opacity:1}#dslc-content .dslc-staff-member-social a{margin:0 6px;text-decoration:none}#dslc-content .dslc-staff-member-title h2{margin:0;padding:0}#dslc-content .dslc-staff-member-title h2 a{display:block;text-decoration:none;color:inherit}#dslc-content .dslc-tabs-nav-pos-aside .dslc-tabs-nav{float:left;margin-bottom:0!important}#dslc-content .dslc-tabs-nav-pos-above .dslc-tabs-nav{margin-right:0!important}#dslc-content .dslc-tabs-nav-hook{background:#fbfbfb;border:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;border-radius:3px 3px 0 0;bottom:-1px;cursor:pointer;display:inline-block;padding:10px;position:relative;line-height:1;margin-left:-1px}#dslc-content .dslc-tabs-nav-pos-aside .dslc-tabs-nav-hook{display:block;margin-left:0!important}#dslc-content .dslc-tabs-nav-pos-above .dslc-tabs-nav-hook{margin-bottom:0!important}#dslc-content .dslc-tabs-nav-hook:first-child{margin-left:0!important}#dslc-content .dslc-tabs-content,#dslc-content .dslc-tabs-nav-hook.dslc-active{background:#fff}#dslc-content .dslc-tabs-nav-pos-aside .dslc-tabs-content{overflow:hidden}#dslc-content .dslc-tabs-tab-content{padding:35px;display:none;position:relative}#dslc-content .dslc-tabs-tab-content.dslc-active{display:block}.dslca-add-new-tab-hook,.dslca-delete-tab-hook{display:inline-block;margin-left:10px;cursor:pointer}.dslca-add-new-tab-hook{background:#78CA4F;border-radius:50%;color:#fff;font-size:11px;height:20px;text-align:center;line-height:22px;margin-top:8px;width:20px;position:relative}.dslca-add-new-tab-hook .dslca-icon{position:absolute;line-height:1;top:5px;right:6px}.dslca-delete-tab-hook{color:#E55F5F;font-size:12px;line-height:1;vertical-align:top}.dslc-tabs-content .dslc-tabs-nav-hook{display:none!important}#dslc-content .dslc-testimonials{border:0 solid transparent}#dslc-content .dslc-testimonial-main{border:0 solid transparent;border-radius:4px;padding:25px;overflow:hidden}#dslc-content .dslc-testimonial-quote{border-bottom:0 solid transparent}#dslc-content .dslc-testimonial-author-pos-outside-left{float:left}#dslc-content .dslc-testimonial-author-pos-outside-right{float:right}#dslc-content .dslc-testimonial-author-avatar{border:0 solid transparent;float:left}#dslc-content .dslc-testimonial-author-avatar img{display:block;height:auto}#dslc-content .dslc-testimonial-author-main{overflow:hidden;float:left}#dslc-content .dslc-testimonial-author-name{line-height:1}#dslc-content .dslc-testimonial-author-position{line-height:1.1}button,input[type=file]::-webkit-file-upload-button,input[type=button],input[type=submit],input[type=reset]{border-style:none;-webkit-appearance:none}#dslc-content .dslc-widget-wrap,#dslc-content .dslc-widgets-wrap{border:0 solid transparent}.dslc-module-DSLC_Text_Simple img{max-width:100%;height:auto}#dslc-content .dslc-widget{margin-bottom:30px;width:100%}#dslc-content .dslc-widget:last-child{margin-bottom:0!important}#dslc-content .dslc-widget-title{font-size:15px;font-weight:600;margin-bottom:10px;padding-bottom:10px;line-height:1}#dslc-content .dslc-widget-title-inner{display:block}#dslc-content .dslc-widgets-2-col .dslc-col{width:14.89361%}#dslc-content .dslc-widgets-3-col .dslc-col{width:23.40425%}#dslc-content .dslc-widgets-4-col .dslc-col{width:31.91489%}#dslc-content .dslc-widgets-5-col .dslc-col{width:40.42553%}#dslc-content .dslc-widgets-6-col .dslc-col{width:48.93617%}#dslc-content .dslc-widgets-7-col .dslc-col{width:57.4468%}#dslc-content .dslc-widgets-8-col .dslc-col{width:65.95744%}#dslc-content .dslc-widgets-9-col .dslc-col{width:74.46808%}#dslc-content .dslc-widgets-10-col .dslc-col{width:82.97872%}#dslc-content .dslc-widgets-11-col .dslc-col{width:91.48936%}#dslc-content .dslc-widgets-12-col .dslc-col{width:100%;margin-right:0}#dslc-content .dslc-widgets-2-col .dslc-col:nth-child(6n),#dslc-content .dslc-widgets-3-col .dslc-col:nth-child(4n),#dslc-content .dslc-widgets-4-col .dslc-col:nth-child(3n),#dslc-content .dslc-widgets-6-col .dslc-col:nth-child(2n){margin-right:0}#dslc-content .dslc-product-thumb{position:relative;line-height:0}#dslc-content .dslc-product-thumb-inner{bottom:0 solid transparent;overflow:hidden}#dslc-content .dslc-product-thumb img{-moz-box-shadow:none;-webkit-box-shadow:none;display:block;border-radius:3px 3px 0 0;box-shadow:none;max-width:100%;height:auto}#dslc-content .dslc-product-thumb .dslc-product-price .from,#dslc-content .dslc-product-thumb .dslc-product-price del{display:none}#dslc-content .dslc-product-thumb .dslc-product-price{background:0 0;color:#fff;font-weight:400;font-size:25px;line-height:1;position:absolute;left:0;top:0;width:100%;height:100%;text-decoration:none;text-align:center}#dslc-content .dslc-product-price-bg{background:0 0;border:0 solid transparent;position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-product-price-main{position:relative}#dslc-content .dslc-product-thumb .dslc-product-price ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-thumb .dslc-product-price .amount{vertical-align:middle}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main.dslc-product-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-products .dslc-post:first-child .dslc-product-thumb .dslc-product-main{opacity:1}#dslc-content .dslc-product-main{background:#1d1d1d;border-radius:0 0 3px 3px;padding:20px;text-align:center;border:0 solid transparent}#dslc-content .dslc-product-title{margin-bottom:15px}#dslc-content .dslc-product-price-secondary{color:#fff;float:left;font-size:20px;line-height:1}#dslc-content .dslc-product-price-secondary ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-title h2{clear:none;font-size:11px;line-height:1;vertical-align:middle;margin:0;padding:0}#dslc-content .dslc-product-title h2 a{display:block;color:#7d7d7d;text-decoration:none}#dslc-content .dslc-product-excerpt{border-bottom:0 solid transparent}#dslc-content .dslc-product-sep{display:block;border-bottom:1px solid #4a4a4a;height:1px;margin-bottom:15px}#dslc-content .dslc-product-extra .dslc-product-add-to-cart{color:#8d8d8d;font-size:12px;line-height:1;text-decoration:none;float:left}#dslc-content .dslc-product-extra .dslc-product-details{color:#8d8d8d;font-size:12px;text-decoration:none;line-height:1;float:right}#dslc-content .dslc-product-extra .dslc-icon{margin-right:5px}#dslc-content .dslc-tp-content,#dslc-content .dslc-tp-meta,#dslc-content .dslc-tp-title{border:0 solid transparent}#dslc-content .dslc-tp-meta ul{margin:0;list-style-type:none;font-size:0}#dslc-content .dslc-tp-meta-horizontal li{display:inline-block;margin-top:0!important;margin-bottom:0!important;list-style-type:none}#dslc-content .dslc-tp-meta-horizontal li:first-child{margin-left:0!important}#dslc-content .dslc-tp-meta-horizontal li:last-child{margin-right:0!important}#dslc-content .dslc-tp-meta-vertical li{margin-left:0!important;margin-right:0!important}#dslc-content .dslc-tp-meta-vertical li:first-child{margin-top:0!important}#dslc-content .dslc-tp-meta-vertical li:last-child{margin-bottom:0!important}#dslc-content .dslc-tp-meta-avatar{margin-right:10px;width:30px;display:inline-block}#dslc-content .dslc-tp-meta-avatar img{vertical-align:middle;width:100%;height:auto;border-radius:50%}#dslc-content .dslc-tp-download-button a,#dslc-content .dslc-tp-gallery-slider,#dslc-content .dslc-tp-gallery-slider-main,#dslc-content .dslc-tp-gallery-slider-nav{border:0 solid transparent}#dslc-content .dslc-tp-download-button a{display:block;line-height:1;text-decoration:none;text-align:center;-webkit-appearance:none}#dslc-content .dslc-tp-thumbnail{bottom:0 solid transparent;overflow:hidden}#dslc-content .dslc-tp-thumbnail img{display:inline-block;vertical-align:middle;max-width:100%;height:auto}#dslc-content .dslc-tp-gallery-slider-main li{overflow:hidden}#dslc-content .dslc-tp-gallery-slider-nav li{margin-right:10px;padding:5px;border:1px solid red;cursor:pointer;opacity:.7}#dslc-content .dslc-tp-gallery-slider-nav li.flex-active-slide{opacity:1}#dslc-content ul.dslc-social{margin:0;padding:0;list-style-type:none;font-size:0;line-height:1}#dslc-content ul.dslc-social li{margin:0 10px 0 0;padding:0;line-height:1;display:inline-block;overflow:hidden}#dslc-content ul.dslc-social a.dslc-social-icon{border:0 solid transparent;background:#40bde6;text-decoration:none;color:#fff;width:30px;height:30px;border-radius:15px;font-size:15px;position:relative;float:left;display:inline-flex;justify-content:center;align-items:center}#dslc-content ul.dslc-social .dslc-icon{line-height:1}#dslc-content ul.dslc-social .dslc-social-label{float:left;display:block}#dslc-content ul.dslc-staff-social{margin:0;padding:0;list-style-type:none;font-size:0;line-height:1}#dslc-content ul.dslc-staff-social li{margin:0;padding:0;line-height:1;display:inline-block;overflow:hidden}#dslc-content ul.dslc-staff-social a{border:0 solid transparent;text-decoration:none;position:relative;float:left;display:inline-flex;justify-content:center;align-items:center}#dslc-content ul.dslc-staff-social .dslc-icon{line-height:1}#dslc-content ul.dslc-staff-social .dslc-social-label{float:left;display:block}.dslc-notification-box-has-timeout{display:none}body.dslca-enabled .dslc-notification-box-has-timeout{display:block}#dslc-content .dslc-notification-box-content p:last-child{margin-bottom:0}#dslc-content .dslc-notification-box-close{display:flex;justify-content:center;align-items:center;position:absolute;right:15px;top:20px;cursor:pointer;background:#fff;color:#f65757;border-radius:50%;width:15px;height:15px}.dslc-comment,.dslc-tp-comments{border:0 solid transparent}#dslc-content .dslc-notification-box-close .dslc-icon{color:#f65757;font-size:12px;text-align:center}#dslc-content .dslc-button a{display:inline-block;text-decoration:none;line-height:1;box-shadow:none;-webkit-appearance:none}.dslc-tp-comments li,.dslc-tp-comments ol,.dslc-tp-comments ul{list-style-type:none}.dslc-tp-comments ol{margin-left:0}.dslc-comment{margin:0}.dslc-comment-inner{border:1px solid #ddd;padding:10px;margin-bottom:20px}.dslc-comment-info{margin-bottom:10px;border-bottom:1px solid #ddd}.dslc-tp-comment-form,.dslc-tp-comment-form input,.dslc-tp-comment-form textarea{border:0 solid transparent}.dslc-comment-meta{float:left;margin:0}.dslc-comment-meta-author{display:inline-block;margin-right:15px;line-height:1}.dslc-comment-author-avatar{margin-right:5px}.dslc-comment-meta-author a{color:inherit;text-decoration:none}.dslc-comment-author-avatar img{vertical-align:middle}.dslc-comment-meta-date{display:inline-block;line-height:1}.dslc-comment-reply{float:right}.dslc-comment-reply a{text-decoration:none}.dslc-comment .dslc-comment{margin-left:50px}.dslc-tp-comment-form input[type=email]::-moz-placeholder,.dslc-tp-comment-form input[type=text]::-moz-placeholder,.dslc-tp-comment-form input[type=url]::-moz-placeholder,.dslc-tp-comment-form textarea::-moz-placeholder{opacity:1}.dslc-tp-comment-form input[type=text]{line-height:1}.dslc-tp-comment-form textarea{width:100%;height:130px;box-sizing:border-box}.dslc-tp-comment-form .logged-in-as{margin-bottom:15px}.dslc-tp-comment-form #submit{cursor:pointer}.dslc-image,.dslc-image img{border:0;box-shadow:none}#dslc-content .dslc-image,#dslc-content .dslc-image>a{display:inline-block}#dslc-content .dslc-image img{max-width:100%;display:inline-block;vertical-align:middle;box-shadow:none;border-radius:none;position:relative}#dslc-content .dslc-accordion,#dslc-content .dslc-accordion-header,#dslc-content .dslc-accordion-title,#dslc-content .dslc-progress-bar{border:0 solid transparent}#dslc-content .dslc-progress-bar-label{margin:0;padding:0;line-height:1}#dslc-content .dslc-progress-bar-loader{background:#666;display:block;height:18px}#dslc-content .dslc-progress-bar-loader-inner{display:block;float:left;overflow:hidden;white-space:nowrap}#dslc-content .dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:0}#dslc-content .dslca-enabled .dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:1}#dslc-content .dslc-accordion-item:first-child{margin-top:0!important}#dslc-content .dslc-accordion-header{display:block;font-weight:700;font-size:11px;line-height:1;position:relative}#dslc-content .dslc-accordion-title{display:block}#dslc-content .dslc-accordion-hook{cursor:pointer}#dslc-content .dslc-accordion-toggle{display:block;position:absolute;left:0;top:0;bottom:0}#dslc-content .dslc-accordion-content{position:relative;border:0 solid transparent}#dslc-content .dslca-add-accordion{text-align:center}#dslc-content .dslca-add-accordion-hook{background:#78CA4F;border-radius:50%;color:#fff;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;font-size:12px;height:20px;text-align:center;line-height:22px;width:20px;position:relative;margin-top:10px}#dslc-content .dslca-accordion-action-hooks{position:absolute;right:14px;top:14px}#dslc-content .dslca-move-down-accordion-hook,#dslc-content .dslca-move-up-accordion-hook{color:#5890e5}#dslc-content .dslca-move-down-accordion-hook:hover,#dslc-content .dslca-move-up-accordion-hook:hover{color:#3b6fbe}#dslc-content .dslca-delete-accordion-hook{color:#E55F5F;cursor:pointer;display:inline-block;font-size:12px;margin-left:10px;line-height:1;vertical-align:top}#dslc-content .dslc-icon-module{position:relative;display:inline-block}#dslc-content .dslc-navigation{z-index:99998;position:relative;text-align:right;font-size:0}#dslc-content .dslc-navigation .menu{list-style:none;margin:0;padding:0}#dslc-content .dslc-navigation.dslc-navigation-orientation-horizontal .menu>li,#dslc-content .dslc-navigation.dslc-navigation-orientation-vertical .menu>li:first-child{margin-top:0!important}#dslc-content .dslc-navigation .menu>li{display:inline-block;position:relative;z-index:99998}#dslc-content .dslc-navigation.dslc-navigation-orientation-vertical .menu>li{display:block;margin-left:0!important}#dslc-content .dslc-navigation .menu>li:first-child{margin-left:0!important}#dslc-content .dslc-navigation .menu>li>a{display:inline-block;text-decoration:none;vertical-align:middle}#dslc-content .dslc-navigation-arrow{display:inline-block;margin-left:5px;vertical-align:middle}#dslc-content .dslc-navigation .menu ul{border-style:solid;display:none;list-style-type:none;margin:0;opacity:0;position:absolute;top:100%;left:-28px}#dslc-content .dslc-navigation.dslc-navigation-sub-position-left .menu ul{left:0;right:auto}#dslc-content .dslc-navigation.dslc-navigation-sub-position-right .menu ul{right:0;left:auto}#dslc-content .dslc-navigation.dslc-navigation-sub-position-center .menu ul{left:auto;right:auto}#dslc-content .dslc-navigation-orientation-vertical .menu ul{top:0;left:100%}#dslc-content .dslc-navigation .menu ul.dslc-navigation-invert-subnav{left:auto;right:0}#dslc-content .dslc-navigation .menu ul li{display:block;white-space:nowrap;margin:0}#dslc-content .dslc-navigation .menu ul li a{display:block;line-height:1;text-decoration:none}#dslc-content .dslc-navigation .menu ul li:last-child a{border-bottom:0!important}#dslc-content .dslc-navigation .dt-icon.dt-subnav-arrow{display:none;color:#bfbfbf;font-size:8px;margin-left:10px;vertical-align:middle;position:relative;top:-3px;margin-right:0}#dslc-content .dslc-navigation li.current-menu-item .dt-icon.dt-subnav-arrow{color:#878787}#dslc-content .dslc-navigation .menu ul ul{left:100%;margin-left:-10px;top:-1px}#dslc-content .dslc-navigation .menu ul ul.dslc-navigation-invert-subnav{left:auto;right:100%}#dslc-content .dslc-navigation .menu li:hover>ul{display:block}#dslc-content .dslc-mobile-navigation{position:relative;text-align:right;display:none}#dslc-content .dslc-mobile-navigation select{cursor:pointer;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;position:absolute;right:0;top:0;padding-top:0;padding-bottom:0;z-index:10;height:38px;width:100%}#dslc-content .dslc-mobile-navigation-hook{color:#555;font-size:24px;line-height:22px}.dslc-post-main-inner-link-cover{display:none;position:absolute;top:0;left:0;right:0;bottom:0}.dslc-posts-social-share{line-height:1}.dslc-posts-social-share a:last-child{margin-right:0!important}.dslc-posts-social-share-count{display:inline-block;border-style:solid}.dslc-center-elem{top:50%;position:relative;left:50%;visibility:visible;transform:translate(-50%,-50%)}@media only screen and (min-width :768px) and (max-width :1024px){#dslc-content .dslc-mobile-navigation.dslc-navigation-res-t-enabled{display:block}#dslc-content .dslc-navigation.dslc-navigation-res-t-enabled{display:none}.dslc-post-main-inner-link-cover{display:block}}@media only screen and (max-width:767px){.dslc-tabs-nav{display:none}.dslc-tabs-tab-content{display:block!important}.dslc-tabs-content .dslc-tabs-nav-hook{display:block!important;float:none!important;margin-bottom:20px}.dslc-comment .dslc-comment{margin-left:0}.dslc-comment .children{margin-left:0;padding-left:0}#dslc-content .dslc-mobile-navigation.dslc-navigation-res-p-enabled{display:block}#dslc-content .dslc-navigation.dslc-navigation-res-p-enabled{display:none}.dslc-post-main-inner-link-cover{display:block}.dslc-carousel .dslc-carousel-item{margin-left:0!important}}.owl-carousel .owl-wrapper:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.mfp-container:before,.mfp-figure:after{content:''}.owl-carousel,.owl-carousel .owl-wrapper{display:none;position:relative}.owl-carousel{width:100%;-ms-touch-action:pan-y}.owl-carousel .owl-wrapper-outer{overflow:hidden;position:relative;width:100%}.mfp-bg,.mfp-wrap{position:fixed;left:0;top:0}.owl-carousel .owl-wrapper-outer.autoHeight{-webkit-transition:height .5s ease-in-out;-moz-transition:height .5s ease-in-out;-ms-transition:height .5s ease-in-out;-o-transition:height .5s ease-in-out;transition:height .5s ease-in-out}.owl-carousel .owl-item{float:left}.owl-controls .owl-buttons div,.owl-controls .owl-page{cursor:pointer}.owl-controls{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-origin{-webkit-perspective:1200px;-webkit-perspective-origin-x:50%;-webkit-perspective-origin-y:50%;-moz-perspective:1200px;-moz-perspective-origin-x:50%;-moz-perspective-origin-y:50%;perspective:1200px}.owl-fade-out{z-index:10;-webkit-animation:fadeOut .7s both ease;-moz-animation:fadeOut .7s both ease;animation:fadeOut .7s both ease}.owl-fade-in{-webkit-animation:fadeIn .7s both ease;-moz-animation:fadeIn .7s both ease;animation:fadeIn .7s both ease}.owl-backSlide-out{-webkit-animation:backSlideOut 1s both ease;-moz-animation:backSlideOut 1s both ease;animation:backSlideOut 1s both ease}.owl-backSlide-in{-webkit-animation:backSlideIn 1s both ease;-moz-animation:backSlideIn 1s both ease;animation:backSlideIn 1s both ease}.owl-goDown-out{-webkit-animation:scaleToFade .7s ease both;-moz-animation:scaleToFade .7s ease both;animation:scaleToFade .7s ease both}.owl-goDown-in{-webkit-animation:goDown .6s ease both;-moz-animation:goDown .6s ease both;animation:goDown .6s ease both}.owl-fadeUp-in{-webkit-animation:scaleUpFrom .5s ease both;-moz-animation:scaleUpFrom .5s ease both;animation:scaleUpFrom .5s ease both}.owl-fadeUp-out{-webkit-animation:scaleUpTo .5s ease both;-moz-animation:scaleUpTo .5s ease both;animation:scaleUpTo .5s ease both}@-webkit-keyframes empty{0%{opacity:1}}@-moz-keyframes empty{0%{opacity:1}}@keyframes empty{0%{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-moz-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes backSlideOut{25%{opacity:.5;-webkit-transform:translateZ(-500px)}100%,75%{opacity:.5;-webkit-transform:translateZ(-500px) translateX(-200%)}}@-moz-keyframes backSlideOut{25%{opacity:.5;-moz-transform:translateZ(-500px)}100%,75%{opacity:.5;-moz-transform:translateZ(-500px) translateX(-200%)}}@keyframes backSlideOut{25%{opacity:.5;transform:translateZ(-500px)}100%,75%{opacity:.5;transform:translateZ(-500px) translateX(-200%)}}@-webkit-keyframes backSlideIn{0%,25%{opacity:.5;-webkit-transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;-webkit-transform:translateZ(-500px)}100%{opacity:1;-webkit-transform:translateZ(0) translateX(0)}}@-moz-keyframes backSlideIn{0%,25%{opacity:.5;-moz-transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;-moz-transform:translateZ(-500px)}100%{opacity:1;-moz-transform:translateZ(0) translateX(0)}}@keyframes backSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;transform:translateZ(-500px)}100%{opacity:1;transform:translateZ(0) translateX(0)}}@-webkit-keyframes scaleToFade{to{opacity:0;-webkit-transform:scale(.8)}}@-moz-keyframes scaleToFade{to{opacity:0;-moz-transform:scale(.8)}}@keyframes scaleToFade{to{opacity:0;transform:scale(.8)}}@-webkit-keyframes goDown{from{-webkit-transform:translateY(-100%)}}@-moz-keyframes goDown{from{-moz-transform:translateY(-100%)}}@keyframes goDown{from{transform:translateY(-100%)}}@-webkit-keyframes scaleUpFrom{from{opacity:0;-webkit-transform:scale(1.5)}}@-moz-keyframes scaleUpFrom{from{opacity:0;-moz-transform:scale(1.5)}}@keyframes scaleUpFrom{from{opacity:0;transform:scale(1.5)}}@-webkit-keyframes scaleUpTo{to{opacity:0;-webkit-transform:scale(1.5)}}@-moz-keyframes scaleUpTo{to{opacity:0;-moz-transform:scale(1.5)}}@keyframes scaleUpTo{to{opacity:0;transform:scale(1.5)}}.owl-theme .owl-controls{margin-top:10px;text-align:center}.owl-theme .owl-controls .owl-buttons div{color:#FFF;display:inline-block;zoom:1;margin:5px;padding:3px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;background:#869791;filter:Alpha(Opacity=50);opacity:.5}.owl-theme .owl-controls.clickable .owl-buttons div:hover{filter:Alpha(Opacity=100);opacity:1;text-decoration:none}.owl-theme .owl-controls .owl-page{display:inline-block;zoom:1}.owl-theme .owl-controls .owl-page span{display:block;width:12px;height:12px;margin:5px 7px;filter:Alpha(Opacity=50);opacity:.5;-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:20px;background:#869791}.owl-theme .owl-controls .owl-page.active span,.owl-theme .owl-controls.clickable .owl-page:hover span{filter:Alpha(Opacity=100);opacity:1}.owl-theme .owl-controls .owl-page span.owl-numbers{height:auto;width:auto;color:#FFF;padding:2px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.mfp-bg,.mfp-container,.mfp-wrap{height:100%;width:100%}.owl-item.loading{min-height:150px;background:url(AjaxLoader.gif) center center no-repeat}.mfp-bg{z-index:99999;overflow:hidden;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.mfp-wrap{z-index:100000;outline:0!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:100001}.mfp-close,.mfp-preloader{text-align:center;position:absolute}.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#ccc;top:50%;width:auto;margin-top:-.8em;left:8px;right:8px;z-index:100000}.mfp-preloader a{color:#ccc}.mfp-close,.mfp-preloader a:hover{color:#fff}.mfp-s-error .mfp-content,.mfp-s-ready .mfp-preloader{display:none}button.mfp-arrow,button.mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:100002;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;right:0;top:0;text-decoration:none;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:focus,.mfp-close:hover{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close{color:#fff;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#ccc;font-size:12px;line-height:18px}.mfp-figure,img.mfp-img{line-height:0}.mfp-arrow{position:absolute;opacity:.65;filter:alpha(opacity=65);margin:-55px 0 0;top:50%;padding:0;width:90px;height:110px}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:focus,.mfp-arrow:hover{opacity:1;filter:alpha(opacity=100)}.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:inset transparent}.mfp-arrow .mfp-a,.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow .mfp-b,.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left .mfp-a,.mfp-arrow-left:after{border-right:17px solid #fff;margin-left:31px}.mfp-arrow-left .mfp-b,.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3f3f3f}.mfp-arrow-right{right:0}.mfp-arrow-right .mfp-a,.mfp-arrow-right:after{border-left:17px solid #fff;margin-left:39px}.mfp-arrow-right .mfp-b,.mfp-arrow-right:before{border-left:27px solid #3f3f3f}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-image-holder .mfp-content,img.mfp-img{max-width:100%}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}.mfp-figure:after,img.mfp-img{width:auto;height:auto;display:block}img.mfp-img{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:40px 0;margin:0 auto}.mfp-figure:after{position:absolute;left:0;top:40px;bottom:40px;right:0;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#bdbdbd;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#f3f3f3;word-wrap:break-word;padding-right:36px}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(.75);transform:scale(.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-ie7 .mfp-img{padding:0}.mfp-ie7 .mfp-bottom-bar{width:600px;left:50%;margin-left:-300px;margin-top:5px;padding-bottom:5px}.mfp-ie7 .mfp-container{padding:0}.mfp-ie7 .mfp-content{padding-top:44px}.mfp-ie7 .mfp-close{top:0;right:0;padding-top:0}.mfp-close:hover{background:0 0}
1
+ .dslc-clear,.dslc-clearfix:after,.dslc-first-col,.dslc-module-heading:after{clear:both}.dslc-tp-comment-form textarea,.mfp-container{-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.mfp-arrow,.owl-controls{-webkit-tap-highlight-color:transparent}#dslc-content blockquote p:last-child{margin-bottom:0!important}#dslc-header{position:relative}#dslc-header.dslc-header-pos-absolute{position:absolute;top:0;left:0;right:0;z-index:99999}#dslc-header.dslc-header-pos-fixed{position:fixed;top:0;left:0;right:0;z-index:99999}body.admin-bar:not(.dslca-enabled) #dslc-header.dslc-header-pos-fixed{top:32px}#dslc-footer,body.dslca-enabled:not(.dslca-composer-hidden) #dslc-header.dslc-header-pos-absolute,body.dslca-enabled:not(.dslca-composer-hidden) #dslc-header.dslc-header-pos-fixed{position:relative}#dslc-footer.dslc-footer-pos-absolute{position:absolute;bottom:0;left:0;right:0;z-index:999999}#dslc-footer.dslc-footer-pos-fixed{position:fixed;bottom:0;left:0;right:0;z-index:999999}.dslc-modules-section{border:0 solid transparent;position:relative}.dslc-modules-section.dslc-init-parallax{background-attachment:fixed}.dslc-modules-section-wrapper{max-width:100%;margin:0 auto}.dslc-modules-section.dslc-full .dslc-modules-section-wrapper{width:100%}.dslc-module-front{position:relative}.dslc-col{display:block;float:left;margin-right:2.12766%;min-height:1px}body.rtl .dslc-col{float:right;margin-left:2.12766%;margin-right:0}.dslc-1-col{width:6.38297%}.dslc-2-col{width:14.89361%}.dslc-3-col{width:23.40425%}.dslc-4-col{width:31.91489%}.dslc-5-col{width:40.42553%}.dslc-6-col{width:48.93617%}.dslc-7-col{width:57.4468%}.dslc-8-col{width:65.95744%}.dslc-9-col{width:74.46808%}.dslc-10-col{width:82.97872%}.dslc-11-col{width:91.48936%}.dslc-12-col{width:100%}.dslc-last-col{margin-right:0}body.rtl .dslc-last-col{margin-left:0}.dslc-no-columns-spacing .dslc-col{margin:0}.dslc-no-columns-spacing .dslc-1-col{width:8.33333%}.dslc-no-columns-spacing .dslc-2-col{width:16.66666%}.dslc-no-columns-spacing .dslc-3-col{width:25%}.dslc-no-columns-spacing .dslc-4-col{width:33.33333%}.dslc-no-columns-spacing .dslc-5-col{width:41.66666%}.dslc-no-columns-spacing .dslc-6-col{width:50%}.dslc-no-columns-spacing .dslc-7-col{width:58.33333%}.dslc-no-columns-spacing .dslc-8-col{width:66.66666%}.dslc-no-columns-spacing .dslc-9-col{width:75%}.dslc-no-columns-spacing .dslc-10-col{width:83.33333%}.dslc-no-columns-spacing .dslc-11-col{width:91.66666%}.dslc-no-columns-spacing .dslc-12-col,.dslc-no-columns-spacing .dslc-carousel .dslc-col,.dslc-no-columns-spacing .dslc-carousel .dslc-first-col,.dslc-no-columns-spacing .dslc-carousel .dslc-last-col{width:100%}.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}.dslc-carousel .dslc-col,.dslc-carousel .dslc-first-col,.dslc-carousel .dslc-last-col{float:none;clear:none;margin:0}.dslc-carousel-item{width:auto}.dslc-carousel-nav{float:right}.dslc-carousel-nav-inner{display:block}.dslc-carousel-nav-next,.dslc-carousel-nav-prev{background:#c9c9c9;border:0 solid transparent;border-radius:3px;display:inline-flex;justify-content:center;align-items:center;height:23px;position:relative;width:23px;text-decoration:none;vertical-align:bottom}.dslc-carousel-nav-prev{margin-right:7px}.dslc-carousel-nav-next span,.dslc-carousel-nav-prev span{color:#fff;font-size:10px;text-align:center;font-weight:400}#dslc-content .dslc-carousel .owl-pagination .owl-page span{margin:0;filter:Alpha(Opacity=100);opacity:1}#dslc-content .dslc-slider{padding-bottom:1px;opacity:0;max-height:10px}#dslc-content .dslc-slider img{max-width:100%}#dslc-content .dslc-slider .owl-pagination .owl-page span{margin:0;filter:Alpha(Opacity=100);opacity:1}.dslc-carousel{opacity:0;max-height:100px;overflow:hidden}.dslc-carousel.owl-carousel .owl-wrapper-outer{overflow:visible}.dslca-activate-composer-hook{background:#54c13f;color:#fff;border-radius:3px;position:fixed;z-index:99999;right:5px;bottom:5px;cursor:pointer;display:block;font-size:11px;font-family:'Open Sans',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-activate-composer-hook:hover{background:#40D71F}.dslca-activate-composer-hook:visited{color:#fff}.dslca-activate-composer-hook.dslca-position-left{right:auto;left:5px}.dslca-activate-composer-hook .dslca-icon{color:rgba(255,255,255,.66);margin-right:5px}@keyframes dslcSpin{0%{-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes dslcSpin{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dslcSpin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-ms-keyframes "dslcSpin"{0%{-ms-transform:rotate(0);transform:rotate(0)}100%{-ms-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes dslcSpin{0%{-o-transform:rotate(0);transform:rotate(0)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}.dslc-loader{position:relative;width:20px;height:20px;border:2px solid #0cf;border-radius:50%;-webkit-animation:dslcSpin .75s infinite linear;-moz-animation:dslcSpin .75s infinite linear;-ms-animation:dslcSpin .75s infinite linear;-o-animation:dslcSpin .75s infinite linear;animation:dslcSpin .75s infinite linear;margin-left:48%}.dslc-loader::after,.dslc-loader::before{left:-2px;top:-2px;display:none;position:absolute;content:'';width:inherit;height:inherit;border:inherit;border-radius:inherit}.dslc-loader,.dslc-loader::before{display:inline-block;border-color:#0cf transparent transparent}.dslc-loader::before{-webkit-animation:dslcSpin 1.5s infinite ease;-moz-animation:dslcSpin 1.5s infinite ease;-ms-animation:dslcSpin 1.5s infinite ease;-o-animation:dslcSpin 1.5s infinite ease;animation:dslcSpin 1.5s infinite ease}.dslc-notification{background:#fff;border:1px solid #e8e8e8;border-radius:3px;color:#979797;margin-bottom:20px;padding:15px;position:relative;font-size:14px;line-height:25px}.dslc-notification.dslc-green,.dslc-notification.dslc-red,.dslc-notification.dslc-yellow{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.14)}.dslc-module-DSLC_Image .dslc-notification{font-family:'Open Sans',sans-serif}.dslc-notification .dslc-icon{cursor:pointer;position:absolute;right:14px;top:21px}.dslc-notification.dslc-red{background:#f65757;border-color:#e43737}.dslc-notification.dslc-yellow{background:#fac841;border-color:#eab72e}.dslc-notification.dslc-green{background:#8ccb25;border-color:#77b01a}#dslc-content .dslc-module-heading{overflow:hidden;position:relative}#dslc-content .dslc-module-heading h2{display:block;float:left;font-size:17px;font-weight:400;line-height:1;margin:0 15px 0 0;padding:0}#dslc-content .dslc-module-heading-view-all{display:block;float:left;font-size:11px;line-height:1;margin:3px 20px 3px 0}#dslc-content .dslc-module-heading-view-all a{display:block;padding-left:15px;border-left:1px dotted #4f4f4f;font-weight:600;line-height:1;text-decoration:none}.dslc-masonry-item{margin-bottom:30px;margin-right:0}.dslc-masonry-item-animate{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.dslc-post-separator{clear:both;height:1px;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #ededed}.dslc-pagination{border:0 solid transparent;overflow:hidden;margin-top:30px}.dslc-pagination ul{margin:0;padding:0}.dslc-pagination li{display:inline-block;margin:0 10px 0 0;padding:0}.dslc-pagination li:last-child{margin-right:0!important}.dslc-pagination-load-more .dslc-icon,.dslc-post-filter{margin-right:10px}.dslc-pagination li a{background:#eee;border:0 solid transparent;color:#000;display:block;line-height:1;padding:10px;text-decoration:none}.dslc-pagination li.current a{background:#000;color:#fff}.dslc-pagination li.dslc-pagination-load-more{width:auto;display:block}.dslc-pagination li.dslc-pagination-load-more.dslc-inactive a{cursor:default}.dslc-load-more-temp{display:none}.dslc-init-center{display:flex;align-items:center;justify-content:center}.dslc-init-topleft .dslc-init-target{position:absolute!important;top:0!important;left:0!important;bottom:auto!important;right:auto!important}.dslc-init-topright .dslc-init-target{position:absolute!important;top:0!important;right:0!important;bottom:auto!important;left:auto!important}.dslc-init-bottomleft .dslc-init-target{position:absolute!important;bottom:0!important;left:0!important;top:auto!important;right:auto!important}.dslc-init-bottomright .dslc-init-target{position:absolute!important;bottom:0!important;right:0!important;top:auto!important;left:auto!important}#dslc-content .dslc-products .dslc-product-thumb .dslc-init-topleft{position:absolute;top:0;left:0;bottom:auto;right:auto}#dslc-content .dslc-products .dslc-product-thumb .dslc-init-topright{position:absolute;top:0;right:0;bottom:auto;left:auto}#dslc-content .dslc-products .dslc-product-thumb .dslc-init-bottomleft{position:absolute;bottom:0;left:0;top:auto;right:auto}#dslc-content .dslc-products .dslc-product-thumb .dslc-init-bottomright{position:absolute;bottom:0;right:0;top:auto;left:auto}.dslc-post-filters{overflow:hidden;font-size:0}.dslc-post-filter{background:#fff;border:1px solid #e8e8e8;border-radius:3px;color:#979797;cursor:pointer;display:inline-block;font-size:11px;font-weight:700;line-height:1;padding:12px}.dslc-post-filter.dslc-active{color:#ff4e01}.dslc-post-filter:last-child{margin-right:0!important}#dslc-content .dslc-bg-video{background:0 0;position:absolute;left:0;right:0;bottom:0;top:0;opacity:0}#dslc-content .dslc-bg-video.dslc-force-show{opacity:1}#dslc-content .dslc-bg-video .mejs-container{background:0 0;position:absolute;left:0;right:0;bottom:0;top:0;width:100%!important;height:auto!important;overflow:hidden}#dslc-content .dslc-bg-video video{min-width:100%;height:auto!important;min-height:100%}#dslc-content .dslc-bg-video .mejs-controls{display:none!important}#dslc-content .dslc-bg-video-overlay{position:absolute;left:0;top:0;right:0;bottom:0;opacity:0;background:#000}.dslc-trigger-lightbox-gallery{cursor:pointer}@media only screen and (min-device-width :768px) and (max-device-width :1024px){.dslc-modules-section.dslc-init-parallax{background-attachment:scroll!important;background-position:0 0!important}}@media only screen and (max-width:767px){.dslc-modules-section.dslc-init-parallax{background-attachment:scroll!important;background-position:0 0!important}}@keyframes dslcFadeIn{to{opacity:1}}@keyframes dslcSlideUp{to{transform:translateY(0)}}@keyframes dslcSlideDown{to{transform:translateY(0)}}@keyframes dslcSlideRight{to{transform:translateX(0)}}@keyframes dslcSlideLeft{to{transform:translateX(0)}}@keyframes dslcSlideUpFadeIn{to{transform:translateY(0);opacity:1}}@keyframes dslcSlideDownFadeIn{to{transform:translateY(0);opacity:1}}@keyframes dslcSlideRightFadeIn{to{transform:translateX(0);opacity:1}}@keyframes dslcSlideLeftFadeIn{to{transform:translateX(0);opacity:1}}@media only screen and (min-width:768px){@-webkit-keyframes dslcFadeIn{to{opacity:1}}@-moz-keyframes dslcFadeIn{to{opacity:1}}.dslc-in-viewport-anim-dslcFadeIn.dslc-in-viewport-check{opacity:0}@-webkit-keyframes dslcSlideUp{to{-webkit-transform:translateY(0)}}@-moz-keyframes dslcSlideUp{to{-moz-transform:translateY(0)}}.dslc-in-viewport-anim-dslcSlideUp.dslc-in-viewport-check{-webkit-transform:translateY(100px);-moz-transform:translateY(100px);transform:translateY(100px)}@-webkit-keyframes dslcSlideDown{to{-webkit-transform:translateY(0)}}@-moz-keyframes dslcSlideDown{to{-moz-transform:translateY(0)}}.dslc-in-viewport-anim-dslcSlideDown.dslc-in-viewport-check{-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);transform:translateY(-100px)}@-webkit-keyframes dslcSlideRight{to{-webkit-transform:translateX(0)}}@-moz-keyframes dslcSlideRight{to{-moz-transform:translateX(0)}}.dslc-in-viewport-anim-dslcSlideRight.dslc-in-viewport-check{-webkit-transform:translateX(-100px);-moz-transform:translateX(-100px);transform:translateX(-100px)}@-webkit-keyframes dslcSlideLeft{to{-webkit-transform:translateX(0)}}@-moz-keyframes dslcSlideLeft{to{-moz-transform:translateX(0)}}.dslc-in-viewport-anim-dslcSlideLeft.dslc-in-viewport-check{-webkit-transform:translateX(100px);-moz-transform:translateX(100px);transform:translateX(100px)}@-webkit-keyframes dslcSlideUpFadeIn{to{-webkit-transform:translateY(0);opacity:1}}@-moz-keyframes dslcSlideUpFadeIn{to{-moz-transform:translateY(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideUpFadeIn.dslc-in-viewport-check{-webkit-transform:translateY(100px);-moz-transform:translateY(100px);transform:translateY(100px);opacity:0}@-webkit-keyframes dslcSlideDownFadeIn{to{-webkit-transform:translateY(0);opacity:1}}@-moz-keyframes dslcSlideDownFadeIn{to{-moz-transform:translateY(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideDownFadeIn.dslc-in-viewport-check{-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);transform:translateY(-100px);opacity:0}@-webkit-keyframes dslcSlideRightFadeIn{to{-webkit-transform:translateX(0);opacity:1}}@-moz-keyframes dslcSlideRightFadeIn{to{-moz-transform:translateX(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideRightFadeIn.dslc-in-viewport-check{-webkit-transform:translateX(-100px);-moz-transform:translateX(-100px);transform:translateX(-100px);opacity:0}@-webkit-keyframes dslcSlideLeftFadeIn{to{-webkit-transform:translateX(0);opacity:1}}@-moz-keyframes dslcSlideLeftFadeIn{to{-moz-transform:translateX(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideLeftFadeIn.dslc-in-viewport-check{-webkit-transform:translateX(100px);-moz-transform:translateX(100px);transform:translateX(100px);opacity:0}}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-post-thumb .dslc-on-hover-anim-target{opacity:1!important;-webkit-transform:translateY(0)!important;-moz-transform:translateY(0)!important;transform:translateY(0)!important;-webkit-transform:translateX(0)!important;-moz-transform:translateX(0)!important;transform:translateX(0)!important}.dslc-anim-dslcFadeIn,.dslc-anim-dslcSlideDownFadeIn,.dslc-anim-dslcSlideLeftFadeIn,.dslc-anim-dslcSlideRightFadeIn,.dslc-anim-dslcSlideUpFadeIn{opacity:0}.dslc-on-hover-anim:hover .dslc-anim-dslcFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDownFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeftFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRightFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUpFadeIn{opacity:1}.dslc-anim-dslcSlideDown,.dslc-anim-dslcSlideDownFadeIn{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);transform:translateY(-100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDown,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDownFadeIn{-webkit-transform:translateY(0);-moz-transform:translateY(0);transform:translateY(0)}.dslc-anim-dslcSlideUp,.dslc-anim-dslcSlideUpFadeIn{-webkit-transform:translateY(100%);-moz-transform:translateY(100%);transform:translateY(100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUp,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUpFadeIn{-webkit-transform:translateY(0);-moz-transform:translateY(0);transform:translateY(0)}.dslc-anim-dslcSlideRight,.dslc-anim-dslcSlideRightFadeIn{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);transform:translateX(-100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRight,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRightFadeIn{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.dslc-anim-dslcSlideLeft,.dslc-anim-dslcSlideLeftFadeIn{-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeft,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeftFadeIn{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.dslc-anim-none{opacity:0;-webkit-transition:all 0s ease-out!important}.dslc-on-hover-anim:hover .dslc-anim-none{opacity:1}#dslc-content{position:relative;overflow:hidden}.alignnone{margin:5px 20px 20px 0}.aligncenter,div.aligncenter{display:block;margin:5px auto}.alignright{float:right;margin:5px 0 20px 20px}.alignleft{float:left;margin:5px 20px 20px 0}.aligncenter{display:block;margin:5px auto}a img.alignright{float:right;margin:5px 0 20px 20px}#dslc-content .dslc-cpt-post-meta-author,a img.alignleft{float:left}a img.alignleft,a img.alignnone{margin:5px 20px 20px 0}a img.aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-caption{background:#fff;border:1px solid #f0f0f0;max-width:96%;padding:5px 3px 10px;text-align:center}.wp-caption.alignleft,.wp-caption.alignnone{margin:5px 20px 20px 0}.wp-caption.alignright{margin:5px 0 20px 20px}.wp-caption img{border:0;height:auto;margin:0;max-width:98.5%;padding:0;width:auto}.wp-caption p.wp-caption-text{font-size:11px;line-height:17px;margin:0;padding:0 4px 5px}.gallery-caption{font-weight:700}.dslc-content b,.dslc-content strong{font-weight:bolder}.dslc-content em,.dslc-content i:not(.fa,.dslc-icon){font-style:italic}@media only screen and (min-width :1025px){.dslc-hide-on-desktop{display:none!important}.dslca-enabled .dslc-hide-on-desktop{display:block!important}.dslca-composer-hidden .dslc-hide-on-desktop{display:none!important}}@media only screen and (min-width :768px) and (max-width :1024px){body.dslca-enabled.dslc-res-tablet{padding-bottom:200px}.dslc-hide-on-tablet{display:none!important}}@media only screen and (max-width:767px){body.dslca-enabled.dslc-res-phone{padding-bottom:200px}.dslc-col,.dslc-no-columns-spacing .dslc-col{width:100%;margin:0 0 30px;min-width:0}.dslc-module-front.dslc-col{margin-bottom:0}.dslc-hide-on-phone{display:none!important}}@media all and (-ms-high-contrast:none){.dslc-image-container .dslc-image,.dslc-image-container .dslc-image a{width:100%!important}.dslc-in-viewport-check{transform:none!important;opacity:1!important}#dslc-content .dslc-info-box-image-alt-inner{width:100%}}.dslc-module-front a{text-decoration:none}#dslc-content .dslc-post{overflow:hidden}.dslc-module-front{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}#dslc-content .dslc-cpt-post-thumb{margin-bottom:20px;overflow:hidden;position:relative;line-height:0}#dslc-content .dslc-cpt-post-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-cpt-post-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-cpt-post-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main.dslc-cpt-post-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-cpt-post-thumb .dslc-cpt-post-main{opacity:1}#dslc-content .dslc-cpt-post-meta{margin-bottom:20px;overflow:hidden;padding:13px 0;font-size:11px;line-height:1}#dslc-content .dslc-cpt-post-meta-author a{text-decoration:none}#dslc-content .dslc-cpt-post-meta-date{float:right}#dslc-content .dslc-cpt-post-title{margin-bottom:13px}#dslc-content .dslc-cpt-post-title h2{font-weight:600;font-size:15px;line-height:26px;margin:0;padding:0}#dslc-content .dslc-cpt-post-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-cpt-post-excerpt{margin-bottom:22px;font-size:13px;line-height:22px}#dslc-content .dslc-cpt-post-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-cpt-posts-orientation-horizontal .dslc-cpt-post-thumb{float:left;margin-right:20px;width:200px}#dslc-content .dslc-cpt-posts-orientation-horizontal .dslc-cpt-post-main,.dslc-post-thumb{overflow:hidden}#dslc-content .dslc-blog-post-main{border:0 solid transparent}#dslc-content .dslc-blog-post-thumb{margin-bottom:20px;overflow:hidden;position:relative;line-height:0}#dslc-content .dslc-blog-post-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-blog-post-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-blog-post-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main.dslc-blog-post-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-blog-post-thumb .dslc-blog-post-main{opacity:1}#dslc-content .dslc-blog-post-meta{border-left:0;border-right:0;margin-bottom:20px;overflow:hidden;padding:13px 0;font-size:11px;line-height:1}#dslc-content .dslc-blog-post-meta-author{float:left}#dslc-content .dslc-blog-post-meta-avatar{margin-right:10px;width:30px;display:inline-block}#dslc-content .dslc-blog-post-meta-avatar img{vertical-align:middle;width:100%;height:auto;border-radius:50%}#dslc-content .dslc-blog-post-meta-author a{text-decoration:none}#dslc-content .dslc-blog-post-meta-date{float:right}#dslc-content .dslc-blog-post-title{margin-bottom:13px}#dslc-content .dslc-blog-post-title h2{font-weight:600;font-size:15px;line-height:26px;margin:0;padding:0}#dslc-content .dslc-blog-post-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-blog-post-excerpt{margin-bottom:22px;font-size:13px;line-height:22px}#dslc-content .dslc-blog-post-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}.dslc-posts-orientation-horizontal .dslc-post-thumb{float:left;margin-right:20px;width:200px}#dslc-content .dslc-posts-orientation-horizontal .dslc-post-main{overflow:hidden}#dslc-content .dslc-download-thumb{position:relative;line-height:0}#dslc-content .dslc-download-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-download-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-download-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-download-download a,#dslc-content .dslc-download-main{border:0 solid transparent;text-align:center}#dslc-content .dslc-download-thumb .dslc-download-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-download-thumb .dslc-download-main.dslc-download-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-download-thumb .dslc-download-main{opacity:1}#dslc-content .dslc-download-title{margin-bottom:13px}#dslc-content .dslc-download-title h2{font-size:15px;line-height:1.7;margin:0;padding:0}#dslc-content .dslc-download-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-download-tags{border:1px solid #e5e5e5;border-width:1px 0;font-size:12px;padding:8px 0;line-height:1;margin-bottom:22px}#dslc-content .dslc-download-excerpt{margin-bottom:22px;font-size:13px;line-height:22px;font-weight:400}#dslc-content .dslc-download-download{margin-bottom:10px}#dslc-content .dslc-download-download a{background:#ff4e01;border-radius:3px;color:#fff;display:block;font-size:13px;font-weight:700;line-height:1;padding:15px 0;text-decoration:none}#dslc-content .dslc-download-download .dslc-icon{margin-right:10px}#dslc-content .dslc-download-info{font-size:10px;font-style:italic}#dslc-content .dslc-gallery-thumb{position:relative;line-height:0}#dslc-content .dslc-gallery-thumb-inner{border:0 solid transparent;position:relative;overflow:hidden}#dslc-content .dslc-gallery-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;display:block;box-shadow:none;max-width:100%;height:auto}#dslc-content .dslc-gallery-thumb .dslc-gallery-images-count{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;text-decoration:none}#dslc-content .dslc-gallery-images-count-bg{background:0 0;border:0 solid transparent;position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-gallery-images-count-main{position:relative}#dslc-content .dslc-gallery-images-count-num{color:#fff;display:block;font-size:25px;font-weight:200;line-height:1;margin-bottom:8px}#dslc-content .dslc-gallery-images-count-txt{color:#7d7d7d;display:block;font-size:11px;line-height:1}#dslc-content .dslc-gallery-thumb .dslc-gallery-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-gallery-thumb .dslc-gallery-main.dslc-gallery-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-gallery-thumb .dslc-gallery-main{opacity:1}#dslc-content .dslc-gallery-main{border:0 solid transparent;text-align:center}#dslc-content .dslc-gallery-title{margin-bottom:15px}#dslc-content .dslc-gallery-title h2{font-size:11px;line-height:1;margin:0;padding:0}#dslc-content .dslc-info-box-icon-pos-aside .dslc-info-box-image,#dslc-content .dslc-info-box-image-pos-aside .dslc-info-box-image-alt{float:left;margin-right:20px}#dslc-content .dslc-gallery-title h2 a{display:block;color:#7d7d7d;text-decoration:none}#dslc-content .dslc-gallery-sep{display:block;height:1px;border-bottom:1px solid #4a4a4a;margin-bottom:15px}#dslc-content .dslc-gallery-excerpt{font-size:12px;border-width:1px 0 0}#dslc-content .dslc-gallery-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-gallery .dslc-lightbox-gallery{display:none}#dslc-content .dslc-info-box{text-align:center;border:0 solid transparent}#dslc-content .dslc-info-box-image{margin-bottom:25px;position:relative;font-size:0}#dslc-content .dslc-info-box-image-link{position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-info-box-icon-pos-aside .dslc-info-box-main{overflow:hidden}#dslc-content .dslc-info-box-image-inner{display:inline-flex;justify-content:center;align-items:center;position:relative;border:0 solid transparent}#dslc-content .dslc-info-box-image-inner .dslc-icon{color:#fff;line-height:1;font-size:40px}#dslc-content .dslc-info-box-image-pos-aside .dslc-info-box-main{overflow:hidden}#dslc-content .dslc-info-box-image-alt-inner{display:inline-block}#dslc-content .dslc-info-box-title h4{font-size:17px;line-height:1;margin:0;padding:0;font-weight:400}#dslc-content .dslc-info-box-title h4 a{color:inherit;text-decoration:none}#dslc-content .dslc-info-box-content{margin-bottom:25px}#dslc-content .dslc-info-box-button{font-size:0}#dslc-content .dslc-info-box-button a{display:inline-block;line-height:1;text-decoration:none;box-shadow:none;-webkit-appearance:none}#dslc-content .dslc-info-box-button-aside{float:right}#dslc-content .dslc-partner .dslc-partner-thumb{position:relative;line-height:0}#dslc-content .dslc-partner .dslc-partner-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-partner .dslc-partner-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:inline-block;vertical-align:bottom;width:auto;max-width:100%;height:auto}#dslc-content .dslc-partner-thumb .dslc-partner-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-partner-thumb .dslc-partner-main.dslc-partner-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-partner-thumb .dslc-partner-main{opacity:1}#dslc-content .dslc-partner-title{margin-bottom:10px}#dslc-content .dslc-partner-title h2{margin:0;padding:0}#dslc-content .dslc-partner-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-project-thumb{margin-bottom:24px;position:relative;line-height:0}#dslc-content .dslc-project-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-project-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-project-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-project-thumb .dslc-project-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-project-thumb .dslc-project-main.dslc-project-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-projects .dslc-post:first-child .dslc-project-thumb .dslc-project-main{opacity:1}#dslc-content .dslc-project-main{border:0 solid transparent}#dslc-content .dslc-project-title{margin-bottom:10px}#dslc-content .dslc-project-title h2{font-weight:700;font-size:12px;line-height:1;margin:0;padding:0}#dslc-content .dslc-project-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-project-cats{font-size:10px;font-style:italic;line-height:1}#dslc-content .dslc-project-excerpt{margin-bottom:22px;font-size:13px;line-height:22px;border-top:0 solid #000}#dslc-content .dslc-project-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}.dslc-separator-wrapper{padding-bottom:1px}.dslc-separator{clear:both;height:1px;padding-bottom:25px;margin-bottom:25px;width:100%}.dslc-module-front.dslc-module-DSLC_Separator{min-height:auto}.dslc-separator.dslc-separator-style-solid{border-bottom:1px solid #ededed}.dslc-separator.dslc-separator-style-dashed{border-bottom:1px dashed #ededed}.dslc-separator.dslc-separator-style-dotted{border-bottom:1px dotted #ededed}#dslc-content .dslc-staff-member-thumb{position:relative;line-height:0}#dslc-content .dslc-staff-member-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-staff-member-thumb img{-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main.dslc-staff-member-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-staff-member-thumb .dslc-staff-member-main{opacity:1}#dslc-content .dslc-staff-member-social a{margin:0 6px;text-decoration:none}#dslc-content .dslc-staff-member-title h2{margin:0;padding:0}#dslc-content .dslc-staff-member-title h2 a{display:block;text-decoration:none;color:inherit}#dslc-content .dslc-tabs-nav-pos-aside .dslc-tabs-nav{float:left;margin-bottom:0!important}#dslc-content .dslc-tabs-nav-pos-above .dslc-tabs-nav{margin-right:0!important}#dslc-content .dslc-tabs-nav-hook{background:#fbfbfb;border:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;border-radius:3px 3px 0 0;bottom:-1px;cursor:pointer;display:inline-block;padding:10px;position:relative;line-height:1;margin-left:-1px}#dslc-content .dslc-tabs-nav-pos-aside .dslc-tabs-nav-hook{display:block;margin-left:0!important}#dslc-content .dslc-tabs-nav-pos-above .dslc-tabs-nav-hook{margin-bottom:0!important}#dslc-content .dslc-tabs-nav-hook:first-child{margin-left:0!important}#dslc-content .dslc-tabs-content,#dslc-content .dslc-tabs-nav-hook.dslc-active{background:#fff}#dslc-content .dslc-tabs-nav-pos-aside .dslc-tabs-content{overflow:hidden}#dslc-content .dslc-tabs-tab-content{padding:35px;display:none;position:relative}#dslc-content .dslc-tabs-tab-content.dslc-active{display:block}.dslca-add-new-tab-hook,.dslca-delete-tab-hook{display:inline-block;margin-left:10px;cursor:pointer}.dslca-add-new-tab-hook{background:#78CA4F;border-radius:50%;color:#fff;font-size:11px;height:20px;text-align:center;line-height:22px;margin-top:8px;width:20px;position:relative}.dslca-add-new-tab-hook .dslca-icon{position:absolute;line-height:1;top:5px;right:6px}.dslca-delete-tab-hook{color:#E55F5F;font-size:12px;line-height:1;vertical-align:top}.dslc-tabs-content .dslc-tabs-nav-hook{display:none!important}#dslc-content .dslc-testimonials{border:0 solid transparent}#dslc-content .dslc-testimonial-main{border:0 solid transparent;border-radius:4px;padding:25px;overflow:hidden}#dslc-content .dslc-testimonial-quote{border-bottom:0 solid transparent}#dslc-content .dslc-testimonial-author-pos-outside-left{float:left}#dslc-content .dslc-testimonial-author-pos-outside-right{float:right}#dslc-content .dslc-testimonial-author-avatar{border:0 solid transparent;float:left}#dslc-content .dslc-testimonial-author-avatar img{display:block;height:auto}#dslc-content .dslc-testimonial-author-main{overflow:hidden;float:left}#dslc-content .dslc-testimonial-author-name{line-height:1}#dslc-content .dslc-testimonial-author-position{line-height:1.1}button,input[type=file]::-webkit-file-upload-button,input[type=button],input[type=submit],input[type=reset]{border-style:none;-webkit-appearance:none}#dslc-content .dslc-widget-wrap,#dslc-content .dslc-widgets-wrap{border:0 solid transparent}.dslc-module-DSLC_Text_Simple img{max-width:100%;height:auto}#dslc-content .dslc-widget{margin-bottom:30px;width:100%}#dslc-content .dslc-widget:last-child{margin-bottom:0!important}#dslc-content .dslc-widget-title{font-size:15px;font-weight:600;margin-bottom:10px;padding-bottom:10px;line-height:1}#dslc-content .dslc-widget-title-inner{display:block}#dslc-content .dslc-widgets-2-col .dslc-col{width:14.89361%}#dslc-content .dslc-widgets-3-col .dslc-col{width:23.40425%}#dslc-content .dslc-widgets-4-col .dslc-col{width:31.91489%}#dslc-content .dslc-widgets-5-col .dslc-col{width:40.42553%}#dslc-content .dslc-widgets-6-col .dslc-col{width:48.93617%}#dslc-content .dslc-widgets-7-col .dslc-col{width:57.4468%}#dslc-content .dslc-widgets-8-col .dslc-col{width:65.95744%}#dslc-content .dslc-widgets-9-col .dslc-col{width:74.46808%}#dslc-content .dslc-widgets-10-col .dslc-col{width:82.97872%}#dslc-content .dslc-widgets-11-col .dslc-col{width:91.48936%}#dslc-content .dslc-widgets-12-col .dslc-col{width:100%;margin-right:0}#dslc-content .dslc-widgets-2-col .dslc-col:nth-child(6n),#dslc-content .dslc-widgets-3-col .dslc-col:nth-child(4n),#dslc-content .dslc-widgets-4-col .dslc-col:nth-child(3n),#dslc-content .dslc-widgets-6-col .dslc-col:nth-child(2n){margin-right:0}#dslc-content .dslc-product-thumb{position:relative;line-height:0}#dslc-content .dslc-product-thumb-inner{bottom:0 solid transparent;overflow:hidden}#dslc-content .dslc-product-thumb img{-moz-box-shadow:none;-webkit-box-shadow:none;display:block;border-radius:3px 3px 0 0;box-shadow:none;max-width:100%;height:auto}#dslc-content .dslc-product-thumb .dslc-product-price .from,#dslc-content .dslc-product-thumb .dslc-product-price del{display:none}#dslc-content .dslc-product-thumb .dslc-product-price{background:0 0;color:#fff;font-weight:400;font-size:25px;line-height:1;position:absolute;left:0;top:0;width:100%;height:100%;text-decoration:none;text-align:center}#dslc-content .dslc-product-price-bg{background:0 0;border:0 solid transparent;position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-product-price-main{position:relative}#dslc-content .dslc-product-thumb .dslc-product-price ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-thumb .dslc-product-price .amount{vertical-align:middle}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main.dslc-product-main-visible{opacity:1!important}body.dslca-enabled #dslc-content .dslc-products .dslc-post:first-child .dslc-product-thumb .dslc-product-main{opacity:1}#dslc-content .dslc-product-main{background:#1d1d1d;border-radius:0 0 3px 3px;padding:20px;text-align:center;border:0 solid transparent}#dslc-content .dslc-product-title{margin-bottom:15px}#dslc-content .dslc-product-price-secondary{color:#fff;float:left;font-size:20px;line-height:1}#dslc-content .dslc-product-price-secondary ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-title h2{clear:none;font-size:11px;line-height:1;vertical-align:middle;margin:0;padding:0}#dslc-content .dslc-product-title h2 a{display:block;color:#7d7d7d;text-decoration:none}#dslc-content .dslc-product-excerpt{border-bottom:0 solid transparent}#dslc-content .dslc-product-sep{display:block;border-bottom:1px solid #4a4a4a;height:1px;margin-bottom:15px}#dslc-content .dslc-product-extra .dslc-product-add-to-cart{color:#8d8d8d;font-size:12px;line-height:1;text-decoration:none;float:left}#dslc-content .dslc-product-extra .dslc-product-details{color:#8d8d8d;font-size:12px;text-decoration:none;line-height:1;float:right}#dslc-content .dslc-product-extra .dslc-icon{margin-right:5px}#dslc-content .dslc-tp-content,#dslc-content .dslc-tp-meta,#dslc-content .dslc-tp-title{border:0 solid transparent}#dslc-content .dslc-tp-meta ul{margin:0;list-style-type:none;font-size:0}#dslc-content .dslc-tp-meta-horizontal li{display:inline-block;margin-top:0!important;margin-bottom:0!important;list-style-type:none}#dslc-content .dslc-tp-meta-horizontal li:first-child{margin-left:0!important}#dslc-content .dslc-tp-meta-horizontal li:last-child{margin-right:0!important}#dslc-content .dslc-tp-meta-vertical li{margin-left:0!important;margin-right:0!important}#dslc-content .dslc-tp-meta-vertical li:first-child{margin-top:0!important}#dslc-content .dslc-tp-meta-vertical li:last-child{margin-bottom:0!important}#dslc-content .dslc-tp-meta-avatar{margin-right:10px;width:30px;display:inline-block}#dslc-content .dslc-tp-meta-avatar img{vertical-align:middle;width:100%;height:auto;border-radius:50%}#dslc-content .dslc-tp-download-button a,#dslc-content .dslc-tp-gallery-slider,#dslc-content .dslc-tp-gallery-slider-main,#dslc-content .dslc-tp-gallery-slider-nav{border:0 solid transparent}#dslc-content .dslc-tp-download-button a{display:block;line-height:1;text-decoration:none;text-align:center;-webkit-appearance:none}#dslc-content .dslc-tp-thumbnail{bottom:0 solid transparent;overflow:hidden}#dslc-content .dslc-tp-thumbnail img{display:inline-block;vertical-align:middle;max-width:100%;height:auto}#dslc-content .dslc-tp-gallery-slider-main li{overflow:hidden}#dslc-content .dslc-tp-gallery-slider-nav li{margin-right:10px;padding:5px;border:1px solid red;cursor:pointer;opacity:.7}#dslc-content .dslc-tp-gallery-slider-nav li.flex-active-slide{opacity:1}#dslc-content ul.dslc-social{margin:0;padding:0;list-style-type:none;font-size:0;line-height:1}#dslc-content ul.dslc-social li{margin:0 10px 0 0;padding:0;line-height:1;display:inline-block;overflow:hidden}#dslc-content ul.dslc-social a.dslc-social-icon{border:0 solid transparent;background:#40bde6;text-decoration:none;color:#fff;width:30px;height:30px;border-radius:15px;font-size:15px;position:relative;float:left;display:inline-flex;justify-content:center;align-items:center}#dslc-content ul.dslc-social .dslc-icon{line-height:1}#dslc-content ul.dslc-social .dslc-social-label{float:left;display:block}#dslc-content ul.dslc-social li:last-child{margin-right:0}#dslc-content ul.dslc-staff-social{margin:0;padding:0;list-style-type:none;font-size:0;line-height:1}#dslc-content ul.dslc-staff-social li{margin:0;padding:0;line-height:1;display:inline-block;overflow:hidden}#dslc-content ul.dslc-staff-social a{border:0 solid transparent;text-decoration:none;position:relative;float:left;display:inline-flex;justify-content:center;align-items:center}#dslc-content ul.dslc-staff-social .dslc-icon{line-height:1}#dslc-content ul.dslc-staff-social .dslc-social-label{float:left;display:block}.dslc-notification-box-has-timeout{display:none}body.dslca-enabled .dslc-notification-box-has-timeout{display:block}#dslc-content .dslc-notification-box-content p:last-child{margin-bottom:0}#dslc-content .dslc-notification-box-close{display:flex;justify-content:center;align-items:center;position:absolute;right:15px;top:20px;cursor:pointer;background:#fff;color:#f65757;border-radius:50%;width:15px;height:15px}.dslc-comment,.dslc-tp-comments{border:0 solid transparent}#dslc-content .dslc-notification-box-close .dslc-icon{color:#f65757;font-size:12px;text-align:center}#dslc-content .dslc-button a{display:inline-block;text-decoration:none;line-height:1;box-shadow:none;-webkit-appearance:none}.dslc-tp-comments li,.dslc-tp-comments ol,.dslc-tp-comments ul{list-style-type:none}.dslc-tp-comments ol{margin-left:0}.dslc-comment{margin:0}.dslc-comment-inner{border:1px solid #ddd;padding:10px;margin-bottom:20px}.dslc-comment-info{margin-bottom:10px;border-bottom:1px solid #ddd}.dslc-tp-comment-form,.dslc-tp-comment-form input,.dslc-tp-comment-form textarea{border:0 solid transparent}.dslc-comment-meta{float:left;margin:0}.dslc-comment-meta-author{display:inline-block;margin-right:15px;line-height:1}.dslc-comment-author-avatar{margin-right:5px}.dslc-comment-meta-author a{color:inherit;text-decoration:none}.dslc-comment-author-avatar img{vertical-align:middle}.dslc-comment-meta-date{display:inline-block;line-height:1}.dslc-comment-reply{float:right}.dslc-comment-reply a{text-decoration:none}.dslc-comment .dslc-comment{margin-left:50px}.dslc-tp-comment-form input[type=email]::-moz-placeholder,.dslc-tp-comment-form input[type=text]::-moz-placeholder,.dslc-tp-comment-form input[type=url]::-moz-placeholder,.dslc-tp-comment-form textarea::-moz-placeholder{opacity:1}.dslc-tp-comment-form input[type=text]{line-height:1}.dslc-tp-comment-form textarea{width:100%;height:130px;box-sizing:border-box}.dslc-tp-comment-form .logged-in-as{margin-bottom:15px}.dslc-tp-comment-form #submit{cursor:pointer}.dslc-image,.dslc-image img{border:0;box-shadow:none}#dslc-content .dslc-image,#dslc-content .dslc-image>a{display:inline-block}#dslc-content .dslc-image img{max-width:100%;display:inline-block;vertical-align:middle;box-shadow:none;border-radius:none;position:relative}#dslc-content .dslc-accordion,#dslc-content .dslc-accordion-header,#dslc-content .dslc-accordion-title,#dslc-content .dslc-progress-bar{border:0 solid transparent}#dslc-content .dslc-progress-bar-label{margin:0;padding:0;line-height:1}#dslc-content .dslc-progress-bar-loader{background:#666;display:block;height:18px}#dslc-content .dslc-progress-bar-loader-inner{display:block;float:left;overflow:hidden;white-space:nowrap}#dslc-content .dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:0}#dslc-content .dslca-enabled .dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:1}#dslc-content .dslc-accordion-item:first-child{margin-top:0!important}#dslc-content .dslc-accordion-header{display:block;font-weight:700;font-size:11px;line-height:1;position:relative}#dslc-content .dslc-accordion-title{display:block}#dslc-content .dslc-accordion-hook{cursor:pointer}#dslc-content .dslc-accordion-toggle{display:block;position:absolute;left:0;top:0;bottom:0}#dslc-content .dslc-accordion-content{position:relative;border:0 solid transparent}#dslc-content .dslca-add-accordion{text-align:center}#dslc-content .dslca-add-accordion-hook{background:#78CA4F;border-radius:50%;color:#fff;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;font-size:12px;height:20px;text-align:center;line-height:22px;width:20px;position:relative;margin-top:10px}#dslc-content .dslc-icon-module,#dslc-content .dslc-navigation .menu>li{display:inline-block;position:relative}#dslc-content .dslca-accordion-action-hooks{position:absolute;right:14px;top:14px}#dslc-content .dslca-move-down-accordion-hook,#dslc-content .dslca-move-up-accordion-hook{color:#5890e5}#dslc-content .dslca-move-down-accordion-hook:hover,#dslc-content .dslca-move-up-accordion-hook:hover{color:#3b6fbe}#dslc-content .dslca-delete-accordion-hook{color:#E55F5F;cursor:pointer;display:inline-block;font-size:12px;margin-left:10px;line-height:1;vertical-align:top}#dslc-content .dslc-navigation{z-index:999;position:relative;text-align:right;font-size:0}#dslc-content .dslc-navigation .menu{list-style:none;margin:0;padding:0}#dslc-content .dslc-navigation.dslc-navigation-orientation-horizontal .menu>li,#dslc-content .dslc-navigation.dslc-navigation-orientation-vertical .menu>li:first-child{margin-top:0!important}#dslc-content .dslc-navigation.dslc-navigation-orientation-vertical .menu>li{display:block;margin-left:0!important}#dslc-content .dslc-navigation .menu>li:first-child{margin-left:0!important}#dslc-content .dslc-navigation .menu>li>a{display:inline-block;text-decoration:none;vertical-align:middle}#dslc-content .dslc-navigation-arrow{display:inline-block;margin-left:5px;vertical-align:middle}#dslc-content .dslc-navigation .menu ul{display:none;list-style-type:none;margin:0;opacity:0;position:absolute;z-index:10;top:100%;left:-28px;text-align:left}#dslc-content .dslc-navigation.dslc-navigation-sub-position-left .menu ul{left:0;right:auto}#dslc-content .dslc-navigation.dslc-navigation-sub-position-right .menu ul{right:0;left:auto}#dslc-content .dslc-navigation.dslc-navigation-sub-position-center .menu ul{left:auto;right:auto}#dslc-content .dslc-navigation-orientation-vertical .menu ul{top:0;left:100%}#dslc-content .dslc-navigation .menu ul.dslc-navigation-invert-subnav{left:auto;right:0}#dslc-content .dslc-navigation .menu ul li{display:block;position:relative;z-index:3;white-space:nowrap;margin:0}#dslc-content .dslc-navigation .menu ul li a{display:block;line-height:1;text-decoration:none}#dslc-content .dslc-navigation .menu ul li:last-child a{border-bottom:0!important}#dslc-content .dslc-navigation .dt-icon.dt-subnav-arrow{display:none;color:#bfbfbf;font-size:8px;margin-left:10px;vertical-align:middle;position:relative;top:-3px;margin-right:0}#dslc-content .dslc-navigation li.current-menu-item .dt-icon.dt-subnav-arrow{color:#878787}#dslc-content .dslc-navigation .menu ul ul{left:100%;margin-left:-1px;top:-1px}#dslc-content .dslc-navigation .menu ul:before{position:absolute;content:'';display:block;left:0;top:0;bottom:0;right:0;z-index:2;border-style:solid}#dslc-content .dslc-navigation .menu li:hover>ul.sub-menu:after{display:block;content:"";left:-10px;right:-10px;bottom:-10px;top:-10px;z-index:0;position:absolute}#dslc-content .dslc-navigation .menu ul ul.dslc-navigation-invert-subnav{left:auto;right:100%}#dslc-content .dslc-navigation .menu li:hover>ul.sub-menu{display:block;opacity:1}#dslc-content .dslc-mobile-navigation{position:relative;text-align:right;display:none}#dslc-content .dslc-mobile-navigation select{cursor:pointer;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;position:absolute;right:0;top:0;padding-top:0;padding-bottom:0;z-index:10;height:38px;width:100%}#dslc-content .dslc-mobile-navigation-hook{color:#555;font-size:24px;line-height:22px}.dslc-post-main-inner-link-cover{display:none;position:absolute;top:0;left:0;right:0;bottom:0}.dslc-posts-social-share{line-height:1}.dslc-posts-social-share a:last-child{margin-right:0!important}.dslc-posts-social-share-count{display:inline-block;border-style:solid}.dslc-center-elem{top:50%;position:relative;left:50%;visibility:visible;transform:translate(-50%,-50%)}@media only screen and (min-width :768px) and (max-width :1024px){#dslc-content .dslc-mobile-navigation.dslc-navigation-res-t-enabled{display:block}#dslc-content .dslc-navigation.dslc-navigation-res-t-enabled{display:none}.dslc-post-main-inner-link-cover{display:block}}@media only screen and (max-width:767px){.dslc-tabs-nav{display:none}.dslc-tabs-tab-content{display:block!important}.dslc-tabs-content .dslc-tabs-nav-hook{display:block!important;float:none!important;margin-bottom:20px}.dslc-comment .dslc-comment{margin-left:0}.dslc-comment .children{margin-left:0;padding-left:0}#dslc-content .dslc-mobile-navigation.dslc-navigation-res-p-enabled{display:block}#dslc-content .dslc-navigation.dslc-navigation-res-p-enabled{display:none}.dslc-post-main-inner-link-cover{display:block}.dslc-carousel .dslc-carousel-item{margin-left:0!important}}.owl-carousel .owl-wrapper:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.mfp-container:before,.mfp-figure:after{content:''}.owl-carousel,.owl-carousel .owl-wrapper{display:none;position:relative}.owl-carousel{width:100%;-ms-touch-action:pan-y}.owl-carousel .owl-wrapper-outer{overflow:hidden;position:relative;width:100%}.mfp-bg,.mfp-wrap{position:fixed;left:0;top:0}.owl-carousel .owl-wrapper-outer.autoHeight{-webkit-transition:height .5s ease-in-out;-moz-transition:height .5s ease-in-out;-ms-transition:height .5s ease-in-out;-o-transition:height .5s ease-in-out;transition:height .5s ease-in-out}.owl-carousel .owl-item{float:left}.owl-controls .owl-buttons div,.owl-controls .owl-page{cursor:pointer}.owl-controls{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-origin{-webkit-perspective:1200px;-webkit-perspective-origin-x:50%;-webkit-perspective-origin-y:50%;-moz-perspective:1200px;-moz-perspective-origin-x:50%;-moz-perspective-origin-y:50%;perspective:1200px}.owl-fade-out{z-index:10;-webkit-animation:fadeOut .7s both ease;-moz-animation:fadeOut .7s both ease;animation:fadeOut .7s both ease}.owl-fade-in{-webkit-animation:fadeIn .7s both ease;-moz-animation:fadeIn .7s both ease;animation:fadeIn .7s both ease}.owl-backSlide-out{-webkit-animation:backSlideOut 1s both ease;-moz-animation:backSlideOut 1s both ease;animation:backSlideOut 1s both ease}.owl-backSlide-in{-webkit-animation:backSlideIn 1s both ease;-moz-animation:backSlideIn 1s both ease;animation:backSlideIn 1s both ease}.owl-goDown-out{-webkit-animation:scaleToFade .7s ease both;-moz-animation:scaleToFade .7s ease both;animation:scaleToFade .7s ease both}.owl-goDown-in{-webkit-animation:goDown .6s ease both;-moz-animation:goDown .6s ease both;animation:goDown .6s ease both}.owl-fadeUp-in{-webkit-animation:scaleUpFrom .5s ease both;-moz-animation:scaleUpFrom .5s ease both;animation:scaleUpFrom .5s ease both}.owl-fadeUp-out{-webkit-animation:scaleUpTo .5s ease both;-moz-animation:scaleUpTo .5s ease both;animation:scaleUpTo .5s ease both}@-webkit-keyframes empty{0%{opacity:1}}@-moz-keyframes empty{0%{opacity:1}}@keyframes empty{0%{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-moz-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes backSlideOut{25%{opacity:.5;-webkit-transform:translateZ(-500px)}100%,75%{opacity:.5;-webkit-transform:translateZ(-500px) translateX(-200%)}}@-moz-keyframes backSlideOut{25%{opacity:.5;-moz-transform:translateZ(-500px)}100%,75%{opacity:.5;-moz-transform:translateZ(-500px) translateX(-200%)}}@keyframes backSlideOut{25%{opacity:.5;transform:translateZ(-500px)}100%,75%{opacity:.5;transform:translateZ(-500px) translateX(-200%)}}@-webkit-keyframes backSlideIn{0%,25%{opacity:.5;-webkit-transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;-webkit-transform:translateZ(-500px)}100%{opacity:1;-webkit-transform:translateZ(0) translateX(0)}}@-moz-keyframes backSlideIn{0%,25%{opacity:.5;-moz-transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;-moz-transform:translateZ(-500px)}100%{opacity:1;-moz-transform:translateZ(0) translateX(0)}}@keyframes backSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;transform:translateZ(-500px)}100%{opacity:1;transform:translateZ(0) translateX(0)}}@-webkit-keyframes scaleToFade{to{opacity:0;-webkit-transform:scale(.8)}}@-moz-keyframes scaleToFade{to{opacity:0;-moz-transform:scale(.8)}}@keyframes scaleToFade{to{opacity:0;transform:scale(.8)}}@-webkit-keyframes goDown{from{-webkit-transform:translateY(-100%)}}@-moz-keyframes goDown{from{-moz-transform:translateY(-100%)}}@keyframes goDown{from{transform:translateY(-100%)}}@-webkit-keyframes scaleUpFrom{from{opacity:0;-webkit-transform:scale(1.5)}}@-moz-keyframes scaleUpFrom{from{opacity:0;-moz-transform:scale(1.5)}}@keyframes scaleUpFrom{from{opacity:0;transform:scale(1.5)}}@-webkit-keyframes scaleUpTo{to{opacity:0;-webkit-transform:scale(1.5)}}@-moz-keyframes scaleUpTo{to{opacity:0;-moz-transform:scale(1.5)}}@keyframes scaleUpTo{to{opacity:0;transform:scale(1.5)}}.owl-theme .owl-controls{margin-top:10px;text-align:center}.owl-theme .owl-controls .owl-buttons div{color:#FFF;display:inline-block;zoom:1;margin:5px;padding:3px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;background:#869791;filter:Alpha(Opacity=50);opacity:.5}.owl-theme .owl-controls.clickable .owl-buttons div:hover{filter:Alpha(Opacity=100);opacity:1;text-decoration:none}.owl-theme .owl-controls .owl-page{display:inline-block;zoom:1}.owl-theme .owl-controls .owl-page span{display:block;width:12px;height:12px;margin:5px 7px;filter:Alpha(Opacity=50);opacity:.5;-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:20px;background:#869791}.owl-theme .owl-controls .owl-page.active span,.owl-theme .owl-controls.clickable .owl-page:hover span{filter:Alpha(Opacity=100);opacity:1}.owl-theme .owl-controls .owl-page span.owl-numbers{height:auto;width:auto;color:#FFF;padding:2px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.mfp-bg,.mfp-container,.mfp-wrap{height:100%;width:100%}.owl-item.loading{min-height:150px;background:url(AjaxLoader.gif) center center no-repeat}.mfp-bg{z-index:99999;overflow:hidden;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.mfp-wrap{z-index:100000;outline:0!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;left:0;top:0;padding:0 8px;box-sizing:border-box}.mfp-container:before{display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:100001}.mfp-close,.mfp-preloader{text-align:center;position:absolute}.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#ccc;top:50%;width:auto;margin-top:-.8em;left:8px;right:8px;z-index:100000}.mfp-preloader a{color:#ccc}.mfp-close,.mfp-preloader a:hover{color:#fff}.mfp-s-error .mfp-content,.mfp-s-ready .mfp-preloader{display:none}button.mfp-arrow,button.mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:100002;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;right:0;top:0;text-decoration:none;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:focus,.mfp-close:hover{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close{color:#fff;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#ccc;font-size:12px;line-height:18px}.mfp-figure,img.mfp-img{line-height:0}.mfp-arrow{position:absolute;opacity:.65;filter:alpha(opacity=65);margin:-55px 0 0;top:50%;padding:0;width:90px;height:110px}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:focus,.mfp-arrow:hover{opacity:1;filter:alpha(opacity=100)}.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:inset transparent}.mfp-arrow .mfp-a,.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow .mfp-b,.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left .mfp-a,.mfp-arrow-left:after{border-right:17px solid #fff;margin-left:31px}.mfp-arrow-left .mfp-b,.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3f3f3f}.mfp-arrow-right{right:0}.mfp-arrow-right .mfp-a,.mfp-arrow-right:after{border-left:17px solid #fff;margin-left:39px}.mfp-arrow-right .mfp-b,.mfp-arrow-right:before{border-left:27px solid #3f3f3f}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-image-holder .mfp-content,img.mfp-img{max-width:100%}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}.mfp-figure:after,img.mfp-img{width:auto;height:auto;display:block}img.mfp-img{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:40px 0;margin:0 auto}.mfp-figure:after{position:absolute;left:0;top:40px;bottom:40px;right:0;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#bdbdbd;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#f3f3f3;word-wrap:break-word;padding-right:36px}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(.75);transform:scale(.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-ie7 .mfp-img{padding:0}.mfp-ie7 .mfp-bottom-bar{width:600px;left:50%;margin-left:-300px;margin-top:5px;padding-bottom:5px}.mfp-ie7 .mfp-container{padding:0}.mfp-ie7 .mfp-content{padding-top:44px}.mfp-ie7 .mfp-close{top:0;right:0;padding-top:0}.mfp-close:hover{background:0 0}
css/frontend/main.css CHANGED
@@ -1183,7 +1183,7 @@ a img.aligncenter { display: block; margin-left: auto; margin-right: auto }
1183
  .dslc-no-columns-spacing .dslc-col {
1184
  width: 100%;
1185
  margin: 0;
1186
- /*margin-bottom: 30px;*/
1187
  min-width: 0px;
1188
  }
1189
 
1183
  .dslc-no-columns-spacing .dslc-col {
1184
  width: 100%;
1185
  margin: 0;
1186
+ margin-bottom: 30px;
1187
  min-width: 0px;
1188
  }
1189
 
css/frontend/modules.css CHANGED
@@ -1565,6 +1565,10 @@ input[type="button"], input[type="submit"], input[type="reset"], input[type="fil
1565
  display: block;
1566
  }
1567
 
 
 
 
 
1568
  /**
1569
  * Staff Social
1570
  */
@@ -1960,7 +1964,7 @@ body.dslca-enabled .dslc-notification-box-has-timeout {
1960
  */
1961
 
1962
  #dslc-content .dslc-navigation {
1963
- z-index: 99998;
1964
  position: relative;
1965
  text-align: right;
1966
  font-size: 0;
@@ -1981,7 +1985,7 @@ body.dslca-enabled .dslc-notification-box-has-timeout {
1981
  #dslc-content .dslc-navigation .menu > li {
1982
  display: inline-block;
1983
  position: relative;
1984
- z-index: 99998;
1985
  }
1986
 
1987
  /* Top level horizontal menu li */
@@ -2021,14 +2025,15 @@ body.dslca-enabled .dslc-notification-box-has-timeout {
2021
 
2022
  /* Inner level menu ul */
2023
  #dslc-content .dslc-navigation .menu ul {
2024
- border-style: solid;
2025
  display: none;
2026
  list-style-type: none;
2027
  margin: 0;
2028
  opacity: 0;
2029
  position: absolute;
 
2030
  top: 100%;
2031
  left: -28px;
 
2032
  }
2033
 
2034
  /* Left position menu */
@@ -2064,6 +2069,8 @@ body.dslca-enabled .dslc-notification-box-has-timeout {
2064
  /* Inner level menu li */
2065
  #dslc-content .dslc-navigation .menu ul li {
2066
  display: block;
 
 
2067
  white-space: nowrap;
2068
  margin: 0;
2069
  }
@@ -2100,10 +2107,37 @@ body.dslca-enabled .dslc-notification-box-has-timeout {
2100
  /* Second Level menu ul */
2101
  #dslc-content .dslc-navigation .menu ul ul {
2102
  left: 100%;
2103
- margin-left: -10px;
2104
  top: -1px;
2105
  }
2106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2107
  /* Second level menu inverted */
2108
  #dslc-content .dslc-navigation .menu ul ul.dslc-navigation-invert-subnav {
2109
  left: auto;
@@ -2111,8 +2145,9 @@ body.dslca-enabled .dslc-notification-box-has-timeout {
2111
  }
2112
 
2113
  /* Inner level menu show */
2114
- #dslc-content .dslc-navigation .menu li:hover > ul {
2115
  display: block;
 
2116
  }
2117
 
2118
  /**
@@ -2251,4 +2286,4 @@ body.dslca-enabled .dslc-notification-box-has-timeout {
2251
  margin-left: 0 !important; /* https://github.com/live-composer/live-composer-page-builder/issues/555 */
2252
  }
2253
 
2254
- }
1565
  display: block;
1566
  }
1567
 
1568
+ #dslc-content ul.dslc-social li:last-child {
1569
+ margin-right: 0;
1570
+ }
1571
+
1572
  /**
1573
  * Staff Social
1574
  */
1964
  */
1965
 
1966
  #dslc-content .dslc-navigation {
1967
+ z-index: 999;
1968
  position: relative;
1969
  text-align: right;
1970
  font-size: 0;
1985
  #dslc-content .dslc-navigation .menu > li {
1986
  display: inline-block;
1987
  position: relative;
1988
+ /*z-index: 99998; – it breaks sub-menu popups. No z-index should be here.*/
1989
  }
1990
 
1991
  /* Top level horizontal menu li */
2025
 
2026
  /* Inner level menu ul */
2027
  #dslc-content .dslc-navigation .menu ul {
 
2028
  display: none;
2029
  list-style-type: none;
2030
  margin: 0;
2031
  opacity: 0;
2032
  position: absolute;
2033
+ z-index:10; /* Required to have sub-menu pop-up to cover other meny items properly*/
2034
  top: 100%;
2035
  left: -28px;
2036
+ text-align: left;
2037
  }
2038
 
2039
  /* Left position menu */
2069
  /* Inner level menu li */
2070
  #dslc-content .dslc-navigation .menu ul li {
2071
  display: block;
2072
+ position: relative;
2073
+ z-index: 3;
2074
  white-space: nowrap;
2075
  margin: 0;
2076
  }
2107
  /* Second Level menu ul */
2108
  #dslc-content .dslc-navigation .menu ul ul {
2109
  left: 100%;
2110
+ margin-left: -1px;
2111
  top: -1px;
2112
  }
2113
 
2114
+ /* We don't apply design settings to sub-menu ul directly
2115
+ but using pseudo element. */
2116
+ #dslc-content .dslc-navigation .menu ul:before {
2117
+ position: absolute;
2118
+ content: '';
2119
+ display: block;
2120
+ left: 0;
2121
+ top: 0;
2122
+ bottom: 0;
2123
+ right: 0;
2124
+ z-index: 2;
2125
+
2126
+ border-style: solid;
2127
+ }
2128
+
2129
+ /* Invisible buffer for better hover experience */
2130
+ #dslc-content .dslc-navigation .menu li:hover > ul.sub-menu:after {
2131
+ display: block;
2132
+ content: "";
2133
+ left: -10px;
2134
+ right: -10px;
2135
+ bottom: -10px;
2136
+ top: -10px;
2137
+ z-index: 0;
2138
+ position: absolute;
2139
+ }
2140
+
2141
  /* Second level menu inverted */
2142
  #dslc-content .dslc-navigation .menu ul ul.dslc-navigation-invert-subnav {
2143
  left: auto;
2145
  }
2146
 
2147
  /* Inner level menu show */
2148
+ #dslc-content .dslc-navigation .menu li:hover > ul.sub-menu {
2149
  display: block;
2150
+ opacity: 1;
2151
  }
2152
 
2153
  /**
2286
  margin-left: 0 !important; /* https://github.com/live-composer/live-composer-page-builder/issues/555 */
2287
  }
2288
 
2289
+ }
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.3.1
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.3.1' );
46
 
47
  define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
48
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
@@ -81,6 +81,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
81
  $dslc_var_templates = array(); // Will hold templates information
82
  $dslc_var_post_options = array(); // Will hold post options information
83
  $dslc_var_icons = array(); // Will hold available icons array.
 
84
 
85
  $dslc_css_fonts = '';
86
  $dslc_css_style = '';
@@ -136,6 +137,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
136
  include DS_LIVE_COMPOSER_ABS . '/includes/options.extension.class.php';
137
  include DS_LIVE_COMPOSER_ABS . '/includes/upgrade.class.php';
138
  include DS_LIVE_COMPOSER_ABS . '/includes/editor-messages.php';
 
139
 
140
  $cap_page = dslc_get_option( 'lc_min_capability_page', 'dslc_plugin_options_access_control' );
141
  if ( ! $cap_page ) $cap_page = 'publish_posts';
@@ -147,22 +149,6 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
147
  */
148
  include DS_LIVE_COMPOSER_ABS . '/includes/class.module.php';
149
 
150
- /**
151
- * Tutorials disabled by default
152
- *
153
- * Use the next call to activate tutorials form your theme
154
- * add_filter( 'dslc_tutorials', '__return_true' );
155
- *
156
- * @since 1.0.7
157
- */
158
- function dslc_tutorials_load() {
159
- $dslc_tutorials = false;
160
- if ( apply_filters( 'dslc_tutorials', $dslc_tutorials ) ) {
161
- include DS_LIVE_COMPOSER_ABS . '/includes/tutorials/tutorial.php';
162
- }
163
- }
164
- add_action( 'after_setup_theme', 'dslc_tutorials_load' );
165
-
166
  dslc_load_modules( DS_LIVE_COMPOSER_ABS . '/modules', 'module.php' );
167
  DSLC_Upgrade::init();
168
 
@@ -186,7 +172,7 @@ add_action( 'admin_notices', 'dslc_php_version' );
186
  */
187
  function dslc_disable_old_plugin() {
188
 
189
- if ( stristr( __FILE__ , 'live-composer-page-builder/') ) {
190
 
191
  /**
192
  * Deactivate the old version of Live Composer.
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.3.2
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.3.2' );
46
 
47
  define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
48
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
81
  $dslc_var_templates = array(); // Will hold templates information
82
  $dslc_var_post_options = array(); // Will hold post options information
83
  $dslc_var_icons = array(); // Will hold available icons array.
84
+ $dslc_var_icon_fonts = array(); // Will hold available icons array.
85
 
86
  $dslc_css_fonts = '';
87
  $dslc_css_style = '';
137
  include DS_LIVE_COMPOSER_ABS . '/includes/options.extension.class.php';
138
  include DS_LIVE_COMPOSER_ABS . '/includes/upgrade.class.php';
139
  include DS_LIVE_COMPOSER_ABS . '/includes/editor-messages.php';
140
+ include DS_LIVE_COMPOSER_ABS . '/includes/class-dslc-cache.php'; // Simple HTML/CSS caching class.
141
 
142
  $cap_page = dslc_get_option( 'lc_min_capability_page', 'dslc_plugin_options_access_control' );
143
  if ( ! $cap_page ) $cap_page = 'publish_posts';
149
  */
150
  include DS_LIVE_COMPOSER_ABS . '/includes/class.module.php';
151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  dslc_load_modules( DS_LIVE_COMPOSER_ABS . '/modules', 'module.php' );
153
  DSLC_Upgrade::init();
154
 
172
  */
173
  function dslc_disable_old_plugin() {
174
 
175
+ if ( stristr( __FILE__ , 'live-composer-page-builder/' ) ) {
176
 
177
  /**
178
  * Deactivate the old version of Live Composer.
includes/ajax.php CHANGED
@@ -4,12 +4,12 @@
4
  * Table of contents
5
  *
6
  * - dslc_ajax_add_modules_section ( Echo new modules section HTML )
7
- * - dslc_ajax_add_module ( Load the module's front ened output)
8
  * - dslc_ajax_display_module_options ( Display options for a specific module )
9
  * - dslc_ajax_save_composer ( Save the composer code )
10
  * - dslc_ajax_save_draft_composer ( Save changes as draft )
11
  * - dslc_ajax_load_template ( Loads front end output of a specific template )
12
- * - dslc_ajax_import_template ( Loads front ened output of an exported template )
13
  * - dslc_ajax_save_template ( Save template for future use )
14
  * - dslc_ajax_delete_template ( Deletes a saved template )
15
  * - REMOVED dslc_ajax_get_new_module_id ( Returns a new unique ID, similar to post ID )
@@ -140,9 +140,6 @@ function dslc_ajax_add_module( $atts ) {
140
  // Append post ID to settings.
141
  $module_settings['post_id'] = $post_id;
142
 
143
- // Start output fetching.
144
- ob_start();
145
-
146
  // Load preset if there was no preset before.
147
  if ( 'enabled' === $preload_preset ) {
148
 
@@ -175,15 +172,28 @@ function dslc_ajax_add_module( $atts ) {
175
  $module_settings['dslc_m_size'] = '12';
176
  }
177
 
178
- // Output.
179
- $module_instance->output( $module_settings );
 
 
 
180
 
181
- // Get the output and stop fetching.
182
- $output = ob_get_contents();
 
 
183
  ob_end_clean();
184
 
185
- // Set the output.
186
- $response['output'] = $output;
 
 
 
 
 
 
 
 
187
 
188
  // Encode response.
189
  $response_json = wp_json_encode( $response );
@@ -259,6 +269,9 @@ function dslc_ajax_display_module_options( $atts ) {
259
  $response['output'] .= $output_fields;
260
  $response['output'] .= $output_end;
261
 
 
 
 
262
  // Encode response.
263
  $response_json = wp_json_encode( $response );
264
 
@@ -589,6 +602,7 @@ function dslc_ajax_import_modules_section( $atts ) {
589
  $code_to_import = stripslashes( $_POST['dslc_modules_section_code'] );
590
 
591
  $response['output'] = dslc_render_content( $code_to_import, true );
 
592
 
593
  // Encode response.
594
  $response_json = wp_json_encode( $response );
@@ -749,4 +763,20 @@ function dslc_ajax_hidden_tab_seo() {
749
 
750
  exit;
751
  }
752
- } add_action( 'wp_ajax_dslc-ajax-hidden-tab-seo', 'dslc_ajax_hidden_tab_seo' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  * Table of contents
5
  *
6
  * - dslc_ajax_add_modules_section ( Echo new modules section HTML )
7
+ * - dslc_ajax_add_module ( Load the module's front end output)
8
  * - dslc_ajax_display_module_options ( Display options for a specific module )
9
  * - dslc_ajax_save_composer ( Save the composer code )
10
  * - dslc_ajax_save_draft_composer ( Save changes as draft )
11
  * - dslc_ajax_load_template ( Loads front end output of a specific template )
12
+ * - dslc_ajax_import_template ( Loads front end output of an exported template )
13
  * - dslc_ajax_save_template ( Save template for future use )
14
  * - dslc_ajax_delete_template ( Deletes a saved template )
15
  * - REMOVED dslc_ajax_get_new_module_id ( Returns a new unique ID, similar to post ID )
140
  // Append post ID to settings.
141
  $module_settings['post_id'] = $post_id;
142
 
 
 
 
143
  // Load preset if there was no preset before.
144
  if ( 'enabled' === $preload_preset ) {
145
 
172
  $module_settings['dslc_m_size'] = '12';
173
  }
174
 
175
+ // Code before module output.
176
+ ob_start();
177
+ $module_instance->module_before( $module_settings );
178
+ $output_start = ob_get_contents();
179
+ ob_end_clean();
180
 
181
+ // Module output.
182
+ ob_start();
183
+ $module_instance->output( $module_settings );
184
+ $output_body = ob_get_contents();
185
  ob_end_clean();
186
 
187
+ // Code after module output.
188
+ ob_start();
189
+ $module_instance->module_after( $module_settings );
190
+ $output_end = ob_get_contents();
191
+ ob_end_clean();
192
+
193
+ $output_body = dslc_decode_shortcodes( $output_body );
194
+
195
+ $response['output'] = $output_start . $output_body . $output_end;
196
+ $response['output'] = do_shortcode( $response['output'] );
197
 
198
  // Encode response.
199
  $response_json = wp_json_encode( $response );
269
  $response['output'] .= $output_fields;
270
  $response['output'] .= $output_end;
271
 
272
+ // Decode shortcodes for proper presentation.
273
+ $response['output'] = dslc_decode_shortcodes( $response['output'] );
274
+
275
  // Encode response.
276
  $response_json = wp_json_encode( $response );
277
 
602
  $code_to_import = stripslashes( $_POST['dslc_modules_section_code'] );
603
 
604
  $response['output'] = dslc_render_content( $code_to_import, true );
605
+ $response['output'] = do_shortcode( $response['output'] );
606
 
607
  // Encode response.
608
  $response_json = wp_json_encode( $response );
763
 
764
  exit;
765
  }
766
+ } add_action( 'wp_ajax_dslc-ajax-hidden-tab-seo', 'dslc_ajax_hidden_tab_seo' );
767
+
768
+ /**
769
+ * Ajax Clear Cache (Plugin Settings Tab).
770
+ */
771
+ function dslc_ajax_clear_cache() {
772
+
773
+ // Check Nonce.
774
+ if ( ! wp_verify_nonce( $_POST['security']['nonce'], 'dslc-optionspanel-ajax' ) ) {
775
+ wp_die( 'You do not have rights!' );
776
+ }
777
+
778
+ if ( is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
779
+ delete_transient( 'lc_cache' );
780
+ exit;
781
+ }
782
+ } add_action( 'wp_ajax_dslc_ajax_clear_cache', 'dslc_ajax_clear_cache' );
includes/class-dslc-cache.php ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Simple HTML and CSS caching class. Designed to reduce load on the server
4
+ * in cases when advanced caching plugins not installed.
5
+ */
6
+
7
+ // Prevent direct access to the file.
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ header( 'HTTP/1.0 403 Forbidden' );
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Very simple HTML and CSS caching class.
15
+ */
16
+ class DSLC_Cache {
17
+
18
+ private $type; // Cache for code type: html, css.
19
+ private $cache;
20
+ private $enabled = true; // True/False – cache enabled/disabled.
21
+ /**
22
+ * Here is the structure of the cache array.
23
+ * _transient_lc_cache [
24
+ * – html
25
+ * –– post_id
26
+ * –– post_id
27
+ *
28
+ * – css
29
+ * –– md5 hashtag – based on html code for the current css code.
30
+ * –– md5 hashtag
31
+ * ]
32
+ */
33
+
34
+ function __construct( $cache_type = false ) {
35
+ if ( 'init' === $cache_type ) {
36
+ add_action( 'save_post', array( $this, 'on_post_save' ) );
37
+ add_action( 'added_post_meta', array( $this, 'on_meta_added' ), 10, 4 );
38
+ } else {
39
+ $this->type = $cache_type;
40
+ }
41
+
42
+ // If the transient does not exist, does not have a value,
43
+ // or has expired, then get_transient will return false.
44
+ $this->cache = get_transient( 'lc_cache' );
45
+
46
+ $caching_engine_setting = dslc_get_option( 'lc_caching_engine', 'dslc_plugin_options_performance' );
47
+
48
+ if ( 'disabled' === $caching_engine_setting ) {
49
+ $this->enabled = false;
50
+ }
51
+
52
+ }
53
+
54
+ /**
55
+ * Delete cached code (HTML or CSS) on page code update.
56
+ * @return void
57
+ */
58
+ public function on_meta_added( $meta_id, $post_id, $meta_key, $meta_value ) {
59
+ if ( 'dslc_code' === $meta_key ) {
60
+ $this->on_post_save( $post_id );
61
+ }
62
+ }
63
+
64
+ /**
65
+ * Delete cached code (HTML or CSS) on page save.
66
+ * @return void
67
+ */
68
+ public function on_post_save( $post_id ) {
69
+
70
+ /*
71
+ Remove cached pages or particular post type.
72
+ 💂 Needs more work. Not ready for production.
73
+
74
+ $post_type = get_post_type( $post_id );
75
+
76
+ $post_types_reset_cache = array(
77
+ 'dslc_templates',
78
+ 'dslc_downloads',
79
+ 'post',
80
+ );
81
+
82
+ if ( in_array( $post_type, $post_types_reset_cache ) ) {
83
+ $this->cache = array( 'html', 'css' );
84
+ }
85
+ */
86
+
87
+ /* Remove previous version of HTML render from page cache.
88
+ if ( isset( $this->cache['html'][ $post_id ] ) ) {
89
+ unset( $this->cache['html'][ $post_id ] );
90
+ }
91
+
92
+ if ( isset( $this->cache['css'][ $post_id ] ) ) {
93
+ unset( $this->cache['css'][ $post_id ] );
94
+ }*/
95
+
96
+ /*
97
+ For now we rest all the cache after any post or page saved.
98
+ This is temporary solution to have post grids and sliders to show
99
+ actual information and template designs to updates properly.
100
+ */
101
+ $this->cache = array(
102
+ 'html' => array(),
103
+ 'css' => array(),
104
+ 'fonts' => array(),
105
+ );
106
+ $this->update_db();
107
+ }
108
+
109
+ /**
110
+ * Return cached code (HTML or CSS).
111
+ * @return string/boolean Cached code or false if not found.
112
+ */
113
+ public function get_cache( $identificator = false, $cache_type = false ) {
114
+ if ( $identificator && $this->cached( $identificator, $cache_type ) ) {
115
+ if ( ! $cache_type ) {
116
+ $cache_type = $this->type;
117
+ }
118
+
119
+ return $this->cache[ $cache_type ][ $identificator ];
120
+ } else {
121
+ return false;
122
+ }
123
+ }
124
+
125
+ /**
126
+ * Save cached code (HTML or CSS).
127
+ */
128
+ public function set_cache( $code_to_cache = false, $identificator = false, $cache_type = false ) {
129
+ if ( $code_to_cache ) {
130
+ if ( ! $cache_type ) {
131
+ $cache_type = $this->type;
132
+ }
133
+
134
+ $this->cache[ $cache_type ][ $identificator ] = $code_to_cache;
135
+ $this->update_db();
136
+ }
137
+ }
138
+
139
+ /**
140
+ * Update code in the database.
141
+ */
142
+ public function update_db() {
143
+ set_transient( 'lc_cache', $this->cache, 0 );
144
+ }
145
+
146
+ /**
147
+ * Is html/css code for the page cached or not?
148
+ * @return boolean True/False.
149
+ */
150
+ public function cached( $identificator = false, $cache_type = false ) {
151
+ if ( ! $cache_type ) {
152
+ $cache_type = $this->type;
153
+ }
154
+
155
+ if ( isset( $this->cache[ $cache_type ] )
156
+ && isset( $this->cache[ $cache_type ][ $identificator ] ) ) {
157
+ return true;
158
+ } else {
159
+ return false;
160
+ }
161
+ }
162
+
163
+ /**
164
+ * Check if cache enabled.
165
+ */
166
+ public function enabled() {
167
+ return $this->enabled;
168
+ }
169
+ }
170
+
171
+ $site_cache = new DSLC_Cache( 'init' );
includes/class.module.php CHANGED
@@ -9,6 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
9
  class DSLC_Module {
10
 
11
  function shared_options( $options_id, $atts = false ) {
 
12
 
13
  $animation_options_choices = array(
14
  array(
@@ -165,7 +166,7 @@ class DSLC_Module {
165
  'label' => 'Slide Left + Fade In',
166
  'value' => 'dslcSlideLeftFadeIn',
167
  ),
168
- )
169
  ),
170
  array(
171
  'label' => 'On Hover Animation - Speed ( ms )',
@@ -1905,7 +1906,6 @@ class DSLC_Module {
1905
  ),
1906
 
1907
  );
1908
-
1909
  return $$options_id;
1910
  }
1911
 
@@ -1944,7 +1944,12 @@ class DSLC_Module {
1944
  die( 'Function "output" must be over-ridden in a sub-class (the module class).' );
1945
  }
1946
 
1947
- function module_start( $options ) {
 
 
 
 
 
1948
 
1949
  global $dslc_active;
1950
  global $dslc_should_filter;
@@ -2100,7 +2105,7 @@ class DSLC_Module {
2100
 
2101
  // Generate CSS for the module based on the selected options.
2102
  // Funciton 'dslc_generate_custom_css' will fill global $dslc_css_style with CSS code.
2103
- dslc_generate_custom_css( $options_arr, $options, true );
2104
  $googlefonts_output = '';
2105
  foreach ( $dslc_googlefonts_array as $googlefont ) {
2106
  if ( in_array( $googlefont, $dslc_all_googlefonts_array, true ) ) {
@@ -2111,8 +2116,8 @@ class DSLC_Module {
2111
  }
2112
  }
2113
  echo $googlefonts_output;
2114
- echo $dslc_css_style;
2115
-
2116
  }
2117
 
2118
  ?></style>
@@ -2147,9 +2152,15 @@ class DSLC_Module {
2147
  <?php endif; ?>
2148
 
2149
  <?php
 
2150
  }
2151
 
2152
  function module_end( $user_options ) {
 
 
 
 
 
2153
 
2154
  global $dslc_active;
2155
 
@@ -2157,48 +2168,13 @@ class DSLC_Module {
2157
  $options_ids = array();
2158
 
2159
  // Clear the custom options by getting rid of all the default values.
2160
-
2161
  // Get the module structure.
2162
  // Array of options with default values only.
2163
  $options = $this->options();
2164
 
2165
- /* Not ready for production. Causes more issues than benefits.*/
2166
- foreach ( $options as $default_option ) {
2167
-
2168
- // Sanitize User Option Values.
2169
- if ( isset( $id ) && isset( $user_options[ $id ] ) ) {
2170
- $option_satinitize_data = array(
2171
- 'value' => $user_options[ $id ],
2172
- 'id' => $id,
2173
- // 'definition' => $default_option,
2174
- );
2175
-
2176
- $user_options[ $id ] = dslc_sanitize_option_val ( $option_satinitize_data );
2177
- }
2178
-
2179
- $id = $default_option['id'];
2180
-
2181
- // 🔖 RAW CODE CLEANUP
2182
- // Only clean options in the styling or custon sections.
2183
- // Never clean 'Functionality' section (it has no section parameter set).
2184
- if ( isset( $default_option['section'] ) && strtoupper( 'functionality' ) !== strtoupper( $default_option['section'] ) ) {
2185
-
2186
- // Do we have option with this id in the custom settings set by the user?
2187
- if ( isset( $user_options[ $id ] ) ) {
2188
-
2189
- // If current option is empty or the same as default value for this setting.
2190
- // if ( '' === $user_options[ $id ] || isset( $default_option['std'] ) && $default_option['std'] === $user_options[ $id ] ) {
2191
- if ( '' === $user_options[ $id ] || false === $user_options[ $id ] ) {
2192
- unset( $user_options[ $id ] );
2193
- }
2194
- }
2195
- }
2196
- }
2197
-
2198
-
2199
-
2200
  // Bring back IDs for image options.
2201
  global $dslc_var_image_option_bckp;
 
2202
  foreach ( $dslc_var_image_option_bckp as $key => $value ) {
2203
  $user_options[ $key ] = $value;
2204
  }
@@ -2214,6 +2190,7 @@ class DSLC_Module {
2214
  }
2215
 
2216
  $user_options_no_defaults = $user_options;
 
2217
 
2218
  // If Live Composer is in editing mode: output some additional (hidden) elements.
2219
  if ( DS_LIVE_COMPOSER_ACTIVE && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) : ?>
@@ -2226,52 +2203,91 @@ class DSLC_Module {
2226
  // Go through standard set of options described in the module class.
2227
  // Array $options do not contains custom data, but structure and defaults.
2228
  // Array $user_options contains custom module settings.
 
2229
  foreach ( $options as $key => $option ) {
2230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2231
  // Option ID.
2232
- $option_id = $option['id'];
2233
  $options_ids[] = $option['id'];
2234
 
2235
  // Set the setting value.
2236
- if ( isset( $user_options[ $option_id ] ) ) {
2237
- $option_value = $user_options[ $option_id ];
2238
  } else {
2239
  $option_value = '';
2240
  // $option_value = $option['std'];
2241
  }
2242
 
2243
- if ( isset( $user_options[ $option_id ] ) ) {
2244
-
2245
- // 🔖 RAW CODE CLEANUP
2246
- // if ( $user_options[ $option_id ] === $option['std'] || '' === $user_options[ $option_id ] ) {
2247
- if ( false === $user_options[ $option_id ] || '' === $user_options[ $option_id ] ) {
2248
- unset( $user_options_no_defaults[ $option_id ] );
2249
- }
2250
  }
2251
 
2252
  // Sanitize Option Values.
 
2253
  if ( $option_value ) {
2254
 
2255
  $option_satinitize_data = array(
2256
  'value' => $option_value,
2257
- 'id' => $option_id,
2258
  'definition' => $option,
2259
  );
2260
 
2261
- $option_value = dslc_sanitize_option_val ( $option_satinitize_data );
2262
  }
2263
 
2264
- echo '<textarea class="dslca-module-option-front" data-id="' . esc_attr( $option_id ) . '">' . stripslashes( $option_value ) . '</textarea>';
 
 
2265
  }
2266
 
2267
- // Output additonal (custom) options that are not part of the default module structure.
2268
  foreach ( $user_options as $user_option_id => $user_option_val ) {
2269
 
2270
  if ( ! in_array( $user_option_id, $options_ids, true ) ) {
2271
-
2272
  echo '<textarea class="dslca-module-option-front" data-id="' . esc_attr( $user_option_id ) . '">' . stripslashes( $user_option_val ) . '</textarea>';
2273
  }
2274
- } ?>
 
 
2275
 
2276
  </div><!-- dslca-module-options-front -->
2277
 
@@ -2279,15 +2295,13 @@ class DSLC_Module {
2279
 
2280
  <span class="dslc-sortable-helper-icon dslc-icon-<?php echo esc_attr( $this->module_icon ); ?>" data-title="<?php echo esc_attr( $this->module_title ); ?>" data-icon="<?php echo esc_attr( $this->module_icon ); ?>"></span>
2281
 
2282
- <?php endif; ?>
2283
 
2284
  <?php do_action( 'dslc_module_after' ); ?>
2285
-
2286
  </div><!-- .dslc-module -->
2287
  <?php
2288
 
2289
  if ( ! $dslc_active ) {
2290
-
2291
  // After Module.
2292
  $after_module_content = '';
2293
  echo apply_filters( 'dslc_after_module', $after_module_content, $user_options );
@@ -2295,7 +2309,6 @@ class DSLC_Module {
2295
 
2296
  global $dslc_should_filter;
2297
  $dslc_should_filter = true;
2298
-
2299
  }
2300
 
2301
  /**
@@ -2304,7 +2317,7 @@ class DSLC_Module {
2304
  * @return array Array with two more options to add into the module options
2305
  */
2306
  function presets_options() {
2307
-
2308
  $choices = array(
2309
  array(
2310
  'label' => 'None',
9
  class DSLC_Module {
10
 
11
  function shared_options( $options_id, $atts = false ) {
12
+ // Average running time 0.00150696436564 (1.3%)
13
 
14
  $animation_options_choices = array(
15
  array(
166
  'label' => 'Slide Left + Fade In',
167
  'value' => 'dslcSlideLeftFadeIn',
168
  ),
169
+ ),
170
  ),
171
  array(
172
  'label' => 'On Hover Animation - Speed ( ms )',
1906
  ),
1907
 
1908
  );
 
1909
  return $$options_id;
1910
  }
1911
 
1944
  die( 'Function "output" must be over-ridden in a sub-class (the module class).' );
1945
  }
1946
 
1947
+ function module_start( $user_options ) {
1948
+ // Function disabled. See new function module_before.
1949
+ }
1950
+
1951
+ function module_before( $options ) {
1952
+ // Average running time 0.0339393615723 (28%)
1953
 
1954
  global $dslc_active;
1955
  global $dslc_should_filter;
2105
 
2106
  // Generate CSS for the module based on the selected options.
2107
  // Funciton 'dslc_generate_custom_css' will fill global $dslc_css_style with CSS code.
2108
+ $module_css = dslc_generate_custom_css( $options_arr, $options, true );
2109
  $googlefonts_output = '';
2110
  foreach ( $dslc_googlefonts_array as $googlefont ) {
2111
  if ( in_array( $googlefont, $dslc_all_googlefonts_array, true ) ) {
2116
  }
2117
  }
2118
  echo $googlefonts_output;
2119
+ echo $module_css;
2120
+ // echo $dslc_css_style; // <– old method using globals.
2121
  }
2122
 
2123
  ?></style>
2152
  <?php endif; ?>
2153
 
2154
  <?php
2155
+
2156
  }
2157
 
2158
  function module_end( $user_options ) {
2159
+ // Function disabled. See new function module_after.
2160
+ }
2161
+
2162
+ function module_after( $user_options ) {
2163
+ // Average running time 0.0530054050943 (48%)
2164
 
2165
  global $dslc_active;
2166
 
2168
  $options_ids = array();
2169
 
2170
  // Clear the custom options by getting rid of all the default values.
 
2171
  // Get the module structure.
2172
  // Array of options with default values only.
2173
  $options = $this->options();
2174
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2175
  // Bring back IDs for image options.
2176
  global $dslc_var_image_option_bckp;
2177
+
2178
  foreach ( $dslc_var_image_option_bckp as $key => $value ) {
2179
  $user_options[ $key ] = $value;
2180
  }
2190
  }
2191
 
2192
  $user_options_no_defaults = $user_options;
2193
+ $user_options_no_defaults = dslc_encode_shortcodes_in_array( $user_options_no_defaults );
2194
 
2195
  // If Live Composer is in editing mode: output some additional (hidden) elements.
2196
  if ( DS_LIVE_COMPOSER_ACTIVE && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) : ?>
2203
  // Go through standard set of options described in the module class.
2204
  // Array $options do not contains custom data, but structure and defaults.
2205
  // Array $user_options contains custom module settings.
2206
+
2207
  foreach ( $options as $key => $option ) {
2208
 
2209
+ $id = $option['id'];
2210
+ $uid = false;
2211
+ if ( isset( $id ) && isset( $user_options[ $id ] ) ) {
2212
+ $uid = $user_options[ $id ];
2213
+ }
2214
+
2215
+ // Sanitize User Option Values.
2216
+ if ( $uid ) {
2217
+ $option_satinitize_data = array(
2218
+ 'value' => $uid,
2219
+ 'id' => $id,
2220
+ // 'definition' => $option,
2221
+ );
2222
+
2223
+ $uid = dslc_sanitize_option_val( $option_satinitize_data );
2224
+ }
2225
+
2226
+ // 🔖 RAW CODE CLEANUP
2227
+ // Only clean options in the styling or custon sections.
2228
+ // Never clean 'Functionality' section (it has no section parameter set).
2229
+ /*
2230
+ if (
2231
+ isset( $uid ) &&
2232
+ isset( $option['section'] ) && 'FUNCTIONALITY' !== strtoupper( $option['section'] ) ) {
2233
+
2234
+ // Do we have option with this id in the custom settings set by the user?
2235
+ // if ( isset( $user_options[ $id ] ) ) {
2236
+
2237
+ // If current option is empty or the same as default value for this setting.
2238
+ // if ( '' === $user_options[ $id ] || isset( $option['std'] ) && $option['std'] === $user_options[ $id ] ) {
2239
+ if ( '' === $uid || false === $uid ) {
2240
+ unset( $user_options[ $id ] );
2241
+ }
2242
+ // }
2243
+ }
2244
+ */
2245
+
2246
  // Option ID.
 
2247
  $options_ids[] = $option['id'];
2248
 
2249
  // Set the setting value.
2250
+ if ( $uid ) {
2251
+ $option_value = $uid;
2252
  } else {
2253
  $option_value = '';
2254
  // $option_value = $option['std'];
2255
  }
2256
 
2257
+ // 🔖 RAW CODE CLEANUP
2258
+ // if ( $user_options[ $id ] === $option['std'] || '' === $user_options[ $id ] ) {
2259
+ if ( false === $uid || '' === $uid ) {
2260
+ unset( $user_options_no_defaults[ $id ] );
 
 
 
2261
  }
2262
 
2263
  // Sanitize Option Values.
2264
+
2265
  if ( $option_value ) {
2266
 
2267
  $option_satinitize_data = array(
2268
  'value' => $option_value,
2269
+ 'id' => $id,
2270
  'definition' => $option,
2271
  );
2272
 
2273
+ $option_value = dslc_sanitize_option_val( $option_satinitize_data );
2274
  }
2275
 
2276
+ $option_value = dslc_encode_shortcodes( $option_value );
2277
+
2278
+ echo '<textarea class="dslca-module-option-front" data-id="' . esc_attr( $id ) . '">' . stripslashes( $option_value ) . '</textarea>';
2279
  }
2280
 
2281
+ // Output additional (custom) options that are not part of the default module structure.
2282
  foreach ( $user_options as $user_option_id => $user_option_val ) {
2283
 
2284
  if ( ! in_array( $user_option_id, $options_ids, true ) ) {
2285
+ $user_option_val = dslc_encode_shortcodes( $user_option_val );
2286
  echo '<textarea class="dslca-module-option-front" data-id="' . esc_attr( $user_option_id ) . '">' . stripslashes( $user_option_val ) . '</textarea>';
2287
  }
2288
+ }
2289
+
2290
+ ?>
2291
 
2292
  </div><!-- dslca-module-options-front -->
2293
 
2295
 
2296
  <span class="dslc-sortable-helper-icon dslc-icon-<?php echo esc_attr( $this->module_icon ); ?>" data-title="<?php echo esc_attr( $this->module_title ); ?>" data-icon="<?php echo esc_attr( $this->module_icon ); ?>"></span>
2297
 
2298
+ <?php endif;?>
2299
 
2300
  <?php do_action( 'dslc_module_after' ); ?>
 
2301
  </div><!-- .dslc-module -->
2302
  <?php
2303
 
2304
  if ( ! $dslc_active ) {
 
2305
  // After Module.
2306
  $after_module_content = '';
2307
  echo apply_filters( 'dslc_after_module', $after_module_content, $user_options );
2309
 
2310
  global $dslc_should_filter;
2311
  $dslc_should_filter = true;
 
2312
  }
2313
 
2314
  /**
2317
  * @return array Array with two more options to add into the module options
2318
  */
2319
  function presets_options() {
2320
+ // Average time per module 0.00111207209135 (1%).
2321
  $choices = array(
2322
  array(
2323
  'label' => 'None',
includes/css-generation.php CHANGED
@@ -105,6 +105,7 @@ function dslc_custom_css( $dslc_code = '' ) {
105
  if ( ! $dslc_code ) {
106
 
107
  $template_id = false;
 
108
 
109
  global $post;
110
 
@@ -150,63 +151,94 @@ function dslc_custom_css( $dslc_code = '' ) {
150
  $header_footer = dslc_hf_get_ID( get_the_ID() );
151
  }
152
 
 
 
 
153
  // Header.
154
  if ( $header_footer['header'] ) {
155
  $header_code = get_post_meta( $header_footer['header'], 'dslc_code', true );
 
 
 
 
156
  }
157
 
158
  // Footer.
159
  if ( $header_footer['footer'] ) {
160
  $footer_code = get_post_meta( $header_footer['footer'], 'dslc_code', true );
 
 
 
 
161
  }
162
 
163
  // Template content.
164
  if ( $template_id ) {
165
  $template_code = get_post_meta( $template_id, 'dslc_code', true );
 
 
 
 
166
  }
167
 
168
  // Post/Page content.
169
  $post_id = get_the_ID();
170
  $code = get_post_meta( $post_id, 'dslc_code', true );
171
 
 
 
 
172
  } else { // End of ! $dslc_code check.
173
 
174
  $code = $dslc_code;
175
- }
 
 
176
 
177
  echo '<style type="text/css">';
178
 
179
  $output_css = false;
180
 
181
- // Generate CSS if page code is set.
182
- // Genrated code added into $dslc_css_style global var.
183
- if ( isset( $code ) && $code ) {
184
- dslc_render_css( $code );
185
- $output_css = true;
186
- }
187
 
188
- // Generate CSS if template code is set.
189
- // Genrated code added into $dslc_css_style global var.
190
- if ( isset( $template_code ) && $template_code ) {
191
- dslc_render_css( $template_code );
192
- $output_css = true;
193
- }
194
 
195
- // Generate CSS if header code is set.
196
- // Genrated code added into $dslc_css_style global var.
197
- if ( isset( $header_code ) && $header_code ) {
198
- dslc_render_css( $header_code );
199
- $output_css = true;
200
- }
201
 
202
- // Generate CSS if footer code is set.
203
- // Genrated code added into $dslc_css_style global var.
204
- if ( isset( $footer_code ) && $footer_code ) {
205
- dslc_render_css( $footer_code );
206
- $output_css = true;
207
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
 
209
- dslc_render_gfonts();
 
 
210
 
211
  // Wrapper width.
212
  echo '.dslc-modules-section-wrapper, .dslca-add-modules-section { width : ' . $lc_width . '; } ';
@@ -220,7 +252,6 @@ function dslc_custom_css( $dslc_code = '' ) {
220
 
221
  // Initial ( default ) row CSS.
222
  echo dslc_row_get_initial_style();
223
-
224
  // Echo CSS style.
225
  if ( ! $dslc_active ) {
226
  if ( $dslc_custom_css_ignore_check || $output_css ) {
@@ -229,6 +260,9 @@ function dslc_custom_css( $dslc_code = '' ) {
229
  }
230
 
231
  echo '</style>';
 
 
 
232
  }
233
 
234
  /**
@@ -239,8 +273,8 @@ function dslc_custom_css( $dslc_code = '' ) {
239
  * @return string Generated CSS output.
240
  */
241
  function dslc_render_css( $code ) {
242
-
243
  $code_array = dslc_json_decode( $code );
 
244
 
245
  if ( is_array( $code_array ) ) {
246
  // JSON based code version.
@@ -250,21 +284,35 @@ function dslc_render_css( $code ) {
250
  foreach ( $row['content'] as $module_area ) {
251
  // Go through each Module.
252
  foreach ( $module_area['content'] as $module ) {
253
-
254
- dslc_module_gen_css( array(), $module );
255
  }
256
  }
257
  }
258
  } else {
259
  // Old (shortcodes based) code version.
260
  // Replace shortcode names.
261
- $code = dslc_shortcodes_add_suffix_css( $code );
262
-
263
  // Do CSS shortcode.
264
- $css_output = do_shortcode( $code );
 
265
 
266
- return $css_output;
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  }
 
 
268
  }
269
 
270
  /**
@@ -318,6 +366,9 @@ function dslc_module_gen_css( $atts, $settings_raw ) {
318
  // The ID of the module.
319
  $module_id = $settings['module_id'];
320
 
 
 
 
321
  // Check if module exists.
322
  if ( ! dslc_is_module_active( $module_id ) ) {
323
  return;
@@ -463,7 +514,11 @@ function dslc_generate_custom_css( $module_structure, $module_settings, $restart
463
  }
464
  }
465
 
466
- $dslc_css_style .= $css_output;
 
 
 
 
467
  }
468
 
469
  /**
@@ -641,7 +696,6 @@ function dslc_generate_module_css( $module_structure, $module_settings, $restart
641
 
642
  // If option type is font?
643
  if ( 'font' === $option_arr['type'] ) {
644
-
645
  if ( ! in_array( $module_settings[ $option_id ], $dslc_googlefonts_array, true ) && ! in_array( $module_settings[ $option_id ], $regular_fonts, true ) ) {
646
  $dslc_googlefonts_array[] = $module_settings[ $option_id ];
647
  }
@@ -683,7 +737,7 @@ function dslc_generate_module_css( $module_structure, $module_settings, $restart
683
  $css_element_output[ $css_selector ] = array();
684
 
685
  // ------- SPLIT INTO SEPARATE FUNCTION ------------------------------------
686
- // Argument: $css_declaration and $important_append (or decalre it inside)
687
  // Output: array with css property:value pairs.
688
  // Go through each propery to compose css declaration block.
689
 
@@ -778,6 +832,14 @@ function dslc_generate_module_css( $module_structure, $module_settings, $restart
778
  $output_border_declaration = true;
779
  }
780
 
 
 
 
 
 
 
 
 
781
  // Always output all the border properties when:
782
  // – LC in the editing mode.
783
  // – CSS rules are for :hover or active state
105
  if ( ! $dslc_code ) {
106
 
107
  $template_id = false;
108
+ $code_to_render = array();
109
 
110
  global $post;
111
 
151
  $header_footer = dslc_hf_get_ID( get_the_ID() );
152
  }
153
 
154
+ // ============================================================
155
+ // Extract code to render CSS for.
156
+
157
  // Header.
158
  if ( $header_footer['header'] ) {
159
  $header_code = get_post_meta( $header_footer['header'], 'dslc_code', true );
160
+
161
+ if ( $header_code ) {
162
+ $code_to_render[ $header_footer['header'] ] = $header_code;
163
+ }
164
  }
165
 
166
  // Footer.
167
  if ( $header_footer['footer'] ) {
168
  $footer_code = get_post_meta( $header_footer['footer'], 'dslc_code', true );
169
+
170
+ if ( $footer_code ) {
171
+ $code_to_render[ $header_footer['footer'] ] = $footer_code;
172
+ }
173
  }
174
 
175
  // Template content.
176
  if ( $template_id ) {
177
  $template_code = get_post_meta( $template_id, 'dslc_code', true );
178
+
179
+ if ( $template_code ) {
180
+ $code_to_render[ $template_id ] = $template_code;
181
+ }
182
  }
183
 
184
  // Post/Page content.
185
  $post_id = get_the_ID();
186
  $code = get_post_meta( $post_id, 'dslc_code', true );
187
 
188
+ if ( $code ) {
189
+ $code_to_render[ $post_id ] = $code;
190
+ }
191
  } else { // End of ! $dslc_code check.
192
 
193
  $code = $dslc_code;
194
+ } // End if().
195
+
196
+ $fonts_to_output = array();
197
 
198
  echo '<style type="text/css">';
199
 
200
  $output_css = false;
201
 
202
+ // Generate CSS for defined code.
203
+ // Generated code gets added into $dslc_css_style global var.
204
+ foreach ($code_to_render as $id => $code) {
205
+ if ( $code ) {
 
 
206
 
207
+ $dslc_css_style .= "\n\n/* CSS FOR POST ID: " . $id . " */\n";
208
+ $cache_id = $id;
 
 
 
 
209
 
210
+ // Initiate simple CSS rendering cache.
211
+ $cache = new DSLC_Cache( 'css' );
 
 
 
 
212
 
213
+ // Check if we have CSS for this code cached?
214
+ if ( ! dslc_is_editor_active() && $cache->enabled() && $cache->cached( $cache_id ) ) {
215
+ // Get cached CSS.
216
+ $cached_page_css = $cache->get_cache( $cache_id );
217
+ $dslc_css_style .= $cached_page_css;
218
+
219
+ // Get cached Google Fonts request link.
220
+ $google_fonts = $cache->get_cache( $cache_id, 'fonts' );
221
+ if ( ! empty( $google_fonts ) ) {
222
+ $fonts_to_output = array_merge( $fonts_to_output, $google_fonts );
223
+ }
224
+ } else {
225
+ $rendered_code = dslc_render_css( $code );
226
+ // Save rendered CSS in the cache engine.
227
+ $cache->set_cache( $rendered_code, $cache_id );
228
+ $dslc_css_style .= $rendered_code;
229
+
230
+ // Save Google Fonts request for used fonts.
231
+ $google_fonts = dslc_get_gfonts();
232
+ if ( ! empty( $google_fonts ) ) {
233
+ $fonts_to_output = array_merge( $fonts_to_output, $google_fonts );
234
+ }
235
+ $cache->set_cache( $google_fonts, $cache_id, 'fonts' );
236
+ $dslc_googlefonts_array = array(); // Reset temporary fonts storage.
237
+ }
238
 
239
+ $output_css = true;
240
+ } // End if().
241
+ } // End foreach().
242
 
243
  // Wrapper width.
244
  echo '.dslc-modules-section-wrapper, .dslca-add-modules-section { width : ' . $lc_width . '; } ';
252
 
253
  // Initial ( default ) row CSS.
254
  echo dslc_row_get_initial_style();
 
255
  // Echo CSS style.
256
  if ( ! $dslc_active ) {
257
  if ( $dslc_custom_css_ignore_check || $output_css ) {
260
  }
261
 
262
  echo '</style>';
263
+
264
+ // Output Google Fonts request link.
265
+ dslc_render_gfonts( $fonts_to_output );
266
  }
267
 
268
  /**
273
  * @return string Generated CSS output.
274
  */
275
  function dslc_render_css( $code ) {
 
276
  $code_array = dslc_json_decode( $code );
277
+ $css_output = '';
278
 
279
  if ( is_array( $code_array ) ) {
280
  // JSON based code version.
284
  foreach ( $row['content'] as $module_area ) {
285
  // Go through each Module.
286
  foreach ( $module_area['content'] as $module ) {
287
+ $css_output .= dslc_module_gen_css( array(), $module );
 
288
  }
289
  }
290
  }
291
  } else {
292
  // Old (shortcodes based) code version.
293
  // Replace shortcode names.
294
+ // $code = dslc_shortcodes_add_suffix_css( $code );
 
295
  // Do CSS shortcode.
296
+ // $css_output = do_shortcode( $code );
297
+ // $css_output .= $code;
298
 
299
+ // Get rid of section/area shortcodes leaving only modules code.
300
+ $code = str_replace( '[/dslc_modules_section]', '', $code );
301
+ $code = str_replace( '[/dslc_modules_area]', '', $code );
302
+ $code = preg_replace( "/(?:\[dslc_modules_section[A-Za-z=\"' 0-9\-_#(),]*\])/", '', $code );
303
+ $code = preg_replace( "/(?:\[dslc_modules_area[A-Za-z=\"' 0-9\-_#(),]*\])/", '', $code );
304
+
305
+ $code_modules_only = explode( '[/dslc_module]', trim( $code ) );
306
+
307
+ foreach ( $code_modules_only as $module ) {
308
+ if ( trim( $module ) ) {
309
+ $module_settings_encoded = preg_replace( "/(?:\[dslc_module[A-Za-z=\"' 0-9\-_]*\])/", '', $module );
310
+ $css_output .= dslc_module_gen_css(array(), $module_settings_encoded );
311
+ }
312
+ }
313
  }
314
+
315
+ return $css_output;
316
  }
317
 
318
  /**
366
  // The ID of the module.
367
  $module_id = $settings['module_id'];
368
 
369
+ // Check if we have cached css for this module?
370
+ $module_instance_id = $settings['module_instance_id'];
371
+
372
  // Check if module exists.
373
  if ( ! dslc_is_module_active( $module_id ) ) {
374
  return;
514
  }
515
  }
516
 
517
+ $module_instance_id = $module_settings['module_instance_id'];
518
+ // $dslc_css_style .= $css_output;
519
+ // ↑↑↑ Cause duplication of CSS code. $dslc_css_style is global.
520
+
521
+ return $css_output;
522
  }
523
 
524
  /**
696
 
697
  // If option type is font?
698
  if ( 'font' === $option_arr['type'] ) {
 
699
  if ( ! in_array( $module_settings[ $option_id ], $dslc_googlefonts_array, true ) && ! in_array( $module_settings[ $option_id ], $regular_fonts, true ) ) {
700
  $dslc_googlefonts_array[] = $module_settings[ $option_id ];
701
  }
737
  $css_element_output[ $css_selector ] = array();
738
 
739
  // ------- SPLIT INTO SEPARATE FUNCTION ------------------------------------
740
+ // Argument: $css_declaration and $important_append (or declare it inside)
741
  // Output: array with css property:value pairs.
742
  // Go through each propery to compose css declaration block.
743
 
832
  $output_border_declaration = true;
833
  }
834
 
835
+ // Remove border-style property if width isn't set or is set to 0px.
836
+ // This rule fixes bugs with extra borders on text/shortcode elements.
837
+ if ( isset( $css_declaration_borders['border-style'] ) ) {
838
+ if ( empty( $css_declaration_borders['border-width'] ) || '0px' === $css_declaration_borders['border-width'] ) {
839
+ unset( $css_declaration_borders['border-style'] );
840
+ }
841
+ }
842
+
843
  // Always output all the border properties when:
844
  // – LC in the editing mode.
845
  // – CSS rules are for :hover or active state
includes/display-functions.php CHANGED
@@ -321,15 +321,6 @@ function dslc_display_composer() {
321
  <div class="dslca-module-edit-field-ttip-inner"></div>
322
  </div>
323
 
324
- <div class="dslca-module-edit-field-icon-switch-sets">
325
- <?php
326
- global $dslc_var_icons;
327
- foreach ( $dslc_var_icons as $key => $value ) :
328
- ?><span data-set="<?php echo $key; ?>"><?php echo $key; ?></span><?php
329
- endforeach;
330
- ?>
331
- </div>
332
-
333
  <div class="dslca-invisible-overlay"></div>
334
  <div id="scroller-stopper"></div>
335
  <script id="pseudo-panel" type="template">
@@ -543,28 +534,39 @@ function dslc_display_templates() {
543
  }
544
  }
545
 
546
-
547
  /**
548
  * Hooks into the_content filter to add LC elements
549
  *
550
  * @since 1.0
551
  */
552
  function dslc_filter_content( $content ) {
 
 
 
 
553
 
554
  // If post pass protected and pass not supplied return original content
555
- if ( post_password_required( get_the_ID() ) ) {
556
  return $content;
557
  }
558
 
 
 
 
 
 
 
 
 
 
 
 
559
  // Global variables.
560
  global $dslc_should_filter;
561
  global $wp_the_query;
562
  global $dslc_post_types;
563
  global $post;
564
 
565
- // Get ID of the post in which the content filter fired.
566
- $curr_id = get_the_ID();
567
-
568
  // Get ID of the post from the main query.
569
  if ( isset( $wp_the_query->queried_object_id ) ) {
570
  $real_id = $wp_the_query->queried_object_id;
@@ -599,43 +601,18 @@ function dslc_filter_content( $content ) {
599
  }
600
 
601
  // Get LC code of the current post.
602
- $composer_code = dslc_get_code( get_the_ID() );
603
-
604
- // Interactive Tutorials.
605
- $tut_page = false;
606
- $tut_ch_one = dslc_get_option( 'lc_tut_chapter_one', 'dslc_plugin_options_tuts' );
607
- $tut_ch_two = dslc_get_option( 'lc_tut_chapter_two', 'dslc_plugin_options_tuts' );
608
- $tut_ch_three = dslc_get_option( 'lc_tut_chapter_three', 'dslc_plugin_options_tuts' );
609
- $tut_ch_four = dslc_get_option( 'lc_tut_chapter_four', 'dslc_plugin_options_tuts' );
610
-
611
- // If current page set to be tutorial chapter one or four.
612
- if ( get_the_ID() == $tut_ch_one || get_the_ID() == $tut_ch_four ) {
613
- $tut_page = true;
614
- $composer_code = '';
615
-
616
- // If current page set to be tutorial chapter two.
617
- } elseif ( get_the_ID() == $tut_ch_two ) {
618
- $tut_page = true;
619
- $composer_code = '[dslc_modules_section type="wrapped" columns_spacing="spacing" bg_color="rgb(242, 245, 247)" bg_image_thumb="disabled" bg_image="" bg_image_repeat="repeat" bg_image_position="left top" bg_image_attachment="scroll" bg_image_size="auto" bg_video="" bg_video_overlay_color="#000000" bg_video_overlay_opacity="0" border_color="" border_width="0" border_style="solid" border="top right bottom left" margin_h="0" margin_b="0" padding="85" padding_h="0" custom_class="" custom_id="" ] [dslc_modules_area last="yes" first="no" size="12"] [/dslc_modules_area] [/dslc_modules_section] ';
620
-
621
- // If current page set to be tutorial chapter three.
622
- } elseif ( get_the_ID() == $tut_ch_three ) {
623
- $tut_page = true;
624
- $composer_code = '[dslc_modules_section type="wrapped" columns_spacing="spacing" bg_color="rgb(242, 245, 247)" bg_image_thumb="disabled" bg_image="" bg_image_repeat="repeat" bg_image_position="left top" bg_image_attachment="scroll" bg_image_size="auto" bg_video="" bg_video_overlay_color="#000000" bg_video_overlay_opacity="0" border_color="" border_width="0" border_style="solid" border="top right bottom left" margin_h="0" margin_b="0" padding="85" padding_h="0" custom_class="" custom_id="" ] [dslc_modules_area last="yes" first="no" size="12"] [/dslc_modules_area] [/dslc_modules_section] ';
625
- }
626
 
627
  // If currently showing a singular post of a post type that supports "post templates".
628
  if ( is_singular( $dslc_post_types ) ) {
629
 
630
  // Get template ID set for currently shown post.
631
- $template_id = dslc_st_get_template_id( get_the_ID() );
632
 
633
  // If template ID exists.
634
  if ( $template_id ) {
635
-
636
  // Get LC code of the template.
637
  $composer_code = dslc_get_code( $template_id );
638
-
639
  }
640
  }
641
 
@@ -651,10 +628,8 @@ function dslc_filter_content( $content ) {
651
 
652
  // If there is a page that powers it.
653
  if ( $template_id ) {
654
-
655
  // Get LC code of the page.
656
  $composer_code = dslc_get_code( $template_id );
657
-
658
  }
659
  }
660
 
@@ -666,10 +641,8 @@ function dslc_filter_content( $content ) {
666
 
667
  // If there is a page that powers it.
668
  if ( $template_id ) {
669
-
670
  // Get LC code of the page.
671
  $composer_code = dslc_get_code( $template_id );
672
-
673
  }
674
  }
675
 
@@ -681,10 +654,8 @@ function dslc_filter_content( $content ) {
681
 
682
  // If there is a page that powers it.
683
  if ( $template_id ) {
684
-
685
  // Get LC code of the page.
686
  $composer_code = dslc_get_code( $template_id );
687
-
688
  }
689
  }
690
 
@@ -699,20 +670,16 @@ function dslc_filter_content( $content ) {
699
 
700
  // If there is a page that powers it?
701
  if ( $template_id ) {
702
-
703
  // Get LC code of the page.
704
  $composer_code = dslc_get_code( $template_id );
705
-
706
  }
707
  }
708
 
709
  // If currently showing a singular post of a post type which is not "dslc_hf" ( used for header/footer )
710
  // And the constant DS_LIVE_COMPOSER_HF_AUTO is not defined or is set to false
711
  if ( ! is_singular( 'dslc_hf' ) && ( ! defined( 'DS_LIVE_COMPOSER_HF_AUTO' ) || DS_LIVE_COMPOSER_HF_AUTO ) ) {
712
-
713
  $composer_header = dslc_hf_get_header();
714
  $composer_footer = dslc_hf_get_footer();
715
-
716
  }
717
 
718
  // If editor is currently active clear the composer_prepend var.
@@ -728,48 +695,39 @@ function dslc_filter_content( $content ) {
728
  <a href="#" class="dslca-add-modules-section-hook"><span class="dslca-icon dslc-icon-align-justify"></span>' . __( 'Add Modules Row', 'live-composer-page-builder' ) . '</a>
729
  <a href="#" class="dslca-import-modules-section-hook"><span class="dslca-icon dslc-icon-download-alt"></span>' . __( 'Import', 'live-composer-page-builder' ) . '</a>
730
  </div>';
731
-
732
  }
733
 
734
- // If there is LC code to add to the content output
735
  if ( $composer_code || $template_code ) {
736
-
737
- // Turn the LC code into HTML code
738
  $composer_content = dslc_render_content( $composer_code );
739
 
740
- // If there is header or footer LC code to add to the content output
741
  } elseif ( $composer_header || $composer_footer ) {
 
 
 
742
 
743
- // If editor not active
744
- if ( ! DS_LIVE_COMPOSER_ACTIVE ) {
745
 
746
  // Pass the LC header, regular content and LC footer
747
- return $composer_wrapper_before . $composer_header . '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>' . $composer_footer . $composer_wrapper_after;
748
-
749
  }
750
-
751
  } else {
752
 
753
  // If editor not active
754
- if ( ! DS_LIVE_COMPOSER_ACTIVE ) {
755
 
 
756
  // Pass back the original wrapped in a div ( in case there's a need to style it )
757
  return '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>';
758
-
759
  }
760
-
761
  }
762
 
763
  // If singular post shown and has a featured image
764
- if ( is_singular() && has_post_thumbnail( get_the_ID() ) ) {
765
  // Hidden input holding value of the URL of the featured image of the shown post ( used by rows for BG image )
766
- $composer_append .= '<input type="hidden" id="dslca-post-data-thumb" value="' . apply_filters( 'dslc_row_bg_featured_image', wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) ) ) . '" />';
767
- }
768
-
769
- // If current page is used for a tutorial
770
- if ( $tut_page ) {
771
- // Hidden input holding value of the current post ID
772
- $composer_append .= '<input type="hidden" id="dslca-tut-page" value="' . get_the_ID() . '" />';
773
  }
774
 
775
  if ( dslc_is_editor_active( 'access' ) ) {
@@ -783,17 +741,19 @@ function dslc_filter_content( $content ) {
783
  // After Content.
784
  $content_after = '';
785
  $dslc_content_after = apply_filters( 'dslc_content_after', $content_after );
 
786
 
787
- // Pass the filtered content output.
788
- return $dslc_content_before . $composer_wrapper_before . do_action( 'dslc_output_prepend' ) . $composer_header . '<div id="dslc-main">' . $composer_prepend . $composer_content . '</div>' . $composer_append . $composer_footer . do_action( 'dslc_output_append' ) . $composer_wrapper_after . $dslc_content_after;
 
789
 
790
- // If LC should not filter the content
791
- } else {
792
 
 
 
793
  // Pass back the original wrapped in a div ( in case there's a need to style it )
794
  return '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>';
795
-
796
- }
797
 
798
  } add_filter( 'the_content', 'dslc_filter_content', 101 );
799
 
@@ -807,7 +767,7 @@ function dslc_filter_content( $content ) {
807
  function dslc_postid_is_404_template( $post_id ) {
808
  $template_404_id = dslc_get_option( '404_page', 'dslc_plugin_options_archives' );
809
 
810
- if ( intval($post_id) === intval($template_404_id) ) {
811
  return true;
812
  }
813
 
@@ -829,10 +789,20 @@ function dslc_render_content( $page_code, $update_ids = false ) {
829
  /**
830
  * If legacy (shortcodes) code.
831
  *
832
- * Funciton dslc_json_decode returns FALSE
833
- * if can't transfrom data into array.
834
  */
835
  if ( ! is_array( $page_code_array ) ) {
 
 
 
 
 
 
 
 
 
 
836
  return do_shortcode( $page_code );
837
  }
838
 
@@ -875,15 +845,12 @@ function dslc_render_content( $page_code, $update_ids = false ) {
875
  $module_atts['give_new_id'] = 'true';
876
  }
877
 
878
- $page_html .= dslc_module_front( $module_atts, $element);
879
- // function dslc_module_front( $atts, $settings_raw = null ) {
880
- }
881
- }
882
 
883
- return $page_html;
 
884
 
885
- // $page_code can be old base64 code
886
- // or new version (serialized only)
887
  }
888
 
889
 
@@ -948,7 +915,6 @@ function dslc_is_json( $string ) {
948
  * @return Array/Bool Code as array or FALSE if not posible to decode.
949
  */
950
  function dslc_json_decode( $raw_code, $ignore_migration = false ) {
951
-
952
  $decoded = false;
953
 
954
  // $raw_code = maybe_unserialize( stripslashes($raw_code) );
@@ -960,7 +926,7 @@ function dslc_json_decode( $raw_code, $ignore_migration = false ) {
960
  }
961
 
962
  // Is it JSON?
963
- if ( ! dslc_is_json( $raw_code ) ) {
964
  // If it's not JSON then:
965
  // 1. it's old code of the module settings serialized + base64.
966
  // 2. it's old code containing both shortocodes + base64.
@@ -997,7 +963,7 @@ function dslc_json_decode( $raw_code, $ignore_migration = false ) {
997
  } else {
998
  // Decode JSON.
999
  $decoded = json_decode( $raw_code, true );
1000
- }
1001
 
1002
  return $decoded;
1003
  }
@@ -1039,12 +1005,14 @@ function dslc_module_front( $atts, $settings_raw = null ) {
1039
  return;
1040
  }
1041
 
 
 
1042
  // Apply new instance ID if needed.
1043
  if ( isset( $atts['give_new_id'] ) ) {
1044
  $settings['module_instance_id'] = dslc_get_new_module_id();
1045
  }
1046
 
1047
- if ( isset( $atts['last'] ) && $atts['last'] == 'yes' ) {
1048
  $settings['dslc_m_size_last'] = 'yes';
1049
  } else {
1050
  $settings['dslc_m_size_last'] = 'no';
@@ -1058,9 +1026,6 @@ function dslc_module_front( $atts, $settings_raw = null ) {
1058
  // not as ajax repsonse on creation/editing
1059
  $settings['module_render_nonajax'] = true;
1060
 
1061
- // Start output fetching
1062
- ob_start();
1063
-
1064
  // Fixing the options array
1065
  global $dslc_var_image_option_bckp;
1066
  $dslc_var_image_option_bckp = array();
@@ -1084,50 +1049,55 @@ function dslc_module_front( $atts, $settings_raw = null ) {
1084
 
1085
  // 🔖 RAW CODE CLEANUP
1086
  foreach ( $module_struct as $option ) {
1087
-
1088
  // Fix 'Undefined index' notices.
1089
- if ( ! isset( $settings[$option['id']] ) ) {
1090
- $settings[$option['id']] = false;
1091
  }
1092
  }
1093
 
1094
-
1095
  // Load preset options if preset supplied
1096
  $settings = apply_filters( 'dslc_filter_settings', $settings );
1097
 
1098
  // Transform image ID to URL
1099
  foreach ( $module_struct as $option ) {
1100
 
1101
- if ( $option['type'] == 'image' ) {
1102
-
1103
- if ( isset( $settings[$option['id']] ) && ! empty( $settings[$option['id']] ) && is_numeric( $settings[$option['id']] ) ) {
1104
 
1105
- $dslc_var_image_option_bckp[$option['id']] = $settings[$option['id']];
1106
- $image_info = wp_get_attachment_image_src( $settings[$option['id']], 'full' );
1107
- $settings[$option['id']] = $image_info[0];
1108
  }
1109
  }
1110
  }
1111
 
1112
- // Module output
1113
- $module_instance->output( $settings );
 
 
 
1114
 
1115
- // End output fetching
1116
- $output = ob_get_contents();
 
 
1117
  ob_end_clean();
1118
 
1119
- if ( $dslc_active ) {
1120
- // Return the output.
1121
- return $output;
1122
- } else {
1123
- // Return the output.
1124
- return do_shortcode( $output );
1125
- }
 
 
 
1126
  } elseif ( dslc_current_user_can( 'access' ) ) {
1127
 
1128
  return __( 'A module broke', 'live-composer-page-builder' );
1129
 
1130
- }
1131
 
1132
  } add_shortcode( 'dslc_module', 'dslc_module_front' );
1133
 
@@ -1275,7 +1245,7 @@ function dslc_modules_section_front( $atts, $content = null, $version = 1 ) {
1275
 
1276
  // Columns spacing
1277
  if ( $atts['columns_spacing'] == 'nospacing' ) {
1278
- $section_class .= 'dslc-no-columns-spacing ';
1279
  }
1280
 
1281
  // Custom Class.
@@ -1326,14 +1296,20 @@ function dslc_modules_section_front( $atts, $content = null, $version = 1 ) {
1326
  // Custom ID - Output
1327
  $section_id_output = '';
1328
  if ( $section_id ) {
1329
- $section_id_output = 'id="' . $section_id . '"';
1330
  }
1331
 
1332
  $content_render = '';
1333
 
1334
  if ( 2 !== $version ) {
1335
  // Back-compatibility for shortcode-based dslc_code.
 
 
 
 
 
1336
  $content_render = do_shortcode( $content );
 
1337
  } elseif ( 2 === $version ) {
1338
 
1339
  // New JSON-based dslc_code.
@@ -1345,6 +1321,7 @@ function dslc_modules_section_front( $atts, $content = null, $version = 1 ) {
1345
  }
1346
  }
1347
 
 
1348
  $output = '';
1349
 
1350
  if ( ! $dslc_active ) {
@@ -1367,6 +1344,8 @@ function dslc_modules_section_front( $atts, $content = null, $version = 1 ) {
1367
 
1368
  if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
1369
 
 
 
1370
  // Management
1371
  $output .= '
1372
  <div class="dslca-modules-section-manage">
@@ -1378,7 +1357,7 @@ function dslc_modules_section_front( $atts, $content = null, $version = 1 ) {
1378
  <span class="dslca-manage-action dslca-delete-modules-section-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span>
1379
  </div>
1380
  </div>
1381
- <div class="dslca-modules-section-settings">' . dslc_row_get_options_fields( $atts ) . '</div>';
1382
 
1383
  $output .= '<textarea class="dslca-section-code">' . json_encode( $atts ) . '</textarea>';
1384
  }
@@ -1392,6 +1371,7 @@ function dslc_modules_section_front( $atts, $content = null, $version = 1 ) {
1392
  $output .= apply_filters( 'dslc_after_section', $after_section_content, $atts );
1393
  }
1394
 
 
1395
  if ( $dslc_active ) {
1396
  // Return the output.
1397
  return $output;
@@ -1399,9 +1379,11 @@ function dslc_modules_section_front( $atts, $content = null, $version = 1 ) {
1399
  // Return the output.
1400
  return do_shortcode( $output );
1401
  }
 
1402
 
1403
- } add_shortcode( 'dslc_modules_section', 'dslc_modules_section_front' );
1404
 
 
1405
 
1406
  /**
1407
  * Output front end modules area content
@@ -1435,57 +1417,71 @@ function dslc_modules_area_front( $atts, $content = null, $version = 1 ) {
1435
 
1436
  $output = '<div class="dslc-modules-area dslc-col dslc-' . $atts['size'] . '-col ' . $pos_class . '" data-size="' . $atts['size'] . '">';
1437
 
1438
- if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1439
 
1440
- // Management.
1441
- $output .= '<div class="dslca-modules-area-manage">
1442
- <span class="dslca-modules-area-manage-line"></span>
1443
- <div class="dslca-modules-area-manage-inner">
1444
- <span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy"></span></span>
1445
- <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" ><span class="dslca-icon dslc-icon-move"></span></span>
1446
- <span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >
1447
- <span class="dslca-icon dslc-icon-columns"></span>
1448
- <div class="dslca-change-width-modules-area-options">';
1449
- $output .= '<span>' . __( 'Container Width', 'live-composer-page-builder' ) . '</span>';
1450
- $output .= '<span data-size="1">1/12</span><span data-size="2">2/12</span>
1451
- <span data-size="3">3/12</span><span data-size="4">4/12</span>
1452
- <span data-size="5">5/12</span><span data-size="6">6/12</span>
1453
- <span data-size="7">7/12</span><span data-size="8">8/12</span>
1454
- <span data-size="9">9/12</span><span data-size="10">10/12</span>
1455
- <span data-size="11">11/12</span><span data-size="12">12/12</span>
1456
- </div>
1457
- </span>
1458
- <span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span>
1459
- </div>
1460
- </div>';
1461
- }
1462
 
1463
- $content_render = '';
 
 
1464
 
1465
- if ( 2 !== $version ) {
1466
- // Back-compatibility for shortcode-based dslc_code.
1467
- $content_render = do_shortcode( $content );
1468
- } elseif ( 2 === $version ) {
1469
 
1470
- // New JSON-based dslc_code.
1471
- if ( isset( $atts['give_new_id'] ) && 'true' === $atts['give_new_id'] ) {
1472
- // Udpdate ids of the elements inside.
1473
- $content_render = dslc_render_content( $content, true );
1474
- } else {
1475
- $content_render = dslc_render_content( $content );
1476
  }
1477
  }
 
1478
 
1479
- // Modules output
1480
- if ( empty( $content ) || $content == ' ' ) {
1481
- $output .= ''; //'&nbsp;';
 
1482
  } else {
1483
- $output .= $content_render;
1484
  }
 
 
 
 
 
 
 
 
1485
 
1486
  $output .= '</div>';
1487
 
1488
- // Return the output
1489
  return $output;
1490
 
1491
  } add_shortcode( 'dslc_modules_area', 'dslc_modules_area_front' );
@@ -1516,7 +1512,7 @@ function dslc_load_template( $filename, $default = '' ) {
1516
 
1517
  }
1518
 
1519
- function dslc_render_gfonts() {
1520
 
1521
  /* This array gets filled with fonts used on the page (temporary storage) */
1522
  global $dslc_googlefonts_array;
@@ -1524,25 +1520,12 @@ function dslc_render_gfonts() {
1524
  global $dslc_available_fonts;
1525
  $dslc_all_googlefonts_array = $dslc_available_fonts['google'];
1526
 
1527
- // Google Fonts Import.
1528
- $gfonts_output_subsets = '';
1529
- $gfonts_subsets_arr = dslc_get_option( 'lc_gfont_subsets', 'dslc_plugin_options_performance' );
1530
- if ( ! $gfonts_subsets_arr ) {
1531
- $gfonts_subsets_arr = array('latin', 'latin-ext', 'cyrillic', 'cyrillic-ext');
1532
- }
1533
- foreach ( $gfonts_subsets_arr as $gfonts_subset ) {
1534
- if ( $gfonts_output_subsets == '' ) {
1535
- $gfonts_output_subsets .= $gfonts_subset;
1536
- } else {
1537
- $gfonts_output_subsets .= ',' . $gfonts_subset;
1538
- }
1539
- }
1540
 
1541
  if ( ! defined( 'DS_LIVE_COMPOSER_GFONTS' ) || DS_LIVE_COMPOSER_GFONTS ) {
1542
 
1543
- $gfonts_output_prepend = '@import url("//fonts.googleapis.com/css?family=';
1544
- $gfonts_output_append = '&subset=' . $gfonts_output_subsets . '"); ';
1545
- $gfonts_ouput_inner = '';
1546
 
1547
  $gfonts_do_output = true;
1548
 
@@ -1554,22 +1537,55 @@ function dslc_render_gfonts() {
1554
  if ( in_array( $gfont, $dslc_all_googlefonts_array ) ) {
1555
  $gfont = str_replace( ' ', '+', $gfont );
1556
  if ( $gfont != '' ) {
1557
- if ( $gfonts_ouput_inner == '' ) {
1558
- $gfonts_ouput_inner .= $gfont . ':100,200,300,400,500,600,700,800,900';
1559
- } else {
1560
- $gfonts_ouput_inner .= '|' . $gfont . ':100,200,300,400,500,600,700,800,900';
1561
- }
1562
  }
1563
  }
1564
  }
1565
 
1566
  // Do not output empty Google font calls (when font set to an empty string)
1567
- if ( $gfonts_do_output ) {
1568
- $gfonts_output = $gfonts_output_prepend . $gfonts_ouput_inner . $gfonts_output_append;
1569
- if ( $gfonts_ouput_inner != '' ) {
1570
- echo $gfonts_output;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1571
  }
1572
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1573
  }
1574
  }
1575
 
@@ -1655,5 +1671,68 @@ function dslc_post_pagination( $atts ) {
1655
 
1656
  </div><!-- .dslc-pagination --><?php
1657
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1658
 
 
1659
  }
321
  <div class="dslca-module-edit-field-ttip-inner"></div>
322
  </div>
323
 
 
 
 
 
 
 
 
 
 
324
  <div class="dslca-invisible-overlay"></div>
325
  <div id="scroller-stopper"></div>
326
  <script id="pseudo-panel" type="template">
534
  }
535
  }
536
 
 
537
  /**
538
  * Hooks into the_content filter to add LC elements
539
  *
540
  * @since 1.0
541
  */
542
  function dslc_filter_content( $content ) {
543
+ // Uses 50% of the page loading time when not cached or in editing mode.
544
+
545
+ // Get ID of the post in which the content filter fired.
546
+ $curr_id = get_the_ID();
547
 
548
  // If post pass protected and pass not supplied return original content
549
+ if ( post_password_required( $curr_id ) ) {
550
  return $content;
551
  }
552
 
553
+ // Initiate simple html rendering cache.
554
+ $cache = new DSLC_Cache( 'html' );
555
+ $cache_id = $curr_id;
556
+
557
+ // Check if we have html for this code cached?
558
+ if ( ! dslc_is_editor_active() && $cache->enabled() && $cache->cached( $cache_id ) ) {
559
+ // Check if any dynamic content included before caching.
560
+ $cached_page_html = $cache->get_cache( $cache_id );
561
+ return do_shortcode( $cached_page_html );
562
+ }
563
+
564
  // Global variables.
565
  global $dslc_should_filter;
566
  global $wp_the_query;
567
  global $dslc_post_types;
568
  global $post;
569
 
 
 
 
570
  // Get ID of the post from the main query.
571
  if ( isset( $wp_the_query->queried_object_id ) ) {
572
  $real_id = $wp_the_query->queried_object_id;
601
  }
602
 
603
  // Get LC code of the current post.
604
+ $composer_code = dslc_get_code( $curr_id );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
605
 
606
  // If currently showing a singular post of a post type that supports "post templates".
607
  if ( is_singular( $dslc_post_types ) ) {
608
 
609
  // Get template ID set for currently shown post.
610
+ $template_id = dslc_st_get_template_id( $curr_id );
611
 
612
  // If template ID exists.
613
  if ( $template_id ) {
 
614
  // Get LC code of the template.
615
  $composer_code = dslc_get_code( $template_id );
 
616
  }
617
  }
618
 
628
 
629
  // If there is a page that powers it.
630
  if ( $template_id ) {
 
631
  // Get LC code of the page.
632
  $composer_code = dslc_get_code( $template_id );
 
633
  }
634
  }
635
 
641
 
642
  // If there is a page that powers it.
643
  if ( $template_id ) {
 
644
  // Get LC code of the page.
645
  $composer_code = dslc_get_code( $template_id );
 
646
  }
647
  }
648
 
654
 
655
  // If there is a page that powers it.
656
  if ( $template_id ) {
 
657
  // Get LC code of the page.
658
  $composer_code = dslc_get_code( $template_id );
 
659
  }
660
  }
661
 
670
 
671
  // If there is a page that powers it?
672
  if ( $template_id ) {
 
673
  // Get LC code of the page.
674
  $composer_code = dslc_get_code( $template_id );
 
675
  }
676
  }
677
 
678
  // If currently showing a singular post of a post type which is not "dslc_hf" ( used for header/footer )
679
  // And the constant DS_LIVE_COMPOSER_HF_AUTO is not defined or is set to false
680
  if ( ! is_singular( 'dslc_hf' ) && ( ! defined( 'DS_LIVE_COMPOSER_HF_AUTO' ) || DS_LIVE_COMPOSER_HF_AUTO ) ) {
 
681
  $composer_header = dslc_hf_get_header();
682
  $composer_footer = dslc_hf_get_footer();
 
683
  }
684
 
685
  // If editor is currently active clear the composer_prepend var.
695
  <a href="#" class="dslca-add-modules-section-hook"><span class="dslca-icon dslc-icon-align-justify"></span>' . __( 'Add Modules Row', 'live-composer-page-builder' ) . '</a>
696
  <a href="#" class="dslca-import-modules-section-hook"><span class="dslca-icon dslc-icon-download-alt"></span>' . __( 'Import', 'live-composer-page-builder' ) . '</a>
697
  </div>';
 
698
  }
699
 
 
700
  if ( $composer_code || $template_code ) {
701
+ // If there is LC code to add to the content output.
702
+ // Turn the LC code into HTML code.
703
  $composer_content = dslc_render_content( $composer_code );
704
 
 
705
  } elseif ( $composer_header || $composer_footer ) {
706
+ // If there is header or footer LC code to add to the content output.
707
+ // If editor not active.
708
+ if ( ! dslc_is_editor_active() ) {
709
 
710
+ $rendered_header_footer = $composer_wrapper_before . $composer_header . '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>' . $composer_footer . $composer_wrapper_after;
711
+ $cache->set_cache( $rendered_header_footer, $cache_id );
712
 
713
  // Pass the LC header, regular content and LC footer
714
+ return do_shortcode( $rendered_header_footer );
 
715
  }
 
716
  } else {
717
 
718
  // If editor not active
719
+ if ( ! dslc_is_editor_active() ) {
720
 
721
+ // Nothing to render.
722
  // Pass back the original wrapped in a div ( in case there's a need to style it )
723
  return '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>';
 
724
  }
 
725
  }
726
 
727
  // If singular post shown and has a featured image
728
+ if ( is_singular() && has_post_thumbnail( $curr_id ) ) {
729
  // Hidden input holding value of the URL of the featured image of the shown post ( used by rows for BG image )
730
+ $composer_append .= '<input type="hidden" id="dslca-post-data-thumb" value="' . apply_filters( 'dslc_row_bg_featured_image', wp_get_attachment_url( get_post_thumbnail_id( $curr_id ) ) ) . '" />';
 
 
 
 
 
 
731
  }
732
 
733
  if ( dslc_is_editor_active( 'access' ) ) {
741
  // After Content.
742
  $content_after = '';
743
  $dslc_content_after = apply_filters( 'dslc_content_after', $content_after );
744
+ $rendered_page = $dslc_content_before . $composer_wrapper_before . do_action( 'dslc_output_prepend' ) . $composer_header . '<div id="dslc-main">' . $composer_prepend . $composer_content . '</div>' . $composer_append . $composer_footer . do_action( 'dslc_output_append' ) . $composer_wrapper_after . $dslc_content_after;
745
 
746
+ if ( ! dslc_is_editor_active() && ! is_singular( 'dslc_hf' ) ) {
747
+ $cache->set_cache( $rendered_page, $cache_id );
748
+ }
749
 
750
+ return do_shortcode( $rendered_page );
 
751
 
752
+ } else {
753
+ // If LC should not filter the content (full content posts output in the blog/posts modules ).
754
  // Pass back the original wrapped in a div ( in case there's a need to style it )
755
  return '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>';
756
+ } // End if().
 
757
 
758
  } add_filter( 'the_content', 'dslc_filter_content', 101 );
759
 
767
  function dslc_postid_is_404_template( $post_id ) {
768
  $template_404_id = dslc_get_option( '404_page', 'dslc_plugin_options_archives' );
769
 
770
+ if ( intval( $post_id ) === intval( $template_404_id ) ) {
771
  return true;
772
  }
773
 
789
  /**
790
  * If legacy (shortcodes) code.
791
  *
792
+ * Function dslc_json_decode returns FALSE
793
+ * if can't transform data into array.
794
  */
795
  if ( ! is_array( $page_code_array ) ) {
796
+ // Brute-force disable inner shortcodes.
797
+ // To optimize the code rendering times.
798
+ $page_code = str_replace( '[dslc_modules_area ', '{dslc_modules_area ', $page_code );
799
+ $page_code = str_replace( '[dslc_modules_area]', '{dslc_modules_area}', $page_code );
800
+ $page_code = str_replace( '[/dslc_modules_area]', '{/dslc_modules_area}', $page_code );
801
+
802
+ $page_code = str_replace( '[dslc_module ', '{dslc_module ', $page_code );
803
+ $page_code = str_replace( '[dslc_module]', '{dslc_module}', $page_code );
804
+ $page_code = str_replace( '[/dslc_module]', '{/dslc_module}', $page_code );
805
+
806
  return do_shortcode( $page_code );
807
  }
808
 
845
  $module_atts['give_new_id'] = 'true';
846
  }
847
 
848
+ $page_html .= dslc_module_front( $module_atts, $element );
 
 
 
849
 
850
+ } // End if().
851
+ } // End foreach().
852
 
853
+ return $page_html;
 
854
  }
855
 
856
 
915
  * @return Array/Bool Code as array or FALSE if not posible to decode.
916
  */
917
  function dslc_json_decode( $raw_code, $ignore_migration = false ) {
 
918
  $decoded = false;
919
 
920
  // $raw_code = maybe_unserialize( stripslashes($raw_code) );
926
  }
927
 
928
  // Is it JSON?
929
+ if ( ! dslc_is_json( $raw_code ) ) {
930
  // If it's not JSON then:
931
  // 1. it's old code of the module settings serialized + base64.
932
  // 2. it's old code containing both shortocodes + base64.
963
  } else {
964
  // Decode JSON.
965
  $decoded = json_decode( $raw_code, true );
966
+ } // End if().
967
 
968
  return $decoded;
969
  }
1005
  return;
1006
  }
1007
 
1008
+ $module_instance_id = $settings['module_instance_id'];
1009
+
1010
  // Apply new instance ID if needed.
1011
  if ( isset( $atts['give_new_id'] ) ) {
1012
  $settings['module_instance_id'] = dslc_get_new_module_id();
1013
  }
1014
 
1015
+ if ( isset( $atts['last'] ) && 'yes' === $atts['last'] ) {
1016
  $settings['dslc_m_size_last'] = 'yes';
1017
  } else {
1018
  $settings['dslc_m_size_last'] = 'no';
1026
  // not as ajax repsonse on creation/editing
1027
  $settings['module_render_nonajax'] = true;
1028
 
 
 
 
1029
  // Fixing the options array
1030
  global $dslc_var_image_option_bckp;
1031
  $dslc_var_image_option_bckp = array();
1049
 
1050
  // 🔖 RAW CODE CLEANUP
1051
  foreach ( $module_struct as $option ) {
 
1052
  // Fix 'Undefined index' notices.
1053
+ if ( ! isset( $settings[ $option['id'] ] ) ) {
1054
+ $settings[ $option['id'] ] = false;
1055
  }
1056
  }
1057
 
 
1058
  // Load preset options if preset supplied
1059
  $settings = apply_filters( 'dslc_filter_settings', $settings );
1060
 
1061
  // Transform image ID to URL
1062
  foreach ( $module_struct as $option ) {
1063
 
1064
+ if ( 'image' === $option['type'] ) {
1065
+ if ( isset( $settings[ $option['id'] ] ) && ! empty( $settings[ $option['id'] ] ) && is_numeric( $settings[ $option['id'] ] ) ) {
 
1066
 
1067
+ $dslc_var_image_option_bckp[ $option['id'] ] = $settings[ $option['id'] ];
1068
+ $image_info = wp_get_attachment_image_src( $settings[ $option['id'] ], 'full' );
1069
+ $settings[ $option['id'] ] = $image_info[0];
1070
  }
1071
  }
1072
  }
1073
 
1074
+ // Code before module output.
1075
+ ob_start();
1076
+ $module_instance->module_before( $settings );
1077
+ $output_start = ob_get_contents();
1078
+ ob_end_clean();
1079
 
1080
+ // Module output.
1081
+ ob_start();
1082
+ $module_instance->output( $settings );
1083
+ $output_body = ob_get_contents();
1084
  ob_end_clean();
1085
 
1086
+ // Code after module output.
1087
+ ob_start();
1088
+ $module_instance->module_after( $settings );
1089
+ $output_end = ob_get_contents();
1090
+ ob_end_clean();
1091
+
1092
+ $output_body = dslc_decode_shortcodes( $output_body); //, 'storage' );
1093
+
1094
+ return $output_start . $output_body . $output_end;
1095
+
1096
  } elseif ( dslc_current_user_can( 'access' ) ) {
1097
 
1098
  return __( 'A module broke', 'live-composer-page-builder' );
1099
 
1100
+ } // End if().
1101
 
1102
  } add_shortcode( 'dslc_module', 'dslc_module_front' );
1103
 
1245
 
1246
  // Columns spacing
1247
  if ( $atts['columns_spacing'] == 'nospacing' ) {
1248
+ $section_class .= 'dslc-no-columns-spacing ';
1249
  }
1250
 
1251
  // Custom Class.
1296
  // Custom ID - Output
1297
  $section_id_output = '';
1298
  if ( $section_id ) {
1299
+ $section_id_output = 'id="' . $section_id . '"';
1300
  }
1301
 
1302
  $content_render = '';
1303
 
1304
  if ( 2 !== $version ) {
1305
  // Back-compatibility for shortcode-based dslc_code.
1306
+ // OLD: $content_render = do_shortcode( $content );
1307
+ $content = str_replace( '{dslc_modules_area ', '[dslc_modules_area ', $content );
1308
+ $content = str_replace( '{dslc_modules_area}', '[dslc_modules_area]', $content );
1309
+ $content = str_replace( '{/dslc_modules_area}', '[/dslc_modules_area]', $content );
1310
+
1311
  $content_render = do_shortcode( $content );
1312
+
1313
  } elseif ( 2 === $version ) {
1314
 
1315
  // New JSON-based dslc_code.
1321
  }
1322
  }
1323
 
1324
+
1325
  $output = '';
1326
 
1327
  if ( ! $dslc_active ) {
1344
 
1345
  if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
1346
 
1347
+ $atts = dslc_encode_shortcodes_in_array( $atts );
1348
+
1349
  // Management
1350
  $output .= '
1351
  <div class="dslca-modules-section-manage">
1357
  <span class="dslca-manage-action dslca-delete-modules-section-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span>
1358
  </div>
1359
  </div>
1360
+ <div class="dslca-modules-section-settings">' . dslc_encode_shortcodes( dslc_row_get_options_fields( $atts ) ) . '</div>';
1361
 
1362
  $output .= '<textarea class="dslca-section-code">' . json_encode( $atts ) . '</textarea>';
1363
  }
1371
  $output .= apply_filters( 'dslc_after_section', $after_section_content, $atts );
1372
  }
1373
 
1374
+ /*
1375
  if ( $dslc_active ) {
1376
  // Return the output.
1377
  return $output;
1379
  // Return the output.
1380
  return do_shortcode( $output );
1381
  }
1382
+ */
1383
 
1384
+ return $output; // To make caching work we do shortcodes in dslc_filter_content only.
1385
 
1386
+ } add_shortcode( 'dslc_modules_section', 'dslc_modules_section_front' );
1387
 
1388
  /**
1389
  * Output front end modules area content
1417
 
1418
  $output = '<div class="dslc-modules-area dslc-col dslc-' . $atts['size'] . '-col ' . $pos_class . '" data-size="' . $atts['size'] . '">';
1419
 
1420
+ if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
1421
+
1422
+ // Management.
1423
+ $output .= '<div class="dslca-modules-area-manage">
1424
+ <span class="dslca-modules-area-manage-line"></span>
1425
+ <div class="dslca-modules-area-manage-inner">
1426
+ <span class="dslca-manage-action dslca-copy-modules-area-hook" title="Duplicate" ><span class="dslca-icon dslc-icon-copy"></span></span>
1427
+ <span class="dslca-manage-action dslca-move-modules-area-hook" title="Drag to move" ><span class="dslca-icon dslc-icon-move"></span></span>
1428
+ <span class="dslca-manage-action dslca-change-width-modules-area-hook" title="Change width" >
1429
+ <span class="dslca-icon dslc-icon-columns"></span>
1430
+ <div class="dslca-change-width-modules-area-options">';
1431
+ $output .= '<span>' . __( 'Container Width', 'live-composer-page-builder' ) . '</span>';
1432
+ $output .= '<span data-size="1">1/12</span><span data-size="2">2/12</span>
1433
+ <span data-size="3">3/12</span><span data-size="4">4/12</span>
1434
+ <span data-size="5">5/12</span><span data-size="6">6/12</span>
1435
+ <span data-size="7">7/12</span><span data-size="8">8/12</span>
1436
+ <span data-size="9">9/12</span><span data-size="10">10/12</span>
1437
+ <span data-size="11">11/12</span><span data-size="12">12/12</span>
1438
+ </div>
1439
+ </span>
1440
+ <span class="dslca-manage-action dslca-delete-modules-area-hook" title="Delete" ><span class="dslca-icon dslc-icon-remove"></span></span>
1441
+ </div>
1442
+ </div>';
1443
+ }
1444
 
1445
+ $content_render = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1446
 
1447
+ if ( 2 !== $version ) {
1448
+ // Back-compatibility for shortcode-based dslc_code.
1449
+ // OLD: $content_render = do_shortcode( $content );
1450
 
1451
+ // Restore module shortcodes.
1452
+ $content = str_replace('{dslc_module ', '[dslc_module ', $content);
1453
+ $content = str_replace('{dslc_module}', '[dslc_module]', $content);
1454
+ $content = str_replace('{/dslc_module}', '[/dslc_module]', $content);
1455
 
1456
+ $modules = explode( '[/dslc_module]', trim( $content ) );
1457
+
1458
+ foreach ( $modules as $module ) {
1459
+ if ( trim( $module ) ) {
1460
+ $module_settings_encoded = preg_replace( "/(?:\[dslc_module[A-Za-z=\"' 0-9\-_]*\])/", '', $module );
1461
+ $content_render .= dslc_module_front( false, $module_settings_encoded );
1462
  }
1463
  }
1464
+ } elseif ( 2 === $version ) {
1465
 
1466
+ // New JSON-based dslc_code.
1467
+ if ( isset( $atts['give_new_id'] ) && 'true' === $atts['give_new_id'] ) {
1468
+ // Update ids of the elements inside.
1469
+ $content_render = dslc_render_content( $content, true );
1470
  } else {
1471
+ $content_render = dslc_render_content( $content );
1472
  }
1473
+ }
1474
+
1475
+ // Modules output.
1476
+ if ( empty( $content ) || ' ' === $content ) {
1477
+ $output .= ''; //'&nbsp;';
1478
+ } else {
1479
+ $output .= $content_render;
1480
+ }
1481
 
1482
  $output .= '</div>';
1483
 
1484
+ // Return the output.
1485
  return $output;
1486
 
1487
  } add_shortcode( 'dslc_modules_area', 'dslc_modules_area_front' );
1512
 
1513
  }
1514
 
1515
+ function dslc_get_gfonts() {
1516
 
1517
  /* This array gets filled with fonts used on the page (temporary storage) */
1518
  global $dslc_googlefonts_array;
1520
  global $dslc_available_fonts;
1521
  $dslc_all_googlefonts_array = $dslc_available_fonts['google'];
1522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1523
 
1524
  if ( ! defined( 'DS_LIVE_COMPOSER_GFONTS' ) || DS_LIVE_COMPOSER_GFONTS ) {
1525
 
1526
+ $gfonts_output_prepend = '';//'@import url("//fonts.googleapis.com/css?family=';
1527
+ $gfonts_output_append = ''; //'&subset=' . $gfonts_output_subsets . '"); ';
1528
+ $gfonts_ouput_inner = array();
1529
 
1530
  $gfonts_do_output = true;
1531
 
1537
  if ( in_array( $gfont, $dslc_all_googlefonts_array ) ) {
1538
  $gfont = str_replace( ' ', '+', $gfont );
1539
  if ( $gfont != '' ) {
1540
+ $gfonts_ouput_inner[] = $gfont . ':100,200,300,400,500,600,700,800,900';
 
 
 
 
1541
  }
1542
  }
1543
  }
1544
 
1545
  // Do not output empty Google font calls (when font set to an empty string)
1546
+ if ( $gfonts_do_output && count( $gfonts_ouput_inner ) ) {
1547
+ // $gfonts_output = $gfonts_output_prepend . $gfonts_ouput_inner . $gfonts_output_append;
1548
+ // if ( '' !== $gfonts_ouput_inner ) {
1549
+ return $gfonts_ouput_inner;
1550
+ // }
1551
+ }
1552
+ }
1553
+ }
1554
+
1555
+ function dslc_render_gfonts( $fonts_array ) {
1556
+
1557
+ if ( is_array( $fonts_array ) && ! empty( $fonts_array) ) {
1558
+
1559
+ // Google Fonts Import.
1560
+ $gfonts_output = '';
1561
+ $gfonts_output_subsets = '';
1562
+ $gfonts_subsets_arr = dslc_get_option( 'lc_gfont_subsets', 'dslc_plugin_options_performance' );
1563
+ if ( ! $gfonts_subsets_arr ) {
1564
+ $gfonts_subsets_arr = array( 'latin', 'latin-ext', 'cyrillic', 'cyrillic-ext' );
1565
+ }
1566
+
1567
+ foreach ( $gfonts_subsets_arr as $gfonts_subset ) {
1568
+ if ( '' === $gfonts_output_subsets ) {
1569
+ $gfonts_output_subsets .= $gfonts_subset;
1570
+ } else {
1571
+ $gfonts_output_subsets .= ',' . $gfonts_subset;
1572
  }
1573
  }
1574
+
1575
+ $gfonts_output .= '<link href="//fonts.googleapis.com/css?family=';
1576
+
1577
+ foreach ( $fonts_array as $key => $font ) {
1578
+ if ( 0 < $key ) {
1579
+ $gfonts_output .= '|';
1580
+ }
1581
+
1582
+ $gfonts_output .= $font;
1583
+ }
1584
+
1585
+ $gfonts_output .= '&amp;subset=' . $gfonts_output_subsets;
1586
+ $gfonts_output .= '" rel="stylesheet">';
1587
+
1588
+ echo $gfonts_output;
1589
  }
1590
  }
1591
 
1671
 
1672
  </div><!-- .dslc-pagination --><?php
1673
  }
1674
+ }
1675
+
1676
+ /**
1677
+ * Disable shortcode rendering for the string provided by replacing
1678
+ * all WordPress shortcode brackets as follow: [ -> %(% | ] -> %)%.
1679
+ *
1680
+ * @param string $code String with code to filter.
1681
+ * @return string Filtered code.
1682
+ */
1683
+ function dslc_encode_shortcodes( $code ) {
1684
+ $braket_open = '%(%';
1685
+ $braket_close = '%)%';
1686
+
1687
+ // if ( 'storage' === $mode ) {
1688
+ // $braket_open = '%((%';
1689
+ // $braket_close = '%))%';
1690
+ // }
1691
+
1692
+ $code = str_replace( '[', $braket_open, $code );
1693
+ $code = str_replace( '%{%', $braket_open, $code );
1694
+ $code = str_replace( ']', $braket_close, $code );
1695
+ $code = str_replace( '%}%', $braket_close, $code );
1696
+
1697
+ return $code;
1698
+ }
1699
+
1700
+ function dslc_encode_protected_shortcodes( $code ) {
1701
+
1702
+ $braket_open = '%((%';
1703
+ $braket_close = '%))%';
1704
+
1705
+ $code = str_replace( '[', $braket_open, $code );
1706
+ $code = str_replace( '%(%', $braket_open, $code );
1707
+ $code = str_replace( ']', $braket_close, $code );
1708
+ $code = str_replace( '%)%', $braket_close, $code );
1709
+
1710
+ return $code;
1711
+ }
1712
+
1713
+ function dslc_decode_shortcodes( $code , $mode = 'display' ) {
1714
+ $braket_open = '%(%';
1715
+ $braket_close = '%)%';
1716
+
1717
+ // if ( 'storage' === $mode ) {
1718
+ // $braket_open = '%((%';
1719
+ // $braket_close = '%))%';
1720
+ // }
1721
+
1722
+ $code = str_replace( $braket_open, '[', $code );
1723
+ $code = str_replace( $braket_close, ']', $code );
1724
+
1725
+ return $code;
1726
+ }
1727
+
1728
+ function dslc_encode_shortcodes_in_array( $atts ) {
1729
+ if ( is_array( $atts ) ) {
1730
+ foreach ( $atts as $key=>$value ) {
1731
+ $atts[$key] = dslc_encode_shortcodes_in_array( $value );
1732
+ }
1733
+ } else {
1734
+ return dslc_encode_shortcodes( $atts );
1735
+ }
1736
 
1737
+ return $atts;
1738
  }
includes/editorinterface.class.php CHANGED
@@ -179,6 +179,11 @@ class DSLC_EditorInterface {
179
  return;
180
  }
181
 
 
 
 
 
 
182
  /**
183
  * Is current post type using LC templates system?
184
  */
179
  return;
180
  }
181
 
182
+ // Hide LC button on front.
183
+ if ( ! dslc_can_edit_in_lc( get_post_type() ) ) {
184
+ return;
185
+ }
186
+
187
  /**
188
  * Is current post type using LC templates system?
189
  */
includes/functions.php CHANGED
@@ -208,7 +208,9 @@ function dslc_module_settings( $options, $module_id ) {
208
 
209
  // Go through all options and fill array with default/standard values.
210
  foreach ( $options as $option ) {
211
- $settings[ $option['id'] ] = $option['std'];
 
 
212
  }
213
 
214
  } else {
@@ -788,12 +790,17 @@ function dslc_code_migration( $settings ) {
788
 
789
  if ( isset( $settings[ $id ] ) && '' === $settings[ $id ] ) {
790
  $settings[ $id ] = '';
 
 
791
  }
792
  } elseif ( 'button_text' === $id ) {
793
 
794
  if ( isset( $settings[ $id ] ) && '' === $settings[ $id ] ) {
795
  $settings[ $id ] = '';
 
 
796
  }
 
797
  } elseif ( 'main_heading_link_title' === $id ) {
798
 
799
  if ( isset( $settings[ $id ] ) && '' === $settings[ $id ] ) {
@@ -803,6 +810,8 @@ function dslc_code_migration( $settings ) {
803
 
804
  if ( isset( $settings[ $id ] ) && '' === $settings[ $id ] ) {
805
  $settings[ $id ] = '';
 
 
806
  }
807
  } elseif ( ( ! isset( $settings[ $id ] ) || '' === $settings[ $id ] ) &&
808
  isset( $control['std'] ) ) {
208
 
209
  // Go through all options and fill array with default/standard values.
210
  foreach ( $options as $option ) {
211
+ if ( isset( $option['std'] ) ) {
212
+ $settings[ $option['id'] ] = $option['std'];
213
+ }
214
  }
215
 
216
  } else {
790
 
791
  if ( isset( $settings[ $id ] ) && '' === $settings[ $id ] ) {
792
  $settings[ $id ] = '';
793
+ } elseif ( ! isset( $settings[ $id ] ) && isset( $control['std'] ) ) {
794
+ $settings[ $id ] = $control['std']; // Fix missing default content.
795
  }
796
  } elseif ( 'button_text' === $id ) {
797
 
798
  if ( isset( $settings[ $id ] ) && '' === $settings[ $id ] ) {
799
  $settings[ $id ] = '';
800
+ } elseif ( ! isset( $settings[ $id ] ) && isset( $control['std'] ) ) {
801
+ $settings[ $id ] = $control['std']; // Fix missing default button labels.
802
  }
803
+
804
  } elseif ( 'main_heading_link_title' === $id ) {
805
 
806
  if ( isset( $settings[ $id ] ) && '' === $settings[ $id ] ) {
810
 
811
  if ( isset( $settings[ $id ] ) && '' === $settings[ $id ] ) {
812
  $settings[ $id ] = '';
813
+ } elseif ( ! isset( $settings[ $id ] ) && isset( $control['std'] ) ) {
814
+ $settings[ $id ] = $control['std']; // Fix missing default font family.
815
  }
816
  } elseif ( ( ! isset( $settings[ $id ] ) || '' === $settings[ $id ] ) &&
817
  isset( $control['std'] ) ) {
includes/header-footer.php CHANGED
@@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
27
  */
28
 
29
  function dslc_hf_init() {
30
-
31
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) {
32
  return;
33
  }
@@ -37,25 +37,25 @@ function dslc_hf_init() {
37
  register_post_type( 'dslc_hf', array(
38
  'menu_icon' => 'dashicons-image-flip-vertical',
39
  'labels' => array(
40
- 'name' => __( 'Headers & Footers', 'live-composer-page-builder' ),
41
- 'menu_name' => __( 'Headers/Footers', 'live-composer-page-builder' ),
42
- 'singular_name' => __( 'Add Header/Footer', 'live-composer-page-builder' ),
43
- 'add_new' => __( 'Add Header/Footer', 'live-composer-page-builder' ),
44
- 'add_new_item' => __( 'Add Header/Footer', 'live-composer-page-builder' ),
45
- 'edit' => __( 'Edit', 'live-composer-page-builder' ),
46
- 'edit_item' => __( 'Edit Header/Footer', 'live-composer-page-builder' ),
47
- 'new_item' => __( 'New Header/Footer', 'live-composer-page-builder' ),
48
- 'view' => __( 'View Header/Footer', 'live-composer-page-builder' ),
49
- 'view_item' => __( 'View Header/Footer', 'live-composer-page-builder' ),
50
- 'search_items' => __( 'Search Header/Footer', 'live-composer-page-builder' ),
51
- 'not_found' => __( 'No Header/Footer found', 'live-composer-page-builder' ),
52
  'not_found_in_trash' => __( 'No Header/Footer found in Trash', 'live-composer-page-builder' ),
53
- 'parent' => __( 'Parent Header/Footer', 'live-composer-page-builder' ),
54
  ),
55
  'public' => true,
56
  'exclude_from_search' => true,
57
  'publicly_queryable' => true,
58
- 'supports' => array('title', 'custom-fields', 'author', 'thumbnail'),
59
  'capabilities' => array(
60
  'publish_posts' => $capability,
61
  'edit_posts' => $capability,
@@ -65,9 +65,9 @@ function dslc_hf_init() {
65
  'read_private_posts' => $capability,
66
  'edit_post' => $capability,
67
  'delete_post' => $capability,
68
- 'read_post' => $capability
69
  ),
70
- 'show_in_menu' =>'themes.php',
71
  ) );
72
 
73
  /**
@@ -88,13 +88,13 @@ function dslc_hf_init() {
88
  'choices' => array(
89
  array(
90
  'label' => 'Header',
91
- 'value' => 'header'
92
  ),
93
  array(
94
  'label' => 'Footer',
95
- 'value' => 'footer'
96
  ),
97
- )
98
  ),
99
  array(
100
  'label' => __( 'Type', 'live-composer-page-builder' ),
@@ -105,13 +105,13 @@ function dslc_hf_init() {
105
  'choices' => array(
106
  array(
107
  'label' => 'Regular',
108
- 'value' => 'regular'
109
  ),
110
  array(
111
  'label' => 'Default',
112
- 'value' => 'default'
113
  ),
114
- )
115
  ),
116
  array(
117
  'label' => __( 'Position', 'live-composer-page-builder' ),
@@ -122,19 +122,19 @@ function dslc_hf_init() {
122
  'choices' => array(
123
  array(
124
  'label' => 'Relative',
125
- 'value' => 'relative'
126
  ),
127
  array(
128
  'label' => 'Fixed',
129
- 'value' => 'fixed'
130
  ),
131
  array(
132
  'label' => 'Absolute',
133
- 'value' => 'absolute'
134
  ),
135
- )
136
  ),
137
- )
138
  );
139
 
140
  } add_action( 'init', 'dslc_hf_init' );
@@ -165,18 +165,18 @@ function dslc_hf_col_title( $defaults ) {
165
  * @since 1.0
166
  */
167
 
168
- function dslc_hf_col_content( $column_name, $post_ID ) {
169
 
170
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) {
171
  return;
172
  }
173
 
174
- if ( $column_name == 'dslc_hf_col_cpt' ) {
175
- echo get_post_meta( $post_ID, 'dslc_hf_for', true );
176
  }
177
 
178
- if ( $column_name == 'dslc_hf_col_default' ) {
179
- if ( get_post_meta( $post_ID, 'dslc_hf_type', true ) == 'default' ) {
180
  echo '<strong>Default</strong>';
181
  }
182
  }
@@ -195,13 +195,13 @@ function dslc_hf_unique_default( $post_id ) {
195
  return;
196
  }
197
 
198
- // If no post type ( not really a save action ) stop execution
199
  if ( ! isset( $_POST['post_type'] ) ) {
200
  return;
201
  }
202
 
203
- // If not a header/footer stop excution
204
- if ( $_POST['post_type'] !== 'dslc_hf' ) {
205
  return;
206
  }
207
 
@@ -211,7 +211,7 @@ function dslc_hf_unique_default( $post_id ) {
211
  }
212
 
213
  // If template not default stop execution
214
- if ( $_REQUEST['dslc_hf_type'] !== 'default' ) {
215
  return;
216
  }
217
 
@@ -242,7 +242,7 @@ function dslc_hf_unique_default( $post_id ) {
242
  }
243
  }
244
 
245
- // Reset query
246
  wp_reset_query();
247
 
248
  } add_action( 'save_post', 'dslc_hf_unique_default' );
@@ -254,11 +254,10 @@ function dslc_hf_unique_default( $post_id ) {
254
  */
255
 
256
  function dslc_hf_options() {
257
-
258
  $dslc_admin_interface_on = apply_filters( 'dslc_admin_interface_on', true );
259
 
260
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF || true !== $dslc_admin_interface_on ) {
261
-
262
  return;
263
  }
264
 
@@ -296,22 +295,22 @@ function dslc_hf_options() {
296
 
297
  foreach ( $templates as $template ) {
298
  $template_for = get_post_meta( $template->ID, 'dslc_hf_for', true );
299
- if ( $template_for == 'header' ) {
300
  $headers_array[] = array(
301
  'label' => $template->post_title,
302
- 'value' => $template->ID
303
  );
304
- } elseif ( $template_for == 'footer' ) {
305
  $footers_array[] = array(
306
  'label' => $template->post_title,
307
- 'value' => $template->ID
308
  );
309
  }
310
  }
311
 
312
  $dslc_var_post_options['dslc-hf-options'] = array(
313
  'title' => __( 'Header/Footer', 'live-composer-page-builder' ),
314
- 'show_on' => array('page', 'dslc_templates'),
315
  'context' => 'side',
316
  'options' => array(
317
  array(
@@ -319,19 +318,18 @@ function dslc_hf_options() {
319
  'std' => '',
320
  'id' => 'dslc_header',
321
  'type' => 'select',
322
- 'choices' => $headers_array
323
  ),
324
  array(
325
  'label' => __( 'Footer', 'live-composer-page-builder' ),
326
  'std' => '',
327
  'id' => 'dslc_footer',
328
  'type' => 'select',
329
- 'choices' => $footers_array
330
  ),
331
- )
332
  );
333
-
334
- }
335
 
336
  } add_action( 'init', 'dslc_hf_options' );
337
 
@@ -340,58 +338,52 @@ function dslc_hf_options() {
340
  *
341
  * @since 1.0
342
  *
343
- * @param int $post_ID ID of the post/page. Default false ( Automatically finds ID ).
344
  * @return array The IDs of the header and footer associated with the post/page. False if none.
345
  */
346
- function dslc_hf_get_ID( $post_ID = false ) {
347
-
348
- // If theme does not define header/footer compatibility return false
349
- if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) {
350
- return array('header' => false, 'footer' => false);
351
- }
352
-
353
- // If current page is actually header/footer post, return false
354
- if ( is_singular( 'dslc_hf' ) ) {
355
- return array('header' => false, 'footer' => false);
356
  }
357
 
358
- // Global vars
359
  global $dslc_post_types;
360
 
361
  // If post ID not supplied, figure it out
362
- if ( ! $post_ID ) {
363
-
364
- // If currently showing a singular post of a post type that supports "post templates"
365
  if ( is_singular( $dslc_post_types ) ) {
366
- $post_ID = dslc_st_get_template_id( get_the_ID() );
367
-
368
- // If currently showing a category archive page
369
  } elseif ( is_archive() && ! is_author() && ! is_search() ) {
370
- $post_ID = dslc_get_option( get_post_type(), 'dslc_plugin_options_archives' );
371
-
372
- // If currently showing an author archive page
373
  } elseif ( is_author() ) {
374
- $post_ID = dslc_get_option( 'author', 'dslc_plugin_options_archives' );
375
-
376
- // If currently showing a search results page
377
  } elseif ( is_search() ) {
378
- $post_ID = dslc_get_option( 'search_results', 'dslc_plugin_options_archives' );
379
-
380
- // If currently showina 404 page
381
  } elseif ( is_404() ) {
382
- $post_ID = dslc_get_option( '404_page', 'dslc_plugin_options_archives' );
383
-
384
- // Otherwise just get the ID
385
  } else {
386
- $post_ID = get_the_ID();
 
387
  }
388
-
389
  }
390
 
391
- if ( $post_ID ) {
392
  // Get header/footer template
393
- $header_tpl = get_post_meta( $post_ID, 'dslc_header', true );
394
- $footer_tpl = get_post_meta( $post_ID, 'dslc_footer', true );
395
  } else {
396
  $header_tpl = false;
397
  $footer_tpl = false;
@@ -408,7 +400,7 @@ function dslc_hf_get_ID( $post_ID = false ) {
408
  }
409
 
410
  // Default header template supplied, find it and return the ID
411
- if ( $header_tpl == 'default' ) {
412
 
413
  // Query for default template
414
  $args = array(
@@ -427,32 +419,30 @@ function dslc_hf_get_ID( $post_ID = false ) {
427
  'compare' => '=',
428
  ),
429
  ),
430
- 'order' => 'DESC'
431
  );
432
  $tpls = get_posts( $args );
433
 
434
  // If default template found set the ID if not make it false
435
  if ( $tpls ) {
436
- $header_tpl_ID = $tpls[0]->ID;
437
  } else {
438
- $header_tpl_ID = false;
439
  }
 
 
 
440
 
441
- // Specific template supplied, return the ID
442
- } elseif ( $header_tpl && $header_tpl != '_disabled_' ) {
443
-
444
- $header_tpl_ID = $header_tpl;
445
 
446
- } elseif ( $header_tpl && $header_tpl == '_disabled_' ) {
447
 
448
- $header_tpl_ID = false;
449
-
450
- }
451
 
452
- // Default footer template supplied, find it and return the ID
453
- if ( $footer_tpl == 'default' ) {
454
 
455
- // Query for default template
456
  $args = array(
457
  'post_type' => 'dslc_hf',
458
  'post_status' => 'publish',
@@ -469,31 +459,33 @@ function dslc_hf_get_ID( $post_ID = false ) {
469
  'compare' => '=',
470
  ),
471
  ),
472
- 'order' => 'DESC'
473
  );
474
  $tpls = get_posts( $args );
475
 
476
- // If default template found set the ID if not make it false
477
  if ( $tpls ) {
478
- $footer_tpl_ID = $tpls[0]->ID;
479
  } else {
480
- $footer_tpl_ID = false;
481
  }
 
 
 
482
 
483
- // Specific template supplied, return the ID
484
- } elseif ( $footer_tpl && $footer_tpl != '_disabled_' ) {
485
-
486
- $footer_tpl_ID = $footer_tpl;
487
 
488
- } elseif ( $footer_tpl && $footer_tpl == '_disabled_' ) {
 
489
 
490
- $footer_tpl_ID = false;
491
 
492
- }
493
-
494
- // Return the template ID
495
- return array('header' => $header_tpl_ID, 'footer' => $footer_tpl_ID);
496
 
 
 
497
  }
498
 
499
  /**
@@ -501,11 +493,11 @@ function dslc_hf_get_ID( $post_ID = false ) {
501
  *
502
  * @since 1.0.2
503
  *
504
- * @param int $post_ID ID of the post/page. Default false.
505
  * @param string $h_or_f Accepted values 'header' and 'footer'. Defaults to 'header'
506
  * @return string The LC code for the header/footer of the post/page. Empty string if no LC code.
507
  */
508
- function dslc_hf_get_code( $post_ID = false, $h_or_f = 'header' ) {
509
 
510
  // If support for header/footer functionality not set or is set to false, return empty string
511
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) {
@@ -516,195 +508,148 @@ function dslc_hf_get_code( $post_ID = false, $h_or_f = 'header' ) {
516
  $code = '';
517
 
518
  // If post ID not supplied ask WordPress
519
- if ( ! $post_ID ) {
520
- $post_ID = get_the_ID();
521
  }
522
 
523
  // If still no ID return empty string
524
- if ( ! $post_ID ) {
525
  return '';
526
  }
527
 
528
  // Get ID of the header/footer powering the post
529
- $header_footer = dslc_hf_get_ID( $post_ID );
530
 
531
  // If post has header/footer attached
532
- if ( $header_footer[$h_or_f] ) {
533
  // Get LC code of the header/footer powering the post
534
- $code = get_post_meta( $header_footer[$h_or_f], 'dslc_code', true );
535
  }
536
 
537
  // Pass it back
538
  return $code;
539
-
540
  }
541
 
542
- /**
543
- * Get the header output code
544
- *
545
- * @since 1.0.2
546
- *
547
- * @param int $post_ID ID of the post/page. Default false.
548
- * @return string The HTML ouput of the header for a defined post/page
549
- */
550
- function dslc_hf_get_header( $post_ID = false ) {
551
 
552
- // Var defaults
553
- $append = '';
554
- $wrapper_start = '';
555
 
556
- // Wrap if header handled by theme
557
- if ( defined( 'DS_LIVE_COMPOSER_HF_AUTO' ) && ! DS_LIVE_COMPOSER_HF_AUTO ) {
558
- $wrapper_start = '<div id="dslc-content" class="dslc-content dslc-clearfix">';
559
- }
560
 
561
- // If the page displayed is header/footer, do not repeat
562
- if ( is_singular( 'dslc_hf' ) ) {
563
- return $wrapper_start;
564
- }
565
 
566
- // Get header/footer ID associated with the post
567
- $header_footer = dslc_hf_get_ID( $post_ID );
 
568
 
569
- // Before Header.
570
- $header_before = '';
571
- $dslc_header_before = apply_filters( 'dslc_header_before', $header_before );
572
 
573
- // After Header.
574
- $header_after = '';
575
- $dslc_header_after = apply_filters( 'dslc_header_after', $header_after );
576
 
577
- // If there is a header applied
578
- if ( $header_footer['header'] && is_numeric ( $header_footer['header'] ) ) {
 
 
 
579
 
580
- // Get the header LC code
581
- $header_code = get_post_meta( $header_footer['header'], 'dslc_code', true );
582
 
583
- // If the "position" option value exists
584
- if ( get_post_meta( $header_footer['header'], 'dslc_hf_position', true ) ) {
585
 
586
- // Set the "position" option value to the one from the settings
587
- $header_position = get_post_meta( $header_footer['header'], 'dslc_hf_position', true );
588
 
589
- } else {
590
 
591
- // Set the "position" option value to default "relative"
592
- $header_position = 'relative';
593
 
 
 
 
 
594
  }
595
 
596
- // If editor active? Add a link to the header editing.
597
- if ( dslc_is_editor_active( 'access' ) ) {
598
 
599
- $header_link = DSLC_EditorInterface::get_editor_link_url( $header_footer['header'] );
 
 
600
 
601
- // Set the HTML for the edit overlay.
602
- $append = '<div class="dslc-hf-block-overlay"><a target="_blank" href="' . $header_link . '" class="dslc-hf-block-overlay-button dslca-link">' . __( 'Edit Header','live-composer-page-builder' ) . '</a>';
 
 
 
603
 
604
- if ( 'fixed' === $header_position ) {
605
- $append .= ' <span class="dslc-hf-block-overlay-text">' . __( 'To preview FIXED positioning click on "Hide Editor" button.','live-composer-page-builder' ) . '</span>';
606
- } elseif ( 'absolute' === $header_position ) {
607
- $append .= ' <span class="dslc-hf-block-overlay-text">' . __( 'To preview ABSOLUTE positioning click on "Hide Editor" button.','live-composer-page-builder' ) . '</span>';
608
- }
609
 
610
- $append .= '</div>';
 
611
  }
612
-
613
- // Render content. Support both old and new version of the page code.
614
- $header_render = dslc_render_content( $header_code );
615
-
616
- // Add the header code to the variable holder.
617
- return $dslc_header_before . $wrapper_start . '<div id="dslc-header" class="dslc-header-pos-' . $header_position . '">' . $header_render . $append . '</div>' . $dslc_header_after;
618
-
619
- } else {
620
- // If no header applied.
621
- return $dslc_header_before . $wrapper_start . '' . $dslc_header_after;
622
  }
623
- }
624
-
625
- /**
626
- * Get the footer output code
627
- *
628
- * @since 1.0.2
629
- *
630
- * @param int $post_ID ID of the post/page. Default false.
631
- * @return string The HTML ouput of the footer for a defined post/page
632
- */
633
- function dslc_hf_get_footer( $post_ID = false ) {
634
 
635
- // Var defaults
636
- $append = '';
637
- $wrapper_end = '';
638
-
639
- // Wrap if header handled by theme
640
  if ( defined( 'DS_LIVE_COMPOSER_HF_AUTO' ) && ! DS_LIVE_COMPOSER_HF_AUTO ) {
641
- $wrapper_end = '</div>';
642
  }
643
 
644
- // If the page displayed is header/footer, do not repeat
645
  if ( is_singular( 'dslc_hf' ) ) {
646
- return $wrapper_end;
647
  }
648
 
649
- // Get header/footer ID associated with the post
650
- $header_footer = dslc_hf_get_ID( $post_ID );
651
-
652
- // Before Footer.
653
- $footer_before = '';
654
- $dslc_footer_before = apply_filters( 'dslc_footer_before', $footer_before );
655
-
656
- // After Footer.
657
- $footer_after = '';
658
- $dslc_footer_after = apply_filters( 'dslc_footer_after', $footer_after );
659
-
660
- // If there is a footer applied
661
- if ( $header_footer['footer'] && is_numeric ( $header_footer['footer'] ) ) {
662
-
663
- // Get the footer LC code
664
- $footer_code = get_post_meta( $header_footer['footer'], 'dslc_code', true );
665
-
666
- // If the "position" option value exists
667
- if ( get_post_meta( $header_footer['footer'], 'dslc_hf_position', true ) ) {
668
-
669
- // Set the "position" option value to the one from the settings
670
- $footer_position = get_post_meta( $header_footer['footer'], 'dslc_hf_position', true );
671
-
672
- } else {
673
-
674
- // Set the "position" option value to default "relative"
675
- $footer_position = 'relative';
676
-
677
- }
678
-
679
- // If editor active? Add a link to the footer editing.
680
- if ( dslc_is_editor_active( 'access' ) ) {
681
-
682
- $footer_link = DSLC_EditorInterface::get_editor_link_url( $header_footer['footer'] );
683
-
684
- // Set the HTML for the edit overlay.
685
- $append = '<div class="dslc-hf-block-overlay"><a target="_blank" href="' . $footer_link . '" class="dslc-hf-block-overlay-button dslca-link">' . __( 'Edit Footer','live-composer-page-builder' ) . '</a>';
686
 
687
- if ( 'fixed' === $footer_position ) {
688
- $append .= ' <span class="dslc-hf-block-overlay-text">' . __( 'To preview FIXED positioning click on "Hide Editor" button.','live-composer-page-builder' ) . '</span>';
689
- } elseif ( 'absolute' === $footer_position ) {
690
- $append .= ' <span class="dslc-hf-block-overlay-text">' . __( 'To preview ABSOLUTE positioning click on "Hide Editor" button.','live-composer-page-builder' ) . '</span>';
691
- }
692
 
693
- $append .= '</div>';
694
 
 
 
695
  }
 
 
696
 
697
- // Render content. Support both old and new version of the page code.
698
- $footer_render = dslc_render_content( $footer_code );
699
-
700
- // Add the header code to the variable holder.
701
- return $dslc_footer_before . '<div id="dslc-footer" class="dslc-footer-pos-' . $footer_position . '">' . $footer_render . $append . '</div>' . $wrapper_end . $dslc_footer_after;
702
-
703
- // If no header applied
704
  } else {
705
 
706
- return $dslc_footer_before . '' . $wrapper_end . $dslc_footer_after;
 
 
 
707
 
708
- }
 
 
 
 
 
 
 
 
 
 
 
709
 
710
- }
 
 
 
 
 
 
 
 
 
 
 
27
  */
28
 
29
  function dslc_hf_init() {
30
+ // Takes 0.02 sec. during a page loading process.
31
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) {
32
  return;
33
  }
37
  register_post_type( 'dslc_hf', array(
38
  'menu_icon' => 'dashicons-image-flip-vertical',
39
  'labels' => array(
40
+ 'name' => __( 'Headers & Footers', 'live-composer-page-builder' ),
41
+ 'menu_name' => __( 'Headers/Footers', 'live-composer-page-builder' ),
42
+ 'singular_name' => __( 'Add Header/Footer', 'live-composer-page-builder' ),
43
+ 'add_new' => __( 'Add Header/Footer', 'live-composer-page-builder' ),
44
+ 'add_new_item' => __( 'Add Header/Footer', 'live-composer-page-builder' ),
45
+ 'edit' => __( 'Edit', 'live-composer-page-builder' ),
46
+ 'edit_item' => __( 'Edit Header/Footer', 'live-composer-page-builder' ),
47
+ 'new_item' => __( 'New Header/Footer', 'live-composer-page-builder' ),
48
+ 'view' => __( 'View Header/Footer', 'live-composer-page-builder' ),
49
+ 'view_item' => __( 'View Header/Footer', 'live-composer-page-builder' ),
50
+ 'search_items' => __( 'Search Header/Footer', 'live-composer-page-builder' ),
51
+ 'not_found' => __( 'No Header/Footer found', 'live-composer-page-builder' ),
52
  'not_found_in_trash' => __( 'No Header/Footer found in Trash', 'live-composer-page-builder' ),
53
+ 'parent' => __( 'Parent Header/Footer', 'live-composer-page-builder' ),
54
  ),
55
  'public' => true,
56
  'exclude_from_search' => true,
57
  'publicly_queryable' => true,
58
+ 'supports' => array( 'title', 'custom-fields', 'author', 'thumbnail' ),
59
  'capabilities' => array(
60
  'publish_posts' => $capability,
61
  'edit_posts' => $capability,
65
  'read_private_posts' => $capability,
66
  'edit_post' => $capability,
67
  'delete_post' => $capability,
68
+ 'read_post' => $capability,
69
  ),
70
+ 'show_in_menu' => 'themes.php',
71
  ) );
72
 
73
  /**
88
  'choices' => array(
89
  array(
90
  'label' => 'Header',
91
+ 'value' => 'header',
92
  ),
93
  array(
94
  'label' => 'Footer',
95
+ 'value' => 'footer',
96
  ),
97
+ ),
98
  ),
99
  array(
100
  'label' => __( 'Type', 'live-composer-page-builder' ),
105
  'choices' => array(
106
  array(
107
  'label' => 'Regular',
108
+ 'value' => 'regular',
109
  ),
110
  array(
111
  'label' => 'Default',
112
+ 'value' => 'default',
113
  ),
114
+ ),
115
  ),
116
  array(
117
  'label' => __( 'Position', 'live-composer-page-builder' ),
122
  'choices' => array(
123
  array(
124
  'label' => 'Relative',
125
+ 'value' => 'relative',
126
  ),
127
  array(
128
  'label' => 'Fixed',
129
+ 'value' => 'fixed',
130
  ),
131
  array(
132
  'label' => 'Absolute',
133
+ 'value' => 'absolute',
134
  ),
135
+ ),
136
  ),
137
+ ),
138
  );
139
 
140
  } add_action( 'init', 'dslc_hf_init' );
165
  * @since 1.0
166
  */
167
 
168
+ function dslc_hf_col_content( $column_name, $post_id ) {
169
 
170
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) {
171
  return;
172
  }
173
 
174
+ if ( 'dslc_hf_col_cpt' === $column_name ) {
175
+ echo get_post_meta( $post_id, 'dslc_hf_for', true );
176
  }
177
 
178
+ if ( 'dslc_hf_col_default' === $column_name ) {
179
+ if ( 'default' === get_post_meta( $post_id, 'dslc_hf_type', true ) ) {
180
  echo '<strong>Default</strong>';
181
  }
182
  }
195
  return;
196
  }
197
 
198
+ // If no post type ( not really a save action ) stop execution.
199
  if ( ! isset( $_POST['post_type'] ) ) {
200
  return;
201
  }
202
 
203
+ // If not a header/footer stop execution.
204
+ if ( 'dslc_hf' !== $_POST['post_type'] ) {
205
  return;
206
  }
207
 
211
  }
212
 
213
  // If template not default stop execution
214
+ if ( 'default' !== $_REQUEST['dslc_hf_type'] ) {
215
  return;
216
  }
217
 
242
  }
243
  }
244
 
245
+ // Reset query.
246
  wp_reset_query();
247
 
248
  } add_action( 'save_post', 'dslc_hf_unique_default' );
254
  */
255
 
256
  function dslc_hf_options() {
257
+ // Takes 0.02 sec during a page loading.
258
  $dslc_admin_interface_on = apply_filters( 'dslc_admin_interface_on', true );
259
 
260
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF || true !== $dslc_admin_interface_on ) {
 
261
  return;
262
  }
263
 
295
 
296
  foreach ( $templates as $template ) {
297
  $template_for = get_post_meta( $template->ID, 'dslc_hf_for', true );
298
+ if ( 'header' === $template_for ) {
299
  $headers_array[] = array(
300
  'label' => $template->post_title,
301
+ 'value' => $template->ID,
302
  );
303
+ } elseif ( 'footer' === $template_for ) {
304
  $footers_array[] = array(
305
  'label' => $template->post_title,
306
+ 'value' => $template->ID,
307
  );
308
  }
309
  }
310
 
311
  $dslc_var_post_options['dslc-hf-options'] = array(
312
  'title' => __( 'Header/Footer', 'live-composer-page-builder' ),
313
+ 'show_on' => array( 'page', 'dslc_templates' ),
314
  'context' => 'side',
315
  'options' => array(
316
  array(
318
  'std' => '',
319
  'id' => 'dslc_header',
320
  'type' => 'select',
321
+ 'choices' => $headers_array,
322
  ),
323
  array(
324
  'label' => __( 'Footer', 'live-composer-page-builder' ),
325
  'std' => '',
326
  'id' => 'dslc_footer',
327
  'type' => 'select',
328
+ 'choices' => $footers_array,
329
  ),
330
+ ),
331
  );
332
+ } // End if().
 
333
 
334
  } add_action( 'init', 'dslc_hf_options' );
335
 
338
  *
339
  * @since 1.0
340
  *
341
+ * @param int $post_id ID of the post/page. Default false ( Automatically finds ID ).
342
  * @return array The IDs of the header and footer associated with the post/page. False if none.
343
  */
344
+ function dslc_hf_get_ID( $post_id = false ) {
345
+ // Called 4 times. 0.166 sec. No profit from caching achieved.
346
+
347
+ // If theme does not define header/footer compatibility return false.
348
+ // If current page is actually header/footer post, return false.
349
+ if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF || is_singular( 'dslc_hf' ) ) {
350
+ return array(
351
+ 'header' => false,
352
+ 'footer' => false,
353
+ );
354
  }
355
 
356
+ // Global vars.
357
  global $dslc_post_types;
358
 
359
  // If post ID not supplied, figure it out
360
+ if ( ! $post_id ) {
 
 
361
  if ( is_singular( $dslc_post_types ) ) {
362
+ // If currently showing a singular post of a post type
363
+ // that supports "post templates".
364
+ $post_id = dslc_st_get_template_id( get_the_ID() );
365
  } elseif ( is_archive() && ! is_author() && ! is_search() ) {
366
+ // If currently showing a category archive page.
367
+ $post_id = dslc_get_option( get_post_type(), 'dslc_plugin_options_archives' );
 
368
  } elseif ( is_author() ) {
369
+ // If currently showing an author archive page.
370
+ $post_id = dslc_get_option( 'author', 'dslc_plugin_options_archives' );
 
371
  } elseif ( is_search() ) {
372
+ // If currently showing a search results page.
373
+ $post_id = dslc_get_option( 'search_results', 'dslc_plugin_options_archives' );
 
374
  } elseif ( is_404() ) {
375
+ // If currently showing 404 page.
376
+ $post_id = dslc_get_option( '404_page', 'dslc_plugin_options_archives' );
 
377
  } else {
378
+ // Otherwise just get the ID.
379
+ $post_id = get_the_ID();
380
  }
 
381
  }
382
 
383
+ if ( $post_id ) {
384
  // Get header/footer template
385
+ $header_tpl = get_post_meta( $post_id, 'dslc_header', true );
386
+ $footer_tpl = get_post_meta( $post_id, 'dslc_footer', true );
387
  } else {
388
  $header_tpl = false;
389
  $footer_tpl = false;
400
  }
401
 
402
  // Default header template supplied, find it and return the ID
403
+ if ( 'default' === $header_tpl ) {
404
 
405
  // Query for default template
406
  $args = array(
419
  'compare' => '=',
420
  ),
421
  ),
422
+ 'order' => 'DESC',
423
  );
424
  $tpls = get_posts( $args );
425
 
426
  // If default template found set the ID if not make it false
427
  if ( $tpls ) {
428
+ $header_tpl_id = $tpls[0]->ID;
429
  } else {
430
+ $header_tpl_id = false;
431
  }
432
+ } elseif ( $header_tpl && '_disabled_' !== $header_tpl ) {
433
+ // Specific template supplied, return the ID.
434
+ $header_tpl_id = $header_tpl;
435
 
436
+ } elseif ( $header_tpl && '_disabled_' === $header_tpl ) {
 
 
 
437
 
438
+ $header_tpl_id = false;
439
 
440
+ } // End if().
 
 
441
 
442
+ // Default footer template supplied, find it and return the ID.
443
+ if ( 'default' === $footer_tpl ) {
444
 
445
+ // Query for default template.
446
  $args = array(
447
  'post_type' => 'dslc_hf',
448
  'post_status' => 'publish',
459
  'compare' => '=',
460
  ),
461
  ),
462
+ 'order' => 'DESC',
463
  );
464
  $tpls = get_posts( $args );
465
 
466
+ // If default template found set the ID if not make it false.
467
  if ( $tpls ) {
468
+ $footer_tpl_id = $tpls[0]->ID;
469
  } else {
470
+ $footer_tpl_id = false;
471
  }
472
+ } elseif ( $footer_tpl && '_disabled_' !== $footer_tpl ) {
473
+ // Specific template supplied, return the ID.
474
+ $footer_tpl_id = $footer_tpl;
475
 
476
+ } elseif ( $footer_tpl && '_disabled_' === $footer_tpl ) {
 
 
 
477
 
478
+ $footer_tpl_id = false;
479
+ } // End if().
480
 
 
481
 
482
+ $result = array(
483
+ 'header' => $header_tpl_id,
484
+ 'footer' => $footer_tpl_id,
485
+ );
486
 
487
+ // Return the template ID.
488
+ return $result;
489
  }
490
 
491
  /**
493
  *
494
  * @since 1.0.2
495
  *
496
+ * @param int $post_id ID of the post/page. Default false.
497
  * @param string $h_or_f Accepted values 'header' and 'footer'. Defaults to 'header'
498
  * @return string The LC code for the header/footer of the post/page. Empty string if no LC code.
499
  */
500
+ function dslc_hf_get_code( $post_id = false, $h_or_f = 'header' ) {
501
 
502
  // If support for header/footer functionality not set or is set to false, return empty string
503
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) {
508
  $code = '';
509
 
510
  // If post ID not supplied ask WordPress
511
+ if ( ! $post_id ) {
512
+ $post_id = get_the_ID();
513
  }
514
 
515
  // If still no ID return empty string
516
+ if ( ! $post_id ) {
517
  return '';
518
  }
519
 
520
  // Get ID of the header/footer powering the post
521
+ $header_footer = dslc_hf_get_ID( $post_id );
522
 
523
  // If post has header/footer attached
524
+ if ( $header_footer[ $h_or_f ] ) {
525
  // Get LC code of the header/footer powering the post
526
+ $code = get_post_meta( $header_footer[ $h_or_f ], 'dslc_code', true );
527
  }
528
 
529
  // Pass it back
530
  return $code;
 
531
  }
532
 
 
 
 
 
 
 
 
 
 
533
 
534
+ function dslc_hf_get_headerfooter( $post_id = false, $hf_type = 'header' ) {
 
 
535
 
536
+ // Compilation time 3.375 sec. before caching / 0.03 sec after caching.
 
 
 
537
 
538
+ // Get header/footer ID associated with the post.
539
+ $header_footer = dslc_hf_get_ID( $post_id );
540
+ $hf_id = false;
 
541
 
542
+ // Var defaults.
543
+ $append = '';
544
+ $wrapper_start = '';
545
 
546
+ if ( $header_footer[ $hf_type ] && is_numeric( $header_footer[ $hf_type ] ) ) {
547
+ $hf_id = $header_footer[ $hf_type ];
548
+ }
549
 
550
+ $position = get_post_meta( $hf_id, 'dslc_hf_position', true );
 
 
551
 
552
+ // If the "position" option value exists
553
+ if ( ! $position ) {
554
+ // Set the "position" option value to default "relative"
555
+ $position = 'relative';
556
+ }
557
 
558
+ // Code to insert before.
559
+ $code_before = apply_filters( 'dslc_' . $hf_type . '_before', '' );
560
 
561
+ // Code to insert after.
562
+ $code_after = apply_filters( 'dslc_' . $hf_type . '_after', '' );
563
 
564
+ // If editor active? Add a link to the header editing.
565
+ if ( dslc_is_editor_active( 'access' ) ) {
566
 
567
+ $header_link = DSLC_EditorInterface::get_editor_link_url( $hf_id );
568
 
569
+ // Set the HTML for the edit overlay.
570
+ $append = '<div class="dslc-hf-block-overlay"><a target="_blank" href="' . $header_link . '" class="dslc-hf-block-overlay-button dslca-link">' . __( 'Edit Header','live-composer-page-builder' ) . '</a>';
571
 
572
+ if ( 'fixed' === $position ) {
573
+ $append .= ' <span class="dslc-hf-block-overlay-text">' . __( 'To preview FIXED positioning click on "Hide Editor" button.','live-composer-page-builder' ) . '</span>';
574
+ } elseif ( 'absolute' === $position ) {
575
+ $append .= ' <span class="dslc-hf-block-overlay-text">' . __( 'To preview ABSOLUTE positioning click on "Hide Editor" button.','live-composer-page-builder' ) . '</span>';
576
  }
577
 
578
+ $append .= '</div>';
579
+ }
580
 
581
+ // Initiate simple html rendering cache.
582
+ $cache = new DSLC_Cache( 'html' );
583
+ $cache_id = $hf_id;
584
 
585
+ // Check if we have html for this code cached?
586
+ if ( ! dslc_is_editor_active() || dslc_is_editor_active() && 'dslc_hf' !== get_post_type( $post_id ) ) {
587
+ if ( $cache->enabled() && $cache->cached( $cache_id ) ) {
588
+ // Check if any dynamic content included before caching.
589
+ $cached_html = $cache->get_cache( $cache_id );
590
 
591
+ // Insert header/footer editing overlay code before the last </div>
592
+ $cached_html = substr_replace( $cached_html, $append, strrpos( $cached_html, '</div>' ), 0 );
 
 
 
593
 
594
+ // $cached_html .= $append;
595
+ return do_shortcode( $cached_html );
596
  }
 
 
 
 
 
 
 
 
 
 
597
  }
 
 
 
 
 
 
 
 
 
 
 
598
 
599
+ // Wrap if handled by theme.
 
 
 
 
600
  if ( defined( 'DS_LIVE_COMPOSER_HF_AUTO' ) && ! DS_LIVE_COMPOSER_HF_AUTO ) {
601
+ $wrapper_start = '<div id="dslc-content" class="dslc-content dslc-clearfix">';
602
  }
603
 
604
+ // If the page displayed is header/footer, do not repeat.
605
  if ( is_singular( 'dslc_hf' ) ) {
606
+ return $wrapper_start;
607
  }
608
 
609
+ // If there is a header/footer applied.
610
+ if ( $hf_id ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
611
 
612
+ // Render content. Support both old and new version of the page code.
613
+ $rendered_code = dslc_render_content( get_post_meta( $hf_id, 'dslc_code', true ) );
614
+ $rendered_code = $code_before . $wrapper_start . '<div id="dslc-' . $hf_type . '" class="dslc-' . $hf_type . '-pos-' . $position . '">' . $rendered_code . $append . '</div>' . $code_after;
 
 
615
 
616
+ $rendered_code = dslc_decode_shortcodes( $rendered_code );
617
 
618
+ if ( ! dslc_is_editor_active() ) { // && ! is_singular( 'dslc_hf' )
619
+ $cache->set_cache( $rendered_code, $cache_id );
620
  }
621
+ // Add the code to the variable holder.
622
+ return do_shortcode( $rendered_code );
623
 
 
 
 
 
 
 
 
624
  } else {
625
 
626
+ // If no header/footer applied.
627
+ return $code_before . $wrapper_start . '' . $code_after;
628
+ } // End if().
629
+ }
630
 
631
+ /**
632
+ * Get the header output code
633
+ *
634
+ * @since 1.0.2
635
+ *
636
+ * @param int $post_id ID of the post/page. Default false.
637
+ * @return string The HTML ouput of the header for a defined post/page
638
+ */
639
+ function dslc_hf_get_header( $post_id = false ) {
640
+ // Compilation time 3.375 sec. before caching / 0.03 sec after caching.
641
+ return dslc_hf_get_headerfooter( $post_id, 'header' );
642
+ }
643
 
644
+ /**
645
+ * Get the footer output code
646
+ *
647
+ * @since 1.0.2
648
+ *
649
+ * @param int $post_id ID of the post/page. Default false.
650
+ * @return string The HTML ouput of the footer for a defined post/page
651
+ */
652
+ function dslc_hf_get_footer( $post_id = false ) {
653
+ // Compilation time 1.16 sec. before caching / 0.04 sec after caching.
654
+ return dslc_hf_get_headerfooter( $post_id, 'footer' );
655
+ }
includes/module-controls.php CHANGED
@@ -68,6 +68,7 @@ class LC_Control {
68
  private $_section;
69
  private $_control_with_toggle;
70
  private $_tab_id;
 
71
 
72
 
73
  function __construct( $options_panel_obj ) {
@@ -85,6 +86,7 @@ class LC_Control {
85
  $this->_refresh_on_change = $this->get_refresh_on_change();
86
  $this->_control_with_toggle = $this->get_toggle_classes();
87
  $this->_tab_id = $this->get_tab_id();
 
88
  }
89
 
90
 
@@ -283,9 +285,7 @@ class LC_Control {
283
  <input type="text" class="dslca-module-edit-field dslca-module-edit-field-icon" name="<?php echo esc_attr( $module_control['id'] ); ?>" data-id="<?php echo esc_attr( $module_control['id'] ); ?>" value="<?php echo esc_attr( $this->_curr_value ); ?>" <?php echo $affect_on_change_append ?> />
284
  <span class="dslca-module-edit-field-icon-suggest"></span>
285
  </div>
286
- <span class="dslca-options-iconbutton dslca-open-modal-hook" data-modal=".dslc-list-icons-fontawesome"><span class="dslca-icon dslc-icon-th"></span></span>
287
- <span class="dslca-module-edit-field-icon-switch-set"><span class="dslca-icon dslc-icon-cog"></span> <span class="dslca-module-edit-field-icon-curr-set"><?php echo dslc_icons_current_set( $this->_curr_value ); ?></span></span>
288
-
289
 
290
  <?php elseif ( 'image' === $module_control['type'] ) : ?>
291
 
@@ -417,6 +417,13 @@ class LC_Control {
417
 
418
  </div><!-- .dslca-module-edit-option-text-shadow-wrapper -->
419
 
 
 
 
 
 
 
 
420
  <?php else : ?>
421
 
422
  <?php if ( has_action( 'dslc_custom_option_type_' . $module_control['type'] ) ) : ?>
@@ -492,6 +499,16 @@ class LC_Control {
492
  return $visibility;
493
  }
494
 
 
 
 
 
 
 
 
 
 
 
495
  private function get_refresh_on_change () {
496
 
497
  $module_control = $this->_module_control;
@@ -593,6 +610,8 @@ class LC_Control {
593
  'css_anim_delay',
594
  'css_anim_duration',
595
  'css_anim_easing',
 
 
596
  'content',
597
  'css_res_t',
598
  'css_res_p',
@@ -676,6 +695,12 @@ class LC_Control {
676
  <?php
677
  }
678
 
 
 
 
 
 
 
679
  // private function get_ ( $module_control ) {
680
 
681
  // }
68
  private $_section;
69
  private $_control_with_toggle;
70
  private $_tab_id;
71
+ private $_advanced_action;
72
 
73
 
74
  function __construct( $options_panel_obj ) {
86
  $this->_refresh_on_change = $this->get_refresh_on_change();
87
  $this->_control_with_toggle = $this->get_toggle_classes();
88
  $this->_tab_id = $this->get_tab_id();
89
+ $this->_advanced_action = $this->get_advanced_action();
90
  }
91
 
92
 
285
  <input type="text" class="dslca-module-edit-field dslca-module-edit-field-icon" name="<?php echo esc_attr( $module_control['id'] ); ?>" data-id="<?php echo esc_attr( $module_control['id'] ); ?>" value="<?php echo esc_attr( $this->_curr_value ); ?>" <?php echo $affect_on_change_append ?> />
286
  <span class="dslca-module-edit-field-icon-suggest"></span>
287
  </div>
288
+ <span class="dslca-options-iconbutton dslca-open-modal-hook" data-modal=".dslc-list-icons"><span class="dslca-icon dslc-icon-th"></span></span>
 
 
289
 
290
  <?php elseif ( 'image' === $module_control['type'] ) : ?>
291
 
417
 
418
  </div><!-- .dslca-module-edit-option-text-shadow-wrapper -->
419
 
420
+ <?php elseif ( 'button' === $module_control['type'] ) : ?>
421
+
422
+ <?php
423
+ $this->output_button_control( $module_control, $this->_curr_value, $this->get_advanced_action() );
424
+
425
+ ?>
426
+
427
  <?php else : ?>
428
 
429
  <?php if ( has_action( 'dslc_custom_option_type_' . $module_control['type'] ) ) : ?>
499
  return $visibility;
500
  }
501
 
502
+ private function get_advanced_action() {
503
+ $module_control = $this->_module_control;
504
+ $action = '';
505
+
506
+ if ( isset( $module_control['advanced_action'] ) ) {
507
+ $action = $module_control['advanced_action'];
508
+ }
509
+ return $action;
510
+ }
511
+
512
  private function get_refresh_on_change () {
513
 
514
  $module_control = $this->_module_control;
610
  'css_anim_delay',
611
  'css_anim_duration',
612
  'css_anim_easing',
613
+ 'css_toggle_dropdown',
614
+ 'css_toggle_menu',
615
  'content',
616
  'css_res_t',
617
  'css_res_p',
695
  <?php
696
  }
697
 
698
+ private function output_button_control ( $module_control, $curr_value = '', $action = '' ) {
699
+ ?>
700
+ <span class="dslca-module-edit-field-button-hook" <?php echo 'onclick="' . esc_attr( $action ) . '"'; ?>><span class="dslca-icon dslc-icon-ok"></span> <?php echo esc_attr( $module_control['label_alt'] ) ?></span>
701
+ <?php
702
+ }
703
+
704
  // private function get_ ( $module_control ) {
705
 
706
  // }
includes/other-functions.php CHANGED
@@ -322,6 +322,23 @@ function dslc_get_social_count( $post_ID = false, $refresh_in = 3600 ) {
322
 
323
  }
324
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
325
  /**
326
  * Returns the ID of the currently used set based on icon
327
  *
@@ -332,30 +349,27 @@ function dslc_get_social_count( $post_ID = false, $refresh_in = 3600 ) {
332
  */
333
  function dslc_icons_current_set( $icon = false ) {
334
 
 
 
 
335
  // If no icon set return to the default "fontawesome"
336
  // If empty icon return default
337
  // If there is no "-" in icon, there is no set, return default
338
- if ( $icon == false || strlen( $icon ) == 0 || strpos( $icon, '-' ) === false ) {
339
- return 'fontawesome';
340
  }
341
 
342
- // Get array with available icons
343
- global $dslc_var_icons;
344
-
345
- // Get the first part of the icon ( representing the set )
346
  $icon_parts = explode( '-', $icon );
347
  $icon_set = $icon_parts[0];
348
 
349
-
350
-
351
- // If there is an icon set by that name return it
352
- if ( isset( $dslc_var_icons[$icon_set] ) ) {
353
  return $icon_set;
354
- // Otherwise return the default
355
  } else {
356
- return 'fontawesome';
 
357
  }
358
-
359
  }
360
 
361
  /**
@@ -368,10 +382,10 @@ function dslc_icons_current_set( $icon = false ) {
368
  */
369
  function dslc_get_attachment_alt( $attachment_ID ) {
370
 
371
- // Get ALT
372
  $thumb_alt = trim( strip_tags( get_post_meta( $attachment_ID, '_wp_attachment_image_alt', true ) ) );
373
 
374
- // No ALT supplied get attachment info
375
  if ( empty( $thumb_alt ) )
376
  $attachment = get_post( $attachment_ID );
377
 
322
 
323
  }
324
 
325
+ function dslc_get_default_icon_set() {
326
+ // Get array with available icons
327
+ global $dslc_var_icons;
328
+
329
+ $default_set = 'fontawesome';
330
+ $default_set = apply_filters( 'dslc_default_icon_set', $default_set );
331
+
332
+ if ( isset( $dslc_var_icons[ $default_set ] ) ) {
333
+ // Try to return the default icon set ("fontawesome").
334
+ return $default_set;
335
+ } else {
336
+ // If no default set found, return the first set in $dslc_var_icons.
337
+ reset( $dslc_var_icons );
338
+ return key( $dslc_var_icons );
339
+ }
340
+ }
341
+
342
  /**
343
  * Returns the ID of the currently used set based on icon
344
  *
349
  */
350
  function dslc_icons_current_set( $icon = false ) {
351
 
352
+ // Get array with available icons.
353
+ global $dslc_var_icons;
354
+
355
  // If no icon set return to the default "fontawesome"
356
  // If empty icon return default
357
  // If there is no "-" in icon, there is no set, return default
358
+ if ( false === $icon || 0 === strlen( $icon ) || false === strpos( $icon, '-' ) ) {
359
+ return dslc_get_default_icon_set();
360
  }
361
 
362
+ // Get the first part of the icon ( representing the set ).
 
 
 
363
  $icon_parts = explode( '-', $icon );
364
  $icon_set = $icon_parts[0];
365
 
366
+ if ( isset( $dslc_var_icons[ $icon_set ] ) ) {
367
+ // If there is an icon set by that name return it.
 
 
368
  return $icon_set;
 
369
  } else {
370
+ // Otherwise return the default.
371
+ return dslc_get_default_icon_set();
372
  }
 
373
  }
374
 
375
  /**
382
  */
383
  function dslc_get_attachment_alt( $attachment_ID ) {
384
 
385
+ // Get ALT.
386
  $thumb_alt = trim( strip_tags( get_post_meta( $attachment_ID, '_wp_attachment_image_alt', true ) ) );
387
 
388
+ // No ALT supplied get attachment info.
389
  if ( empty( $thumb_alt ) )
390
  $attachment = get_post( $attachment_ID );
391
 
includes/other.php CHANGED
@@ -53,6 +53,34 @@ function dslc_icons() {
53
 
54
  // Dear developers, make sure to have icon set name written without spaces
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  } add_action( 'init', 'dslc_icons' );
57
 
58
 
@@ -74,32 +102,36 @@ function dslc_icons_modal() {
74
  $dslc_var_icons; // Array with icon sets.
75
 
76
  $screen = get_current_screen();
 
 
 
 
77
 
78
- if ( $screen->id != 'toplevel_page_livecomposer_editor' ) {
79
-
80
  return;
81
  }
82
 
83
-
84
  if ( current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
85
 
86
  // output list of icons
87
- foreach ( $dslc_var_icons as $key => $value ) {
88
-
89
- echo '<div class="dslca-modal-icons dslca-modal dslc-list-icons-' . $key . '" style="display:none;">';
90
  echo '<ul class="dslc-icons-grid">';
 
 
 
 
 
 
 
 
 
 
 
91
 
92
- foreach ( $dslc_var_icons[$key] as $k => $v ) {
93
- $icon_name = $v;
94
- echo '<li class="icon-item">';
95
- echo '<span class="icon-item_icon dslc-icon-' . $icon_name . '"></span>';
96
- echo '<span class="icon-item_name">' . $icon_name . '</span>';
97
- echo '</li>';
98
  }
99
 
100
  echo '</ul>';
101
  echo '</div><div class="dslca-prompt-modal-custom"></div>';
102
- }
103
  }
104
  }
105
  add_action( 'admin_footer', 'dslc_icons_modal' );
53
 
54
  // Dear developers, make sure to have icon set name written without spaces
55
 
56
+ global $dslc_var_icon_fonts;
57
+
58
+ $dslc_var_icon_fonts = array(
59
+ 'fontawesome' => array(
60
+ 'font_path' => DS_LIVE_COMPOSER_URL . 'css/font-awesome.css', // File.
61
+ 'version' => DS_LIVE_COMPOSER_VER, // Version stamp to reset browser cache.
62
+ ),
63
+ );
64
+
65
+ $dslc_var_icon_fonts = apply_filters( 'dslc_icon_fonts', $dslc_var_icon_fonts );
66
+
67
+ /**
68
+ * Usage example from 3-rd party plugin:
69
+ *
70
+ * function sklc_linecons_alter_icons( $icons ) {
71
+ * $icons['linecons'] = array( "linecons-banknote", "linecons-bubble", ... );
72
+ * return $icons;
73
+ * } add_filter( 'dslc_available_icons', 'sklc_linecons_alter_icons' );
74
+ *
75
+ * function sklc_linecons_add_files( $icon_fonts ) {
76
+ * $icon_fonts['linecons'] = array(
77
+ * 'font_path' => plugin_dir_url( __FILE__ ) . 'css/font-linecons.css',
78
+ * ),
79
+ * return $icon_fonts;
80
+ * } add_filter( 'dslc_icon_fonts', 'sklc_linecons_add_files' );
81
+ */
82
+
83
+
84
  } add_action( 'init', 'dslc_icons' );
85
 
86
 
102
  $dslc_var_icons; // Array with icon sets.
103
 
104
  $screen = get_current_screen();
105
+ $screens_with_icon_modal = array(
106
+ 'toplevel_page_livecomposer_editor',
107
+ 'nav-menus',
108
+ );
109
 
110
+ if ( ! in_array( $screen->id, $screens_with_icon_modal, true ) ) {
 
111
  return;
112
  }
113
 
 
114
  if ( current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
115
 
116
  // output list of icons
117
+ echo '<div class="dslca-modal-icons dslca-modal dslc-list-icons" style="display:none;">';
 
 
118
  echo '<ul class="dslc-icons-grid">';
119
+ foreach ( $dslc_var_icons as $key => $value ) {
120
+
121
+ echo '<li class="set-heading">' . $key . '</li>';
122
+
123
+ foreach ( $dslc_var_icons[$key] as $k => $v ) {
124
+ $icon_name = $v;
125
+ echo '<li class="icon-item">';
126
+ echo '<span class="icon-item_icon dslc-icon-' . $icon_name . '"></span>';
127
+ echo '<span class="icon-item_name">' . $icon_name . '</span>';
128
+ echo '</li>';
129
+ }
130
 
 
 
 
 
 
 
131
  }
132
 
133
  echo '</ul>';
134
  echo '</div><div class="dslca-prompt-modal-custom"></div>';
 
135
  }
136
  }
137
  add_action( 'admin_footer', 'dslc_icons_modal' );
includes/plugin-options-framework/css/main.css CHANGED
@@ -1,3 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .dslc-settigns-notice {
2
  background: #fff none repeat scroll 0 0;
3
  border-left: 4px solid #fff;
@@ -2243,4 +2256,60 @@ margin-left: -90px;
2243
  #dslc-settings-frame {
2244
  margin-left: 300px;
2245
  margin-top: 23px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2246
  }
1
+ .dslc-clear-cache {
2
+ color: #D54E21;
3
+ margin-left: 12px;
4
+ vertical-align: middle;
5
+ }
6
+
7
+ .dslc-clear-cache .dashicons {
8
+ font-size: 16px;
9
+ width: 16px;
10
+ height: 16px;
11
+ margin-top: 7px;
12
+ }
13
+
14
  .dslc-settigns-notice {
15
  background: #fff none repeat scroll 0 0;
16
  border-left: 4px solid #fff;
2256
  #dslc-settings-frame {
2257
  margin-left: 300px;
2258
  margin-top: 23px;
2259
+ }
2260
+
2261
+
2262
+ /* Animated rotating dslc-icon */
2263
+ .dslc-icon-spin {
2264
+ display: inline-block;
2265
+ -moz-animation: spin 2s infinite linear;
2266
+ -o-animation: spin 2s infinite linear;
2267
+ -webkit-animation: spin 2s infinite linear;
2268
+ animation: spin 2s infinite linear;
2269
+ }
2270
+ /* Prevent stack and spinners from being taken inline when inside a link */
2271
+ a .dslc-icon-spin {
2272
+ display: inline-block;
2273
+ text-decoration: none;
2274
+ }
2275
+
2276
+ @-moz-keyframes spin {
2277
+ 0% {
2278
+ -moz-transform: rotate(0deg);
2279
+ }
2280
+ 100% {
2281
+ -moz-transform: rotate(359deg);
2282
+ }
2283
+ }
2284
+ @-webkit-keyframes spin {
2285
+ 0% {
2286
+ -webkit-transform: rotate(0deg);
2287
+ }
2288
+ 100% {
2289
+ -webkit-transform: rotate(359deg);
2290
+ }
2291
+ }
2292
+ @-o-keyframes spin {
2293
+ 0% {
2294
+ -o-transform: rotate(0deg);
2295
+ }
2296
+ 100% {
2297
+ -o-transform: rotate(359deg);
2298
+ }
2299
+ }
2300
+ @-ms-keyframes spin {
2301
+ 0% {
2302
+ -ms-transform: rotate(0deg);
2303
+ }
2304
+ 100% {
2305
+ -ms-transform: rotate(359deg);
2306
+ }
2307
+ }
2308
+ @keyframes spin {
2309
+ 0% {
2310
+ transform: rotate(0deg);
2311
+ }
2312
+ 100% {
2313
+ transform: rotate(359deg);
2314
+ }
2315
  }
includes/plugin-options-framework/css/main.min.css CHANGED
@@ -1 +1 @@
1
- .dslc-panel a,.dslc-subsection-title a{text-decoration:none}.dslc-settigns-notice{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:10px 12px;margin-top:16px}.dslc-settigns-notice-heading{margin-left:4px;margin-right:20px}.dslc-settigns-notice.red .dashicons,.dslc-settigns-notice.red .dslc-settigns-notice-heading{color:#d86c48}.dslc-settigns-notice .dashicons{vertical-align:text-bottom}#dslc-main-title{min-height:50px;padding-left:10px;padding-top:26px;width:50%}#dslc-main-title .dslc-ver{font-size:17px;font-weight:300;opacity:.4}.dslc-subsection-title{font-size:21px;font-weight:400;margin-bottom:40px;margin-top:30px}.dslc-tab-heading{margin-bottom:30px!important;margin-top:20px!important}.dslca-plugin-opts-notification{margin-top:20px;border-left:4px solid #5184bd;background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:15px 10px}.dslca-plugin-opts-list{width:300px;margin-bottom:10px}.dslca-plugin-opts-list-item{display:block;padding:7px 10px;border:1px solid rgba(0,0,0,.2);border-radius:3px;margin-bottom:5px;position:relative;font-weight:700}.dslca-plugin-opts-list-delete-hook{position:absolute;right:7px;top:6px;font-size:.9em;font-weight:400;font-style:italic}.dslca-plugin-opts-list-error{display:none;color:#db7171;margin-top:15px;font-weight:700}.lc-wrap{padding-left:10px;overflow:hidden}.lc-wrap .clear{clear:both;padding-bottom:40px;border-bottom:1px solid #ccc;margin-bottom:15px}.changelog,.lc-social,.lc-subscribe{width:45%;float:left;margin-right:50px}.lc-wrap h3{margin:1.25em 0 .6em;font-size:1.25em;line-height:1.5em}.lc-wrap h4{margin:1.4em 0 .6em;font-size:1em}.lc-wrap p{line-height:1.6em;font-size:14px}.activecampaign_form input[type=text]{border-color:#dcdddd;color:#000;border-width:1px;border-style:solid;border-radius:4px;font-size:14px;font-weight:300;margin:0 22px 10px 0;padding:8px 12px;width:97%;max-width:290px}.activecampaign_form button.button-primary{padding:3px 12px;height:auto}.activecampaign_form .add_thank_you:before{content:"\f147";display:inline-block;font-family:dashicons;font-size:22px;padding-right:3px;vertical-align:top;padding-top:1px;color:#54c13f}.activecampaign_form .add_thank_you{font-size:15px;display:block;position:relative;top:-130px}.activecampaign_form ._error{display:table;max-width:550px;padding:14px 18px;background:rgba(255,0,0,.09);border-radius:3px;margin-top:10px;border:1px solid #FCB6AC}#share-buttons span.dslc_social_text{margin-left:10px;font-size:15px}.dslc-panel{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:13px;line-height:2.1em;margin:16px 0;overflow:auto;padding:36px 3% 23px;position:relative}.dslc-panel h2{font-size:21px;font-weight:400;line-height:1.2;margin:0}.dslc-panel h3{font-size:16px;margin:1.33em 0 0}.dslc-panel h3 .dashicons{color:#82878c;font-size:170%;margin-right:12px}.dslc-panel .dslc-panel-column-container{clear:both;position:relative}.dslc-panel .dslc-panel-column-container:after{display:table;content:'';clear:both}.dslc-panel .dslc-panel-column{float:left;min-width:200px;width:30%;padding-right:4.5%}.dslc-panel .dslc-panel-column-container .dslc-panel-column:last-child{padding-right:0}.ie8 .dslc-panel .dslc-panel-column{min-width:230px}.dslc-panel-column p.hide-if-no-customize{margin-top:10px}.dslc-panel-column p{color:#444;margin-top:7px}.dslc-panel li{font-size:14px}.dslc-panel p{color:#72777c}.dslc-panel .about-description{font-size:16px;margin:0}.dslc-panel-content{margin-left:13px;max-width:1500px}.dslc-panel .dslc-panel-column ul{margin:.8em 1em 1em 0}.dslc-panel .dslc-panel-column li{line-height:16px;list-style-type:none;padding:0 0 8px}.dslc-panel .dslc-panel-icon{background:0 0!important}.dslc-panel .dslc-panel-icon:before,.dslc-panel li .dashicons{-moz-osx-font-smoothing:grayscale;color:#82878c;display:inline-block;font:20px/1 dashicons;padding:0 10px 0 0;position:relative;text-decoration:none!important;vertical-align:top;top:-2px}.dslc-panel .dslc-panel-twitter:before{content:"\f301"}.dslc-panel .dslc-panel-facebook:before{content:"\f304"}.dslc-panel .dslc-panel-facebook-page:before{content:"\f305"}.dslc-panel .dslc-panel-show-work:before{content:"\f529"}.dslc-panel-seo{background:url(../../../images/seo-tab-bg.png) right bottom no-repeat #2E97E0;box-shadow:none;border:0;padding:36px 5%;background-size:70%}.dslc-panel-seo.showing-notice{background:#2E97E0}.dslc-panel-seo.showing-notice .dslc-tab-seo-hide{display:none}.dslc-panel-seo .dslc-tab-seo-hide{color:#fff;font-size:11px;letter-spacing:3px;text-transform:uppercase;border:1px solid #fff;padding:2px 16px;float:right;border-radius:5px;font-weight:300;opacity:.5;margin-top:20px}.dslc-panel-seo .dslc-tab-seo-hide:hover{opacity:1;cursor:pointer;background:#b2ff2a;color:#2D400B;border:2px solid #b2ff2a}.dslc-panel-seo .dslc-panel-content{margin:30px 0 0 40px;max-width:500px;text-align:left}.dslc-panel-seo.showing-notice .dslc-panel-content{margin:20px 0 0 -10px;max-width:none;text-align:center}.dslc-panel-seo h2{color:#fff;font-size:36px;line-height:1;margin-bottom:25px;font-weight:300}.dslc-panel-seo .about-description{color:#32373c;font-size:18px}.dslc-panel-seo .dslc-notice{color:#fff;font-size:16px;letter-spacing:1px;line-height:1.55;margin-top:-25px}.dslc-panel-seo .dslc-notice a{color:#fff;text-decoration:underline}#dslc-seo-search{padding-top:20px}#dslc-seo-search label{font-size:17px;font-weight:300;color:#fff;margin-bottom:4px;display:inline-block}#dslc-seo-search input[type=text]{font-size:16px;height:46px;line-height:1;padding:10px 17px;width:60%;border:0;border-radius:5px;margin-bottom:20px}#dslc-seo-search button[type=submit]{font-size:16px;line-height:1;padding:20px 40px;border:0;border-radius:5px;margin-top:5px;margin-bottom:20px;letter-spacing:3px;text-transform:uppercase;background:#9FE02C;color:#2D400B}#dslc-seo-search button[type=submit]:hover{cursor:pointer;background:#b2ff2a}#new-lc-coming{background:#4AC496;border-color:#47a380 #35b484 #35b484;color:#fff;margin-top:-17px}#new-lc-coming h2{color:#fff;margin-top:16px;width:50%;margin-left:100px}#new-lc-coming h3{color:#2E3432}#new-lc-coming h3 .dashicons{color:#279168}#new-lc-coming p{color:#1F523F}#new-lc-coming hr{margin-top:30px;border-color:#3fb085 #4ac496 #6dcfaa}#new-lc-coming .button-hero{background:#2fab7c;border-color:#34a077;box-shadow:0 2px 0 #26805d;font-size:18px;height:auto;left:64%;padding:4px 26px;position:absolute;text-shadow:none;top:37px}#new-lc-coming .button-hero .dashicons{display:inline-block;font-size:150%;margin-right:14px;vertical-align:text-top}#new-lc-coming .button-hero:active{box-shadow:0 3px 0 #26805d inset}#new-lc-coming p.about-description{color:#a0e4ca;line-height:1.3;width:50%;margin-left:100px}#new-lc-coming .mink-illustration{position:absolute;top:28px;width:80px}#new-products-coming{border-color:#46b3e4 #237fbd #237fbd;color:#fff;margin-bottom:-17px;border-radius:4px 4px 0 0;border-top:none;padding-bottom:40px;position:relative;background:#2E97E0}#new-products-coming .label,#new-products-coming .price{border-radius:5px;letter-spacing:1px;font-size:11px;line-height:1;display:inline-block;text-transform:uppercase}#new-products-coming:before{position:absolute;background:url(../../../images/livecomposer-pattern.png) right -139px no-repeat;background-size:113%;opacity:.15;content:'';left:0;top:0;right:0;bottom:0}.dslc-panel-content{z-index:1;position:relative}#new-products-coming .label{color:rgba(255,255,255,.62);padding:7px 0;margin-top:20px}#new-products-coming .price{padding:7px 11px}#new-products-coming .price.original{padding-left:0;margin-right:10px}#new-products-coming .price.promo{background:#9fe02c;color:#2f4606}#new-products-coming h2{font-size:27px;color:#fff;text-align:left;width:34%;margin:24px 0 0;display:inline-block;line-height:1;vertical-align:top}#new-products-coming h3{color:#fff;margin-top:0;margin-bottom:7px;font-size:21px;line-height:1.2}#new-products-coming h4{color:#fff;margin-top:0;margin-bottom:20px;font-weight:400;font-size:16px;line-height:1.3;opacity:.7}#new-products-coming h3 .dashicons{color:rgba(236,236,236,.57)}#new-products-coming p{color:rgba(0,0,0,.65);margin:0 0 20px;min-height:50px}#new-products-coming hr{margin-top:20px;border-color:rgba(0,0,0,.16) transparent rgba(255,255,255,.2);opacity:.3}#new-products-coming .button-hero{background:#9FE02C;border-color:#a8ea32;box-shadow:0 2px 0 #2c8ac5;font-size:18px;line-height:20px;height:auto;color:#2d400b;padding:16px 26px 16px 56px;vertical-align:top;margin:10px 0 0;position:relative;text-shadow:none;display:inline-block;max-width:30%;white-space:normal}#new-products-coming .button-hero .dashicons{font-size:150%;left:18px;vertical-align:text-top;position:absolute;top:50%;margin-top:-14px}#new-products-coming .button-hero:active{box-shadow:0 3px 0 #26805d inset}#new-products-coming p.about-description{color:rgba(2,2,2,.6);line-height:1.3;width:28%;margin:20px 6% 0 0;display:inline-block;vertical-align:top}#new-products-coming .mink-illustration{position:absolute;bottom:-1px;width:100px}.extension-browser .extensions{clear:both}.extensions-php .wrap h1{float:left;margin-bottom:15px}.network-admin.extensions-php .wrap h1{margin-bottom:0}.extensions-php .wrap h1 .button{margin-left:20px}.extensions-php .wp-filter-search{font-size:16px;font-weight:300;left:20px;line-height:1.5;margin:0;position:relative;top:-2px;width:280px}.extensions-php div.error,.extensions-php div.notice,.extensions-php div.updated{clear:both;margin:0 0 20px}.extension-browser .extension{border:1px solid #ddd;box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-sizing:border-box;cursor:pointer;float:left;margin:0 4% 4% 0;position:relative;width:30.6%}.ie8 .extension-browser .extension{margin:0 3% 4% 0;width:30%}.extension-browser .extension:nth-child(3n){margin-right:0}.extension-browser .extension:focus,.extension-browser .extension:hover{cursor:default}.extension-browser .extension .extension-name{background:rgba(255,255,255,.65);box-shadow:0 1px 0 rgba(0,0,0,.1) inset;font-size:15px;font-weight:600;height:18px;margin:0;overflow:hidden;padding:15px;text-overflow:ellipsis;white-space:nowrap}.extension-browser .extension .extension-name em{font-size:75%;font-style:normal;font-weight:400;margin-right:3px;opacity:.5;text-transform:uppercase;vertical-align:top}.extension-browser .extension .extension-name .price{color:#0073aa;display:inline-block;position:absolute;right:20px}.extension-browser .extension .extension-name .price .dashicons{opacity:.9}.extension-browser .extension .extension-actions{background:rgba(244,244,244,.7);border-left:1px solid rgba(0,0,0,.05);bottom:0;height:38px;opacity:0;padding:9px 10px 0;position:absolute;right:0;transition:opacity .1s ease-in-out 0s}.extension-browser .extension.focus .extension-actions,.extension-browser .extension:focus .extension-actions,.extension-browser .extension:hover .extension-actions{opacity:1}.extension-browser .extension .extension-actions .button-primary{margin-right:3px}.extension-browser .extension .extension-actions .button-secondary{float:none;margin-left:3px}.extension-browser .extension .extension-screenshot{display:block;overflow:hidden;position:relative;transition:opacity .2s ease-in-out 0s}.extension-browser .extension .extension-screenshot::after{content:"";display:block;padding-top:65.6667%}.extension-browser .extension .extension-screenshot img{height:auto;left:0;position:absolute;top:0;transition:opacity .2s ease-in-out 0s;width:100%}.extension-browser .extension:focus .extension-screenshot,.extension-browser .extension:hover .extension-screenshot{background:#fff}.extension-browser.rendered .extension:focus .extension-screenshot img,.extension-browser.rendered .extension:hover .extension-screenshot img{opacity:.4}.extension-browser .extension .more-details{background:rgba(0,0,0,.7);border-radius:3px;color:#fff;font-size:15px;font-weight:600;left:25%;opacity:0;padding:15px 12px;position:absolute;right:25%;text-align:center;text-decoration:none;text-shadow:0 1px 0 rgba(0,0,0,.6);top:35%;transition:opacity .1s ease-in-out 0s}.extension-browser .extension:focus .more-details,.extension-browser.rendered .extension:focus .more-details,.extension-browser.rendered .extension:hover .more-details{opacity:1}.extension-browser .extension:focus{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.extension-browser .extension.active:focus .extension-actions{display:block}.extension-browser .extension .extension-installed,.extension-browser .extension .extension-update{background:rgba(213,78,33,.95);border-bottom:1px solid rgba(0,0,0,.25);color:#fff;display:block;font-size:13px;font-weight:400;height:48px;left:0;line-height:48px;overflow:hidden;padding:0 10px;position:absolute;right:0;top:0}.extension-browser .extension .extension-installed::before,.extension-browser .extension .extension-update::before{content:"";display:inline-block;font:20px/1 dashicons;margin:0 6px 0 0;opacity:.8;position:relative;top:5px}.extension-browser .extension.active .extension-name{background:#23282d;box-shadow:0 1px 1px rgba(0,0,0,.5) inset;color:#fff;font-weight:300;padding-right:110px}.extension-browser .customize-control .extension.active .extension-name{padding-right:15px}.extension-browser .extension.active .extension-name span{font-weight:600}.extension-browser .extension.active .extension-actions{background:rgba(49,49,49,.7);border-left:medium none;opacity:1}.extension-browser .extension.active .extension-actions .button-primary{margin-right:0}.extension-browser .extension .extension-author{background:#23282d;bottom:56px;color:#eee;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute}.extension-browser .extension.display-author .extension-author{display:block}.extension-browser .extension.display-author .extension-author a{color:inherit;text-decoration:none}.extension-browser .extension.add-new-extension{border:none;box-shadow:none}.extension-browser .extension.add-new-extension a{display:block;position:relative;text-decoration:none;z-index:1}.extension-browser .extension.add-new-extension a::after{background:rgba(0,0,0,0);border:5px dashed rgba(0,0,0,.1);bottom:0;box-sizing:border-box;content:"";display:block;left:0;padding:0;position:absolute;right:0;text-shadow:none;top:0}.extension-browser .extension.add-new-extension span::after{background:rgba(153,153,153,.1);border-radius:50%;color:#999;content:"\f106";display:inline-block;font:74px/115px dashicons;height:100px;left:50%;margin-left:-50px;padding:0;position:absolute;text-align:center;text-indent:-4px;text-shadow:none;top:30%;vertical-align:middle;width:100px;z-index:4}.extension-browser .extension.add-new-extension.add-new-theme span::after{content:"\f100"}.rtl .extension-browser .extension.add-new-extension span::after{text-indent:4px}.extension-browser .extension.add-new-extension a:focus .extension-screenshot,.extension-browser .extension.add-new-extension a:hover .extension-screenshot{background:rgba(0,0,0,0)}.extension-browser .extension.add-new-extension a:focus span::after,.extension-browser .extension.add-new-extension a:hover span::after{background:#fff;color:#0073aa}.extension-browser .extension.add-new-extension a:focus::after,.extension-browser .extension.add-new-extension a:hover::after{background:#0073aa;border-color:transparent;color:#fff;content:""}.extension-browser .extension.add-new-extension .extension-name{background:rgba(0,0,0,0);box-shadow:none;font-weight:400;margin-top:-18px;padding-bottom:48px;padding-top:0;position:relative;text-align:center;top:0}.extension-browser .extension.add-new-extension a:focus .extension-name,.extension-browser .extension.add-new-extension a:hover .extension-name{color:#fff;z-index:2}.extension-overlay .extension-backdrop{background:rgba(238,238,238,.9);bottom:0;left:-20px;position:absolute;right:0;top:0;z-index:10000}.extension-overlay .extension-header .close,.extension-overlay .extension-header .left,.extension-overlay .extension-header .right{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background-color:transparent;cursor:pointer;height:48px;text-align:center;transition:color .1s ease-in-out 0s,background .1s ease-in-out 0s;border-image:none}.extension-overlay .extension-header{border-bottom:1px solid #ddd;height:48px;left:0;position:absolute;right:0;top:0}.extension-overlay .extension-header button{padding:0}.extension-overlay .extension-header .close{border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color #ddd;border-style:none none none solid;border-width:0 0 0 1px;float:right;width:50px}.extension-overlay .extension-header .close::before{color:#72777c;content:"";display:inline-block;font:22px/50px dashicons!important}.extension-overlay .extension-header .left,.extension-overlay .extension-header .right{border-color:-moz-use-text-color #ddd -moz-use-text-color -moz-use-text-color;border-style:none solid none none;border-width:0 1px 0 0;color:#72777c;float:left;width:54px}.extension-overlay .extension-header .close:focus,.extension-overlay .extension-header .close:hover,.extension-overlay .extension-header .left:focus,.extension-overlay .extension-header .left:hover,.extension-overlay .extension-header .right:focus,.extension-overlay .extension-header .right:hover{background:#ddd;border-color:#ccc;color:#000}.extension-overlay .extension-header .close:focus::before,.extension-overlay .extension-header .close:hover::before{color:#000}.extension-overlay .extension-header .close:focus,.extension-overlay .extension-header .left:focus,.extension-overlay .extension-header .right:focus{box-shadow:none;outline:0}.extension-overlay .extension-header .left.disabled,.extension-overlay .extension-header .left.disabled:hover,.extension-overlay .extension-header .right.disabled,.extension-overlay .extension-header .right.disabled:hover{background:inherit;color:#ccc;cursor:inherit}.extension-overlay .extension-header .left::before,.extension-overlay .extension-header .right::before{display:inline;font:20px/50px dashicons!important}.customize-support .extension-overlay .extension-actions a[href="extensions.php?page=custom-header"],.customize-support .extension-overlay .extension-actions a[href="extensions.php?page=custom-background"],.extension-overlay .extension-actions .active-extension,.extension-overlay.active .extension-actions .inactive-extension{display:none}.extension-overlay .extension-header .left::before{content:""}.extension-overlay .extension-header .right::before{content:""}.extension-overlay .extension-wrap{background:#fff;bottom:3%;box-shadow:0 1px 20px 5px rgba(0,0,0,.1);box-sizing:border-box;clear:both;left:190px;position:fixed;right:30px;top:9%;z-index:10000}body.folded .extension-overlay .extension-wrap{left:70px}.extension-overlay .extension-about{bottom:57px;left:0;overflow:auto;padding:2% 4%;position:absolute;right:0;top:49px}.extension-overlay .extension-actions{background:#f3f3f3;border-top:1px solid #eee;bottom:0;box-sizing:border-box;left:0;padding:10px 25px 5px;position:absolute;right:0;text-align:center;z-index:30}.ie8 .extension-overlay .extension-actions{border:1px solid #eee}.extension-overlay .extension-actions a{margin-bottom:5px;margin-right:5px}.broken-extensions a.delete-extension,.extension-overlay .extension-actions .delete-extension{background:0 0;border-color:transparent;box-shadow:none;color:#a00;text-decoration:none}.extension-overlay .extension-actions .delete-extension{bottom:5px;position:absolute;right:10px}.broken-extensions a.delete-extension:focus,.broken-extensions a.delete-extension:hover,.extension-overlay .extension-actions .delete-extension:focus,.extension-overlay .extension-actions .delete-extension:hover{background:#d54e21;border-color:#d54e21;color:#fff}.extension-overlay .extension-actions .inactive-extension,.extension-overlay.active .extension-actions .active-extension{display:block}.extension-overlay .extension-screenshots{float:left;margin:0 30px 0 0;max-width:880px;text-align:center;width:55%}.extension-overlay .screenshot{border:1px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;overflow:hidden;position:relative}.extension-overlay .screenshot::after{content:"";display:block;padding-top:75%}.extension-overlay .screenshot img{height:auto;left:0;position:absolute;top:0;width:100%}.extension-overlay.small-screenshot .extension-screenshots{position:absolute;width:302px}.extension-overlay.small-screenshot .extension-info{margin-left:350px;width:auto}.extension-overlay .screenshot.thumb{background:#ccc;border:1px solid #eee;cursor:pointer;display:inline-block;float:none;height:80px;margin:10px 5px 0;width:140px}.extension-overlay .screenshot.thumb::after{content:"";display:block;padding-top:100%}.extension-overlay .screenshot.thumb img{cursor:pointer;height:auto;left:0;position:absolute;top:0;width:100%}.extension-overlay .screenshot.selected{background:0 0;border:2px solid #00a0d2}.extension-overlay .screenshot.selected img{opacity:.8}.extension-browser .extension .extension-screenshot.blank,.extension-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.extension-overlay .extension-info{float:left;width:40%}.extension-overlay .current-label{-moz-user-select:none;background:#32373c;border-radius:2px;color:#fff;display:inline-block;font-size:11px;margin:0 0 -10px;padding:2px 8px}.extension-overlay .extension-name{color:#23282d;font-size:32px;font-weight:100;line-height:1.3;margin:10px 0 0}.extension-overlay .extension-version{color:#72777c;display:inline-block;float:none;font-size:13px;font-weight:400;margin-left:10px}.extension-overlay .extension-author{color:#72777c;font-size:16px;font-weight:400;line-height:inherit;margin:15px 0 25px}.extension-overlay .extension-author a{text-decoration:none}.extension-overlay .extension-description{color:#555;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.extension-overlay .extension-tags{border-top:3px solid #eee;color:#82878c;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.extension-overlay .extension-tags span{color:#444;font-weight:700;margin-right:5px}.extension-overlay .parent-extension{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:#f7fcfe;border-color:#eee #eee #eee #00a0d2;border-image:none;border-style:solid;border-width:1px 1px 1px 4px;font-size:14px;font-weight:400;margin-top:30px;padding:10px 10px 10px 20px}.extension-overlay .parent-extension strong{font-weight:700}.single-extension .extension,.single-extension .extension-overlay .extension-backdrop,.single-extension .extension-overlay .extension-header{display:none}.single-extension .extension-overlay .extension-wrap{bottom:auto;clear:both;left:auto;min-height:330px;position:relative;right:auto;top:auto;z-index:10}.single-extension .extension-overlay .extension-about{padding:30px 30px 70px;position:static}.single-extension .extension-overlay .extension-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .extension-browser .extension{margin:0 3% 3% 0;width:17.6%}#wpwrap .extension-browser .extension:nth-child(3n),#wpwrap .extension-browser .extension:nth-child(4n){margin-right:3%}#wpwrap .extension-browser .extension:nth-child(5n){margin-right:0}}@media only screen and (min-width:1680px){.extension-overlay .extension-wrap{margin:0 auto;width:1450px}}@media only screen and (min-width:1640px){.extension-browser .extension{margin:0 3% 3% 0;width:22.7%}.extension-browser .extension .extension-screenshot::after{padding-top:75%}.extension-browser .extension:nth-child(3n){margin-right:3%}.extension-browser .extension:nth-child(4n){margin-right:0}}@media only screen and (max-width:1120px){.extension-browser .extension{margin-right:0;width:47.5%}.extension-browser .extension:nth-child(2n){margin-right:0}.extension-browser .extension:nth-child(2n+1){margin-right:5%}}@media only screen and (max-width:900px){.extension-overlay .extension-wrap{left:65px}}@media only screen and (max-width:780px){.extension-browser .extension.active .extension-name span,.extension:focus .more-details,.extension:focus:not(.active) .extension-actions,.extension:hover .more-details,.extension:hover:not(.active) .extension-actions{display:none}.extension-overlay .extension-wrap,body.folded .extension-overlay .extension-wrap{border:none;bottom:0;left:0;padding:70px 20px 20px;position:fixed;right:0;top:0;z-index:100000}.extension-overlay .extension-screenshots{width:40%}.extension-overlay .extension-info{width:50%}.single-extension .extension-wrap{padding:10px}.extension-browser .extension .extension-actions{padding:5px 10px 4px}.extension-overlay.small-screenshot .extension-screenshots{float:none;max-width:302px;position:static}.extension-overlay.small-screenshot .extension-info{margin-left:0;width:auto}.extension-browser.rendered .extension:focus .extension-screenshot img,.extension-browser.rendered .extension:hover .extension-screenshot img{opacity:1}}@media only screen and (max-width:480px){.extension-browser .extension{margin-right:0;width:100%}.extension-browser .extension:nth-child(2n),.extension-browser .extension:nth-child(3n){margin-right:0}}@media only screen and (max-width:650px){.extension-overlay .extension-description,.extension-overlay .extension-update{margin-left:0}.extension-overlay .extension-actions .delete-extension{bottom:auto;position:relative;right:auto}.extension-overlay .extension-actions .inactive-extension{display:inline}.extension-overlay .extension-screenshots{float:none;width:100%}.extension-overlay .extension-info{width:100%}.extension-overlay .extension-author{margin:5px 0 15px}.extension-overlay .current-label{font-size:13px;margin-top:10px}.extensions-php .wp-filter-search{clear:both;float:none;left:0;margin:10px 0;max-width:280px;right:0;top:0;width:100%}.extension-browser .extension.add-new-extension span::after{font:60px/90px dashicons;height:80px;left:50%;margin-left:-40px;text-indent:0;top:30%;width:80px}.single-extension .extension-wrap{margin:0 -12px 0 -10px;padding:10px}.single-extension .extension-overlay .extension-about{overflow:visible;padding:10px}.single-extension .current-label{display:none}.single-extension .extension-overlay .extension-actions{position:static}}.broken-extensions{clear:both}.broken-extensions table{border-spacing:3px;padding:3px;text-align:left;width:50%}.extension-browser .extension .extension-installed{background:#0073aa}.extension-browser .extension .extension-installed::before{content:""}.extension-browser .extension.is-installed .extension-actions .button-primary{display:none!important}.extension-install-php .wp-filter{padding:0 20px}.extension-install-php a.browse-extensions,.extension-install-php a.upload{cursor:pointer}.extension-install-php a.browse-extensions,.extension-install-php.show-upload-extension a.upload{display:none}.extension-install-php.show-upload-extension a.browse-extensions{display:inline}.upload-extension,.upload-plugin{box-sizing:border-box;display:none;margin:0;overflow:hidden;padding:0;position:relative;top:10px;width:100%}.wp-full-overlay,.wp-full-overlay-sidebar{position:fixed;height:100%;bottom:0;left:0}.upload-plugin,body.show-upload-extension .upload-extension{display:block}.upload-extension .wp-upload-form,.upload-plugin .wp-upload-form{background:#fafafa;border:1px solid #e5e5e5;margin:30px auto;max-width:380px;padding:30px}.upload-extension .install-help,.upload-plugin .install-help{color:#555d66;font-size:18px;font-style:normal;margin:0;padding:40px 0 0;text-align:center}body.show-upload-extension .upload-extension+.wp-filter,body.show-upload-extension .upload-extension+.wp-filter+.extension-browser{display:none}p.no-extensions{clear:both;color:#666;display:none;font-size:18px;font-style:normal;margin:0;padding:100px 0;text-align:center}body.no-results p.no-extensions{display:block}.extension-install-php .add-new-extension,body.show-upload-extension p.no-extensions{display:none!important}@media only screen and (max-width:1120px){.upload-extension .wp-upload-form{margin:20px 0;max-width:100%}.upload-extension .install-help{font-size:15px;padding:20px 0 0;text-align:left}}.extension-details .extension-rating{line-height:23px}.extension-details .star-rating{display:inline}.extension-details .no-rating,.extension-details .num-ratings{color:#72777c;font-size:11px}.extension-details .no-rating{display:block;line-height:20px}.appearance_page_custom-header #headimg{border:1px solid #ddd;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:left;margin:0 20px 20px 0}.appearance_page_custom-header .random-header{clear:both;margin:0 20px 20px 0;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-right:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{border:1px solid #ddd;min-height:100px}div#custom-background-image img{max-height:300px;max-width:400px}body.full-overlay-active{overflow:hidden}.wp-full-overlay{min-width:0;overflow:visible;right:0;top:0;z-index:500000}.wp-full-overlay-sidebar{background:#eee;border-right:medium none;box-sizing:border-box;margin:0;padding:0;top:0;width:300px;z-index:10}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-left:0!important}.wp-full-overlay.expanded{margin-left:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible;margin-left:-300px}.wp-full-overlay-sidebar::after{bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:3px;z-index:1000}.wp-full-overlay-main{bottom:0;height:100%;left:0;position:absolute;right:0;top:0}.wp-full-overlay-sidebar .wp-full-overlay-header{border-top:medium none;box-shadow:none;height:45px;left:0;line-height:45px;margin:0;padding:0 15px;position:absolute;right:0;z-index:10}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{border-bottom:medium none;border-top:medium none;bottom:0;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:45px;left:0;overflow:auto;position:absolute;right:0;top:45px}.extension-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.extension-install-overlay .close-full-overlay,.extension-install-overlay .next-extension,.extension-install-overlay .previous-extension{background:#eee;border-right:1px solid #ddd;color:#444;cursor:pointer;display:block;float:left;height:45px;padding-right:2px;position:relative;text-decoration:none;transition:color .1s ease-in-out 0s,background .1s ease-in-out 0s;width:45px}.extension-install-overlay .close-full-overlay:focus,.extension-install-overlay .close-full-overlay:hover,.extension-install-overlay .next-extension:focus,.extension-install-overlay .next-extension:hover,.extension-install-overlay .previous-extension:focus,.extension-install-overlay .previous-extension:hover{background:#ddd;border-color:#ccc;box-shadow:none;color:#000;outline:0}.extension-install-overlay .close-full-overlay::before{content:"";font:22px/1 dashicons;left:13px;position:relative;top:7px}.extension-install-overlay .previous-extension::before{content:"";font:20px/1 dashicons;left:14px;position:relative;top:6px}.extension-install-overlay .next-extension::before{content:"";font:20px/1 dashicons;left:13px;position:relative;top:6px}.extension-install-overlay .next-extension.disabled,.extension-install-overlay .next-extension.disabled:focus,.extension-install-overlay .next-extension.disabled:hover,.extension-install-overlay .previous-extension.disabled,.extension-install-overlay .previous-extension.disabled:focus,.extension-install-overlay .previous-extension.disabled:hover{background:#eee;color:#b4b9be;cursor:default;pointer-events:none}.wp-core-ui .wp-full-overlay .collapse-sidebar{background-color:transparent!important;border:none!important;border-radius:0!important;bottom:8px;box-shadow:none!important;color:#656a6f;left:10px;line-height:1;outline:0;padding:0;position:fixed}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#0073aa}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;line-height:20px;vertical-align:middle}.wp-full-overlay .collapse-sidebar-arrow{border-radius:50%;height:20px;margin:0 2px;overflow:hidden;width:20px}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-full-overlay .collapse-sidebar-label{margin-left:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow::before{-moz-osx-font-smoothing:grayscale;background:#eee;content:"";display:block;font:20px/1 dashicons;padding:0}.rtl .wp-full-overlay .collapse-sidebar-arrow::before,.wp-full-overlay.collapsed .collapse-sidebar-arrow::before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow::before{transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-duration:.2s;transition-property:left,right,top,bottom,width,margin}.wp-full-overlay{background:#191e23}.wp-full-overlay-main{background-color:#f1f1f1}.expanded .wp-full-overlay-footer{border-top:1px solid #ddd;bottom:0;height:45px;left:0;position:fixed;width:300px}.wp-full-overlay-footer .devices{float:right}.wp-full-overlay-footer .devices button{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:0 0;border-color:transparent -moz-use-text-color;border-image:none;border-style:solid none;border-width:1px medium 4px;box-shadow:none;cursor:pointer;height:45px;margin:0 0 0 -4px;padding:0 3px;transition:background .1s ease-in-out 0s}.wp-full-overlay-footer .devices button::before{color:#656a6f;display:inline-block;font:20px/30px dashicons;margin:3px 0;padding:4px 8px;vertical-align:top}.collapsed .wp-full-overlay-footer .devices button::before,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}.wp-full-overlay-footer .devices button.active{border-bottom-color:#191e23}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0;border-bottom-color:#0073aa}.wp-full-overlay-footer .devices button.active::before,.wp-full-overlay-footer .devices button:focus::before,.wp-full-overlay-footer .devices button:hover::before{color:#191e23}.wp-full-overlay-footer .devices .preview-desktop::before{content:""}.wp-full-overlay-footer .devices .preview-tablet::before{content:""}.wp-full-overlay-footer .devices .preview-mobile::before{content:""}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.preview-mobile .wp-full-overlay-main{height:480px;left:50%;margin:auto 0 auto -160px;max-height:100%;max-width:100%;width:320px}.preview-tablet .wp-full-overlay-main{height:1080px;left:50%;margin:auto 0 auto -360px;max-height:100%;max-width:100%;width:720px}#customize-container{background:#fff;bottom:0;display:none;height:100%;left:0;overflow:visible;position:fixed;right:0;top:0;z-index:500000}.customize-active #customize-container{display:block}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.extension-install-overlay iframe{height:100%;transition:opacity .3s ease 0s;width:100%;z-index:20}#customize-controls{margin-top:0}.extension-install-overlay{display:none}.extension-install-overlay.single-extension{display:block}.install-extension-info{display:none;padding:10px 20px 60px}.single-extension .install-extension-info{padding-top:15px}.extension-install-overlay .install-extension-info{display:block}.install-extension-info .extension-install{float:right;margin-top:18px}.install-extension-info .extension-name{font-size:16px;line-height:24px;margin-bottom:0;margin-top:0}.install-extension-info .extension-screenshot{border:1px solid #ccc;margin:15px 0;width:258px}.install-extension-info .extension-details{overflow:hidden}.extension-details .extension-version{margin:15px 0}.extension-details .extension-description{color:#72777c;float:left;line-height:20px;max-width:100%}.extension-install-overlay .wp-full-overlay-header .extension-install{float:right;line-height:26px;margin:8px 10px 0 0}.extension-install-overlay .wp-full-overlay-sidebar{background:#eee;border-right:1px solid #ddd}.extension-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.extension-install-overlay .wp-full-overlay-main{background-color:#f1f1f1;position:absolute;z-index:0}.customize-loading #customize-container{background-color:#f1f1f1}#customize-preview.wp-full-overlay-main::before,.customize-loading #customize-container::before,.extension-install-overlay .wp-full-overlay-main::before{background:url(../images/spinner.gif) center center/20px 20px no-repeat;content:"";display:block;height:20px;left:50%;margin:-10px 0 0 -10px;position:absolute;top:50%;transform:translateZ(0);width:20px;z-index:-1}#customize-preview.wp-full-overlay-main.iframe-ready::before,.extension-install-overlay.iframe-ready .wp-full-overlay-main::before{background-image:none}@media print,not all,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-preview.wp-full-overlay-main::before,.customize-loading #customize-container::before,.extension-install-overlay .wp-full-overlay-main::before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-extension .action-links .delete-extension{clear:both;float:none;margin:0;padding:0}.available-extension .action-links .delete-extension a{padding:0}.broken-extensions table{width:100%}.extension-install-overlay .wp-full-overlay-header .extension-install{line-height:normal;margin-top:6px}}.docs-search-form button .dashicons{opacity:.75;vertical-align:text-bottom}.docs-search-form .search-query{border-radius:3px;height:46px;padding:10px 17px}#dslc-docssearch{padding:30px 0 20px}#dslc-docssearch .search-query{min-width:64%}#dslc-headersearch{position:absolute;right:40px;top:30px}#dslc-headersearch .hssearch{padding:0 16px!important}.dslc-settigns-tabs .nav-tab .tag{background:#d54e21;border-radius:4px;color:#fff;display:inline-block;font-size:10px;letter-spacing:.5px;line-height:1;margin-left:5px;padding:4px 6px;text-transform:uppercase;opacity:.8}.dslc-scroll-back{margin-left:-90px;margin-top:44px;position:absolute;text-decoration:none;text-transform:uppercase}.dslc-scroll-back .dashicons{font-size:17px}#dslc-settings-column{clear:both;display:inline;float:left;margin-left:-300px;padding-top:0;width:281px}.dslc-settings-form .dslc-panel{padding:40px;margin-top:10px;max-width:640px}.dslc-settings-form .dslc-panel h2{margin-bottom:30px}.dslc-submenu-section{border-bottom:1px solid #ddd;margin:0}.dslc-submenu-section:hover{background:#f5f5f5;color:#23282d}.dslc-submenu-section a{-moz-user-select:none;border-left:1px solid #ddd;border-right:1px solid #ddd;margin:0;padding:12px 15px 15px;position:relative;font-size:14px;line-height:21px;font-weight:700;color:#23282D!important;text-decoration:none;display:block}.dslc-submenu-section .dashicons{margin-bottom:-1px;margin-right:6px;margin-top:1px;opacity:.4}#dslc-setings-liquid{float:left;margin-top:3px;min-width:100%}#dslc-settings-frame{margin-left:300px;margin-top:23px}
1
+ .dslc-panel a,.dslc-subsection-title a{text-decoration:none}.dslc-clear-cache{color:#D54E21;margin-left:12px;vertical-align:middle}.dslc-clear-cache .dashicons{font-size:16px;width:16px;height:16px;margin-top:7px}.dslc-settigns-notice{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:10px 12px;margin-top:16px}.dslc-settigns-notice-heading{margin-left:4px;margin-right:20px}.dslc-settigns-notice.red .dashicons,.dslc-settigns-notice.red .dslc-settigns-notice-heading{color:#d86c48}.dslc-settigns-notice .dashicons{vertical-align:text-bottom}#dslc-main-title{min-height:50px;padding-left:10px;padding-top:26px;width:50%}#dslc-main-title .dslc-ver{font-size:17px;font-weight:300;opacity:.4}.dslc-subsection-title{font-size:21px;font-weight:400;margin-bottom:40px;margin-top:30px}.dslc-tab-heading{margin-bottom:30px!important;margin-top:20px!important}.dslca-plugin-opts-notification{margin-top:20px;border-left:4px solid #5184bd;background:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:15px 10px}.dslca-plugin-opts-list{width:300px;margin-bottom:10px}.dslca-plugin-opts-list-item{display:block;padding:7px 10px;border:1px solid rgba(0,0,0,.2);border-radius:3px;margin-bottom:5px;position:relative;font-weight:700}.dslca-plugin-opts-list-delete-hook{position:absolute;right:7px;top:6px;font-size:.9em;font-weight:400;font-style:italic}.dslca-plugin-opts-list-error{display:none;color:#db7171;margin-top:15px;font-weight:700}.lc-wrap{padding-left:10px;overflow:hidden}.lc-wrap .clear{clear:both;padding-bottom:40px;border-bottom:1px solid #ccc;margin-bottom:15px}.changelog,.lc-social,.lc-subscribe{width:45%;float:left;margin-right:50px}.lc-wrap h3{margin:1.25em 0 .6em;font-size:1.25em;line-height:1.5em}.lc-wrap h4{margin:1.4em 0 .6em;font-size:1em}.lc-wrap p{line-height:1.6em;font-size:14px}.activecampaign_form input[type=text]{border-color:#dcdddd;color:#000;border-width:1px;border-style:solid;border-radius:4px;font-size:14px;font-weight:300;margin:0 22px 10px 0;padding:8px 12px;width:97%;max-width:290px}.activecampaign_form button.button-primary{padding:3px 12px;height:auto}.activecampaign_form .add_thank_you:before{content:"\f147";display:inline-block;font-family:dashicons;font-size:22px;padding-right:3px;vertical-align:top;padding-top:1px;color:#54c13f}.activecampaign_form .add_thank_you{font-size:15px;display:block;position:relative;top:-130px}.activecampaign_form ._error{display:table;max-width:550px;padding:14px 18px;background:rgba(255,0,0,.09);border-radius:3px;margin-top:10px;border:1px solid #FCB6AC}#share-buttons span.dslc_social_text{margin-left:10px;font-size:15px}.dslc-panel{background:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);font-size:13px;line-height:2.1em;margin:16px 0;overflow:auto;padding:36px 3% 23px;position:relative}.dslc-panel h2{font-size:21px;font-weight:400;line-height:1.2;margin:0}.dslc-panel h3{font-size:16px;margin:1.33em 0 0}.dslc-panel h3 .dashicons{color:#82878c;font-size:170%;margin-right:12px}.dslc-panel .dslc-panel-column-container{clear:both;position:relative}.dslc-panel .dslc-panel-column-container:after{display:table;content:'';clear:both}.dslc-panel .dslc-panel-column{float:left;min-width:200px;width:30%;padding-right:4.5%}.dslc-panel .dslc-panel-column-container .dslc-panel-column:last-child{padding-right:0}.ie8 .dslc-panel .dslc-panel-column{min-width:230px}.dslc-panel-column p.hide-if-no-customize{margin-top:10px}.dslc-panel-column p{color:#444;margin-top:7px}.dslc-panel li{font-size:14px}.dslc-panel p{color:#72777c}.dslc-panel .about-description{font-size:16px;margin:0}.dslc-panel-content{margin-left:13px;max-width:1500px}.dslc-panel .dslc-panel-column ul{margin:.8em 1em 1em 0}.dslc-panel .dslc-panel-column li{line-height:16px;list-style-type:none;padding:0 0 8px}.dslc-panel .dslc-panel-icon{background:0 0!important}.dslc-panel .dslc-panel-icon:before,.dslc-panel li .dashicons{-moz-osx-font-smoothing:grayscale;color:#82878c;display:inline-block;font:20px/1 dashicons;padding:0 10px 0 0;position:relative;text-decoration:none!important;vertical-align:top;top:-2px}.dslc-panel .dslc-panel-twitter:before{content:"\f301"}.dslc-panel .dslc-panel-facebook:before{content:"\f304"}.dslc-panel .dslc-panel-facebook-page:before{content:"\f305"}.dslc-panel .dslc-panel-show-work:before{content:"\f529"}.dslc-panel-seo{background:url(../../../images/seo-tab-bg.png) right bottom no-repeat #2E97E0;box-shadow:none;border:0;padding:36px 5%;background-size:70%}.dslc-panel-seo.showing-notice{background:#2E97E0}.dslc-panel-seo.showing-notice .dslc-tab-seo-hide{display:none}.dslc-panel-seo .dslc-tab-seo-hide{color:#fff;font-size:11px;letter-spacing:3px;text-transform:uppercase;border:1px solid #fff;padding:2px 16px;float:right;border-radius:5px;font-weight:300;opacity:.5;margin-top:20px}.dslc-panel-seo .dslc-tab-seo-hide:hover{opacity:1;cursor:pointer;background:#b2ff2a;color:#2D400B;border:2px solid #b2ff2a}.dslc-panel-seo .dslc-panel-content{margin:30px 0 0 40px;max-width:500px;text-align:left}.dslc-panel-seo.showing-notice .dslc-panel-content{margin:20px 0 0 -10px;max-width:none;text-align:center}.dslc-panel-seo h2{color:#fff;font-size:36px;line-height:1;margin-bottom:25px;font-weight:300}.dslc-panel-seo .about-description{color:#32373c;font-size:18px}.dslc-panel-seo .dslc-notice{color:#fff;font-size:16px;letter-spacing:1px;line-height:1.55;margin-top:-25px}.dslc-panel-seo .dslc-notice a{color:#fff;text-decoration:underline}#dslc-seo-search{padding-top:20px}#dslc-seo-search label{font-size:17px;font-weight:300;color:#fff;margin-bottom:4px;display:inline-block}#dslc-seo-search input[type=text]{font-size:16px;height:46px;line-height:1;padding:10px 17px;width:60%;border:0;border-radius:5px;margin-bottom:20px}#dslc-seo-search button[type=submit]{font-size:16px;line-height:1;padding:20px 40px;border:0;border-radius:5px;margin-top:5px;margin-bottom:20px;letter-spacing:3px;text-transform:uppercase;background:#9FE02C;color:#2D400B}#dslc-seo-search button[type=submit]:hover{cursor:pointer;background:#b2ff2a}#new-lc-coming{background:#4AC496;border-color:#47a380 #35b484 #35b484;color:#fff;margin-top:-17px}#new-lc-coming h2{color:#fff;margin-top:16px;width:50%;margin-left:100px}#new-lc-coming h3{color:#2E3432}#new-lc-coming h3 .dashicons{color:#279168}#new-lc-coming p{color:#1F523F}#new-lc-coming hr{margin-top:30px;border-color:#3fb085 #4ac496 #6dcfaa}#new-lc-coming .button-hero{background:#2fab7c;border-color:#34a077;box-shadow:0 2px 0 #26805d;font-size:18px;height:auto;left:64%;padding:4px 26px;position:absolute;text-shadow:none;top:37px}#new-lc-coming .button-hero .dashicons{display:inline-block;font-size:150%;margin-right:14px;vertical-align:text-top}#new-lc-coming .button-hero:active{box-shadow:0 3px 0 #26805d inset}#new-lc-coming p.about-description{color:#a0e4ca;line-height:1.3;width:50%;margin-left:100px}#new-lc-coming .mink-illustration{position:absolute;top:28px;width:80px}#new-products-coming{border-color:#46b3e4 #237fbd #237fbd;color:#fff;margin-bottom:-17px;border-radius:4px 4px 0 0;border-top:none;padding-bottom:40px;position:relative;background:#2E97E0}#new-products-coming .label,#new-products-coming .price{border-radius:5px;letter-spacing:1px;font-size:11px;line-height:1;display:inline-block;text-transform:uppercase}#new-products-coming:before{position:absolute;background:url(../../../images/livecomposer-pattern.png) right -139px no-repeat;background-size:113%;opacity:.15;content:'';left:0;top:0;right:0;bottom:0}.dslc-panel-content{z-index:1;position:relative}#new-products-coming .label{color:rgba(255,255,255,.62);padding:7px 0;margin-top:20px}#new-products-coming .price{padding:7px 11px}#new-products-coming .price.original{padding-left:0;margin-right:10px}#new-products-coming .price.promo{background:#9fe02c;color:#2f4606}#new-products-coming h2{font-size:27px;color:#fff;text-align:left;width:34%;margin:24px 0 0;display:inline-block;line-height:1;vertical-align:top}#new-products-coming h3{color:#fff;margin-top:0;margin-bottom:7px;font-size:21px;line-height:1.2}#new-products-coming h4{color:#fff;margin-top:0;margin-bottom:20px;font-weight:400;font-size:16px;line-height:1.3;opacity:.7}#new-products-coming h3 .dashicons{color:rgba(236,236,236,.57)}#new-products-coming p{color:rgba(0,0,0,.65);margin:0 0 20px;min-height:50px}#new-products-coming hr{margin-top:20px;border-color:rgba(0,0,0,.16) transparent rgba(255,255,255,.2);opacity:.3}#new-products-coming .button-hero{background:#9FE02C;border-color:#a8ea32;box-shadow:0 2px 0 #2c8ac5;font-size:18px;line-height:20px;height:auto;color:#2d400b;padding:16px 26px 16px 56px;vertical-align:top;margin:10px 0 0;position:relative;text-shadow:none;display:inline-block;max-width:30%;white-space:normal}#new-products-coming .button-hero .dashicons{font-size:150%;left:18px;vertical-align:text-top;position:absolute;top:50%;margin-top:-14px}#new-products-coming .button-hero:active{box-shadow:0 3px 0 #26805d inset}#new-products-coming p.about-description{color:rgba(2,2,2,.6);line-height:1.3;width:28%;margin:20px 6% 0 0;display:inline-block;vertical-align:top}#new-products-coming .mink-illustration{position:absolute;bottom:-1px;width:100px}.extension-browser .extensions{clear:both}.extensions-php .wrap h1{float:left;margin-bottom:15px}.network-admin.extensions-php .wrap h1{margin-bottom:0}.extensions-php .wrap h1 .button{margin-left:20px}.extensions-php .wp-filter-search{font-size:16px;font-weight:300;left:20px;line-height:1.5;margin:0;position:relative;top:-2px;width:280px}.extensions-php div.error,.extensions-php div.notice,.extensions-php div.updated{clear:both;margin:0 0 20px}.extension-browser .extension{border:1px solid #ddd;box-shadow:0 1px 1px -1px rgba(0,0,0,.1);box-sizing:border-box;cursor:pointer;float:left;margin:0 4% 4% 0;position:relative;width:30.6%}.ie8 .extension-browser .extension{margin:0 3% 4% 0;width:30%}.extension-browser .extension:nth-child(3n){margin-right:0}.extension-browser .extension:focus,.extension-browser .extension:hover{cursor:default}.extension-browser .extension .extension-name{background:rgba(255,255,255,.65);box-shadow:0 1px 0 rgba(0,0,0,.1) inset;font-size:15px;font-weight:600;height:18px;margin:0;overflow:hidden;padding:15px;text-overflow:ellipsis;white-space:nowrap}.extension-browser .extension .extension-name em{font-size:75%;font-style:normal;font-weight:400;margin-right:3px;opacity:.5;text-transform:uppercase;vertical-align:top}.extension-browser .extension .extension-name .price{color:#0073aa;display:inline-block;position:absolute;right:20px}.extension-browser .extension .extension-name .price .dashicons{opacity:.9}.extension-browser .extension .extension-actions{background:rgba(244,244,244,.7);border-left:1px solid rgba(0,0,0,.05);bottom:0;height:38px;opacity:0;padding:9px 10px 0;position:absolute;right:0;transition:opacity .1s ease-in-out 0s}.extension-browser .extension.focus .extension-actions,.extension-browser .extension:focus .extension-actions,.extension-browser .extension:hover .extension-actions{opacity:1}.extension-browser .extension .extension-actions .button-primary{margin-right:3px}.extension-browser .extension .extension-actions .button-secondary{float:none;margin-left:3px}.extension-browser .extension .extension-screenshot{display:block;overflow:hidden;position:relative;transition:opacity .2s ease-in-out 0s}.extension-browser .extension .extension-screenshot::after{content:"";display:block;padding-top:65.6667%}.extension-browser .extension .extension-screenshot img{height:auto;left:0;position:absolute;top:0;transition:opacity .2s ease-in-out 0s;width:100%}.extension-browser .extension:focus .extension-screenshot,.extension-browser .extension:hover .extension-screenshot{background:#fff}.extension-browser.rendered .extension:focus .extension-screenshot img,.extension-browser.rendered .extension:hover .extension-screenshot img{opacity:.4}.extension-browser .extension .more-details{background:rgba(0,0,0,.7);border-radius:3px;color:#fff;font-size:15px;font-weight:600;left:25%;opacity:0;padding:15px 12px;position:absolute;right:25%;text-align:center;text-decoration:none;text-shadow:0 1px 0 rgba(0,0,0,.6);top:35%;transition:opacity .1s ease-in-out 0s}.extension-browser .extension:focus .more-details,.extension-browser.rendered .extension:focus .more-details,.extension-browser.rendered .extension:hover .more-details{opacity:1}.extension-browser .extension:focus{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.extension-browser .extension.active:focus .extension-actions{display:block}.extension-browser .extension .extension-installed,.extension-browser .extension .extension-update{background:rgba(213,78,33,.95);border-bottom:1px solid rgba(0,0,0,.25);color:#fff;display:block;font-size:13px;font-weight:400;height:48px;left:0;line-height:48px;overflow:hidden;padding:0 10px;position:absolute;right:0;top:0}.extension-browser .extension .extension-installed::before,.extension-browser .extension .extension-update::before{content:"";display:inline-block;font:20px/1 dashicons;margin:0 6px 0 0;opacity:.8;position:relative;top:5px}.extension-browser .extension.active .extension-name{background:#23282d;box-shadow:0 1px 1px rgba(0,0,0,.5) inset;color:#fff;font-weight:300;padding-right:110px}.extension-browser .customize-control .extension.active .extension-name{padding-right:15px}.extension-browser .extension.active .extension-name span{font-weight:600}.extension-browser .extension.active .extension-actions{background:rgba(49,49,49,.7);border-left:medium none;opacity:1}.extension-browser .extension.active .extension-actions .button-primary{margin-right:0}.extension-browser .extension .extension-author{background:#23282d;bottom:56px;color:#eee;display:none;font-size:14px;margin:0 10px;padding:5px 10px;position:absolute}.extension-browser .extension.display-author .extension-author{display:block}.extension-browser .extension.display-author .extension-author a{color:inherit;text-decoration:none}.extension-browser .extension.add-new-extension{border:none;box-shadow:none}.extension-browser .extension.add-new-extension a{display:block;position:relative;text-decoration:none;z-index:1}.extension-browser .extension.add-new-extension a::after{background:rgba(0,0,0,0);border:5px dashed rgba(0,0,0,.1);bottom:0;box-sizing:border-box;content:"";display:block;left:0;padding:0;position:absolute;right:0;text-shadow:none;top:0}.extension-browser .extension.add-new-extension span::after{background:rgba(153,153,153,.1);border-radius:50%;color:#999;content:"\f106";display:inline-block;font:74px/115px dashicons;height:100px;left:50%;margin-left:-50px;padding:0;position:absolute;text-align:center;text-indent:-4px;text-shadow:none;top:30%;vertical-align:middle;width:100px;z-index:4}.extension-browser .extension.add-new-extension.add-new-theme span::after{content:"\f100"}.rtl .extension-browser .extension.add-new-extension span::after{text-indent:4px}.extension-browser .extension.add-new-extension a:focus .extension-screenshot,.extension-browser .extension.add-new-extension a:hover .extension-screenshot{background:rgba(0,0,0,0)}.extension-browser .extension.add-new-extension a:focus span::after,.extension-browser .extension.add-new-extension a:hover span::after{background:#fff;color:#0073aa}.extension-browser .extension.add-new-extension a:focus::after,.extension-browser .extension.add-new-extension a:hover::after{background:#0073aa;border-color:transparent;color:#fff;content:""}.extension-browser .extension.add-new-extension .extension-name{background:rgba(0,0,0,0);box-shadow:none;font-weight:400;margin-top:-18px;padding-bottom:48px;padding-top:0;position:relative;text-align:center;top:0}.extension-browser .extension.add-new-extension a:focus .extension-name,.extension-browser .extension.add-new-extension a:hover .extension-name{color:#fff;z-index:2}.extension-overlay .extension-backdrop{background:rgba(238,238,238,.9);bottom:0;left:-20px;position:absolute;right:0;top:0;z-index:10000}.extension-overlay .extension-header .close,.extension-overlay .extension-header .left,.extension-overlay .extension-header .right{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background-color:transparent;cursor:pointer;height:48px;text-align:center;transition:color .1s ease-in-out 0s,background .1s ease-in-out 0s;border-image:none}.extension-overlay .extension-header{border-bottom:1px solid #ddd;height:48px;left:0;position:absolute;right:0;top:0}.extension-overlay .extension-header button{padding:0}.extension-overlay .extension-header .close{border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color #ddd;border-style:none none none solid;border-width:0 0 0 1px;float:right;width:50px}.extension-overlay .extension-header .close::before{color:#72777c;content:"";display:inline-block;font:22px/50px dashicons!important}.extension-overlay .extension-header .left,.extension-overlay .extension-header .right{border-color:-moz-use-text-color #ddd -moz-use-text-color -moz-use-text-color;border-style:none solid none none;border-width:0 1px 0 0;color:#72777c;float:left;width:54px}.extension-overlay .extension-header .close:focus,.extension-overlay .extension-header .close:hover,.extension-overlay .extension-header .left:focus,.extension-overlay .extension-header .left:hover,.extension-overlay .extension-header .right:focus,.extension-overlay .extension-header .right:hover{background:#ddd;border-color:#ccc;color:#000}.extension-overlay .extension-header .close:focus::before,.extension-overlay .extension-header .close:hover::before{color:#000}.extension-overlay .extension-header .close:focus,.extension-overlay .extension-header .left:focus,.extension-overlay .extension-header .right:focus{box-shadow:none;outline:0}.extension-overlay .extension-header .left.disabled,.extension-overlay .extension-header .left.disabled:hover,.extension-overlay .extension-header .right.disabled,.extension-overlay .extension-header .right.disabled:hover{background:inherit;color:#ccc;cursor:inherit}.extension-overlay .extension-header .left::before,.extension-overlay .extension-header .right::before{display:inline;font:20px/50px dashicons!important}.customize-support .extension-overlay .extension-actions a[href="extensions.php?page=custom-header"],.customize-support .extension-overlay .extension-actions a[href="extensions.php?page=custom-background"],.extension-overlay .extension-actions .active-extension,.extension-overlay.active .extension-actions .inactive-extension{display:none}.extension-overlay .extension-header .left::before{content:""}.extension-overlay .extension-header .right::before{content:""}.extension-overlay .extension-wrap{background:#fff;bottom:3%;box-shadow:0 1px 20px 5px rgba(0,0,0,.1);box-sizing:border-box;clear:both;left:190px;position:fixed;right:30px;top:9%;z-index:10000}body.folded .extension-overlay .extension-wrap{left:70px}.extension-overlay .extension-about{bottom:57px;left:0;overflow:auto;padding:2% 4%;position:absolute;right:0;top:49px}.extension-overlay .extension-actions{background:#f3f3f3;border-top:1px solid #eee;bottom:0;box-sizing:border-box;left:0;padding:10px 25px 5px;position:absolute;right:0;text-align:center;z-index:30}.ie8 .extension-overlay .extension-actions{border:1px solid #eee}.extension-overlay .extension-actions a{margin-bottom:5px;margin-right:5px}.broken-extensions a.delete-extension,.extension-overlay .extension-actions .delete-extension{background:0 0;border-color:transparent;box-shadow:none;color:#a00;text-decoration:none}.extension-overlay .extension-actions .delete-extension{bottom:5px;position:absolute;right:10px}.broken-extensions a.delete-extension:focus,.broken-extensions a.delete-extension:hover,.extension-overlay .extension-actions .delete-extension:focus,.extension-overlay .extension-actions .delete-extension:hover{background:#d54e21;border-color:#d54e21;color:#fff}.extension-overlay .extension-actions .inactive-extension,.extension-overlay.active .extension-actions .active-extension{display:block}.extension-overlay .extension-screenshots{float:left;margin:0 30px 0 0;max-width:880px;text-align:center;width:55%}.extension-overlay .screenshot{border:1px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;overflow:hidden;position:relative}.extension-overlay .screenshot::after{content:"";display:block;padding-top:75%}.extension-overlay .screenshot img{height:auto;left:0;position:absolute;top:0;width:100%}.extension-overlay.small-screenshot .extension-screenshots{position:absolute;width:302px}.extension-overlay.small-screenshot .extension-info{margin-left:350px;width:auto}.extension-overlay .screenshot.thumb{background:#ccc;border:1px solid #eee;cursor:pointer;display:inline-block;float:none;height:80px;margin:10px 5px 0;width:140px}.extension-overlay .screenshot.thumb::after{content:"";display:block;padding-top:100%}.extension-overlay .screenshot.thumb img{cursor:pointer;height:auto;left:0;position:absolute;top:0;width:100%}.extension-overlay .screenshot.selected{background:0 0;border:2px solid #00a0d2}.extension-overlay .screenshot.selected img{opacity:.8}.extension-browser .extension .extension-screenshot.blank,.extension-overlay .screenshot.blank{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYGWO8d+/efwYkoKioiMRjYGBC4WHhUK6A8T8QIJt8//59ZC493AAAQssKpBK4F5AAAAAASUVORK5CYII=)}.extension-overlay .extension-info{float:left;width:40%}.extension-overlay .current-label{-moz-user-select:none;background:#32373c;border-radius:2px;color:#fff;display:inline-block;font-size:11px;margin:0 0 -10px;padding:2px 8px}.extension-overlay .extension-name{color:#23282d;font-size:32px;font-weight:100;line-height:1.3;margin:10px 0 0}.extension-overlay .extension-version{color:#72777c;display:inline-block;float:none;font-size:13px;font-weight:400;margin-left:10px}.extension-overlay .extension-author{color:#72777c;font-size:16px;font-weight:400;line-height:inherit;margin:15px 0 25px}.extension-overlay .extension-author a{text-decoration:none}.extension-overlay .extension-description{color:#555;font-size:15px;font-weight:400;line-height:1.5;margin:30px 0 0}.extension-overlay .extension-tags{border-top:3px solid #eee;color:#82878c;font-size:13px;font-weight:400;margin:30px 0 0;padding-top:20px}.extension-overlay .extension-tags span{color:#444;font-weight:700;margin-right:5px}.extension-overlay .parent-extension{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:#f7fcfe;border-color:#eee #eee #eee #00a0d2;border-image:none;border-style:solid;border-width:1px 1px 1px 4px;font-size:14px;font-weight:400;margin-top:30px;padding:10px 10px 10px 20px}.extension-overlay .parent-extension strong{font-weight:700}.single-extension .extension,.single-extension .extension-overlay .extension-backdrop,.single-extension .extension-overlay .extension-header{display:none}.single-extension .extension-overlay .extension-wrap{bottom:auto;clear:both;left:auto;min-height:330px;position:relative;right:auto;top:auto;z-index:10}.single-extension .extension-overlay .extension-about{padding:30px 30px 70px;position:static}.single-extension .extension-overlay .extension-actions{position:absolute}@media only screen and (min-width:2000px){#wpwrap .extension-browser .extension{margin:0 3% 3% 0;width:17.6%}#wpwrap .extension-browser .extension:nth-child(3n),#wpwrap .extension-browser .extension:nth-child(4n){margin-right:3%}#wpwrap .extension-browser .extension:nth-child(5n){margin-right:0}}@media only screen and (min-width:1680px){.extension-overlay .extension-wrap{margin:0 auto;width:1450px}}@media only screen and (min-width:1640px){.extension-browser .extension{margin:0 3% 3% 0;width:22.7%}.extension-browser .extension .extension-screenshot::after{padding-top:75%}.extension-browser .extension:nth-child(3n){margin-right:3%}.extension-browser .extension:nth-child(4n){margin-right:0}}@media only screen and (max-width:1120px){.extension-browser .extension{margin-right:0;width:47.5%}.extension-browser .extension:nth-child(2n){margin-right:0}.extension-browser .extension:nth-child(2n+1){margin-right:5%}}@media only screen and (max-width:900px){.extension-overlay .extension-wrap{left:65px}}@media only screen and (max-width:780px){.extension-browser .extension.active .extension-name span,.extension:focus .more-details,.extension:focus:not(.active) .extension-actions,.extension:hover .more-details,.extension:hover:not(.active) .extension-actions{display:none}.extension-overlay .extension-wrap,body.folded .extension-overlay .extension-wrap{border:none;bottom:0;left:0;padding:70px 20px 20px;position:fixed;right:0;top:0;z-index:100000}.extension-overlay .extension-screenshots{width:40%}.extension-overlay .extension-info{width:50%}.single-extension .extension-wrap{padding:10px}.extension-browser .extension .extension-actions{padding:5px 10px 4px}.extension-overlay.small-screenshot .extension-screenshots{float:none;max-width:302px;position:static}.extension-overlay.small-screenshot .extension-info{margin-left:0;width:auto}.extension-browser.rendered .extension:focus .extension-screenshot img,.extension-browser.rendered .extension:hover .extension-screenshot img{opacity:1}}@media only screen and (max-width:480px){.extension-browser .extension{margin-right:0;width:100%}.extension-browser .extension:nth-child(2n),.extension-browser .extension:nth-child(3n){margin-right:0}}@media only screen and (max-width:650px){.extension-overlay .extension-description,.extension-overlay .extension-update{margin-left:0}.extension-overlay .extension-actions .delete-extension{bottom:auto;position:relative;right:auto}.extension-overlay .extension-actions .inactive-extension{display:inline}.extension-overlay .extension-screenshots{float:none;width:100%}.extension-overlay .extension-info{width:100%}.extension-overlay .extension-author{margin:5px 0 15px}.extension-overlay .current-label{font-size:13px;margin-top:10px}.extensions-php .wp-filter-search{clear:both;float:none;left:0;margin:10px 0;max-width:280px;right:0;top:0;width:100%}.extension-browser .extension.add-new-extension span::after{font:60px/90px dashicons;height:80px;left:50%;margin-left:-40px;text-indent:0;top:30%;width:80px}.single-extension .extension-wrap{margin:0 -12px 0 -10px;padding:10px}.single-extension .extension-overlay .extension-about{overflow:visible;padding:10px}.single-extension .current-label{display:none}.single-extension .extension-overlay .extension-actions{position:static}}.broken-extensions{clear:both}.broken-extensions table{border-spacing:3px;padding:3px;text-align:left;width:50%}.extension-browser .extension .extension-installed{background:#0073aa}.extension-browser .extension .extension-installed::before{content:""}.extension-browser .extension.is-installed .extension-actions .button-primary{display:none!important}.extension-install-php .wp-filter{padding:0 20px}.extension-install-php a.browse-extensions,.extension-install-php a.upload{cursor:pointer}.extension-install-php a.browse-extensions,.extension-install-php.show-upload-extension a.upload{display:none}.extension-install-php.show-upload-extension a.browse-extensions{display:inline}.upload-extension,.upload-plugin{box-sizing:border-box;display:none;margin:0;overflow:hidden;padding:0;position:relative;top:10px;width:100%}.wp-full-overlay,.wp-full-overlay-sidebar{position:fixed;height:100%;bottom:0;left:0}.upload-plugin,body.show-upload-extension .upload-extension{display:block}.upload-extension .wp-upload-form,.upload-plugin .wp-upload-form{background:#fafafa;border:1px solid #e5e5e5;margin:30px auto;max-width:380px;padding:30px}.upload-extension .install-help,.upload-plugin .install-help{color:#555d66;font-size:18px;font-style:normal;margin:0;padding:40px 0 0;text-align:center}body.show-upload-extension .upload-extension+.wp-filter,body.show-upload-extension .upload-extension+.wp-filter+.extension-browser{display:none}p.no-extensions{clear:both;color:#666;display:none;font-size:18px;font-style:normal;margin:0;padding:100px 0;text-align:center}body.no-results p.no-extensions{display:block}.extension-install-php .add-new-extension,body.show-upload-extension p.no-extensions{display:none!important}@media only screen and (max-width:1120px){.upload-extension .wp-upload-form{margin:20px 0;max-width:100%}.upload-extension .install-help{font-size:15px;padding:20px 0 0;text-align:left}}.extension-details .extension-rating{line-height:23px}.extension-details .star-rating{display:inline}.extension-details .no-rating,.extension-details .num-ratings{color:#72777c;font-size:11px}.extension-details .no-rating{display:block;line-height:20px}.appearance_page_custom-header #headimg{border:1px solid #ddd;overflow:hidden;width:100%}.appearance_page_custom-header #upload-form p label{font-size:12px}.appearance_page_custom-header .available-headers .default-header{float:left;margin:0 20px 20px 0}.appearance_page_custom-header .random-header{clear:both;margin:0 20px 20px 0;vertical-align:middle}.appearance_page_custom-header .available-headers label input,.appearance_page_custom-header .random-header label input{margin-right:10px}.appearance_page_custom-header .available-headers label img{vertical-align:middle}div#custom-background-image{border:1px solid #ddd;min-height:100px}div#custom-background-image img{max-height:300px;max-width:400px}body.full-overlay-active{overflow:hidden}.wp-full-overlay{min-width:0;overflow:visible;right:0;top:0;z-index:500000}.wp-full-overlay-sidebar{background:#eee;border-right:medium none;box-sizing:border-box;margin:0;padding:0;top:0;width:300px;z-index:10}.wp-full-overlay.collapsed,.wp-full-overlay.expanded .wp-full-overlay-sidebar{margin-left:0!important}.wp-full-overlay.expanded{margin-left:300px}.wp-full-overlay.collapsed .wp-full-overlay-sidebar{overflow:visible;margin-left:-300px}.wp-full-overlay-sidebar::after{bottom:0;content:"";display:block;position:absolute;right:0;top:0;width:3px;z-index:1000}.wp-full-overlay-main{bottom:0;height:100%;left:0;position:absolute;right:0;top:0}.wp-full-overlay-sidebar .wp-full-overlay-header{border-top:medium none;box-shadow:none;height:45px;left:0;line-height:45px;margin:0;padding:0 15px;position:absolute;right:0;z-index:10}.wp-full-overlay-sidebar .wp-full-overlay-header a.back{margin-top:9px}.wp-full-overlay-sidebar .wp-full-overlay-footer{border-bottom:medium none;border-top:medium none;bottom:0;box-shadow:none}.wp-full-overlay-sidebar .wp-full-overlay-sidebar-content{bottom:45px;left:0;overflow:auto;position:absolute;right:0;top:45px}.extension-install-overlay .wp-full-overlay-sidebar .wp-full-overlay-header{padding:0}.extension-install-overlay .close-full-overlay,.extension-install-overlay .next-extension,.extension-install-overlay .previous-extension{background:#eee;border-right:1px solid #ddd;color:#444;cursor:pointer;display:block;float:left;height:45px;padding-right:2px;position:relative;text-decoration:none;transition:color .1s ease-in-out 0s,background .1s ease-in-out 0s;width:45px}.extension-install-overlay .close-full-overlay:focus,.extension-install-overlay .close-full-overlay:hover,.extension-install-overlay .next-extension:focus,.extension-install-overlay .next-extension:hover,.extension-install-overlay .previous-extension:focus,.extension-install-overlay .previous-extension:hover{background:#ddd;border-color:#ccc;box-shadow:none;color:#000;outline:0}.extension-install-overlay .close-full-overlay::before{content:"";font:22px/1 dashicons;left:13px;position:relative;top:7px}.extension-install-overlay .previous-extension::before{content:"";font:20px/1 dashicons;left:14px;position:relative;top:6px}.extension-install-overlay .next-extension::before{content:"";font:20px/1 dashicons;left:13px;position:relative;top:6px}.extension-install-overlay .next-extension.disabled,.extension-install-overlay .next-extension.disabled:focus,.extension-install-overlay .next-extension.disabled:hover,.extension-install-overlay .previous-extension.disabled,.extension-install-overlay .previous-extension.disabled:focus,.extension-install-overlay .previous-extension.disabled:hover{background:#eee;color:#b4b9be;cursor:default;pointer-events:none}.wp-core-ui .wp-full-overlay .collapse-sidebar{background-color:transparent!important;border:none!important;border-radius:0!important;bottom:8px;box-shadow:none!important;color:#656a6f;left:10px;line-height:1;outline:0;padding:0;position:fixed}.wp-core-ui .wp-full-overlay .collapse-sidebar:focus,.wp-core-ui .wp-full-overlay .collapse-sidebar:hover{color:#0073aa}.wp-full-overlay .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar-label{display:inline-block;line-height:20px;vertical-align:middle}.wp-full-overlay .collapse-sidebar-arrow{border-radius:50%;height:20px;margin:0 2px;overflow:hidden;width:20px}.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow,.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.wp-full-overlay .collapse-sidebar-label{margin-left:3px}.wp-full-overlay.collapsed .collapse-sidebar-label{display:none}.wp-full-overlay .collapse-sidebar-arrow::before{-moz-osx-font-smoothing:grayscale;background:#eee;content:"";display:block;font:20px/1 dashicons;padding:0}.rtl .wp-full-overlay .collapse-sidebar-arrow::before,.wp-full-overlay.collapsed .collapse-sidebar-arrow::before{transform:rotate(180.001deg)}.rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow::before{transform:none}.wp-full-overlay,.wp-full-overlay .collapse-sidebar,.wp-full-overlay-main,.wp-full-overlay-sidebar{transition-duration:.2s;transition-property:left,right,top,bottom,width,margin}.wp-full-overlay{background:#191e23}.wp-full-overlay-main{background-color:#f1f1f1}.expanded .wp-full-overlay-footer{border-top:1px solid #ddd;bottom:0;height:45px;left:0;position:fixed;width:300px}.wp-full-overlay-footer .devices{float:right}.wp-full-overlay-footer .devices button{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:0 0;border-color:transparent -moz-use-text-color;border-image:none;border-style:solid none;border-width:1px medium 4px;box-shadow:none;cursor:pointer;height:45px;margin:0 0 0 -4px;padding:0 3px;transition:background .1s ease-in-out 0s}.wp-full-overlay-footer .devices button::before{color:#656a6f;display:inline-block;font:20px/30px dashicons;margin:3px 0;padding:4px 8px;vertical-align:top}.collapsed .wp-full-overlay-footer .devices button::before,.customize-support .hide-if-customize,.customize-support .wp-core-ui .hide-if-customize,.customize-support.wp-core-ui .hide-if-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .wp-core-ui .hide-if-no-customize,.no-customize-support.wp-core-ui .hide-if-no-customize{display:none}.wp-full-overlay-footer .devices button.active{border-bottom-color:#191e23}.wp-full-overlay-footer .devices button:focus,.wp-full-overlay-footer .devices button:hover{background-color:#fff}.wp-full-overlay-footer .devices button:focus{box-shadow:none;outline:0;border-bottom-color:#0073aa}.wp-full-overlay-footer .devices button.active::before,.wp-full-overlay-footer .devices button:focus::before,.wp-full-overlay-footer .devices button:hover::before{color:#191e23}.wp-full-overlay-footer .devices .preview-desktop::before{content:""}.wp-full-overlay-footer .devices .preview-tablet::before{content:""}.wp-full-overlay-footer .devices .preview-mobile::before{content:""}@media screen and (max-width:1024px){.wp-full-overlay-footer .devices{display:none}}.preview-mobile .wp-full-overlay-main{height:480px;left:50%;margin:auto 0 auto -160px;max-height:100%;max-width:100%;width:320px}.preview-tablet .wp-full-overlay-main{height:1080px;left:50%;margin:auto 0 auto -360px;max-height:100%;max-width:100%;width:720px}#customize-container{background:#fff;bottom:0;display:none;height:100%;left:0;overflow:visible;position:fixed;right:0;top:0;z-index:500000}.customize-active #customize-container{display:block}.customize-loading #customize-container iframe{opacity:0}#customize-container iframe,.extension-install-overlay iframe{height:100%;transition:opacity .3s ease 0s;width:100%;z-index:20}#customize-controls{margin-top:0}.extension-install-overlay{display:none}.extension-install-overlay.single-extension{display:block}.install-extension-info{display:none;padding:10px 20px 60px}.single-extension .install-extension-info{padding-top:15px}.extension-install-overlay .install-extension-info{display:block}.install-extension-info .extension-install{float:right;margin-top:18px}.install-extension-info .extension-name{font-size:16px;line-height:24px;margin-bottom:0;margin-top:0}.install-extension-info .extension-screenshot{border:1px solid #ccc;margin:15px 0;width:258px}.install-extension-info .extension-details{overflow:hidden}.extension-details .extension-version{margin:15px 0}.extension-details .extension-description{color:#72777c;float:left;line-height:20px;max-width:100%}.extension-install-overlay .wp-full-overlay-header .extension-install{float:right;line-height:26px;margin:8px 10px 0 0}.extension-install-overlay .wp-full-overlay-sidebar{background:#eee;border-right:1px solid #ddd}.extension-install-overlay .wp-full-overlay-sidebar-content{background:#fff;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.extension-install-overlay .wp-full-overlay-main{background-color:#f1f1f1;position:absolute;z-index:0}.customize-loading #customize-container{background-color:#f1f1f1}#customize-preview.wp-full-overlay-main::before,.customize-loading #customize-container::before,.extension-install-overlay .wp-full-overlay-main::before{background:url(../images/spinner.gif) center center/20px 20px no-repeat;content:"";display:block;height:20px;left:50%;margin:-10px 0 0 -10px;position:absolute;top:50%;transform:translateZ(0);width:20px;z-index:-1}#customize-preview.wp-full-overlay-main.iframe-ready::before,.extension-install-overlay.iframe-ready .wp-full-overlay-main::before{background-image:none}@media print,not all,(min-resolution:120dpi){.wp-full-overlay .collapse-sidebar-arrow{background-image:url(../images/arrows-2x.png);background-size:15px 123px}#customize-preview.wp-full-overlay-main::before,.customize-loading #customize-container::before,.extension-install-overlay .wp-full-overlay-main::before{background-image:url(../images/spinner-2x.gif)}}@media screen and (max-width:782px){.available-extension .action-links .delete-extension{clear:both;float:none;margin:0;padding:0}.available-extension .action-links .delete-extension a{padding:0}.broken-extensions table{width:100%}.extension-install-overlay .wp-full-overlay-header .extension-install{line-height:normal;margin-top:6px}}.docs-search-form button .dashicons{opacity:.75;vertical-align:text-bottom}.docs-search-form .search-query{border-radius:3px;height:46px;padding:10px 17px}#dslc-docssearch{padding:30px 0 20px}#dslc-docssearch .search-query{min-width:64%}#dslc-headersearch{position:absolute;right:40px;top:30px}#dslc-headersearch .hssearch{padding:0 16px!important}.dslc-settigns-tabs .nav-tab .tag{background:#d54e21;border-radius:4px;color:#fff;display:inline-block;font-size:10px;letter-spacing:.5px;line-height:1;margin-left:5px;padding:4px 6px;text-transform:uppercase;opacity:.8}.dslc-scroll-back{margin-left:-90px;margin-top:44px;position:absolute;text-decoration:none;text-transform:uppercase}.dslc-scroll-back .dashicons{font-size:17px}#dslc-settings-column{clear:both;display:inline;float:left;margin-left:-300px;padding-top:0;width:281px}.dslc-settings-form .dslc-panel{padding:40px;margin-top:10px;max-width:640px}.dslc-settings-form .dslc-panel h2{margin-bottom:30px}.dslc-submenu-section{border-bottom:1px solid #ddd;margin:0}.dslc-submenu-section:hover{background:#f5f5f5;color:#23282d}.dslc-submenu-section a{-moz-user-select:none;border-left:1px solid #ddd;border-right:1px solid #ddd;margin:0;padding:12px 15px 15px;position:relative;font-size:14px;line-height:21px;font-weight:700;color:#23282D!important;text-decoration:none;display:block}.dslc-submenu-section .dashicons{margin-bottom:-1px;margin-right:6px;margin-top:1px;opacity:.4}#dslc-setings-liquid{float:left;margin-top:3px;min-width:100%}#dslc-settings-frame{margin-left:300px;margin-top:23px}.dslc-icon-spin{display:inline-block;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear}a .dslc-icon-spin{display:inline-block;text-decoration:none}@-moz-keyframes spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}
includes/plugin-options-framework/inc/performance.php CHANGED
@@ -17,6 +17,24 @@ function dslc_perf_settings_init() {
17
  $dslc_plugin_options['dslc_plugin_options_performance'] = array(
18
  'title' => __( 'Performance', 'live-composer-page-builder' ),
19
  'options' => array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  'lc_gfont_subsets' => array(
21
 
22
  'section' => 'dslc_plugin_options_performance',
17
  $dslc_plugin_options['dslc_plugin_options_performance'] = array(
18
  'title' => __( 'Performance', 'live-composer-page-builder' ),
19
  'options' => array(
20
+ 'lc_caching_engine' => array(
21
+
22
+ 'section' => 'dslc_plugin_options_performance',
23
+ 'label' => __( 'Basic HTML/CSS Caching', 'live-composer-page-builder' ),
24
+ 'std' => 'enabled',
25
+ 'type' => 'select',
26
+ 'descr' => __( 'Basic caching engine reduce page loading times. Rendered HTML and CSS get saved in the database.', 'live-composer-page-builder' ),
27
+ 'choices' => array(
28
+ array(
29
+ 'label' => 'Enabled',
30
+ 'value' => 'enabled',
31
+ ),
32
+ array(
33
+ 'label' => 'Disabled',
34
+ 'value' => 'disabled',
35
+ ),
36
+ ),
37
+ ),
38
  'lc_gfont_subsets' => array(
39
 
40
  'section' => 'dslc_plugin_options_performance',
includes/plugin-options-framework/js/main.js CHANGED
@@ -1,5 +1,8 @@
1
  jQuery(document).ready(function(){
2
 
 
 
 
3
  function dslc_plugin_opts_generate_list_code( dslcTarget ) {
4
 
5
  // Vars
@@ -313,4 +316,23 @@ jQuery(document).ready(function(){
313
  jQuery('#tab-for-tab-seo .dslc-panel-content').html('<div class="dslc-notice">You can hide this tab once you have <a href="https://livecomposerplugin.com/add-ons/?utm_source=editing-sreen&utm_medium=tab-seo&utm_campaign=add-ons" target="_blank">any of our premium add-ons</a> installed.</div>');
314
  }
315
  });
316
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  jQuery(document).ready(function(){
2
 
3
+ // Add a link 'Clear cache' in the performance section.
4
+ jQuery('#lc_caching_engine').after(' <a href="#" class="dslc-clear-cache" onclick="dslc_clear_cache(event)"><span class="dashicons dashicons-trash"></span> clear cache</a>');
5
+
6
  function dslc_plugin_opts_generate_list_code( dslcTarget ) {
7
 
8
  // Vars
316
  jQuery('#tab-for-tab-seo .dslc-panel-content').html('<div class="dslc-notice">You can hide this tab once you have <a href="https://livecomposerplugin.com/add-ons/?utm_source=editing-sreen&utm_medium=tab-seo&utm_campaign=add-ons" target="_blank">any of our premium add-ons</a> installed.</div>');
317
  }
318
  });
319
+ });
320
+
321
+ function dslc_clear_cache(e) {
322
+ e.preventDefault();
323
+
324
+ jQuery('.dslc-clear-cache .dashicons').removeClass('dashicons-trash').addClass('dashicons-update dashicon-spin');
325
+
326
+ jQuery.ajax({
327
+ type: "POST",
328
+ data: {
329
+ security: dslcajax,
330
+ action: 'dslc_ajax_clear_cache',
331
+ },
332
+ url: ajaxurl,
333
+ }).done(function() {
334
+ jQuery('.dslc-clear-cache').css('color','green');
335
+ jQuery('.dslc-clear-cache').text( 'done' );
336
+ jQuery('.dslc-clear-cache').prepend('<span class="dashicons dashicons-yes"></span> ');
337
+ });
338
+ }
includes/plugin-options-framework/js/main.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(){function a(a){var b,c=jQuery(".dslca-plugin-opts-list-code",a),d="",e=false;var f=[];jQuery(".dslca-plugin-opts-list-item",a).each(function(){if(jQuery.inArray(jQuery(this).find(".dslca-plugin-opts-list-title").text(),f)!==-1){e=true}else{f.push(jQuery(this).find(".dslca-plugin-opts-list-title").text())}});if(e){jQuery(".dslca-plugin-opts-list-error").show()}else{jQuery(".dslca-plugin-opts-list-error").hide()}jQuery(".dslca-plugin-opts-list-item",a).each(function(){b=jQuery(this).find(".dslca-plugin-opts-list-title").text();b=b.replace(/([^a-z0-9 ]+)/gi,"");jQuery(this).find(".dslca-plugin-opts-list-title").text(b);d+=b.trim()+","});c.val(d)}jQuery(".dslca-plugin-opts-list-add-hook").click(function(b){b.preventDefault();var c=jQuery(this).closest(".dslca-plugin-opts-list-wrap");var d=c.find(".dslca-plugin-opts-list");jQuery('<div class="dslca-plugin-opts-list-item"><span class="dslca-plugin-opts-list-title" contenteditable="true">Click to edit</span><a href="#" class="dslca-plugin-opts-list-delete-hook">delete</a></div>').appendTo(d);a(c)});jQuery(document).on("click",".dslca-plugin-opts-list-delete-hook",function(b){b.preventDefault();var c=jQuery(this).closest(".dslca-plugin-opts-list-wrap");var d=jQuery(this).closest(".dslca-plugin-opts-list-item");d.remove();a(c)});jQuery(document).on("blur",".dslca-plugin-opts-list-title",function(){var b=jQuery(this).closest(".dslca-plugin-opts-list-wrap");a(b)});jQuery(document).on("keypress",".dslca-plugin-opts-list-title",function(a){if(a.keyCode==13){jQuery(this).trigger("blur");a.preventDefault()}});jQuery(".activecampaign_form").submit(function(){var a=jQuery("#dslc_activecampaign_email").val();var b=jQuery("#dslc_activecampaign_name").val();jQuery.ajax({type:"POST",data:{email:a,name:b,security:dslcajax,action:"dslc_activecampaign"},url:ajaxurl})});if(jQuery(".activecampaign_form").length){window._show_thank_you=function(a,b){var c=document.getElementById("_form_"+a+"_"),d=c.getElementsByClassName("_form-thank-you")[0];c.getElementsByClassName("_form-content")[0].style.visibility="hidden";d.innerHTML=b;d.classList.add("add_thank_you")};window._show_error=function(a,b,c){var d=document.getElementById("_form_"+a+"_"),e=document.createElement("div"),f=d.getElementsByTagName("button")[0];e.innerHTML=b;e.className="_error-inner _form_error _no_arrow";var g=document.createElement("div");g.className="_form-inner";g.appendChild(e);f.parentNode.insertBefore(g,f);if(c){var h=document.createElement("div");h.className="_error-html";h.innerHTML=c;e.appendChild(h)}};window._load_script=function(a,b){var c=document.getElementsByTagName("head")[0],d=document.createElement("script"),e=false;d.type="text/javascript";d.src=a;if(b){d.onload=d.onreadystatechange=function(){if(!e&&(!this.readyState||this.readyState=="complete")){e=true;b()}}}c.appendChild(d)};(function(){var a=function(a){var b=document.cookie.match(new RegExp("(^|; )"+a+"=([^;]+)"));return b?b[2]:null};var b=function(a,b){var c=new Date;var d=c.getTime();var e=d+1e3*60*60*24*365;c.setTime(e);document.cookie=a+"="+b+"; expires="+c+";path=/"};var c=function(a,b,c){if(a.addEventListener){a.addEventListener(b,c)}else{var d=a["on"+b];a["on"+b]=function(){d.apply(this,arguments);c.apply(this,arguments)}}};var d=false;var e=document.getElementById("_form_11_");var f=e.querySelectorAll("input, select"),g=[],h=false;var i=function(){for(var a=0;a<g.length;a++){g[a].tip.parentNode.removeChild(g[a].tip)}g=[]};var j=function(a){for(var b=0;b<g.length;b++){if(g[b].elem===a){g[b].tip.parentNode.removeChild(g[b].tip);g.splice(b,1);return}}};var k=function(a,b){var c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),f={};if(a.type!="radio"&&a.type!="checkbox"){c.className="_error";d.className="_error-arrow";e.className="_error-inner";e.innerHTML=b;c.appendChild(d);c.appendChild(e);a.parentNode.appendChild(c)}else{c.className="_error-inner _no_arrow";c.innerHTML=b;a.parentNode.insertBefore(c,a);f.no_arrow=true}f.tip=c;f.elem=a;g.push(f);return f};var l=function(a){var b=a.elem.getBoundingClientRect();var c=document.documentElement,d=b.top-((window.pageYOffset||c.scrollTop)-(c.clientTop||0));if(d<40){a.tip.className=a.tip.className.replace(/ ?(_above|_below) ?/g,"")+" _below"}else{a.tip.className=a.tip.className.replace(/ ?(_above|_below) ?/g,"")+" _above"}};var m=function(){if(d)return;for(var a=0;a<g.length;a++){if(!g[a].no_arrow)l(g[a])}};var n=function(a,b){var c=null,d=a.value,e=true;b?j(a):false;if(a.type!="checkbox")a.className=a.className.replace(/ ?_has_error ?/g,"");if(a.getAttribute("required")!==null){if(d===undefined||d===null||d===""){a.className=a.className+" _has_error";e=false;c=k(a,"This field is required.")}}if(e&&a.name=="email"){if(!d.match(/^[\+_a-z0-9-'&=]+(\.[\+_a-z0-9-']+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i)){a.className=a.className+" _has_error";e=false;c=k(a,"Enter a valid email address.")}}c?l(c):false;return e};var o=function(a){return a.name=="email"||a.getAttribute("required")!==null||(a.className?/date_field/.test(a.className):false)};var p=function(a){var b=e.getElementsByClassName("_form_error")[0],d=true;b?b.parentNode.removeChild(b):false;if(!h){h=true;for(var g=0,j=f.length;g<j;g++){var k=f[g];if(o(k)){if(k.type=="text"){c(k,"input",function(){n(this,true)})}}}}i();for(var g=0,j=f.length;g<j;g++){var l=f[g];if(o(l)){n(l)?true:d=false}}if(!d&&a){a.preventDefault()}m();return d};c(window,"resize",m);c(window,"scroll",m);var q=function(a){a.preventDefault();if(p()){var b=serialize(document.getElementById("_form_11_"));_load_script("https://lumbermandesigns.activehosted.com/proc.php?"+b+"&jsonp=true")}return false};c(e,"submit",q);_load_script("//d3rxaij56vjege.cloudfront.net/form-serialize/0.3/serialize.min.js")})()}jQuery(document).on("click",".dslc-tab-seo-hide",function(a){var b=jQuery(".dslc-tab-seo-hide").data("can-hide");if(b=="1"){jQuery.ajax({type:"POST",data:{security:dslcajax,action:"dslc-ajax-hidden-tab-seo"},url:ajaxurl});jQuery(".dslc-panel-green").css("display","none");jQuery(".dslc-settigns-tabs [data-nav-to='tab-seo']").css("display","none");jQuery(".dslc-settigns-tabs [data-nav-to='tab-seo']").removeClass("nav-tab-active");jQuery(".dslc-settigns-tabs [data-nav-to='dslc_getting_started']").addClass("nav-tab-active");jQuery("#tab-for-dslc_getting_started").css("display","block")}else{jQuery(".dslc-panel-seo").addClass("showing-notice");jQuery("#tab-for-tab-seo .dslc-panel-content").html('<div class="dslc-notice">You can hide this tab once you have <a href="https://livecomposerplugin.com/add-ons/?utm_source=editing-sreen&utm_medium=tab-seo&utm_campaign=add-ons" target="_blank">any of our premium add-ons</a> installed.</div>')}})});
1
+ jQuery(document).ready(function(){jQuery("#lc_caching_engine").after(' <a href="#" class="dslc-clear-cache" onclick="dslc_clear_cache(event)"><span class="dashicons dashicons-trash"></span> clear cache</a>');function a(a){var b,c=jQuery(".dslca-plugin-opts-list-code",a),d="",e=false;var f=[];jQuery(".dslca-plugin-opts-list-item",a).each(function(){if(jQuery.inArray(jQuery(this).find(".dslca-plugin-opts-list-title").text(),f)!==-1){e=true}else{f.push(jQuery(this).find(".dslca-plugin-opts-list-title").text())}});if(e){jQuery(".dslca-plugin-opts-list-error").show()}else{jQuery(".dslca-plugin-opts-list-error").hide()}jQuery(".dslca-plugin-opts-list-item",a).each(function(){b=jQuery(this).find(".dslca-plugin-opts-list-title").text();b=b.replace(/([^a-z0-9 ]+)/gi,"");jQuery(this).find(".dslca-plugin-opts-list-title").text(b);d+=b.trim()+","});c.val(d)}jQuery(".dslca-plugin-opts-list-add-hook").click(function(b){b.preventDefault();var c=jQuery(this).closest(".dslca-plugin-opts-list-wrap");var d=c.find(".dslca-plugin-opts-list");jQuery('<div class="dslca-plugin-opts-list-item"><span class="dslca-plugin-opts-list-title" contenteditable="true">Click to edit</span><a href="#" class="dslca-plugin-opts-list-delete-hook">delete</a></div>').appendTo(d);a(c)});jQuery(document).on("click",".dslca-plugin-opts-list-delete-hook",function(b){b.preventDefault();var c=jQuery(this).closest(".dslca-plugin-opts-list-wrap");var d=jQuery(this).closest(".dslca-plugin-opts-list-item");d.remove();a(c)});jQuery(document).on("blur",".dslca-plugin-opts-list-title",function(){var b=jQuery(this).closest(".dslca-plugin-opts-list-wrap");a(b)});jQuery(document).on("keypress",".dslca-plugin-opts-list-title",function(a){if(a.keyCode==13){jQuery(this).trigger("blur");a.preventDefault()}});jQuery(".activecampaign_form").submit(function(){var a=jQuery("#dslc_activecampaign_email").val();var b=jQuery("#dslc_activecampaign_name").val();jQuery.ajax({type:"POST",data:{email:a,name:b,security:dslcajax,action:"dslc_activecampaign"},url:ajaxurl})});if(jQuery(".activecampaign_form").length){window._show_thank_you=function(a,b){var c=document.getElementById("_form_"+a+"_"),d=c.getElementsByClassName("_form-thank-you")[0];c.getElementsByClassName("_form-content")[0].style.visibility="hidden";d.innerHTML=b;d.classList.add("add_thank_you")};window._show_error=function(a,b,c){var d=document.getElementById("_form_"+a+"_"),e=document.createElement("div"),f=d.getElementsByTagName("button")[0];e.innerHTML=b;e.className="_error-inner _form_error _no_arrow";var g=document.createElement("div");g.className="_form-inner";g.appendChild(e);f.parentNode.insertBefore(g,f);if(c){var h=document.createElement("div");h.className="_error-html";h.innerHTML=c;e.appendChild(h)}};window._load_script=function(a,b){var c=document.getElementsByTagName("head")[0],d=document.createElement("script"),e=false;d.type="text/javascript";d.src=a;if(b){d.onload=d.onreadystatechange=function(){if(!e&&(!this.readyState||this.readyState=="complete")){e=true;b()}}}c.appendChild(d)};(function(){var a=function(a){var b=document.cookie.match(new RegExp("(^|; )"+a+"=([^;]+)"));return b?b[2]:null};var b=function(a,b){var c=new Date;var d=c.getTime();var e=d+1e3*60*60*24*365;c.setTime(e);document.cookie=a+"="+b+"; expires="+c+";path=/"};var c=function(a,b,c){if(a.addEventListener){a.addEventListener(b,c)}else{var d=a["on"+b];a["on"+b]=function(){d.apply(this,arguments);c.apply(this,arguments)}}};var d=false;var e=document.getElementById("_form_11_");var f=e.querySelectorAll("input, select"),g=[],h=false;var i=function(){for(var a=0;a<g.length;a++){g[a].tip.parentNode.removeChild(g[a].tip)}g=[]};var j=function(a){for(var b=0;b<g.length;b++){if(g[b].elem===a){g[b].tip.parentNode.removeChild(g[b].tip);g.splice(b,1);return}}};var k=function(a,b){var c=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),f={};if(a.type!="radio"&&a.type!="checkbox"){c.className="_error";d.className="_error-arrow";e.className="_error-inner";e.innerHTML=b;c.appendChild(d);c.appendChild(e);a.parentNode.appendChild(c)}else{c.className="_error-inner _no_arrow";c.innerHTML=b;a.parentNode.insertBefore(c,a);f.no_arrow=true}f.tip=c;f.elem=a;g.push(f);return f};var l=function(a){var b=a.elem.getBoundingClientRect();var c=document.documentElement,d=b.top-((window.pageYOffset||c.scrollTop)-(c.clientTop||0));if(d<40){a.tip.className=a.tip.className.replace(/ ?(_above|_below) ?/g,"")+" _below"}else{a.tip.className=a.tip.className.replace(/ ?(_above|_below) ?/g,"")+" _above"}};var m=function(){if(d)return;for(var a=0;a<g.length;a++){if(!g[a].no_arrow)l(g[a])}};var n=function(a,b){var c=null,d=a.value,e=true;b?j(a):false;if(a.type!="checkbox")a.className=a.className.replace(/ ?_has_error ?/g,"");if(a.getAttribute("required")!==null){if(d===undefined||d===null||d===""){a.className=a.className+" _has_error";e=false;c=k(a,"This field is required.")}}if(e&&a.name=="email"){if(!d.match(/^[\+_a-z0-9-'&=]+(\.[\+_a-z0-9-']+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$/i)){a.className=a.className+" _has_error";e=false;c=k(a,"Enter a valid email address.")}}c?l(c):false;return e};var o=function(a){return a.name=="email"||a.getAttribute("required")!==null||(a.className?/date_field/.test(a.className):false)};var p=function(a){var b=e.getElementsByClassName("_form_error")[0],d=true;b?b.parentNode.removeChild(b):false;if(!h){h=true;for(var g=0,j=f.length;g<j;g++){var k=f[g];if(o(k)){if(k.type=="text"){c(k,"input",function(){n(this,true)})}}}}i();for(var g=0,j=f.length;g<j;g++){var l=f[g];if(o(l)){n(l)?true:d=false}}if(!d&&a){a.preventDefault()}m();return d};c(window,"resize",m);c(window,"scroll",m);var q=function(a){a.preventDefault();if(p()){var b=serialize(document.getElementById("_form_11_"));_load_script("https://lumbermandesigns.activehosted.com/proc.php?"+b+"&jsonp=true")}return false};c(e,"submit",q);_load_script("//d3rxaij56vjege.cloudfront.net/form-serialize/0.3/serialize.min.js")})()}jQuery(document).on("click",".dslc-tab-seo-hide",function(a){var b=jQuery(".dslc-tab-seo-hide").data("can-hide");if(b=="1"){jQuery.ajax({type:"POST",data:{security:dslcajax,action:"dslc-ajax-hidden-tab-seo"},url:ajaxurl});jQuery(".dslc-panel-green").css("display","none");jQuery(".dslc-settigns-tabs [data-nav-to='tab-seo']").css("display","none");jQuery(".dslc-settigns-tabs [data-nav-to='tab-seo']").removeClass("nav-tab-active");jQuery(".dslc-settigns-tabs [data-nav-to='dslc_getting_started']").addClass("nav-tab-active");jQuery("#tab-for-dslc_getting_started").css("display","block")}else{jQuery(".dslc-panel-seo").addClass("showing-notice");jQuery("#tab-for-tab-seo .dslc-panel-content").html('<div class="dslc-notice">You can hide this tab once you have <a href="https://livecomposerplugin.com/add-ons/?utm_source=editing-sreen&utm_medium=tab-seo&utm_campaign=add-ons" target="_blank">any of our premium add-ons</a> installed.</div>')}})});function dslc_clear_cache(a){a.preventDefault();jQuery(".dslc-clear-cache .dashicons").removeClass("dashicons-trash").addClass("dashicons-update dashicon-spin");jQuery.ajax({type:"POST",data:{security:dslcajax,action:"dslc_ajax_clear_cache"},url:ajaxurl}).done(function(){jQuery(".dslc-clear-cache").css("color","green");jQuery(".dslc-clear-cache").text("done");jQuery(".dslc-clear-cache").prepend('<span class="dashicons dashicons-yes"></span> ')})}
includes/post-options-framework/js/main.js CHANGED
@@ -161,10 +161,8 @@ jQuery(document).ready(function(){
161
  specialPage = jQuery( '#dslca_special_page_templates input[type="checkbox"]:checked' ).length;
162
 
163
  if ( singleTemplate && archiveTemplate == 0 && specialPage == 0 ) {
164
- console.log('1');
165
  jQuery("#post-option-dslc_template_base").show();
166
  } else {
167
- console.log('3');
168
  jQuery("#post-option-dslc_template_base").hide();
169
  }
170
  });
@@ -175,4 +173,4 @@ jQuery(document).ready(function(){
175
  jQuery('#post-option-dslc_template_base').hide();
176
  }
177
 
178
- }); // jQuery(document).ready
161
  specialPage = jQuery( '#dslca_special_page_templates input[type="checkbox"]:checked' ).length;
162
 
163
  if ( singleTemplate && archiveTemplate == 0 && specialPage == 0 ) {
 
164
  jQuery("#post-option-dslc_template_base").show();
165
  } else {
 
166
  jQuery("#post-option-dslc_template_base").hide();
167
  }
168
  });
173
  jQuery('#post-option-dslc_template_base').hide();
174
  }
175
 
176
+ }); // jQuery(document).ready
includes/post-options-framework/js/main.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(){jQuery(".dslca-post-options-field-datepicker").datepicker();function a(a){var b,c="",d=jQuery(".dslca-post-option-image",a);d.each(function(){b=jQuery(this);imageID=b.data("id");c+=imageID+" "});jQuery(".dslca-post-options-field-file",a).val(c)}function b(b){var c=b.closest(".dslca-post-option");b.remove();a(c)}jQuery(document).on("click",".dslca-post-option-image-remove",function(){b(jQuery(this).closest(".dslca-post-option-image"))});if(jQuery(".dslca-post-option-field-files .dslca-post-options-images").length){jQuery(".dslca-post-option-field-files .dslca-post-options-images").sortable({update:function(b,c){a(jQuery(this).closest(".dslca-post-option"))}});jQuery(".dslca-post-options-images").disableSelection()}var c;jQuery(".dslca-post-option-add-file-hook").click(function(){var a=jQuery(this);var b=jQuery(this).closest(".dslca-post-option");var d=jQuery(".dslca-post-options-field-file",b);var e=jQuery(".dslca-post-option-image",b);var f=false;if(a.data("multiple")){f=true}c=wp.media.frames.file_frame=wp.media({title:"Choose File",button:{text:"Send to option"},multiple:f});c.on("select",function(){if(f){attachments=c.state().get("selection").toJSON();attachmentVal="";for(var a=0;a<attachments.length;a++){attachment=attachments[a];attachmentVal+=attachment.id+" ";b.find(".dslca-post-options-images").append('<div class="dslca-post-option-image" data-id="'+attachment.id+'"><div class="dslca-post-option-image-inner"><img src="'+attachment.url+'" /><span class="dslca-post-option-image-remove">x</span></div></div>')}d.val(d.val()+attachmentVal)}else{attachment=c.state().get("selection").first().toJSON();if(attachment.type=="image"){if(e.length){e.find("img").attr("src",attachment.url)}else{b.find(".dslca-post-options-images").html('<div class="dslca-post-option-image" data-id="'+attachment.id+'"><div class="dslca-post-option-image-inner"><img src="'+attachment.url+'" /></div><span class="dslca-post-option-image-remove">x</span></div>')}}else{if(e.length){e.find("strong").text(attachment.filename)}else{b.find(".dslca-post-options-images").html('<div class="dslca-post-option-image" data-id="'+attachment.id+'"><div class="dslca-post-option-image-inner"><strong>'+attachment.filename+"</strong></div></div>")}}d.val(attachment.id)}});c.open()});if(typeof tabData!=="undefined"){var d=jQuery("<div></div>");d.addClass("quicktags-toolbar-lc");$wrap=jQuery("#lc_content_wrap");$wrap.prepend(d);jQuery("#wp-content-editor-tools #content-html").after('<button type="button" id="content-lc" class="wp-switch-editor switch-lc">'+tabData.tabTitle+"</button>")}if(jQuery('#postcustom input[value="dslc_code"]').val()=="dslc_code"&&jQuery(".wp-editor-area").text().length==0){jQuery("#wp-content-wrap").removeClass("html-active tmce-active");jQuery("#postdivrich").addClass("lc-active")}jQuery(document).on("click","#content-lc",function(a){a.preventDefault();jQuery(".wp-editor-expand").addClass("lc-active")});jQuery(document).on("click","#content-tmce, #content-html",function(a){a.preventDefault();jQuery(".wp-editor-expand").removeClass("lc-active")});jQuery(document).on("click",'#dslca_single_post_templates input[type="checkbox"], #dslca_archive_index_templates input[type="checkbox"], #dslca_special_page_templates input[type="checkbox"]',function(a){var b,c,d;b=jQuery('#dslca_single_post_templates input[type="checkbox"]:checked').length;c=jQuery('#dslca_archive_index_templates input[type="checkbox"]:checked').length;d=jQuery('#dslca_special_page_templates input[type="checkbox"]:checked').length;if(b&&c==0&&d==0){console.log("1");jQuery("#post-option-dslc_template_base").show()}else{console.log("3");jQuery("#post-option-dslc_template_base").hide()}});if(jQuery('#dslca_single_post_templates input[type="checkbox"]').is(":checked")){jQuery("#post-option-dslc_template_base").show()}else{jQuery("#post-option-dslc_template_base").hide()}});
1
+ jQuery(document).ready(function(){jQuery(".dslca-post-options-field-datepicker").datepicker();function a(a){var b,c="",d=jQuery(".dslca-post-option-image",a);d.each(function(){b=jQuery(this);imageID=b.data("id");c+=imageID+" "});jQuery(".dslca-post-options-field-file",a).val(c)}function b(b){var c=b.closest(".dslca-post-option");b.remove();a(c)}jQuery(document).on("click",".dslca-post-option-image-remove",function(){b(jQuery(this).closest(".dslca-post-option-image"))});if(jQuery(".dslca-post-option-field-files .dslca-post-options-images").length){jQuery(".dslca-post-option-field-files .dslca-post-options-images").sortable({update:function(b,c){a(jQuery(this).closest(".dslca-post-option"))}});jQuery(".dslca-post-options-images").disableSelection()}var c;jQuery(".dslca-post-option-add-file-hook").click(function(){var a=jQuery(this);var b=jQuery(this).closest(".dslca-post-option");var d=jQuery(".dslca-post-options-field-file",b);var e=jQuery(".dslca-post-option-image",b);var f=false;if(a.data("multiple")){f=true}c=wp.media.frames.file_frame=wp.media({title:"Choose File",button:{text:"Send to option"},multiple:f});c.on("select",function(){if(f){attachments=c.state().get("selection").toJSON();attachmentVal="";for(var a=0;a<attachments.length;a++){attachment=attachments[a];attachmentVal+=attachment.id+" ";b.find(".dslca-post-options-images").append('<div class="dslca-post-option-image" data-id="'+attachment.id+'"><div class="dslca-post-option-image-inner"><img src="'+attachment.url+'" /><span class="dslca-post-option-image-remove">x</span></div></div>')}d.val(d.val()+attachmentVal)}else{attachment=c.state().get("selection").first().toJSON();if(attachment.type=="image"){if(e.length){e.find("img").attr("src",attachment.url)}else{b.find(".dslca-post-options-images").html('<div class="dslca-post-option-image" data-id="'+attachment.id+'"><div class="dslca-post-option-image-inner"><img src="'+attachment.url+'" /></div><span class="dslca-post-option-image-remove">x</span></div>')}}else{if(e.length){e.find("strong").text(attachment.filename)}else{b.find(".dslca-post-options-images").html('<div class="dslca-post-option-image" data-id="'+attachment.id+'"><div class="dslca-post-option-image-inner"><strong>'+attachment.filename+"</strong></div></div>")}}d.val(attachment.id)}});c.open()});if(typeof tabData!=="undefined"){var d=jQuery("<div></div>");d.addClass("quicktags-toolbar-lc");$wrap=jQuery("#lc_content_wrap");$wrap.prepend(d);jQuery("#wp-content-editor-tools #content-html").after('<button type="button" id="content-lc" class="wp-switch-editor switch-lc">'+tabData.tabTitle+"</button>")}if(jQuery('#postcustom input[value="dslc_code"]').val()=="dslc_code"&&jQuery(".wp-editor-area").text().length==0){jQuery("#wp-content-wrap").removeClass("html-active tmce-active");jQuery("#postdivrich").addClass("lc-active")}jQuery(document).on("click","#content-lc",function(a){a.preventDefault();jQuery(".wp-editor-expand").addClass("lc-active")});jQuery(document).on("click","#content-tmce, #content-html",function(a){a.preventDefault();jQuery(".wp-editor-expand").removeClass("lc-active")});jQuery(document).on("click",'#dslca_single_post_templates input[type="checkbox"], #dslca_archive_index_templates input[type="checkbox"], #dslca_special_page_templates input[type="checkbox"]',function(a){var b,c,d;b=jQuery('#dslca_single_post_templates input[type="checkbox"]:checked').length;c=jQuery('#dslca_archive_index_templates input[type="checkbox"]:checked').length;d=jQuery('#dslca_special_page_templates input[type="checkbox"]:checked').length;if(b&&c==0&&d==0){jQuery("#post-option-dslc_template_base").show()}else{jQuery("#post-option-dslc_template_base").hide()}});if(jQuery('#dslca_single_post_templates input[type="checkbox"]').is(":checked")){jQuery("#post-option-dslc_template_base").show()}else{jQuery("#post-option-dslc_template_base").hide()}});
includes/post-options-framework/post-options-framework.php CHANGED
@@ -183,16 +183,13 @@ function dslc_editorinterface_post_options( $object, $metabox ) {
183
  // Get current value as array.
184
  $curr_value_no_esc = get_post_meta( $object->ID, $post_option['id'] );
185
 
 
 
186
  // If there is only one value in array – transform it into the string.
187
  if ( 1 === count( $curr_value_no_esc ) && is_string( $curr_value_no_esc[0] ) ) {
188
  $curr_value = esc_attr( $curr_value_no_esc[0] );
189
  }
190
 
191
- if ( empty( $curr_value_no_esc ) ) {
192
- // $curr_value_no_esc[] = $post_option['std'];
193
- $curr_value = esc_attr( $post_option['std'] );
194
- }
195
-
196
  ?>
197
 
198
  <div class="dslca-post-option" id="post-option-<?php echo esc_attr( $post_option['id'] ); ?>" >
183
  // Get current value as array.
184
  $curr_value_no_esc = get_post_meta( $object->ID, $post_option['id'] );
185
 
186
+ $curr_value = esc_attr( $post_option['std'] );
187
+
188
  // If there is only one value in array – transform it into the string.
189
  if ( 1 === count( $curr_value_no_esc ) && is_string( $curr_value_no_esc[0] ) ) {
190
  $curr_value = esc_attr( $curr_value_no_esc[0] );
191
  }
192
 
 
 
 
 
 
193
  ?>
194
 
195
  <div class="dslca-post-option" id="post-option-<?php echo esc_attr( $post_option['id'] ); ?>" >
includes/post-templates.php CHANGED
@@ -72,8 +72,8 @@ function dslc_can_edit_in_lc( $post_data ) {
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
 
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 || 'dslc_templates' === $post_type ) {
76
+ // Make header/footer and templates as editable.
77
  $can_edit = true;
78
  }
79
 
includes/scripts.php CHANGED
@@ -24,12 +24,53 @@ final class DSLC_Scripts{
24
  */
25
  public static function init() {
26
 
 
 
 
27
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'dslc_load_scripts_frontend' ) );
28
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'dslc_load_fonts' ) );
29
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'dslc_load_scripts_admin' ) );
30
  add_action( 'admin_footer', array( __CLASS__, 'dslc_inline_js_plugin_title' ) );
31
  }
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  /**
34
  * Load CSS and JS files
35
  *
@@ -39,16 +80,12 @@ final class DSLC_Scripts{
39
 
40
  global $dslc_active;
41
 
42
- // Array of icons available to be used.
43
- global $dslc_var_icons;
44
-
45
  /**
46
  * CSS
47
  */
48
  wp_enqueue_style( 'dslc-main-css', DS_LIVE_COMPOSER_URL . 'css/frontend/main.css', array(), DS_LIVE_COMPOSER_VER );
49
  wp_enqueue_style( 'dslc-modules-css', DS_LIVE_COMPOSER_URL . 'css/frontend/modules.css', array(), DS_LIVE_COMPOSER_VER );
50
  wp_enqueue_style( 'dslc-plugins-css', DS_LIVE_COMPOSER_URL . 'css/frontend/plugins.css', array(), DS_LIVE_COMPOSER_VER );
51
- wp_enqueue_style( 'dslc-font-awesome', DS_LIVE_COMPOSER_URL . 'css/font-awesome.css', array(), DS_LIVE_COMPOSER_VER );
52
 
53
  /**
54
  * Load our IE-only stylesheet for all versions of IE:
@@ -200,6 +237,7 @@ final class DSLC_Scripts{
200
  self::load_scripts( 'builder', 'dslc-builder-main-js' );
201
 
202
  wp_localize_script( 'dslc-builder-main-js', 'DSLCAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php', $protocol ) ) );
 
203
 
204
  $translation_array = array(
205
  'str_confirm' => __( 'Confirm', 'live-composer-page-builder' ),
@@ -262,7 +300,6 @@ final class DSLC_Scripts{
262
 
263
  /* If current screen is Live Composer options page */
264
  if ( 'dslc-options' === $current_screen ) {
265
-
266
  wp_enqueue_script( 'dslc-plugin-options-js-admin', DS_LIVE_COMPOSER_URL . 'includes/plugin-options-framework/js/main' . $min_suffix . '.js', array( 'jquery' ), DS_LIVE_COMPOSER_VER );
267
  wp_enqueue_style( 'dslc-plugin-options-css-admin', DS_LIVE_COMPOSER_URL . 'includes/plugin-options-framework/css/main' . $min_suffix . '.css', array(), DS_LIVE_COMPOSER_VER );
268
  wp_localize_script( 'dslc-plugin-options-js-admin', 'dslcajax', array( 'nonce' => wp_create_nonce( 'dslc-optionspanel-ajax' ) ) );
24
  */
25
  public static function init() {
26
 
27
+ add_action( 'wp_enqueue_scripts', array( __CLASS__, 'dslc_load_iconfont_files' ) );
28
+ add_action( 'admin_enqueue_scripts', array( __CLASS__, 'dslc_load_iconfont_files' ) );
29
+
30
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'dslc_load_scripts_frontend' ) );
31
  add_action( 'wp_enqueue_scripts', array( __CLASS__, 'dslc_load_fonts' ) );
32
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'dslc_load_scripts_admin' ) );
33
  add_action( 'admin_footer', array( __CLASS__, 'dslc_inline_js_plugin_title' ) );
34
  }
35
 
36
+ /**
37
+ * Load icon font files (css).
38
+ *
39
+ * @return void
40
+ */
41
+ public static function dslc_load_iconfont_files() {
42
+
43
+ $load_for_admin_screens = array( 'toplevel_page_livecomposer_editor' );
44
+ // ↑↑↑ List of admin screens were to load icon font files.
45
+ $load_for_admin_screens = apply_filters( 'dslc_icons_admin_screens', $load_for_admin_screens );
46
+ // Theme/extension plugin authors can extend list of the admin screens
47
+ // were they want to use icons popup.
48
+
49
+ if ( is_admin() ) {
50
+ $screen_data = get_current_screen();
51
+ $screen = $screen_data->base;
52
+ } else {
53
+ $screen = false;
54
+ }
55
+
56
+ if ( ! $screen || in_array( $screen, $load_for_admin_screens, true ) ) {
57
+
58
+ // Array of icon fonts for load.
59
+ global $dslc_var_icon_fonts;
60
+
61
+ foreach ( $dslc_var_icon_fonts as $key => $font_details ) {
62
+ $version_stamp = DS_LIVE_COMPOSER_VER;
63
+
64
+ if ( isset( $font_details['version'] ) ) {
65
+ $version_stamp = $font_details['version'];
66
+ }
67
+
68
+ wp_enqueue_style( 'dslc-' . $key, $font_details['font_path'], array(), $version_stamp );
69
+ // wp_enqueue_style( 'dslc-font-awesome', DS_LIVE_COMPOSER_URL . 'css/font-awesome.css', array(), DS_LIVE_COMPOSER_VER );
70
+ }
71
+ }
72
+ }
73
+
74
  /**
75
  * Load CSS and JS files
76
  *
80
 
81
  global $dslc_active;
82
 
 
 
 
83
  /**
84
  * CSS
85
  */
86
  wp_enqueue_style( 'dslc-main-css', DS_LIVE_COMPOSER_URL . 'css/frontend/main.css', array(), DS_LIVE_COMPOSER_VER );
87
  wp_enqueue_style( 'dslc-modules-css', DS_LIVE_COMPOSER_URL . 'css/frontend/modules.css', array(), DS_LIVE_COMPOSER_VER );
88
  wp_enqueue_style( 'dslc-plugins-css', DS_LIVE_COMPOSER_URL . 'css/frontend/plugins.css', array(), DS_LIVE_COMPOSER_VER );
 
89
 
90
  /**
91
  * Load our IE-only stylesheet for all versions of IE:
237
  self::load_scripts( 'builder', 'dslc-builder-main-js' );
238
 
239
  wp_localize_script( 'dslc-builder-main-js', 'DSLCAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php', $protocol ) ) );
240
+ wp_localize_script( 'dslc-builder-main-js', 'DSLCSiteData', array( 'siteurl' => get_option( 'siteurl' ) ) );
241
 
242
  $translation_array = array(
243
  'str_confirm' => __( 'Confirm', 'live-composer-page-builder' ),
300
 
301
  /* If current screen is Live Composer options page */
302
  if ( 'dslc-options' === $current_screen ) {
 
303
  wp_enqueue_script( 'dslc-plugin-options-js-admin', DS_LIVE_COMPOSER_URL . 'includes/plugin-options-framework/js/main' . $min_suffix . '.js', array( 'jquery' ), DS_LIVE_COMPOSER_VER );
304
  wp_enqueue_style( 'dslc-plugin-options-css-admin', DS_LIVE_COMPOSER_URL . 'includes/plugin-options-framework/css/main' . $min_suffix . '.css', array(), DS_LIVE_COMPOSER_VER );
305
  wp_localize_script( 'dslc-plugin-options-js-admin', 'dslcajax', array( 'nonce' => wp_create_nonce( 'dslc-optionspanel-ajax' ) ) );
includes/single-templates-framework/inc/filters.php CHANGED
@@ -272,27 +272,30 @@ function dslc_tp_update_archive_templates_option( $post_id ) {
272
  // Allowed to do this?
273
  if ( dslc_current_user_can( 'save' ) ) {
274
 
275
- $post_type = get_post_type( $post_id );
276
 
277
  // If no post type ( not really a save action ) stop execution.
278
- if ( 'dslc_templates' !== $post_type ) {
279
  return;
280
- }
281
 
282
  // If template type not supplied.
283
- if ( ! isset( $_POST['dslc_template_for'] ) ) {
284
  $_POST['dslc_template_for'] = false;
285
  }
286
 
287
- $post_type = esc_attr( $post_type );
288
 
289
  // Make dslc_template_for an array even if it's string (for easier processing).
290
  $dslc_template_for = array();
291
- if ( ! is_array( $_POST['dslc_template_for'] ) ) {
292
  $dslc_template_for[] = $_POST['dslc_template_for'];
293
  } else {
294
  $dslc_template_for = $_POST['dslc_template_for'];
295
- }
 
 
 
296
 
297
  // List of options that should have single template only (no alternative designs).
298
  // Like: Search results, 404 page, Author listing, Archive pages, etc.
@@ -348,7 +351,7 @@ function dslc_tp_update_archive_templates_option( $post_id ) {
348
  // Put template post ID into plugin options.
349
  $plugin_options[ $value ] = $post_id;
350
  // Make sure we have only one LC template for this option.
351
- dslc_tp_remove_template_from_meta( $value );
352
  }
353
  }
354
 
@@ -363,7 +366,20 @@ function dslc_tp_update_archive_templates_option( $post_id ) {
363
 
364
  }
365
 
366
- add_action( 'save_post', 'dslc_tp_update_archive_templates_option' );
 
 
 
 
 
 
 
 
 
 
 
 
 
367
 
368
 
369
  /**
@@ -407,7 +423,7 @@ add_action( 'wp_trash_post', 'dslc_tp_update_archive_templates_option_ondelete'
407
  * @param String $template_to_remove Name of the template to remove.
408
  * @return void
409
  */
410
- function dslc_tp_remove_template_from_meta( $template_to_remove ) {
411
  // Get templates ( if any ) in same CPT that has $template_to_remove
412
  // as value for 'dslc_template_for' custom field.
413
  $args = array(
@@ -428,21 +444,39 @@ function dslc_tp_remove_template_from_meta( $template_to_remove ) {
428
  // Set those old defaults to regular templates.
429
  if ( $templates ) {
430
  foreach ( $templates as $template ) {
431
- // Get current value of 'dslc_template_for' custom field.
432
- $dslc_template_for = get_post_meta( $template->ID, 'dslc_template_for' );
433
- delete_post_meta( $template->ID, 'dslc_template_for' );
434
-
435
- // Remove value from the array.
436
- if ( ( $key = array_search( $template_to_remove, $dslc_template_for ) ) !== false ) {
437
- unset( $dslc_template_for[ $key ] );
438
- }
 
439
 
440
- // Put back updated value for 'dslc_template_for' custom field.
441
- // DON'T CHANGE IT TO udpate_post_meta!
442
- // We don't want to struggle with serialized arrays.
443
- foreach ( $dslc_template_for as $template_cpt ) {
444
- add_post_meta( $template->ID, 'dslc_template_for', $template_cpt );
 
445
  }
446
  }
447
  }
448
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  // Allowed to do this?
273
  if ( dslc_current_user_can( 'save' ) ) {
274
 
275
+ // $post_type = get_post_type( $post_id );
276
 
277
  // If no post type ( not really a save action ) stop execution.
278
+ /*if ( 'dslc_templates' !== $post_type ) {
279
  return;
280
+ }*/
281
 
282
  // If template type not supplied.
283
+ /*if ( ! isset( $_POST['dslc_template_for'] ) ) {
284
  $_POST['dslc_template_for'] = false;
285
  }
286
 
287
+ $post_type = esc_attr( $post_type );*/
288
 
289
  // Make dslc_template_for an array even if it's string (for easier processing).
290
  $dslc_template_for = array();
291
+ /*if ( ! is_array( $_POST['dslc_template_for'] ) ) {
292
  $dslc_template_for[] = $_POST['dslc_template_for'];
293
  } else {
294
  $dslc_template_for = $_POST['dslc_template_for'];
295
+ }*/
296
+
297
+ $dslc_metadata = get_post_meta( $post_id, 'dslc_template_for' );
298
+ $dslc_template_for = $dslc_metadata;
299
 
300
  // List of options that should have single template only (no alternative designs).
301
  // Like: Search results, 404 page, Author listing, Archive pages, etc.
351
  // Put template post ID into plugin options.
352
  $plugin_options[ $value ] = $post_id;
353
  // Make sure we have only one LC template for this option.
354
+ dslc_tp_remove_template_from_meta( $value, $post_id );
355
  }
356
  }
357
 
366
 
367
  }
368
 
369
+ // add_action( 'save_post', 'dslc_tp_update_archive_templates_option' );
370
+
371
+ add_action( 'added_post_meta', 'dslc_template_for_meta_updated', 10, 4 );
372
+ add_action( 'updated_postmeta', 'dslc_template_for_meta_updated', 10, 4 );
373
+ add_action( 'deleted_post_meta', 'dslc_template_for_meta_updated', 10, 4 );
374
+
375
+ function dslc_template_for_meta_updated( $meta_id, $object_id, $meta_key, $meta_value ) {
376
+
377
+ if ( 'dslc_template_for' !== $meta_key ) {
378
+ return;
379
+ }
380
+
381
+ dslc_tp_update_archive_templates_option( $object_id );
382
+ }
383
 
384
 
385
  /**
423
  * @param String $template_to_remove Name of the template to remove.
424
  * @return void
425
  */
426
+ function dslc_tp_remove_template_from_meta( $template_to_remove, $post_id_to_keep ) {
427
  // Get templates ( if any ) in same CPT that has $template_to_remove
428
  // as value for 'dslc_template_for' custom field.
429
  $args = array(
444
  // Set those old defaults to regular templates.
445
  if ( $templates ) {
446
  foreach ( $templates as $template ) {
447
+ if ( $template->ID !== $post_id_to_keep ) {
448
+ // Get current value of 'dslc_template_for' custom field.
449
+ $dslc_template_for = get_post_meta( $template->ID, 'dslc_template_for' );
450
+ delete_post_meta( $template->ID, 'dslc_template_for' );
451
+
452
+ // Remove value from the array.
453
+ if ( ( $key = array_search( $template_to_remove, $dslc_template_for ) ) !== false ) {
454
+ unset( $dslc_template_for[ $key ] );
455
+ }
456
 
457
+ // Put back updated value for 'dslc_template_for' custom field.
458
+ // DON'T CHANGE IT TO udpate_post_meta!
459
+ // We don't want to struggle with serialized arrays.
460
+ foreach ( $dslc_template_for as $template_cpt ) {
461
+ add_post_meta( $template->ID, 'dslc_template_for', $template_cpt );
462
+ }
463
  }
464
  }
465
  }
466
  }
467
+
468
+ function dslc_refresh_template_ids() {
469
+
470
+ // Get all the posts of 'dslc_templates' type.
471
+ $args = array(
472
+ 'posts_per_page' => 99, // Not likely someone have more.
473
+ 'post_type' => 'dslc_templates',
474
+ );
475
+
476
+ $template_posts = get_posts( $args );
477
+
478
+ foreach ( $template_posts as $template ) {
479
+ $template_id = $template->ID;
480
+ dslc_tp_update_archive_templates_option( $template_id );
481
+ }
482
+ }
includes/single-templates-framework/inc/functions.php CHANGED
@@ -248,6 +248,7 @@ function dslc_get_archive_template_by_pt( $post_type_slug ) {
248
  /**
249
  * Add back-compatability with post archive options without '_archive' suffix.
250
  * In some of the past versions with didn't add '_archive' to these.
 
251
  */
252
  if ( ! $template_id && stristr( $post_type_slug, '_archive' ) ) {
253
  $template_id = dslc_get_option( str_replace( '_archive', '', $post_type_slug ), 'dslc_plugin_options_archives' );
@@ -259,4 +260,4 @@ function dslc_get_archive_template_by_pt( $post_type_slug ) {
259
  }
260
 
261
  return $template_id;
262
- }
248
  /**
249
  * Add back-compatability with post archive options without '_archive' suffix.
250
  * In some of the past versions with didn't add '_archive' to these.
251
+ * Also important for '404_page', etc. templates.
252
  */
253
  if ( ! $template_id && stristr( $post_type_slug, '_archive' ) ) {
254
  $template_id = dslc_get_option( str_replace( '_archive', '', $post_type_slug ), 'dslc_plugin_options_archives' );
260
  }
261
 
262
  return $template_id;
263
+ }
includes/tutorials/tutorial.css DELETED
@@ -1,275 +0,0 @@
1
- .dslc-tut-force-show {
2
- display: block !important;
3
- opacity: 1 !important;
4
- overflow: visible !important;
5
- }
6
-
7
- .dslca-modules-area-manage.dslc-tut-force-show .dslca-modules-area-manage-inner {
8
- left: 0 !important;
9
- }
10
-
11
- .dslc-tut-prevent,
12
- .dslc-tut-panel-prevent {
13
- z-index: 999999;
14
- position: fixed;
15
- top: 0;
16
- left: 0;
17
- right: 0;
18
- bottom: 0;
19
- background: #fff;
20
- opacity: 0;
21
- /* opacity: 0.1; */
22
- }
23
-
24
- .dslc-tut-panel-prevent {
25
- display: none;
26
- }
27
-
28
- .colorpicker {
29
- z-index: 9999999 !important;
30
- }
31
-
32
- .dslc-tut-bubble {
33
- white-space: nowrap;
34
- }
35
-
36
- .dslc-tut-bubble-type-action {
37
- text-align: center;
38
- position: absolute;
39
- top: 0;
40
- left: 0;
41
- background: #fff;
42
- padding: 30px 40px;
43
- border: 1px solid rgba(0,0,0,.12); /* stroke */
44
- -moz-box-shadow: 0 2px 2px rgba(0,0,0,.03), 0 0 7px rgba(0,0,0,.05); /* drop shadow and outer glow */
45
- -webkit-box-shadow: 0 2px 2px rgba(0,0,0,.03), 0 0 7px rgba(0,0,0,.05); /* drop shadow and outer glow */
46
- box-shadow: 0 2px 2px rgba(0,0,0,.03), 0 0 7px rgba(0,0,0,.05); /* drop shadow and outer glow */
47
- z-index: 9999998;
48
- color: #9e9e9e;
49
- font-size: 14px;
50
- line-height: 28px;
51
- }
52
-
53
- .dslc-tut-bubble-pos-above.dslc-tut-bubble-type-action:after, .dslc-tut-bubble-pos-above.dslc-tut-bubble-type-action:before {
54
- top: 100%;
55
- border: solid transparent;
56
- content: " ";
57
- height: 0;
58
- width: 0;
59
- position: absolute;
60
- pointer-events: none;
61
- }
62
-
63
- .dslc-tut-bubble-pos-above.dslc-tut-bubble-type-action:after {
64
- border-color: rgba(255, 255, 255, 0);
65
- border-top-color: #fff;
66
- border-width: 8px;
67
- left: 50%;
68
- margin-left: -8px;
69
- }
70
- .dslc-tut-bubble-pos-above.dslc-tut-bubble-type-action:before {
71
- border-color: rgba(224, 224, 224, 0);
72
- border-top-color: #d2d2d2;
73
- border-width: 9px;
74
- left: 50%;
75
- margin-left: -9px;
76
- }
77
-
78
- .dslc-tut-bubble-pos-bellow.dslc-tut-bubble-type-action:after, .dslc-tut-bubble-pos-bellow.dslc-tut-bubble-type-action:before {
79
- bottom: 100%;
80
- border: solid transparent;
81
- content: " ";
82
- height: 0;
83
- width: 0;
84
- position: absolute;
85
- pointer-events: none;
86
- }
87
-
88
- .dslc-tut-bubble-pos-bellow.dslc-tut-bubble-type-action:after {
89
- border-color: rgba(255, 255, 255, 0);
90
- border-bottom-color: #fff;
91
- border-width: 8px;
92
- left: 50%;
93
- margin-left: -8px;
94
- }
95
- .dslc-tut-bubble-pos-bellow.dslc-tut-bubble-type-action:before {
96
- border-color: rgba(224, 224, 224, 0);
97
- border-bottom-color: #d2d2d2;
98
- border-width: 9px;
99
- left: 50%;
100
- margin-left: -9px;
101
- }
102
-
103
- .dslc-tut-bubble-type-information {
104
- background: #fff;
105
- border-radius: 3px;
106
- position: absolute;
107
- margin: 0 auto;
108
- padding: 30px 35px 30px 30px;
109
- -moz-box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 0 7px rgba(0,0,0,.12); /* drop shadow and outer glow */
110
- -webkit-box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 0 7px rgba(0,0,0,.12); /* drop shadow and outer glow */
111
- opacity: 1;
112
- box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 0 7px rgba(0,0,0,.12); /* drop shadow and outer glow */
113
- z-index: 9999998;
114
- }
115
-
116
- .dslc-tut-bubble-title {
117
- display: block;
118
- color: #424242;
119
- font-family: "Lato";
120
- font-size: 16px;
121
- font-weight: bold;
122
- line-height: 1;
123
- margin-bottom: 22px;
124
- }
125
-
126
- .dslc-tut-bubble-descr {
127
- position: absolute;
128
- right: 35px;
129
- top: 32px;
130
- color: #a8a8a8;
131
- font-size: 12px;
132
- line-height: 1;
133
- font-family: "Lato";
134
- }
135
-
136
- .dslc-tut-bubble-content {
137
- margin: 30px 0 23px;
138
- border-top: 1px solid #e5e5e5;
139
- padding-top: 23px;
140
- color: #9e9e9e;
141
- font-size: 14px;
142
- line-height: 28px;
143
- }
144
-
145
- .dslc-tut-proceed,
146
- .dslc-tut-proceed-secondary {
147
- background: #4cc12d;
148
- border-radius: 3px;
149
- cursor: pointer;
150
- color: #fff;
151
- display: inline-block;
152
- font-size: 13px;
153
- font-family: "Open Sans", sans-serif;
154
- font-weight: bold;
155
- line-height: 1;
156
- padding: 13px 15px;
157
- text-transform: uppercase;
158
- text-decoration: none;
159
- }
160
-
161
- .dslc-tut-proceed-secondary {
162
- background: #366dc0;
163
- margin-right: 20px;
164
- }
165
-
166
- .dslc-tut-proceed .dslc-tut-icon {
167
- color: #96db83;
168
- margin-left: 10px;
169
- }
170
-
171
- .dslc-tut-proceed-secondary .dslc-tut-icon {
172
- color: rgba( 255, 255, 255, 0.3 );
173
- margin-left: 10px;
174
- }
175
-
176
- .dslc-tut-bubble-overlay {
177
- background: rgba( 255, 255, 255, 0.80 );
178
- display: none;
179
- position: fixed;
180
- top: 0;
181
- left: 0;
182
- right: 0;
183
- bottom: 0;
184
- z-index: 999999;
185
- height: 100%;
186
- }
187
-
188
- /**
189
- * Modal
190
- */
191
-
192
- .dslca-tut-modal {
193
- background: rgba( 255, 255, 255, 0.80 );
194
- display: block;
195
- position: fixed;
196
- top: 0;
197
- left: 0;
198
- right: 0;
199
- bottom: 0;
200
- z-index: 999999;
201
- height: 100%;
202
- }
203
-
204
- .dslca-tut-modal-content {
205
- background: #fff;
206
- border-radius: 3px;
207
- top: 55%;
208
- position: relative;
209
- width: 300px;
210
- margin: 0 auto;
211
- margin-top: -123px;
212
- padding: 40px;
213
- -moz-box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 0 7px rgba(0,0,0,.12); /* drop shadow and outer glow */
214
- -webkit-box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 0 7px rgba(0,0,0,.12); /* drop shadow and outer glow */
215
- opacity: 0;
216
- box-shadow: 0 2px 2px rgba(0,0,0,.04), 0 0 7px rgba(0,0,0,.12); /* drop shadow and outer glow */
217
- }
218
-
219
- .dslca-tut-modal-msg {
220
- text-align: center;
221
- }
222
-
223
- .dslca-tut-modal-title {
224
- color: #424242;
225
- display: block;
226
- font-family: "Lato";
227
- font-size: 16px;
228
- font-weight: bold;
229
- line-height: 1;
230
- margin-bottom: 22px;
231
- }
232
-
233
- .dslca-tut-modal-descr {
234
- color: #8a8a8a;
235
- display: block;
236
- font-family: "Lato";
237
- font-size: 13px;
238
- font-weight: normal;
239
- line-height: 22px;
240
- margin-bottom: 22px;
241
- }
242
-
243
- .dslca-tut-modal-actions {
244
- text-align: center;
245
- }
246
-
247
- .dslca-tut-modal-cancel-hook,
248
- .dslca-tut-modal-confirm-hook {
249
- background: #e55f5f;
250
- border-radius: 3px;
251
- cursor: pointer;
252
- color: #fff;
253
- display: inline-block;
254
- font-size: 13px;
255
- font-family: "Open Sans", sans-serif;
256
- font-weight: bold;
257
- line-height: 1;
258
- padding: 13px 15px;
259
- text-transform: uppercase;
260
- text-decoration: none;
261
- }
262
-
263
- .dslca-tut-modal-confirm-hook {
264
- background: #9268a9;
265
- margin-right: 7px;
266
- }
267
-
268
- .dslca-tut-modal-cancel-hook {
269
- background: #06b0aa;
270
- }
271
-
272
- .dslca-tut-modal-actions .dslc-icon {
273
- color: rgba( 255, 255, 255, 0.5 );
274
- margin-right: 6px;
275
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/tutorials/tutorial.js DELETED
@@ -1,1200 +0,0 @@
1
- /**
2
- * Used for the tutorial on the sandbox
3
- */
4
-
5
- jQuery(window).load( function(){
6
-
7
- if ( jQuery('#dslc_tut_ch_three').data('post-id') == jQuery('#dslc_tut_settings').data('post-id') ) {
8
-
9
- if ( jQuery(window).width() > 1650 ) {
10
- // nadda
11
- } else if ( jQuery(window).width() > 1200 ) {
12
-
13
- dslc_scroller_next( jQuery('.dslca-modules .dslca-section-scroller') );
14
- dslc_scroller_next( jQuery('.dslca-modules .dslca-section-scroller') );
15
-
16
- } else {
17
-
18
- dslc_scroller_next( jQuery('.dslca-modules .dslca-section-scroller') );
19
- dslc_scroller_next( jQuery('.dslca-modules .dslca-section-scroller') );
20
- dslc_scroller_next( jQuery('.dslca-modules .dslca-section-scroller') );
21
-
22
- }
23
-
24
- }
25
-
26
- });
27
-
28
- jQuery(document).ready(function($){
29
-
30
- var dslcBubblePosCheck;
31
-
32
- $(document).on('click', '.dslc-tut-proceed-secondary', function(e) {
33
-
34
- e.preventDefault();
35
-
36
- $('.video-modal').fadeIn(500, function(){
37
- $('.videoThumb[href*="' + $('.video-modal').data('video-id') + '"]').click();
38
- $('.video-modal').fitVids();
39
- lc_calc_video_width();
40
- });
41
-
42
- });
43
-
44
- $(document).on('mousedown', '.dslc-tut-prevent, .dslca-action-disabled, .dslc-tut-panel-prevent', function(e) {
45
- $('.dslc-tut-bubble:not(:animated)').css({ marginTop : 5 });
46
- setTimeout( function(){
47
- $('.dslc-tut-bubble:not(:animated)').css({ marginTop : 10 });
48
- setTimeout( function(){
49
- $('.dslc-tut-bubble:not(:animated)').css({ marginTop : 5 });
50
- setTimeout( function(){
51
- $('.dslc-tut-bubble:not(:animated)').css({ marginTop : 0 });
52
- }, 20);
53
- }, 20);
54
- }, 20);
55
- });
56
-
57
- function dslc_tut_keep_up( dslcStep ) {
58
-
59
- dslcBubblePosCheck = setInterval( function(){
60
-
61
- var dslcBubble, dslcOffset, dslcLeftOffset, dslcTopOffset, dslcArrOffsetLeft, dslcType, dslcAnimation, dslcBubbleHeight, dslcTut, dslcTutIDVar;
62
-
63
- dslcBubble = $('.dslc-tut-bubble');
64
-
65
- if ( $(dslcStep.dslc_target).is(':visible') ) {
66
-
67
- dslcOffset = $(dslcStep.dslc_target).offset();
68
- dslcLeftOffset = dslcOffset.left + ( $(dslcStep.dslc_target).outerWidth() / 2 - dslcBubble.outerWidth() / 2 )
69
-
70
- /**
71
- * Stop from going outside ( left side )
72
- */
73
- if ( dslcLeftOffset < 0 ) {
74
- dslcArrOffsetLeft = ( dslcBubble.width() / 2 ) + dslcLeftOffset + $(dslcStep.dslc_target).width() / 2 + 15 + 3 + 'px';
75
- dslcLeftOffset = 15;
76
- }
77
-
78
- /**
79
- * Stop from going outise ( right side )
80
- */
81
- if ( ( dslcBubble.outerWidth() + dslcLeftOffset ) > $(window).width() ) {
82
-
83
- dslcArrOffsetLeft = ( dslcBubble.outerWidth() - $(dslcStep.dslc_target).width() / 2 ) - ( $(window).width() - ( $(dslcStep.dslc_target).offset().left + $(dslcStep.dslc_target).width() ) ) + 'px';
84
- if ( parseInt( dslcArrOffsetLeft ) > ( dslcBubble.outerWidth() - 20 ) ) {
85
- dslcArrOffsetLeft = dslcBubble.outerWidth() - 20 + 'px';
86
- }
87
- dslcLeftOffset = $(window).width() - dslcBubble.outerWidth() - 15;
88
-
89
- }
90
-
91
- /**
92
- * Position - Action/Information
93
- */
94
- if ( dslcStep.dslc_type == 'action' )
95
- dslcTopOffset = dslcOffset.top - dslcBubble.outerHeight() - 10;
96
- else
97
- dslcTopOffset = dslcBubbleOverlay.height() / 2 - dslcBubble.outerHeight() / 2 - 59;
98
-
99
- /**
100
- * Offset fix when WP admin bar is active
101
- */
102
- if ( $('#wpadminbar').length ) {
103
- dslcTopOffset -= $('#wpadminbar').outerHeight();
104
- }
105
-
106
- /**
107
- * Position - Bellow
108
- */
109
- if ( dslcStep[ 'dslc_pos' ] == 'bellow' ) {
110
- dslcTopOffset += $(dslcStep.dslc_target).outerHeight() + dslcBubble.outerHeight() + 20;
111
- }
112
-
113
- dslcBubble.stop().css({ top : dslcTopOffset, left : dslcLeftOffset });
114
- $("head").append($('<style>.dslc-tut-bubble:after, .dslc-tut-bubble:before { left: ' + dslcArrOffsetLeft + ' !important; }</style>'));
115
-
116
- }
117
-
118
- }, 200);
119
-
120
- }
121
-
122
- function dslc_tut_prevent( dslc_event, dslc_allow ) {
123
-
124
- false;
125
-
126
- }
127
-
128
- function dslc_tut_proceed() {
129
-
130
- var dslcBubble, dslcStepID, dslcStep, dslcOffset, dslcLeftOffset, dslcTopOffset, dslcArrOffsetLeft, dslcType, dslcAnimation, dslcBubbleHeight, dslcTut, dslcTutIDVar;
131
-
132
- dslcTut = dslcTuts[$('#dslc_tut_settings').data('post-id')];
133
- dslcBubble = $('.dslc-tut-bubble');
134
- dslcBubbleOverlay = $('.dslc-tut-bubble-overlay');
135
- dslcStepID = dslcBubble.data('step');
136
- dslcStep = dslcTut[ dslcStepID ];
137
- dslcType = dslcStep.dslc_type;
138
- dslcAnimation = dslcStep.dslc_animation;
139
-
140
-
141
- /* Function to call on start */
142
-
143
- if ( dslcStep[ 'dslc_func_start' ] !== undefined ) {
144
- dslcStep[ 'dslc_func_start']();
145
- }
146
-
147
- /* Position */
148
-
149
- if ( dslcStep[ 'dslc_pos' ] !== undefined ) {
150
- //nadda
151
- } else {
152
- dslcStep[ 'dslc_pos' ] = 'above';
153
- }
154
-
155
- /* Recalculate */
156
-
157
- if ( dslcStep[ 'dslc_keep_up' ] !== undefined ) {
158
- //nadda
159
- } else {
160
- dslcStep[ 'dslc_keep_up' ] = true;
161
- }
162
-
163
- if ( parseInt( dslcTut.length ) == ( dslcStepID + 0 ) ) {
164
- dslcBubble.hide();
165
- }
166
-
167
- if ( dslcStep[ 'dslc_parent_el' ] !== undefined ) {
168
- //nadda
169
- } else {
170
- dslcStep[ 'dslc_parent_el' ] = false;
171
- }
172
-
173
- // Increment the step
174
- dslcBubble.data( 'step', dslcStepID + 1 )
175
-
176
- // Add event for proceeding
177
-
178
- $(document).on( dslcStep.dslc_event, dslcStep.dslc_event_el, function(){
179
-
180
- // Remove this event ( no longer needed )
181
- $(document).off( dslcStep.dslc_event );
182
-
183
- if ( dslcStep[ 'dslc_func_end' ] !== undefined ) {
184
- dslcStep[ 'dslc_func_end']();
185
- }
186
-
187
- // Proceed to next step
188
- dslc_tut_proceed();
189
-
190
- });
191
-
192
- // Position the bubble
193
-
194
- var dslcStepCheck = setInterval( function(){
195
-
196
- if ( $(dslcStep.dslc_target).length
197
- && $(dslcStep.dslc_target).not(':animated')
198
- && ! $(dslcStep.dslc_target).is(':hidden')
199
- && $(dslcStep.dslc_target).offset().left <= ( $(window).width() - $(dslcStep.dslc_target).outerWidth() )
200
- && $(dslcStep.dslc_event_el).not(':animated')
201
- && ! $( 'body' ).hasClass('dslca-anim-in-progress')
202
- && ( $('.dslca-container').length == 0 || $('.dslca-container').css('bottom') == '0px' )
203
- ) {
204
-
205
- clearInterval( dslcBubblePosCheck );
206
- clearInterval( dslcStepCheck );
207
-
208
- // Limit to specific element
209
- if ( $( dslcStep.dslc_target ).css('position') == 'static' ) {
210
- $( dslcStep.dslc_target ).css('position', 'relative');
211
- }
212
-
213
- if ( $( dslcStep.dslc_event_el ).css('position') == 'static' ) {
214
- $( dslcStep.dslc_event_el ).css('position', 'relative');
215
- }
216
-
217
- $('.dslc-tut-revert-zindex').each(function(){
218
- $(this).css( 'z-index', $(this).data('orig-zindex') ).removeClass('dslc-tut-revert-zindex');
219
- });
220
-
221
- if ( dslcStep.dslc_target != 'body' ) {
222
- $( dslcStep.dslc_target ).data('orig-zindex', $( dslcStep.dslc_target ).css('z-index') ).addClass('dslc-tut-revert-zindex').css({ 'z-index' : 9999997 });
223
- }
224
-
225
- if ( $( dslcStep.dslc_event_el ).hasClass('dslc-tut-revert-zindex') ) {
226
- // nadda
227
- } else {
228
- $( dslcStep.dslc_event_el ).data('orig-zindex', $( dslcStep.dslc_event_el ).css('z-index') ).css({ 'z-index' : 9999997 }).addClass('dslc-tut-revert-zindex');
229
- }
230
-
231
- if ( $( dslcStep.dslc_parent_el ).hasClass('dslc-tut-revert-zindex') ) {
232
- // nadda
233
- } else {
234
- $( dslcStep.dslc_parent_el ).data('orig-zindex', $( dslcStep.dslc_parent_el ).css('z-index') ).css({ 'z-index' : 9999997 }).addClass('dslc-tut-revert-zindex');
235
- }
236
-
237
- // Animation
238
- if ( dslcAnimation == 'fade' )
239
- dslcBubble.css({ opacity : 0 });
240
-
241
- // Add bubble text
242
- dslcBubble.html( dslcStep.dslc_label );
243
-
244
- // Add type class
245
- dslcBubble.removeClass( 'dslc-tut-bubble-type-action dslc-tut-bubble-type-information' ).addClass( 'dslc-tut-bubble-type-' + dslcType );
246
- dslcBubble.removeClass( 'dslc-tut-bubble-pos-above dslc-tut-bubble-pos-bellow' ).addClass( 'dslc-tut-bubble-pos-' + dslcStep['dslc_pos'] );
247
-
248
- // If information show overlay
249
- if ( dslcType == 'information' )
250
- dslcBubbleOverlay.fadeIn(300);
251
- else
252
- dslcBubbleOverlay.fadeOut(200);
253
-
254
- dslcOffset = $(dslcStep.dslc_target).offset();
255
- dslcLeftOffset = dslcOffset.left + ( $(dslcStep.dslc_target).outerWidth() / 2 - dslcBubble.outerWidth() / 2 )
256
-
257
- var dslcArrOffsetLeft = '50%';
258
-
259
- /**
260
- * Stop from going outside ( left side )
261
- */
262
- if ( dslcLeftOffset < 0 ) {
263
- dslcArrOffsetLeft = ( dslcBubble.width() / 2 ) + dslcLeftOffset + $(dslcStep.dslc_target).width() / 2 + 15 + 3 + 'px';
264
- dslcLeftOffset = 15;
265
- }
266
-
267
- /**
268
- * Stop from going outise ( right side )
269
- */
270
- if ( ( dslcBubble.outerWidth() + dslcLeftOffset ) > $(window).width() ) {
271
-
272
- dslcArrOffsetLeft = ( dslcBubble.outerWidth() - $(dslcStep.dslc_target).width() / 2 ) - ( $(window).width() - ( $(dslcStep.dslc_target).offset().left + $(dslcStep.dslc_target).width() ) ) + 'px';
273
- dslcLeftOffset = $(window).width() - dslcBubble.outerWidth() - 15;
274
-
275
- }
276
-
277
- /**
278
- * Position - Action/Information
279
- */
280
- if ( dslcType == 'action' )
281
- dslcTopOffset = dslcOffset.top - dslcBubble.outerHeight() - 10;
282
- else
283
- dslcTopOffset = dslcBubbleOverlay.height() / 2 - dslcBubble.outerHeight() / 2 - 59;
284
-
285
- /**
286
- * Position - Bellow
287
- */
288
- if ( dslcStep[ 'dslc_pos' ] == 'bellow' ) {
289
- dslcTopOffset += $(dslcStep.dslc_target).outerHeight() + dslcBubble.outerHeight() + 20;
290
- }
291
-
292
- /**
293
- * Animation - Fade/Slide
294
- */
295
- if ( dslcAnimation == 'fade' ) {
296
- dslcBubble.stop().css({ top : dslcTopOffset + 20, left : dslcLeftOffset }).animate({ top : dslcTopOffset, opacity : 1 }, 400, function(){
297
- if ( dslcStep[ 'dslc_keep_up' ] && dslcStep['dslc_type'] == 'action' )
298
- dslc_tut_keep_up( dslcStep );
299
- });
300
- } else {
301
- dslcBubble.stop().css({ opacity : 1 }).animate({ top : dslcTopOffset, left : dslcLeftOffset }, 400, function(){
302
- if ( dslcStep[ 'dslc_keep_up' ] && dslcStep['dslc_type'] == 'action' )
303
- dslc_tut_keep_up( dslcStep );
304
- });
305
- }
306
-
307
- /**
308
- * CSS Arrow
309
- */
310
- $("head").append($('<style>.dslc-tut-bubble:after, .dslc-tut-bubble:before { left: ' + dslcArrOffsetLeft + ' !important; }</style>'));
311
-
312
- }
313
-
314
- }, 300);
315
-
316
- }
317
-
318
- // Add the tut bubble
319
- jQuery('body').append('<div class="dslc-tut-prevent"></div><div class="dslc-tut-bubble-overlay"></div><div class="dslc-tut-bubble" data-step="0"></div>');
320
- jQuery('.dslca-container').append('<div class="dslc-tut-panel-prevent"></div>');
321
-
322
- var dslcTutChOne = jQuery('#dslc_tut_ch_one').data('post-id'),
323
- dslcTutChTwo = jQuery('#dslc_tut_ch_two').data('post-id'),
324
- dslcTutChThree = jQuery('#dslc_tut_ch_three').data('post-id'),
325
- dslcTutChFour = jQuery('#dslc_tut_ch_four').data('post-id'),
326
- dslcTutChTwoLink = jQuery('#dslc_tut_ch_two_link').data('url'),
327
- dslcTutChThreeLink = jQuery('#dslc_tut_ch_three_link').data('url'),
328
- dslcTutChFourLink = jQuery('#dslc_tut_ch_four_link').data('url');
329
-
330
- var dslcTuts = [];
331
-
332
- dslcTuts[ dslcTutChOne ] = [
333
- {
334
- 'dslc_type' : 'information',
335
- 'dslc_label' : '<span class="dslc-tut-bubble-title">Welcome</span>'
336
- + '<div class="dslc-tut-bubble-content">'
337
- + 'Welcome to the <strong style="color: #06b2ac;">Live Composer</strong> interactive <strong style="color: #9268a9;">tutorial</strong>.<br>'
338
- + 'In this step by step guide, we will show you some of the core functionalities of this plugin.<br>'
339
- + '</div>'
340
- + '<a href="#" class="dslc-tut-proceed">Start <strong>CHAPTER ONE</strong><span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
341
- 'dslc_target' : 'body',
342
- 'dslc_event_el' : '.dslc-tut-proceed',
343
- 'dslc_event' : 'click.dslc_tut_modules_info',
344
- 'dslc_animation' : 'fade',
345
- },
346
- {
347
- 'dslc_type' : 'information',
348
- 'dslc_label' : '<span class="dslc-tut-bubble-title">1. Row</span>'
349
- + '<span class="dslc-tut-bubble-descr">1/3 Adding a Row</span>'
350
- + '<div class="dslc-tut-bubble-content">'
351
- + 'Here is the structure of Live Composer: <strong style="color: #e5855f;">Rows</strong> > <strong style="color: #5890e5;">Module Areas</strong> > <strong style="color:#58bce5;">Modules</strong>.<br>Let\'s start by adding a <strong style="color: #e5855f;">row</strong>.</div>'
352
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
353
- 'dslc_target' : 'body',
354
- 'dslc_event_el' : '.dslc-tut-proceed',
355
- 'dslc_event' : 'click.dslc_tut_modules_info',
356
- 'dslc_animation' : 'fade'
357
- },
358
- { /* bubble */
359
- 'dslc_type' : 'action',
360
- 'dslc_label' : 'Create your first <strong style="color: #e5855f;">row</strong>, it will be automatically populated with a <strong style="color: #5890e5;">modules area</strong>.',
361
- 'dslc_target' : '.dslca-add-modules-section-hook',
362
- 'dslc_event_el' : '.dslca-add-modules-section-hook',
363
- 'dslc_event' : 'click.dslc_tut_add_row',
364
- 'dslc_animation' : 'fade',
365
- 'dslc_func_end' : function(){
366
- $('.dslca-add-modules-section-hook').addClass('dslca-action-disabled');
367
- }
368
- },
369
- { /* info */
370
- 'dslc_type' : 'information',
371
- 'dslc_label' : '<span class="dslc-tut-bubble-title">1. Row</span><span class="dslc-tut-bubble-descr">2/3 Row Options</span><div class="dslc-tut-bubble-content">Now that you have a <strong style="color: #e5855f;">row</strong> you could start adding <strong style="color: #5890e5;">module areas</strong> and <strong style="color:#58bce5;">modules</strong>.<br>But first, let\'s see what can be done with a <strong style="color: #e5855f;">row</strong>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
372
- 'dslc_target' : 'body',
373
- 'dslc_event_el' : '.dslc-tut-proceed',
374
- 'dslc_event' : 'click.dslc_tut_modules_info',
375
- 'dslc_animation' : 'fade',
376
- 'dslc_func_start' : function(){
377
-
378
- }
379
- },
380
- {
381
- 'dslc_type' : 'action',
382
- 'dslc_label' : 'When you rollover a <strong style="color: #e5855f;">row</strong> some options show up. Those are : <strong style="color: #06b2ac;">Edit</strong> - <strong style="color: #06b2ac;">Duplicate</strong> - <strong style="color: #06b2ac;">Move</strong> - <strong style="color: #06b2ac;">Delete</strong>. For now, let\'s click on the cog icon to edit this <strong style="color: #e5855f;">row</strong>',
383
- 'dslc_target' : '.dslc-modules-section',
384
- 'dslc_event_el' : '.dslc-modules-section',
385
- 'dslc_event' : 'mouseenter.dslc_tut_add_row',
386
- 'dslc_animation' : 'fade',
387
- 'dslc_pos' : 'bellow',
388
- 'dslc_func_start' : function() {
389
- $('.dslca-modules-area-manage').css({ 'visibility' : 'hidden' });
390
- $('.dslca-modules-section-manage .dslca-manage-action').addClass('dslca-action-disabled');
391
- $('.dslca-edit-modules-section-hook').removeClass('dslca-action-disabled');
392
- }
393
- },
394
- {
395
- 'dslc_type' : 'action',
396
- 'dslc_label' : 'When you rollover a <strong style="color: #e5855f;">row</strong> some options show up. Those are : <strong style="color: #06b2ac;">Edit</strong> - <strong style="color: #06b2ac;">Duplicate</strong> - <strong style="color: #06b2ac;">Move</strong> - <strong style="color: #06b2ac;">Delete</strong>. For now, let\'s click on the cog icon to edit this <strong style="color: #e5855f;">row</strong>',
397
- 'dslc_target' : '.dslca-edit-modules-section-hook',
398
- 'dslc_event_el' : '.dslca-edit-modules-section-hook',
399
- 'dslc_parent_el' : '.dslc-modules-section',
400
- 'dslc_event' : 'click.dslc_tut_add_row',
401
- 'dslc_animation' : 'slide',
402
- 'dslc_pos' : 'bellow',
403
- 'dslc_func_end' : function(){
404
- $('.dslca-modules-section-manage .dslca-manage-action').removeClass('dslca-action-disabled');
405
- }
406
- },
407
- { /* Make the options are visible */
408
- 'dslc_type' : 'information',
409
- 'dslc_label' : '<span class="dslc-tut-bubble-title">1. Row</span><span class="dslc-tut-bubble-descr">3/3 Options Panel</span><div class="dslc-tut-bubble-content">'
410
- + 'Every time you want to edit a <strong style="color: #e5855f;">row</strong> or a <strong style="color:#58bce5;">module</strong>, the <strong style="color: #9268a9;">Options Panel</strong> will appear.<br>'
411
- + 'There are multiple options, for now let\'s change the <strong>background color</strong> and the <strong>padding</strong> for this <strong style="color: #e5855f;">row</strong>.'
412
- + '</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
413
- 'dslc_target' : 'body',
414
- 'dslc_event_el' : '.dslc-tut-proceed',
415
- 'dslc_event' : 'click.dslc_tut_modules_info',
416
- 'dslc_animation' : 'fade',
417
- },
418
- {
419
- 'dslc_type' : 'action',
420
- 'dslc_label' : 'First, let\'s change the <strong>background color</strong>, choose any color and <a class="dslc-tut-proceed-2" href="#"><strong>click here to continue</strong></a> once you are done.',
421
- 'dslc_target' : '.dslca-modules-section-edit-option[data-id="bg_color"]',
422
- 'dslc_event_el' : '.dslca-modules-section-edit-option[data-id="bg_color"] .sp-replacer',
423
- 'dslc_event' : 'mouseup.dslc_tut_modules_info',
424
- 'dslc_animation' : 'fade',
425
- 'dslc_parent_el' : '.dslca-container',
426
- 'dslc_func_start' : function(){
427
- $('.dslc-tut-panel-prevent').show();
428
- $('.dslca-modules-section-edit-option[data-id="bg_color"]').css( 'z-index', 1000001 );
429
- },
430
- },
431
- {
432
- 'dslc_type' : 'action',
433
- 'dslc_label' : 'First, let\'s change the <strong>background color</strong>, choose any color and <a class="dslc-tut-proceed-2" href="#"><strong>click here to continue</strong></a> once you are done.',
434
- 'dslc_target' : '.sp-container:visible',
435
- 'dslc_event_el' : '.dslc-tut-proceed-2',
436
- 'dslc_event' : 'click.dslc_tut_modules_info',
437
- 'dslc_parent_el' : '.dslca-container',
438
- 'dslc_animation' : 'slide',
439
- 'dslc_func_end' : function(){
440
- $('.dslc-tut-panel-prevent').hide();
441
- $('.dslca-container').css( 'z-index', 99999 );
442
- $('.dslca-modules-section-edit-option[data-id="bg_color"]').css( 'z-index', 'auto' );
443
- }
444
- },
445
- {
446
- 'dslc_type' : 'action',
447
- 'dslc_label' : 'Good, now you will need to <strong style="color: #9268a9;">drag</strong> this scrollbar to the right to access the <strong style="color:#06b2ac;">padding vertical</strong> options.',
448
- 'dslc_target' : '.jspDrag',
449
- 'dslc_event_el' : '.dslca-container',
450
- 'dslc_event' : 'mouseup.dslc_tut_modules_info',
451
- 'dslc_parent_el' : '.dslca-container',
452
- 'dslc_animation' : 'slide',
453
- 'dslc_keep_up' : false,
454
- 'dslc_func_start' : function(){
455
- $('.dslc-tut-panel-prevent').show();
456
- $('.jspHorizontalBar').css( 'z-index', 1000001 );
457
- },
458
- },
459
- {
460
- 'dslc_type' : 'action',
461
- 'dslc_label' : 'Go ahead and change this <strong style="color:#06b2ac;">padding value</strong>, this will add space vertically on this whole <strong style="color: #e5855f;">row</strong>.',
462
- 'dslc_target' : '.dslca-modules-section-edit-option[data-id="padding"]',
463
- 'dslc_event_el' : '.dslca-modules-section-edit-option[data-id="padding"]',
464
- 'dslc_parent_el' : '.dslca-container',
465
- 'dslc_event' : 'mouseup.dslc_tut_modules_info',
466
- 'dslc_animation' : 'slide',
467
- 'dslc_func_start' : function(){
468
- $('.jspHorizontalBar').css( 'z-index', 'auto' );
469
- $('.dslca-modules-section-edit-option[data-id="padding"]').css( 'z-index', 1000001 );
470
- },
471
- 'dslc_func_end' : function(){
472
- $('.dslca-row-edit-save').css( 'z-index', 1000001 );
473
- },
474
- },
475
- {
476
- 'dslc_type' : 'action',
477
- 'dslc_label' : 'Everytime you are done editing an element, you have to <span style="color: #78ca4f; font-weight:bold;">confirm</span> or <span style="color: #e55f5f; font-weight:bold;">cancel</span> those changes. Let\'s <span style="color: #78ca4f; font-weight:bold;">confirm</span> these changes now.',
478
- 'dslc_target' : '.dslca-row-edit-save',
479
- 'dslc_event_el' : '.dslca-row-edit-save',
480
- 'dslc_parent_el' : '.dslca-container',
481
- 'dslc_event' : 'click.dslc_tut_modules_info',
482
- 'dslc_animation' : 'fade',
483
- 'dslc_func_start' : function(){
484
-
485
- },
486
- },
487
- {
488
- 'dslc_type' : 'information',
489
- 'dslc_label' : '<span class="dslc-tut-bubble-title">1. Row</span><span class="dslc-tut-bubble-descr">finished</span><div class="dslc-tut-bubble-content">'
490
- + 'Congratulations on completing the first chapter of this <strong style="color: #9268a9;">tutorial</strong>.<br>'
491
- + 'Now that you know how to change options for a <strong style="color: #e5855f;">row</strong>, let\'s see what can be done with <strong style="color: #5890e5;">modules area</strong>.'
492
- + '</div>'
493
- + '<a href="' + dslcTutChTwoLink + '" class="dslc-tut-proceed dslca-link">start chapter two<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
494
- 'dslc_target' : 'body',
495
- 'dslc_event_el' : '.dslc-tut-proceed',
496
- 'dslc_event' : 'click.dslc_tut_modules_info',
497
- 'dslc_animation' : 'fade',
498
- 'dslc_func_start' : function(){
499
- $('.dslc-tut-panel-prevent').hide();
500
- $('.dslca-module-edit-save').css( 'z-index', 'auto' );
501
- },
502
- },
503
-
504
- ];
505
-
506
- dslcTuts[ dslcTutChTwo ] = [
507
-
508
- {
509
- 'dslc_type' : 'information',
510
- 'dslc_label' : '<span class="dslc-tut-bubble-title">2. Modules Area</span>'
511
- + '<span class="dslc-tut-bubble-descr">1/5 Column System</span>'
512
- + '<div class="dslc-tut-bubble-content">'
513
- + 'In this chapter, we will show you how to work with <strong style="color: #5890e5;">module areas</strong>.'
514
- + '<br>First thing, let\'s see how you can build your own <strong style="color: #06b2ac;">layout</strong>.'
515
- + '</div>'
516
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
517
- 'dslc_target' : 'body',
518
- 'dslc_event_el' : '.dslc-tut-proceed',
519
- 'dslc_event' : 'click.dslc_tut_modules_info',
520
- 'dslc_animation' : 'fade',
521
- 'dslc_func_start' : function(){
522
- $('.dslca-modules-section-manage').css({ 'visibility' : 'hidden' });
523
- }
524
- },
525
- {
526
- 'dslc_type' : 'action',
527
- 'dslc_label' : 'When you rollover a <strong style="color: #5890e5;">modules area</strong> some options show up. Those are : <strong style="color: #06b2ac;">Duplicate</strong> - <strong style="color: #06b2ac;">Move</strong> - <strong style="color: #06b2ac;">Layout</strong> - <strong style="color: #06b2ac;">Delete</strong>.<br>For now, let\'s click on the <strong>layout icon</strong> to change the width of this <strong style="color: #5890e5;">modules area</strong>.',
528
- 'dslc_target' : '.dslc-modules-area',
529
- 'dslc_event_el' : '.dslc-modules-area',
530
- 'dslc_event' : 'mouseenter.dslc_tut_add_row',
531
- 'dslc_animation' : 'fade',
532
- 'dslc_pos' : 'above'
533
- },
534
- {
535
- 'dslc_type' : 'action',
536
- 'dslc_label' : 'When you rollover a <strong style="color: #5890e5;">modules area</strong> some options show up. Those are : <strong style="color: #06b2ac;">Duplicate</strong> - <strong style="color: #06b2ac;">Move</strong> - <strong style="color: #06b2ac;">Layout</strong> - <strong style="color: #06b2ac;">Delete</strong>.<br>For now, let\'s click on the <strong>layout icon</strong> to change the width of this <strong style="color: #5890e5;">modules area</strong>.',
537
- 'dslc_target' : '.dslca-change-width-modules-area-hook .dslc-icon-columns',
538
- 'dslc_event_el' : '.dslca-change-width-modules-area-hook',
539
- 'dslc_event' : 'click.dslc_tut_add_row',
540
- 'dslc_parent_el' : '.dslc-modules-area',
541
- 'dslc_animation' : 'slide',
542
- 'dslc_pos' : 'above',
543
- 'dslc_func_start' : function(){
544
- $('.dslca-modules-area-manage').addClass('dslc-tut-force-show');
545
- $('.dslca-delete-modules-area-hook, .dslca-move-modules-area-hook, .dslca-copy-modules-area-hook').addClass('dslca-action-disabled');
546
- },
547
- 'dslc_func_end' : function(){
548
-
549
- }
550
- },
551
- {
552
- 'dslc_type' : 'action',
553
- 'dslc_label' : 'Click on this <strong>6/12</strong> layout option.',
554
- 'dslc_target' : '.dslca-change-width-modules-area-options span[data-size="6"]',
555
- 'dslc_event_el' : '.dslca-change-width-modules-area-options span[data-size="6"]',
556
- 'dslc_event' : 'click.dslc_tut_add_row',
557
- 'dslc_parent_el' : '.dslc-modules-section',
558
- 'dslc_animation' : 'fade',
559
- 'dslc_pos' : 'bellow',
560
- 'dslc_func_start' : function(){
561
- $('.dslca-change-width-modules-area-options span, .dslca-change-width-modules-area-hook').addClass('dslca-action-disabled');
562
- $('.dslca-change-width-modules-area-options span[data-size="6"]').removeClass('dslca-action-disabled');
563
- },
564
- 'dslc_func_end' : function(){
565
- $('.dslca-change-width-modules-area-options span, .dslca-change-width-modules-area-hook').removeClass('dslca-action-disabled');
566
- $('.dslca-delete-modules-area-hook, .dslca-move-modules-area-hook, .dslca-copy-modules-area-hook').removeClass('dslca-action-disabled');
567
- }
568
- },
569
- {
570
- 'dslc_type' : 'information',
571
- 'dslc_label' : '<span class="dslc-tut-bubble-title">2. Modules Area</span>'
572
- + '<span class="dslc-tut-bubble-descr">2/5 Duplicating</span>'
573
- + '<div class="dslc-tut-bubble-content">'
574
- + 'Now that you\'ve changed the <strong>layout</strong> of the <strong style="color: #5890e5;">modules area</strong>, let\'s <strong style="color:#06b2ac;">duplicate</strong> it.'
575
- + '</div>'
576
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
577
- 'dslc_target' : 'body',
578
- 'dslc_event_el' : '.dslc-tut-proceed',
579
- 'dslc_event' : 'click.dslc_tut_modules_info',
580
- 'dslc_animation' : 'fade',
581
- 'dslc_func_start' : function(){
582
- $('.dslca-modules-area-manage').removeClass('dslc-tut-force-show');
583
- }
584
- },
585
- {
586
- 'dslc_type' : 'action',
587
- 'dslc_label' : '<strong style="color: #9268a9;">Rollover</strong> the <strong style="color: #5890e5;">modules area</strong> to make the options appear.',
588
- 'dslc_target' : '.dslc-modules-area',
589
- 'dslc_event_el' : '.dslc-modules-area',
590
- 'dslc_event' : 'mouseenter.dslc_tut_add_row',
591
- 'dslc_parent_el' : '.dslc-modules-area',
592
- 'dslc_animation' : 'fade',
593
- 'dslc_pos' : 'above'
594
- },
595
- {
596
- 'dslc_type' : 'action',
597
- 'dslc_label' : 'Now click on the <strong style="color:#06b2ac;">duplicate</strong> icon.',
598
- 'dslc_target' : '.dslca-copy-modules-area-hook',
599
- 'dslc_event_el' : '.dslca-copy-modules-area-hook',
600
- 'dslc_event' : 'click.dslc_tut_add_row',
601
- 'dslc_parent_el' : '.dslc-modules-area',
602
- 'dslc_animation' : 'slide',
603
- 'dslc_pos' : 'bellow',
604
- 'dslc_func_start' : function(){
605
- $('.dslca-modules-area-manage').addClass('dslc-tut-force-show');
606
- },
607
- 'dslc_func_end' : function(){
608
- $('.dslca-copy-modules-area-hook').addClass('dslca-action-disabled');
609
- }
610
- },
611
- {
612
- 'dslc_type' : 'information',
613
- 'dslc_label' : '<span class="dslc-tut-bubble-title">2. Modules Area</span>'
614
- + '<span class="dslc-tut-bubble-descr">3/5 Adding Area</span>'
615
- + '<div class="dslc-tut-bubble-content">'
616
- + 'It\'s time to add a new <strong style="color: #5890e5;">modules area</strong>.'
617
- + '<br>Below are the available <strong style="color:#58bce5;">modules</strong>. For now, let\'s add a new <strong style="color: #5890e5;">modules area</strong>.'
618
- + '</div>'
619
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
620
- 'dslc_target' : 'body',
621
- 'dslc_event_el' : '.dslc-tut-proceed',
622
- 'dslc_event' : 'click.dslc_tut_modules_info',
623
- 'dslc_animation' : 'fade',
624
- 'dslc_func_start' : function(){
625
- $('.dslca-modules-area-manage').removeClass('dslc-tut-force-show');
626
- $('.dslc-modules-area').css( 'z-index', 'auto' );
627
- $('.dslca-copy-modules-area-hook').removeClass('dslca-action-disabled');
628
- }
629
- },
630
- {
631
- 'dslc_type' : 'action',
632
- 'dslc_label' : '<strong style="color: #06b2ac;">Click &amp; Drag</strong> this item and release it over the <strong style="color: #e5855f;">row</strong>.',
633
- 'dslc_target' : '.dslca-module[data-id="DSLC_M_A"]',
634
- 'dslc_event_el' : '.dslca-module[data-id="DSLC_M_A"]',
635
- 'dslc_event' : 'mousedown.dslc_tut_add_row',
636
- 'dslc_parent_el' : '.dslca-container',
637
- 'dslc_animation' : 'fade',
638
- 'dslc_pos' : 'above',
639
- 'dslc_func_start' : function(){
640
- $('.dslc-tut-panel-prevent').show();
641
- $('.dslca-module[data-id="DSLC_M_A"]').css( 'z-index', 1000001 );
642
- },
643
- 'dslc_func_end' : function(){
644
- $('.dslc-tut-panel-prevent').hide();
645
- $('.dslca-container').css( 'z-index', 99999 );
646
- $('.dslca-module[data-id="DSLC_M_A"]').css( 'z-index', 'auto' );
647
- }
648
- },
649
- {
650
- 'dslc_type' : 'action',
651
- 'dslc_label' : '<strong style="color: #06b2ac;">Click &amp; Drag</strong> this item and release it over the <strong style="color: #e5855f;">row</strong>.',
652
- 'dslc_target' : '.dslc-modules-section',
653
- 'dslc_event_el' : $(document),
654
- 'dslc_event' : 'mouseup.dslc_tut_add_row',
655
- 'dslc_animation' : 'slide',
656
- 'dslc_pos' : 'bellow',
657
- 'dslc_func_end' : function(){
658
- if ( $('body').hasClass('dslca-anim-in-progress') ) {
659
- // nadda
660
- } else {
661
- $('.dslc-tut-bubble').data('step', 8);
662
- }
663
- }
664
- },
665
- {
666
- 'dslc_type' : 'information',
667
- 'dslc_label' : '<span class="dslc-tut-bubble-title">2. Modules Area</span>'
668
- + '<span class="dslc-tut-bubble-descr">4/5 Reordering</span>'
669
- + '<div class="dslc-tut-bubble-content">'
670
- + '<strong style="color: #5890e5;">Modules areas</strong>, like <strong style="color: #e5855f;">rows</strong>, can be <strong style="color: #9268a9;">moved</strong>. Let\'s <strong style="color: #9268a9;">move</strong> the <strong style="color: #5890e5;">modules area</strong> you just created.'
671
- + '</div>'
672
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
673
- 'dslc_target' : 'body',
674
- 'dslc_event_el' : '.dslc-tut-proceed',
675
- 'dslc_event' : 'click.dslc_tut_modules_info',
676
- 'dslc_animation' : 'fade',
677
- },
678
- {
679
- 'dslc_type' : 'action',
680
- 'dslc_label' : '<strong style="color: #9268a9;">Rollover</strong> the <strong style="color: #5890e5;">modules area</strong> to make the options appear.',
681
- 'dslc_target' : '.dslc-modules-area.dslc-12-col',
682
- 'dslc_event_el' : '.dslc-modules-area.dslc-12-col',
683
- 'dslc_event' : 'mouseenter.dslc_tut_add_row',
684
- 'dslc_parent_el' : '.dslc-modules-area.dslc-12-col',
685
- 'dslc_animation' : 'fade',
686
- 'dslc_pos' : 'above'
687
- },
688
- {
689
- 'dslc_type' : 'action',
690
- 'dslc_label' : 'Now <strong style="color: #06b2ac;">Click &amp; Drag</strong> the move icon to move the <strong style="color: #5890e5;">modules area</strong> on top of the 2 others.',
691
- 'dslc_target' : '.dslc-modules-area.dslc-12-col .dslca-move-modules-area-hook',
692
- 'dslc_event_el' : '.dslc-modules-area.dslc-12-col .dslca-move-modules-area-hook',
693
- 'dslc_event' : 'mousedown.dslc_tut_add_row',
694
- 'dslc_parent_el' : '.dslc-modules-area.dslc-12-col',
695
- 'dslc_animation' : 'slide',
696
- 'dslc_pos' : 'bellow',
697
- 'dslc_func_start' : function(){
698
- $('.dslc-modules-area.dslc-12-col .dslca-modules-area-manage').addClass('dslc-tut-force-show');
699
- $('.dslc-modules-area.dslc-12-col .dslca-copy-modules-area-hook').addClass('dslca-action-disabled');
700
- },
701
- 'dslc_func_end' : function(){
702
- $('.dslc-modules-area.dslc-12-col .dslca-copy-modules-area-hook').removeClass('dslca-action-disabled');
703
- }
704
- },
705
- {
706
- 'dslc_type' : 'action',
707
- 'dslc_label' : 'Now <strong style="color: #06b2ac;">Click &amp; Drag</strong> the move icon to move the <strong style="color: #5890e5;">modules area</strong> on top of the 2 others.',
708
- 'dslc_target' : '.dslc-modules-section',
709
- 'dslc_event_el' : $(document),
710
- 'dslc_event' : 'mouseup.dslc_tut_add_row',
711
- 'dslc_parent_el' : '.dslc-modules-area',
712
- 'dslc_animation' : 'slide',
713
- 'dslc_pos' : 'above',
714
- 'dslc_func_end' : function(){
715
- if ( $('.dslc-modules-area:first-child').hasClass('dslc-12-col') ) {
716
- // nadda
717
- } else {
718
- $('.dslc-tut-bubble').data('step', 12);
719
- }
720
- }
721
- },
722
- {
723
- 'dslc_type' : 'information',
724
- 'dslc_label' : '<span class="dslc-tut-bubble-title">2. Modules Area</span>'
725
- + '<span class="dslc-tut-bubble-descr">5/5 Deleting</span>'
726
- + '<div class="dslc-tut-bubble-content">'
727
- + 'The last thing that you can do with <strong style="color: #5890e5;">modules areas</strong> is to <strong style="color: #e55f5f;">delete</strong> them.'
728
- + '</div>'
729
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
730
- 'dslc_target' : 'body',
731
- 'dslc_event_el' : '.dslc-tut-proceed',
732
- 'dslc_event' : 'click.dslc_tut_modules_info',
733
- 'dslc_animation' : 'fade',
734
- 'dslc_func_start' : function(){
735
- $('.dslc-modules-area.dslc-12-col .dslca-modules-area-manage').removeClass('dslc-tut-force-show');
736
- }
737
- },
738
- {
739
- 'dslc_type' : 'action',
740
- 'dslc_label' : '<strong style="color: #9268a9;">Rollover</strong> the <strong style="color: #5890e5;">modules area</strong> to make the options appear.',
741
- 'dslc_target' : '.dslc-modules-area.dslc-12-col',
742
- 'dslc_event_el' : '.dslc-modules-area.dslc-12-col',
743
- 'dslc_event' : 'mouseenter.dslc_tut_add_row',
744
- 'dslc_parent_el' : '.dslc-modules-area',
745
- 'dslc_animation' : 'fade',
746
- 'dslc_pos' : 'above',
747
- },
748
- {
749
- 'dslc_type' : 'action',
750
- 'dslc_label' : 'Now click the <strong style="color: #e55f5f;">delete</strong> icon to delete the <strong style="color: #5890e5;">modules area</strong>.',
751
- 'dslc_target' : '.dslc-modules-area.dslc-12-col .dslca-delete-modules-area-hook',
752
- 'dslc_event_el' : '.dslc-modules-area.dslc-12-col .dslca-delete-modules-area-hook',
753
- 'dslc_event' : 'click.dslc_tut_add_row',
754
- 'dslc_parent_el' : '.dslc-modules-area.dslc-12-col',
755
- 'dslc_animation' : 'slide',
756
- 'dslc_pos' : 'bellow',
757
- 'dslc_func_start' : function(){
758
- $('.dslc-modules-area.dslc-12-col .dslca-modules-area-manage').addClass('dslc-tut-force-show');
759
- $('.dslca-copy-modules-area-hook, .dslca-move-modules-area-hook, .dslca-change-width-modules-area-hook').addClass('dslca-action-disabled');
760
- },
761
- 'dslc_func_end' : function(){
762
- $('.dslca-copy-modules-area-hook, .dslca-move-modules-area-hook, .dslca-change-width-modules-area-hook').removeClass('dslca-action-disabled');
763
- }
764
- },
765
- {
766
- 'dslc_type' : 'action',
767
- 'dslc_label' : 'Click <strong>CONFIRM</strong> to confirm the deletion of the modules area..',
768
- 'dslc_target' : '.dslca-prompt-modal-confirm-hook',
769
- 'dslc_event_el' : '.dslca-prompt-modal-confirm-hook',
770
- 'dslc_event' : 'click.dslc_tut_add_row',
771
- 'dslc_parent_el' : '.dslca-prompt-modal',
772
- 'dslc_animation' : 'slide',
773
- 'dslc_pos' : 'bellow',
774
- 'dslc_func_start' : function(){
775
-
776
- },
777
- 'dslc_func_end' : function(){
778
-
779
- }
780
- },
781
- {
782
- 'dslc_type' : 'information',
783
- 'dslc_label' : '<span class="dslc-tut-bubble-title">2. Modules Area</span>'
784
- + '<span class="dslc-tut-bubble-descr">finished</span>'
785
- + '<div class="dslc-tut-bubble-content">'
786
- + 'Congrats on completing <strong>Chapter Two</strong> of this interactive <strong style="color: #9268a9;">tutorial</strong>.'
787
- + '<br>Now that you know everything about <strong style="color: #e5855f;">rows</strong> and <strong style="color: #5890e5;">modules areas</strong>, it\'s time for you to learn how to use <strong style="color:#58bce5;">modules</strong>.'
788
- + '</div>'
789
- + '<a href="' + dslcTutChThreeLink + '" class="dslc-tut-proceed dslca-link">start chapter Three<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
790
- 'dslc_target' : 'body',
791
- 'dslc_event_el' : '.dslc-tut-proceed',
792
- 'dslc_event' : 'click.dslc_tut_modules_info',
793
- 'dslc_animation' : 'fade',
794
- 'dslc_func_start' : function(){
795
- $('.dslc-modules-area.dslc-12-col .dslca-modules-area-manage').removeClass('dslc-tut-force-show');
796
- }
797
- },
798
-
799
- ];
800
-
801
- dslcTuts[ dslcTutChThree ] = [
802
-
803
- {
804
- 'dslc_type' : 'information',
805
- 'dslc_label' : '<span class="dslc-tut-bubble-title">3. Modules</span>'
806
- + '<span class="dslc-tut-bubble-descr">1/3 Adding modules</span>'
807
- + '<div class="dslc-tut-bubble-content">'
808
- + 'In this chapter, we will show you how to use <strong style="color:#58bce5;">modules</strong>.'
809
- + '<br>These are the most important part of the <strong style="color: #06b2ac;">Live Composer</strong> and they will allow you to display your content.'
810
- + '<br>To start, let\'s add a <strong style="color:#58bce5;">module</strong>.'
811
- + '</div>'
812
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
813
- 'dslc_target' : 'body',
814
- 'dslc_event_el' : '.dslc-tut-proceed',
815
- 'dslc_event' : 'click.dslc_tut_modules_info',
816
- 'dslc_animation' : 'fade'
817
- },
818
- {
819
- 'dslc_type' : 'action',
820
- 'dslc_label' : '<strong style="color: #06b2ac;">Click &amp; Drag</strong> this item and release it over the <strong style="color: #5890e5;">modules area</strong>.',
821
- 'dslc_target' : '.dslca-module[data-id="DSLC_Blog"]',
822
- 'dslc_event_el' : '.dslca-module[data-id="DSLC_Blog"]',
823
- 'dslc_event' : 'mousedown.dslc_tut_add_row',
824
- 'dslc_parent_el' : '.dslca-container',
825
- 'dslc_animation' : 'fade',
826
- 'dslc_pos' : 'above',
827
- 'dslc_func_start' : function(){
828
- $('.dslc-tut-panel-prevent').show();
829
- $('.dslca-module[data-id="DSLC_Blog"]').css( 'z-index', 1000001 );
830
- },
831
- },
832
- {
833
- 'dslc_type' : 'action',
834
- 'dslc_label' : '<strong style="color: #06b2ac;">Click &amp; Drag</strong> this item and release it over the <strong style="color: #5890e5;">modules area</strong>.',
835
- 'dslc_target' : '.dslc-modules-area',
836
- 'dslc_event_el' : $(document),
837
- 'dslc_event' : 'mouseup.dslc_tut_add_row',
838
- 'dslc_animation' : 'slide',
839
- 'dslc_pos' : 'above',
840
- 'dslc_func_end' : function(){
841
- $('.dslc-tut-panel-prevent').hide();
842
- $('.dslca-module[data-id="DSLC_Blog"]').css( 'z-index', 'auto' );
843
- if ( $('body').hasClass('dslca-anim-in-progress') ) {
844
- // nadda
845
- } else {
846
- $('.dslc-tut-bubble').data('step', 1);
847
- }
848
- }
849
- },
850
- {
851
- 'dslc_type' : 'information',
852
- 'dslc_label' : '<span class="dslc-tut-bubble-title">3. Modules</span>'
853
- + '<div class="dslc-tut-bubble-content">'
854
- + 'Some modules will take the content that you created in the WordPress admin.'
855
- + '<br>This is the case for the <strong style="color:#58bce5;">blog module</strong>, it retreives the blog post that you have created.'
856
- + '</div>'
857
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
858
- 'dslc_target' : 'body',
859
- 'dslc_event_el' : '.dslc-tut-proceed',
860
- 'dslc_event' : 'click.dslc_tut_modules_info',
861
- 'dslc_animation' : 'fade'
862
- },
863
- {
864
- 'dslc_type' : 'information',
865
- 'dslc_label' : '<span class="dslc-tut-bubble-title">3. Modules</span>'
866
- + '<span class="dslc-tut-bubble-descr">2/3 Functionality</span>'
867
- + '<div class="dslc-tut-bubble-content">'
868
- + 'Every module has it\'s own set of options. There are <strong style="color: #9268a9;">Functionality</strong> and <strong style="color: #06b2ac;">Styling</strong> options.'
869
- + '<br>For now let\'s take a look at the <strong style="color: #9268a9;">Functionality</strong> options for the <strong style="color:#58bce5;">blog module</strong>.'
870
- + '</div>'
871
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
872
- 'dslc_target' : 'body',
873
- 'dslc_event_el' : '.dslc-tut-proceed',
874
- 'dslc_event' : 'click.dslc_tut_modules_info',
875
- 'dslc_animation' : 'fade'
876
- },
877
- {
878
- 'dslc_type' : 'action',
879
- 'dslc_label' : '<strong style="color: #9268a9;">Rollover</strong> the <strong style="color: #58bce5;">module</strong> to make the options appear and click on the <strong style="color:#06b2ac;">edit</strong> icon.',
880
- 'dslc_target' : '.dslca-module-edit-hook',
881
- 'dslc_event_el' : '.dslca-module-edit-hook',
882
- 'dslc_event' : 'click.dslc_tut_add_row',
883
- 'dslc_parent_el' : '.dslc-module-front',
884
- 'dslc_animation' : 'slide',
885
- 'dslc_pos' : 'above',
886
- 'dslc_func_start' : function(){
887
- $('.dslc-module-front').trigger('mouseenter');
888
- $('.dslca-copy-module-hook, .dslca-move-module-hook, .dslca-delete-module-hook').addClass('dslca-action-disabled');
889
- }
890
- },
891
- {
892
- 'dslc_type' : 'action',
893
- 'dslc_label' : 'Go ahead and change the <strong style="color:#06b2ac;">posts per row</strong> to <strong>2</strong>.',
894
- 'dslc_target' : '.dslca-module-edit-option[data-id="columns"]',
895
- 'dslc_event_el' : '.dslca-module-edit-option[data-id="columns"]',
896
- 'dslc_event' : 'change.dslc_tut_modules_info',
897
- 'dslc_parent_el' : '.dslca-container',
898
- 'dslc_animation' : 'fade',
899
- 'dslc_pos' : 'above',
900
- 'dslc_func_start' : function(){
901
- $('.dslca-copy-module-hook, .dslca-move-module-hook, .dslca-delete-module-hook').removeClass('dslca-action-disabled');
902
- $('.dslc-tut-panel-prevent').show();
903
- $('.dslca-module-edit-option[data-id="columns"]').css( 'z-index', 1000001 );
904
- },
905
- 'dslc_func_end' : function(){
906
- if ( $('.dslca-module-edit-field[data-id="columns"]').val() != 6 ) {
907
- $('.dslc-tut-bubble').data('step', 6);
908
- }
909
- }
910
- },
911
- {
912
- 'dslc_type' : 'action',
913
- 'dslc_label' : 'You can test any other option in this panel, once you are done <a class="dslc-tut-proceed-2" href="#"><strong>click here to continue</strong></a>.',
914
- 'dslc_target' : '.dslca-module-edit-options',
915
- 'dslc_event_el' : '.dslc-tut-proceed-2',
916
- 'dslc_event' : 'click.dslc_tut_modules_info',
917
- 'dslc_parent_el' : '.dslca-container',
918
- 'dslc_animation' : 'slide',
919
- 'dslc_pos' : 'above',
920
- 'dslc_func_start' : function(){
921
- $('.dslca-module-edit-option[data-id="columns"]').css( 'z-index', 'auto' );
922
- $('.dslca-module-edit-options-wrapper').css( 'z-index', 1000001 );
923
- }
924
- },
925
- {
926
- 'dslc_type' : 'information',
927
- 'dslc_label' : '<span class="dslc-tut-bubble-title">3. Modules</span>'
928
- + '<span class="dslc-tut-bubble-descr">3/3 Styling</span>'
929
- + '<div class="dslc-tut-bubble-content">'
930
- + 'There are also a lot of <strong style="color: #06b2ac;">styling</strong> options that you can change for every <strong style="color: #58bce5;">module</strong>, let\'s change a few now.'
931
- + '</div>'
932
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
933
- 'dslc_target' : 'body',
934
- 'dslc_event_el' : '.dslc-tut-proceed',
935
- 'dslc_event' : 'click.dslc_tut_modules_info',
936
- 'dslc_parent_el' : '.dslca-container',
937
- 'dslc_animation' : 'fade',
938
- 'dslc_func_start' : function(){
939
- $('.dslca-module-edit-options-wrapper').css( 'z-index', 'auto' );
940
- }
941
- },
942
- {
943
- 'dslc_type' : 'action',
944
- 'dslc_label' : 'Click on the <strong style="color: #06b2ac;">styling</strong> tab to show the <strong style="color: #06b2ac;">styling</strong> options.',
945
- 'dslc_target' : '.dslca-options-filter-hook[data-section="styling"]',
946
- 'dslc_event_el' : '.dslca-options-filter-hook[data-section="styling"]',
947
- 'dslc_event' : 'click.dslc_tut_modules_info',
948
- 'dslc_animation' : 'fade',
949
- 'dslc_parent_el' : '.dslca-container',
950
- 'dslc_pos' : 'above',
951
- 'dslc_func_start' : function(){
952
- $('.dslca-options-filter-hook[data-section="styling"]').css( 'z-index', 1000001 );
953
- }
954
- },
955
- {
956
- 'dslc_type' : 'action',
957
- 'dslc_label' : 'All the options are categorized by the element they affect. Click on any of the tabs to change the options available.',
958
- 'dslc_target' : '.dslca-module-edit-options-tab-hook:nth-child(4)',
959
- 'dslc_event_el' : '.dslca-module-edit-options-tab-hook',
960
- 'dslc_event' : 'click.dslc_tut_modules_info',
961
- 'dslc_animation' : 'fade',
962
- 'dslc_parent_el' : '.dslca-container',
963
- 'dslc_pos' : 'above',
964
- 'dslc_func_start' : function(){
965
- $('.dslca-options-filter-hook[data-section="styling"]').css( 'z-index', 'auto' );
966
- $('.dslca-module-edit-options-tab-hook').css( 'z-index', 1000001 );
967
- },
968
- 'dslc_func_end' : function(){
969
- $('.dslca-module-edit-options-tab-hook').css( 'z-index', 'auto !important' );
970
- $('.dslca-module-edit-options-wrapper').css( 'z-index', '1000001 !important' );
971
- }
972
- },
973
- {
974
- 'dslc_type' : 'action',
975
- 'dslc_label' : 'There is a lot of <strong style="color: #06b2ac;">styling</strong> options. Go ahead and play with them and once you are done click on <span style="color: #78ca4f; font-weight:bold;">confirm</span>.',
976
- 'dslc_target' : '.dslca-module-edit-save',
977
- 'dslc_event_el' : '.dslca-module-edit-save',
978
- 'dslc_event' : 'click.dslc_tut_modules_info_2',
979
- 'dslc_animation' : 'slide',
980
- 'dslc_parent_el' : '.dslca-container',
981
- 'dslc_pos' : 'above',
982
- 'dslc_func_start' : function(){
983
- $('.dslca-module-edit-options').css( 'z-index', 1000001 );
984
- }
985
- },
986
- {
987
- 'dslc_type' : 'information',
988
- 'dslc_label' : '<span class="dslc-tut-bubble-title">3. Modules</span>'
989
- + '<span class="dslc-tut-bubble-descr">finished</span>'
990
- + '<div class="dslc-tut-bubble-content">'
991
- + 'Congrats on completing <strong>Chapter Three</strong> of this interactive <strong style="color: #9268a9;">tutorial</strong>.'
992
- + '<br>You can proceed to the fourth chapter, there you will learn how to use the <strong style="color: #d8827d;">templates system</strong>.'
993
- + '</div>'
994
- + '<a href="' + dslcTutChFourLink + '" class="dslc-tut-proceed dslca-link">start chapter four<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
995
- 'dslc_target' : 'body',
996
- 'dslc_event_el' : '.dslc-tut-proceed',
997
- 'dslc_event' : 'click.dslc_tut_modules_info',
998
- 'dslc_animation' : 'fade',
999
- 'dslc_func_start' : function() {
1000
- $('.dslc-tut-panel-prevent').hide();
1001
- $('.dslca-module-edit-options-wrapper').css( 'z-index', 'auto' );
1002
- }
1003
- }
1004
-
1005
- ];
1006
-
1007
- dslcTuts[ dslcTutChFour ] = [
1008
-
1009
- {
1010
- 'dslc_type' : 'information',
1011
- 'dslc_label' : '<span class="dslc-tut-bubble-title">4. Templates System</span>'
1012
- + '<span class="dslc-tut-bubble-descr">1/2 Load</span>'
1013
- + '<div class="dslc-tut-bubble-content">'
1014
- + 'In this chapter, we will show you how to use the <strong style="color: #d8827d;">templates system</strong>.'
1015
- + '<br>The <strong style="color: #d8827d;">templates system</strong> consists of 4 main features: <strong>Save</strong>, <strong>Load</strong>, <strong>Export</strong> and <strong>Import</strong>.'
1016
- + '<br>Let\'s start of by <strong>loading</strong> an existing template.'
1017
- + '</div>'
1018
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
1019
- 'dslc_target' : 'body',
1020
- 'dslc_event_el' : '.dslc-tut-proceed',
1021
- 'dslc_event' : 'click.dslc_tut_modules_info',
1022
- 'dslc_animation' : 'fade',
1023
- 'dslc_func_start' : function(){
1024
- $('.dslca-section-title-filter-options a[data-origin="user"]').trigger('click');
1025
- }
1026
- },
1027
- {
1028
- 'dslc_type' : 'action',
1029
- 'dslc_label' : 'Click this tab to switch to the <strong style="color: #d8827d;">templates management</strong>.',
1030
- 'dslc_target' : '.dslca-go-to-section-templates',
1031
- 'dslc_event_el' : '.dslca-go-to-section-templates',
1032
- 'dslc_event' : 'click.dslc_tut_modules_info',
1033
- 'dslc_animation' : 'fade',
1034
- 'dslc_parent_el' : '.dslca-container',
1035
- 'dslc_pos' : 'above',
1036
- 'dslc_func_start' : function() {
1037
- $('.dslc-tut-panel-prevent').show();
1038
-
1039
- },
1040
- 'dslc_func_end' : function() {
1041
-
1042
- }
1043
- },
1044
- {
1045
- 'dslc_type' : 'action',
1046
- 'dslc_label' : 'Click <strong>Load</strong> to see the available <strong>templates</strong>.',
1047
- 'dslc_target' : '.dslca-go-to-section-hook[data-section=".dslca-templates-load"]',
1048
- 'dslc_event_el' : '.dslca-go-to-section-hook[data-section=".dslca-templates-load"]',
1049
- 'dslc_event' : 'click.dslc_tut_modules_info',
1050
- 'dslc_animation' : 'fade',
1051
- 'dslc_parent_el' : '.dslca-container',
1052
- 'dslc_pos' : 'above',
1053
- 'dslc_func_start' : function() {
1054
- //$('.dslca-go-to-section-hook[data-section=".dslca-templates-load"]').css( 'z-index', 1000001 );
1055
- }
1056
- },
1057
- {
1058
- 'dslc_type' : 'action',
1059
- 'dslc_label' : 'Click <strong>Blog Variation 3</strong> to load the <strong>template</strong>.',
1060
- 'dslc_target' : '.dslca-template[data-id="dslc-blog-ex-3"]',
1061
- 'dslc_event_el' : '.dslca-template[data-id="dslc-blog-ex-3"]',
1062
- 'dslc_event' : 'click.dslc_tut_modules_info',
1063
- 'dslc_animation' : 'fade',
1064
- 'dslc_parent_el' : '.dslca-container',
1065
- 'dslc_pos' : 'above',
1066
- 'dslc_func_start' : function() {
1067
- //$('.dslca-go-to-section-hook[data-section=".dslca-templates-load"]').css( 'z-index', 'auto' );
1068
- //$('.dslca-template[data-id="chapter-four"]').css( 'z-index', 1000001 );
1069
- }
1070
- },
1071
- {
1072
- 'dslc_type' : 'information',
1073
- 'dslc_label' : '<span class="dslc-tut-bubble-title">4. Templates System</span>'
1074
- + '<div class="dslc-tut-bubble-content">'
1075
- + 'The <strong>template</strong> is now loaded. You can of course modify it as you wish.'
1076
- + '<br>Let\'s move the <strong>sidebar</strong> on the right of the <strong>blog</strong>.'
1077
- + '</div>'
1078
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
1079
- 'dslc_target' : 'body',
1080
- 'dslc_event_el' : '.dslc-tut-proceed',
1081
- 'dslc_event' : 'click.dslc_tut_modules_info',
1082
- 'dslc_animation' : 'fade',
1083
- 'dslc_func_start' : function() {
1084
- $('.dslc-tut-panel-prevent').hide();
1085
- $('.dslca-template[data-id="chapter-four"]').css( 'z-index', 'auto' );
1086
- }
1087
- },
1088
- {
1089
- 'dslc_type' : 'action',
1090
- 'dslc_label' : 'Let\'s move this <strong style="color: #5890e5;">modules area</strong> on the right of the blog.',
1091
- 'dslc_target' : '.dslc-modules-area.dslc-4-col',
1092
- 'dslc_event_el' : '.dslc-modules-area.dslc-4-col',
1093
- 'dslc_event' : 'mouseenter.dslc_tut_modules_info',
1094
- 'dslc_parent_el' : '.dslc-modules-area.dslc-4-col',
1095
- 'dslc_animation' : 'fade',
1096
- 'dslc_pos' : 'above',
1097
- 'dslc_func_start' : function() {
1098
- $('.dslca-change-width-modules-area-hook, .dslca-delete-modules-area-hook, .dslca-copy-modules-area-hook').addClass('dslca-action-disabled');
1099
- }
1100
- },
1101
- {
1102
- 'dslc_type' : 'action',
1103
- 'dslc_label' : 'Let\'s move this <strong style="color: #5890e5;">modules area</strong> on the right of the blog.',
1104
- 'dslc_target' : '.dslc-modules-area.dslc-4-col .dslca-move-modules-area-hook',
1105
- 'dslc_event_el' : '.dslc-modules-area.dslc-4-col .dslca-move-modules-area-hook',
1106
- 'dslc_event' : 'mousedown.dslc_tut_modules_info',
1107
- 'dslc_parent_el' : '.dslc-modules-area.dslc-4-col',
1108
- 'dslc_animation' : 'slide',
1109
- 'dslc_pos' : 'above',
1110
- 'dslc_func_start' : function() {
1111
-
1112
- }
1113
- },
1114
- {
1115
- 'dslc_type' : 'action',
1116
- 'dslc_label' : 'Drop the <strong style="color: #5890e5;">modules area</strong> bellow.',
1117
- 'dslc_target' : '.dslc-post.dslc-last-col',
1118
- 'dslc_event_el' : $(document),
1119
- 'dslc_event' : 'mouseup.dslc_tut_modules_info',
1120
- 'dslc_parent_el' : '.dslc-modules-area.dslc-4-col',
1121
- 'dslc_animation' : 'slide',
1122
- 'dslc_pos' : 'above',
1123
- 'dslc_keep_up' : false,
1124
- 'dslc_func_start' : function(){
1125
- $('.dslca-change-width-modules-area-hook, .dslca-delete-modules-area-hook, .dslca-copy-modules-area-hook').removeClass('dslca-action-disabled');
1126
- }
1127
- },
1128
- {
1129
- 'dslc_type' : 'information',
1130
- 'dslc_label' : '<span class="dslc-tut-bubble-title">4. Templates System</span>'
1131
- + '<span class="dslc-tut-bubble-descr">2/2 Import</span>'
1132
- + '<div class="dslc-tut-bubble-content">'
1133
- + 'In the textarea bellow, you can see how an export looks like, let\'s import it. Select the "text" and copy it, when done click continue.<br>'
1134
- + '<br><textarea style="width: 100%; height:50px;">'
1135
- + '[dslc_modules_section type="wrapped" border_color="" border_width="0" border_style="" border="" bg_color="#f7f7f7" bg_image="" bg_video="" bg_video_overlay_color="" bg_video_overlay_opacity="" bg_image_repeat="no-repeat" bg_image_attachment="parallax" bg_image_position="center bottom" padding="49" padding_h="0" ] [dslc_modules_area last="yes" size="12"] [dslc_module]YToxNTc6e3M6NDoic2l6ZSI7czoyOiIxMiI7czo0OiJ0eXBlIjtzOjQ6ImdyaWQiO3M6MTE6Im9yaWVudGF0aW9uIjtzOjg6InZlcnRpY2FsIjtzOjY6ImFtb3VudCI7czoxOiI2IjtzOjE1OiJwYWdpbmF0aW9uX3R5cGUiO3M6ODoibnVtYmVyZWQiO3M6NzoiY29sdW1ucyI7czoxOiI0IjtzOjEwOiJjYXRlZ29yaWVzIjtzOjA6IiI7czo3OiJvcmRlcmJ5IjtzOjQ6ImRhdGUiO3M6NToib3JkZXIiO3M6NDoiREVTQyI7czo4OiJlbGVtZW50cyI7czoyMToibWFpbl9oZWFkaW5nIGZpbHRlcnMgIjtzOjEzOiJwb3N0X2VsZW1lbnRzIjtzOjMxOiJ0aHVtYm5haWwgdGl0bGUgZXhjZXJwdCBidXR0b24gIjtzOjE3OiJjYXJvdXNlbF9lbGVtZW50cyI7czoxNDoiYXJyb3dzIGNpcmNsZXMiO3M6MjA6ImNzc193cmFwcGVyX2JnX2NvbG9yIjtzOjA6IiI7czoyNDoiY3NzX3dyYXBwZXJfYm9yZGVyX2NvbG9yIjtzOjA6IiI7czoyNDoiY3NzX3dyYXBwZXJfYm9yZGVyX3dpZHRoIjtzOjE6IjAiO3M6MjM6ImNzc193cmFwcGVyX2JvcmRlcl90cmJsIjtzOjIxOiJ0b3AgcmlnaHQgYm90dG9tIGxlZnQiO3M6Mjk6ImNzc193cmFwcGVyX2JvcmRlcl9yYWRpdXNfdG9wIjtzOjE6IjAiO3M6MzI6ImNzc193cmFwcGVyX2JvcmRlcl9yYWRpdXNfYm90dG9tIjtzOjE6IjAiO3M6Mjg6ImNzc193cmFwcGVyX3BhZGRpbmdfdmVydGljYWwiO3M6MToiMCI7czozMDoiY3NzX3dyYXBwZXJfcGFkZGluZ19ob3Jpem9udGFsIjtzOjE6IjAiO3M6MjA6ImNzc19zZXBfYm9yZGVyX2NvbG9yIjtzOjc6IiNlZGVkZWQiO3M6MTQ6ImNzc19zZXBfaGVpZ2h0IjtzOjI6IjMwIjtzOjEzOiJjc3Nfc2VwX3N0eWxlIjtzOjU6InNvbGlkIjtzOjE4OiJjc3NfdGh1bWJfYmdfY29sb3IiO3M6MDoiIjtzOjI3OiJjc3NfdGh1bWJfYm9yZGVyX3JhZGl1c190b3AiO3M6MToiMCI7czozMDoiY3NzX3RodW1iX2JvcmRlcl9yYWRpdXNfYm90dG9tIjtzOjE6IjAiO3M6MTI6InRodW1iX21hcmdpbiI7czoxOiIwIjtzOjE4OiJ0aHVtYl9tYXJnaW5fcmlnaHQiO3M6MjoiMjAiO3M6MjY6ImNzc190aHVtYl9wYWRkaW5nX3ZlcnRpY2FsIjtzOjE6IjAiO3M6Mjg6ImNzc190aHVtYl9wYWRkaW5nX2hvcml6b250YWwiO3M6MToiMCI7czoxMToidGh1bWJfd2lkdGgiO3M6MzoiMTAwIjtzOjE3OiJjc3NfbWFpbl9iZ19jb2xvciI7czo3OiIjZTM2MzRkIjtzOjIxOiJjc3NfbWFpbl9ib3JkZXJfY29sb3IiO3M6MDoiIjtzOjIxOiJjc3NfbWFpbl9ib3JkZXJfd2lkdGgiO3M6MToiMCI7czoyMDoiY3NzX21haW5fYm9yZGVyX3RyYmwiO3M6MjI6InRvcCByaWdodCBib3R0b20gbGVmdCAiO3M6MjY6ImNzc19tYWluX2JvcmRlcl9yYWRpdXNfdG9wIjtzOjE6IjAiO3M6Mjk6ImNzc19tYWluX2JvcmRlcl9yYWRpdXNfYm90dG9tIjtzOjE6IjAiO3M6MjU6ImNzc19tYWluX3BhZGRpbmdfdmVydGljYWwiO3M6MjoiMzQiO3M6Mjc6ImNzc19tYWluX3BhZGRpbmdfaG9yaXpvbnRhbCI7czoyOiIzNyI7czoxOToiY3NzX21haW5fbWluX2hlaWdodCI7czoxOiIwIjtzOjE5OiJjc3NfbWFpbl90ZXh0X2FsaWduIjtzOjQ6ImxlZnQiO3M6MTE6InRpdGxlX2NvbG9yIjtzOjc6IiNmZmZmZmYiO3M6MTc6InRpdGxlX2NvbG9yX2hvdmVyIjtzOjA6IiI7czoxNToidGl0bGVfZm9udF9zaXplIjtzOjI6IjI1IjtzOjIxOiJjc3NfdGl0bGVfZm9udF93ZWlnaHQiO3M6MzoiNTAwIjtzOjIxOiJjc3NfdGl0bGVfZm9udF9mYW1pbHkiO3M6NzoiUmFsZXdheSI7czoxNzoidGl0bGVfbGluZV9oZWlnaHQiO3M6MjoiMzUiO3M6MTI6InRpdGxlX21hcmdpbiI7czoyOiIxNyI7czoyMToiY3NzX21ldGFfYm9yZGVyX2NvbG9yIjtzOjc6IiNlNWU1ZTUiO3M6MjE6ImNzc19tZXRhX2JvcmRlcl93aWR0aCI7czoxOiIxIjtzOjE0OiJjc3NfbWV0YV9jb2xvciI7czo3OiIjYThhOGE4IjtzOjE4OiJjc3NfbWV0YV9mb250X3NpemUiO3M6MjoiMTEiO3M6MjA6ImNzc19tZXRhX2ZvbnRfZmFtaWx5IjtzOjE3OiJMaWJyZSBCYXNrZXJ2aWxsZSI7czoyMDoiY3NzX21ldGFfZm9udF93ZWlnaHQiO3M6MzoiNDAwIjtzOjIyOiJjc3NfbWV0YV9tYXJnaW5fYm90dG9tIjtzOjI6IjE2IjtzOjI1OiJjc3NfbWV0YV9wYWRkaW5nX3ZlcnRpY2FsIjtzOjI6IjE2IjtzOjI3OiJjc3NfbWV0YV9wYWRkaW5nX2hvcml6b250YWwiO3M6MToiMCI7czoxOToiY3NzX21ldGFfbGlua19jb2xvciI7czo3OiIjNTg5MGU1IjtzOjI1OiJjc3NfbWV0YV9saW5rX2NvbG9yX2hvdmVyIjtzOjc6IiM1ODkwZTUiO3M6MTc6ImNzc19leGNlcnB0X2NvbG9yIjtzOjc6IiNmMGQ2ZDYiO3M6MjE6ImNzc19leGNlcnB0X2ZvbnRfc2l6ZSI7czoyOiIxNSI7czoyMzoiY3NzX2V4Y2VycHRfZm9udF93ZWlnaHQiO3M6MzoiNTAwIjtzOjIzOiJjc3NfZXhjZXJwdF9mb250X2ZhbWlseSI7czo0OiJMYXRvIjtzOjIzOiJjc3NfZXhjZXJwdF9saW5lX2hlaWdodCI7czoyOiIyNyI7czoxNDoiZXhjZXJwdF9tYXJnaW4iO3M6MjoiMjgiO3M6MTQ6ImV4Y2VycHRfbGVuZ3RoIjtzOjI6IjQwIjtzOjExOiJidXR0b25fdGV4dCI7czoxNjoiQ09OVElOVUUgUkVBRElORyI7czoxOToiY3NzX2J1dHRvbl9iZ19jb2xvciI7czo3OiIjYzI0ODM4IjtzOjI1OiJjc3NfYnV0dG9uX2JnX2NvbG9yX2hvdmVyIjtzOjc6IiNmZmZmZmYiO3M6MjM6ImNzc19idXR0b25fYm9yZGVyX3dpZHRoIjtzOjE6IjAiO3M6MjM6ImNzc19idXR0b25fYm9yZGVyX2NvbG9yIjtzOjc6IiMxNDBmMGYiO3M6Mjk6ImNzc19idXR0b25fYm9yZGVyX2NvbG9yX2hvdmVyIjtzOjc6IiM5ZTZkNmQiO3M6MjQ6ImNzc19idXR0b25fYm9yZGVyX3JhZGl1cyI7czoxOiIwIjtzOjE2OiJjc3NfYnV0dG9uX2NvbG9yIjtzOjc6IiNmZmZmZmYiO3M6MjI6ImNzc19idXR0b25fY29sb3JfaG92ZXIiO3M6NzoiIzhmOGY4ZiI7czoyMDoiY3NzX2J1dHRvbl9mb250X3NpemUiO3M6MjoiMTIiO3M6MjI6ImNzc19idXR0b25fZm9udF93ZWlnaHQiO3M6MzoiODAwIjtzOjIyOiJjc3NfYnV0dG9uX2ZvbnRfZmFtaWx5IjtzOjQ6IkxhdG8iO3M6Mjc6ImNzc19idXR0b25fcGFkZGluZ192ZXJ0aWNhbCI7czoyOiIxNyI7czoyOToiY3NzX2J1dHRvbl9wYWRkaW5nX2hvcml6b250YWwiO3M6MjoiMTkiO3M6MTQ6ImJ1dHRvbl9pY29uX2lkIjtzOjk6InNoYXJlLWFsdCI7czoyMToiY3NzX2J1dHRvbl9pY29uX2NvbG9yIjtzOjc6IiNmMDdhNjgiO3M6Mjc6ImNzc19idXR0b25faWNvbl9jb2xvcl9ob3ZlciI7czo3OiIjZDFkMWQxIjtzOjIyOiJjc3NfYnV0dG9uX2ljb25fbWFyZ2luIjtzOjE6IjUiO3M6MTg6Im1haW5faGVhZGluZ190aXRsZSI7czoxNzoiTEFURVNUIEJMT0cgUE9TVFMiO3M6MjM6Im1haW5faGVhZGluZ19saW5rX3RpdGxlIjtzOjg6IlZJRVcgQUxMIjtzOjIyOiJjc3NfbWFpbl9oZWFkaW5nX2NvbG9yIjtzOjA6IiI7czoyNjoiY3NzX21haW5faGVhZGluZ19mb250X3NpemUiO3M6MjoiMTciO3M6Mjg6ImNzc19tYWluX2hlYWRpbmdfZm9udF93ZWlnaHQiO3M6MzoiNDAwIjtzOjI4OiJjc3NfbWFpbl9oZWFkaW5nX2ZvbnRfZmFtaWx5IjtzOjY6Ik9zd2FsZCI7czoyODoiY3NzX21haW5faGVhZGluZ19saW5lX2hlaWdodCI7czoyOiIzNSI7czoyNzoiY3NzX21haW5faGVhZGluZ19saW5rX2NvbG9yIjtzOjc6IiNlMzYzNGQiO3M6MzM6ImNzc19tYWluX2hlYWRpbmdfbGlua19jb2xvcl9ob3ZlciI7czo3OiIjYzc1MDNlIjtzOjMxOiJjc3NfbWFpbl9oZWFkaW5nX2xpbmtfZm9udF9zaXplIjtzOjI6IjExIjtzOjMzOiJjc3NfbWFpbl9oZWFkaW5nX2xpbmtfZm9udF93ZWlnaHQiO3M6MzoiNjAwIjtzOjMzOiJjc3NfbWFpbl9oZWFkaW5nX2xpbmtfZm9udF9mYW1pbHkiO3M6OToiT3BlbiBTYW5zIjtzOjMzOiJjc3NfbWFpbl9oZWFkaW5nX2xpbmtfcGFkZGluZ192ZXIiO3M6MToiOSI7czoxMzoidmlld19hbGxfbGluayI7czoxOiIjIjtzOjI1OiJjc3NfaGVhZGluZ19tYXJnaW5fYm90dG9tIjtzOjI6IjI1IjtzOjE5OiJjc3NfZmlsdGVyX2JnX2NvbG9yIjtzOjc6IiNmZmZmZmYiO3M6MjY6ImNzc19maWx0ZXJfYmdfY29sb3JfYWN0aXZlIjtzOjc6IiNlMzYzNGQiO3M6MjM6ImNzc19maWx0ZXJfYm9yZGVyX2NvbG9yIjtzOjc6IiNlOGU4ZTgiO3M6MzA6ImNzc19maWx0ZXJfYm9yZGVyX2NvbG9yX2FjdGl2ZSI7czo3OiIjZTM2MzRkIjtzOjIzOiJjc3NfZmlsdGVyX2JvcmRlcl93aWR0aCI7czoxOiIxIjtzOjIyOiJjc3NfZmlsdGVyX2JvcmRlcl90cmJsIjtzOjIxOiJ0b3AgcmlnaHQgYm90dG9tIGxlZnQiO3M6MjQ6ImNzc19maWx0ZXJfYm9yZGVyX3JhZGl1cyI7czoxOiIzIjtzOjE2OiJjc3NfZmlsdGVyX2NvbG9yIjtzOjc6IiM5Nzk3OTciO3M6MjM6ImNzc19maWx0ZXJfY29sb3JfYWN0aXZlIjtzOjc6IiNmZmZmZmYiO3M6MjA6ImNzc19maWx0ZXJfZm9udF9zaXplIjtzOjI6IjExIjtzOjIyOiJjc3NfZmlsdGVyX2ZvbnRfd2VpZ2h0IjtzOjM6IjcwMCI7czoyMjoiY3NzX2ZpbHRlcl9mb250X2ZhbWlseSI7czo5OiJPcGVuIFNhbnMiO3M6Mjc6ImNzc19maWx0ZXJfcGFkZGluZ192ZXJ0aWNhbCI7czoyOiIxMiI7czoyOToiY3NzX2ZpbHRlcl9wYWRkaW5nX2hvcml6b250YWwiO3M6MjoiMTIiO3M6MTk6ImNzc19maWx0ZXJfcG9zaXRpb24iO3M6NToicmlnaHQiO3M6MTg6ImNzc19maWx0ZXJfc3BhY2luZyI7czoxOiI5IjtzOjE5OiJjc3NfYXJyb3dzX2JnX2NvbG9yIjtzOjc6IiNjOWM5YzkiO3M6MjU6ImNzc19hcnJvd3NfYmdfY29sb3JfaG92ZXIiO3M6NzoiIzU4OTBlNSI7czoyMzoiY3NzX2Fycm93c19ib3JkZXJfY29sb3IiO3M6MDoiIjtzOjI5OiJjc3NfYXJyb3dzX2JvcmRlcl9jb2xvcl9ob3ZlciI7czowOiIiO3M6MjM6ImNzc19hcnJvd3NfYm9yZGVyX3dpZHRoIjtzOjE6IjAiO3M6MjQ6ImNzc19hcnJvd3NfYm9yZGVyX3JhZGl1cyI7czoxOiIzIjtzOjE2OiJjc3NfYXJyb3dzX2NvbG9yIjtzOjc6IiNmZmZmZmYiO3M6MjI6ImNzc19hcnJvd3NfY29sb3JfaG92ZXIiO3M6NzoiI2ZmZmZmZiI7czoyMToiY3NzX2Fycm93c19tYXJnaW5fdG9wIjtzOjE6IjYiO3M6MTU6ImNzc19hcnJvd3Nfc2l6ZSI7czoyOiIyMyI7czoyMToiY3NzX2Fycm93c19hcnJvd19zaXplIjtzOjI6IjEwIjtzOjE3OiJjc3NfY2lyY2xlc19jb2xvciI7czo3OiIjYjliOWI5IjtzOjI0OiJjc3NfY2lyY2xlc19jb2xvcl9hY3RpdmUiO3M6NzoiIzU4OTBlNSI7czoyMjoiY3NzX2NpcmNsZXNfbWFyZ2luX3RvcCI7czoyOiIyMCI7czoxNjoiY3NzX2NpcmNsZXNfc2l6ZSI7czoxOiI3IjtzOjE5OiJjc3NfY2lyY2xlc19zcGFjaW5nIjtzOjE6IjMiO3M6MTM6ImNzc19wYWdfYWxpZ24iO3M6NDoibGVmdCI7czoxNjoiY3NzX3BhZ19iZ19jb2xvciI7czowOiIiO3M6MjA6ImNzc19wYWdfYm9yZGVyX2NvbG9yIjtzOjA6IiI7czoyMDoiY3NzX3BhZ19ib3JkZXJfd2lkdGgiO3M6MToiMCI7czoxOToiY3NzX3BhZ19ib3JkZXJfdHJibCI7czoyMToidG9wIHJpZ2h0IGJvdHRvbSBsZWZ0IjtzOjIxOiJjc3NfcGFnX2JvcmRlcl9yYWRpdXMiO3M6MToiMCI7czoyNDoiY3NzX3BhZ19wYWRkaW5nX3ZlcnRpY2FsIjtzOjE6IjAiO3M6MjY6ImNzc19wYWdfcGFkZGluZ19ob3Jpem9udGFsIjtzOjE6IjAiO3M6MjE6ImNzc19wYWdfaXRlbV9iZ19jb2xvciI7czo3OiIjZmZmZmZmIjtzOjI4OiJjc3NfcGFnX2l0ZW1fYmdfY29sb3JfYWN0aXZlIjtzOjc6IiNlMzYzNGQiO3M6MjU6ImNzc19wYWdfaXRlbV9ib3JkZXJfY29sb3IiO3M6NzoiI2U4ZThlOCI7czozMjoiY3NzX3BhZ19pdGVtX2JvcmRlcl9jb2xvcl9hY3RpdmUiO3M6NzoiI2UzNjM0ZCI7czoyNToiY3NzX3BhZ19pdGVtX2JvcmRlcl93aWR0aCI7czoxOiIxIjtzOjMyOiJjc3NfcGFnX2l0ZW1fYm9yZGVyX3dpZHRoX2FjdGl2ZSI7czoxOiIxIjtzOjI0OiJjc3NfcGFnX2l0ZW1fYm9yZGVyX3RyYmwiO3M6MjE6InRvcCByaWdodCBib3R0b20gbGVmdCI7czoyNjoiY3NzX3BhZ19pdGVtX2JvcmRlcl9yYWRpdXMiO3M6MToiMyI7czoxODoiY3NzX3BhZ19pdGVtX2NvbG9yIjtzOjc6IiM5Nzk3OTciO3M6MjU6ImNzc19wYWdfaXRlbV9jb2xvcl9hY3RpdmUiO3M6NzoiI2ZmZmZmZiI7czoyMjoiY3NzX3BhZ19pdGVtX2ZvbnRfc2l6ZSI7czoyOiIxMSI7czoyNDoiY3NzX3BhZ19pdGVtX2ZvbnRfd2VpZ2h0IjtzOjM6IjcwMCI7czoyNDoiY3NzX3BhZ19pdGVtX2ZvbnRfZmFtaWx5IjtzOjk6Ik9wZW4gU2FucyI7czoyOToiY3NzX3BhZ19pdGVtX3BhZGRpbmdfdmVydGljYWwiO3M6MjoiMTIiO3M6MzE6ImNzc19wYWdfaXRlbV9wYWRkaW5nX2hvcml6b250YWwiO3M6MjoiMTIiO3M6MjA6ImNzc19wYWdfaXRlbV9zcGFjaW5nIjtzOjI6IjEwIjtzOjE4OiJtb2R1bGVfaW5zdGFuY2VfaWQiO3M6MzoiMzc3IjtzOjk6Im1vZHVsZV9pZCI7czo5OiJEU0xDX0Jsb2ciO30=[/dslc_module] [/dslc_modules_area] [/dslc_modules_section] '
1136
- + '</textarea>.'
1137
- + '</div>'
1138
- + '<a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',
1139
- 'dslc_target' : 'body',
1140
- 'dslc_event_el' : '.dslc-tut-proceed',
1141
- 'dslc_event' : 'click.dslc_tut_modules_info',
1142
- 'dslc_animation' : 'fade'
1143
- },
1144
- {
1145
- 'dslc_type' : 'action',
1146
- 'dslc_label' : 'Click this tab to switch to the main <strong style="color: #d8827d;">templates management</strong> section.',
1147
- 'dslc_target' : '.dslca-go-to-section-templates',
1148
- 'dslc_event_el' : '.dslca-go-to-section-templates',
1149
- 'dslc_event' : 'click.dslc_tut_modules_info',
1150
- 'dslc_parent_el' : '.dslca-container',
1151
- 'dslc_animation' : 'fade',
1152
- 'dslc_pos' : 'above',
1153
- 'dslc_func_start' : function() {
1154
- $('.dslc-tut-panel-prevent').show();
1155
- }
1156
- },
1157
- {
1158
- 'dslc_type' : 'action',
1159
- 'dslc_label' : 'Click <strong>Import</strong>, paste the code in the textarea and click the <strong>import</strong> button.',
1160
- 'dslc_target' : '.dslca-open-modal-hook[data-modal=".dslca-modal-templates-import"]',
1161
- 'dslc_event_el' : '.dslca-open-modal-hook[data-modal=".dslca-modal-templates-import"]',
1162
- 'dslc_event' : 'click.dslc_tut_modules_info',
1163
- 'dslc_parent_el' : '.dslca-container',
1164
- 'dslc_animation' : 'fade',
1165
- 'dslc_pos' : 'above'
1166
- },
1167
- {
1168
- 'dslc_type' : 'action',
1169
- 'dslc_label' : 'Click <strong>Import</strong>, paste the code in the textarea and click the <strong>import</strong> button.',
1170
- 'dslc_target' : '.dslca-modal-templates-import',
1171
- 'dslc_event_el' : '.dslca-submit',
1172
- 'dslc_event' : 'click.dslc_tut_modules_info',
1173
- 'dslc_parent_el' : '.dslca-container',
1174
- 'dslc_animation' : 'slide',
1175
- 'dslc_pos' : 'above',
1176
- 'dslc_func_start' : function(){
1177
- $('.dslca-close-modal-hook').addClass('dslca-action-disabled');
1178
- }
1179
- },
1180
- {
1181
- 'dslc_type' : 'information',
1182
- 'dslc_label' : '<span class="dslc-tut-bubble-title">4. Templates System</span>'
1183
- + '<span class="dslc-tut-bubble-descr">finished</span>'
1184
- + '<div class="dslc-tut-bubble-content">'
1185
- + 'Congrats on completing the <strong style="color: #9268a9;">Basics Tutorial</strong> for <strong style="color: #06b2ac;">Live Composer</strong>.'
1186
- + '</div>',
1187
- 'dslc_target' : 'body',
1188
- 'dslc_event_el' : '.dslc-tut-proceed',
1189
- 'dslc_event' : 'click.dslc_tut_modules_info',
1190
- 'dslc_animation' : 'fade'
1191
- },
1192
-
1193
-
1194
-
1195
- ];
1196
-
1197
- dslc_tut_proceed();
1198
-
1199
- });
1200
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/tutorials/tutorial.min.css DELETED
@@ -1 +0,0 @@
1
- .dslc-tut-force-show{display:block!important;opacity:1!important;overflow:visible!important}.dslca-modules-area-manage.dslc-tut-force-show .dslca-modules-area-manage-inner{left:0!important}.dslc-tut-panel-prevent,.dslc-tut-prevent{z-index:999999;position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;opacity:0}.dslc-tut-panel-prevent{display:none}.colorpicker{z-index:9999999!important}.dslc-tut-bubble{white-space:nowrap}.dslc-tut-bubble-type-action{text-align:center;position:absolute;top:0;left:0;background:#fff;padding:30px 40px;border:1px solid rgba(0,0,0,.12);-moz-box-shadow:0 2px 2px rgba(0,0,0,.03),0 0 7px rgba(0,0,0,.05);-webkit-box-shadow:0 2px 2px rgba(0,0,0,.03),0 0 7px rgba(0,0,0,.05);box-shadow:0 2px 2px rgba(0,0,0,.03),0 0 7px rgba(0,0,0,.05);z-index:9999998;color:#9e9e9e;font-size:14px;line-height:28px}.dslc-tut-bubble-pos-above.dslc-tut-bubble-type-action:after,.dslc-tut-bubble-pos-above.dslc-tut-bubble-type-action:before{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslc-tut-bubble-pos-above.dslc-tut-bubble-type-action:after{border-color:#fff transparent transparent;border-width:8px;left:50%;margin-left:-8px}.dslc-tut-bubble-pos-above.dslc-tut-bubble-type-action:before{border-color:#d2d2d2 transparent transparent;border-width:9px;left:50%;margin-left:-9px}.dslc-tut-bubble-pos-bellow.dslc-tut-bubble-type-action:after,.dslc-tut-bubble-pos-bellow.dslc-tut-bubble-type-action:before{bottom:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.dslc-tut-bubble-pos-bellow.dslc-tut-bubble-type-action:after{border-color:transparent transparent #fff;border-width:8px;left:50%;margin-left:-8px}.dslc-tut-bubble-pos-bellow.dslc-tut-bubble-type-action:before{border-color:transparent transparent #d2d2d2;border-width:9px;left:50%;margin-left:-9px}.dslc-tut-bubble-type-information{background:#fff;border-radius:3px;position:absolute;margin:0 auto;padding:30px 35px 30px 30px;-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);opacity:1;box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12);z-index:9999998}.dslc-tut-bubble-title{display:block;color:#424242;font-family:Lato;font-size:16px;font-weight:700;line-height:1;margin-bottom:22px}.dslc-tut-bubble-descr{position:absolute;right:35px;top:32px;color:#a8a8a8;font-size:12px;line-height:1;font-family:Lato}.dslc-tut-bubble-content{margin:30px 0 23px;border-top:1px solid #e5e5e5;padding-top:23px;color:#9e9e9e;font-size:14px;line-height:28px}.dslc-tut-proceed,.dslc-tut-proceed-secondary{background:#4cc12d;border-radius:3px;cursor:pointer;color:#fff;display:inline-block;font-size:13px;font-family:"Open Sans",sans-serif;font-weight:700;line-height:1;padding:13px 15px;text-transform:uppercase;text-decoration:none}.dslc-tut-proceed-secondary{background:#366dc0;margin-right:20px}.dslc-tut-proceed .dslc-tut-icon{color:#96db83;margin-left:10px}.dslc-tut-proceed-secondary .dslc-tut-icon{color:rgba(255,255,255,.3);margin-left:10px}.dslc-tut-bubble-overlay{background:rgba(255,255,255,.8);display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:999999;height:100%}.dslca-tut-modal{background:rgba(255,255,255,.8);display:block;position:fixed;top:0;left:0;right:0;bottom:0;z-index:999999;height:100%}.dslca-tut-modal-content{background:#fff;border-radius:3px;top:55%;position:relative;width:300px;margin:-123px auto 0;padding:40px;-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);opacity:0;box-shadow:0 2px 2px rgba(0,0,0,.04),0 0 7px rgba(0,0,0,.12)}.dslca-tut-modal-msg{text-align:center}.dslca-tut-modal-title{color:#424242;display:block;font-family:Lato;font-size:16px;font-weight:700;line-height:1;margin-bottom:22px}.dslca-tut-modal-descr{color:#8a8a8a;display:block;font-family:Lato;font-size:13px;font-weight:400;line-height:22px;margin-bottom:22px}.dslca-tut-modal-actions{text-align:center}.dslca-tut-modal-cancel-hook,.dslca-tut-modal-confirm-hook{border-radius:3px;cursor:pointer;color:#fff;display:inline-block;font-size:13px;font-family:"Open Sans",sans-serif;font-weight:700;line-height:1;padding:13px 15px;text-transform:uppercase;text-decoration:none}.dslca-tut-modal-confirm-hook{background:#9268a9;margin-right:7px}.dslca-tut-modal-cancel-hook{background:#06b0aa}.dslca-tut-modal-actions .dslc-icon{color:rgba(255,255,255,.5);margin-right:6px}
 
includes/tutorials/tutorial.min.js DELETED
@@ -1,2 +0,0 @@
1
- jQuery(window).load(function(){jQuery("#dslc_tut_ch_three").data("post-id")==jQuery("#dslc_tut_settings").data("post-id")&&(jQuery(window).width()>1650||(jQuery(window).width()>1200?(dslc_scroller_next(jQuery(".dslca-modules .dslca-section-scroller")),dslc_scroller_next(jQuery(".dslca-modules .dslca-section-scroller"))):(dslc_scroller_next(jQuery(".dslca-modules .dslca-section-scroller")),dslc_scroller_next(jQuery(".dslca-modules .dslca-section-scroller")),dslc_scroller_next(jQuery(".dslca-modules .dslca-section-scroller")))))}),jQuery(document).ready(function(t){function s(s){e=setInterval(function(){var l,e,o,c,d;l=t(".dslc-tut-bubble"),t(s.dslc_target).is(":visible")&&(e=t(s.dslc_target).offset(),o=e.left+(t(s.dslc_target).outerWidth()/2-l.outerWidth()/2),0>o&&(d=l.width()/2+o+t(s.dslc_target).width()/2+15+3+"px",o=15),l.outerWidth()+o>t(window).width()&&(d=l.outerWidth()-t(s.dslc_target).width()/2-(t(window).width()-(t(s.dslc_target).offset().left+t(s.dslc_target).width()))+"px",parseInt(d)>l.outerWidth()-20&&(d=l.outerWidth()-20+"px"),o=t(window).width()-l.outerWidth()-15),c="action"==s.dslc_type?e.top-l.outerHeight()-10:dslcBubbleOverlay.height()/2-l.outerHeight()/2-59,t("#wpadminbar").length&&(c-=t("#wpadminbar").outerHeight()),"bellow"==s.dslc_pos&&(c+=t(s.dslc_target).outerHeight()+l.outerHeight()+20),l.stop().css({top:c,left:o}),t("head").append(t("<style>.dslc-tut-bubble:after, .dslc-tut-bubble:before { left: "+d+" !important; }</style>")))},200)}function l(){var o,c,d,a,n,i,r,_,m;m=u[t("#dslc_tut_settings").data("post-id")],o=t(".dslc-tut-bubble"),dslcBubbleOverlay=t(".dslc-tut-bubble-overlay"),c=o.data("step"),d=m[c],r=d.dslc_type,_=d.dslc_animation,void 0!==d.dslc_func_start&&d.dslc_func_start(),void 0!==d.dslc_pos||(d.dslc_pos="above"),void 0!==d.dslc_keep_up||(d.dslc_keep_up=!0),parseInt(m.length)==c+0&&o.hide(),void 0!==d.dslc_parent_el||(d.dslc_parent_el=!1),o.data("step",c+1),t(document).on(d.dslc_event,d.dslc_event_el,function(){t(document).off(d.dslc_event),void 0!==d.dslc_func_end&&d.dslc_func_end(),l()});var b=setInterval(function(){if(t(d.dslc_target).length&&t(d.dslc_target).not(":animated")&&!t(d.dslc_target).is(":hidden")&&t(d.dslc_target).offset().left<=t(window).width()-t(d.dslc_target).outerWidth()&&t(d.dslc_event_el).not(":animated")&&!t("body").hasClass("dslca-anim-in-progress")&&(0==t(".dslca-container").length||"0px"==t(".dslca-container").css("bottom"))){clearInterval(e),clearInterval(b),"static"==t(d.dslc_target).css("position")&&t(d.dslc_target).css("position","relative"),"static"==t(d.dslc_event_el).css("position")&&t(d.dslc_event_el).css("position","relative"),t(".dslc-tut-revert-zindex").each(function(){t(this).css("z-index",t(this).data("orig-zindex")).removeClass("dslc-tut-revert-zindex")}),"body"!=d.dslc_target&&t(d.dslc_target).data("orig-zindex",t(d.dslc_target).css("z-index")).addClass("dslc-tut-revert-zindex").css({"z-index":9999997}),t(d.dslc_event_el).hasClass("dslc-tut-revert-zindex")||t(d.dslc_event_el).data("orig-zindex",t(d.dslc_event_el).css("z-index")).css({"z-index":9999997}).addClass("dslc-tut-revert-zindex"),t(d.dslc_parent_el).hasClass("dslc-tut-revert-zindex")||t(d.dslc_parent_el).data("orig-zindex",t(d.dslc_parent_el).css("z-index")).css({"z-index":9999997}).addClass("dslc-tut-revert-zindex"),"fade"==_&&o.css({opacity:0}),o.html(d.dslc_label),o.removeClass("dslc-tut-bubble-type-action dslc-tut-bubble-type-information").addClass("dslc-tut-bubble-type-"+r),o.removeClass("dslc-tut-bubble-pos-above dslc-tut-bubble-pos-bellow").addClass("dslc-tut-bubble-pos-"+d.dslc_pos),"information"==r?dslcBubbleOverlay.fadeIn(300):dslcBubbleOverlay.fadeOut(200),a=t(d.dslc_target).offset(),n=a.left+(t(d.dslc_target).outerWidth()/2-o.outerWidth()/2);var l="50%";0>n&&(l=o.width()/2+n+t(d.dslc_target).width()/2+15+3+"px",n=15),o.outerWidth()+n>t(window).width()&&(l=o.outerWidth()-t(d.dslc_target).width()/2-(t(window).width()-(t(d.dslc_target).offset().left+t(d.dslc_target).width()))+"px",n=t(window).width()-o.outerWidth()-15),i="action"==r?a.top-o.outerHeight()-10:dslcBubbleOverlay.height()/2-o.outerHeight()/2-59,"bellow"==d.dslc_pos&&(i+=t(d.dslc_target).outerHeight()+o.outerHeight()+20),"fade"==_?o.stop().css({top:i+20,left:n}).animate({top:i,opacity:1},400,function(){d.dslc_keep_up&&"action"==d.dslc_type&&s(d)}):o.stop().css({opacity:1}).animate({top:i,left:n},400,function(){d.dslc_keep_up&&"action"==d.dslc_type&&s(d)}),t("head").append(t("<style>.dslc-tut-bubble:after, .dslc-tut-bubble:before { left: "+l+" !important; }</style>"))}},300)}var e;t(document).on("click",".dslc-tut-proceed-secondary",function(s){s.preventDefault(),t(".video-modal").fadeIn(500,function(){t('.videoThumb[href*="'+t(".video-modal").data("video-id")+'"]').click(),t(".video-modal").fitVids(),lc_calc_video_width()})}),t(document).on("mousedown",".dslc-tut-prevent, .dslca-action-disabled, .dslc-tut-panel-prevent",function(){t(".dslc-tut-bubble:not(:animated)").css({marginTop:5}),setTimeout(function(){t(".dslc-tut-bubble:not(:animated)").css({marginTop:10}),setTimeout(function(){t(".dslc-tut-bubble:not(:animated)").css({marginTop:5}),setTimeout(function(){t(".dslc-tut-bubble:not(:animated)").css({marginTop:0})},20)},20)},20)}),jQuery("body").append('<div class="dslc-tut-prevent"></div><div class="dslc-tut-bubble-overlay"></div><div class="dslc-tut-bubble" data-step="0"></div>'),jQuery(".dslca-container").append('<div class="dslc-tut-panel-prevent"></div>');var o=jQuery("#dslc_tut_ch_one").data("post-id"),c=jQuery("#dslc_tut_ch_two").data("post-id"),d=jQuery("#dslc_tut_ch_three").data("post-id"),a=jQuery("#dslc_tut_ch_four").data("post-id"),n=jQuery("#dslc_tut_ch_two_link").data("url"),i=jQuery("#dslc_tut_ch_three_link").data("url"),r=jQuery("#dslc_tut_ch_four_link").data("url"),u=[];u[o]=[{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">Welcome</span><div class="dslc-tut-bubble-content">Welcome to the <strong style="color: #06b2ac;">Live Composer</strong> interactive <strong style="color: #9268a9;">tutorial</strong>.<br>In this step by step guide, we will show you some of the core functionalities of this plugin.<br></div><a href="#" class="dslc-tut-proceed">Start <strong>CHAPTER ONE</strong><span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade"},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">1. Row</span><span class="dslc-tut-bubble-descr">1/3 Adding a Row</span><div class="dslc-tut-bubble-content">Here is the structure of Live Composer: <strong style="color: #e5855f;">Rows</strong> > <strong style="color: #5890e5;">Module Areas</strong> > <strong style="color:#58bce5;">Modules</strong>.<br>Let\'s start by adding a <strong style="color: #e5855f;">row</strong>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade"},{dslc_type:"action",dslc_label:'Create your first <strong style="color: #e5855f;">row</strong>, it will be automatically populated with a <strong style="color: #5890e5;">modules area</strong>.',dslc_target:".dslca-add-modules-section-hook",dslc_event_el:".dslca-add-modules-section-hook",dslc_event:"click.dslc_tut_add_row",dslc_animation:"fade",dslc_func_end:function(){t(".dslca-add-modules-section-hook").addClass("dslca-action-disabled")}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">1. Row</span><span class="dslc-tut-bubble-descr">2/3 Row Options</span><div class="dslc-tut-bubble-content">Now that you have a <strong style="color: #e5855f;">row</strong> you could start adding <strong style="color: #5890e5;">module areas</strong> and <strong style="color:#58bce5;">modules</strong>.<br>But first, let\'s see what can be done with a <strong style="color: #e5855f;">row</strong>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){}},{dslc_type:"action",dslc_label:'When you rollover a <strong style="color: #e5855f;">row</strong> some options show up. Those are : <strong style="color: #06b2ac;">Edit</strong> - <strong style="color: #06b2ac;">Duplicate</strong> - <strong style="color: #06b2ac;">Move</strong> - <strong style="color: #06b2ac;">Delete</strong>. For now, let\'s click on the cog icon to edit this <strong style="color: #e5855f;">row</strong>',dslc_target:".dslc-modules-section",dslc_event_el:".dslc-modules-section",dslc_event:"mouseenter.dslc_tut_add_row",dslc_animation:"fade",dslc_pos:"bellow",dslc_func_start:function(){t(".dslca-modules-area-manage").css({visibility:"hidden"}),t(".dslca-modules-section-manage .dslca-manage-action").addClass("dslca-action-disabled"),t(".dslca-edit-modules-section-hook").removeClass("dslca-action-disabled")}},{dslc_type:"action",dslc_label:'When you rollover a <strong style="color: #e5855f;">row</strong> some options show up. Those are : <strong style="color: #06b2ac;">Edit</strong> - <strong style="color: #06b2ac;">Duplicate</strong> - <strong style="color: #06b2ac;">Move</strong> - <strong style="color: #06b2ac;">Delete</strong>. For now, let\'s click on the cog icon to edit this <strong style="color: #e5855f;">row</strong>',dslc_target:".dslca-edit-modules-section-hook",dslc_event_el:".dslca-edit-modules-section-hook",dslc_parent_el:".dslc-modules-section",dslc_event:"click.dslc_tut_add_row",dslc_animation:"slide",dslc_pos:"bellow",dslc_func_end:function(){t(".dslca-modules-section-manage .dslca-manage-action").removeClass("dslca-action-disabled")}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">1. Row</span><span class="dslc-tut-bubble-descr">3/3 Options Panel</span><div class="dslc-tut-bubble-content">Every time you want to edit a <strong style="color: #e5855f;">row</strong> or a <strong style="color:#58bce5;">module</strong>, the <strong style="color: #9268a9;">Options Panel</strong> will appear.<br>There are multiple options, for now let\'s change the <strong>background color</strong> and the <strong>padding</strong> for this <strong style="color: #e5855f;">row</strong>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade"},{dslc_type:"action",dslc_label:'First, let\'s change the <strong>background color</strong>, choose any color and <a class="dslc-tut-proceed-2" href="#"><strong>click here to continue</strong></a> once you are done.',dslc_target:'.dslca-modules-section-edit-option[data-id="bg_color"]',dslc_event_el:'.dslca-modules-section-edit-option[data-id="bg_color"] .sp-replacer',dslc_event:"mouseup.dslc_tut_modules_info",dslc_animation:"fade",dslc_parent_el:".dslca-container",dslc_func_start:function(){t(".dslc-tut-panel-prevent").show(),t('.dslca-modules-section-edit-option[data-id="bg_color"]').css("z-index",1000001)}},{dslc_type:"action",dslc_label:'First, let\'s change the <strong>background color</strong>, choose any color and <a class="dslc-tut-proceed-2" href="#"><strong>click here to continue</strong></a> once you are done.',dslc_target:".sp-container:visible",dslc_event_el:".dslc-tut-proceed-2",dslc_event:"click.dslc_tut_modules_info",dslc_parent_el:".dslca-container",dslc_animation:"slide",dslc_func_end:function(){t(".dslc-tut-panel-prevent").hide(),t(".dslca-container").css("z-index",99999),t('.dslca-modules-section-edit-option[data-id="bg_color"]').css("z-index","auto")}},{dslc_type:"action",dslc_label:'Good, now you will need to <strong style="color: #9268a9;">drag</strong> this scrollbar to the right to access the <strong style="color:#06b2ac;">padding vertical</strong> options.',dslc_target:".jspDrag",dslc_event_el:".dslca-container",dslc_event:"mouseup.dslc_tut_modules_info",dslc_parent_el:".dslca-container",dslc_animation:"slide",dslc_keep_up:!1,dslc_func_start:function(){t(".dslc-tut-panel-prevent").show(),t(".jspHorizontalBar").css("z-index",1000001)}},{dslc_type:"action",dslc_label:'Go ahead and change this <strong style="color:#06b2ac;">padding value</strong>, this will add space vertically on this whole <strong style="color: #e5855f;">row</strong>.',dslc_target:'.dslca-modules-section-edit-option[data-id="padding"]',dslc_event_el:'.dslca-modules-section-edit-option[data-id="padding"]',dslc_parent_el:".dslca-container",dslc_event:"mouseup.dslc_tut_modules_info",dslc_animation:"slide",dslc_func_start:function(){t(".jspHorizontalBar").css("z-index","auto"),t('.dslca-modules-section-edit-option[data-id="padding"]').css("z-index",1000001)},dslc_func_end:function(){t(".dslca-row-edit-save").css("z-index",1000001)}},{dslc_type:"action",dslc_label:'Everytime you are done editing an element, you have to <span style="color: #78ca4f; font-weight:bold;">confirm</span> or <span style="color: #e55f5f; font-weight:bold;">cancel</span> those changes. Let\'s <span style="color: #78ca4f; font-weight:bold;">confirm</span> these changes now.',dslc_target:".dslca-row-edit-save",dslc_event_el:".dslca-row-edit-save",dslc_parent_el:".dslca-container",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">1. Row</span><span class="dslc-tut-bubble-descr">finished</span><div class="dslc-tut-bubble-content">Congratulations on completing the first chapter of this <strong style="color: #9268a9;">tutorial</strong>.<br>Now that you know how to change options for a <strong style="color: #e5855f;">row</strong>, let\'s see what can be done with <strong style="color: #5890e5;">modules area</strong>.</div><a href="'+n+'" class="dslc-tut-proceed dslca-link">start chapter two<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){t(".dslc-tut-panel-prevent").hide(),t(".dslca-module-edit-save").css("z-index","auto")}}],u[c]=[{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">2. Modules Area</span><span class="dslc-tut-bubble-descr">1/5 Column System</span><div class="dslc-tut-bubble-content">In this chapter, we will show you how to work with <strong style="color: #5890e5;">module areas</strong>.<br>First thing, let\'s see how you can build your own <strong style="color: #06b2ac;">layout</strong>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){t(".dslca-modules-section-manage").css({visibility:"hidden"})}},{dslc_type:"action",dslc_label:'When you rollover a <strong style="color: #5890e5;">modules area</strong> some options show up. Those are : <strong style="color: #06b2ac;">Duplicate</strong> - <strong style="color: #06b2ac;">Move</strong> - <strong style="color: #06b2ac;">Layout</strong> - <strong style="color: #06b2ac;">Delete</strong>.<br>For now, let\'s click on the <strong>layout icon</strong> to change the width of this <strong style="color: #5890e5;">modules area</strong>.',dslc_target:".dslc-modules-area",dslc_event_el:".dslc-modules-area",dslc_event:"mouseenter.dslc_tut_add_row",dslc_animation:"fade",dslc_pos:"above"},{dslc_type:"action",dslc_label:'When you rollover a <strong style="color: #5890e5;">modules area</strong> some options show up. Those are : <strong style="color: #06b2ac;">Duplicate</strong> - <strong style="color: #06b2ac;">Move</strong> - <strong style="color: #06b2ac;">Layout</strong> - <strong style="color: #06b2ac;">Delete</strong>.<br>For now, let\'s click on the <strong>layout icon</strong> to change the width of this <strong style="color: #5890e5;">modules area</strong>.',dslc_target:".dslca-change-width-modules-area-hook .dslc-icon-columns",dslc_event_el:".dslca-change-width-modules-area-hook",dslc_event:"click.dslc_tut_add_row",dslc_parent_el:".dslc-modules-area",dslc_animation:"slide",dslc_pos:"above",dslc_func_start:function(){t(".dslca-modules-area-manage").addClass("dslc-tut-force-show"),t(".dslca-delete-modules-area-hook, .dslca-move-modules-area-hook, .dslca-copy-modules-area-hook").addClass("dslca-action-disabled")},dslc_func_end:function(){}},{dslc_type:"action",dslc_label:"Click on this <strong>6/12</strong> layout option.",dslc_target:'.dslca-change-width-modules-area-options span[data-size="6"]',dslc_event_el:'.dslca-change-width-modules-area-options span[data-size="6"]',dslc_event:"click.dslc_tut_add_row",dslc_parent_el:".dslc-modules-section",dslc_animation:"fade",dslc_pos:"bellow",dslc_func_start:function(){t(".dslca-change-width-modules-area-options span, .dslca-change-width-modules-area-hook").addClass("dslca-action-disabled"),t('.dslca-change-width-modules-area-options span[data-size="6"]').removeClass("dslca-action-disabled")},dslc_func_end:function(){t(".dslca-change-width-modules-area-options span, .dslca-change-width-modules-area-hook").removeClass("dslca-action-disabled"),t(".dslca-delete-modules-area-hook, .dslca-move-modules-area-hook, .dslca-copy-modules-area-hook").removeClass("dslca-action-disabled")}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">2. Modules Area</span><span class="dslc-tut-bubble-descr">2/5 Duplicating</span><div class="dslc-tut-bubble-content">Now that you\'ve changed the <strong>layout</strong> of the <strong style="color: #5890e5;">modules area</strong>, let\'s <strong style="color:#06b2ac;">duplicate</strong> it.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){t(".dslca-modules-area-manage").removeClass("dslc-tut-force-show")}},{dslc_type:"action",dslc_label:'<strong style="color: #9268a9;">Rollover</strong> the <strong style="color: #5890e5;">modules area</strong> to make the options appear.',dslc_target:".dslc-modules-area",dslc_event_el:".dslc-modules-area",dslc_event:"mouseenter.dslc_tut_add_row",dslc_parent_el:".dslc-modules-area",dslc_animation:"fade",dslc_pos:"above"},{dslc_type:"action",dslc_label:'Now click on the <strong style="color:#06b2ac;">duplicate</strong> icon.',dslc_target:".dslca-copy-modules-area-hook",dslc_event_el:".dslca-copy-modules-area-hook",dslc_event:"click.dslc_tut_add_row",dslc_parent_el:".dslc-modules-area",dslc_animation:"slide",dslc_pos:"bellow",dslc_func_start:function(){t(".dslca-modules-area-manage").addClass("dslc-tut-force-show")},dslc_func_end:function(){t(".dslca-copy-modules-area-hook").addClass("dslca-action-disabled")}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">2. Modules Area</span><span class="dslc-tut-bubble-descr">3/5 Adding Area</span><div class="dslc-tut-bubble-content">It\'s time to add a new <strong style="color: #5890e5;">modules area</strong>.<br>Below are the available <strong style="color:#58bce5;">modules</strong>. For now, let\'s add a new <strong style="color: #5890e5;">modules area</strong>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){t(".dslca-modules-area-manage").removeClass("dslc-tut-force-show"),t(".dslc-modules-area").css("z-index","auto"),t(".dslca-copy-modules-area-hook").removeClass("dslca-action-disabled")}},{dslc_type:"action",dslc_label:'<strong style="color: #06b2ac;">Click & Drag</strong> this item and release it over the <strong style="color: #e5855f;">row</strong>.',dslc_target:'.dslca-module[data-id="DSLC_M_A"]',dslc_event_el:'.dslca-module[data-id="DSLC_M_A"]',dslc_event:"mousedown.dslc_tut_add_row",dslc_parent_el:".dslca-container",dslc_animation:"fade",dslc_pos:"above",dslc_func_start:function(){t(".dslc-tut-panel-prevent").show(),t('.dslca-module[data-id="DSLC_M_A"]').css("z-index",1000001)},dslc_func_end:function(){t(".dslc-tut-panel-prevent").hide(),t(".dslca-container").css("z-index",99999),t('.dslca-module[data-id="DSLC_M_A"]').css("z-index","auto")}},{dslc_type:"action",dslc_label:'<strong style="color: #06b2ac;">Click & Drag</strong> this item and release it over the <strong style="color: #e5855f;">row</strong>.',dslc_target:".dslc-modules-section",dslc_event_el:t(document),dslc_event:"mouseup.dslc_tut_add_row",dslc_animation:"slide",dslc_pos:"bellow",dslc_func_end:function(){t("body").hasClass("dslca-anim-in-progress")||t(".dslc-tut-bubble").data("step",8)}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">2. Modules Area</span><span class="dslc-tut-bubble-descr">4/5 Reordering</span><div class="dslc-tut-bubble-content"><strong style="color: #5890e5;">Modules areas</strong>, like <strong style="color: #e5855f;">rows</strong>, can be <strong style="color: #9268a9;">moved</strong>. Let\'s <strong style="color: #9268a9;">move</strong> the <strong style="color: #5890e5;">modules area</strong> you just created.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade"},{dslc_type:"action",dslc_label:'<strong style="color: #9268a9;">Rollover</strong> the <strong style="color: #5890e5;">modules area</strong> to make the options appear.',dslc_target:".dslc-modules-area.dslc-12-col",dslc_event_el:".dslc-modules-area.dslc-12-col",dslc_event:"mouseenter.dslc_tut_add_row",dslc_parent_el:".dslc-modules-area.dslc-12-col",dslc_animation:"fade",dslc_pos:"above"},{dslc_type:"action",dslc_label:'Now <strong style="color: #06b2ac;">Click & Drag</strong> the move icon to move the <strong style="color: #5890e5;">modules area</strong> on top of the 2 others.',dslc_target:".dslc-modules-area.dslc-12-col .dslca-move-modules-area-hook",dslc_event_el:".dslc-modules-area.dslc-12-col .dslca-move-modules-area-hook",dslc_event:"mousedown.dslc_tut_add_row",dslc_parent_el:".dslc-modules-area.dslc-12-col",dslc_animation:"slide",dslc_pos:"bellow",dslc_func_start:function(){t(".dslc-modules-area.dslc-12-col .dslca-modules-area-manage").addClass("dslc-tut-force-show"),t(".dslc-modules-area.dslc-12-col .dslca-copy-modules-area-hook").addClass("dslca-action-disabled")},dslc_func_end:function(){t(".dslc-modules-area.dslc-12-col .dslca-copy-modules-area-hook").removeClass("dslca-action-disabled")}},{dslc_type:"action",dslc_label:'Now <strong style="color: #06b2ac;">Click & Drag</strong> the move icon to move the <strong style="color: #5890e5;">modules area</strong> on top of the 2 others.',dslc_target:".dslc-modules-section",dslc_event_el:t(document),dslc_event:"mouseup.dslc_tut_add_row",dslc_parent_el:".dslc-modules-area",dslc_animation:"slide",dslc_pos:"above",dslc_func_end:function(){t(".dslc-modules-area:first-child").hasClass("dslc-12-col")||t(".dslc-tut-bubble").data("step",12)}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">2. Modules Area</span><span class="dslc-tut-bubble-descr">5/5 Deleting</span><div class="dslc-tut-bubble-content">The last thing that you can do with <strong style="color: #5890e5;">modules areas</strong> is to <strong style="color: #e55f5f;">delete</strong> them.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){t(".dslc-modules-area.dslc-12-col .dslca-modules-area-manage").removeClass("dslc-tut-force-show")}},{dslc_type:"action",dslc_label:'<strong style="color: #9268a9;">Rollover</strong> the <strong style="color: #5890e5;">modules area</strong> to make the options appear.',dslc_target:".dslc-modules-area.dslc-12-col",dslc_event_el:".dslc-modules-area.dslc-12-col",dslc_event:"mouseenter.dslc_tut_add_row",dslc_parent_el:".dslc-modules-area",dslc_animation:"fade",dslc_pos:"above"},{dslc_type:"action",dslc_label:'Now click the <strong style="color: #e55f5f;">delete</strong> icon to delete the <strong style="color: #5890e5;">modules area</strong>.',dslc_target:".dslc-modules-area.dslc-12-col .dslca-delete-modules-area-hook",dslc_event_el:".dslc-modules-area.dslc-12-col .dslca-delete-modules-area-hook",dslc_event:"click.dslc_tut_add_row",dslc_parent_el:".dslc-modules-area.dslc-12-col",dslc_animation:"slide",dslc_pos:"bellow",dslc_func_start:function(){t(".dslc-modules-area.dslc-12-col .dslca-modules-area-manage").addClass("dslc-tut-force-show"),t(".dslca-copy-modules-area-hook, .dslca-move-modules-area-hook, .dslca-change-width-modules-area-hook").addClass("dslca-action-disabled")},dslc_func_end:function(){t(".dslca-copy-modules-area-hook, .dslca-move-modules-area-hook, .dslca-change-width-modules-area-hook").removeClass("dslca-action-disabled")}},{dslc_type:"action",dslc_label:"Click <strong>CONFIRM</strong> to confirm the deletion of the modules area..",dslc_target:".dslca-prompt-modal-confirm-hook",dslc_event_el:".dslca-prompt-modal-confirm-hook",dslc_event:"click.dslc_tut_add_row",dslc_parent_el:".dslca-prompt-modal",dslc_animation:"slide",dslc_pos:"bellow",dslc_func_start:function(){},dslc_func_end:function(){}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">2. Modules Area</span><span class="dslc-tut-bubble-descr">finished</span><div class="dslc-tut-bubble-content">Congrats on completing <strong>Chapter Two</strong> of this interactive <strong style="color: #9268a9;">tutorial</strong>.<br>Now that you know everything about <strong style="color: #e5855f;">rows</strong> and <strong style="color: #5890e5;">modules areas</strong>, it\'s time for you to learn how to use <strong style="color:#58bce5;">modules</strong>.</div><a href="'+i+'" class="dslc-tut-proceed dslca-link">start chapter Three<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){t(".dslc-modules-area.dslc-12-col .dslca-modules-area-manage").removeClass("dslc-tut-force-show")}}],u[d]=[{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">3. Modules</span><span class="dslc-tut-bubble-descr">1/3 Adding modules</span><div class="dslc-tut-bubble-content">In this chapter, we will show you how to use <strong style="color:#58bce5;">modules</strong>.<br>These are the most important part of the <strong style="color: #06b2ac;">Live Composer</strong> and they will allow you to display your content.<br>To start, let\'s add a <strong style="color:#58bce5;">module</strong>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade"},{dslc_type:"action",dslc_label:'<strong style="color: #06b2ac;">Click & Drag</strong> this item and release it over the <strong style="color: #5890e5;">modules area</strong>.',dslc_target:'.dslca-module[data-id="DSLC_Blog"]',dslc_event_el:'.dslca-module[data-id="DSLC_Blog"]',dslc_event:"mousedown.dslc_tut_add_row",dslc_parent_el:".dslca-container",dslc_animation:"fade",dslc_pos:"above",dslc_func_start:function(){t(".dslc-tut-panel-prevent").show(),t('.dslca-module[data-id="DSLC_Blog"]').css("z-index",1000001)}},{dslc_type:"action",dslc_label:'<strong style="color: #06b2ac;">Click & Drag</strong> this item and release it over the <strong style="color: #5890e5;">modules area</strong>.',dslc_target:".dslc-modules-area",dslc_event_el:t(document),dslc_event:"mouseup.dslc_tut_add_row",dslc_animation:"slide",dslc_pos:"above",dslc_func_end:function(){t(".dslc-tut-panel-prevent").hide(),t('.dslca-module[data-id="DSLC_Blog"]').css("z-index","auto"),t("body").hasClass("dslca-anim-in-progress")||t(".dslc-tut-bubble").data("step",1)}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">3. Modules</span><div class="dslc-tut-bubble-content">Some modules will take the content that you created in the WordPress admin.<br>This is the case for the <strong style="color:#58bce5;">blog module</strong>, it retreives the blog post that you have created.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade"},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">3. Modules</span><span class="dslc-tut-bubble-descr">2/3 Functionality</span><div class="dslc-tut-bubble-content">Every module has it\'s own set of options. There are <strong style="color: #9268a9;">Functionality</strong> and <strong style="color: #06b2ac;">Styling</strong> options.<br>For now let\'s take a look at the <strong style="color: #9268a9;">Functionality</strong> options for the <strong style="color:#58bce5;">blog module</strong>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade"},{dslc_type:"action",dslc_label:'<strong style="color: #9268a9;">Rollover</strong> the <strong style="color: #58bce5;">module</strong> to make the options appear and click on the <strong style="color:#06b2ac;">edit</strong> icon.',dslc_target:".dslca-module-edit-hook",dslc_event_el:".dslca-module-edit-hook",dslc_event:"click.dslc_tut_add_row",dslc_parent_el:".dslc-module-front",dslc_animation:"slide",dslc_pos:"above",dslc_func_start:function(){t(".dslc-module-front").trigger("mouseenter"),t(".dslca-copy-module-hook, .dslca-move-module-hook, .dslca-delete-module-hook").addClass("dslca-action-disabled")}},{dslc_type:"action",dslc_label:'Go ahead and change the <strong style="color:#06b2ac;">posts per row</strong> to <strong>2</strong>.',dslc_target:'.dslca-module-edit-option[data-id="columns"]',dslc_event_el:'.dslca-module-edit-option[data-id="columns"]',dslc_event:"change.dslc_tut_modules_info",dslc_parent_el:".dslca-container",dslc_animation:"fade",dslc_pos:"above",dslc_func_start:function(){t(".dslca-copy-module-hook, .dslca-move-module-hook, .dslca-delete-module-hook").removeClass("dslca-action-disabled"),t(".dslc-tut-panel-prevent").show(),t('.dslca-module-edit-option[data-id="columns"]').css("z-index",1000001)},dslc_func_end:function(){6!=t('.dslca-module-edit-field[data-id="columns"]').val()&&t(".dslc-tut-bubble").data("step",6)}},{dslc_type:"action",dslc_label:'You can test any other option in this panel, once you are done <a class="dslc-tut-proceed-2" href="#"><strong>click here to continue</strong></a>.',dslc_target:".dslca-module-edit-options",dslc_event_el:".dslc-tut-proceed-2",dslc_event:"click.dslc_tut_modules_info",dslc_parent_el:".dslca-container",dslc_animation:"slide",dslc_pos:"above",dslc_func_start:function(){t('.dslca-module-edit-option[data-id="columns"]').css("z-index","auto"),t(".dslca-module-edit-options-wrapper").css("z-index",1000001)}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">3. Modules</span><span class="dslc-tut-bubble-descr">3/3 Styling</span><div class="dslc-tut-bubble-content">There are also a lot of <strong style="color: #06b2ac;">styling</strong> options that you can change for every <strong style="color: #58bce5;">module</strong>, let\'s change a few now.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_parent_el:".dslca-container",dslc_animation:"fade",dslc_func_start:function(){t(".dslca-module-edit-options-wrapper").css("z-index","auto")
2
- }},{dslc_type:"action",dslc_label:'Click on the <strong style="color: #06b2ac;">styling</strong> tab to show the <strong style="color: #06b2ac;">styling</strong> options.',dslc_target:'.dslca-options-filter-hook[data-section="styling"]',dslc_event_el:'.dslca-options-filter-hook[data-section="styling"]',dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_parent_el:".dslca-container",dslc_pos:"above",dslc_func_start:function(){t('.dslca-options-filter-hook[data-section="styling"]').css("z-index",1000001)}},{dslc_type:"action",dslc_label:"All the options are categorized by the element they affect. Click on any of the tabs to change the options available.",dslc_target:".dslca-module-edit-options-tab-hook:nth-child(4)",dslc_event_el:".dslca-module-edit-options-tab-hook",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_parent_el:".dslca-container",dslc_pos:"above",dslc_func_start:function(){t('.dslca-options-filter-hook[data-section="styling"]').css("z-index","auto"),t(".dslca-module-edit-options-tab-hook").css("z-index",1000001)},dslc_func_end:function(){t(".dslca-module-edit-options-tab-hook").css("z-index","auto !important"),t(".dslca-module-edit-options-wrapper").css("z-index","1000001 !important")}},{dslc_type:"action",dslc_label:'There is a lot of <strong style="color: #06b2ac;">styling</strong> options. Go ahead and play with them and once you are done click on <span style="color: #78ca4f; font-weight:bold;">confirm</span>.',dslc_target:".dslca-module-edit-save",dslc_event_el:".dslca-module-edit-save",dslc_event:"click.dslc_tut_modules_info_2",dslc_animation:"slide",dslc_parent_el:".dslca-container",dslc_pos:"above",dslc_func_start:function(){t(".dslca-module-edit-options").css("z-index",1000001)}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">3. Modules</span><span class="dslc-tut-bubble-descr">finished</span><div class="dslc-tut-bubble-content">Congrats on completing <strong>Chapter Three</strong> of this interactive <strong style="color: #9268a9;">tutorial</strong>.<br>You can proceed to the fourth chapter, there you will learn how to use the <strong style="color: #d8827d;">templates system</strong>.</div><a href="'+r+'" class="dslc-tut-proceed dslca-link">start chapter four<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){t(".dslc-tut-panel-prevent").hide(),t(".dslca-module-edit-options-wrapper").css("z-index","auto")}}],u[a]=[{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">4. Templates System</span><span class="dslc-tut-bubble-descr">1/2 Load</span><div class="dslc-tut-bubble-content">In this chapter, we will show you how to use the <strong style="color: #d8827d;">templates system</strong>.<br>The <strong style="color: #d8827d;">templates system</strong> consists of 4 main features: <strong>Save</strong>, <strong>Load</strong>, <strong>Export</strong> and <strong>Import</strong>.<br>Let\'s start of by <strong>loading</strong> an existing template.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){t('.dslca-section-title-filter-options span[data-origin="user"]').trigger("click")}},{dslc_type:"action",dslc_label:'Click this tab to switch to the <strong style="color: #d8827d;">templates management</strong>.',dslc_target:".dslca-go-to-section-templates",dslc_event_el:".dslca-go-to-section-templates",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_parent_el:".dslca-container",dslc_pos:"above",dslc_func_start:function(){t(".dslc-tut-panel-prevent").show()},dslc_func_end:function(){}},{dslc_type:"action",dslc_label:"Click <strong>Load</strong> to see the available <strong>templates</strong>.",dslc_target:'.dslca-go-to-section-hook[data-section=".dslca-templates-load"]',dslc_event_el:'.dslca-go-to-section-hook[data-section=".dslca-templates-load"]',dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_parent_el:".dslca-container",dslc_pos:"above",dslc_func_start:function(){}},{dslc_type:"action",dslc_label:"Click <strong>Blog Variation 3</strong> to load the <strong>template</strong>.",dslc_target:'.dslca-template[data-id="dslc-blog-ex-3"]',dslc_event_el:'.dslca-template[data-id="dslc-blog-ex-3"]',dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_parent_el:".dslca-container",dslc_pos:"above",dslc_func_start:function(){}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">4. Templates System</span><div class="dslc-tut-bubble-content">The <strong>template</strong> is now loaded. You can of course modify it as you wish.<br>Let\'s move the <strong>sidebar</strong> on the right of the <strong>blog</strong>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade",dslc_func_start:function(){t(".dslc-tut-panel-prevent").hide(),t('.dslca-template[data-id="chapter-four"]').css("z-index","auto")}},{dslc_type:"action",dslc_label:'Let\'s move this <strong style="color: #5890e5;">modules area</strong> on the right of the blog.',dslc_target:".dslc-modules-area.dslc-4-col",dslc_event_el:".dslc-modules-area.dslc-4-col",dslc_event:"mouseenter.dslc_tut_modules_info",dslc_parent_el:".dslc-modules-area.dslc-4-col",dslc_animation:"fade",dslc_pos:"above",dslc_func_start:function(){t(".dslca-change-width-modules-area-hook, .dslca-delete-modules-area-hook, .dslca-copy-modules-area-hook").addClass("dslca-action-disabled")}},{dslc_type:"action",dslc_label:'Let\'s move this <strong style="color: #5890e5;">modules area</strong> on the right of the blog.',dslc_target:".dslc-modules-area.dslc-4-col .dslca-move-modules-area-hook",dslc_event_el:".dslc-modules-area.dslc-4-col .dslca-move-modules-area-hook",dslc_event:"mousedown.dslc_tut_modules_info",dslc_parent_el:".dslc-modules-area.dslc-4-col",dslc_animation:"slide",dslc_pos:"above",dslc_func_start:function(){}},{dslc_type:"action",dslc_label:'Drop the <strong style="color: #5890e5;">modules area</strong> bellow.',dslc_target:".dslc-post.dslc-last-col",dslc_event_el:t(document),dslc_event:"mouseup.dslc_tut_modules_info",dslc_parent_el:".dslc-modules-area.dslc-4-col",dslc_animation:"slide",dslc_pos:"above",dslc_keep_up:!1,dslc_func_start:function(){t(".dslca-change-width-modules-area-hook, .dslca-delete-modules-area-hook, .dslca-copy-modules-area-hook").removeClass("dslca-action-disabled")}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">4. Templates System</span><span class="dslc-tut-bubble-descr">2/2 Import</span><div class="dslc-tut-bubble-content">In the textarea bellow, you can see how an export looks like, let\'s import it. Select the "text" and copy it, when done click continue.<br><br><textarea style="width: 100%; height:50px;">[dslc_modules_section type="wrapped" border_color="" border_width="0" border_style="" border="" bg_color="#f7f7f7" bg_image="" bg_video="" bg_video_overlay_color="" bg_video_overlay_opacity="" bg_image_repeat="no-repeat" bg_image_attachment="parallax" bg_image_position="center bottom" padding="49" padding_h="0" ] [dslc_modules_area last="yes" size="12"] [dslc_module]YToxNTc6e3M6NDoic2l6ZSI7czoyOiIxMiI7czo0OiJ0eXBlIjtzOjQ6ImdyaWQiO3M6MTE6Im9yaWVudGF0aW9uIjtzOjg6InZlcnRpY2FsIjtzOjY6ImFtb3VudCI7czoxOiI2IjtzOjE1OiJwYWdpbmF0aW9uX3R5cGUiO3M6ODoibnVtYmVyZWQiO3M6NzoiY29sdW1ucyI7czoxOiI0IjtzOjEwOiJjYXRlZ29yaWVzIjtzOjA6IiI7czo3OiJvcmRlcmJ5IjtzOjQ6ImRhdGUiO3M6NToib3JkZXIiO3M6NDoiREVTQyI7czo4OiJlbGVtZW50cyI7czoyMToibWFpbl9oZWFkaW5nIGZpbHRlcnMgIjtzOjEzOiJwb3N0X2VsZW1lbnRzIjtzOjMxOiJ0aHVtYm5haWwgdGl0bGUgZXhjZXJwdCBidXR0b24gIjtzOjE3OiJjYXJvdXNlbF9lbGVtZW50cyI7czoxNDoiYXJyb3dzIGNpcmNsZXMiO3M6MjA6ImNzc193cmFwcGVyX2JnX2NvbG9yIjtzOjA6IiI7czoyNDoiY3NzX3dyYXBwZXJfYm9yZGVyX2NvbG9yIjtzOjA6IiI7czoyNDoiY3NzX3dyYXBwZXJfYm9yZGVyX3dpZHRoIjtzOjE6IjAiO3M6MjM6ImNzc193cmFwcGVyX2JvcmRlcl90cmJsIjtzOjIxOiJ0b3AgcmlnaHQgYm90dG9tIGxlZnQiO3M6Mjk6ImNzc193cmFwcGVyX2JvcmRlcl9yYWRpdXNfdG9wIjtzOjE6IjAiO3M6MzI6ImNzc193cmFwcGVyX2JvcmRlcl9yYWRpdXNfYm90dG9tIjtzOjE6IjAiO3M6Mjg6ImNzc193cmFwcGVyX3BhZGRpbmdfdmVydGljYWwiO3M6MToiMCI7czozMDoiY3NzX3dyYXBwZXJfcGFkZGluZ19ob3Jpem9udGFsIjtzOjE6IjAiO3M6MjA6ImNzc19zZXBfYm9yZGVyX2NvbG9yIjtzOjc6IiNlZGVkZWQiO3M6MTQ6ImNzc19zZXBfaGVpZ2h0IjtzOjI6IjMwIjtzOjEzOiJjc3Nfc2VwX3N0eWxlIjtzOjU6InNvbGlkIjtzOjE4OiJjc3NfdGh1bWJfYmdfY29sb3IiO3M6MDoiIjtzOjI3OiJjc3NfdGh1bWJfYm9yZGVyX3JhZGl1c190b3AiO3M6MToiMCI7czozMDoiY3NzX3RodW1iX2JvcmRlcl9yYWRpdXNfYm90dG9tIjtzOjE6IjAiO3M6MTI6InRodW1iX21hcmdpbiI7czoxOiIwIjtzOjE4OiJ0aHVtYl9tYXJnaW5fcmlnaHQiO3M6MjoiMjAiO3M6MjY6ImNzc190aHVtYl9wYWRkaW5nX3ZlcnRpY2FsIjtzOjE6IjAiO3M6Mjg6ImNzc190aHVtYl9wYWRkaW5nX2hvcml6b250YWwiO3M6MToiMCI7czoxMToidGh1bWJfd2lkdGgiO3M6MzoiMTAwIjtzOjE3OiJjc3NfbWFpbl9iZ19jb2xvciI7czo3OiIjZTM2MzRkIjtzOjIxOiJjc3NfbWFpbl9ib3JkZXJfY29sb3IiO3M6MDoiIjtzOjIxOiJjc3NfbWFpbl9ib3JkZXJfd2lkdGgiO3M6MToiMCI7czoyMDoiY3NzX21haW5fYm9yZGVyX3RyYmwiO3M6MjI6InRvcCByaWdodCBib3R0b20gbGVmdCAiO3M6MjY6ImNzc19tYWluX2JvcmRlcl9yYWRpdXNfdG9wIjtzOjE6IjAiO3M6Mjk6ImNzc19tYWluX2JvcmRlcl9yYWRpdXNfYm90dG9tIjtzOjE6IjAiO3M6MjU6ImNzc19tYWluX3BhZGRpbmdfdmVydGljYWwiO3M6MjoiMzQiO3M6Mjc6ImNzc19tYWluX3BhZGRpbmdfaG9yaXpvbnRhbCI7czoyOiIzNyI7czoxOToiY3NzX21haW5fbWluX2hlaWdodCI7czoxOiIwIjtzOjE5OiJjc3NfbWFpbl90ZXh0X2FsaWduIjtzOjQ6ImxlZnQiO3M6MTE6InRpdGxlX2NvbG9yIjtzOjc6IiNmZmZmZmYiO3M6MTc6InRpdGxlX2NvbG9yX2hvdmVyIjtzOjA6IiI7czoxNToidGl0bGVfZm9udF9zaXplIjtzOjI6IjI1IjtzOjIxOiJjc3NfdGl0bGVfZm9udF93ZWlnaHQiO3M6MzoiNTAwIjtzOjIxOiJjc3NfdGl0bGVfZm9udF9mYW1pbHkiO3M6NzoiUmFsZXdheSI7czoxNzoidGl0bGVfbGluZV9oZWlnaHQiO3M6MjoiMzUiO3M6MTI6InRpdGxlX21hcmdpbiI7czoyOiIxNyI7czoyMToiY3NzX21ldGFfYm9yZGVyX2NvbG9yIjtzOjc6IiNlNWU1ZTUiO3M6MjE6ImNzc19tZXRhX2JvcmRlcl93aWR0aCI7czoxOiIxIjtzOjE0OiJjc3NfbWV0YV9jb2xvciI7czo3OiIjYThhOGE4IjtzOjE4OiJjc3NfbWV0YV9mb250X3NpemUiO3M6MjoiMTEiO3M6MjA6ImNzc19tZXRhX2ZvbnRfZmFtaWx5IjtzOjE3OiJMaWJyZSBCYXNrZXJ2aWxsZSI7czoyMDoiY3NzX21ldGFfZm9udF93ZWlnaHQiO3M6MzoiNDAwIjtzOjIyOiJjc3NfbWV0YV9tYXJnaW5fYm90dG9tIjtzOjI6IjE2IjtzOjI1OiJjc3NfbWV0YV9wYWRkaW5nX3ZlcnRpY2FsIjtzOjI6IjE2IjtzOjI3OiJjc3NfbWV0YV9wYWRkaW5nX2hvcml6b250YWwiO3M6MToiMCI7czoxOToiY3NzX21ldGFfbGlua19jb2xvciI7czo3OiIjNTg5MGU1IjtzOjI1OiJjc3NfbWV0YV9saW5rX2NvbG9yX2hvdmVyIjtzOjc6IiM1ODkwZTUiO3M6MTc6ImNzc19leGNlcnB0X2NvbG9yIjtzOjc6IiNmMGQ2ZDYiO3M6MjE6ImNzc19leGNlcnB0X2ZvbnRfc2l6ZSI7czoyOiIxNSI7czoyMzoiY3NzX2V4Y2VycHRfZm9udF93ZWlnaHQiO3M6MzoiNTAwIjtzOjIzOiJjc3NfZXhjZXJwdF9mb250X2ZhbWlseSI7czo0OiJMYXRvIjtzOjIzOiJjc3NfZXhjZXJwdF9saW5lX2hlaWdodCI7czoyOiIyNyI7czoxNDoiZXhjZXJwdF9tYXJnaW4iO3M6MjoiMjgiO3M6MTQ6ImV4Y2VycHRfbGVuZ3RoIjtzOjI6IjQwIjtzOjExOiJidXR0b25fdGV4dCI7czoxNjoiQ09OVElOVUUgUkVBRElORyI7czoxOToiY3NzX2J1dHRvbl9iZ19jb2xvciI7czo3OiIjYzI0ODM4IjtzOjI1OiJjc3NfYnV0dG9uX2JnX2NvbG9yX2hvdmVyIjtzOjc6IiNmZmZmZmYiO3M6MjM6ImNzc19idXR0b25fYm9yZGVyX3dpZHRoIjtzOjE6IjAiO3M6MjM6ImNzc19idXR0b25fYm9yZGVyX2NvbG9yIjtzOjc6IiMxNDBmMGYiO3M6Mjk6ImNzc19idXR0b25fYm9yZGVyX2NvbG9yX2hvdmVyIjtzOjc6IiM5ZTZkNmQiO3M6MjQ6ImNzc19idXR0b25fYm9yZGVyX3JhZGl1cyI7czoxOiIwIjtzOjE2OiJjc3NfYnV0dG9uX2NvbG9yIjtzOjc6IiNmZmZmZmYiO3M6MjI6ImNzc19idXR0b25fY29sb3JfaG92ZXIiO3M6NzoiIzhmOGY4ZiI7czoyMDoiY3NzX2J1dHRvbl9mb250X3NpemUiO3M6MjoiMTIiO3M6MjI6ImNzc19idXR0b25fZm9udF93ZWlnaHQiO3M6MzoiODAwIjtzOjIyOiJjc3NfYnV0dG9uX2ZvbnRfZmFtaWx5IjtzOjQ6IkxhdG8iO3M6Mjc6ImNzc19idXR0b25fcGFkZGluZ192ZXJ0aWNhbCI7czoyOiIxNyI7czoyOToiY3NzX2J1dHRvbl9wYWRkaW5nX2hvcml6b250YWwiO3M6MjoiMTkiO3M6MTQ6ImJ1dHRvbl9pY29uX2lkIjtzOjk6InNoYXJlLWFsdCI7czoyMToiY3NzX2J1dHRvbl9pY29uX2NvbG9yIjtzOjc6IiNmMDdhNjgiO3M6Mjc6ImNzc19idXR0b25faWNvbl9jb2xvcl9ob3ZlciI7czo3OiIjZDFkMWQxIjtzOjIyOiJjc3NfYnV0dG9uX2ljb25fbWFyZ2luIjtzOjE6IjUiO3M6MTg6Im1haW5faGVhZGluZ190aXRsZSI7czoxNzoiTEFURVNUIEJMT0cgUE9TVFMiO3M6MjM6Im1haW5faGVhZGluZ19saW5rX3RpdGxlIjtzOjg6IlZJRVcgQUxMIjtzOjIyOiJjc3NfbWFpbl9oZWFkaW5nX2NvbG9yIjtzOjA6IiI7czoyNjoiY3NzX21haW5faGVhZGluZ19mb250X3NpemUiO3M6MjoiMTciO3M6Mjg6ImNzc19tYWluX2hlYWRpbmdfZm9udF93ZWlnaHQiO3M6MzoiNDAwIjtzOjI4OiJjc3NfbWFpbl9oZWFkaW5nX2ZvbnRfZmFtaWx5IjtzOjY6Ik9zd2FsZCI7czoyODoiY3NzX21haW5faGVhZGluZ19saW5lX2hlaWdodCI7czoyOiIzNSI7czoyNzoiY3NzX21haW5faGVhZGluZ19saW5rX2NvbG9yIjtzOjc6IiNlMzYzNGQiO3M6MzM6ImNzc19tYWluX2hlYWRpbmdfbGlua19jb2xvcl9ob3ZlciI7czo3OiIjYzc1MDNlIjtzOjMxOiJjc3NfbWFpbl9oZWFkaW5nX2xpbmtfZm9udF9zaXplIjtzOjI6IjExIjtzOjMzOiJjc3NfbWFpbl9oZWFkaW5nX2xpbmtfZm9udF93ZWlnaHQiO3M6MzoiNjAwIjtzOjMzOiJjc3NfbWFpbl9oZWFkaW5nX2xpbmtfZm9udF9mYW1pbHkiO3M6OToiT3BlbiBTYW5zIjtzOjMzOiJjc3NfbWFpbl9oZWFkaW5nX2xpbmtfcGFkZGluZ192ZXIiO3M6MToiOSI7czoxMzoidmlld19hbGxfbGluayI7czoxOiIjIjtzOjI1OiJjc3NfaGVhZGluZ19tYXJnaW5fYm90dG9tIjtzOjI6IjI1IjtzOjE5OiJjc3NfZmlsdGVyX2JnX2NvbG9yIjtzOjc6IiNmZmZmZmYiO3M6MjY6ImNzc19maWx0ZXJfYmdfY29sb3JfYWN0aXZlIjtzOjc6IiNlMzYzNGQiO3M6MjM6ImNzc19maWx0ZXJfYm9yZGVyX2NvbG9yIjtzOjc6IiNlOGU4ZTgiO3M6MzA6ImNzc19maWx0ZXJfYm9yZGVyX2NvbG9yX2FjdGl2ZSI7czo3OiIjZTM2MzRkIjtzOjIzOiJjc3NfZmlsdGVyX2JvcmRlcl93aWR0aCI7czoxOiIxIjtzOjIyOiJjc3NfZmlsdGVyX2JvcmRlcl90cmJsIjtzOjIxOiJ0b3AgcmlnaHQgYm90dG9tIGxlZnQiO3M6MjQ6ImNzc19maWx0ZXJfYm9yZGVyX3JhZGl1cyI7czoxOiIzIjtzOjE2OiJjc3NfZmlsdGVyX2NvbG9yIjtzOjc6IiM5Nzk3OTciO3M6MjM6ImNzc19maWx0ZXJfY29sb3JfYWN0aXZlIjtzOjc6IiNmZmZmZmYiO3M6MjA6ImNzc19maWx0ZXJfZm9udF9zaXplIjtzOjI6IjExIjtzOjIyOiJjc3NfZmlsdGVyX2ZvbnRfd2VpZ2h0IjtzOjM6IjcwMCI7czoyMjoiY3NzX2ZpbHRlcl9mb250X2ZhbWlseSI7czo5OiJPcGVuIFNhbnMiO3M6Mjc6ImNzc19maWx0ZXJfcGFkZGluZ192ZXJ0aWNhbCI7czoyOiIxMiI7czoyOToiY3NzX2ZpbHRlcl9wYWRkaW5nX2hvcml6b250YWwiO3M6MjoiMTIiO3M6MTk6ImNzc19maWx0ZXJfcG9zaXRpb24iO3M6NToicmlnaHQiO3M6MTg6ImNzc19maWx0ZXJfc3BhY2luZyI7czoxOiI5IjtzOjE5OiJjc3NfYXJyb3dzX2JnX2NvbG9yIjtzOjc6IiNjOWM5YzkiO3M6MjU6ImNzc19hcnJvd3NfYmdfY29sb3JfaG92ZXIiO3M6NzoiIzU4OTBlNSI7czoyMzoiY3NzX2Fycm93c19ib3JkZXJfY29sb3IiO3M6MDoiIjtzOjI5OiJjc3NfYXJyb3dzX2JvcmRlcl9jb2xvcl9ob3ZlciI7czowOiIiO3M6MjM6ImNzc19hcnJvd3NfYm9yZGVyX3dpZHRoIjtzOjE6IjAiO3M6MjQ6ImNzc19hcnJvd3NfYm9yZGVyX3JhZGl1cyI7czoxOiIzIjtzOjE2OiJjc3NfYXJyb3dzX2NvbG9yIjtzOjc6IiNmZmZmZmYiO3M6MjI6ImNzc19hcnJvd3NfY29sb3JfaG92ZXIiO3M6NzoiI2ZmZmZmZiI7czoyMToiY3NzX2Fycm93c19tYXJnaW5fdG9wIjtzOjE6IjYiO3M6MTU6ImNzc19hcnJvd3Nfc2l6ZSI7czoyOiIyMyI7czoyMToiY3NzX2Fycm93c19hcnJvd19zaXplIjtzOjI6IjEwIjtzOjE3OiJjc3NfY2lyY2xlc19jb2xvciI7czo3OiIjYjliOWI5IjtzOjI0OiJjc3NfY2lyY2xlc19jb2xvcl9hY3RpdmUiO3M6NzoiIzU4OTBlNSI7czoyMjoiY3NzX2NpcmNsZXNfbWFyZ2luX3RvcCI7czoyOiIyMCI7czoxNjoiY3NzX2NpcmNsZXNfc2l6ZSI7czoxOiI3IjtzOjE5OiJjc3NfY2lyY2xlc19zcGFjaW5nIjtzOjE6IjMiO3M6MTM6ImNzc19wYWdfYWxpZ24iO3M6NDoibGVmdCI7czoxNjoiY3NzX3BhZ19iZ19jb2xvciI7czowOiIiO3M6MjA6ImNzc19wYWdfYm9yZGVyX2NvbG9yIjtzOjA6IiI7czoyMDoiY3NzX3BhZ19ib3JkZXJfd2lkdGgiO3M6MToiMCI7czoxOToiY3NzX3BhZ19ib3JkZXJfdHJibCI7czoyMToidG9wIHJpZ2h0IGJvdHRvbSBsZWZ0IjtzOjIxOiJjc3NfcGFnX2JvcmRlcl9yYWRpdXMiO3M6MToiMCI7czoyNDoiY3NzX3BhZ19wYWRkaW5nX3ZlcnRpY2FsIjtzOjE6IjAiO3M6MjY6ImNzc19wYWdfcGFkZGluZ19ob3Jpem9udGFsIjtzOjE6IjAiO3M6MjE6ImNzc19wYWdfaXRlbV9iZ19jb2xvciI7czo3OiIjZmZmZmZmIjtzOjI4OiJjc3NfcGFnX2l0ZW1fYmdfY29sb3JfYWN0aXZlIjtzOjc6IiNlMzYzNGQiO3M6MjU6ImNzc19wYWdfaXRlbV9ib3JkZXJfY29sb3IiO3M6NzoiI2U4ZThlOCI7czozMjoiY3NzX3BhZ19pdGVtX2JvcmRlcl9jb2xvcl9hY3RpdmUiO3M6NzoiI2UzNjM0ZCI7czoyNToiY3NzX3BhZ19pdGVtX2JvcmRlcl93aWR0aCI7czoxOiIxIjtzOjMyOiJjc3NfcGFnX2l0ZW1fYm9yZGVyX3dpZHRoX2FjdGl2ZSI7czoxOiIxIjtzOjI0OiJjc3NfcGFnX2l0ZW1fYm9yZGVyX3RyYmwiO3M6MjE6InRvcCByaWdodCBib3R0b20gbGVmdCI7czoyNjoiY3NzX3BhZ19pdGVtX2JvcmRlcl9yYWRpdXMiO3M6MToiMyI7czoxODoiY3NzX3BhZ19pdGVtX2NvbG9yIjtzOjc6IiM5Nzk3OTciO3M6MjU6ImNzc19wYWdfaXRlbV9jb2xvcl9hY3RpdmUiO3M6NzoiI2ZmZmZmZiI7czoyMjoiY3NzX3BhZ19pdGVtX2ZvbnRfc2l6ZSI7czoyOiIxMSI7czoyNDoiY3NzX3BhZ19pdGVtX2ZvbnRfd2VpZ2h0IjtzOjM6IjcwMCI7czoyNDoiY3NzX3BhZ19pdGVtX2ZvbnRfZmFtaWx5IjtzOjk6Ik9wZW4gU2FucyI7czoyOToiY3NzX3BhZ19pdGVtX3BhZGRpbmdfdmVydGljYWwiO3M6MjoiMTIiO3M6MzE6ImNzc19wYWdfaXRlbV9wYWRkaW5nX2hvcml6b250YWwiO3M6MjoiMTIiO3M6MjA6ImNzc19wYWdfaXRlbV9zcGFjaW5nIjtzOjI6IjEwIjtzOjE4OiJtb2R1bGVfaW5zdGFuY2VfaWQiO3M6MzoiMzc3IjtzOjk6Im1vZHVsZV9pZCI7czo5OiJEU0xDX0Jsb2ciO30=[/dslc_module] [/dslc_modules_area] [/dslc_modules_section] </textarea>.</div><a href="#" class="dslc-tut-proceed">continue<span class="dslc-tut-icon dslc-icon-chevron-right"></span></a>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade"},{dslc_type:"action",dslc_label:'Click this tab to switch to the main <strong style="color: #d8827d;">templates management</strong> section.',dslc_target:".dslca-go-to-section-templates",dslc_event_el:".dslca-go-to-section-templates",dslc_event:"click.dslc_tut_modules_info",dslc_parent_el:".dslca-container",dslc_animation:"fade",dslc_pos:"above",dslc_func_start:function(){t(".dslc-tut-panel-prevent").show()}},{dslc_type:"action",dslc_label:"Click <strong>Import</strong>, paste the code in the textarea and click the <strong>import</strong> button.",dslc_target:'.dslca-open-modal-hook[data-modal=".dslca-modal-templates-import"]',dslc_event_el:'.dslca-open-modal-hook[data-modal=".dslca-modal-templates-import"]',dslc_event:"click.dslc_tut_modules_info",dslc_parent_el:".dslca-container",dslc_animation:"fade",dslc_pos:"above"},{dslc_type:"action",dslc_label:"Click <strong>Import</strong>, paste the code in the textarea and click the <strong>import</strong> button.",dslc_target:".dslca-modal-templates-import",dslc_event_el:".dslca-submit",dslc_event:"click.dslc_tut_modules_info",dslc_parent_el:".dslca-container",dslc_animation:"slide",dslc_pos:"above",dslc_func_start:function(){t(".dslca-close-modal-hook").addClass("dslca-action-disabled")}},{dslc_type:"information",dslc_label:'<span class="dslc-tut-bubble-title">4. Templates System</span><span class="dslc-tut-bubble-descr">finished</span><div class="dslc-tut-bubble-content">Congrats on completing the <strong style="color: #9268a9;">Basics Tutorial</strong> for <strong style="color: #06b2ac;">Live Composer</strong>.</div>',dslc_target:"body",dslc_event_el:".dslc-tut-proceed",dslc_event:"click.dslc_tut_modules_info",dslc_animation:"fade"}],l()});
 
 
includes/tutorials/tutorial.php DELETED
@@ -1,142 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Table of Contents
5
- *
6
- * dslc_tut_load_scripts ( Load scripts for the tutorial )
7
- * dslc_tut_modal ( Display modal for the tutorial )
8
- * dslc_tut_options ( Register settings )
9
- */
10
-
11
- // Prevent direct access to the file.
12
- if ( ! defined( 'ABSPATH' ) ) {
13
- header( 'HTTP/1.0 403 Forbidden' );
14
- exit;
15
- }
16
-
17
- /**
18
- * Load scripts for the tutorial
19
- *
20
- * @since 1.0
21
- */
22
-
23
- function dslc_tut_load_scripts() {
24
-
25
- // Load minimized scripts and css resources
26
- $min_suffix = '';
27
-
28
- if ( SCRIPT_DEBUG ) {
29
- $min_suffix = '.min';
30
- }
31
-
32
- $tut_ch_one = dslc_get_option( 'lc_tut_chapter_one', 'dslc_plugin_options_tuts' );
33
- $tut_ch_two = dslc_get_option( 'lc_tut_chapter_two', 'dslc_plugin_options_tuts' );
34
- $tut_ch_three = dslc_get_option( 'lc_tut_chapter_three', 'dslc_plugin_options_tuts' );
35
- $tut_ch_four = dslc_get_option( 'lc_tut_chapter_four', 'dslc_plugin_options_tuts' );
36
-
37
- $tut_ids = array($tut_ch_one, $tut_ch_two, $tut_ch_three, $tut_ch_four);
38
-
39
- if ( is_singular() && isset( $_GET['dslc'] ) && in_array( get_the_ID(), $tut_ids ) ) {
40
- wp_enqueue_style( 'dslc-tut-css', DS_LIVE_COMPOSER_URL . 'includes/tutorials/tutorial' . $min_suffix . '.css', array(), DS_LIVE_COMPOSER_VER );
41
- wp_enqueue_script( 'dslc-tut-js', DS_LIVE_COMPOSER_URL . 'includes/tutorials/tutorial' . $min_suffix . '.js', array('jquery'), DS_LIVE_COMPOSER_VER );
42
- }
43
-
44
- } add_action( 'wp_enqueue_scripts', 'dslc_tut_load_scripts' );
45
-
46
-
47
- /**
48
- * Display modal for the tutorial
49
- *
50
- * @since 1.0
51
- */
52
-
53
- function dslc_tut_modal() {
54
-
55
- $tut_ch_one = dslc_get_option( 'lc_tut_chapter_one', 'dslc_plugin_options_tuts' );
56
- $tut_ch_two = dslc_get_option( 'lc_tut_chapter_two', 'dslc_plugin_options_tuts' );
57
- $tut_ch_three = dslc_get_option( 'lc_tut_chapter_three', 'dslc_plugin_options_tuts' );
58
- $tut_ch_four = dslc_get_option( 'lc_tut_chapter_four', 'dslc_plugin_options_tuts' );
59
-
60
- $tut_ids = array($tut_ch_one, $tut_ch_two, $tut_ch_three, $tut_ch_four);
61
-
62
- if ( is_singular() && isset( $_GET['dslc'] ) && in_array( get_the_ID(), $tut_ids ) ) {
63
-
64
- $tut_ch_two_link = add_query_arg( array('dslc' => 'active'), get_permalink( $tut_ch_two ) );
65
- $tut_ch_three_link = add_query_arg( array('dslc' => 'active'), get_permalink( $tut_ch_three ) );
66
- $tut_ch_four_link = add_query_arg( array('dslc' => 'active'), get_permalink( $tut_ch_four ) );
67
-
68
- ?>
69
- <input type="hidden" name="dslc_tut_settings" id="dslc_tut_settings" data-post-id="<?php echo get_the_ID(); ?>" />
70
- <input type="hidden" name="dslc_tut_ch_one" id="dslc_tut_ch_one" data-post-id="<?php echo $tut_ch_one; ?>" />
71
- <input type="hidden" name="dslc_tut_ch_two" id="dslc_tut_ch_two" data-post-id="<?php echo $tut_ch_two; ?>" />
72
- <input type="hidden" name="dslc_tut_ch_three" id="dslc_tut_ch_three" data-post-id="<?php echo $tut_ch_three; ?>" />
73
- <input type="hidden" name="dslc_tut_ch_four" id="dslc_tut_ch_four" data-post-id="<?php echo $tut_ch_four; ?>" />
74
- <input type="hidden" name="dslc_tut_ch_two_link" id="dslc_tut_ch_two_link" data-url="<?php echo $tut_ch_two_link; ?>" />
75
- <input type="hidden" name="dslc_tut_ch_three_link" id="dslc_tut_ch_three_link" data-url="<?php echo $tut_ch_three_link; ?>" />
76
- <input type="hidden" name="dslc_tut_ch_four_link" id="dslc_tut_ch_four_link" data-url="<?php echo $tut_ch_four_link; ?>" />
77
- <?php
78
-
79
- }
80
-
81
- } add_action( 'wp_footer', 'dslc_tut_modal' );
82
-
83
-
84
- /**
85
- * Register Settings
86
- *
87
- * @since 1.0
88
- */
89
-
90
- function dslc_tut_options() {
91
-
92
- global $dslc_plugin_options;
93
-
94
- $pages = get_pages();
95
- $pages_opts = array(
96
- array(
97
- 'label' => __( '- Select -', 'live-composer-page-builder' ),
98
- 'value' => 'none'
99
- )
100
- );
101
- foreach ( $pages as $page ) {
102
- $pages_opts[] = array(
103
- 'label' => $page->post_title,
104
- 'value' => $page->ID
105
- );
106
- }
107
-
108
- $dslc_plugin_options['dslc_plugin_options_tuts'] = array(
109
- 'title' => __( 'Tutorials', 'live-composer-page-builder' ),
110
- 'options' => array(
111
- 'lc_tut_chapter_one' => array(
112
- 'label' => __( 'Chapter One', 'live-composer-page-builder' ),
113
- 'std' => 'none',
114
- 'type' => 'select',
115
- 'descr' => __( 'Choose the page that will be used for chapter one of the tutorial.', 'live-composer-page-builder' ),
116
- 'choices' => $pages_opts
117
- ),
118
- 'lc_tut_chapter_two' => array(
119
- 'label' => __( 'Chapter Two', 'live-composer-page-builder' ),
120
- 'std' => 'none',
121
- 'type' => 'select',
122
- 'descr' => __( 'Choose the page that will be used for chapter two of the tutorial.', 'live-composer-page-builder' ),
123
- 'choices' => $pages_opts
124
- ),
125
- 'lc_tut_chapter_three' => array(
126
- 'label' => __( 'Chapter Three', 'live-composer-page-builder' ),
127
- 'std' => 'none',
128
- 'type' => 'select',
129
- 'descr' => __( 'Choose the page that will be used for chapter three of the tutorial.', 'live-composer-page-builder' ),
130
- 'choices' => $pages_opts
131
- ),
132
- 'lc_tut_chapter_four' => array(
133
- 'label' => __( 'Chapter Four', 'live-composer-page-builder' ),
134
- 'std' => 'none',
135
- 'type' => 'select',
136
- 'descr' => __( 'Choose the page that will be used for chapter four of the tutorial.', 'live-composer-page-builder' ),
137
- 'choices' => $pages_opts
138
- ),
139
- )
140
- );
141
-
142
- } add_action( 'dslc_hook_register_options', 'dslc_tut_options' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
installing grunt.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ 1. Change to the project's root directory.
2
+ 2. Install project dependencies with ‘npm install’.
3
+ 3. Run Grunt with ‘grunt’.
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")}});jQuery(document).ready(function(a){a(document).on("click",".dslc-editor-messages-hide",function(b){var c=a(".dslc-editor-messages-hide").data("can-hide");if(c=="1"){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-hidden-panel"});a(".dslc-editor-messages-section").css("display","none");a(".dslca-container").removeClass("active-message-panel")}else{a("#editor-messages").html('<div class="dslc-notice"><a href="https://livecomposerplugin.com/add-ons/?utm_source=editing-sreen&utm_medium=editor-messages&utm_campaign=add-ons" target="_blank">You can hide this panel once you have any of our premium add-ons installed.</a></div>')}});if(a("div.dslc-editor-messages-section").length){a(".dslc-editor-messages-section").css("display","block");a(".dslca-container").addClass("active-message-panel")}});"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");
2
- 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){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){if(b.preset_setting=="enabled"){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){
3
- 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")});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-control-group.dslca-module-edit-option").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,e;e=c.parent();if(e.parent().hasClass("dslca-modules-section-edit-option")){d=c.closest(".dslca-modules-section-edit-option").find(".dslca-module-edit-field-ttip-content").html()}else{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 f=c.offset();var g=a.outerHeight();var h=a.outerWidth();var i=f.left-h/2+6;var j="50%";if(i<0){j=h/2+i+"px";i=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:f.top-g-20,left:i});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+j+" }</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;
4
- 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)}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> &nbsp; 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")){
5
- 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);var f=a.parent().attr("data-id");if(e.alt!=""&&f=="image"){jQuery('.dslca-module-edit-option-image_alt input[data-id="image_alt"]').val(e.alt)}if(e.title!=""&&f=="image"){jQuery('.dslca-module-edit-option-image_title input[data-id="image_title"]').val(e.title)}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");var d=a.parent().attr("data-id");if(d=="image"){jQuery(".dslca-module-edit-option-image_alt input").attr("value","").trigger("change");jQuery(".dslca-module-edit-option-image_alt input").attr("data-val-bckp","").trigger("change");jQuery(".dslca-module-edit-option-image_title input").attr("value","").trigger("change");jQuery(".dslca-module-edit-option-image_title input").attr("data-val-bckp","").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")})});
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:3e4}).done(function(a){if(a.status=="success"){jQuery(".dslca-save-composer").fadeOut(250);jQuery(".dslca-save-draft-composer").fadeOut(250);jQuery("body").append('<iframe class="lbmn-cache-iframe" id="lbmn-cache-iframe-'+c+'" src="'+DSLCSiteData.siteurl+"/?p="+c+'" ></iframe>');jQuery(".lbmn-cache-iframe").each(function(a,b){jQuery(b).load(function(){jQuery(b).remove()})})}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 30 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)});var r=JSON.stringify(q);return r}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")}});jQuery(document).ready(function(a){a(document).on("click",".dslc-editor-messages-hide",function(b){var c=a(".dslc-editor-messages-hide").data("can-hide");if(c=="1"){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-hidden-panel"});a(".dslc-editor-messages-section").css("display","none");a(".dslca-container").removeClass("active-message-panel")}else{a("#editor-messages").html('<div class="dslc-notice"><a href="https://livecomposerplugin.com/add-ons/?utm_source=editing-sreen&utm_medium=editor-messages&utm_campaign=add-ons" target="_blank">You can hide this panel once you have any of our premium add-ons installed.</a></div>')}});if(a("div.dslc-editor-messages-section").length){a(".dslc-editor-messages-section").css("display","block");a(".dslca-container").addClass("active-message-panel")}});"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(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_show_modal");if(jQuery(".dslca-modal:visible").length){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});jQuery(".dslca-prompt-modal-custom").insertAfter(b);if(jQuery(".dslca-prompt-modal-custom").length>0){jQuery(".dslca-prompt-modal-custom").fadeIn()}b.addClass("dslca-modal-open").show()}function dslc_hide_modal(a,b){if(typeof dslcDebug!=="undefined"&&dslcDebug)console.log("dslc_hide_modal");console.log("dslc_hide_modal");var b=jQuery(b);b.outerHide("destroy");b.hide();if(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(typeof dslcDebug!=="undefined"&&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(typeof dslcDebug!=="undefined"&&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(f.includes("%")){f=f.replace(/%\(\(%/g,"[");f=f.replace(/%\)\)%/g,"]");f=f.replace(/%\(%/g,"[");f=f.replace(/%\)%/g,"]");f=f.replace(/%\{%/g,"[");f=f.replace(/%\}%/g,"]")}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();if(c.includes("%")){c=c.replace(/%\(\(%/g,"[");c=c.replace(/%\)\)%/g,"]");c=c.replace(/%\(%/g,"[");c=c.replace(/%\)%/g,"]");c=c.replace(/%\{%/g,"[");c=c.replace(/%\}%/g,"]")}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();
2
+ 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){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){if(b.preset_setting=="enabled"){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");
3
+ 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")});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()})});(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"||jQuery(".dslca-module-being-edited",LiveComposer.Builder.PreviewAreaDocument).data("dslc-module-id")=="DSLC_Shortcode"){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-control-group.dslca-module-edit-option").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,e;e=c.parent();if(e.parent().hasClass("dslca-modules-section-edit-option")){d=c.closest(".dslca-modules-section-edit-option").find(".dslca-module-edit-field-ttip-content").html()}else{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 f=c.offset();var g=a.outerHeight();var h=a.outerWidth();var i=f.left-h/2+6;var j="50%";if(i<0){j=h/2+i+"px";i=0}jQuery(".dslca-module-edit-field-ttip").show().css({top:f.top-g-20,left:i});jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+j+" }</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");
4
+ }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)}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> &nbsp; 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);var f=a.parent().attr("data-id");if(e.alt!=""&&f=="image"){jQuery('.dslca-module-edit-option-image_alt input[data-id="image_alt"]').val(e.alt)}if(e.title!=""&&f=="image"){jQuery('.dslca-module-edit-option-image_title input[data-id="image_title"]').val(e.title)}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");var d=a.parent().attr("data-id");if(d=="image"){jQuery(".dslca-module-edit-option-image_alt input").attr("value","").trigger("change");jQuery(".dslca-module-edit-option-image_alt input").attr("data-val-bckp","").trigger("change");jQuery(".dslca-module-edit-option-image_title input").attr("value","").trigger("change");jQuery(".dslca-module-edit-option-image_title input").attr("data-val-bckp","").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.frontend.all.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).on("click","a:not(.dslca-link)",function(a){a.preventDefault()});function dslca_publish_event(a,b){b=b?b:{};jQuery(document).trigger({type:a,message:{details:b}})}
1
+ jQuery(document).on("click","a:not(.dslca-link)",function(a){a.preventDefault()});function dslca_publish_event(a,b){b=b?b:{};jQuery(document).trigger({type:a,message:{details:b}})}jQuery(window).load(function(a){var b=jQuery("#dslc-main").offset().top;if(b){jQuery("html, body").animate({scrollTop:b},1e3)}});
js/builder.frontend/builder.frontend.main.js CHANGED
@@ -19,4 +19,20 @@ function dslca_publish_event( eventName, eventData ) {
19
  type: eventName,
20
  message: {details: eventData}
21
  } );
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  type: eventName,
20
  message: {details: eventData}
21
  } );
22
+ }
23
+
24
+ /**
25
+ * Scroll editing page to the content page area (skipping header section).
26
+ *
27
+ * Don't user document.ready
28
+ * as we need all styles/images loaded before scrolling.
29
+ */
30
+ jQuery(window).load(function($) {
31
+ var scrollTo = jQuery('#dslc-main').offset().top;
32
+ if ( scrollTo ) {
33
+ jQuery('html, body').animate({
34
+ scrollTop: scrollTo
35
+ }, 1000);
36
+ }
37
+
38
+ });
js/builder/builder.codegeneration.functions.js CHANGED
@@ -51,13 +51,24 @@ function dslc_save_composer() {
51
  dslc_code : composerCode,
52
  dslc_content_for_search : contentForSearch
53
  },
54
- timeout: 10000
55
  }).done(function( response ) {
56
 
57
  // On success hide the publish button
58
  if ( response.status == 'success' ) {
59
  jQuery('.dslca-save-composer').fadeOut(250);
60
  jQuery('.dslca-save-draft-composer').fadeOut(250);
 
 
 
 
 
 
 
 
 
 
 
61
  // On fail show an alert message
62
  } else {
63
  alert( 'Something went wrong, please try to save again. Are you sure to make any changes? Error Code: ' + response.status);
@@ -65,7 +76,7 @@ function dslc_save_composer() {
65
  }).fail(function( response ) {
66
 
67
  if ( response.statusText == 'timeout' ) {
68
- alert( 'The request timed out after 10 seconds. Server do not respond in time. Please try again.' );
69
  } else {
70
  alert( 'Something went wrong. Please try again. Error Code: ' + response.statusText );
71
  }
@@ -199,6 +210,7 @@ function dslc_generate_code() {
199
  // composerCode = composerCode + '[/dslc_modules_section] ';
200
  });
201
 
 
202
  // Remove the last comma in the code.
203
  pageCodeInJson = pageCodeInJson.slice(0, -1);
204
 
@@ -260,7 +272,6 @@ function dslc_generate_section_code( theModulesSection ) {
260
 
261
  // Get current JSON.
262
  modulesSectionJsonString = modulesSection.find('.dslca-section-code').val();
263
-
264
  modulesSectionJson = JSON.parse(modulesSectionJsonString);
265
 
266
  // Generate attributes for the row shortcode
@@ -456,9 +467,6 @@ function dslc_generate_section_code( theModulesSection ) {
456
 
457
  // Add the module JSON as array item
458
  moduleAreaJSON['content'].push( moduleCodeJSON );
459
-
460
- // pageCodeInJson = pageCodeInJson + moduleCode + ',';
461
-
462
  }
463
 
464
  // Fix bug with modules duplication if broken module saved.
@@ -472,7 +480,9 @@ function dslc_generate_section_code( theModulesSection ) {
472
  // composerCode = composerCode + '[/dslc_modules_area] ';
473
  });
474
 
475
- return JSON.stringify( modulesSectionJson );
 
 
476
  }
477
 
478
  /**
51
  dslc_code : composerCode,
52
  dslc_content_for_search : contentForSearch
53
  },
54
+ timeout: 30000
55
  }).done(function( response ) {
56
 
57
  // On success hide the publish button
58
  if ( response.status == 'success' ) {
59
  jQuery('.dslca-save-composer').fadeOut(250);
60
  jQuery('.dslca-save-draft-composer').fadeOut(250);
61
+
62
+ // Create new cache version after it's saved.
63
+ jQuery('body').append( '<iframe class="lbmn-cache-iframe" id="lbmn-cache-iframe-' + postID + '" src="'+ DSLCSiteData.siteurl + '/?p=' + postID +'" ></iframe>' );
64
+
65
+ jQuery('.lbmn-cache-iframe').each(function(index, el) {
66
+ jQuery(el).load(function() {
67
+ jQuery(el).remove();
68
+ // Cache built at this point. Remove iframe.
69
+ });
70
+ });
71
+
72
  // On fail show an alert message
73
  } else {
74
  alert( 'Something went wrong, please try to save again. Are you sure to make any changes? Error Code: ' + response.status);
76
  }).fail(function( response ) {
77
 
78
  if ( response.statusText == 'timeout' ) {
79
+ alert( 'The request timed out after 30 seconds. Server do not respond in time. Please try again.' );
80
  } else {
81
  alert( 'Something went wrong. Please try again. Error Code: ' + response.statusText );
82
  }
210
  // composerCode = composerCode + '[/dslc_modules_section] ';
211
  });
212
 
213
+
214
  // Remove the last comma in the code.
215
  pageCodeInJson = pageCodeInJson.slice(0, -1);
216
 
272
 
273
  // Get current JSON.
274
  modulesSectionJsonString = modulesSection.find('.dslca-section-code').val();
 
275
  modulesSectionJson = JSON.parse(modulesSectionJsonString);
276
 
277
  // Generate attributes for the row shortcode
467
 
468
  // Add the module JSON as array item
469
  moduleAreaJSON['content'].push( moduleCodeJSON );
 
 
 
470
  }
471
 
472
  // Fix bug with modules duplication if broken module saved.
480
  // composerCode = composerCode + '[/dslc_modules_area] ';
481
  });
482
 
483
+ var generatedCode = JSON.stringify( modulesSectionJson );
484
+
485
+ return generatedCode;
486
  }
487
 
488
  /**
js/builder/builder.modalwindow.functions.js CHANGED
@@ -19,10 +19,12 @@
19
 
20
  function dslc_show_modal( hook, modal ) {
21
 
22
- if ( dslcDebug ) console.log( 'dslc_show_modal' );
23
 
24
- // If a modal already visibile hide it
25
- dslc_hide_modal( '', jQuery('.dslca-modal:visible') );
 
 
26
 
27
  // Vars
28
  var modal = jQuery(modal);
@@ -42,19 +44,21 @@
42
  offset = position.left - diff;
43
 
44
  // Show Modal
45
- modal.css({ left : offset }).show();
46
  jQuery(".dslca-prompt-modal-custom").insertAfter( modal );
47
- jQuery(".dslca-prompt-modal-custom").length > 0 && jQuery(".dslca-prompt-modal-custom").fadeIn();
48
- modal.addClass('dslca-modal-open');
 
 
49
 
50
  // Animate Modal
51
- modal.css({
52
  // '-webkit-animation-name' : 'dslcBounceIn',
53
  // '-moz-animation-name' : 'dslcBounceIn',
54
  // 'animation-name' : 'dslcBounceIn',
55
  // 'animation-duration' : '0.6s',
56
  // '-webkit-animation-duration' : '0.6s'
57
- }).fadeIn(600);
58
  }
59
 
60
  /**
@@ -63,7 +67,9 @@
63
 
64
  function dslc_hide_modal( hook, modal ) {
65
 
66
- if ( dslcDebug ) console.log( 'dslc_hide_modal' );
 
 
67
 
68
  // Vars
69
  var modal = jQuery(modal);
@@ -71,7 +77,9 @@
71
  // Hide ( with animation )
72
  modal.outerHide( 'destroy' );
73
  modal.hide();
74
- jQuery(".dslca-prompt-modal-custom").length > 0 && jQuery(".dslca-prompt-modal-custom").fadeOut();
 
 
75
  modal.removeClass('dslca-modal-open');
76
  /*
77
  modal.css({
@@ -107,9 +115,7 @@
107
  */
108
 
109
  $(document).on( 'click', '.dslca-open-modal-hook', function(e){
110
-
111
  e.preventDefault();
112
-
113
  var modal = jQuery(this).data('modal');
114
  dslc_show_modal( jQuery(this), modal );
115
  });
@@ -140,10 +146,9 @@
140
  * - dslc_js_confirm_close
141
  *
142
  ***********************************/
143
-
144
  function dslc_js_confirm( dslcID, dslcContent, dslcTarget ) {
145
 
146
- if ( dslcDebug ) console.log( 'dslc_js_confirm' );
147
 
148
  // Add "active" class
149
  jQuery('.dslca-prompt-modal').addClass('dslca-prompt-modal-active');
@@ -168,7 +173,7 @@
168
 
169
  function dslc_js_confirm_close() {
170
 
171
- if ( dslcDebug ) console.log( 'dslc_js_confirm_close' );
172
 
173
  // Remove "active" class
174
  jQuery('.dslca-prompt-modal').removeClass('dslca-prompt-modal-active');
19
 
20
  function dslc_show_modal( hook, modal ) {
21
 
22
+ if ( typeof dslcDebug !== 'undefined' && dslcDebug ) console.log( 'dslc_show_modal' );
23
 
24
+ if ( jQuery('.dslca-modal:visible').length ) {
25
+ // If a modal already visibile hide it
26
+ dslc_hide_modal( '', jQuery('.dslca-modal:visible') );
27
+ }
28
 
29
  // Vars
30
  var modal = jQuery(modal);
44
  offset = position.left - diff;
45
 
46
  // Show Modal
47
+ modal.css({ left : offset });
48
  jQuery(".dslca-prompt-modal-custom").insertAfter( modal );
49
+ if ( jQuery(".dslca-prompt-modal-custom").length > 0 ) {
50
+ jQuery(".dslca-prompt-modal-custom").fadeIn();
51
+ }
52
+ modal.addClass('dslca-modal-open').show();
53
 
54
  // Animate Modal
55
+ // modal.css({
56
  // '-webkit-animation-name' : 'dslcBounceIn',
57
  // '-moz-animation-name' : 'dslcBounceIn',
58
  // 'animation-name' : 'dslcBounceIn',
59
  // 'animation-duration' : '0.6s',
60
  // '-webkit-animation-duration' : '0.6s'
61
+ // }).fadeIn(600);
62
  }
63
 
64
  /**
67
 
68
  function dslc_hide_modal( hook, modal ) {
69
 
70
+ if ( typeof dslcDebug !== 'undefined' && dslcDebug ) console.log( 'dslc_hide_modal' );
71
+
72
+ console.log( 'dslc_hide_modal' );
73
 
74
  // Vars
75
  var modal = jQuery(modal);
77
  // Hide ( with animation )
78
  modal.outerHide( 'destroy' );
79
  modal.hide();
80
+ if ( jQuery(".dslca-prompt-modal-custom").length > 0 ) {
81
+ jQuery(".dslca-prompt-modal-custom").fadeOut();
82
+ }
83
  modal.removeClass('dslca-modal-open');
84
  /*
85
  modal.css({
115
  */
116
 
117
  $(document).on( 'click', '.dslca-open-modal-hook', function(e){
 
118
  e.preventDefault();
 
119
  var modal = jQuery(this).data('modal');
120
  dslc_show_modal( jQuery(this), modal );
121
  });
146
  * - dslc_js_confirm_close
147
  *
148
  ***********************************/
 
149
  function dslc_js_confirm( dslcID, dslcContent, dslcTarget ) {
150
 
151
+ if ( typeof dslcDebug !== 'undefined' && dslcDebug ) console.log( 'dslc_js_confirm' );
152
 
153
  // Add "active" class
154
  jQuery('.dslca-prompt-modal').addClass('dslca-prompt-modal-active');
173
 
174
  function dslc_js_confirm_close() {
175
 
176
+ if ( typeof dslcDebug !== 'undefined' && dslcDebug ) console.log( 'dslc_js_confirm_close' );
177
 
178
  // Remove "active" class
179
  jQuery('.dslca-prompt-modal').removeClass('dslca-prompt-modal-active');
js/builder/builder.module.functions.js CHANGED
@@ -242,6 +242,16 @@
242
  var content = module.find( '.dslca-module-option-front[data-id="' + editable.data('id') + '"]' ).val().replace(/<lctextarea/g, '<textarea').replace(/<\/lctextarea/g, '</textarea');
243
  }
244
 
 
 
 
 
 
 
 
 
 
 
245
  if ( typeof tinymce != 'undefined' ) {
246
 
247
  var editor = tinymce.get( 'dslcawpeditor' );
@@ -478,6 +488,16 @@ function dslc_module_options_show( moduleID ) {
478
  dslcOptionID = dslcOption.data('id'),
479
  dslcOptionValue = dslcOption.val();
480
 
 
 
 
 
 
 
 
 
 
 
481
  // Add option ID and value to the settings array
482
  dslcSettings[dslcOptionID] = dslcOptionValue;
483
  });
242
  var content = module.find( '.dslca-module-option-front[data-id="' + editable.data('id') + '"]' ).val().replace(/<lctextarea/g, '<textarea').replace(/<\/lctextarea/g, '</textarea');
243
  }
244
 
245
+ if ( content.includes( '%' ) ) {
246
+ // Restore shortcodes presentation.
247
+ content = content.replace(/%\(\(%/g, '[');
248
+ content = content.replace(/%\)\)%/g, ']');
249
+ content = content.replace(/%\(%/g, '[');
250
+ content = content.replace(/%\)%/g, ']');
251
+ content = content.replace(/%\{%/g, '[');
252
+ content = content.replace(/%\}%/g, ']');
253
+ }
254
+
255
  if ( typeof tinymce != 'undefined' ) {
256
 
257
  var editor = tinymce.get( 'dslcawpeditor' );
488
  dslcOptionID = dslcOption.data('id'),
489
  dslcOptionValue = dslcOption.val();
490
 
491
+ if ( dslcOptionValue.includes( '%' ) ) {
492
+ // Restore shortcodes.
493
+ dslcOptionValue = dslcOptionValue.replace(/%\(\(%/g, '[');
494
+ dslcOptionValue = dslcOptionValue.replace(/%\)\)%/g, ']');
495
+ dslcOptionValue = dslcOptionValue.replace(/%\(%/g, '[');
496
+ dslcOptionValue = dslcOptionValue.replace(/%\)%/g, ']');
497
+ dslcOptionValue = dslcOptionValue.replace(/%\{%/g, '[');
498
+ dslcOptionValue = dslcOptionValue.replace(/%\}%/g, ']');
499
+ }
500
+
501
  // Add option ID and value to the settings array
502
  dslcSettings[dslcOptionID] = dslcOptionValue;
503
  });
js/builder/builder.settings.panel.functions.js CHANGED
@@ -193,91 +193,6 @@ jQuery(document).ready(function($){
193
 
194
  dslc_disable_responsive_view();
195
  });
196
-
197
- /**
198
- * Hook - Show/Hide Icon Set Switch
199
- */
200
- jQuery(document).on( 'click', '.dslca-module-edit-field-icon-switch-set', function(){
201
-
202
- var dslcTtip = jQuery('.dslca-module-edit-field-icon-switch-sets');
203
- var dslcHook = jQuery(this);
204
-
205
- // Add/Remo active classes
206
- jQuery('.dslca-module-edit-field-icon-switch-set.dslca-active').removeClass('dslca-active');
207
- dslcHook.addClass('dslca-active');
208
-
209
- if ( dslcTtip.is(':visible') ) {
210
-
211
- jQuery('.dslca-module-edit-field-icon-switch-sets').hide();
212
- } else {
213
-
214
- // Icon vars
215
- var currIconSet = dslcHook.find('.dslca-module-edit-field-icon-curr-set').text();
216
-
217
- jQuery('.dslca-module-edit-field-icon-switch-sets span.dslca-active').removeClass('dslca-active');
218
- jQuery('.dslca-module-edit-field-icon-switch-sets span[data-set="' + currIconSet + '"]').addClass('dslca-active');
219
-
220
- // Positioning vars
221
- var dslcOffset = dslcHook.offset(),
222
- dslcTtipHeight = dslcTtip.outerHeight(),
223
- dslcTtipWidth = dslcTtip.outerWidth(),
224
- dslcTtipLeft = dslcOffset.left - ( dslcTtipWidth / 2 ) + 6,
225
- dslcTtipArrLeft = '50%';
226
-
227
- if ( dslcTtipLeft < 0 ) {
228
- dslcTtipArrLeft = ( dslcTtipWidth / 2 ) + dslcTtipLeft + 'px';
229
- dslcTtipLeft = 0;
230
- }
231
-
232
- jQuery('.dslca-module-edit-field-icon-switch-sets').show().css({
233
- top : dslcOffset.top - dslcTtipHeight - 20,
234
- left: dslcTtipLeft
235
- });
236
-
237
- jQuery("head").append(jQuery('<style>.dslca-module-edit-field-icon-switch-sets:after, .dslca-module-edit-field-icon-switch-sets:before { left: ' + dslcTtipArrLeft + ' }</style>'));
238
- }
239
- });
240
-
241
- /**
242
- * Hook - Switch Icon Set
243
- */
244
- jQuery(document).on( 'click', '.dslca-module-edit-field-icon-switch-sets span', function(){
245
-
246
- var iconSet = $(this).data('set');
247
-
248
- // Change current icon set
249
- dslcIconsCurrentSet = DSLCIcons[iconSet];
250
-
251
- // Update 'icons grid' button data-modal attribute with selected set
252
- $('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data('modal', '.dslc-list-icons-' + iconSet );
253
-
254
-
255
- // Change active states
256
- $(this).addClass('dslca-active').siblings('.dslca-active').removeClass('dslca-active');
257
-
258
- // Change current text
259
- $('.dslca-module-edit-field-icon-switch-set.dslca-active .dslca-module-edit-field-icon-curr-set').text( iconSet );
260
-
261
- // Go to next icon
262
- $('.dslca-module-edit-field-icon-switch-set.dslca-active').closest('.dslca-module-edit-option').find('.dslca-module-edit-field-icon-next').trigger('click');
263
-
264
- // Hide sets
265
- $('.dslca-module-edit-field-icon-switch-sets').hide();
266
- });
267
-
268
- /**
269
- * Action - Change current set on mouse enter of icon option
270
- */
271
- jQuery(document).on( 'mouseenter', '.dslca-module-edit-option-icon', function(){
272
-
273
- var iconSet = $(this).find('.dslca-module-edit-field-icon-curr-set').text();
274
-
275
- // Change current icon set
276
- dslcIconsCurrentSet = DSLCIcons[iconSet];
277
-
278
- // Update 'icons grid' button data-modal attribute with selected set
279
- $('.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]').data('modal', '.dslc-list-icons-' + iconSet );
280
- });
281
  });
282
 
283
  /* Editor scripts */
@@ -939,7 +854,7 @@ function dslc_module_options_hideshow_tabs() {
939
 
940
  if ( jQuery('.dslca-module-being-edited', LiveComposer.Builder.PreviewAreaDocument).data('dslc-module-id') == 'DSLC_Text_Simple' ||
941
  jQuery('.dslca-module-being-edited', LiveComposer.Builder.PreviewAreaDocument).data('dslc-module-id') == 'DSLC_TP_Content' ||
942
- jQuery('.dslca-module-being-edited', LiveComposer.Builder.PreviewAreaDocument).data('dslc-module-id') == 'DSLC_Html' ) {
943
 
944
  var dslcCustomCSS = jQuery('.dslca-module-edit-option[data-id="css_custom"]'),
945
  dslcCustomCSSVal = dslcCustomCSS.find('select').val();
@@ -1400,7 +1315,6 @@ function dslc_module_options_icon() {
1400
  function dslc_module_options_icon_returnid() {
1401
 
1402
  jQuery(document).on('click', '.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]', function(el) {
1403
-
1404
  jQuery(this).closest('.dslca-module-edit-option-icon').find('input').addClass('icon-modal-active');
1405
  });
1406
 
193
 
194
  dslc_disable_responsive_view();
195
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  });
197
 
198
  /* Editor scripts */
854
 
855
  if ( jQuery('.dslca-module-being-edited', LiveComposer.Builder.PreviewAreaDocument).data('dslc-module-id') == 'DSLC_Text_Simple' ||
856
  jQuery('.dslca-module-being-edited', LiveComposer.Builder.PreviewAreaDocument).data('dslc-module-id') == 'DSLC_TP_Content' ||
857
+ jQuery('.dslca-module-being-edited', LiveComposer.Builder.PreviewAreaDocument).data('dslc-module-id') == 'DSLC_Html' || jQuery('.dslca-module-being-edited', LiveComposer.Builder.PreviewAreaDocument).data('dslc-module-id') == 'DSLC_Shortcode' ) {
858
 
859
  var dslcCustomCSS = jQuery('.dslca-module-edit-option[data-id="css_custom"]'),
860
  dslcCustomCSSVal = dslcCustomCSS.find('select').val();
1315
  function dslc_module_options_icon_returnid() {
1316
 
1317
  jQuery(document).on('click', '.dslca-open-modal-hook[data-modal^=".dslc-list-icons"]', function(el) {
 
1318
  jQuery(this).closest('.dslca-module-edit-option-icon').find('input').addClass('icon-modal-active');
1319
  });
1320
 
js/builder/builder.uigeneral.functions.js CHANGED
@@ -83,6 +83,7 @@ jQuery(document).ready(function($) {
83
  jQuery(document).trigger('editorFrameLoaded');
84
 
85
  dslc_drag_and_drop();
 
86
  dslc_generate_code();
87
 
88
  // Catch keypress events (from both parent and iframe) to add keyboard support
83
  jQuery(document).trigger('editorFrameLoaded');
84
 
85
  dslc_drag_and_drop();
86
+
87
  dslc_generate_code();
88
 
89
  // Catch keypress events (from both parent and iframe) to add keyboard support
js/builder/builder.util.class.js CHANGED
@@ -168,7 +168,6 @@ LiveComposer.Utils = {
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];
168
  * @return {void}
169
  */
170
  update_section_property_raw: function (section, property_name, property_value ) {
 
171
  // Hidden textarea element with raw base64 code of the roq
172
  // <textarea class="dslca-section-code"></textarea>
173
  var section_code_container = section.getElementsByClassName('dslca-section-code')[0];
js/frontend.all.min.js CHANGED
@@ -1,3 +1,3 @@
1
- function dslc_responsive_classes(a){if(a===undefined)a=false;var b=jQuery(window).width();var c=jQuery("body");if(a==true||!c.hasClass("dslc-res-disabled")&&!jQuery('.dslca-module-edit-options-tab-hook.dslca-active[data-section="responsive"]').length){c.removeClass("dslc-res-phone dslc-res-tablet dslc-res-smaller-monitor dslc-res-big");if(b>=1024&&b<1280){c.addClass("dslc-res-smaller-monitor")}else if(b>=768&&b<1024){c.addClass("dslc-res-tablet")}else if(b<768){c.addClass("dslc-res-phone")}else{c.addClass("dslc-res-big")}}}function dslc_init_accordion(){jQuery(".dslc-accordion").each(function(){var a=jQuery(this),b=a.data("open")-1,c=jQuery(".dslc-accordion-item:eq("+b+")",a),d=c.siblings(".dslc-accordion-item"),e=jQuery(".dslc-accordion-item",a);if(b>=0){c.addClass("dslc-active");d.addClass("dslc-inactive");jQuery(".dslc-accordion-content",d).hide()}else{e.addClass("dslc-inactive");jQuery(".dslc-accordion-content",e).hide()}})}function dslc_init_lightbox(){var a;jQuery(".dslc-lightbox-image").each(function(){a="image";if(jQuery(this).attr("href").indexOf("youtube.com")>=0||jQuery(this).attr("href").indexOf("vimeo.com")>=0){a="iframe"}jQuery(this).magnificPopup({type:a})});jQuery(".dslc-lightbox-gallery").each(function(){jQuery(this).magnificPopup({delegate:"a",type:"image",gallery:{enabled:true}})})}function dslc_carousel(){jQuery(".dslc-carousel, .dslc-slider").each(function(){var a,b,c,d,e;a=jQuery(this);b=a.closest(".dslc-module-front");if(b.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")){var f=0}else{var f=b.width()/100*2.12766/2}if(a.hasClass("dslc-carousel")){a.find(".dslc-col").css({"margin-left":f,"margin-right":f});a.css({"margin-left":f*-1,width:a.width()+f*2})}c={items:4,pagination:true,singleItem:false,itemsScaleUp:false,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:false,stopOnHover:false,lazyLoad:false,lazyFollow:true,autoHeight:false,mouseDrag:true,touchDrag:true,addClassActive:true,transitionStyle:"fade",scrollPerPage:true};d={items:a.data("columns"),pagination:a.data("pagination"),itemsScaleUp:a.data("scale-up"),slideSpeed:a.data("slide-speed"),paginationSpeed:a.data("pagination-speed"),rewindSpeed:a.data("rewind-speed"),autoPlay:a.data("autoplay"),stopOnHover:a.data("stop-on-hover"),lazyLoad:a.data("lazy-load"),lazyFollow:a.data("lazy-follow"),autoHeight:a.data("flexible-height"),mouseDrag:a.data("mouse-drag"),touchDrag:a.data("touch-drag"),addClassActive:a.data("active-class"),transitionStyle:a.data("animation"),scrollPerPage:a.data("scroll-per-page")};e=jQuery.extend({},c,d);if(a.hasClass("dslc-slider")||e.items==1){e.singleItem=true}if(e.autoPlay==0){e.autoPlay=false}a.owlCarousel({items:e.items,pagination:e.pagination,singleItem:e.singleItem,itemsScaleUp:e.itemsScaleUp,slideSpeed:e.slideSpeed,paginationSpeed:e.paginationSpeed,rewindSpeed:e.rewindSpeed,autoPlay:e.autoPlay,stopOnHover:e.stopOnHover,lazyLoad:e.lazyLoad,lazyFollow:e.lazyFollow,mouseDrag:e.mouseDrag,touchDrag:e.touchDrag,scrollPerPage:e.scrollPerPage,transitionStyle:e.transitionStyle,autoHeight:e.autoHeight,itemsDesktop:false,itemsDesktopSmall:false,itemsTablet:false,itemsMobile:[766,1],afterInit:function(){a.prev(".dslc-loader").remove();a.css({opacity:1,maxHeight:"none"})},afterAction:function(){var b=this.owl.visibleItems;a.find(".dslc-carousel-item-visible").removeClass("dslc-carousel-item-visible");a.find(".owl-item").filter(function(a){return b.indexOf(a)>-1}).addClass("dslc-carousel-item-visible")}});jQuery(".dslc-carousel-nav-next",b).click(function(b){b.preventDefault();a.data("owlCarousel").next()});jQuery(".dslc-carousel-nav-prev",b).click(function(b){b.preventDefault();a.data("owlCarousel").prev()})})}function dslc_carousel_responsive(){jQuery(".dslc-carousel").each(function(){var a,b;a=jQuery(this);b=a.closest(".dslc-module-front");a.css({"margin-left":0,width:"auto"});if(b.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")){var c=0}else{var c=b.width()/100*2.12766/2}if(a.hasClass("dslc-carousel")){a.find(".dslc-col").css({"margin-left":c,"margin-right":c});a.css({"margin-left":c*-1,width:a.width()+c*2})}})}function dslc_bg_video(){jQuery(".dslc-bg-video").each(function(){if(!jQuery(this).find("video").length){jQuery(this).css({opacity:1})}});jQuery(".dslc-bg-video video").mediaelementplayer({loop:true,pauseOtherPlayers:false,success:function(a,b){a.addEventListener("loadeddata",function(a){jQuery(b).closest(".dslc-bg-video").animate({opacity:1},400)});a.play()}})}function dslc_parallax(){jQuery(".dslc-init-parallax").each(function(){var a=4,b=jQuery(this).css("background-position").split(" "),c=b[0],d=c+" "+-1*(window.pageYOffset-jQuery(this).offset().top)/a+"px";jQuery(this).css({backgroundPosition:d})});window.onscroll=function(){jQuery(".dslc-init-parallax").each(function(){var a=4,b=jQuery(this).css("background-position").split(" "),c=b[0],d=c+" "+-1*(window.pageYOffset-jQuery(this).offset().top)/a+"px";jQuery(this).css({backgroundPosition:d})})}}function dslc_masonry(a,b){a=typeof a!=="undefined"?a:jQuery("body");b=typeof b!=="undefined"?b:false;jQuery(".dslc-init-masonry",a).each(function(){var a,c,d,e,f,g;if(jQuery(this).find(".dslc-posts-inner").length){a=jQuery(this).find(".dslc-posts-inner")}else{a=jQuery(this)}c=".dslc-masonry-item";e=jQuery(c,a).width();f=jQuery(a).width();if(jQuery(this).closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")){g=0}else{g=f/100*2.05}if(a.data("masonry")){jQuery(a).imagesLoaded(function(){jQuery(a).masonry("destroy").masonry({gutter:g,itemSelector:c});jQuery(a).find(".dslc-post:not(.dslc-masonry-item)").hide();if(b){jQuery(c,a).css({scale:"0.2"}).animate({scale:"1"},500)}})}else{jQuery(c).css({marginRight:0});jQuery(a).imagesLoaded(function(){jQuery(a).masonry({gutter:g,itemSelector:c})})}})}function dslc_tabs_generate_code(a){var b=a.closest(".dslc-module-front");dslcTabsNav=jQuery(".dslc-tabs-nav",a);dslcTabsContent=jQuery(".dslc-tabs-content",a);dslcTabContent=jQuery(".dslc-tabs-tab-content",a);var c="";var d="";var e=0;var f=0;jQuery(".dslc-tabs-nav-hook",dslcTabsNav).each(function(){e++;if(e>1){c+=" (dslc_sep) "}c+=jQuery(this).find(".dslc-tabs-nav-hook-title").text()});dslcTabContent.each(function(){f++;if(f>1){d+=" (dslc_sep) "}d+=jQuery(this).find(".dslca-tab-plain-content").val()});d=d.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");jQuery('.dslca-module-option-front[data-id="tabs_nav"]',b).val(c);jQuery('.dslca-module-option-front[data-id="tabs_content"]',b).val(d);parent.dslc_option_changed()}function dslc_accordion_generate_code(a){var b=a.closest(".dslc-module-front"),c=0,d="",e="";jQuery(".dslc-accordion-item",a).each(function(){c++;if(c>1){d+=" (dslc_sep) ";e+=" (dslc_sep) "}d+=jQuery(this).find(".dslc-accordion-title").text();e+=jQuery(this).find(".dslc-accordion-content").find(".dslca-accordion-plain-content").val()});e=e.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");jQuery('.dslca-module-option-front[data-id="accordion_nav"]',b).val(d);jQuery('.dslca-module-option-front[data-id="accordion_content"]',b).val(e);parent.dslc_option_changed()}function dslc_tabs(){var a,b,c,d;jQuery(".dslc-tabs").each(function(){a=jQuery(this);b=jQuery(".dslc-tabs-nav",a);c=jQuery(".dslc-tabs-content",a);d=jQuery(".dslc-tabs-tab-content",a);d.eq(0).addClass("dslc-active");jQuery(".dslc-tabs-nav-hook",b).eq(0).addClass("dslc-active")})}function dslc_download_count_increment(a){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-download-count-increment",dslc_post_id:a},function(a){})}function dslc_check_viewport(){var a=false||!!document.documentMode;if(!a){jQuery(".dslc-in-viewport-check:in-viewport:not(.dslc-in-viewport)").each(function(){var a=jQuery(this);var b=a.data("dslc-anim");var c=parseInt(a.data("dslc-anim-duration"))/1e3;var d=c+"s";if(jQuery(window).width()<768){d="0s"}var e=parseInt(a.data("dslc-anim-delay"));var f=a.data("dslc-anim-easing");var g=b+" "+d+" "+f+" forwards";jQuery(this).addClass("dslc-in-viewport");if(e>0){setTimeout(function(){a.css({"-webkit-animation":g,"-moz-animation":g,animation:g})},e)}else{jQuery(this).css({"-webkit-animation":g,"-moz-animation":g,animation:g})}})}else{jQuery(".dslc-in-viewport-check").css("opacity",1)}}function dslc_el_anim_hover(){jQuery(".dslc-on-hover-anim-target").each(function(){var a=parseInt(jQuery(this).data("dslc-anim-speed"))/1e3;var b="all "+a+"s ease-out";jQuery(this).css({"-webkit-transition":b,"-moz-transition":b,transition:b})})}function dslc_check_progress_bar_viewport(){jQuery(".dslc-progress-bar-animated:in-viewport:not(.dslc-progress-bar-in-viewport)").each(function(){var a=jQuery(this),b=a.find(".dslc-progress-bar-loader-inner"),c=b.data("amount")+"%",d=b.data("speed");a.addClass("dslc-progress-bar-in-viewport");b.css({width:0,opacity:1}).animate({width:c},d)})}function dslc_validate_comment_form(a){var b=a.find("#author"),c=a.find("#email"),d=a.find("#url"),e=a.find("#comment"),f=true;if(b.length&&b.val().length==0){b.css({borderColor:"#e55f5f"});f=false}else{b.attr("style","")}if(c.length&&(c.val().length==0||c.val().indexOf("@")===-1)){c.css({borderColor:"#e55f5f"});f=false}else{c.attr("style","")}if(e.val().length==0){e.css({borderColor:"#e55f5f"});f=false}else{e.attr("style","")}return f}function dslc_social_share(a,b,c){var d,e,f,g;d=window.screen.width/2-(a/2+10);e=window.screen.height/2-(b/2+50);var h="status=no,height="+b+",width="+a+",resizable=yes,left="+d+",top="+e+",screenX="+d+",screenY="+e+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";f=location.href;g=document.title;window.open(c,"sharer",h);return false}jQuery(document).ready(function(a){dslc_el_anim_hover();dslc_bg_video();dslc_tabs();a(document).on("click",".dslc-pagination-load-more a",function(b){b.preventDefault();if(a(this).parent().hasClass("dslc-active")){var c=a(this),d=a(this).closest(".dslc-module-front"),e=d.find(".dslc-pagination"),f=d.find(".dslc-posts-inner"),g=d.attr("id"),h=c.attr("href"),i=d.find(".dslc-load-more-temp");c.find(".dslc-icon").addClass("dslc-icon-spin");i.load(h+" #"+g,function(){f.append('<div class="dslc-post-separator"></div>');f.append(i.find(".dslc-posts-inner").html());d.find(".dslc-pagination").html(i.find(".dslc-pagination").html());e.replaceWith(i.find(".dslc-pagination"));i.html("");f.imagesLoaded(function(){if(d.find(".dslc-init-masonry").length){d.find(".dslc-init-masonry .dslc-posts-inner").masonry("reloadItems").masonry()}})})}});a(".dslc-tp-comment-form form").submit(function(a){if(!dslc_validate_comment_form(jQuery(this))){a.preventDefault()}});jQuery(".dslc-mobile-navigation select").change(function(){window.location=a(this).val()});jQuery(document).on("click",".dslca-add-new-tab-hook",function(){var a=jQuery(this).closest(".dslc-tabs"),b=jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook:last",a),c=jQuery(".dslc-tabs-content",a),d=jQuery(".dslc-tabs-tab-content:last",a);b.after('<span class="dslc-tabs-nav-hook"><span class="dslc-tabs-nav-hook-title" contenteditable="true">Click to edit title</span><span class="dslca-delete-tab-hook"><span class="dslca-icon dslc-icon-remove"></span></span></span>');d.after('<div class="dslc-tabs-tab-content"><div class="dslca-editable-content">This is just placeholder text.</div><textarea class="dslca-tab-plain-content">This is just placeholder text.</textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook">Open in WP Editor</span></div></div>');jQuery(".dslc-tabs-nav-hook:last",a).click();dslc_tabs_generate_code(a);if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}});jQuery(document).on("click",".dslca-delete-tab-hook",function(a){var b=jQuery(this).closest(".dslc-tabs");var c=jQuery(this).closest(".dslc-tabs-nav-hook");var d=c.index();var e=jQuery(".dslc-tabs-tab-content",b).eq(d);if(jQuery(".dslc-tabs-nav-hook",b).length>1){c.remove();e.remove();if(!jQuery(".dslc-tabs-tab-content.dslc-active",b).length){jQuery(".dslc-tabs-nav-hook:first",b).trigger("click")}dslc_tabs_generate_code(b)}else{alert("You can not delete the last remaining tab")}a.stopPropagation()});jQuery(document).on("click",".dslc-tabs-nav-hook",function(a){if(!jQuery(this).hasClass("dslc-active")){dslcTabs=jQuery(this).closest(".dslc-tabs");dslcTabsNav=jQuery(".dslc-tabs-nav",dslcTabs);dslcTabsContent=jQuery(".dslc-tabs-content",dslcTabs);dslcTabContent=jQuery(".dslc-tabs-tab-content",dslcTabs);dslcTabIndex=jQuery(this).index();jQuery(".dslc-tabs-nav-hook.dslc-active",dslcTabs).removeClass("dslc-active");jQuery(this).addClass("dslc-active");if(jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).length){jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).animate({opacity:0},250,function(){jQuery(this).removeClass("dslc-active");dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)})}else{dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)}}});jQuery(document).on("blur paste",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",function(){dslc_tabs_generate_code(jQuery(this).closest(".dslc-tabs"))}).on("focus",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",function(){if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}});a(document).on("click",".dslc-notification-close",function(b){a(this).closest(".dslc-notification").slideUp(200,function(){a(this).remove()})});a(document).on("click",".dslc-post-filter",function(){var b=a(this);var c=b.closest(".dslc-module-front").find(".dslc-posts");var d=b.closest(".dslc-module-front");var e=b.data("filter-id");var f=a();var g=a();if(e==="show-all"){f=c.closest(".dslc-module-front").find(".dslc-post");g=a()}else{f=c.closest(".dslc-module-front").find('.dslc-post[data-cats*="'+e+'"]');g=c.closest(".dslc-module-front").find('.dslc-post:not([data-cats*="'+e+'"])')}b.removeClass("dslc-inactive").addClass("dslc-active").siblings(".dslc-active").removeClass("dslc-active").addClass("dslc-inactive");if(c.hasClass("dslc-init-grid")){f.stop().animate({opacity:1},300);g.stop().animate({opacity:.3},300)}else{g.removeClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"hidden"});f.addClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"visible"}).show();dslc_masonry(d,true)}});a(document).on("click",".dslc-download-count-hook",function(b){dslc_download_count_increment(a(this).data("post-id"))});a(".dslc-notification-box-has-timeout").each(function(){var b=a(this);nTimeout="none",moduleID=b.closest(".dslc-module-front").data("module-id"),cookieID="nBox"+moduleID;if(b.data("notification-timeout")){if(Cookies.get(cookieID)==undefined){b.show()}}});a(document).on("click",".dslc-notification-box-close",function(){var b=a(this).closest(".dslc-notification-box"),c="none",d=b.closest(".dslc-module-front").data("module-id"),e="nBox"+d;if(b.data("notification-timeout")){c=b.data("notification-timeout")}if(c!=="none"){Cookies.set(e,"closed",{expires:c})}b.animate({opacity:0},400,function(){a(this).remove()})});dslc_init_lightbox();dslc_init_accordion();a(document).on("click",".dslc-accordion-hook",function(){var b=a(this).closest(".dslc-accordion-item"),c=b.siblings(".dslc-accordion-item");if(b.hasClass("dslc-active")){c=b}else{b.removeClass("dslc-inactive").addClass("dslc-active")}c.removeClass("dslc-active").addClass("dslc-inactive");a(".dslc-accordion-content",b).slideDown(300);a(".dslc-accordion-content",c).slideUp(300)});jQuery(document).on("click",".dslca-add-accordion-hook",function(){var a=jQuery(this).closest(".dslc-accordion"),b=jQuery(".dslc-accordion-item:last",a),c=b.clone().insertAfter(b);jQuery(".dslc-accordion-title",c).html("CLICK TO EDIT");jQuery(".dslc-accordion-content",c).html('<div class="dslca-editable-content">Placeholder content, click to edit. Lorem ipsum dolor sit amet, consectetur tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div><textarea class="dslca-accordion-plain-content"></textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook">Edit Content</span></div>');jQuery(".dslc-accordion-hook",c).click();dslc_accordion_generate_code(a);if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}});jQuery(document).on("click",".dslca-delete-accordion-hook",function(a){var b=jQuery(this).closest(".dslc-accordion"),c=jQuery(this).closest(".dslc-accordion-item");if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}if(jQuery(".dslc-accordion-item",b).length>1){c.remove();if(!jQuery(".dslc-accordion-item.dslc-active",b).length){jQuery(".dslc-accordion-hook:first",b).trigger("click")}dslc_accordion_generate_code(b)}else{alert("You can not delete the last remaining accordion item.")}a.stopPropagation()});jQuery(document).on("click",".dslca-move-up-accordion-hook, .dslca-move-down-accordion-hook",function(a){var b=jQuery(this).closest(".dslc-accordion"),c=jQuery(this).closest(".dslc-accordion-item"),d=c.next(".dslc-accordion-item"),e=c.prev(".dslc-accordion-item");if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}if(jQuery(this).hasClass("dslca-move-down-accordion-hook")){c.insertAfter(d);dslc_accordion_generate_code(b)}else{c.insertBefore(e);dslc_accordion_generate_code(b)}a.stopPropagation()});jQuery(document).on("blur paste keyup",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",function(){dslc_accordion_generate_code(jQuery(this).closest(".dslc-accordion"))}).on("focus",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",function(){if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}});a(document).on("click",".dslc-trigger-lightbox-gallery",function(a){a.preventDefault();if(jQuery(this).closest(".dslc-post").length){jQuery(this).closest(".dslc-post").find(".dslc-lightbox-gallery a:first-child").trigger("click")}else if(jQuery(this).closest(".dslc-col")){var b=jQuery(this).closest(".dslc-col").index();jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:eq("+b+")").trigger("click")}else{jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:first-child").trigger("click")}});a(".dslc-navigation li").mouseenter(function(){var b=a(this).children("ul");if(b.length){if(a(this).closest(".dslc-navigation").hasClass("dslc-navigation-sub-position-center")){var c=a(this).closest("li").width(),d=b.outerWidth(),e=parseInt(c)/2-parseInt(d)/2+"px";b.css({left:e})}b.css({display:"block"});var f=b.offset().left;var g=b.outerWidth();var h=a("body").width();if(h<f+g){b.addClass("dslc-navigation-invert-subnav")}a(this).children("ul").stop().animate({opacity:1},300)}}).mouseleave(function(){a(this).children("ul").stop().animate({opacity:0},300,function(){a(this).css({display:"none"}).children("ul").removeClass("dslc-navigation-invert-subnav")})});dslc_check_viewport();dslc_check_progress_bar_viewport();a(document).on("scroll",function(){dslc_check_viewport();dslc_check_progress_bar_viewport()})});jQuery(window).load(function(){dslc_responsive_classes();dslc_masonry();dslc_carousel();dslc_parallax();dslc_init_lightbox()});jQuery(window).resize(function(){dslc_responsive_classes();dslc_carousel_responsive()});"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c){var d={init:function(b,c){var d=this;d.$elem=a(c),d.options=a.extend({},a.fn.owlCarousel.options,d.$elem.data(),b),d.userOptions=b,d.loadContent()},loadContent:function(){function b(a){var b,c="";if("function"==typeof d.options.jsonSuccess)d.options.jsonSuccess.apply(this,[a]);else{for(b in a.owl)a.owl.hasOwnProperty(b)&&(c+=a.owl[b].item);d.$elem.html(c)}d.logIn()}var c,d=this;"function"==typeof d.options.beforeInit&&d.options.beforeInit.apply(this,[d.$elem]),"string"==typeof d.options.jsonPath?(c=d.options.jsonPath,a.getJSON(c,b)):d.logIn()},logIn:function(){var a=this;a.$elem.data({"owl-originalStyles":a.$elem.attr("style"),"owl-originalClasses":a.$elem.attr("class")}),a.$elem.css({opacity:0}),a.orignalItems=a.options.items,a.checkBrowser(),a.wrapperWidth=0,a.checkVisible=null,a.setVars()},setVars:function(){var a=this;return 0===a.$elem.children().length?!1:(a.baseClass(),a.eventTypes(),a.$userItems=a.$elem.children(),a.itemsAmount=a.$userItems.length,a.wrapItems(),a.$owlItems=a.$elem.find(".owl-item"),a.$owlWrapper=a.$elem.find(".owl-wrapper"),a.playDirection="next",a.prevItem=0,a.prevArr=[0],a.currentItem=0,a.customEvents(),void a.onStartup())},onStartup:function(){var a=this;a.updateItems(),a.calculateAll(),a.buildControls(),a.updateControls(),a.response(),a.moveEvents(),a.stopOnHover(),a.owlStatus(),a.options.transitionStyle!==!1&&a.transitionTypes(a.options.transitionStyle),a.options.autoPlay===!0&&(a.options.autoPlay=5e3),a.play(),a.$elem.find(".owl-wrapper").css("display","block"),a.$elem.is(":visible")?a.$elem.css("opacity",1):a.watchVisibility(),a.onstartup=!1,a.eachMoveUpdate(),"function"==typeof a.options.afterInit&&a.options.afterInit.apply(this,[a.$elem])},eachMoveUpdate:function(){var a=this;a.options.lazyLoad===!0&&a.lazyLoad(),a.options.autoHeight===!0&&a.autoHeight(),a.onVisibleItems(),"function"==typeof a.options.afterAction&&a.options.afterAction.apply(this,[a.$elem])},updateVars:function(){var a=this;"function"==typeof a.options.beforeUpdate&&a.options.beforeUpdate.apply(this,[a.$elem]),a.watchVisibility(),a.updateItems(),a.calculateAll(),a.updatePosition(),a.updateControls(),a.eachMoveUpdate(),"function"==typeof a.options.afterUpdate&&a.options.afterUpdate.apply(this,[a.$elem])},reload:function(){var a=this;b.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;return a.$elem.is(":visible")!==!1?!1:(a.$elem.css({opacity:0}),b.clearInterval(a.autoPlayInterval),b.clearInterval(a.checkVisible),void(a.checkVisible=b.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),b.clearInterval(a.checkVisible))},500)))},wrapItems:function(){var a=this;a.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'),a.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'),a.wrapperOuter=a.$elem.find(".owl-wrapper-outer"),a.$elem.css("display","block")},baseClass:function(){var a=this,b=a.$elem.hasClass(a.options.baseClass),c=a.$elem.hasClass(a.options.theme);b||a.$elem.addClass(a.options.baseClass),c||a.$elem.addClass(a.options.theme)},updateItems:function(){var b,c,d=this;if(d.options.responsive===!1)return!1;if(d.options.singleItem===!0)return d.options.items=d.orignalItems=1,d.options.itemsCustom=!1,d.options.itemsDesktop=!1,d.options.itemsDesktopSmall=!1,d.options.itemsTablet=!1,d.options.itemsTabletSmall=!1,d.options.itemsMobile=!1,!1;if(b=a(d.options.responsiveBaseWidth).width(),b>(d.options.itemsDesktop[0]||d.orignalItems)&&(d.options.items=d.orignalItems),d.options.itemsCustom!==!1)for(d.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),c=0;c<d.options.itemsCustom.length;c+=1)d.options.itemsCustom[c][0]<=b&&(d.options.items=d.options.itemsCustom[c][1]);else b<=d.options.itemsDesktop[0]&&d.options.itemsDesktop!==!1&&(d.options.items=d.options.itemsDesktop[1]),b<=d.options.itemsDesktopSmall[0]&&d.options.itemsDesktopSmall!==!1&&(d.options.items=d.options.itemsDesktopSmall[1]),b<=d.options.itemsTablet[0]&&d.options.itemsTablet!==!1&&(d.options.items=d.options.itemsTablet[1]),b<=d.options.itemsTabletSmall[0]&&d.options.itemsTabletSmall!==!1&&(d.options.items=d.options.itemsTabletSmall[1]),b<=d.options.itemsMobile[0]&&d.options.itemsMobile!==!1&&(d.options.items=d.options.itemsMobile[1]);d.options.items>d.itemsAmount&&d.options.itemsScaleUp===!0&&(d.options.items=d.itemsAmount)},response:function(){var c,d,e=this;return e.options.responsive!==!0?!1:(d=a(b).width(),e.resizer=function(){a(b).width()!==d&&(e.options.autoPlay!==!1&&b.clearInterval(e.autoPlayInterval),b.clearTimeout(c),c=b.setTimeout(function(){d=a(b).width(),e.updateVars()},e.options.responsiveRefreshRate))},void a(b).resize(e.resizer))},updatePosition:function(){var a=this;a.jumpTo(a.currentItem),a.options.autoPlay!==!1&&a.checkAp()},appendItemsSizes:function(){var b=this,c=0,d=b.itemsAmount-b.options.items;b.$owlItems.each(function(e){var f=a(this);f.css({width:b.itemWidth}).data("owl-item",Number(e)),(e%b.options.items===0||e===d)&&(e>d||(c+=1)),f.data("owl-roundPages",c)})},appendWrapperSizes:function(){var a=this,b=a.$owlItems.length*a.itemWidth;a.$owlWrapper.css({width:2*b,left:0}),a.appendItemsSizes()},calculateAll:function(){var a=this;a.calculateWidth(),a.appendWrapperSizes(),a.loops(),a.max()},calculateWidth:function(){var a=this;a.itemWidth=Math.round(a.$elem.width()/a.options.items)},max:function(){var a=this,b=-1*(a.itemsAmount*a.itemWidth-a.options.items*a.itemWidth);return a.options.items>a.itemsAmount?(a.maximumItem=0,b=0,a.maximumPixels=0):(a.maximumItem=a.itemsAmount-a.options.items,a.maximumPixels=b),b},min:function(){return 0},loops:function(){var b,c,d,e=this,f=0,g=0;for(e.positionsInArray=[0],e.pagesInArray=[],b=0;b<e.itemsAmount;b+=1)g+=e.itemWidth,e.positionsInArray.push(-g),e.options.scrollPerPage===!0&&(c=a(e.$owlItems[b]),d=c.data("owl-roundPages"),d!==f&&(e.pagesInArray[f]=e.positionsInArray[b],f=d))},buildControls:function(){var b=this;(b.options.navigation===!0||b.options.pagination===!0)&&(b.owlControls=a('<div class="owl-controls"/>').toggleClass("clickable",!b.browser.isTouch).appendTo(b.$elem)),b.options.pagination===!0&&b.buildPagination(),b.options.navigation===!0&&b.buildButtons()},buildButtons:function(){var b=this,c=a('<div class="owl-buttons"/>');b.owlControls.append(c),b.buttonPrev=a("<div/>",{"class":"owl-prev",html:b.options.navigationText[0]||""}),b.buttonNext=a("<div/>",{"class":"owl-next",html:b.options.navigationText[1]||""}),c.append(b.buttonPrev).append(b.buttonNext),c.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()}),c.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(c){c.preventDefault(),a(this).hasClass("owl-next")?b.next():b.prev()})},buildPagination:function(){var b=this;b.paginationWrapper=a('<div class="owl-pagination"/>'),b.owlControls.append(b.paginationWrapper),b.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(c){c.preventDefault(),Number(a(this).data("owl-page"))!==b.currentItem&&b.goTo(Number(a(this).data("owl-page")),!0)})},updatePagination:function(){var b,c,d,e,f,g,h=this;if(h.options.pagination===!1)return!1;for(h.paginationWrapper.html(""),b=0,c=h.itemsAmount-h.itemsAmount%h.options.items,e=0;e<h.itemsAmount;e+=1)e%h.options.items===0&&(b+=1,c===e&&(d=h.itemsAmount-h.options.items),f=a("<div/>",{"class":"owl-page"}),g=a("<span></span>",{text:h.options.paginationNumbers===!0?b:"","class":h.options.paginationNumbers===!0?"owl-numbers":""}),f.append(g),f.data("owl-page",c===e?d:e),f.data("owl-roundPages",b),h.paginationWrapper.append(f));h.checkPagination()},checkPagination:function(){var b=this;return b.options.pagination===!1?!1:void b.paginationWrapper.find(".owl-page").each(function(){a(this).data("owl-roundPages")===a(b.$owlItems[b.currentItem]).data("owl-roundPages")&&(b.paginationWrapper.find(".owl-page").removeClass("active"),a(this).addClass("active"))})},checkNavigation:function(){var a=this;return a.options.navigation===!1?!1:void(a.options.rewindNav===!1&&(0===a.currentItem&&0===a.maximumItem?(a.buttonPrev.addClass("disabled"),a.buttonNext.addClass("disabled")):0===a.currentItem&&0!==a.maximumItem?(a.buttonPrev.addClass("disabled"),a.buttonNext.removeClass("disabled")):a.currentItem===a.maximumItem?(a.buttonPrev.removeClass("disabled"),a.buttonNext.addClass("disabled")):0!==a.currentItem&&a.currentItem!==a.maximumItem&&(a.buttonPrev.removeClass("disabled"),a.buttonNext.removeClass("disabled"))))},updateControls:function(){var a=this;a.updatePagination(),a.checkNavigation(),a.owlControls&&(a.options.items>=a.itemsAmount?a.owlControls.hide():a.owlControls.show())},destroyControls:function(){var a=this;a.owlControls&&a.owlControls.remove()},next:function(a){var b=this;if(b.isTransition)return!1;if(b.currentItem+=b.options.scrollPerPage===!0?b.options.items:1,b.currentItem>b.maximumItem+(b.options.scrollPerPage===!0?b.options.items-1:0)){if(b.options.rewindNav!==!0)return b.currentItem=b.maximumItem,!1;b.currentItem=0,a="rewind"}b.goTo(b.currentItem,a)},prev:function(a){var b=this;if(b.isTransition)return!1;if(b.options.scrollPerPage===!0&&b.currentItem>0&&b.currentItem<b.options.items?b.currentItem=0:b.currentItem-=b.options.scrollPerPage===!0?b.options.items:1,b.currentItem<0){if(b.options.rewindNav!==!0)return b.currentItem=0,!1;b.currentItem=b.maximumItem,a="rewind"}b.goTo(b.currentItem,a)},goTo:function(a,c,d){var e,f=this;return f.isTransition?!1:("function"==typeof f.options.beforeMove&&f.options.beforeMove.apply(this,[f.$elem]),a>=f.maximumItem?a=f.maximumItem:0>=a&&(a=0),f.currentItem=f.owl.currentItem=a,f.options.transitionStyle!==!1&&"drag"!==d&&1===f.options.items&&f.browser.support3d===!0?(f.swapSpeed(0),f.browser.support3d===!0?f.transition3d(f.positionsInArray[a]):f.css2slide(f.positionsInArray[a],1),f.afterGo(),f.singleItemTransition(),!1):(e=f.positionsInArray[a],f.browser.support3d===!0?(f.isCss3Finish=!1,c===!0?(f.swapSpeed("paginationSpeed"),b.setTimeout(function(){f.isCss3Finish=!0},f.options.paginationSpeed)):"rewind"===c?(f.swapSpeed(f.options.rewindSpeed),b.setTimeout(function(){f.isCss3Finish=!0},f.options.rewindSpeed)):(f.swapSpeed("slideSpeed"),b.setTimeout(function(){f.isCss3Finish=!0},f.options.slideSpeed)),f.transition3d(e)):c===!0?f.css2slide(e,f.options.paginationSpeed):"rewind"===c?f.css2slide(e,f.options.rewindSpeed):f.css2slide(e,f.options.slideSpeed),void f.afterGo()))},jumpTo:function(a){var b=this;"function"==typeof b.options.beforeMove&&b.options.beforeMove.apply(this,[b.$elem]),a>=b.maximumItem||-1===a?a=b.maximumItem:0>=a&&(a=0),b.swapSpeed(0),b.browser.support3d===!0?b.transition3d(b.positionsInArray[a]):b.css2slide(b.positionsInArray[a],1),b.currentItem=b.owl.currentItem=a,b.afterGo()},afterGo:function(){var a=this;a.prevArr.push(a.currentItem),a.prevItem=a.owl.prevItem=a.prevArr[a.prevArr.length-2],a.prevArr.shift(0),a.prevItem!==a.currentItem&&(a.checkPagination(),a.checkNavigation(),a.eachMoveUpdate(),a.options.autoPlay!==!1&&a.checkAp()),"function"==typeof a.options.afterMove&&a.prevItem!==a.currentItem&&a.options.afterMove.apply(this,[a.$elem])},stop:function(){var a=this;a.apStatus="stop",b.clearInterval(a.autoPlayInterval)},checkAp:function(){var a=this;"stop"!==a.apStatus&&a.play()},play:function(){var a=this;return a.apStatus="play",a.options.autoPlay===!1?!1:(b.clearInterval(a.autoPlayInterval),void(a.autoPlayInterval=b.setInterval(function(){a.next(!0)},a.options.autoPlay)))},swapSpeed:function(a){var b=this;"slideSpeed"===a?b.$owlWrapper.css(b.addCssSpeed(b.options.slideSpeed)):"paginationSpeed"===a?b.$owlWrapper.css(b.addCssSpeed(b.options.paginationSpeed)):"string"!=typeof a&&b.$owlWrapper.css(b.addCssSpeed(a));
2
- },addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){var b=this;b.$owlWrapper.css(b.doTranslate(a))},css2move:function(a){var b=this;b.$owlWrapper.css({left:a})},css2slide:function(a,b){var c=this;c.isCssFinish=!1,c.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||c.options.slideSpeed,complete:function(){c.isCssFinish=!0}})},checkBrowser:function(){var a,d,e,f,g=this,h="translate3d(0px, 0px, 0px)",i=c.createElement("div");i.style.cssText=" -moz-transform:"+h+"; -ms-transform:"+h+"; -o-transform:"+h+"; -webkit-transform:"+h+"; transform:"+h,a=/translate3d\(0px, 0px, 0px\)/g,d=i.style.cssText.match(a),e=null!==d&&1===d.length,f="ontouchstart"in b||b.navigator.msMaxTouchPoints,g.browser={support3d:e,isTouch:f}},moveEvents:function(){var a=this;(a.options.mouseDrag!==!1||a.options.touchDrag!==!1)&&(a.gestures(),a.disabledEvents())},eventTypes:function(){var a=this,b=["s","e","x"];a.ev_types={},a.options.mouseDrag===!0&&a.options.touchDrag===!0?b=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:a.options.mouseDrag===!1&&a.options.touchDrag===!0?b=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:a.options.mouseDrag===!0&&a.options.touchDrag===!1&&(b=["mousedown.owl","mousemove.owl","mouseup.owl"]),a.ev_types.start=b[0],a.ev_types.move=b[1],a.ev_types.end=b[2]},disabledEvents:function(){var b=this;b.$elem.on("dragstart.owl",function(a){a.preventDefault()}),b.$elem.on("mousedown.disableTextSelect",function(b){return a(b.target).is("input, textarea, select, option")})},gestures:function(){function d(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function e(b){"on"===b?(a(c).on(i.ev_types.move,g),a(c).on(i.ev_types.end,h)):"off"===b&&(a(c).off(i.ev_types.move),a(c).off(i.ev_types.end))}function f(c){var f,g=c.originalEvent||c||b.event;if(3===g.which)return!1;if(!(i.itemsAmount<=i.options.items)){if(i.isCssFinish===!1&&!i.options.dragBeforeAnimFinish)return!1;if(i.isCss3Finish===!1&&!i.options.dragBeforeAnimFinish)return!1;i.options.autoPlay!==!1&&b.clearInterval(i.autoPlayInterval),i.browser.isTouch===!0||i.$owlWrapper.hasClass("grabbing")||i.$owlWrapper.addClass("grabbing"),i.newPosX=0,i.newRelativeX=0,a(this).css(i.removeTransition()),f=a(this).position(),j.relativePos=f.left,j.offsetX=d(g).x-f.left,j.offsetY=d(g).y-f.top,e("on"),j.sliding=!1,j.targetElement=g.target||g.srcElement}}function g(e){var f,g,h=e.originalEvent||e||b.event;i.newPosX=d(h).x-j.offsetX,i.newPosY=d(h).y-j.offsetY,i.newRelativeX=i.newPosX-j.relativePos,"function"==typeof i.options.startDragging&&j.dragging!==!0&&0!==i.newRelativeX&&(j.dragging=!0,i.options.startDragging.apply(i,[i.$elem])),(i.newRelativeX>8||i.newRelativeX<-8)&&i.browser.isTouch===!0&&(void 0!==h.preventDefault?h.preventDefault():h.returnValue=!1,j.sliding=!0),(i.newPosY>10||i.newPosY<-10)&&j.sliding===!1&&a(c).off("touchmove.owl"),f=function(){return i.newRelativeX/5},g=function(){return i.maximumPixels+i.newRelativeX/5},i.newPosX=Math.max(Math.min(i.newPosX,f()),g()),i.browser.support3d===!0?i.transition3d(i.newPosX):i.css2move(i.newPosX)}function h(c){var d,f,g,h=c.originalEvent||c||b.event;h.target=h.target||h.srcElement,j.dragging=!1,i.browser.isTouch!==!0&&i.$owlWrapper.removeClass("grabbing"),i.newRelativeX<0?i.dragDirection=i.owl.dragDirection="left":i.dragDirection=i.owl.dragDirection="right",0!==i.newRelativeX&&(d=i.getNewPosition(),i.goTo(d,!1,"drag"),j.targetElement===h.target&&i.browser.isTouch!==!0&&(a(h.target).on("click.disable",function(b){b.stopImmediatePropagation(),b.stopPropagation(),b.preventDefault(),a(b.target).off("click.disable")}),f=a._data(h.target,"events").click,g=f.pop(),f.splice(0,0,g))),e("off")}var i=this,j={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};i.isCssFinish=!0,i.$elem.on(i.ev_types.start,".owl-wrapper",f)},getNewPosition:function(){var a=this,b=a.closestItem();return b>a.maximumItem?(a.currentItem=a.maximumItem,b=a.maximumItem):a.newPosX>=0&&(b=0,a.currentItem=0),b},closestItem:function(){var b=this,c=b.options.scrollPerPage===!0?b.pagesInArray:b.positionsInArray,d=b.newPosX,e=null;return a.each(c,function(f,g){d-b.itemWidth/20>c[f+1]&&d-b.itemWidth/20<g&&"left"===b.moveDirection()?(e=g,b.options.scrollPerPage===!0?b.currentItem=a.inArray(e,b.positionsInArray):b.currentItem=f):d+b.itemWidth/20<g&&d+b.itemWidth/20>(c[f+1]||c[f]-b.itemWidth)&&"right"===b.moveDirection()&&(b.options.scrollPerPage===!0?(e=c[f+1]||c[c.length-1],b.currentItem=a.inArray(e,b.positionsInArray)):(e=c[f+1],b.currentItem=f+1))}),b.currentItem},moveDirection:function(){var a,b=this;return b.newRelativeX<0?(a="right",b.playDirection="next"):(a="left",b.playDirection="prev"),a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()}),a.$elem.on("owl.prev",function(){a.prev()}),a.$elem.on("owl.play",function(b,c){a.options.autoPlay=c,a.play(),a.hoverStatus="play"}),a.$elem.on("owl.stop",function(){a.stop(),a.hoverStatus="stop"}),a.$elem.on("owl.goTo",function(b,c){a.goTo(c)}),a.$elem.on("owl.jumpTo",function(b,c){a.jumpTo(c)})},stopOnHover:function(){var a=this;a.options.stopOnHover===!0&&a.browser.isTouch!==!0&&a.options.autoPlay!==!1&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var b,c,d,e,f,g=this;if(g.options.lazyLoad===!1)return!1;for(b=0;b<g.itemsAmount;b+=1)c=a(g.$owlItems[b]),"loaded"!==c.data("owl-loaded")&&(d=c.data("owl-item"),e=c.find(".lazyOwl"),"string"==typeof e.data("src")?(void 0===c.data("owl-loaded")&&(e.hide(),c.addClass("loading").data("owl-loaded","checked")),f=g.options.lazyFollow===!0?d>=g.currentItem:!0,f&&d<g.currentItem+g.options.items&&e.length&&e.each(function(){g.lazyPreload(c,a(this))})):c.data("owl-loaded","loaded"))},lazyPreload:function(a,c){function d(){a.data("owl-loaded","loaded").removeClass("loading"),c.removeAttr("data-src"),"fade"===g.options.lazyEffect?c.fadeIn(400):c.show(),"function"==typeof g.options.afterLazyLoad&&g.options.afterLazyLoad.apply(this,[g.$elem])}function e(){h+=1,g.completeImg(c.get(0))||f===!0?d():100>=h?b.setTimeout(e,100):d()}var f,g=this,h=0;"DIV"===c.prop("tagName")?(c.css("background-image","url("+c.data("src")+")"),f=!0):c[0].src=c.data("src"),e()},autoHeight:function(){function c(){var c=a(f.$owlItems[f.currentItem]).height();f.wrapperOuter.css("height",c+"px"),f.wrapperOuter.hasClass("autoHeight")||b.setTimeout(function(){f.wrapperOuter.addClass("autoHeight")},0)}function d(){e+=1,f.completeImg(g.get(0))?c():100>=e?b.setTimeout(d,100):f.wrapperOuter.css("height","")}var e,f=this,g=a(f.$owlItems[f.currentItem]).find("img");void 0!==g.get(0)?(e=0,d()):c()},completeImg:function(a){var b;return a.complete?(b=typeof a.naturalWidth,"undefined"!==b&&0===a.naturalWidth?!1:!0):!1},onVisibleItems:function(){var b,c=this;for(c.options.addClassActive===!0&&c.$owlItems.removeClass("active"),c.visibleItems=[],b=c.currentItem;b<c.currentItem+c.options.items;b+=1)c.visibleItems.push(b),c.options.addClassActive===!0&&a(c.$owlItems[b]).addClass("active");c.owl.visibleItems=c.visibleItems},transitionTypes:function(a){var b=this;b.outClass="owl-"+a+"-out",b.inClass="owl-"+a+"-in"},singleItemTransition:function(){function a(a){return{position:"relative",left:a+"px"}}var b=this,c=b.outClass,d=b.inClass,e=b.$owlItems.eq(b.currentItem),f=b.$owlItems.eq(b.prevItem),g=Math.abs(b.positionsInArray[b.currentItem])+b.positionsInArray[b.prevItem],h=Math.abs(b.positionsInArray[b.currentItem])+b.itemWidth/2,i="webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend";b.isTransition=!0,b.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":h+"px","-moz-perspective-origin":h+"px","perspective-origin":h+"px"}),f.css(a(g,10)).addClass(c).on(i,function(){b.endPrev=!0,f.off(i),b.clearTransStyle(f,c)}),e.addClass(d).on(i,function(){b.endCurrent=!0,e.off(i),b.clearTransStyle(e,d)})},clearTransStyle:function(a,b){var c=this;a.css({position:"",left:""}).removeClass(b),c.endPrev&&c.endCurrent&&(c.$owlWrapper.removeClass("owl-origin"),c.endPrev=!1,c.endCurrent=!1,c.isTransition=!1)},owlStatus:function(){var a=this;a.owl={userOptions:a.userOptions,baseElement:a.$elem,userItems:a.$userItems,owlItems:a.$owlItems,currentItem:a.currentItem,prevItem:a.prevItem,visibleItems:a.visibleItems,isTouch:a.browser.isTouch,browser:a.browser,dragDirection:a.dragDirection}},clearEvents:function(){var d=this;d.$elem.off(".owl owl mousedown.disableTextSelect"),a(c).off(".owl owl"),a(b).off("resize",d.resizer)},unWrap:function(){var a=this;0!==a.$elem.children().length&&(a.$owlWrapper.unwrap(),a.$userItems.unwrap().unwrap(),a.owlControls&&a.owlControls.remove()),a.clearEvents(),a.$elem.attr({style:a.$elem.data("owl-originalStyles")||"","class":a.$elem.data("owl-originalClasses")})},destroy:function(){var a=this;a.stop(),b.clearInterval(a.checkVisible),a.unWrap(),a.$elem.removeData()},reinit:function(b){var c=this,d=a.extend({},c.userOptions,b);c.unWrap(),c.init(d,c.$elem)},addItem:function(a,b){var c,d=this;return a?0===d.$elem.children().length?(d.$elem.append(a),d.setVars(),!1):(d.unWrap(),c=void 0===b||-1===b?-1:b,c>=d.$userItems.length||-1===c?d.$userItems.eq(-1).after(a):d.$userItems.eq(c).before(a),void d.setVars()):!1},removeItem:function(a){var b,c=this;return 0===c.$elem.children().length?!1:(b=void 0===a||-1===a?-1:a,c.unWrap(),c.$userItems.eq(b).remove(),void c.setVars())}};a.fn.owlCarousel=function(b){return this.each(function(){if(a(this).data("owl-init")===!0)return!1;a(this).data("owl-init",!0);var c=Object.create(d);c.init(b,this),a.data(this,"owlCarousel",c)})},a.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:b,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document);!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});(function(a){a.belowthefold=function(b,c){var d=a(window).height()+a(window).scrollTop();return d<=a(b).offset().top-c.threshold};a.abovethetop=function(b,c){var d=a(window).scrollTop();return d>=a(b).offset().top+a(b).height()-c.threshold};a.rightofscreen=function(b,c){var d=a(window).width()+a(window).scrollLeft();return d<=a(b).offset().left-c.threshold};a.leftofscreen=function(b,c){var d=a(window).scrollLeft();return d>=a(b).offset().left+a(b).width()-c.threshold};a.inviewport=function(b,c){return!a.rightofscreen(b,c)&&!a.leftofscreen(b,c)&&!a.belowthefold(b,c)&&!a.abovethetop(b,c)};a.extend(a.expr[":"],{"below-the-fold":function(b,c,d){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b,c,d){
3
- return a.abovethetop(b,{threshold:0})},"left-of-screen":function(b,c,d){return a.leftofscreen(b,{threshold:0})},"right-of-screen":function(b,c,d){return a.rightofscreen(b,{threshold:0})},"in-viewport":function(b,c,d){return a.inviewport(b,{threshold:0})}})})(jQuery);!function(a){if("function"==typeof define&&define.amd)define(a);else if("object"==typeof exports)module.exports=a();else{var b=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=b,c}}}(function(){function a(){for(var a=0,b={};a<arguments.length;a++){var c=arguments[a];for(var d in c)b[d]=c[d]}return b}function b(c){function d(b,e,f){var g;if(arguments.length>1){if(f=a({path:"/"},d.defaults,f),"number"==typeof f.expires){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*f.expires),f.expires=h}try{g=JSON.stringify(e),/^[\{\[]/.test(g)&&(e=g)}catch(i){}return e=c.write?c.write(e,b):encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),b=encodeURIComponent(String(b)),b=b.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),b=b.replace(/[\(\)]/g,escape),document.cookie=[b,"=",e,f.expires&&"; expires="+f.expires.toUTCString(),f.path&&"; path="+f.path,f.domain&&"; domain="+f.domain,f.secure?"; secure":""].join("")}b||(g={});for(var j=document.cookie?document.cookie.split("; "):[],k=/(%[0-9A-Z]{2})+/g,l=0;l<j.length;l++){var m=j[l].split("="),n=m[0].replace(k,decodeURIComponent),o=m.slice(1).join("=");'"'===o.charAt(0)&&(o=o.slice(1,-1));try{if(o=c.read?c.read(o,n):c(o,n)||o.replace(k,decodeURIComponent),this.json)try{o=JSON.parse(o)}catch(i){}if(b===n){g=o;break}b||(g[n]=o)}catch(i){}}return g}return d.get=d.set=d,d.getJSON=function(){return d.apply({json:!0},[].slice.call(arguments))},d.defaults={},d.remove=function(b,c){d(b,"",a(c,{expires:-1}))},d.withConverter=b,d}return b(function(){})});
1
+ function dslc_responsive_classes(a){if(a===undefined)a=false;var b=jQuery(window).width();var c=jQuery("body");if(a==true||!c.hasClass("dslc-res-disabled")&&!jQuery('.dslca-module-edit-options-tab-hook.dslca-active[data-section="responsive"]').length){c.removeClass("dslc-res-phone dslc-res-tablet dslc-res-smaller-monitor dslc-res-big");if(b>=1024&&b<1280){c.addClass("dslc-res-smaller-monitor")}else if(b>=768&&b<1024){c.addClass("dslc-res-tablet")}else if(b<768){c.addClass("dslc-res-phone")}else{c.addClass("dslc-res-big")}}}function dslc_init_accordion(){jQuery(".dslc-accordion").each(function(){var a=jQuery(this),b=a.data("open")-1,c=jQuery(".dslc-accordion-item:eq("+b+")",a),d=c.siblings(".dslc-accordion-item"),e=jQuery(".dslc-accordion-item",a);if(b>=0){c.addClass("dslc-active");d.addClass("dslc-inactive");jQuery(".dslc-accordion-content",d).hide()}else{e.addClass("dslc-inactive");jQuery(".dslc-accordion-content",e).hide()}})}function dslc_init_lightbox(){var a;jQuery(".dslc-lightbox-image").each(function(){a="image";if(jQuery(this).attr("href").indexOf("youtube.com")>=0||jQuery(this).attr("href").indexOf("vimeo.com")>=0){a="iframe"}jQuery(this).magnificPopup({type:a})});jQuery(".dslc-lightbox-gallery").each(function(){jQuery(this).magnificPopup({delegate:"a",type:"image",gallery:{enabled:true}})})}function dslc_carousel(){jQuery(".dslc-carousel, .dslc-slider").each(function(a){var b,c,d,e,f;b=jQuery(this);c=b.closest(".dslc-module-front");c.imagesLoaded(function(){if(c.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")){var a=0}else{var a=c.width()/100*2.12766/2}if(b.hasClass("dslc-carousel")){b.find(".dslc-col").css({"margin-left":a,"margin-right":a});b.css({"margin-left":a*-1,width:b.width()+a*2})}d={items:4,pagination:true,singleItem:false,itemsScaleUp:false,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:false,stopOnHover:false,lazyLoad:false,lazyFollow:true,autoHeight:false,mouseDrag:true,touchDrag:true,addClassActive:true,transitionStyle:"fade",scrollPerPage:true};e={items:b.data("columns"),pagination:b.data("pagination"),itemsScaleUp:b.data("scale-up"),slideSpeed:b.data("slide-speed"),paginationSpeed:b.data("pagination-speed"),rewindSpeed:b.data("rewind-speed"),autoPlay:b.data("autoplay"),stopOnHover:b.data("stop-on-hover"),lazyLoad:b.data("lazy-load"),lazyFollow:b.data("lazy-follow"),autoHeight:b.data("flexible-height"),mouseDrag:b.data("mouse-drag"),touchDrag:b.data("touch-drag"),addClassActive:b.data("active-class"),transitionStyle:b.data("animation"),scrollPerPage:b.data("scroll-per-page")};f=jQuery.extend({},d,e);if(b.hasClass("dslc-slider")||f.items==1){f.singleItem=true}if(f.autoPlay==0){f.autoPlay=false}b.owlCarousel({items:f.items,pagination:f.pagination,singleItem:f.singleItem,itemsScaleUp:f.itemsScaleUp,slideSpeed:f.slideSpeed,paginationSpeed:f.paginationSpeed,rewindSpeed:f.rewindSpeed,autoPlay:f.autoPlay,stopOnHover:f.stopOnHover,lazyLoad:f.lazyLoad,lazyFollow:f.lazyFollow,mouseDrag:f.mouseDrag,touchDrag:f.touchDrag,scrollPerPage:f.scrollPerPage,transitionStyle:f.transitionStyle,autoHeight:f.autoHeight,itemsDesktop:false,itemsDesktopSmall:false,itemsTablet:false,itemsMobile:[766,1],afterInit:function(){b.prev(".dslc-loader").remove();b.css({opacity:1,maxHeight:"none"})},afterAction:function(){var a=this.owl.visibleItems;b.find(".dslc-carousel-item-visible").removeClass("dslc-carousel-item-visible");b.find(".owl-item").filter(function(b){return a.indexOf(b)>-1}).addClass("dslc-carousel-item-visible")}});jQuery(".dslc-carousel-nav-next",c).click(function(a){a.preventDefault();b.data("owlCarousel").next()});jQuery(".dslc-carousel-nav-prev",c).click(function(a){a.preventDefault();b.data("owlCarousel").prev()})})})}function dslc_carousel_responsive(){jQuery(".dslc-carousel").each(function(){var a,b;a=jQuery(this);b=a.closest(".dslc-module-front");a.css({"margin-left":0,width:"auto"});if(b.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")){var c=0}else{var c=b.width()/100*2.12766/2}if(a.hasClass("dslc-carousel")){a.find(".dslc-col").css({"margin-left":c,"margin-right":c});a.css({"margin-left":c*-1,width:a.width()+c*2})}})}function dslc_bg_video(){jQuery(".dslc-bg-video").each(function(){if(!jQuery(this).find("video").length){jQuery(this).css({opacity:1})}});jQuery(".dslc-bg-video video").mediaelementplayer({loop:true,pauseOtherPlayers:false,success:function(a,b){a.addEventListener("loadeddata",function(a){jQuery(b).closest(".dslc-bg-video").animate({opacity:1},400)});a.play()}})}function dslc_parallax(){jQuery(".dslc-init-parallax").each(function(){var a=jQuery(this);a.imagesLoaded({background:true},function(){var b=4,c=a.css("background-position").split(" "),d=c[0],e=d+" "+-1*(window.pageYOffset-a.offset().top)/b+"px";a.css({backgroundPosition:e})})});window.onscroll=function(){jQuery(".dslc-init-parallax").each(function(){var a=4,b=jQuery(this).css("background-position").split(" "),c=b[0],d=c+" "+-1*(window.pageYOffset-jQuery(this).offset().top)/a+"px";jQuery(this).css({backgroundPosition:d})})}}function dslc_masonry(a,b){a=typeof a!=="undefined"?a:jQuery("body");b=typeof b!=="undefined"?b:false;jQuery(".dslc-init-masonry",a).each(function(){var a,c,d,e,f,g;if(jQuery(this).find(".dslc-posts-inner").length){a=jQuery(this).find(".dslc-posts-inner")}else{a=jQuery(this)}c=".dslc-masonry-item";e=jQuery(c,a).width();f=jQuery(a).width();if(jQuery(this).closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")){g=0}else{g=f/100*2.05}if(a.data("masonry")){jQuery(a).imagesLoaded(function(){jQuery(a).masonry("destroy").masonry({gutter:g,itemSelector:c});jQuery(a).find(".dslc-post:not(.dslc-masonry-item)").hide();if(b){jQuery(c,a).css({scale:"0.2"}).animate({scale:"1"},500)}})}else{jQuery(c).css({marginRight:0});jQuery(a).imagesLoaded(function(){jQuery(a).masonry({gutter:g,itemSelector:c})})}})}function dslc_tabs_generate_code(a){var b=a.closest(".dslc-module-front");dslcTabsNav=jQuery(".dslc-tabs-nav",a);dslcTabsContent=jQuery(".dslc-tabs-content",a);dslcTabContent=jQuery(".dslc-tabs-tab-content",a);var c="";var d="";var e=0;var f=0;jQuery(".dslc-tabs-nav-hook",dslcTabsNav).each(function(){e++;if(e>1){c+=" (dslc_sep) "}c+=jQuery(this).find(".dslc-tabs-nav-hook-title").text()});dslcTabContent.each(function(){f++;if(f>1){d+=" (dslc_sep) "}d+=jQuery(this).find(".dslca-tab-plain-content").val()});d=d.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");jQuery('.dslca-module-option-front[data-id="tabs_nav"]',b).val(c);jQuery('.dslca-module-option-front[data-id="tabs_content"]',b).val(d);parent.dslc_option_changed()}function dslc_accordion_generate_code(a){var b=a.closest(".dslc-module-front"),c=0,d="",e="";jQuery(".dslc-accordion-item",a).each(function(){c++;if(c>1){d+=" (dslc_sep) ";e+=" (dslc_sep) "}d+=jQuery(this).find(".dslc-accordion-title").text();e+=jQuery(this).find(".dslc-accordion-content").find(".dslca-accordion-plain-content").val()});e=e.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea");jQuery('.dslca-module-option-front[data-id="accordion_nav"]',b).val(d);jQuery('.dslca-module-option-front[data-id="accordion_content"]',b).val(e);parent.dslc_option_changed()}function dslc_tabs(){var a,b,c,d;jQuery(".dslc-tabs").each(function(){a=jQuery(this);b=jQuery(".dslc-tabs-nav",a);c=jQuery(".dslc-tabs-content",a);d=jQuery(".dslc-tabs-tab-content",a);d.eq(0).addClass("dslc-active");jQuery(".dslc-tabs-nav-hook",b).eq(0).addClass("dslc-active")})}function dslc_download_count_increment(a){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-download-count-increment",dslc_post_id:a},function(a){})}function dslc_check_viewport(){var a=false||!!document.documentMode;if(!a){jQuery(".dslc-in-viewport-check:in-viewport:not(.dslc-in-viewport)").each(function(){var a=jQuery(this);var b=a.data("dslc-anim");var c=parseInt(a.data("dslc-anim-duration"))/1e3;var d=c+"s";if(jQuery(window).width()<768){d="0s"}var e=parseInt(a.data("dslc-anim-delay"));var f=a.data("dslc-anim-easing");var g=b+" "+d+" "+f+" forwards";jQuery(this).addClass("dslc-in-viewport");if(e>0){setTimeout(function(){a.css({"-webkit-animation":g,"-moz-animation":g,animation:g})},e)}else{jQuery(this).css({"-webkit-animation":g,"-moz-animation":g,animation:g})}})}else{jQuery(".dslc-in-viewport-check").css("opacity",1)}}function dslc_el_anim_hover(){jQuery(".dslc-on-hover-anim-target").each(function(){var a=parseInt(jQuery(this).data("dslc-anim-speed"))/1e3;var b="all "+a+"s ease-out";jQuery(this).css({"-webkit-transition":b,"-moz-transition":b,transition:b})})}function dslc_check_progress_bar_viewport(){jQuery(".dslc-progress-bar-animated:in-viewport:not(.dslc-progress-bar-in-viewport)").each(function(){var a=jQuery(this),b=a.find(".dslc-progress-bar-loader-inner"),c=b.data("amount")+"%",d=b.data("speed");a.addClass("dslc-progress-bar-in-viewport");b.css({width:0,opacity:1}).animate({width:c},d)})}function dslc_validate_comment_form(a){var b=a.find("#author"),c=a.find("#email"),d=a.find("#url"),e=a.find("#comment"),f=true;if(b.length&&b.val().length==0){b.css({borderColor:"#e55f5f"});f=false}else{b.attr("style","")}if(c.length&&(c.val().length==0||c.val().indexOf("@")===-1)){c.css({borderColor:"#e55f5f"});f=false}else{c.attr("style","")}if(e.val().length==0){e.css({borderColor:"#e55f5f"});f=false}else{e.attr("style","")}return f}function dslc_social_share(a,b,c){var d,e,f,g;d=window.screen.width/2-(a/2+10);e=window.screen.height/2-(b/2+50);var h="status=no,height="+b+",width="+a+",resizable=yes,left="+d+",top="+e+",screenX="+d+",screenY="+e+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";f=location.href;g=document.title;window.open(c,"sharer",h);return false}jQuery(document).ready(function(a){dslc_el_anim_hover();dslc_bg_video();dslc_tabs();a(document).on("click",".dslc-pagination-load-more a",function(b){b.preventDefault();if(a(this).parent().hasClass("dslc-active")){var c=a(this),d=a(this).closest(".dslc-module-front"),e=d.find(".dslc-pagination"),f=d.find(".dslc-posts-inner"),g=d.attr("id"),h=c.attr("href"),i=d.find(".dslc-load-more-temp");c.find(".dslc-icon").addClass("dslc-icon-spin");i.load(h+" #"+g,function(){f.append('<div class="dslc-post-separator"></div>');f.append(i.find(".dslc-posts-inner").html());d.find(".dslc-pagination").html(i.find(".dslc-pagination").html());e.replaceWith(i.find(".dslc-pagination"));i.html("");f.imagesLoaded(function(){if(d.find(".dslc-init-masonry").length){d.find(".dslc-init-masonry .dslc-posts-inner").masonry("reloadItems").masonry()}})})}});a(".dslc-tp-comment-form form").submit(function(a){if(!dslc_validate_comment_form(jQuery(this))){a.preventDefault()}});jQuery(".dslc-mobile-navigation select").change(function(){window.location=a(this).val()});jQuery(document).on("click",".dslca-add-new-tab-hook",function(){var a=jQuery(this).closest(".dslc-tabs"),b=jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook:last",a),c=jQuery(".dslc-tabs-content",a),d=jQuery(".dslc-tabs-tab-content:last",a);b.after('<span class="dslc-tabs-nav-hook"><span class="dslc-tabs-nav-hook-title" contenteditable="true">Click to edit title</span><span class="dslca-delete-tab-hook"><span class="dslca-icon dslc-icon-remove"></span></span></span>');d.after('<div class="dslc-tabs-tab-content"><div class="dslca-editable-content">This is just placeholder text.</div><textarea class="dslca-tab-plain-content">This is just placeholder text.</textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook">Open in WP Editor</span></div></div>');jQuery(".dslc-tabs-nav-hook:last",a).click();dslc_tabs_generate_code(a);if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}});jQuery(document).on("click",".dslca-delete-tab-hook",function(a){var b=jQuery(this).closest(".dslc-tabs");var c=jQuery(this).closest(".dslc-tabs-nav-hook");var d=c.index();var e=jQuery(".dslc-tabs-tab-content",b).eq(d);if(jQuery(".dslc-tabs-nav-hook",b).length>1){c.remove();e.remove();if(!jQuery(".dslc-tabs-tab-content.dslc-active",b).length){jQuery(".dslc-tabs-nav-hook:first",b).trigger("click")}dslc_tabs_generate_code(b)}else{alert("You can not delete the last remaining tab")}a.stopPropagation()});jQuery(document).on("click",".dslc-tabs-nav-hook",function(a){if(!jQuery(this).hasClass("dslc-active")){dslcTabs=jQuery(this).closest(".dslc-tabs");dslcTabsNav=jQuery(".dslc-tabs-nav",dslcTabs);dslcTabsContent=jQuery(".dslc-tabs-content",dslcTabs);dslcTabContent=jQuery(".dslc-tabs-tab-content",dslcTabs);dslcTabIndex=jQuery(this).index();jQuery(".dslc-tabs-nav-hook.dslc-active",dslcTabs).removeClass("dslc-active");jQuery(this).addClass("dslc-active");if(jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).length){jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).animate({opacity:0},250,function(){jQuery(this).removeClass("dslc-active");dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)})}else{dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)}}});jQuery(document).on("blur paste",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",function(){dslc_tabs_generate_code(jQuery(this).closest(".dslc-tabs"))}).on("focus",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",function(){if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}});a(document).on("click",".dslc-notification-close",function(b){a(this).closest(".dslc-notification").slideUp(200,function(){a(this).remove()})});a(document).on("click",".dslc-post-filter",function(){var b=a(this);var c=b.closest(".dslc-module-front").find(".dslc-posts");var d=b.closest(".dslc-module-front");var e=b.data("filter-id");var f=a();var g=a();if(e==="show-all"){f=c.closest(".dslc-module-front").find(".dslc-post");g=a()}else{f=c.closest(".dslc-module-front").find('.dslc-post[data-cats*="'+e+'"]');g=c.closest(".dslc-module-front").find('.dslc-post:not([data-cats*="'+e+'"])')}b.removeClass("dslc-inactive").addClass("dslc-active").siblings(".dslc-active").removeClass("dslc-active").addClass("dslc-inactive");if(c.hasClass("dslc-init-grid")){f.stop().animate({opacity:1},300);g.stop().animate({opacity:.3},300)}else{g.removeClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"hidden"});f.addClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"visible"}).show();dslc_masonry(d,true)}});a(document).on("click",".dslc-download-count-hook",function(b){dslc_download_count_increment(a(this).data("post-id"))});a(".dslc-notification-box-has-timeout").each(function(){var b=a(this);nTimeout="none",moduleID=b.closest(".dslc-module-front").data("module-id"),cookieID="nBox"+moduleID;if(b.data("notification-timeout")){if(Cookies.get(cookieID)==undefined){b.show()}}});a(document).on("click",".dslc-notification-box-close",function(){var b=a(this).closest(".dslc-notification-box"),c="none",d=b.closest(".dslc-module-front").data("module-id"),e="nBox"+d;if(b.data("notification-timeout")){c=b.data("notification-timeout")}if(c!=="none"){Cookies.set(e,"closed",{expires:c})}b.animate({opacity:0},400,function(){a(this).remove()})});dslc_init_lightbox();dslc_init_accordion();a(document).on("click",".dslc-accordion-hook",function(){var b=a(this).closest(".dslc-accordion-item"),c=b.siblings(".dslc-accordion-item");if(b.hasClass("dslc-active")){c=b}else{b.removeClass("dslc-inactive").addClass("dslc-active")}c.removeClass("dslc-active").addClass("dslc-inactive");a(".dslc-accordion-content",b).slideDown(300);a(".dslc-accordion-content",c).slideUp(300)});jQuery(document).on("click",".dslca-add-accordion-hook",function(){var a=jQuery(this).closest(".dslc-accordion"),b=jQuery(".dslc-accordion-item:last",a),c=b.clone().insertAfter(b);jQuery(".dslc-accordion-title",c).html("CLICK TO EDIT");jQuery(".dslc-accordion-content",c).html('<div class="dslca-editable-content">Placeholder content, click to edit. Lorem ipsum dolor sit amet, consectetur tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div><textarea class="dslca-accordion-plain-content"></textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook">Edit Content</span></div>');jQuery(".dslc-accordion-hook",c).click();dslc_accordion_generate_code(a);if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}});jQuery(document).on("click",".dslca-delete-accordion-hook",function(a){var b=jQuery(this).closest(".dslc-accordion"),c=jQuery(this).closest(".dslc-accordion-item");if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}if(jQuery(".dslc-accordion-item",b).length>1){c.remove();if(!jQuery(".dslc-accordion-item.dslc-active",b).length){jQuery(".dslc-accordion-hook:first",b).trigger("click")}dslc_accordion_generate_code(b)}else{alert("You can not delete the last remaining accordion item.")}a.stopPropagation()});jQuery(document).on("click",".dslca-move-up-accordion-hook, .dslca-move-down-accordion-hook",function(a){var b=jQuery(this).closest(".dslc-accordion"),c=jQuery(this).closest(".dslc-accordion-item"),d=c.next(".dslc-accordion-item"),e=c.prev(".dslc-accordion-item");if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}if(jQuery(this).hasClass("dslca-move-down-accordion-hook")){c.insertAfter(d);dslc_accordion_generate_code(b)}else{c.insertBefore(e);dslc_accordion_generate_code(b)}a.stopPropagation()});jQuery(document).on("blur paste keyup",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",function(){dslc_accordion_generate_code(jQuery(this).closest(".dslc-accordion"))}).on("focus",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",function(){if(!jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")){jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}});a(document).on("click",".dslc-trigger-lightbox-gallery",function(a){a.preventDefault();if(jQuery(this).closest(".dslc-post").length){jQuery(this).closest(".dslc-post").find(".dslc-lightbox-gallery a:first-child").trigger("click")}else if(jQuery(this).closest(".dslc-col")){var b=jQuery(this).closest(".dslc-col").index();jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:eq("+b+")").trigger("click")}else{jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:first-child").trigger("click")}});dslc_check_viewport();dslc_check_progress_bar_viewport();a(document).on("scroll",function(){dslc_check_viewport();dslc_check_progress_bar_viewport()})});jQuery(document).ready(function(a){dslc_responsive_classes();dslc_carousel();dslc_masonry();dslc_parallax();dslc_init_lightbox()});jQuery(window).resize(function(){dslc_responsive_classes();dslc_carousel_responsive()});"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c){var d={init:function(b,c){var d=this;d.$elem=a(c),d.options=a.extend({},a.fn.owlCarousel.options,d.$elem.data(),b),d.userOptions=b,d.loadContent()},loadContent:function(){function b(a){var b,c="";if("function"==typeof d.options.jsonSuccess)d.options.jsonSuccess.apply(this,[a]);else{for(b in a.owl)a.owl.hasOwnProperty(b)&&(c+=a.owl[b].item);d.$elem.html(c)}d.logIn()}var c,d=this;"function"==typeof d.options.beforeInit&&d.options.beforeInit.apply(this,[d.$elem]),"string"==typeof d.options.jsonPath?(c=d.options.jsonPath,a.getJSON(c,b)):d.logIn()},logIn:function(){var a=this;a.$elem.data({"owl-originalStyles":a.$elem.attr("style"),"owl-originalClasses":a.$elem.attr("class")}),a.$elem.css({opacity:0}),a.orignalItems=a.options.items,a.checkBrowser(),a.wrapperWidth=0,a.checkVisible=null,a.setVars()},setVars:function(){var a=this;return 0===a.$elem.children().length?!1:(a.baseClass(),a.eventTypes(),a.$userItems=a.$elem.children(),a.itemsAmount=a.$userItems.length,a.wrapItems(),a.$owlItems=a.$elem.find(".owl-item"),a.$owlWrapper=a.$elem.find(".owl-wrapper"),a.playDirection="next",a.prevItem=0,a.prevArr=[0],a.currentItem=0,a.customEvents(),void a.onStartup())},onStartup:function(){var a=this;a.updateItems(),a.calculateAll(),a.buildControls(),a.updateControls(),a.response(),a.moveEvents(),a.stopOnHover(),a.owlStatus(),a.options.transitionStyle!==!1&&a.transitionTypes(a.options.transitionStyle),a.options.autoPlay===!0&&(a.options.autoPlay=5e3),a.play(),a.$elem.find(".owl-wrapper").css("display","block"),a.$elem.is(":visible")?a.$elem.css("opacity",1):a.watchVisibility(),a.onstartup=!1,a.eachMoveUpdate(),"function"==typeof a.options.afterInit&&a.options.afterInit.apply(this,[a.$elem])},eachMoveUpdate:function(){var a=this;a.options.lazyLoad===!0&&a.lazyLoad(),a.options.autoHeight===!0&&a.autoHeight(),a.onVisibleItems(),"function"==typeof a.options.afterAction&&a.options.afterAction.apply(this,[a.$elem])},updateVars:function(){var a=this;"function"==typeof a.options.beforeUpdate&&a.options.beforeUpdate.apply(this,[a.$elem]),a.watchVisibility(),a.updateItems(),a.calculateAll(),a.updatePosition(),a.updateControls(),a.eachMoveUpdate(),"function"==typeof a.options.afterUpdate&&a.options.afterUpdate.apply(this,[a.$elem])},reload:function(){var a=this;b.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;return a.$elem.is(":visible")!==!1?!1:(a.$elem.css({opacity:0}),b.clearInterval(a.autoPlayInterval),b.clearInterval(a.checkVisible),void(a.checkVisible=b.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),b.clearInterval(a.checkVisible))},500)))},wrapItems:function(){var a=this;a.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'),a.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'),a.wrapperOuter=a.$elem.find(".owl-wrapper-outer"),a.$elem.css("display","block")},baseClass:function(){var a=this,b=a.$elem.hasClass(a.options.baseClass),c=a.$elem.hasClass(a.options.theme);b||a.$elem.addClass(a.options.baseClass),c||a.$elem.addClass(a.options.theme)},updateItems:function(){var b,c,d=this;if(d.options.responsive===!1)return!1;if(d.options.singleItem===!0)return d.options.items=d.orignalItems=1,d.options.itemsCustom=!1,d.options.itemsDesktop=!1,d.options.itemsDesktopSmall=!1,d.options.itemsTablet=!1,d.options.itemsTabletSmall=!1,d.options.itemsMobile=!1,!1;if(b=a(d.options.responsiveBaseWidth).width(),b>(d.options.itemsDesktop[0]||d.orignalItems)&&(d.options.items=d.orignalItems),d.options.itemsCustom!==!1)for(d.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),c=0;c<d.options.itemsCustom.length;c+=1)d.options.itemsCustom[c][0]<=b&&(d.options.items=d.options.itemsCustom[c][1]);else b<=d.options.itemsDesktop[0]&&d.options.itemsDesktop!==!1&&(d.options.items=d.options.itemsDesktop[1]),b<=d.options.itemsDesktopSmall[0]&&d.options.itemsDesktopSmall!==!1&&(d.options.items=d.options.itemsDesktopSmall[1]),b<=d.options.itemsTablet[0]&&d.options.itemsTablet!==!1&&(d.options.items=d.options.itemsTablet[1]),b<=d.options.itemsTabletSmall[0]&&d.options.itemsTabletSmall!==!1&&(d.options.items=d.options.itemsTabletSmall[1]),b<=d.options.itemsMobile[0]&&d.options.itemsMobile!==!1&&(d.options.items=d.options.itemsMobile[1]);d.options.items>d.itemsAmount&&d.options.itemsScaleUp===!0&&(d.options.items=d.itemsAmount)},response:function(){var c,d,e=this;return e.options.responsive!==!0?!1:(d=a(b).width(),e.resizer=function(){a(b).width()!==d&&(e.options.autoPlay!==!1&&b.clearInterval(e.autoPlayInterval),b.clearTimeout(c),c=b.setTimeout(function(){d=a(b).width(),e.updateVars()},e.options.responsiveRefreshRate))},void a(b).resize(e.resizer))},updatePosition:function(){var a=this;a.jumpTo(a.currentItem),a.options.autoPlay!==!1&&a.checkAp()},appendItemsSizes:function(){var b=this,c=0,d=b.itemsAmount-b.options.items;b.$owlItems.each(function(e){var f=a(this);f.css({width:b.itemWidth}).data("owl-item",Number(e)),(e%b.options.items===0||e===d)&&(e>d||(c+=1)),f.data("owl-roundPages",c)})},appendWrapperSizes:function(){var a=this,b=a.$owlItems.length*a.itemWidth;a.$owlWrapper.css({width:2*b,left:0}),a.appendItemsSizes()},calculateAll:function(){var a=this;a.calculateWidth(),a.appendWrapperSizes(),a.loops(),a.max()},calculateWidth:function(){var a=this;a.itemWidth=Math.round(a.$elem.width()/a.options.items)},max:function(){var a=this,b=-1*(a.itemsAmount*a.itemWidth-a.options.items*a.itemWidth);return a.options.items>a.itemsAmount?(a.maximumItem=0,b=0,a.maximumPixels=0):(a.maximumItem=a.itemsAmount-a.options.items,a.maximumPixels=b),b},min:function(){return 0},loops:function(){var b,c,d,e=this,f=0,g=0;for(e.positionsInArray=[0],e.pagesInArray=[],b=0;b<e.itemsAmount;b+=1)g+=e.itemWidth,e.positionsInArray.push(-g),e.options.scrollPerPage===!0&&(c=a(e.$owlItems[b]),d=c.data("owl-roundPages"),d!==f&&(e.pagesInArray[f]=e.positionsInArray[b],f=d))},buildControls:function(){var b=this;(b.options.navigation===!0||b.options.pagination===!0)&&(b.owlControls=a('<div class="owl-controls"/>').toggleClass("clickable",!b.browser.isTouch).appendTo(b.$elem)),b.options.pagination===!0&&b.buildPagination(),b.options.navigation===!0&&b.buildButtons()},buildButtons:function(){var b=this,c=a('<div class="owl-buttons"/>');b.owlControls.append(c),b.buttonPrev=a("<div/>",{"class":"owl-prev",html:b.options.navigationText[0]||""}),b.buttonNext=a("<div/>",{"class":"owl-next",html:b.options.navigationText[1]||""}),c.append(b.buttonPrev).append(b.buttonNext),c.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()}),c.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(c){c.preventDefault(),a(this).hasClass("owl-next")?b.next():b.prev()})},buildPagination:function(){var b=this;b.paginationWrapper=a('<div class="owl-pagination"/>'),b.owlControls.append(b.paginationWrapper),b.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(c){c.preventDefault(),Number(a(this).data("owl-page"))!==b.currentItem&&b.goTo(Number(a(this).data("owl-page")),!0)})},updatePagination:function(){var b,c,d,e,f,g,h=this;if(h.options.pagination===!1)return!1;for(h.paginationWrapper.html(""),b=0,c=h.itemsAmount-h.itemsAmount%h.options.items,e=0;e<h.itemsAmount;e+=1)e%h.options.items===0&&(b+=1,c===e&&(d=h.itemsAmount-h.options.items),f=a("<div/>",{"class":"owl-page"}),g=a("<span></span>",{text:h.options.paginationNumbers===!0?b:"","class":h.options.paginationNumbers===!0?"owl-numbers":""}),f.append(g),f.data("owl-page",c===e?d:e),f.data("owl-roundPages",b),h.paginationWrapper.append(f));h.checkPagination()},checkPagination:function(){var b=this;return b.options.pagination===!1?!1:void b.paginationWrapper.find(".owl-page").each(function(){a(this).data("owl-roundPages")===a(b.$owlItems[b.currentItem]).data("owl-roundPages")&&(b.paginationWrapper.find(".owl-page").removeClass("active"),a(this).addClass("active"))})},checkNavigation:function(){var a=this;return a.options.navigation===!1?!1:void(a.options.rewindNav===!1&&(0===a.currentItem&&0===a.maximumItem?(a.buttonPrev.addClass("disabled"),a.buttonNext.addClass("disabled")):0===a.currentItem&&0!==a.maximumItem?(a.buttonPrev.addClass("disabled"),a.buttonNext.removeClass("disabled")):a.currentItem===a.maximumItem?(a.buttonPrev.removeClass("disabled"),a.buttonNext.addClass("disabled")):0!==a.currentItem&&a.currentItem!==a.maximumItem&&(a.buttonPrev.removeClass("disabled"),a.buttonNext.removeClass("disabled"))))},updateControls:function(){var a=this;a.updatePagination(),a.checkNavigation(),a.owlControls&&(a.options.items>=a.itemsAmount?a.owlControls.hide():a.owlControls.show())},destroyControls:function(){var a=this;a.owlControls&&a.owlControls.remove()},next:function(a){var b=this;if(b.isTransition)return!1;if(b.currentItem+=b.options.scrollPerPage===!0?b.options.items:1,b.currentItem>b.maximumItem+(b.options.scrollPerPage===!0?b.options.items-1:0)){if(b.options.rewindNav!==!0)return b.currentItem=b.maximumItem,!1;b.currentItem=0,a="rewind"}b.goTo(b.currentItem,a)},prev:function(a){var b=this;if(b.isTransition)return!1;if(b.options.scrollPerPage===!0&&b.currentItem>0&&b.currentItem<b.options.items?b.currentItem=0:b.currentItem-=b.options.scrollPerPage===!0?b.options.items:1,b.currentItem<0){if(b.options.rewindNav!==!0)return b.currentItem=0,!1;b.currentItem=b.maximumItem,a="rewind"}b.goTo(b.currentItem,a)},goTo:function(a,c,d){var e,f=this;return f.isTransition?!1:("function"==typeof f.options.beforeMove&&f.options.beforeMove.apply(this,[f.$elem]),a>=f.maximumItem?a=f.maximumItem:0>=a&&(a=0),f.currentItem=f.owl.currentItem=a,f.options.transitionStyle!==!1&&"drag"!==d&&1===f.options.items&&f.browser.support3d===!0?(f.swapSpeed(0),f.browser.support3d===!0?f.transition3d(f.positionsInArray[a]):f.css2slide(f.positionsInArray[a],1),f.afterGo(),f.singleItemTransition(),!1):(e=f.positionsInArray[a],f.browser.support3d===!0?(f.isCss3Finish=!1,c===!0?(f.swapSpeed("paginationSpeed"),b.setTimeout(function(){f.isCss3Finish=!0},f.options.paginationSpeed)):"rewind"===c?(f.swapSpeed(f.options.rewindSpeed),b.setTimeout(function(){f.isCss3Finish=!0},f.options.rewindSpeed)):(f.swapSpeed("slideSpeed"),b.setTimeout(function(){f.isCss3Finish=!0},f.options.slideSpeed)),f.transition3d(e)):c===!0?f.css2slide(e,f.options.paginationSpeed):"rewind"===c?f.css2slide(e,f.options.rewindSpeed):f.css2slide(e,f.options.slideSpeed),void f.afterGo()))},jumpTo:function(a){var b=this;"function"==typeof b.options.beforeMove&&b.options.beforeMove.apply(this,[b.$elem]),a>=b.maximumItem||-1===a?a=b.maximumItem:0>=a&&(a=0),b.swapSpeed(0),b.browser.support3d===!0?b.transition3d(b.positionsInArray[a]):b.css2slide(b.positionsInArray[a],1),b.currentItem=b.owl.currentItem=a,b.afterGo()},afterGo:function(){var a=this;a.prevArr.push(a.currentItem),a.prevItem=a.owl.prevItem=a.prevArr[a.prevArr.length-2],a.prevArr.shift(0),a.prevItem!==a.currentItem&&(a.checkPagination(),a.checkNavigation(),a.eachMoveUpdate(),a.options.autoPlay!==!1&&a.checkAp()),"function"==typeof a.options.afterMove&&a.prevItem!==a.currentItem&&a.options.afterMove.apply(this,[a.$elem])},stop:function(){var a=this;a.apStatus="stop",b.clearInterval(a.autoPlayInterval)},checkAp:function(){var a=this;"stop"!==a.apStatus&&a.play()},play:function(){var a=this;return a.apStatus="play",a.options.autoPlay===!1?!1:(b.clearInterval(a.autoPlayInterval),void(a.autoPlayInterval=b.setInterval(function(){a.next(!0)},a.options.autoPlay)))},swapSpeed:function(a){var b=this;"slideSpeed"===a?b.$owlWrapper.css(b.addCssSpeed(b.options.slideSpeed)):"paginationSpeed"===a?b.$owlWrapper.css(b.addCssSpeed(b.options.paginationSpeed)):"string"!=typeof a&&b.$owlWrapper.css(b.addCssSpeed(a))},addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)",
2
+ "-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){var b=this;b.$owlWrapper.css(b.doTranslate(a))},css2move:function(a){var b=this;b.$owlWrapper.css({left:a})},css2slide:function(a,b){var c=this;c.isCssFinish=!1,c.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||c.options.slideSpeed,complete:function(){c.isCssFinish=!0}})},checkBrowser:function(){var a,d,e,f,g=this,h="translate3d(0px, 0px, 0px)",i=c.createElement("div");i.style.cssText=" -moz-transform:"+h+"; -ms-transform:"+h+"; -o-transform:"+h+"; -webkit-transform:"+h+"; transform:"+h,a=/translate3d\(0px, 0px, 0px\)/g,d=i.style.cssText.match(a),e=null!==d&&1===d.length,f="ontouchstart"in b||b.navigator.msMaxTouchPoints,g.browser={support3d:e,isTouch:f}},moveEvents:function(){var a=this;(a.options.mouseDrag!==!1||a.options.touchDrag!==!1)&&(a.gestures(),a.disabledEvents())},eventTypes:function(){var a=this,b=["s","e","x"];a.ev_types={},a.options.mouseDrag===!0&&a.options.touchDrag===!0?b=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:a.options.mouseDrag===!1&&a.options.touchDrag===!0?b=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:a.options.mouseDrag===!0&&a.options.touchDrag===!1&&(b=["mousedown.owl","mousemove.owl","mouseup.owl"]),a.ev_types.start=b[0],a.ev_types.move=b[1],a.ev_types.end=b[2]},disabledEvents:function(){var b=this;b.$elem.on("dragstart.owl",function(a){a.preventDefault()}),b.$elem.on("mousedown.disableTextSelect",function(b){return a(b.target).is("input, textarea, select, option")})},gestures:function(){function d(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function e(b){"on"===b?(a(c).on(i.ev_types.move,g),a(c).on(i.ev_types.end,h)):"off"===b&&(a(c).off(i.ev_types.move),a(c).off(i.ev_types.end))}function f(c){var f,g=c.originalEvent||c||b.event;if(3===g.which)return!1;if(!(i.itemsAmount<=i.options.items)){if(i.isCssFinish===!1&&!i.options.dragBeforeAnimFinish)return!1;if(i.isCss3Finish===!1&&!i.options.dragBeforeAnimFinish)return!1;i.options.autoPlay!==!1&&b.clearInterval(i.autoPlayInterval),i.browser.isTouch===!0||i.$owlWrapper.hasClass("grabbing")||i.$owlWrapper.addClass("grabbing"),i.newPosX=0,i.newRelativeX=0,a(this).css(i.removeTransition()),f=a(this).position(),j.relativePos=f.left,j.offsetX=d(g).x-f.left,j.offsetY=d(g).y-f.top,e("on"),j.sliding=!1,j.targetElement=g.target||g.srcElement}}function g(e){var f,g,h=e.originalEvent||e||b.event;i.newPosX=d(h).x-j.offsetX,i.newPosY=d(h).y-j.offsetY,i.newRelativeX=i.newPosX-j.relativePos,"function"==typeof i.options.startDragging&&j.dragging!==!0&&0!==i.newRelativeX&&(j.dragging=!0,i.options.startDragging.apply(i,[i.$elem])),(i.newRelativeX>8||i.newRelativeX<-8)&&i.browser.isTouch===!0&&(void 0!==h.preventDefault?h.preventDefault():h.returnValue=!1,j.sliding=!0),(i.newPosY>10||i.newPosY<-10)&&j.sliding===!1&&a(c).off("touchmove.owl"),f=function(){return i.newRelativeX/5},g=function(){return i.maximumPixels+i.newRelativeX/5},i.newPosX=Math.max(Math.min(i.newPosX,f()),g()),i.browser.support3d===!0?i.transition3d(i.newPosX):i.css2move(i.newPosX)}function h(c){var d,f,g,h=c.originalEvent||c||b.event;h.target=h.target||h.srcElement,j.dragging=!1,i.browser.isTouch!==!0&&i.$owlWrapper.removeClass("grabbing"),i.newRelativeX<0?i.dragDirection=i.owl.dragDirection="left":i.dragDirection=i.owl.dragDirection="right",0!==i.newRelativeX&&(d=i.getNewPosition(),i.goTo(d,!1,"drag"),j.targetElement===h.target&&i.browser.isTouch!==!0&&(a(h.target).on("click.disable",function(b){b.stopImmediatePropagation(),b.stopPropagation(),b.preventDefault(),a(b.target).off("click.disable")}),f=a._data(h.target,"events").click,g=f.pop(),f.splice(0,0,g))),e("off")}var i=this,j={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};i.isCssFinish=!0,i.$elem.on(i.ev_types.start,".owl-wrapper",f)},getNewPosition:function(){var a=this,b=a.closestItem();return b>a.maximumItem?(a.currentItem=a.maximumItem,b=a.maximumItem):a.newPosX>=0&&(b=0,a.currentItem=0),b},closestItem:function(){var b=this,c=b.options.scrollPerPage===!0?b.pagesInArray:b.positionsInArray,d=b.newPosX,e=null;return a.each(c,function(f,g){d-b.itemWidth/20>c[f+1]&&d-b.itemWidth/20<g&&"left"===b.moveDirection()?(e=g,b.options.scrollPerPage===!0?b.currentItem=a.inArray(e,b.positionsInArray):b.currentItem=f):d+b.itemWidth/20<g&&d+b.itemWidth/20>(c[f+1]||c[f]-b.itemWidth)&&"right"===b.moveDirection()&&(b.options.scrollPerPage===!0?(e=c[f+1]||c[c.length-1],b.currentItem=a.inArray(e,b.positionsInArray)):(e=c[f+1],b.currentItem=f+1))}),b.currentItem},moveDirection:function(){var a,b=this;return b.newRelativeX<0?(a="right",b.playDirection="next"):(a="left",b.playDirection="prev"),a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()}),a.$elem.on("owl.prev",function(){a.prev()}),a.$elem.on("owl.play",function(b,c){a.options.autoPlay=c,a.play(),a.hoverStatus="play"}),a.$elem.on("owl.stop",function(){a.stop(),a.hoverStatus="stop"}),a.$elem.on("owl.goTo",function(b,c){a.goTo(c)}),a.$elem.on("owl.jumpTo",function(b,c){a.jumpTo(c)})},stopOnHover:function(){var a=this;a.options.stopOnHover===!0&&a.browser.isTouch!==!0&&a.options.autoPlay!==!1&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var b,c,d,e,f,g=this;if(g.options.lazyLoad===!1)return!1;for(b=0;b<g.itemsAmount;b+=1)c=a(g.$owlItems[b]),"loaded"!==c.data("owl-loaded")&&(d=c.data("owl-item"),e=c.find(".lazyOwl"),"string"==typeof e.data("src")?(void 0===c.data("owl-loaded")&&(e.hide(),c.addClass("loading").data("owl-loaded","checked")),f=g.options.lazyFollow===!0?d>=g.currentItem:!0,f&&d<g.currentItem+g.options.items&&e.length&&e.each(function(){g.lazyPreload(c,a(this))})):c.data("owl-loaded","loaded"))},lazyPreload:function(a,c){function d(){a.data("owl-loaded","loaded").removeClass("loading"),c.removeAttr("data-src"),"fade"===g.options.lazyEffect?c.fadeIn(400):c.show(),"function"==typeof g.options.afterLazyLoad&&g.options.afterLazyLoad.apply(this,[g.$elem])}function e(){h+=1,g.completeImg(c.get(0))||f===!0?d():100>=h?b.setTimeout(e,100):d()}var f,g=this,h=0;"DIV"===c.prop("tagName")?(c.css("background-image","url("+c.data("src")+")"),f=!0):c[0].src=c.data("src"),e()},autoHeight:function(){function c(){var c=a(f.$owlItems[f.currentItem]).height();f.wrapperOuter.css("height",c+"px"),f.wrapperOuter.hasClass("autoHeight")||b.setTimeout(function(){f.wrapperOuter.addClass("autoHeight")},0)}function d(){e+=1,f.completeImg(g.get(0))?c():100>=e?b.setTimeout(d,100):f.wrapperOuter.css("height","")}var e,f=this,g=a(f.$owlItems[f.currentItem]).find("img");void 0!==g.get(0)?(e=0,d()):c()},completeImg:function(a){var b;return a.complete?(b=typeof a.naturalWidth,"undefined"!==b&&0===a.naturalWidth?!1:!0):!1},onVisibleItems:function(){var b,c=this;for(c.options.addClassActive===!0&&c.$owlItems.removeClass("active"),c.visibleItems=[],b=c.currentItem;b<c.currentItem+c.options.items;b+=1)c.visibleItems.push(b),c.options.addClassActive===!0&&a(c.$owlItems[b]).addClass("active");c.owl.visibleItems=c.visibleItems},transitionTypes:function(a){var b=this;b.outClass="owl-"+a+"-out",b.inClass="owl-"+a+"-in"},singleItemTransition:function(){function a(a){return{position:"relative",left:a+"px"}}var b=this,c=b.outClass,d=b.inClass,e=b.$owlItems.eq(b.currentItem),f=b.$owlItems.eq(b.prevItem),g=Math.abs(b.positionsInArray[b.currentItem])+b.positionsInArray[b.prevItem],h=Math.abs(b.positionsInArray[b.currentItem])+b.itemWidth/2,i="webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend";b.isTransition=!0,b.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":h+"px","-moz-perspective-origin":h+"px","perspective-origin":h+"px"}),f.css(a(g,10)).addClass(c).on(i,function(){b.endPrev=!0,f.off(i),b.clearTransStyle(f,c)}),e.addClass(d).on(i,function(){b.endCurrent=!0,e.off(i),b.clearTransStyle(e,d)})},clearTransStyle:function(a,b){var c=this;a.css({position:"",left:""}).removeClass(b),c.endPrev&&c.endCurrent&&(c.$owlWrapper.removeClass("owl-origin"),c.endPrev=!1,c.endCurrent=!1,c.isTransition=!1)},owlStatus:function(){var a=this;a.owl={userOptions:a.userOptions,baseElement:a.$elem,userItems:a.$userItems,owlItems:a.$owlItems,currentItem:a.currentItem,prevItem:a.prevItem,visibleItems:a.visibleItems,isTouch:a.browser.isTouch,browser:a.browser,dragDirection:a.dragDirection}},clearEvents:function(){var d=this;d.$elem.off(".owl owl mousedown.disableTextSelect"),a(c).off(".owl owl"),a(b).off("resize",d.resizer)},unWrap:function(){var a=this;0!==a.$elem.children().length&&(a.$owlWrapper.unwrap(),a.$userItems.unwrap().unwrap(),a.owlControls&&a.owlControls.remove()),a.clearEvents(),a.$elem.attr({style:a.$elem.data("owl-originalStyles")||"","class":a.$elem.data("owl-originalClasses")})},destroy:function(){var a=this;a.stop(),b.clearInterval(a.checkVisible),a.unWrap(),a.$elem.removeData()},reinit:function(b){var c=this,d=a.extend({},c.userOptions,b);c.unWrap(),c.init(d,c.$elem)},addItem:function(a,b){var c,d=this;return a?0===d.$elem.children().length?(d.$elem.append(a),d.setVars(),!1):(d.unWrap(),c=void 0===b||-1===b?-1:b,c>=d.$userItems.length||-1===c?d.$userItems.eq(-1).after(a):d.$userItems.eq(c).before(a),void d.setVars()):!1},removeItem:function(a){var b,c=this;return 0===c.$elem.children().length?!1:(b=void 0===a||-1===a?-1:a,c.unWrap(),c.$userItems.eq(b).remove(),void c.setVars())}};a.fn.owlCarousel=function(b){return this.each(function(){if(a(this).data("owl-init")===!0)return!1;a(this).data("owl-init",!0);var c=Object.create(d);c.init(b,this),a.data(this,"owlCarousel",c)})},a.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:b,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document);!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});(function(a){a.belowthefold=function(b,c){var d=a(window).height()+a(window).scrollTop();return d<=a(b).offset().top-c.threshold};a.abovethetop=function(b,c){var d=a(window).scrollTop();return d>=a(b).offset().top+a(b).height()-c.threshold};a.rightofscreen=function(b,c){var d=a(window).width()+a(window).scrollLeft();return d<=a(b).offset().left-c.threshold};a.leftofscreen=function(b,c){var d=a(window).scrollLeft();return d>=a(b).offset().left+a(b).width()-c.threshold};a.inviewport=function(b,c){return!a.rightofscreen(b,c)&&!a.leftofscreen(b,c)&&!a.belowthefold(b,c)&&!a.abovethetop(b,c)};a.extend(a.expr[":"],{"below-the-fold":function(b,c,d){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b,c,d){return a.abovethetop(b,{threshold:0})},"left-of-screen":function(b,c,d){return a.leftofscreen(b,{threshold:0})},"right-of-screen":function(b,c,d){return a.rightofscreen(b,{threshold:0})},"in-viewport":function(b,c,d){return a.inviewport(b,{threshold:0})}})})(jQuery);!function(a){if("function"==typeof define&&define.amd)define(a);else if("object"==typeof exports)module.exports=a();else{var b=window.Cookies,c=window.Cookies=a();
3
+ c.noConflict=function(){return window.Cookies=b,c}}}(function(){function a(){for(var a=0,b={};a<arguments.length;a++){var c=arguments[a];for(var d in c)b[d]=c[d]}return b}function b(c){function d(b,e,f){var g;if(arguments.length>1){if(f=a({path:"/"},d.defaults,f),"number"==typeof f.expires){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*f.expires),f.expires=h}try{g=JSON.stringify(e),/^[\{\[]/.test(g)&&(e=g)}catch(i){}return e=c.write?c.write(e,b):encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),b=encodeURIComponent(String(b)),b=b.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),b=b.replace(/[\(\)]/g,escape),document.cookie=[b,"=",e,f.expires&&"; expires="+f.expires.toUTCString(),f.path&&"; path="+f.path,f.domain&&"; domain="+f.domain,f.secure?"; secure":""].join("")}b||(g={});for(var j=document.cookie?document.cookie.split("; "):[],k=/(%[0-9A-Z]{2})+/g,l=0;l<j.length;l++){var m=j[l].split("="),n=m[0].replace(k,decodeURIComponent),o=m.slice(1).join("=");'"'===o.charAt(0)&&(o=o.slice(1,-1));try{if(o=c.read?c.read(o,n):c(o,n)||o.replace(k,decodeURIComponent),this.json)try{o=JSON.parse(o)}catch(i){}if(b===n){g=o;break}b||(g[n]=o)}catch(i){}}return g}return d.get=d.set=d,d.getJSON=function(){return d.apply({json:!0},[].slice.call(arguments))},d.defaults={},d.remove=function(b,c){d(b,"",a(c,{expires:-1}))},d.withConverter=b,d}return b(function(){})});
js/frontend/main.js CHANGED
@@ -109,7 +109,7 @@ function dslc_init_lightbox() {
109
  function dslc_carousel() {
110
 
111
  // Loop through each carousel
112
- jQuery( '.dslc-carousel, .dslc-slider' ).each( function() {
113
 
114
  // Variables
115
  var carousel, container, defSettings, usrSettings, settings;
@@ -118,128 +118,131 @@ function dslc_carousel() {
118
  carousel = jQuery( this );
119
  container = carousel.closest( '.dslc-module-front' );
120
 
121
- if ( container.closest('.dslc-modules-section').hasClass('dslc-no-columns-spacing') ) {
122
 
123
- var margin = 0;
124
- } else {
125
 
126
- var margin = ( container.width() / 100 * 2.12766 ) / 2;
127
- }
128
 
129
- if ( carousel.hasClass('dslc-carousel') ) {
 
130
 
131
- carousel.find('.dslc-col').css({ 'margin-left' : margin, 'margin-right' : margin });
132
- carousel.css({ 'margin-left' : margin * -1, 'width' : carousel.width() + margin * 2 });
133
- }
134
 
135
- // Default settings
136
- defSettings = {
137
- items : 4,
138
- pagination : true,
139
- singleItem : false,
140
- itemsScaleUp : false,
141
- slideSpeed : 200,
142
- paginationSpeed : 800,
143
- rewindSpeed : 1000,
144
- autoPlay : false,
145
- stopOnHover : false,
146
- lazyLoad : false,
147
- lazyFollow : true,
148
- autoHeight : false,
149
- mouseDrag : true,
150
- touchDrag : true,
151
- addClassActive : true,
152
- transitionStyle : 'fade',
153
- scrollPerPage : true
154
- };
155
-
156
- // Custom Settings
157
- usrSettings = {
158
- items : carousel.data( 'columns' ),
159
- pagination : carousel.data( 'pagination' ),
160
- itemsScaleUp : carousel.data( 'scale-up' ),
161
- slideSpeed : carousel.data( 'slide-speed' ),
162
- paginationSpeed : carousel.data( 'pagination-speed' ),
163
- rewindSpeed : carousel.data( 'rewind-speed' ),
164
- autoPlay : carousel.data( 'autoplay' ),
165
- stopOnHover : carousel.data( 'stop-on-hover' ),
166
- lazyLoad : carousel.data( 'lazy-load' ),
167
- lazyFollow : carousel.data( 'lazy-follow' ),
168
- autoHeight : carousel.data( 'flexible-height' ),
169
- mouseDrag : carousel.data( 'mouse-drag' ),
170
- touchDrag : carousel.data( 'touch-drag' ),
171
- addClassActive : carousel.data( 'active-class' ),
172
- transitionStyle : carousel.data( 'animation' ),
173
- scrollPerPage : carousel.data( 'scroll-per-page' )
174
- };
175
-
176
- // Merge default and custom settings
177
- settings = jQuery.extend( {}, defSettings, usrSettings );
178
-
179
- // If it's a slider set singleItem to true
180
- if ( carousel.hasClass( 'dslc-slider' ) || settings.items == 1 ) {
181
-
182
- settings.singleItem = true;
183
- }
184
 
185
- // If autoplay is 0 set to false
186
- if ( settings.autoPlay == 0 ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
 
188
- settings.autoPlay = false;
189
- }
190
 
191
- // Initialize
192
- carousel.owlCarousel({
193
-
194
- items : settings.items,
195
- pagination : settings.pagination,
196
- singleItem : settings.singleItem,
197
- itemsScaleUp : settings.itemsScaleUp,
198
- slideSpeed : settings.slideSpeed,
199
- paginationSpeed : settings.paginationSpeed,
200
- rewindSpeed : settings.rewindSpeed,
201
- autoPlay : settings.autoPlay,
202
- stopOnHover : settings.stopOnHover,
203
- lazyLoad : settings.lazyLoad,
204
- lazyFollow : settings.lazyFollow,
205
- mouseDrag : settings.mouseDrag,
206
- touchDrag : settings.touchDrag,
207
- scrollPerPage : settings.scrollPerPage,
208
- transitionStyle : settings.transitionStyle,
209
- autoHeight : settings.autoHeight,
210
- itemsDesktop : false,
211
- itemsDesktopSmall : false,
212
- itemsTablet : false,
213
- itemsMobile : [766,1],
214
- afterInit: function() {
215
-
216
- carousel.prev( '.dslc-loader' ).remove();
217
- carousel.css({
218
- opacity : 1,
219
- maxHeight : 'none'
220
- });
221
- },
222
- afterAction : function(){
223
-
224
- var visible_items = this.owl.visibleItems;
225
- carousel.find('.dslc-carousel-item-visible').removeClass('dslc-carousel-item-visible');
226
- carousel.find('.owl-item').filter(function(index) {
227
- return visible_items.indexOf(index) > -1;
228
- }).addClass('dslc-carousel-item-visible');
229
  }
230
- });
231
 
232
- // Previous
233
- jQuery( '.dslc-carousel-nav-next', container ).click( function(e) {
234
- e.preventDefault();
235
- carousel.data( 'owlCarousel' ).next();
236
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
 
238
- // Next
239
- jQuery( '.dslc-carousel-nav-prev', container ).click( function(e) {
240
- e.preventDefault();
241
- carousel.data( 'owlCarousel' ).prev();
242
- });
 
 
 
 
 
 
 
243
  });
244
  }
245
 
@@ -309,13 +312,15 @@ function dslc_bg_video() {
309
  function dslc_parallax() {
310
 
311
  jQuery('.dslc-init-parallax').each(function(){
 
 
 
 
 
 
312
 
313
- var dslcSpeed = 4,
314
- bgPosition = jQuery(this).css( 'background-position' ).split( ' ' ),
315
- bgPositionHor = bgPosition[0],
316
- dslcPos = bgPositionHor + " " + ( -1 * ( window.pageYOffset - jQuery(this).offset().top ) / dslcSpeed ) + "px";
317
-
318
- jQuery(this).css({ backgroundPosition : dslcPos });
319
  });
320
 
321
  window.onscroll = function() {
@@ -342,60 +347,61 @@ function dslc_masonry( dslcWrapper, dslcAnimate ) {
342
 
343
  jQuery('.dslc-init-masonry', dslcWrapper).each(function(){
344
 
345
- var dslcContainer, dslcSelector, dslcItems, dslcItemWidth, dslcContainerWidth, dslcGutterWidth;
346
 
347
- if ( jQuery(this).find('.dslc-posts-inner').length ) {
348
 
349
- dslcContainer = jQuery(this).find('.dslc-posts-inner');
350
- } else {
351
 
352
- dslcContainer = jQuery(this);
353
- }
354
 
355
- dslcSelector = '.dslc-masonry-item';
356
- dslcItemWidth = jQuery(dslcSelector, dslcContainer).width();
357
- dslcContainerWidth = jQuery(dslcContainer).width();
358
 
359
- if ( jQuery(this).closest('.dslc-modules-section').hasClass('dslc-no-columns-spacing') ) {
360
 
361
- dslcGutterWidth = 0;
362
- } else {
363
 
364
- dslcGutterWidth = dslcContainerWidth / 100 * 2.05;
365
- }
366
 
367
- if ( dslcContainer.data('masonry') ) {
368
 
369
- jQuery(dslcContainer).imagesLoaded(function() {
370
 
371
- jQuery(dslcContainer).masonry('destroy').masonry({
372
- gutter : dslcGutterWidth,
373
- itemSelector : dslcSelector
374
- });
375
 
376
- jQuery( dslcContainer ).find( '.dslc-post:not(.dslc-masonry-item)' ).hide();
377
 
378
- if ( dslcAnimate ) {
379
 
380
- jQuery(dslcSelector, dslcContainer).css({ 'scale' : '0.2'}).animate({
381
- 'scale' : '1'
382
- }, 500);
383
- }
384
- });
385
 
386
- } else {
387
 
388
- jQuery(dslcSelector).css({ marginRight : 0 });
389
 
390
- jQuery(dslcContainer).imagesLoaded(function() {
391
 
392
- jQuery(dslcContainer).masonry({
393
- gutter : dslcGutterWidth,
394
- itemSelector : dslcSelector
 
395
  });
396
- });
397
- }
398
- });
399
  }
400
 
401
  /**
@@ -1060,7 +1066,7 @@ jQuery(document).ready(function($){
1060
  /**
1061
  * Navigation Module
1062
  */
1063
-
1064
  $( '.dslc-navigation li' ).mouseenter(function(){
1065
 
1066
  var subnav = $(this).children('ul');
@@ -1097,7 +1103,7 @@ jQuery(document).ready(function($){
1097
  $(this).css({ 'display' : 'none' }).children('ul').removeClass('dslc-navigation-invert-subnav');
1098
  });
1099
  });
1100
-
1101
  dslc_check_viewport();
1102
  dslc_check_progress_bar_viewport();
1103
 
@@ -1108,17 +1114,17 @@ jQuery(document).ready(function($){
1108
  });
1109
  });
1110
 
1111
- jQuery(window).load(function(){
1112
-
1113
  dslc_responsive_classes();
1114
- dslc_masonry();
1115
  dslc_carousel();
 
1116
  dslc_parallax();
1117
  dslc_init_lightbox();
 
 
1118
  });
1119
 
1120
  jQuery(window).resize(function(){
1121
-
1122
  dslc_responsive_classes();
1123
  dslc_carousel_responsive();
1124
  });
109
  function dslc_carousel() {
110
 
111
  // Loop through each carousel
112
+ jQuery( '.dslc-carousel, .dslc-slider' ).each( function(el) {
113
 
114
  // Variables
115
  var carousel, container, defSettings, usrSettings, settings;
118
  carousel = jQuery( this );
119
  container = carousel.closest( '.dslc-module-front' );
120
 
121
+ container.imagesLoaded( function(){
122
 
123
+ if ( container.closest('.dslc-modules-section').hasClass('dslc-no-columns-spacing') ) {
 
124
 
125
+ var margin = 0;
126
+ } else {
127
 
128
+ var margin = ( container.width() / 100 * 2.12766 ) / 2;
129
+ }
130
 
131
+ if ( carousel.hasClass('dslc-carousel') ) {
 
 
132
 
133
+ carousel.find('.dslc-col').css({ 'margin-left' : margin, 'margin-right' : margin });
134
+ carousel.css({ 'margin-left' : margin * -1, 'width' : carousel.width() + margin * 2 });
135
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
 
137
+ // Default settings
138
+ defSettings = {
139
+ items : 4,
140
+ pagination : true,
141
+ singleItem : false,
142
+ itemsScaleUp : false,
143
+ slideSpeed : 200,
144
+ paginationSpeed : 800,
145
+ rewindSpeed : 1000,
146
+ autoPlay : false,
147
+ stopOnHover : false,
148
+ lazyLoad : false,
149
+ lazyFollow : true,
150
+ autoHeight : false,
151
+ mouseDrag : true,
152
+ touchDrag : true,
153
+ addClassActive : true,
154
+ transitionStyle : 'fade',
155
+ scrollPerPage : true
156
+ };
157
+
158
+ // Custom Settings
159
+ usrSettings = {
160
+ items : carousel.data( 'columns' ),
161
+ pagination : carousel.data( 'pagination' ),
162
+ itemsScaleUp : carousel.data( 'scale-up' ),
163
+ slideSpeed : carousel.data( 'slide-speed' ),
164
+ paginationSpeed : carousel.data( 'pagination-speed' ),
165
+ rewindSpeed : carousel.data( 'rewind-speed' ),
166
+ autoPlay : carousel.data( 'autoplay' ),
167
+ stopOnHover : carousel.data( 'stop-on-hover' ),
168
+ lazyLoad : carousel.data( 'lazy-load' ),
169
+ lazyFollow : carousel.data( 'lazy-follow' ),
170
+ autoHeight : carousel.data( 'flexible-height' ),
171
+ mouseDrag : carousel.data( 'mouse-drag' ),
172
+ touchDrag : carousel.data( 'touch-drag' ),
173
+ addClassActive : carousel.data( 'active-class' ),
174
+ transitionStyle : carousel.data( 'animation' ),
175
+ scrollPerPage : carousel.data( 'scroll-per-page' )
176
+ };
177
+
178
+ // Merge default and custom settings
179
+ settings = jQuery.extend( {}, defSettings, usrSettings );
180
+
181
+ // If it's a slider set singleItem to true
182
+ if ( carousel.hasClass( 'dslc-slider' ) || settings.items == 1 ) {
183
+
184
+ settings.singleItem = true;
185
+ }
186
 
187
+ // If autoplay is 0 set to false
188
+ if ( settings.autoPlay == 0 ) {
189
 
190
+ settings.autoPlay = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  }
 
192
 
193
+ // Initialize
194
+ carousel.owlCarousel({
195
+
196
+ items : settings.items,
197
+ pagination : settings.pagination,
198
+ singleItem : settings.singleItem,
199
+ itemsScaleUp : settings.itemsScaleUp,
200
+ slideSpeed : settings.slideSpeed,
201
+ paginationSpeed : settings.paginationSpeed,
202
+ rewindSpeed : settings.rewindSpeed,
203
+ autoPlay : settings.autoPlay,
204
+ stopOnHover : settings.stopOnHover,
205
+ lazyLoad : settings.lazyLoad,
206
+ lazyFollow : settings.lazyFollow,
207
+ mouseDrag : settings.mouseDrag,
208
+ touchDrag : settings.touchDrag,
209
+ scrollPerPage : settings.scrollPerPage,
210
+ transitionStyle : settings.transitionStyle,
211
+ autoHeight : settings.autoHeight,
212
+ itemsDesktop : false,
213
+ itemsDesktopSmall : false,
214
+ itemsTablet : false,
215
+ itemsMobile : [766,1],
216
+ afterInit: function() {
217
+
218
+ carousel.prev( '.dslc-loader' ).remove();
219
+ carousel.css({
220
+ opacity : 1,
221
+ maxHeight : 'none'
222
+ });
223
+ },
224
+ afterAction : function(){
225
+
226
+ var visible_items = this.owl.visibleItems;
227
+ carousel.find('.dslc-carousel-item-visible').removeClass('dslc-carousel-item-visible');
228
+ carousel.find('.owl-item').filter(function(index) {
229
+ return visible_items.indexOf(index) > -1;
230
+ }).addClass('dslc-carousel-item-visible');
231
+ }
232
+ });
233
 
234
+ // Previous
235
+ jQuery( '.dslc-carousel-nav-next', container ).click( function(e) {
236
+ e.preventDefault();
237
+ carousel.data( 'owlCarousel' ).next();
238
+ });
239
+
240
+ // Next
241
+ jQuery( '.dslc-carousel-nav-prev', container ).click( function(e) {
242
+ e.preventDefault();
243
+ carousel.data( 'owlCarousel' ).prev();
244
+ });
245
+ }); // End .imagesLoaded
246
  });
247
  }
248
 
312
  function dslc_parallax() {
313
 
314
  jQuery('.dslc-init-parallax').each(function(){
315
+ var $paralaxEl = jQuery(this);
316
+ $paralaxEl.imagesLoaded( { background: true }, function(){
317
+ var dslcSpeed = 4,
318
+ bgPosition = $paralaxEl.css( 'background-position' ).split( ' ' ),
319
+ bgPositionHor = bgPosition[0],
320
+ dslcPos = bgPositionHor + " " + ( -1 * ( window.pageYOffset - $paralaxEl.offset().top ) / dslcSpeed ) + "px";
321
 
322
+ $paralaxEl.css({ backgroundPosition : dslcPos });
323
+ });
 
 
 
 
324
  });
325
 
326
  window.onscroll = function() {
347
 
348
  jQuery('.dslc-init-masonry', dslcWrapper).each(function(){
349
 
350
+ var dslcContainer, dslcSelector, dslcItems, dslcItemWidth, dslcContainerWidth, dslcGutterWidth;
351
 
352
+ if ( jQuery(this).find('.dslc-posts-inner').length ) {
353
 
354
+ dslcContainer = jQuery(this).find('.dslc-posts-inner');
355
+ } else {
356
 
357
+ dslcContainer = jQuery(this);
358
+ }
359
 
360
+ dslcSelector = '.dslc-masonry-item';
361
+ dslcItemWidth = jQuery(dslcSelector, dslcContainer).width();
362
+ dslcContainerWidth = jQuery(dslcContainer).width();
363
 
364
+ if ( jQuery(this).closest('.dslc-modules-section').hasClass('dslc-no-columns-spacing') ) {
365
 
366
+ dslcGutterWidth = 0;
367
+ } else {
368
 
369
+ dslcGutterWidth = dslcContainerWidth / 100 * 2.05;
370
+ }
371
 
372
+ if ( dslcContainer.data('masonry') ) {
373
 
374
+ jQuery(dslcContainer).imagesLoaded(function() {
375
 
376
+ jQuery(dslcContainer).masonry('destroy').masonry({
377
+ gutter : dslcGutterWidth,
378
+ itemSelector : dslcSelector
379
+ });
380
 
381
+ jQuery( dslcContainer ).find( '.dslc-post:not(.dslc-masonry-item)' ).hide();
382
 
383
+ if ( dslcAnimate ) {
384
 
385
+ jQuery(dslcSelector, dslcContainer).css({ 'scale' : '0.2'}).animate({
386
+ 'scale' : '1'
387
+ }, 500);
388
+ }
389
+ });
390
 
391
+ } else {
392
 
393
+ jQuery(dslcSelector).css({ marginRight : 0 });
394
 
395
+ jQuery(dslcContainer).imagesLoaded(function() {
396
 
397
+ jQuery(dslcContainer).masonry({
398
+ gutter : dslcGutterWidth,
399
+ itemSelector : dslcSelector
400
+ });
401
  });
402
+ }
403
+
404
+ }); // End each().
405
  }
406
 
407
  /**
1066
  /**
1067
  * Navigation Module
1068
  */
1069
+ /* Disabled in favour of CSS hover.
1070
  $( '.dslc-navigation li' ).mouseenter(function(){
1071
 
1072
  var subnav = $(this).children('ul');
1103
  $(this).css({ 'display' : 'none' }).children('ul').removeClass('dslc-navigation-invert-subnav');
1104
  });
1105
  });
1106
+ */
1107
  dslc_check_viewport();
1108
  dslc_check_progress_bar_viewport();
1109
 
1114
  });
1115
  });
1116
 
1117
+ jQuery(document).ready(function($){
 
1118
  dslc_responsive_classes();
 
1119
  dslc_carousel();
1120
+ dslc_masonry();
1121
  dslc_parallax();
1122
  dslc_init_lightbox();
1123
+ // No need to wait for jQuery(window).load.
1124
+ // These functions will check if images loaded by itself.
1125
  });
1126
 
1127
  jQuery(window).resize(function(){
 
1128
  dslc_responsive_classes();
1129
  dslc_carousel_responsive();
1130
  });
modules/accordion/module.php CHANGED
@@ -41,6 +41,13 @@ class DSLC_Accordion extends DSLC_Module {
41
  */
42
  function options() {
43
 
 
 
 
 
 
 
 
44
  $dslc_options = array(
45
 
46
  array(
@@ -1189,6 +1196,9 @@ class DSLC_Accordion extends DSLC_Module {
1189
  $dslc_options = array_merge( $dslc_options, $this->shared_options( 'animation_options', array( 'hover_opts' => false) ) );
1190
  $dslc_options = array_merge( $dslc_options, $this->presets_options() );
1191
 
 
 
 
1192
  return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
1193
 
1194
  }
@@ -1207,8 +1217,6 @@ class DSLC_Accordion extends DSLC_Module {
1207
  else
1208
  $dslc_is_admin = false;
1209
 
1210
- $this->module_start( $options );
1211
-
1212
  /* Module output stars here */
1213
 
1214
  $accordion_nav = explode( '(dslc_sep)', trim( $options['accordion_nav'] ) );
@@ -1245,12 +1253,11 @@ 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 = do_shortcode( $accordion_content_output );
1249
  echo apply_filters( 'dslc_before_render', $accordion_content_output );
1250
  ?>
1251
  </div>
1252
  <?php if ( $dslc_is_admin ) : ?>
1253
- <textarea class="dslca-accordion-plain-content"><?php echo trim( $accordion_content_output ); ?></textarea>
1254
  <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>
1255
  <?php endif; ?>
1256
  </div><!-- .dslc-accordion-content -->
@@ -1303,7 +1310,5 @@ class DSLC_Accordion extends DSLC_Module {
1303
 
1304
  <?php /* Module output ends here */
1305
 
1306
- $this->module_end( $options );
1307
-
1308
  }
1309
  }
41
  */
42
  function options() {
43
 
44
+ // Check if we have this module options already calculated
45
+ // and cached in WP Object Cache.
46
+ $cached_dslc_options = wp_cache_get( 'dslc_options_' . $this->module_id, 'dslc_modules' );
47
+ if ( $cached_dslc_options ) {
48
+ return apply_filters( 'dslc_module_options', $cached_dslc_options, $this->module_id );
49
+ }
50
+
51
  $dslc_options = array(
52
 
53
  array(
1196
  $dslc_options = array_merge( $dslc_options, $this->shared_options( 'animation_options', array( 'hover_opts' => false) ) );
1197
  $dslc_options = array_merge( $dslc_options, $this->presets_options() );
1198
 
1199
+ // Cache calculated array in WP Object Cache.
1200
+ wp_cache_add( 'dslc_options_' . $this->module_id, $dslc_options ,'dslc_modules' );
1201
+
1202
  return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
1203
 
1204
  }
1217
  else
1218
  $dslc_is_admin = false;
1219
 
 
 
1220
  /* Module output stars here */
1221
 
1222
  $accordion_nav = explode( '(dslc_sep)', trim( $options['accordion_nav'] ) );
1253
  <div class="dslca-editable-content"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>
1254
  <?php
1255
  $accordion_content_output = stripslashes( $accordion_content );
 
1256
  echo apply_filters( 'dslc_before_render', $accordion_content_output );
1257
  ?>
1258
  </div>
1259
  <?php if ( $dslc_is_admin ) : ?>
1260
+ <textarea class="dslca-accordion-plain-content"><?php echo dslc_encode_protected_shortcodes( trim( $accordion_content_output ) ); ?></textarea>
1261
  <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>
1262
  <?php endif; ?>
1263
  </div><!-- .dslc-accordion-content -->
1310
 
1311
  <?php /* Module output ends here */
1312
 
 
 
1313
  }
1314
  }
modules/blog/module.php CHANGED
@@ -39,6 +39,13 @@ class DSLC_Blog extends DSLC_Module {
39
  */
40
  function options() {
41
 
 
 
 
 
 
 
 
42
  // Get categories.
43
  $cats = get_categories();
44
  $cats_choices = array();
@@ -2862,6 +2869,9 @@ class DSLC_Blog extends DSLC_Module {
2862
  $dslc_options = array_merge( $dslc_options, $this->shared_options( 'animation_options' ) );
2863
  $dslc_options = array_merge( $dslc_options, $this->presets_options() );
2864
 
 
 
 
2865
  return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
2866
 
2867
  }
@@ -2891,7 +2901,6 @@ class DSLC_Blog extends DSLC_Module {
2891
  $options['button_text'] = stripslashes( $options['button_text'] );
2892
  }
2893
 
2894
- $this->module_start( $options );
2895
 
2896
  /* CUSTOM START */
2897
 
@@ -3314,27 +3323,24 @@ class DSLC_Blog extends DSLC_Module {
3314
  <div class="dslc-blog-post-excerpt">
3315
  <?php if ( $options['excerpt_or_content'] == 'content' ) : ?>
3316
  <?php
3317
- // Disable LC content filering in this case
3318
- // to prevent infitie loop on custon archive listing
3319
- global $dslc_should_filter;
3320
- $dslc_should_filter = false;
3321
-
3322
- the_content();
3323
-
3324
- $dslc_should_filter = true;
3325
  ?>
3326
  <?php else : ?>
3327
  <?php
3328
  if ( $options['excerpt_length'] > 0 ) {
3329
  if ( has_excerpt() )
3330
- echo do_shortcode( wp_trim_words( get_the_excerpt(), $options['excerpt_length'] ) );
3331
  else
3332
- echo do_shortcode( wp_trim_words( get_the_content(), $options['excerpt_length'] ) );
3333
  } else {
3334
  if ( has_excerpt() )
3335
- echo do_shortcode( get_the_excerpt() );
3336
  else
3337
- echo do_shortcode( get_the_content() );
3338
  }
3339
  ?>
3340
  <?php endif; ?>
@@ -3415,27 +3421,24 @@ class DSLC_Blog extends DSLC_Module {
3415
  <div class="dslc-blog-post-excerpt">
3416
  <?php if ( $options['excerpt_or_content'] == 'content' ) : ?>
3417
  <?php
3418
- // Disable LC content filering in this case
3419
- // to prevent infitie loop on custon archive listing
3420
- global $dslc_should_filter;
3421
- $dslc_should_filter = false;
3422
-
3423
- the_content();
3424
-
3425
- $dslc_should_filter = true;
3426
  ?>
3427
  <?php else : ?>
3428
  <?php
3429
  if ( $options['excerpt_length'] > 0 ) {
3430
  if ( has_excerpt() )
3431
- echo do_shortcode( wp_trim_words( get_the_excerpt(), $options['excerpt_length'] ) );
3432
  else
3433
- echo do_shortcode( wp_trim_words( get_the_content(), $options['excerpt_length'] ) );
3434
  } else {
3435
  if ( has_excerpt() )
3436
- echo do_shortcode( get_the_excerpt() );
3437
  else
3438
- echo do_shortcode( get_the_content() );
3439
  }
3440
  ?>
3441
  <?php endif; ?>
@@ -3537,8 +3540,6 @@ class DSLC_Blog extends DSLC_Module {
3537
 
3538
  wp_reset_postdata();
3539
 
3540
- $this->module_end( $options );
3541
-
3542
  }
3543
 
3544
  }
39
  */
40
  function options() {
41
 
42
+ // Check if we have this module options already calculated
43
+ // and cached in WP Object Cache.
44
+ $cached_dslc_options = wp_cache_get( 'dslc_options_' . $this->module_id, 'dslc_modules' );
45
+ if ( $cached_dslc_options ) {
46
+ return apply_filters( 'dslc_module_options', $cached_dslc_options, $this->module_id );
47
+ }
48
+
49
  // Get categories.
50
  $cats = get_categories();
51
  $cats_choices = array();
2869
  $dslc_options = array_merge( $dslc_options, $this->shared_options( 'animation_options' ) );
2870
  $dslc_options = array_merge( $dslc_options, $this->presets_options() );
2871
 
2872
+ // Cache calculated array in WP Object Cache.
2873
+ wp_cache_add( 'dslc_options_' . $this->module_id, $dslc_options ,'dslc_modules' );
2874
+
2875
  return apply_filters( 'dslc_module_options', $dslc_options, $this->module_id );
2876
 
2877
  }
2901
  $options['button_text'] = stripslashes( $options['button_text'] );
2902
  }
2903
 
 
2904
 
2905
  /* CUSTOM START */
2906
 
3323
  <div class="dslc-blog-post-excerpt">
3324
  <?php if ( $options['excerpt_or_content'] == 'content' ) : ?>
3325
  <?php
3326
+ if ( $options['excerpt_length'] > 0 ) {
3327
+ echo wp_trim_words( get_the_content(), $options['excerpt_length'] );
3328
+ } else {
3329
+ echo get_the_content();
3330
+ }
 
 
 
3331
  ?>
3332
  <?php else : ?>
3333
  <?php
3334
  if ( $options['excerpt_length'] > 0 ) {
3335
  if ( has_excerpt() )
3336
+ echo wp_trim_words( get_the_excerpt(), $options['excerpt_length'] );
3337
  else
3338
+ echo wp_trim_words( get_the_content(), $options['excerpt_length'] );
3339
  } else {
3340
  if ( has_excerpt() )
3341
+ echo get_the_excerpt();
3342
  else
3343
+ echo get_the_content();
3344
  }
3345
  ?>
3346
  <?php endif; ?>
3421
  <div class="dslc-blog-post-excerpt">
3422
  <?php if ( $options['excerpt_or_content'] == 'content' ) : ?>
3423
  <?php
3424
+ if ( $options['excerpt_length'] > 0 ) {
3425
+ echo wp_trim_words( get_the_content(), $options['excerpt_length'] );
3426
+ } else {
3427
+ echo get_the_content();
3428
+ }
 
 
 
3429
  ?>
3430
  <?php else : ?>
3431
  <?php
3432
  if ( $options['excerpt_length'] > 0 ) {
3433
  if ( has_excerpt() )
3434
+ echo wp_trim_words( get_the_excerpt(), $options['excerpt_length'] );
3435
  else
3436
+ echo wp_trim_words( get_the_content(), $options['excerpt_length'] );
3437
  } else {
3438
  if ( has_excerpt() )
3439
+ echo get_the_excerpt();
3440
  else
3441
+ echo get_the_content();
3442
  }
3443
  ?>
3444
  <?php endif; ?>
3540
 
3541
  wp_reset_postdata();
3542
 
 
 
3543
  }
3544
 
3545
  }
modules/button/module.php CHANGED
@@ -1093,7 +1093,6 @@ class DSLC_Button extends DSLC_Module {
1093
  $dslc_is_admin = false;
1094
  }
1095
 
1096
- $this->module_start( $options );
1097
 
1098
  /* Module output starts here */
1099
 
@@ -1110,7 +1109,7 @@ class DSLC_Button extends DSLC_Module {
1110
 
1111
  <div class="dslc-button">
1112
  <?php if ( $options['button_target'] == 'lightbox' ) : ?>
1113
- <a href="<?php echo do_shortcode( $options['button_url'] ); ?>" <?php echo $anchor_append; if ( $options['link_nofollow'] ) echo 'rel="nofollow"'; ?> class="dslc-lightbox-image <?php echo trim( esc_attr( $classes ) ); ?>">
1114
  <?php if ( $options['button_state'] == 'enabled' && $options['icon_pos'] == 'left' ) : ?>
1115
  <span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
1116
  <?php endif; ?>
@@ -1124,7 +1123,7 @@ class DSLC_Button extends DSLC_Module {
1124
  <?php endif; ?>
1125
  </a>
1126
  <?php else : ?>
1127
- <a href="<?php echo do_shortcode( $options['button_url'] ); ?>" target="<?php echo $options['button_target']; ?>" <?php echo $anchor_append; if ( $options['link_nofollow'] ) echo 'rel="nofollow"'; ?> class="<?php echo trim( esc_attr( $classes ) ); ?>">
1128
  <?php if ( $options['button_state'] == 'enabled' && $options['icon_pos'] == 'left' ) : ?>
1129
  <span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
1130
  <?php endif; ?>
@@ -1144,16 +1143,14 @@ class DSLC_Button extends DSLC_Module {
1144
  <?php if ( $dslc_is_admin ) :
1145
  /* We output this button code for clean html export only */ ?>
1146
  <div style="display: none;"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>
1147
- <a href="<?php echo do_shortcode( $options['button_url'] ); ?>" target="<?php echo $options['button_target']; ?>" <?php if ( $options['link_nofollow'] ) echo 'rel="nofollow"'; ?>>
1148
  <?php echo stripslashes( $options['button_text'] ); ?>
1149
  </a>
1150
  </div><!-- .dslc-button -->
1151
  <?php endif; ?>
1152
  <?php
1153
 
1154
- /* Module output ends here */
1155
 
1156
- $this->module_end( $options );
1157
 
1158
  }
1159
 
1093
  $dslc_is_admin = false;
1094
  }
1095
 
 
1096
 
1097
  /* Module output starts here */
1098
 
1109
 
1110
  <div class="dslc-button">
1111
  <?php if ( $options['button_target'] == 'lightbox' ) : ?>
1112
+ <a href="<?php echo $options['button_url']; ?>" <?php echo $anchor_append; if ( $options['link_nofollow'] ) echo 'rel="nofollow"'; ?> class="dslc-lightbox-image <?php echo trim( esc_attr( $classes ) ); ?>">
1113
  <?php if ( $options['button_state'] == 'enabled' && $options['icon_pos'] == 'left' ) : ?>
1114
  <span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
1115
  <?php endif; ?>
1123
  <?php endif; ?>
1124
  </a>
1125
  <?php else : ?>
1126
+ <a href="<?php echo $options['button_url']; ?>" target="<?php echo $options['button_target']; ?>" <?php echo $anchor_append; if ( $options['link_nofollow'] ) echo 'rel="nofollow"'; ?> class="<?php echo trim( esc_attr( $classes ) ); ?>">
1127
  <?php if ( $options['button_state'] == 'enabled' && $options['icon_pos'] == 'left' ) : ?>
1128
  <span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
1129
  <?php endif; ?>
1143
  <?php if ( $dslc_is_admin ) :
1144
  /* We output this button code for clean html export only */ ?>
1145
  <div style="display: none;"<?php if ( $dslc_is_admin ) echo ' data-exportable-content'; ?>>
1146
+ <a href="<?php echo $options['button_url']; ?>" target="<?php echo $options['button_target']; ?>" <?php if ( $options['link_nofollow'] ) echo 'rel="nofollow"'; ?>>
1147
  <?php echo stripslashes( $options['button_text'] ); ?>
1148
  </a>
1149
  </div><!-- .dslc-button -->
1150
  <?php endif; ?>
1151
  <?php
1152
 
 
1153
 
 
1154
 
1155
  }
1156
 
modules/downloads/module.php CHANGED
@@ -42,6 +42,13 @@ class DSLC_Downloads extends DSLC_Module {
42
  */
43
  function options() {
44
 
 
 
42
  */
43
  function options() {
44
 
45
+ // Check if we have this module options already calculated
46
+ //