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

Version Description

  • September 30th 2015 =

Check out the blog post about 1.0.2 release

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.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

css/builder.main.css CHANGED
@@ -482,6 +482,70 @@ body {
482
  font-family: "Open Sans";
483
  }
484
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
485
  /**
486
  * Text Align Option Type
487
  */
@@ -1641,7 +1705,7 @@ body.rtl .dslca-modules-area-placeholder {
1641
  border-color: #333;
1642
  }
1643
 
1644
- #dslc-content .dslca-module-manage a {
1645
  border-radius: 3px;
1646
  color: #fff;
1647
  display: inline-block;
@@ -1653,22 +1717,23 @@ body.rtl .dslca-modules-area-placeholder {
1653
  margin-right: 1px;
1654
  width: 18px;
1655
  text-align: center;
 
1656
  }
1657
 
1658
- #dslc-content .dslc-modules-area.dslc-1-col .dslca-module-manage a,
1659
- #dslc-content .dslc-modules-area.dslc-2-col .dslca-module-manage a {
1660
  margin-right: -2px;
1661
  }
1662
 
1663
- #dslc-content .dslca-module-manage a:first-child {
1664
  margin-top: 0;
1665
  }
1666
 
1667
- #dslc-content .dslca-module-manage a:last-child {
1668
  margin-right: 0 !important;
1669
  }
1670
 
1671
- #dslc-content .dslca-module-manage a:hover {
1672
  color: #fff;
1673
  }
1674
 
482
  font-family: "Open Sans";
483
  }
484
 
485
+ /**
486
+ * Box shadow option type
487
+ */
488
+
489
+ .dslca-module-edit-option-box_shadow {
490
+ width: auto;
491
+ }
492
+
493
+ .dslca-module-edit-option-box-shadow-wrapper {
494
+ background: #3b6fbe;
495
+ border-radius: 4px;
496
+ border: 1px solid #3565ad;
497
+ padding: 5px 10px;
498
+ font-size: 0;
499
+ }
500
+
501
+ .dslca-module-edit-option-box-shadow-single {
502
+ display: inline-block;
503
+ width: auto;
504
+ line-height: 1;
505
+ vertical-align: middle;
506
+ white-space: nowrap;
507
+ margin-left: 20px;
508
+ }
509
+
510
+ .dslca-module-edit-option-box-shadow-single:first-child {
511
+ margin-left: 0;
512
+ }
513
+
514
+ .dslca-module-edit-option-box-shadow-single span {
515
+ text-transform: uppercase;
516
+ font-size: 10px;
517
+ font-weight: bold;
518
+ margin-right: 10px;
519
+ vertical-align: middle;
520
+ }
521
+
522
+ .dslca-module-edit-option-box-shadow-single input[type="number"] {
523
+ width: 60px !important;
524
+ padding: 3px;
525
+ vertical-align: middle;
526
+ }
527
+
528
+ .dslca-module-edit-option-box-shadow-single input[type="checkbox"] {
529
+ display: none;
530
+ }
531
+
532
+ .dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook {
533
+ margin-right: 0;
534
+ }
535
+
536
+ .dslca-module-edit-option-box-shadow-single .dslca-module-edit-option-checkbox-hook .dslca-icon {
537
+ margin-left: 10px;
538
+ margin-right: 0;
539
+ font-size: 13px;
540
+ font-weight: normal;
541
+ }
542
+
543
+ .dslca-module-edit-option-box-shadow-single .sp-replacer {
544
+ display: inline-block !important;
545
+ width: 100px;
546
+ vertical-align: middle;
547
+ }
548
+
549
  /**
550
  * Text Align Option Type
551
  */
1705
  border-color: #333;
1706
  }
1707
 
1708
+ #dslc-content .dslca-module-manage .dslca-module-manage-hook {
1709
  border-radius: 3px;
1710
  color: #fff;
1711
  display: inline-block;
1717
  margin-right: 1px;
1718
  width: 18px;
1719
  text-align: center;
1720
+ cursor: pointer;
1721
  }
1722
 
1723
+ #dslc-content .dslc-modules-area.dslc-1-col .dslca-module-manage .dslca-module-manage-hook,
1724
+ #dslc-content .dslc-modules-area.dslc-2-col .dslca-module-manage .dslca-module-manage-hook {
1725
  margin-right: -2px;
1726
  }
1727
 
1728
+ #dslc-content .dslca-module-manage .dslca-module-manage-hook:first-child {
1729
  margin-top: 0;
1730
  }
1731
 
1732
+ #dslc-content .dslca-module-manage .dslca-module-manage-hook:last-child {
1733
  margin-right: 0 !important;
1734
  }
1735
 
1736
+ #dslc-content .dslca-module-manage .dslca-module-manage-hook:hover {
1737
  color: #fff;
1738
  }
1739
 
css/builder.plugins.css CHANGED
@@ -1 +1 @@
1
- .jspContainer{overflow:hidden;position:relative}.jspPane{position:absolute}.jspVerticalBar{position:absolute;top:0;right:0;width:16px;height:100%;background:red}.jspHorizontalBar{position:absolute;bottom:0;left:0;width:100%;height:16px;background:red}.jspHorizontalBar *,.jspVerticalBar *{margin:0;padding:0}.jspCap{display:none}.jspHorizontalBar .jspCap{float:left}.jspTrack{background:#dde;position:relative}.jspDrag{background:#bbd;position:relative;top:0;left:0;cursor:pointer}.jspHorizontalBar .jspDrag,.jspHorizontalBar .jspTrack{float:left;height:100%}.jspArrow{background:#50506d;text-indent:-20000px;display:block;cursor:pointer}.jspArrow.jspDisabled{cursor:default;background:#80808d}.jspVerticalBar .jspArrow{height:16px}.jspHorizontalBar .jspArrow{width:16px;float:left;height:100%}.jspVerticalBar .jspArrow:focus{outline:0}.jspCorner{background:#eeeef4;float:left;height:100%}* html .jspCorner{margin:0 -3px 0 0}.sp-container{top:0;left:0;display:inline-block;overflow:hidden}.sp-container.sp-flat{position:relative}.sp-container,.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20%}.sp-hue{position:absolute;top:0;right:0;bottom:0;left:84%;height:100%}.sp-clear-enabled .sp-hue{top:0;height:100%}.sp-fill{padding-top:80%}.sp-sat,.sp-val{position:absolute;top:0;left:0;right:0;bottom:0}.sp-alpha-enabled .sp-top{margin-bottom:18px}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-4px;bottom:-4px;width:6px;left:50%;cursor:pointer;border:1px solid #000;background:#fff;opacity:.8}.sp-alpha{display:none;bottom:-14px;right:0;left:0;height:8px}.sp-alpha-inner{border:1px solid #333}.sp-clear{display:none}.sp-clear.sp-clear-display{background-position:center}.sp-clear-enabled .sp-clear{display:none;position:absolute;top:0;right:0;bottom:0;left:84%;height:28px}.sp-alpha,.sp-alpha-handle,.sp-clear,.sp-container,.sp-container button,.sp-container.sp-dragging .sp-input,.sp-dragger,.sp-preview,.sp-replacer,.sp-slider{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.sp-container.sp-buttons-disabled .sp-button-container,.sp-container.sp-input-disabled .sp-input-container,.sp-initial-disabled .sp-initial,.sp-palette-disabled .sp-palette-container,.sp-palette-only .sp-picker-container{display:none}.sp-sat{background-image:-webkit-gradient(linear,0 0,100% 0,from(#FFF),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left,#FFF,rgba(204,154,129,0));background-image:-moz-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-o-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-ms-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:linear-gradient(to right,#fff,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81')}.sp-val{background-image:-webkit-gradient(linear,0 100%,0 0,from(#000),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-moz-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-o-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-ms-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:linear-gradient(to top,#000,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000')}.sp-hue{background:-moz-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-ms-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-o-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(0.17,#ff0),color-stop(0.33,#0f0),color-stop(0.5,#0ff),color-stop(0.67,#00f),color-stop(0.83,#f0f),to(red));background:-webkit-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00')}.sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00')}.sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff')}.sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff')}.sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff')}.sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000')}.sp-hidden{display:none!important}.sp-cf:after,.sp-cf:before{content:"";display:table}.sp-cf:after{clear:both}@media (max-device-width:480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-dragger{border-radius:5px;height:5px;width:5px;border:1px solid #fff;background:#000;cursor:pointer;position:absolute;top:0;left:0}.sp-slider{position:absolute;top:0;cursor:pointer;height:3px;left:-1px;right:-1px;border:1px solid #000;background:#fff;opacity:.8}.sp-container{border-radius:0;padding:0}.sp-clear,.sp-color,.sp-container,.sp-container button,.sp-container input,.sp-hue{font:400 12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.sp-top{margin-bottom:3px}.sp-clear,.sp-color,.sp-hue{border:1px solid #666}.sp-input-container{float:right;width:100px}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{font-size:12px!important;border:1px inset;padding:4px 5px;margin:0;width:100%;background:0 0;border-radius:3px;color:#222}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container,.sp-picker-container{float:left;position:relative;padding:10px 10px 300px;margin-bottom:-290px}.sp-picker-container{width:172px}.sp-palette-container{border-right:solid 1px #ccc}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer}.sp-palette .sp-thumb-el.sp-thumb-active,.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-initial{float:left;border:1px solid #333}.sp-initial span{width:30px;height:25px;border:0;display:block;float:left;margin:0}.sp-initial .sp-clear-display{background-position:center}.sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:4px;display:inline-block;border:1px solid #91765d;background:#eee;color:#333;vertical-align:middle}.sp-replacer.sp-active,.sp-replacer:hover{border-color:#F0C49B;color:#111}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{padding:2px 0;height:16px;line-height:16px;float:left;font-size:10px}.sp-preview{width:25px;height:20px;border:1px solid #222;margin-right:5px;float:left;z-index:0}.sp-palette{max-width:220px}.sp-palette .sp-thumb-el{width:16px;height:16px;margin:2px 1px;border:1px solid #d0d0d0}.sp-container{padding-bottom:0}.sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top,#eee,#ccc);background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-ms-linear-gradient(top,#eee,#ccc);background-image:-o-linear-gradient(top,#eee,#ccc);background-image:linear-gradient(to bottom,#eee,#ccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top,#ddd,#bbb);background-image:-moz-linear-gradient(top,#ddd,#bbb);background-image:-ms-linear-gradient(top,#ddd,#bbb);background-image:-o-linear-gradient(top,#ddd,#bbb);background-image:linear-gradient(to bottom,#ddd,#bbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.sp-cancel{font-size:11px;color:#d93f3f!important;margin:0 5px 0 0;padding:2px;vertical-align:middle;text-decoration:none}.sp-cancel:hover{color:#d93f3f!important;text-decoration:underline}.sp-palette span.sp-thumb-active,.sp-palette span:hover{border-color:#000}.sp-alpha,.sp-preview,.sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.sp-alpha-inner,.sp-preview-inner,.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-palette .sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==)}.sp-container{position:fixed;z-index:99999999!important;background:#313131;border:0}.sp-picker-container{border:0}.sp-clear,.sp-color,.sp-hue{border-color:#000}.sp-button-container{float:none;text-align:right;clear:both;margin-top:10px}.dslca-container .sp-replacer{display:block;padding:5px 6px;background:rgba(255,255,255,.2);border:1px solid #3565ad;border-radius:3px}.dslca-container .sp-dd{display:none}.dslca-container .sp-preview{width:100%;height:15px;border:1px solid #3565ad;border-radius:4px;overflow:hidden}.dslca-sp-revert,.sp-cancel.dslc-icon,.sp-choose.dslc-icon{padding:0;margin:0;background:#e55f5f;display:inline-block;width:24px;height:24px;line-height:24px;font-size:12px;color:#fff!important;border-radius:3px;text-align:center;text-decoration:none!important;cursor:pointer;vertical-align:baseline}.sp-choose.dslc-icon{background:#78ca4f;margin-left:5px}.dslca-sp-revert{background:#06b2ac;float:left}.sp-input-container{margin-top:5px;margin-bottom:10px}body input[type=text].sp-input{background:#444;padding:5px;border:0;border-radius:0;color:#fff}
1
+ .jspContainer{overflow:hidden;position:relative}.jspPane{position:absolute}.jspVerticalBar{position:absolute;top:0;right:0;width:16px;height:100%;background:red}.jspHorizontalBar{position:absolute;bottom:0;left:0;width:100%;height:16px;background:red}.jspHorizontalBar *,.jspVerticalBar *{margin:0;padding:0}.jspCap{display:none}.jspHorizontalBar .jspCap{float:left}.jspTrack{background:#dde;position:relative}.jspDrag{background:#bbd;position:relative;top:0;left:0;cursor:pointer}.jspHorizontalBar .jspDrag,.jspHorizontalBar .jspTrack{float:left;height:100%}.jspArrow{background:#50506d;text-indent:-20000px;display:block;cursor:pointer}.jspArrow.jspDisabled{cursor:default;background:#80808d}.jspVerticalBar .jspArrow{height:16px}.jspHorizontalBar .jspArrow{width:16px;float:left;height:100%}.jspVerticalBar .jspArrow:focus{outline:0}.jspCorner{background:#eeeef4;float:left;height:100%}* html .jspCorner{margin:0 -3px 0 0}.sp-container{top:0;left:0;display:inline-block;overflow:hidden}.sp-container.sp-flat{position:relative}.sp-container,.sp-container *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.sp-top{position:relative;width:100%;display:inline-block}.sp-top-inner{position:absolute;top:0;left:0;bottom:0;right:0}.sp-color{position:absolute;top:0;left:0;bottom:0;right:20%}.sp-hue{position:absolute;top:0;right:0;bottom:0;left:84%;height:100%}.sp-clear-enabled .sp-hue{top:0;height:100%}.sp-fill{padding-top:80%}.sp-sat,.sp-val{position:absolute;top:0;left:0;right:0;bottom:0}.sp-alpha-enabled .sp-top{margin-bottom:18px}.sp-alpha-enabled .sp-alpha{display:block}.sp-alpha-handle{position:absolute;top:-4px;bottom:-4px;width:6px;left:50%;cursor:pointer;border:1px solid #000;background:#fff;opacity:.8}.sp-alpha{display:none;bottom:-14px;right:0;left:0;height:8px}.sp-alpha-inner{border:1px solid #333}.sp-clear{display:none}.sp-clear.sp-clear-display{background-position:center}.sp-clear-enabled .sp-clear{display:none;position:absolute;top:0;right:0;bottom:0;left:84%;height:28px}.sp-alpha,.sp-alpha-handle,.sp-clear,.sp-container,.sp-container button,.sp-container.sp-dragging .sp-input,.sp-dragger,.sp-preview,.sp-replacer,.sp-slider{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.sp-container.sp-buttons-disabled .sp-button-container,.sp-container.sp-input-disabled .sp-input-container,.sp-initial-disabled .sp-initial,.sp-palette-disabled .sp-palette-container,.sp-palette-only .sp-picker-container{display:none}.sp-sat{background-image:-webkit-gradient(linear,0 0,100% 0,from(#FFF),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left,#FFF,rgba(204,154,129,0));background-image:-moz-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-o-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-ms-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:linear-gradient(to right,#fff,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81')}.sp-val{background-image:-webkit-gradient(linear,0 100%,0 0,from(#000),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-moz-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-o-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-ms-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:linear-gradient(to top,#000,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000')}.sp-hue{background:-moz-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-ms-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-o-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(0.17,#ff0),color-stop(0.33,#0f0),color-stop(0.5,#0ff),color-stop(0.67,#00f),color-stop(0.83,#f0f),to(red));background:-webkit-linear-gradient(top,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00')}.sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00')}.sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff')}.sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff')}.sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff')}.sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000')}.sp-hidden{display:none!important}.sp-cf:after,.sp-cf:before{content:"";display:table}.sp-cf:after{clear:both}@media (max-device-width:480px){.sp-color{right:40%}.sp-hue{left:63%}.sp-fill{padding-top:60%}}.sp-dragger{border-radius:5px;height:5px;width:5px;border:1px solid #fff;background:#000;cursor:pointer;position:absolute;top:0;left:0}.sp-slider{position:absolute;top:0;cursor:pointer;height:3px;left:-1px;right:-1px;border:1px solid #000;background:#fff;opacity:.8}.sp-container{border-radius:0;padding:0}.sp-clear,.sp-color,.sp-container,.sp-container button,.sp-container input,.sp-hue{font:400 12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.sp-top{margin-bottom:3px}.sp-clear,.sp-color,.sp-hue{border:1px solid #666}.sp-input-container{float:right;width:100px}.sp-initial-disabled .sp-input-container{width:100%}.sp-input{font-size:12px!important;border:1px inset;padding:4px 5px;margin:0;width:100%;background:0 0;border-radius:3px;color:#222}.sp-input:focus{border:1px solid orange}.sp-input.sp-validation-error{border:1px solid red;background:#fdd}.sp-palette-container,.sp-picker-container{float:left;position:relative;padding:10px 10px 300px;margin-bottom:-290px}.sp-picker-container{width:172px}.sp-palette-container{border-right:solid 1px #ccc}.sp-palette .sp-thumb-el{display:block;position:relative;float:left;cursor:pointer}.sp-palette .sp-thumb-el.sp-thumb-active,.sp-palette .sp-thumb-el:hover{border-color:orange}.sp-initial{float:left;border:1px solid #333}.sp-initial span{width:30px;height:25px;border:0;display:block;float:left;margin:0}.sp-initial .sp-clear-display{background-position:center}.sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:4px;display:inline-block;border:1px solid #91765d;background:#eee;color:#333;vertical-align:middle}.sp-replacer.sp-active,.sp-replacer:hover{border-color:#F0C49B;color:#111}.sp-replacer.sp-disabled{cursor:default;border-color:silver;color:silver}.sp-dd{padding:2px 0;height:16px;line-height:16px;float:left;font-size:10px}.sp-preview{width:25px;height:20px;border:1px solid #222;margin-right:5px;float:left;z-index:0}.sp-palette{max-width:220px}.sp-palette .sp-thumb-el{width:16px;height:16px;margin:2px 1px;border:1px solid #d0d0d0}.sp-container{padding-bottom:0}.sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top,#eee,#ccc);background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-ms-linear-gradient(top,#eee,#ccc);background-image:-o-linear-gradient(top,#eee,#ccc);background-image:linear-gradient(to bottom,#eee,#ccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top,#ddd,#bbb);background-image:-moz-linear-gradient(top,#ddd,#bbb);background-image:-ms-linear-gradient(top,#ddd,#bbb);background-image:-o-linear-gradient(top,#ddd,#bbb);background-image:linear-gradient(to bottom,#ddd,#bbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.sp-cancel{font-size:11px;color:#d93f3f!important;margin:0 5px 0 0;padding:2px;vertical-align:middle;text-decoration:none}.sp-cancel:hover{color:#d93f3f!important;text-decoration:underline}.sp-palette span.sp-thumb-active,.sp-palette span:hover{border-color:#000}.sp-alpha,.sp-preview,.sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.sp-alpha-inner,.sp-preview-inner,.sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.sp-palette .sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.sp-palette .sp-thumb-light.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.sp-palette .sp-thumb-dark.sp-thumb-active .sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.sp-clear-display{background-repeat:no-repeat;background-position:center;background-image:url(data:image/gif;base64,R0lGODlhFAAUAPcAAAAAAJmZmZ2dnZ6enqKioqOjo6SkpKWlpaampqenp6ioqKmpqaqqqqurq/Hx8fLy8vT09PX19ff39/j4+Pn5+fr6+vv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAP8ALAAAAAAUABQAAAihAP9FoPCvoMGDBy08+EdhQAIJCCMybCDAAYUEARBAlFiQQoMABQhKUJBxY0SPICEYHBnggEmDKAuoPMjS5cGYMxHW3IiT478JJA8M/CjTZ0GgLRekNGpwAsYABHIypcAgQMsITDtWJYBR6NSqMico9cqR6tKfY7GeBCuVwlipDNmefAtTrkSzB1RaIAoXodsABiZAEFB06gIBWC1mLVgBa0AAOw==)}.sp-container{position:fixed;z-index:99999999!important;background:#313131;border:0}.sp-picker-container{border:0}.sp-clear,.sp-color,.sp-hue{border-color:#000}.sp-button-container{float:none;text-align:right;clear:both;margin-top:10px}.dslca-container .sp-replacer{display:block;padding:5px 6px;background:rgba(255,255,255,.2);border:1px solid #3565ad;border-radius:3px}.dslca-container .sp-dd{display:none}.dslca-container .sp-preview{width:100%;height:15px;border:1px solid #3565ad;border-radius:4px;overflow:hidden}.dslca-sp-revert,.sp-cancel.dslc-icon,.sp-choose.dslc-icon{padding:0;margin:0;background:#e55f5f;display:inline-block;width:24px;height:24px;line-height:24px;font-size:12px;color:#fff!important;border-radius:3px;text-align:center;text-decoration:none!important;cursor:pointer;vertical-align:baseline}.sp-choose.dslc-icon{background:#78ca4f;margin-left:5px}.dslca-sp-revert{background:#06b2ac;float:left}.sp-input-container{margin-top:5px;margin-bottom:10px}body input[type=text].sp-input{background:#444 !important;padding:5px;border:0;border-radius:0;color:#fff}
css/modules.css CHANGED
@@ -976,8 +976,7 @@
976
  border-radius: 3px 3px 0 0;
977
  bottom: -1px;
978
  cursor: pointer;
979
- display: block;
980
- float: left;
981
  padding: 10px;
982
  position: relative;
983
  line-height: 1;
@@ -1017,8 +1016,7 @@
1017
  border-radius: 50%;
1018
  color: #fff;
1019
  cursor: pointer;
1020
- display: block;
1021
- float: left;
1022
  font-size: 11px;
1023
  margin-left: 10px;
1024
  height: 20px;
@@ -1760,11 +1758,11 @@
1760
  }
1761
 
1762
  .dslc-accordion-item {
1763
- margin-top: 20px;
1764
  }
1765
 
1766
  .dslc-accordion-item:first-child {
1767
- margin-top: 0;
1768
  }
1769
 
1770
  .dslc-accordion-header {
@@ -1886,28 +1884,49 @@
1886
  padding: 0;
1887
  }
1888
 
 
1889
  .dslc-navigation .menu > li {
1890
  display: inline-block;
1891
  position: relative;
1892
  z-index: 99998;
1893
  }
1894
 
 
 
 
 
 
 
 
 
 
 
 
 
1895
  .dslc-navigation .menu > li:first-child {
1896
  margin-left: 0 !important;
1897
  }
1898
 
 
 
 
 
 
 
1899
  .dslc-navigation .menu > li > a {
1900
  display: inline-block;
1901
  text-decoration: none;
1902
  vertical-align: middle;
1903
  }
1904
 
 
1905
  .dslc-navigation-arrow {
1906
  display: inline-block;
1907
  margin-left: 5px;
1908
  vertical-align: middle;
1909
  }
1910
 
 
1911
  .dslc-navigation .menu ul {
1912
  border-style: solid;
1913
  display: none;
@@ -1919,27 +1938,38 @@
1919
  left: -28px;
1920
  }
1921
 
 
 
 
 
 
 
 
1922
  .dslc-navigation .menu ul.dslc-navigation-invert-subnav {
1923
  left: auto;
1924
  right: 0;
1925
  }
1926
 
 
1927
  .dslc-navigation .menu ul li {
1928
  display: block;
1929
  white-space: nowrap;
1930
  margin: 0;
1931
  }
1932
 
 
1933
  .dslc-navigation .menu ul li a {
1934
  display: block;
1935
  line-height: 1;
1936
  text-decoration: none;
1937
  }
1938
 
 
1939
  .dslc-navigation .menu ul li:last-child a {
1940
  border-bottom: 0 !important;
1941
  }
1942
 
 
1943
  .dslc-navigation .dt-icon.dt-subnav-arrow {
1944
  display: none;
1945
  color: #bfbfbf;
@@ -1951,25 +1981,33 @@
1951
  margin-right: 0;
1952
  }
1953
 
 
1954
  .dslc-navigation li.current-menu-item .dt-icon.dt-subnav-arrow {
1955
  color: #878787;
1956
  }
1957
 
 
1958
  .dslc-navigation .menu ul ul {
1959
  left: 100%;
1960
  margin-left: -10px;
1961
  top: -1px;
1962
  }
1963
 
 
1964
  .dslc-navigation .menu ul ul.dslc-navigation-invert-subnav {
1965
  left: auto;
1966
  right: 100%;
1967
  }
1968
 
 
1969
  .dslc-navigation .menu li:hover > ul {
1970
  display: block;
1971
  }
1972
 
 
 
 
 
1973
  .dslc-mobile-navigation {
1974
  position: relative;
1975
  text-align: right;
@@ -2004,4 +2042,22 @@
2004
  .dslc-res-tablet .dslc-navigation.dslc-navigation-res-t-enabled,
2005
  .dslc-res-phone .dslc-navigation.dslc-navigation-res-p-enabled {
2006
  display: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2007
  }
976
  border-radius: 3px 3px 0 0;
977
  bottom: -1px;
978
  cursor: pointer;
979
+ display: inline-block;
 
980
  padding: 10px;
981
  position: relative;
982
  line-height: 1;
1016
  border-radius: 50%;
1017
  color: #fff;
1018
  cursor: pointer;
1019
+ display: inline-block;
 
1020
  font-size: 11px;
1021
  margin-left: 10px;
1022
  height: 20px;
1758
  }
1759
 
1760
  .dslc-accordion-item {
1761
+
1762
  }
1763
 
1764
  .dslc-accordion-item:first-child {
1765
+ margin-top: 0 !important;
1766
  }
1767
 
1768
  .dslc-accordion-header {
1884
  padding: 0;
1885
  }
1886
 
1887
+ /* Top level menu li */
1888
  .dslc-navigation .menu > li {
1889
  display: inline-block;
1890
  position: relative;
1891
  z-index: 99998;
1892
  }
1893
 
1894
+ /* Top level horizontal menu li */
1895
+ .dslc-navigation.dslc-navigation-orientation-horizontal .menu > li {
1896
+ margin-top: 0 !important
1897
+ }
1898
+
1899
+ /* Top level vertical menu li */
1900
+ .dslc-navigation.dslc-navigation-orientation-vertical .menu > li {
1901
+ display: block;
1902
+ margin-left: 0 !important;
1903
+ }
1904
+
1905
+ /* Top level first menu li */
1906
  .dslc-navigation .menu > li:first-child {
1907
  margin-left: 0 !important;
1908
  }
1909
 
1910
+ /* Top level vertical menu li */
1911
+ .dslc-navigation.dslc-navigation-orientation-vertical .menu > li:first-child {
1912
+ margin-top: 0 !important;
1913
+ }
1914
+
1915
+ /* Top level menu a */
1916
  .dslc-navigation .menu > li > a {
1917
  display: inline-block;
1918
  text-decoration: none;
1919
  vertical-align: middle;
1920
  }
1921
 
1922
+ /* Nav arrow ( submenu indicator ) */
1923
  .dslc-navigation-arrow {
1924
  display: inline-block;
1925
  margin-left: 5px;
1926
  vertical-align: middle;
1927
  }
1928
 
1929
+ /* Inner level menu ul */
1930
  .dslc-navigation .menu ul {
1931
  border-style: solid;
1932
  display: none;
1938
  left: -28px;
1939
  }
1940
 
1941
+ /* Inner level vertical menu ul */
1942
+ .dslc-navigation-orientation-vertical .menu ul {
1943
+ top: 0;
1944
+ left: 100%;
1945
+ }
1946
+
1947
+ /* Inner level menu inverted */
1948
  .dslc-navigation .menu ul.dslc-navigation-invert-subnav {
1949
  left: auto;
1950
  right: 0;
1951
  }
1952
 
1953
+ /* Inner level menu li */
1954
  .dslc-navigation .menu ul li {
1955
  display: block;
1956
  white-space: nowrap;
1957
  margin: 0;
1958
  }
1959
 
1960
+ /* Inner level menu a */
1961
  .dslc-navigation .menu ul li a {
1962
  display: block;
1963
  line-height: 1;
1964
  text-decoration: none;
1965
  }
1966
 
1967
+ /* Inner level menu last item a */
1968
  .dslc-navigation .menu ul li:last-child a {
1969
  border-bottom: 0 !important;
1970
  }
1971
 
1972
+ /* Inner level nav arrow ( submenu indicator ) */
1973
  .dslc-navigation .dt-icon.dt-subnav-arrow {
1974
  display: none;
1975
  color: #bfbfbf;
1981
  margin-right: 0;
1982
  }
1983
 
1984
+ /* Inner level nav arrow current menu item */
1985
  .dslc-navigation li.current-menu-item .dt-icon.dt-subnav-arrow {
1986
  color: #878787;
1987
  }
1988
 
1989
+ /* Second Level menu ul */
1990
  .dslc-navigation .menu ul ul {
1991
  left: 100%;
1992
  margin-left: -10px;
1993
  top: -1px;
1994
  }
1995
 
1996
+ /* Second level menu inverted */
1997
  .dslc-navigation .menu ul ul.dslc-navigation-invert-subnav {
1998
  left: auto;
1999
  right: 100%;
2000
  }
2001
 
2002
+ /* Inner level menu show */
2003
  .dslc-navigation .menu li:hover > ul {
2004
  display: block;
2005
  }
2006
 
2007
+ /**
2008
+ * Mobile Navigation
2009
+ */
2010
+
2011
  .dslc-mobile-navigation {
2012
  position: relative;
2013
  text-align: right;
2042
  .dslc-res-tablet .dslc-navigation.dslc-navigation-res-t-enabled,
2043
  .dslc-res-phone .dslc-navigation.dslc-navigation-res-p-enabled {
2044
  display: none;
2045
+ }
2046
+
2047
+ /**
2048
+ * All Posts Related Modules
2049
+ */
2050
+
2051
+ .dslc-post-main-inner-link-cover {
2052
+ display: none;
2053
+ position: absolute;
2054
+ top: 0;
2055
+ left: 0;
2056
+ right: 0;
2057
+ bottom: 0;
2058
+ }
2059
+
2060
+ body.dslc-res-tablet .dslc-post-main-inner-link-cover,
2061
+ body.dslc-res-phone .dslc-post-main-inner-link-cover {
2062
+ display: block;
2063
  }
css/modules.min.css CHANGED
@@ -1 +1 @@
1
- #dslc-content .dslc-cpt-post-main,#dslc-content .dslc-cpt-post-thumb-inner{border:0 solid transparent}#dslc-content .dslc-cpt-post-thumb{margin-bottom:20px;overflow:hidden;position:relative}#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}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main .dslc-init-center{position:relative}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{border:1px solid #e5e5e5;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-main,#dslc-content .dslc-blog-post-thumb-inner{border:0 solid transparent}#dslc-content .dslc-cpt-post-meta-author{float:left}#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-family:"Open Sans";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-thumb{margin-bottom:20px;overflow:hidden;position:relative}#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-init-center,#dslc-content .dslc-download-thumb{position:relative}#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:1px solid #e5e5e5;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-family:"Open Sans";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-content .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-inner{border:0 solid transparent}#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-thumb .dslc-download-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-download-thumb .dslc-download-main .dslc-init-center,#dslc-content .dslc-gallery-thumb{position:relative}#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-main{border:0 solid transparent;text-align:center}#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:0 solid transparent;border-radius:3px;color:#fff;display:block;font-size:13px;font-weight:700;line-height:1;padding:15px 0;text-decoration:none;text-align:center}#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-inner{border:0 solid transparent;position:relative}#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-images-count{background:0 0;border:0 solid transparent;border-radius:50%;position:absolute;top:40%;left:35%;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-family:Oswald;font-weight:200;line-height:1;margin-bottom:8px}#dslc-content .dslc-gallery-images-count-txt{color:#7d7d7d;display:block;font-size:11px;font-family:Brawler;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}#dslc-content .dslc-gallery-thumb .dslc-gallery-main .dslc-init-center{position:relative}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-family:Brawler;font-size:11px;line-height:1;margin:0;padding:0}#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-info-box{text-align:center;border:0 solid transparent}.dslc-info-box-image{margin-bottom:25px;position:relative;font-size:0}.dslc-info-box-image-link{position:absolute;top:0;left:0;right:0;bottom:0}.dslc-info-box-main{overflow:hidden}.dslc-info-box-icon-pos-aside .dslc-info-box-image{float:left;margin-right:20px}.dslc-info-box-image-inner{display:inline-block;position:relative;border:0 solid transparent}.dslc-info-box-image-inner .dslc-icon{color:#fff;line-height:1;font-size:40px;position:absolute}.dslc-info-box-title{margin-bottom:25px}.dslc-info-box-title h4{font-size:17px;line-height:1;margin:0;padding:0;font-weight:400}.dslc-info-box-title h4 a{color:inherit;text-decoration:none}.dslc-info-box-content{margin-bottom:25px}.dslc-info-box-button{font-size:0}.dslc-info-box-button a{display:inline-block;line-height:1;text-decoration:none}.dslc-info-box-button-aside{float:right}#dslc-content .dslc-partner .dslc-partner-thumb{border:1px solid #ebebeb;padding:50px 0;text-align:center;position:relative}#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 .dslc-partner-main,#dslc-content .dslc-projects .dslc-project-thumb-inner{border:0 solid transparent}#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}#dslc-content .dslc-partner-thumb .dslc-partner-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-partner-thumb .dslc-partner-main{opacity:1}#dslc-content .dslc-partner .dslc-partner-title{margin-bottom:10px}#dslc-content .dslc-partner .dslc-partner-title h2{color:#222;font-family:Oswald;font-weight:700;font-size:14px;line-height:1;margin:0;padding:0}#dslc-content .dslc-partner .dslc-partner-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-partner .dslc-partner-excerpt{color:#444;font-family:"Open Sans";font-weight:400;font-size:12px;line-height:22px}#dslc-content .dslc-projects .dslc-project-thumb{margin-bottom:24px;position:relative}#dslc-content .dslc-projects .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-projects .dslc-project-thumb .dslc-project-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main.dslc-project-main-visible{opacity:1!important}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-projects .dslc-post:first-child .dslc-project-thumb .dslc-project-main{opacity:1}#dslc-content .dslc-projects .dslc-project-main{border:0 solid transparent}#dslc-content .dslc-projects .dslc-project-title{margin-bottom:10px}#dslc-content .dslc-projects .dslc-project-title h2{color:#000;font-family:"Open Sans";font-weight:700;font-size:12px;line-height:1;margin:0;padding:0}#dslc-content .dslc-projects .dslc-project-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-projects .dslc-project-cats{font-family:"Droid Serif";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-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{text-align:center}#dslc-content .dslc-staff-member-thumb{position:relative;border:0 solid transparent}#dslc-content .dslc-staff-member-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-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}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main .dslc-init-center{position:relative}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{background:#40bde6;border:0 solid transparent;border-radius:0 0 3px 3px;padding:12px 0;margin-bottom:25px}#dslc-content .dslc-staff-member-social a{color:#fff;margin:0 6px;font-size:13px;text-decoration:none}#dslc-content .dslc-staff-member-main{border:0 solid transparent}#dslc-content .dslc-staff-member-title{margin-bottom:23px}#dslc-content .dslc-staff-member-title h2{color:#323232;font-size:15px;font-family:"Open Sans";font-weight:600;line-height:1;margin:0;padding:0}#dslc-content .dslc-staff-member-title h2 a{display:block;text-decoration:none;color:inherit}#dslc-content .dslc-staff-member-position{border:1px solid #e5e5e5;font-size:12px;font-weight:600;font-style:italic;line-height:1;margin-bottom:20px}#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:block;float:left;padding:10px;position:relative;line-height:1;margin-left:-1px}#dslc-content .dslc-tabs-nav-hook:first-child{margin-left:0!important}#dslc-content .dslc-tabs-nav-hook.dslc-active{background:#fff}#dslc-content .dslc-tabs-content{background:#fff;border:1px solid #e8e8e8;border-radius:0 3px 3px}#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{background:#78CA4F;border-radius:50%;color:#fff;cursor:pointer;display:block;float:left;font-size:11px;margin-left:10px;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;cursor:pointer;display:inline-block;font-size:12px;margin-left:10px;line-height:1;vertical-align:top}.dslc-tabs-content .dslc-tabs-nav-hook{display:none!important}body.dslc-res-phone .dslc-tabs-nav{display:none}body.dslc-res-phone .dslc-tabs-tab-content{display:block!important}body.dslc-res-phone .dslc-tabs-content .dslc-tabs-nav-hook{display:block!important;float:none!important;margin-bottom:20px}#dslc-content .dslc-testimonials{border:0 solid transparent}#dslc-content .dslc-testimonial-main{border-radius:4px;padding:25px;overflow:hidden}#dslc-content .dslc-testimonial-main,#dslc-content .dslc-widget-wrap,#dslc-content .dslc-widgets-wrap,.dslc-text-module-content{border:0 solid transparent}#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}#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;border-bottom:1px solid #e5e5e5;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-widget li{border-style:solid}#dslc-content .dslc-product-thumb{position:relative}#dslc-content .dslc-product-thumb-inner{bottom:0 solid transparent}#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{background:0 0;color:#fff;display:block;font-weight:400;font-size:25px;font-family:Oswald;left:35%;line-height:1;position:absolute;top:40%;text-decoration:none;text-align:center}#dslc-content .dslc-product-price-secondary del,#dslc-content .dslc-product-thumb .dslc-product-price .from,#dslc-content .dslc-product-thumb .dslc-product-price del{display:none}#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}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main .dslc-init-center{position:relative}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;font-family:Oswald}#dslc-content .dslc-product-price-secondary ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-title h2{clear:none;font-size:11px;font-family:Brawler;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,#dslc-content .dslc-tp-title h1{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%;border-radius:50%}#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{border:0 solid transparent;display:block;line-height:1;text-decoration:none;text-align:center}#dslc-content .dslc-tp-thumbnail{bottom:0 solid transparent}#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;display:block;background:#40bde6;text-decoration:none;color:#fff;width:30px;height:30px;border-radius:15px;text-align:center;font-size:15px;position:relative;float:left}#dslc-content ul.dslc-social .dslc-icon{line-height:1;position:absolute}#dslc-content ul.dslc-social .dslc-social-label{float:left;display:block}#dslc-content .dslc-notification-box{background:#f65757;padding:15px;border:1px solid #e43737;border-radius:3px;color:#fff}#dslc-content .dslc-notification-box-content p:last-child{margin-bottom:0}#dslc-content .dslc-notification-box-close{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;position:absolute;font-size:12px}#dslc-content .dslc-button{overflow:hidden}#dslc-content .dslc-button a{display:inline-block;text-decoration:none;line-height:1}.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-accordion,.dslc-accordion-content,.dslc-accordion-header,.dslc-accordion-title,.dslc-progress-bar,.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-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-res-phone .dslc-comment .dslc-comment{margin-left:0}.dslc-res-phone .dslc-comment .children{margin-left:0;padding-left:0}.dslc-tp-comment-form input[type=text]{line-height:1}.dslc-tp-comment-form textarea{width:100%;height:130px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.dslc-tp-comment-form .logged-in-as{margin-bottom:15px}.dslc-tp-comment-form #submit{cursor:pointer}.dslc-image img{max-width:100%;display:inline-block;vertical-align:middle}.dslc-progress-bar-label{margin:0;padding:0;line-height:1}.dslc-progress-bar-loader{background:#666;display:block;height:18px}.dslc-progress-bar-loader-inner{display:block;float:left;overflow:hidden;white-space:nowrap}.dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:0}.dslca-enabled .dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:1}.dslc-accordion-item{margin-top:20px}.dslc-accordion-item:first-child{margin-top:0}.dslc-accordion-header{display:block;font-family:"Open Sans";font-weight:700;font-size:11px;line-height:1;position:relative}.dslc-accordion-title{display:block}.dslc-accordion-hook{cursor:pointer}.dslc-accordion-toggle{display:block;position:absolute;left:0;top:0;bottom:0}.dslc-accordion-content{position:relative}.dslca-add-accordion{text-align:center}.dslca-add-accordion-hook{background:#78CA4F;border-radius:50%;color:#fff;cursor:pointer;display:inline-block;font-size:12px;height:20px;text-align:center;line-height:22px;width:20px;position:relative;margin-top:10px}.dslca-add-accordion-hook .dslca-icon{position:absolute;line-height:1;top:5px;right:6px}.dslca-accordion-action-hooks{position:absolute;right:14px;top:14px}.dslca-move-down-accordion-hook,.dslca-move-up-accordion-hook{color:#5890e5}.dslca-move-down-accordion-hook:hover,.dslca-move-up-accordion-hook:hover{color:#3b6fbe}.dslca-delete-accordion-hook{color:#E55F5F;cursor:pointer;display:inline-block;font-size:12px;margin-left:10px;line-height:1;vertical-align:top}.dslc-icon-module{position:relative;display:inline-block}.dslc-navigation{z-index:99998;position:relative;text-align:right;font-size:0}.dslc-navigation-inner{display:inline-block}.dslc-navigation .menu{list-style:none;margin:0;padding:0}.dslc-navigation .menu>li{display:inline-block;position:relative;z-index:99998}.dslc-navigation .menu>li:first-child{margin-left:0!important}.dslc-navigation .menu>li>a{display:inline-block;text-decoration:none;vertical-align:middle}.dslc-navigation-arrow{display:inline-block;margin-left:5px;vertical-align:middle}.dslc-navigation .menu ul{border-style:solid;display:none;list-style-type:none;margin:0;opacity:0;position:absolute;top:100%;left:-28px}.dslc-navigation .menu ul.dslc-navigation-invert-subnav{left:auto;right:0}.dslc-navigation .menu ul li{display:block;white-space:nowrap;margin:0}.dslc-navigation .menu ul li a{display:block;line-height:1;text-decoration:none}.dslc-navigation .menu ul li:last-child a{border-bottom:0!important}.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-navigation li.current-menu-item .dt-icon.dt-subnav-arrow{color:#878787}.dslc-navigation .menu ul ul{left:100%;margin-left:-10px;top:-1px}.dslc-navigation .menu ul ul.dslc-navigation-invert-subnav{left:auto;right:100%}.dslc-navigation .menu li:hover>ul{display:block}.dslc-mobile-navigation{position:relative;text-align:right;display:none}.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-mobile-navigation-hook{color:#555;font-size:24px;line-height:22px}.dslc-res-phone .dslc-mobile-navigation.dslc-navigation-res-p-enabled,.dslc-res-tablet .dslc-mobile-navigation.dslc-navigation-res-t-enabled{display:block}.dslc-res-phone .dslc-navigation.dslc-navigation-res-p-enabled,.dslc-res-tablet .dslc-navigation.dslc-navigation-res-t-enabled{display:none}
1
+ #dslc-content .dslc-cpt-post-main,#dslc-content .dslc-cpt-post-thumb-inner{border:0 solid transparent}#dslc-content .dslc-cpt-post-thumb{margin-bottom:20px;overflow:hidden;position:relative}#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}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main .dslc-init-center{position:relative}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{border:1px solid #e5e5e5;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-main,#dslc-content .dslc-blog-post-thumb-inner{border:0 solid transparent}#dslc-content .dslc-cpt-post-meta-author{float:left}#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-family:"Open Sans";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-thumb{margin-bottom:20px;overflow:hidden;position:relative}#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-init-center,#dslc-content .dslc-download-thumb{position:relative}#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:1px solid #e5e5e5;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-family:"Open Sans";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-content .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-inner{border:0 solid transparent}#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-thumb .dslc-download-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-download-thumb .dslc-download-main .dslc-init-center,#dslc-content .dslc-gallery-thumb{position:relative}#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-main{border:0 solid transparent;text-align:center}#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:0 solid transparent;border-radius:3px;color:#fff;display:block;font-size:13px;font-weight:700;line-height:1;padding:15px 0;text-decoration:none;text-align:center}#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-inner{border:0 solid transparent;position:relative}#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-images-count{background:0 0;border:0 solid transparent;border-radius:50%;position:absolute;top:40%;left:35%;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-family:Oswald;font-weight:200;line-height:1;margin-bottom:8px}#dslc-content .dslc-gallery-images-count-txt{color:#7d7d7d;display:block;font-size:11px;font-family:Brawler;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}#dslc-content .dslc-gallery-thumb .dslc-gallery-main .dslc-init-center{position:relative}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-family:Brawler;font-size:11px;line-height:1;margin:0;padding:0}#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-info-box{text-align:center;border:0 solid transparent}.dslc-info-box-image{margin-bottom:25px;position:relative;font-size:0}.dslc-info-box-image-link{position:absolute;top:0;left:0;right:0;bottom:0}.dslc-info-box-main{overflow:hidden}.dslc-info-box-icon-pos-aside .dslc-info-box-image{float:left;margin-right:20px}.dslc-info-box-image-inner{display:inline-block;position:relative;border:0 solid transparent}.dslc-info-box-image-inner .dslc-icon{color:#fff;line-height:1;font-size:40px;position:absolute}.dslc-info-box-title{margin-bottom:25px}.dslc-info-box-title h4{font-size:17px;line-height:1;margin:0;padding:0;font-weight:400}.dslc-info-box-title h4 a{color:inherit;text-decoration:none}.dslc-info-box-content{margin-bottom:25px}.dslc-info-box-button{font-size:0}.dslc-info-box-button a{display:inline-block;line-height:1;text-decoration:none}.dslc-info-box-button-aside{float:right}#dslc-content .dslc-partner .dslc-partner-thumb{border:1px solid #ebebeb;padding:50px 0;text-align:center;position:relative}#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 .dslc-partner-main,#dslc-content .dslc-projects .dslc-project-thumb-inner{border:0 solid transparent}#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}#dslc-content .dslc-partner-thumb .dslc-partner-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-partner-thumb .dslc-partner-main{opacity:1}#dslc-content .dslc-partner .dslc-partner-title{margin-bottom:10px}#dslc-content .dslc-partner .dslc-partner-title h2{color:#222;font-family:Oswald;font-weight:700;font-size:14px;line-height:1;margin:0;padding:0}#dslc-content .dslc-partner .dslc-partner-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-partner .dslc-partner-excerpt{color:#444;font-family:"Open Sans";font-weight:400;font-size:12px;line-height:22px}#dslc-content .dslc-projects .dslc-project-thumb{margin-bottom:24px;position:relative}#dslc-content .dslc-projects .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-projects .dslc-project-thumb .dslc-project-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main.dslc-project-main-visible{opacity:1!important}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-projects .dslc-post:first-child .dslc-project-thumb .dslc-project-main{opacity:1}#dslc-content .dslc-projects .dslc-project-main{border:0 solid transparent}#dslc-content .dslc-projects .dslc-project-title{margin-bottom:10px}#dslc-content .dslc-projects .dslc-project-title h2{color:#000;font-family:"Open Sans";font-weight:700;font-size:12px;line-height:1;margin:0;padding:0}#dslc-content .dslc-projects .dslc-project-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-projects .dslc-project-cats{font-family:"Droid Serif";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-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{text-align:center}#dslc-content .dslc-staff-member-thumb{position:relative;border:0 solid transparent}#dslc-content .dslc-staff-member-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-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}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main .dslc-init-center{position:relative}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{background:#40bde6;border:0 solid transparent;border-radius:0 0 3px 3px;padding:12px 0;margin-bottom:25px}#dslc-content .dslc-staff-member-social a{color:#fff;margin:0 6px;font-size:13px;text-decoration:none}#dslc-content .dslc-staff-member-main{border:0 solid transparent}#dslc-content .dslc-staff-member-title{margin-bottom:23px}#dslc-content .dslc-staff-member-title h2{color:#323232;font-size:15px;font-family:"Open Sans";font-weight:600;line-height:1;margin:0;padding:0}#dslc-content .dslc-staff-member-title h2 a{display:block;text-decoration:none;color:inherit}#dslc-content .dslc-staff-member-position{border:1px solid #e5e5e5;font-size:12px;font-weight:600;font-style:italic;line-height:1;margin-bottom:20px}#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-hook:first-child{margin-left:0!important}#dslc-content .dslc-tabs-nav-hook.dslc-active{background:#fff}#dslc-content .dslc-tabs-content{background:#fff;border:1px solid #e8e8e8;border-radius:0 3px 3px}#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{cursor:pointer;display:inline-block;margin-left:10px}.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}body.dslc-res-phone .dslc-tabs-nav{display:none}body.dslc-res-phone .dslc-tabs-tab-content{display:block!important}body.dslc-res-phone .dslc-tabs-content .dslc-tabs-nav-hook{display:block!important;float:none!important;margin-bottom:20px}#dslc-content .dslc-testimonials{border:0 solid transparent}#dslc-content .dslc-testimonial-main{border-radius:4px;padding:25px;overflow:hidden}#dslc-content .dslc-testimonial-main,#dslc-content .dslc-widget-wrap,#dslc-content .dslc-widgets-wrap,.dslc-text-module-content{border:0 solid transparent}#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}#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;border-bottom:1px solid #e5e5e5;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-widget li{border-style:solid}#dslc-content .dslc-product-thumb{position:relative}#dslc-content .dslc-product-thumb-inner{bottom:0 solid transparent}#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{background:0 0;color:#fff;display:block;font-weight:400;font-size:25px;font-family:Oswald;left:35%;line-height:1;position:absolute;top:40%;text-decoration:none;text-align:center}#dslc-content .dslc-product-price-secondary del,#dslc-content .dslc-product-thumb .dslc-product-price .from,#dslc-content .dslc-product-thumb .dslc-product-price del{display:none}#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}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main .dslc-init-center{position:relative}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;font-family:Oswald}#dslc-content .dslc-product-price-secondary ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-title h2{clear:none;font-size:11px;font-family:Brawler;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,#dslc-content .dslc-tp-title h1{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%;border-radius:50%}#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{border:0 solid transparent;display:block;line-height:1;text-decoration:none;text-align:center}#dslc-content .dslc-tp-thumbnail{bottom:0 solid transparent}#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;display:block;background:#40bde6;text-decoration:none;color:#fff;width:30px;height:30px;border-radius:15px;text-align:center;font-size:15px;position:relative;float:left}#dslc-content ul.dslc-social .dslc-icon{line-height:1;position:absolute}#dslc-content ul.dslc-social .dslc-social-label{float:left;display:block}#dslc-content .dslc-notification-box{background:#f65757;padding:15px;border:1px solid #e43737;border-radius:3px;color:#fff}#dslc-content .dslc-notification-box-content p:last-child{margin-bottom:0}#dslc-content .dslc-notification-box-close{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;position:absolute;font-size:12px}#dslc-content .dslc-button{overflow:hidden}#dslc-content .dslc-button a{display:inline-block;text-decoration:none;line-height:1}.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-accordion,.dslc-accordion-content,.dslc-accordion-header,.dslc-accordion-title,.dslc-progress-bar,.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-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-res-phone .dslc-comment .dslc-comment{margin-left:0}.dslc-res-phone .dslc-comment .children{margin-left:0;padding-left:0}.dslc-tp-comment-form input[type=text]{line-height:1}.dslc-tp-comment-form textarea{width:100%;height:130px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.dslc-tp-comment-form .logged-in-as{margin-bottom:15px}.dslc-tp-comment-form #submit{cursor:pointer}.dslc-image img{max-width:100%;display:inline-block;vertical-align:middle}.dslc-progress-bar-label{margin:0;padding:0;line-height:1}.dslc-progress-bar-loader{background:#666;display:block;height:18px}.dslc-progress-bar-loader-inner{display:block;float:left;overflow:hidden;white-space:nowrap}.dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:0}.dslca-enabled .dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:1}.dslc-accordion-item:first-child{margin-top:0!important}.dslc-accordion-header{display:block;font-family:"Open Sans";font-weight:700;font-size:11px;line-height:1;position:relative}.dslc-accordion-title{display:block}.dslc-accordion-hook{cursor:pointer}.dslc-accordion-toggle{display:block;position:absolute;left:0;top:0;bottom:0}.dslc-accordion-content{position:relative}.dslca-add-accordion{text-align:center}.dslca-add-accordion-hook{background:#78CA4F;border-radius:50%;color:#fff;cursor:pointer;display:inline-block;font-size:12px;height:20px;text-align:center;line-height:22px;width:20px;position:relative;margin-top:10px}.dslca-add-accordion-hook .dslca-icon{position:absolute;line-height:1;top:5px;right:6px}.dslca-accordion-action-hooks{position:absolute;right:14px;top:14px}.dslca-move-down-accordion-hook,.dslca-move-up-accordion-hook{color:#5890e5}.dslca-move-down-accordion-hook:hover,.dslca-move-up-accordion-hook:hover{color:#3b6fbe}.dslca-delete-accordion-hook{color:#E55F5F;cursor:pointer;display:inline-block;font-size:12px;margin-left:10px;line-height:1;vertical-align:top}.dslc-icon-module{position:relative;display:inline-block}.dslc-navigation{z-index:99998;position:relative;text-align:right;font-size:0}.dslc-navigation-inner{display:inline-block}.dslc-navigation .menu{list-style:none;margin:0;padding:0}.dslc-navigation.dslc-navigation-orientation-horizontal .menu>li,.dslc-navigation.dslc-navigation-orientation-vertical .menu>li:first-child{margin-top:0!important}.dslc-navigation .menu>li{display:inline-block;position:relative;z-index:99998}.dslc-navigation.dslc-navigation-orientation-vertical .menu>li{display:block;margin-left:0!important}.dslc-navigation .menu>li:first-child{margin-left:0!important}.dslc-navigation .menu>li>a{display:inline-block;text-decoration:none;vertical-align:middle}.dslc-navigation-arrow{display:inline-block;margin-left:5px;vertical-align:middle}.dslc-navigation .menu ul{border-style:solid;display:none;list-style-type:none;margin:0;opacity:0;position:absolute;top:100%;left:-28px}.dslc-navigation-orientation-vertical .menu ul{top:0;left:100%}.dslc-navigation .menu ul.dslc-navigation-invert-subnav{left:auto;right:0}.dslc-navigation .menu ul li{display:block;white-space:nowrap;margin:0}.dslc-navigation .menu ul li a{display:block;line-height:1;text-decoration:none}.dslc-navigation .menu ul li:last-child a{border-bottom:0!important}.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-navigation li.current-menu-item .dt-icon.dt-subnav-arrow{color:#878787}.dslc-navigation .menu ul ul{left:100%;margin-left:-10px;top:-1px}.dslc-navigation .menu ul ul.dslc-navigation-invert-subnav{left:auto;right:100%}.dslc-navigation .menu li:hover>ul{display:block}.dslc-mobile-navigation{position:relative;text-align:right;display:none}.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-mobile-navigation-hook{color:#555;font-size:24px;line-height:22px}.dslc-res-phone .dslc-mobile-navigation.dslc-navigation-res-p-enabled,.dslc-res-tablet .dslc-mobile-navigation.dslc-navigation-res-t-enabled{display:block}.dslc-res-phone .dslc-navigation.dslc-navigation-res-p-enabled,.dslc-res-tablet .dslc-navigation.dslc-navigation-res-t-enabled{display:none}.dslc-post-main-inner-link-cover{display:none;position:absolute;top:0;left:0;right:0;bottom:0}body.dslc-res-phone .dslc-post-main-inner-link-cover,body.dslc-res-tablet .dslc-post-main-inner-link-cover{display:block}
ds-live-composer.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://www.livecomposerplugin.com
5
  Description: Primarily a front-end page builder but can also be used to build a whole website ( with our blank theme ) from header to footer.
6
  Author: Dany Duchaine and Slobodan Kustrimovic
7
- Version: 1.0.1
8
  Author URI: http://livecomposerplugin.com
9
  */
10
 
@@ -12,7 +12,7 @@
12
  * Constants
13
  */
14
 
15
- define( 'DS_LIVE_COMPOSER_VER', '1.0.1' );
16
  define( 'DS_LIVE_COMPOSER_LOAD_MINIFIED', true );
17
 
18
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
@@ -54,7 +54,6 @@
54
  $dslc_css_style = '';
55
  $dslc_googlefonts_array = array();
56
  $dslc_all_googlefonts_array = array( "ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Baumans","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script", "Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","Eagle Lake","Eater","EB Garamond","Economica","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Holtwood One SC","Homemade Apple","Homenaje","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kameron","Karla","Kaushan Script","Kavoon","Keania One","Kelly Slab","Kenia","Kite One","Knewave","Kotta One","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Port Lligat Sans","Port Lligat Slab","Prata","Press Start 2P","Princess Sofia","Prociono","Prosto One","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Swanky and Moo Moo","Syncopate","Tangerine","Tauri","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Vast Shadow","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada" );
57
- $dslc_is_content_filtered = array();
58
  $dslc_should_filter = true;
59
 
60
  /**
4
  Plugin URI: http://www.livecomposerplugin.com
5
  Description: Primarily a front-end page builder but can also be used to build a whole website ( with our blank theme ) from header to footer.
6
  Author: Dany Duchaine and Slobodan Kustrimovic
7
+ Version: 1.0.2
8
  Author URI: http://livecomposerplugin.com
9
  */
10
 
12
  * Constants
13
  */
14
 
15
+ define( 'DS_LIVE_COMPOSER_VER', '1.0.2' );
16
  define( 'DS_LIVE_COMPOSER_LOAD_MINIFIED', true );
17
 
18
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
54
  $dslc_css_style = '';
55
  $dslc_googlefonts_array = array();
56
  $dslc_all_googlefonts_array = array( "ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Baumans","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script", "Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","Eagle Lake","Eater","EB Garamond","Economica","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Holtwood One SC","Homemade Apple","Homenaje","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kameron","Karla","Kaushan Script","Kavoon","Keania One","Kelly Slab","Kenia","Kite One","Knewave","Kotta One","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Port Lligat Sans","Port Lligat Slab","Prata","Press Start 2P","Princess Sofia","Prociono","Prosto One","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Swanky and Moo Moo","Syncopate","Tangerine","Tauri","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Vast Shadow","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada" );
 
57
  $dslc_should_filter = true;
58
 
59
  /**
includes/ajax.php CHANGED
@@ -452,7 +452,7 @@ function dslc_ajax_display_module_options( $atts ) {
452
 
453
  <?php if ( $module_option['type'] == 'text' ) : ?>
454
 
455
- <input type="text" class="dslca-module-edit-field" name="<?php echo $module_option['id']; ?>" data-id="<?php echo $module_option['id']; ?>" value="<?php echo $curr_value; ?>" data-starting-val="<?php echo $curr_value; ?>" <?php echo $affect_on_change_append ?> />
456
 
457
  <?php elseif ( $module_option['type'] == 'textarea' ) : ?>
458
 
@@ -598,9 +598,68 @@ function dslc_ajax_display_module_options( $atts ) {
598
 
599
  <input type="hidden" class="dslca-module-edit-field dslca-module-edit-field-text-align" name="<?php echo $module_option['id']; ?>" data-id="<?php echo $module_option['id']; ?>" value="<?php echo $curr_value; ?>" <?php echo $affect_on_change_append ?> />
600
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
601
  <?php else : ?>
602
 
603
- <?php do_action( 'dslc_custom_option_type_' . $module_option['type'], $module_option, $curr_value, $affect_on_change_append ); ?>
 
 
 
 
 
 
 
 
604
 
605
  <?php endif; ?>
606
 
452
 
453
  <?php if ( $module_option['type'] == 'text' ) : ?>
454
 
455
+ <input type="text" class="dslca-module-edit-field" name="<?php echo $module_option['id']; ?>" data-id="<?php echo $module_option['id']; ?>" value="<?php echo esc_attr( stripslashes( $curr_value ) ); ?>" data-starting-val="<?php echo esc_attr( stripslashes( $curr_value ) ); ?>" <?php echo $affect_on_change_append ?> />
456
 
457
  <?php elseif ( $module_option['type'] == 'textarea' ) : ?>
458
 
598
 
599
  <input type="hidden" class="dslca-module-edit-field dslca-module-edit-field-text-align" name="<?php echo $module_option['id']; ?>" data-id="<?php echo $module_option['id']; ?>" value="<?php echo $curr_value; ?>" <?php echo $affect_on_change_append ?> />
600
 
601
+ <?php elseif ( $module_option['type'] == 'box_shadow' ) : ?>
602
+
603
+ <?php
604
+ $box_shadow_hor_val = 0;
605
+ $box_shadow_ver_val = 0;
606
+ $box_shadow_blur_val = 0;
607
+ $box_shadow_spread_val = 0;
608
+ $box_shadow_color_val = 'transparent';
609
+ $box_shadow_inset_val = 'outset';
610
+ $box_shadow_val = false;
611
+ if ( $curr_value !== '' ) {
612
+ $box_shadow_val = explode( ' ', $curr_value );
613
+ }
614
+ if ( is_array( $box_shadow_val ) ) {
615
+ $box_shadow_hor_val = str_replace('px', '', $box_shadow_val[0] );
616
+ $box_shadow_ver_val = str_replace('px', '', $box_shadow_val[1] );
617
+ $box_shadow_blur_val = str_replace('px', '', $box_shadow_val[2] );
618
+ $box_shadow_spread_val = str_replace('px', '', $box_shadow_val[3] );
619
+ $box_shadow_color_val = str_replace('px', '', $box_shadow_val[4] );
620
+ if ( isset( $box_shadow_val[5] ) ) {
621
+ $box_shadow_inset_val = $box_shadow_val[5];
622
+ }
623
+ }
624
+ ?>
625
+
626
+ <div class="dslca-module-edit-option-box-shadow-wrapper">
627
+
628
+ <div class="dslca-module-edit-option-box-shadow-single">
629
+ <span class="dslca-module-edit-option-checkbox-hook"><?php _e( 'Inner', 'dslc_string' ); ?><span class="dslca-icon <?php if ( $box_shadow_inset_val == 'inset' ) echo 'dslc-icon-check'; else echo 'dslc-icon-check-empty'; ?>"></span></span>
630
+ <input type="checkbox" class="dslca-module-edit-field-checkbox dslca-module-edit-option-box-shadow-inset" <?php if ( $box_shadow_inset_val == 'inset' ) echo 'checked="checked"'; ?> />
631
+ </div>
632
+ <div class="dslca-module-edit-option-box-shadow-single">
633
+ <span><?php _e( 'Hor', 'dslc_string' ); ?></span><input class="dslca-module-edit-option-box-shadow-hor" step="0.1" type="number" value="<?php echo $box_shadow_hor_val; ?>" />
634
+ </div>
635
+ <div class="dslca-module-edit-option-box-shadow-single">
636
+ <span><?php _e( 'Ver', 'dslc_string' ); ?></span><input class="dslca-module-edit-option-box-shadow-ver" step="0.1" type="number" value="<?php echo $box_shadow_ver_val; ?>" />
637
+ </div>
638
+ <div class="dslca-module-edit-option-box-shadow-single">
639
+ <span><?php _e( 'Blur', 'dslc_string' ); ?></span><input class="dslca-module-edit-option-box-shadow-blur" step="0.1" type="number" value="<?php echo $box_shadow_blur_val; ?>" />
640
+ </div>
641
+ <div class="dslca-module-edit-option-box-shadow-single">
642
+ <span><?php _e( 'Spread', 'dslc_string' ); ?></span><input class="dslca-module-edit-option-box-shadow-spread" step="0.1" type="number" value="<?php echo $box_shadow_spread_val; ?>" />
643
+ </div>
644
+ <div class="dslca-module-edit-option-box-shadow-single">
645
+ <span><?php _e( 'Color', 'dslc_string' ); ?></span><input class="dslca-module-edit-option-box-shadow-color" type="text" value="<?php echo $box_shadow_color_val; ?>" />
646
+ </div>
647
+
648
+ <input type="hidden" class="dslca-module-edit-field dslca-module-edit-field-box-shadow" name="<?php echo $module_option['id']; ?>" data-id="<?php echo $module_option['id']; ?>" value="<?php echo $curr_value; ?>" <?php echo $affect_on_change_append ?> />
649
+
650
+ </div><!-- .dslca-module-edit-option-box-shadow-wrapper -->
651
+
652
  <?php else : ?>
653
 
654
+ <?php if ( has_action( 'dslc_custom_option_type_' . $module_option['type'] ) ) : ?>
655
+
656
+ <?php do_action( 'dslc_custom_option_type_' . $module_option['type'], $module_option, $curr_value, $affect_on_change_append ); ?>
657
+
658
+ <?php else : ?>
659
+
660
+ <input type="text" class="dslca-module-edit-field" name="<?php echo $module_option['id']; ?>" data-id="<?php echo $module_option['id']; ?>" value="<?php echo $curr_value; ?>" data-starting-val="<?php echo $curr_value; ?>" <?php echo $affect_on_change_append ?> />
661
+
662
+ <?php endif; ?>
663
 
664
  <?php endif; ?>
665
 
includes/class.module.php CHANGED
@@ -1874,10 +1874,10 @@ class DSLC_Module {
1874
  <div class="dslca-module-manage">
1875
  <span class="dslca-module-manage-line"></span>
1876
  <div class="dslca-module-manage-inner">
1877
- <a href="#" class="dslca-module-edit-hook"><span class="dslc-icon-cog"></span></a>
1878
- <a href="#" class="dslca-copy-module-hook"><span class="dslc-icon-copy"></span></a>
1879
- <a href="#" class="dslca-move-module-hook"><span class="dslc-icon-move"></span></a>
1880
- <a href="#" class="dslca-change-width-module-hook">
1881
  <span class="dslc-icon-columns"></span>
1882
  <div class="dslca-change-width-module-options">
1883
  <span data-size="1">1/12</span><span data-size="2">2/12</span>
@@ -1887,12 +1887,12 @@ class DSLC_Module {
1887
  <span data-size="9">9/12</span><span data-size="10">10/12</span>
1888
  <span data-size="11">11/12</span><span data-size="12">12/12</span>
1889
  </div>
1890
- </a>
1891
- <a href="#" class="dslca-delete-module-hook"><span class="dslc-icon-remove"></span></a>
1892
  </div>
1893
  <?php if ( DS_LIVE_COMPOSER_DEV_MODE ) : ?>
1894
  <div class="dslca-module-manage-inner dslca-dev-mode">
1895
- <a href="#" class="dslca-module-get-defaults-hook"><span class="dslc-icon-upload-alt"></span></a>
1896
  </div>
1897
  <?php endif; ?>
1898
  </div>
1874
  <div class="dslca-module-manage">
1875
  <span class="dslca-module-manage-line"></span>
1876
  <div class="dslca-module-manage-inner">
1877
+ <span class="dslca-module-manage-hook dslca-module-edit-hook"><span class="dslc-icon-cog"></span></span>
1878
+ <span class="dslca-module-manage-hook dslca-copy-module-hook"><span class="dslc-icon-copy"></span></span>
1879
+ <span class="dslca-module-manage-hook dslca-move-module-hook"><span class="dslc-icon-move"></span></span>
1880
+ <span class="dslca-module-manage-hook dslca-change-width-module-hook">
1881
  <span class="dslc-icon-columns"></span>
1882
  <div class="dslca-change-width-module-options">
1883
  <span data-size="1">1/12</span><span data-size="2">2/12</span>
1887
  <span data-size="9">9/12</span><span data-size="10">10/12</span>
1888
  <span data-size="11">11/12</span><span data-size="12">12/12</span>
1889
  </div>
1890
+ </span>
1891
+ <span class="dslca-module-manage-hook dslca-delete-module-hook"><span class="dslc-icon-remove"></span></span>
1892
  </div>
1893
  <?php if ( DS_LIVE_COMPOSER_DEV_MODE ) : ?>
1894
  <div class="dslca-module-manage-inner dslca-dev-mode">
1895
+ <span class="dslca-module-manage-hook dslca-module-get-defaults-hook"><span class="dslc-icon-upload-alt"></span></span>
1896
  </div>
1897
  <?php endif; ?>
1898
  </div>
includes/display-functions.php CHANGED
@@ -306,30 +306,97 @@ function dslc_display_composer() {
306
  if ( empty( $activate_button_position ) )
307
  $activate_button_position = 'right';
308
 
309
- // Show composer activation button
310
- if ( ( ! function_exists( 'is_customize_preview' ) || ! is_customize_preview() ) && is_singular() && !$dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) :
311
 
312
- // If is a page or a template go ahead normally
313
- if ( is_page() || get_post_type() == 'dslc_templates' || ! isset( $dslc_var_templates_pt[get_post_type()] ) ) {
314
-
315
- ?><a href="<?php echo add_query_arg( array( 'dslc' => 'active' ), get_permalink() ); ?>" class="dslca-activate-composer-hook dslca-position-<?php echo $activate_button_position; ?>"><?php _e( 'ACTIVATE EDITOR', 'dslc_string' ); ?></a><?php
316
 
317
- // If not a page or a template
318
- } else {
 
 
 
 
 
 
 
 
 
 
 
 
 
319
 
320
- // Check if it has a template attached to it
321
- $template = dslc_st_get_template_ID( get_the_ID() );
322
- if ( $template ) {
323
 
324
- ?><a target="_blank" href="<?php echo add_query_arg( array( 'dslc' => 'active' ), get_permalink( $template ) ); ?>" class="dslca-activate-composer-hook"><?php _e( 'EDIT TEMPLATE', 'dslc_string' ); ?></a><?php
325
 
326
- } else {
 
 
327
 
328
- ?><a target="_blank" href="<?php echo admin_url( 'post-new.php?post_type=dslc_templates' ); ?>" class="dslca-activate-composer-hook"><?php _e( 'CREATE TEMPLATE', 'dslc_string' ); ?></a><?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
 
330
  }
331
 
332
- }
333
 
334
  endif;
335
 
@@ -417,15 +484,23 @@ function dslc_display_modules() {
417
  }
418
 
419
  /**
420
- * Returns array of active templates (false if none)
421
  *
422
  * @since 1.0
 
 
 
 
423
  */
424
-
425
  function dslc_get_templates() {
426
 
 
427
  global $dslc_var_templates;
428
 
 
 
 
 
429
  if ( empty( $dslc_var_templates ) )
430
  return false;
431
  else
@@ -495,220 +570,208 @@ function dslc_display_templates() {
495
 
496
 
497
  /**
498
- * Outputs content with modules
499
  *
500
  * @since 1.0
501
  */
502
-
503
  function dslc_filter_content( $content ) {
504
 
505
- if ( post_password_required( get_the_ID() ) )
 
506
  return $content;
 
507
 
 
508
  global $dslc_should_filter;
509
  global $wp_the_query;
510
  global $dslc_post_types;
511
- global $dslc_is_content_filtered;
512
 
 
513
  $currID = get_the_ID();
514
- if ( isset( $wp_the_query->queried_object_id ) )
 
 
515
  $realID = $wp_the_query->queried_object_id;
516
- else
517
  $realID = 'nope';
 
518
 
519
- // Should we filter the content?
 
 
 
 
520
  if ( ( $currID == $realID && in_the_loop() && $dslc_should_filter ) || is_archive() || is_author() || is_search() || is_404() ) {
521
 
522
- $dslc_is_content_filtered[ $currID ] = true;
523
-
524
- global $dslc_active;
525
-
526
- // Will hold the output
527
- $composer_header_append = '';
528
- $composer_footer_append = '';
529
- $header_code = '';
530
- $footer_code = '';
531
- $composer_header = '';
532
- $composer_footer = '';
533
- $composer_prepend = '';
534
- $composer_content = '';
535
- $composer_append = '';
536
- $template_code = false;
537
-
538
- // The composer code
539
- if ( dslc_is_editor_active() && get_post_meta( get_the_ID(), 'dslc_code_draft', true ) ) {
540
- $composer_code = get_post_meta( get_the_ID(), 'dslc_code_draft', true );
541
- } else {
542
- $composer_code = get_post_meta( get_the_ID(), 'dslc_code', true );
543
  }
544
- $template_ID = false;
545
 
546
- // Tutorial
 
 
 
547
  $tut_page = false;
548
  $tut_ch_one = dslc_get_option( 'lc_tut_chapter_one', 'dslc_plugin_options_tuts' );
549
  $tut_ch_two = dslc_get_option( 'lc_tut_chapter_two', 'dslc_plugin_options_tuts' );
550
  $tut_ch_three = dslc_get_option( 'lc_tut_chapter_three', 'dslc_plugin_options_tuts' );
551
  $tut_ch_four = dslc_get_option( 'lc_tut_chapter_four', 'dslc_plugin_options_tuts' );
552
 
 
553
  if ( get_the_ID() == $tut_ch_one || get_the_ID() == $tut_ch_four ) {
554
  $tut_page = true;
555
  $composer_code = '';
 
 
556
  } elseif ( get_the_ID() == $tut_ch_two ) {
557
  $tut_page = true;
558
  $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] ';
 
 
559
  } elseif ( get_the_ID() == $tut_ch_three ) {
560
  $tut_page = true;
561
  $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] ';
562
  }
563
 
564
- // If single, load template
565
  if ( is_singular( $dslc_post_types ) ) {
566
 
 
567
  $template_ID = dslc_st_get_template_ID( get_the_ID() );
568
 
 
569
  if ( $template_ID ) {
570
 
571
- // Get template code
572
- if ( dslc_is_editor_active() && get_post_meta( $template_ID, 'dslc_code_draft', true ) ) {
573
- $template_code = get_post_meta( $template_ID, 'dslc_code_draft', true );
574
- } else {
575
- $template_code = get_post_meta( $template_ID, 'dslc_code', true );
576
- }
577
 
578
- // Add the template code
579
  $composer_prepend .= do_shortcode( $template_code );
580
 
581
  }
582
 
583
  }
584
 
585
- // If archive, load template
586
  if ( is_archive() && ! is_author() && ! is_search() ) {
587
 
 
588
  $template_ID = dslc_get_option( get_post_type(), 'dslc_plugin_options_archives' );
589
 
 
590
  if ( $template_ID ) {
591
 
592
- // Get template code
593
- if ( dslc_is_editor_active() && get_post_meta( $template_ID, 'dslc_code_draft', true ) ) {
594
- $template_code = get_post_meta( $template_ID, 'dslc_code_draft', true );
595
- } else {
596
- $template_code = get_post_meta( $template_ID, 'dslc_code', true );
597
- }
598
 
599
- // Add the template code
600
  $composer_prepend .= do_shortcode( $template_code );
601
 
602
  }
603
 
604
  }
605
 
 
606
  if ( is_author() ) {
607
 
 
608
  $template_ID = dslc_get_option( 'author', 'dslc_plugin_options_archives' );
609
 
 
610
  if ( $template_ID ) {
611
 
612
- // Get template code
613
- $template_code = get_post_meta( $template_ID, 'dslc_code', true );
614
 
615
- // Add the template code
616
  $composer_prepend .= do_shortcode( $template_code );
617
 
618
  }
619
 
620
  }
621
 
 
622
  if ( is_search() ) {
623
 
 
624
  $template_ID = dslc_get_option( 'search_results', 'dslc_plugin_options_archives' );
625
 
 
626
  if ( $template_ID ) {
627
 
628
- // Get template code
629
- if ( dslc_is_editor_active() && get_post_meta( $template_ID, 'dslc_code_draft', true ) ) {
630
- $composer_code = get_post_meta( $template_ID, 'dslc_code_draft', true );
631
- } else {
632
- $composer_code = get_post_meta( $template_ID, 'dslc_code', true );
633
- }
634
 
635
  }
636
 
637
  }
638
 
 
639
  if ( is_404() ) {
640
 
 
641
  $template_ID = dslc_get_option( '404_page', 'dslc_plugin_options_archives' );
642
 
 
643
  if ( $template_ID ) {
644
 
645
- // Get template code
646
- if ( dslc_is_editor_active() && get_post_meta( $template_ID, 'dslc_code_draft', true ) ) {
647
- $composer_code = get_post_meta( $template_ID, 'dslc_code_draft', true );
648
- } else {
649
- $composer_code = get_post_meta( $template_ID, 'dslc_code', true );
650
- }
651
 
652
  }
653
 
654
  }
655
 
656
- if ( ! is_singular( 'dslc_hf' ) ) {
 
 
657
 
658
- // Header/Footer
659
- if ( $template_ID ) {
660
- $header_footer = dslc_hf_get_ID( $template_ID );
661
- } else {
662
- $header_footer = dslc_hf_get_ID( get_the_ID() );
663
- }
664
-
665
- if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
666
- if ( $header_footer['header'] )
667
- $composer_header_append = '<div class="dslc-hf-block-overlay"><a target="_blank" href="' . add_query_arg( 'dslc', 'active', get_permalink( $header_footer['header'] ) ) . '" class="dslc-hf-block-overlay-button dslca-link">Edit Header</a></div>';
668
- if ( $header_footer['footer'] )
669
- $composer_footer_append = '<div class="dslc-hf-block-overlay"><a target="_blank" href="' . add_query_arg( 'dslc', 'active', get_permalink( $header_footer['footer'] ) ) . '" class="dslc-hf-block-overlay-button dslca-link">Edit Footer</a></div>';
670
- }
671
-
672
- // Header
673
- if ( $header_footer['header'] ) {
674
- $header_code = get_post_meta( $header_footer['header'], 'dslc_code', true );
675
- if ( get_post_meta( $header_footer['header'], 'dslc_hf_position', true ) ) {
676
- $header_position = get_post_meta( $header_footer['header'], 'dslc_hf_position', true );
677
- } else {
678
- $header_position = 'relative';
679
- }
680
- $composer_header .= '<div id="dslc-header" class="dslc-header-pos-' . $header_position . '">' . do_shortcode( $header_code ) . $composer_header_append . '</div>';
681
- }
682
-
683
- // Footer
684
- if ( $header_footer['footer'] ) {
685
- $footer_code = get_post_meta( $header_footer['footer'], 'dslc_code', true );
686
- if ( get_post_meta( $header_footer['footer'], 'dslc_hf_position', true ) ) {
687
- $footer_position = get_post_meta( $header_footer['footer'], 'dslc_hf_position', true );
688
- } else {
689
- $footer_position = 'relative';
690
- }
691
- $composer_footer .= '<div id="dslc-footer" class="dslc-footer-pos-' . $footer_position . '">' . do_shortcode( $footer_code ) . $composer_footer_append . '</div>';
692
- }
693
 
694
  }
695
 
696
- // Content that shows before the composer content
697
- if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
698
  $composer_prepend = '';
699
  }
700
 
701
- // Content that shows after the composer content
702
- if ( $dslc_active && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) {
703
 
 
704
  $editor_type = dslc_get_option( 'lc_editor_type', 'dslc_plugin_options_other' );
705
- if ( empty( $editor_type ) )
 
 
 
 
706
  $editor_type = 'both';
707
 
 
 
 
708
  $composer_append = '<div class="dslca-add-modules-section">
709
  <span class="dslca-add-modules-section-hook"><span class="dslca-icon dslc-icon-align-justify"></span>' . __( 'Add Modules Row', 'dslc_string' ) . '</span>
710
  <span class="dslca-import-modules-section-hook"><span class="dslca-icon dslc-icon-download-alt"></span>' . __( 'Import', 'dslc_string' ) . '</span>
711
  </div>';
 
 
712
  ob_start();
713
 
714
  ?>
@@ -732,47 +795,71 @@ function dslc_filter_content( $content ) {
732
  </div>
733
  <?php
734
 
 
735
  $composer_append .= ob_get_contents();
736
  ob_end_clean();
 
737
  }
738
 
739
- // If composer code not empty
740
  if ( $composer_code || $template_code ) {
741
- // Generate the composer output
 
742
  $composer_content = do_shortcode( $composer_code );
743
- } elseif ( $header_code || $footer_code ) {
 
 
 
 
 
 
 
 
744
 
745
- if ( ! DS_LIVE_COMPOSER_ACTIVE )
746
- return '<div id="dslc-content" class="dslc-content dslc-clearfix">' . $composer_header . '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>' . $composer_footer . '</div>';
747
 
748
  } else {
749
 
750
- if ( ! DS_LIVE_COMPOSER_ACTIVE )
 
 
 
751
  return '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>';
752
 
 
 
753
  }
754
 
755
- // Post data
756
- if ( is_singular() && has_post_thumbnail( get_the_ID() ) )
 
757
  $composer_append .= '<input type="hidden" id="dslca-post-data-thumb" value="' . wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) ) . '" />';
 
758
 
759
- // Tutorial page
760
- if ( $tut_page )
 
761
  $composer_append .= '<input type="hidden" id="dslca-tut-page" value="' . get_the_ID() . '" />';
 
762
 
763
- // Regular textual content holder ( for search purposes )
764
  $content_for_search = '';
765
- if ( get_post_meta( get_the_ID(), 'dslc_content_for_search', true ) )
766
  $content_for_search = get_post_meta( get_the_ID(), 'dslc_content_for_search', true );
 
767
 
768
- if ( DS_LIVE_COMPOSER_ACTIVE )
 
769
  $composer_append .= '<textarea id="dslca-content-for-search">' . $content_for_search . '</textarea>';
 
770
 
771
- // Return the composer output and the regular WYSIWYG output
772
- return '<div id="dslc-content" class="dslc-content dslc-clearfix">' . 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') . '</div>';
773
 
 
774
  } else {
775
 
 
776
  return '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>';
777
 
778
  }
@@ -1153,7 +1240,7 @@ function dslc_load_template( $filename, $default = '' ) {
1153
 
1154
  function dslc_custom_css() {
1155
 
1156
- if ( ! is_singular() && ! is_archive() && ! is_author() && ! is_search() && ! is_404() )
1157
  return;
1158
 
1159
  global $dslc_active;
@@ -1226,91 +1313,16 @@ function dslc_custom_css() {
1226
  $composer_code .= $footer_code;
1227
  }
1228
 
1229
- echo '<style type="text/css">';
1230
-
1231
- // If single, load template
1232
- if ( is_singular( $dslc_post_types ) ) {
1233
-
1234
- if ( $template_ID ) {
1235
-
1236
- $template_code = get_post_meta( $template_ID, 'dslc_code', true );
1237
- $composer_code .= $template_code;
1238
-
1239
- }
1240
-
1241
- }
1242
-
1243
- // If archive, load template
1244
- if ( is_archive() && ! is_author() && ! is_search() ) {
1245
-
1246
- $template_ID = dslc_get_option( get_post_type(), 'dslc_plugin_options_archives' );
1247
-
1248
- if ( $template_ID ) {
1249
-
1250
- // Get template code
1251
- $template_code = get_post_meta( $template_ID, 'dslc_code', true );
1252
-
1253
- // Add the template code
1254
- $composer_code .= $template_code;
1255
-
1256
- }
1257
-
1258
- }
1259
-
1260
- // If archive, load template
1261
- if ( is_author() ) {
1262
-
1263
- $template_ID = dslc_get_option( 'author', 'dslc_plugin_options_archives' );
1264
-
1265
- if ( $template_ID ) {
1266
-
1267
- // Get template code
1268
- $template_code = get_post_meta( $template_ID, 'dslc_code', true );
1269
-
1270
- // Add the template code
1271
- $composer_code .= $template_code;
1272
-
1273
- }
1274
-
1275
- }
1276
-
1277
- // If search, load template
1278
- if ( is_search() ) {
1279
-
1280
- $template_ID = dslc_get_option( 'search_results', 'dslc_plugin_options_archives' );
1281
-
1282
- if ( $template_ID ) {
1283
-
1284
- // Get template code
1285
- $template_code = get_post_meta( $template_ID, 'dslc_code', true );
1286
-
1287
- // Add the template code
1288
- $composer_code .= $template_code;
1289
-
1290
- }
1291
-
1292
- }
1293
-
1294
- // If 404, load template
1295
- if ( is_404() ) {
1296
-
1297
- $template_ID = dslc_get_option( '404_page', 'dslc_plugin_options_archives' );
1298
-
1299
- if ( $template_ID ) {
1300
-
1301
- // Get template code
1302
- $template_code = get_post_meta( $template_ID, 'dslc_code', true );
1303
 
1304
- // Add the template code
1305
- $composer_code .= $template_code;
 
1306
 
1307
- }
1308
-
1309
- }
1310
-
1311
- // Get composer code
1312
- $post_id = get_the_ID();
1313
- $composer_code .= get_post_meta( $post_id, 'dslc_code', true );
1314
 
1315
  // If composer not used on this page stop execution
1316
  if ( $composer_code ) {
306
  if ( empty( $activate_button_position ) )
307
  $activate_button_position = 'right';
308
 
309
+ // LC and WP Customizer do not work well together, don't proceed if customizer active
310
+ if ( ( ! function_exists( 'is_customize_preview' ) || ! is_customize_preview() ) ) :
311
 
312
+ // If editor not active and user can access the editor
313
+ if ( ! DS_LIVE_COMPOSER_ACTIVE && is_user_logged_in() && current_user_can( DS_LIVE_COMPOSER_CAPABILITY ) ) :
 
 
314
 
315
+ // If a singular page ( posts and pages )
316
+ if ( is_singular() ) {
317
+
318
+ // If a page or a template go ahead normally
319
+ if ( is_page() || get_post_type() == 'dslc_templates' || ! isset( $dslc_var_templates_pt[get_post_type()] ) ) {
320
+
321
+ ?><a href="<?php echo add_query_arg( array( 'dslc' => 'active' ), get_permalink() ); ?>" class="dslca-activate-composer-hook dslca-position-<?php echo $activate_button_position; ?>"><?php _e( 'ACTIVATE EDITOR', 'dslc_string' ); ?></a><?php
322
+
323
+ // If not a page or a template post type
324
+ } else {
325
+
326
+ // Check if it has a template attached to it
327
+ $template = dslc_st_get_template_ID( get_the_ID() );
328
+
329
+ if ( $template ) {
330
 
331
+ ?><a target="_blank" href="<?php echo add_query_arg( array( 'dslc' => 'active' ), get_permalink( $template ) ); ?>" class="dslca-activate-composer-hook"><?php _e( 'EDIT TEMPLATE', 'dslc_string' ); ?></a><?php
 
 
332
 
333
+ } else {
334
 
335
+ ?><a target="_blank" href="<?php echo admin_url( 'post-new.php?post_type=dslc_templates' ); ?>" class="dslca-activate-composer-hook"><?php _e( 'CREATE TEMPLATE', 'dslc_string' ); ?></a><?php
336
+
337
+ }
338
 
339
+ }
340
+
341
+ // If a 404 page
342
+ } elseif ( is_404() ) {
343
+
344
+ // Get ID of the page set to power the 404 page
345
+ $template_ID = dslc_get_option( '404_page', 'dslc_plugin_options_archives' );
346
+
347
+ // If there is a page that powers it
348
+ if ( $template_ID != 'none' ) {
349
+
350
+ // Output the button
351
+ ?><a href="<?php echo add_query_arg( array( 'dslc' => 'active' ), get_permalink( $template_ID ) ); ?>" class="dslca-activate-composer-hook dslca-position-<?php echo $activate_button_position; ?>"><?php _e( 'ACTIVATE EDITOR', 'dslc_string' ); ?></a><?php
352
+
353
+ }
354
+
355
+ // If a search results page
356
+ } elseif ( is_search() ) {
357
+
358
+ // Get ID of the page set to power the search results page
359
+ $template_ID = dslc_get_option( 'search_results', 'dslc_plugin_options_archives' );
360
+
361
+ // If there is a page that powers it
362
+ if ( $template_ID != 'none' ) {
363
+
364
+ // Output the button
365
+ ?><a href="<?php echo add_query_arg( array( 'dslc' => 'active' ), get_permalink( $template_ID ) ); ?>" class="dslca-activate-composer-hook dslca-position-<?php echo $activate_button_position; ?>"><?php _e( 'ACTIVATE EDITOR', 'dslc_string' ); ?></a><?php
366
+
367
+ }
368
+
369
+ // If authors archives page
370
+ } elseif ( is_author() ) {
371
+
372
+ // Get ID of the page set to power the author archives
373
+ $template_ID = dslc_get_option( 'author', 'dslc_plugin_options_archives' );
374
+
375
+ // If there is a page that powers it
376
+ if ( $template_ID != 'none' ) {
377
+
378
+ // Output the button
379
+ ?><a href="<?php echo add_query_arg( array( 'dslc' => 'active' ), get_permalink( $template_ID ) ); ?>" class="dslca-activate-composer-hook dslca-position-<?php echo $activate_button_position; ?>"><?php _e( 'ACTIVATE EDITOR', 'dslc_string' ); ?></a><?php
380
+
381
+ }
382
+
383
+ // If other archives ( not author )
384
+ } elseif ( is_archive() ) {
385
+
386
+ // Get ID of the page set to power the archives of the shown post type
387
+ $template_ID = dslc_get_option( get_post_type(), 'dslc_plugin_options_archives' );
388
+
389
+ // If there is a page that powers it
390
+ if ( $template_ID != 'none' ) {
391
+
392
+ // Output the button
393
+ ?><a href="<?php echo add_query_arg( array( 'dslc' => 'active' ), get_permalink( $template_ID ) ); ?>" class="dslca-activate-composer-hook dslca-position-<?php echo $activate_button_position; ?>"><?php _e( 'ACTIVATE EDITOR', 'dslc_string' ); ?></a><?php
394
+
395
+ }
396
 
397
  }
398
 
399
+ endif;
400
 
401
  endif;
402
 
484
  }
485
 
486
  /**
487
+ * Returns array of active templates
488
  *
489
  * @since 1.0
490
+ *
491
+ * @return array Multidimensional array of LC templates. Bool false if none
492
+ * One array per each template. Key of array is template ID
493
+ * Each template has array parameters title|id|code|section
494
  */
 
495
  function dslc_get_templates() {
496
 
497
+ // Global var holding templates information
498
  global $dslc_var_templates;
499
 
500
+ // Filter to hook into
501
+ $dslc_var_templates = apply_filters( 'dslc_get_templates', $dslc_var_templates );
502
+
503
+ // Return templates ( false if none )
504
  if ( empty( $dslc_var_templates ) )
505
  return false;
506
  else
570
 
571
 
572
  /**
573
+ * Hooks into the_content filter to add LC elements
574
  *
575
  * @since 1.0
576
  */
 
577
  function dslc_filter_content( $content ) {
578
 
579
+ // If post pass protected and pass not supplied return original content
580
+ if ( post_password_required( get_the_ID() ) ) {
581
  return $content;
582
+ }
583
 
584
+ // Global variables
585
  global $dslc_should_filter;
586
  global $wp_the_query;
587
  global $dslc_post_types;
 
588
 
589
+ // Get ID of the post in which the content filter fired
590
  $currID = get_the_ID();
591
+
592
+ // Get ID of the post from the main query
593
+ if ( isset( $wp_the_query->queried_object_id ) ) {
594
  $realID = $wp_the_query->queried_object_id;
595
+ } else {
596
  $realID = 'nope';
597
+ }
598
 
599
+ // Check if we should we filtering the content
600
+ // 1) Proceed if ID of the post in which content filter fired is same as the post ID from the main query
601
+ // 2) Proceed if in a WordPress loop ( https://codex.wordpress.org/Function_Reference/in_the_loop )
602
+ // 3) Proceed if global var $dslc_should_filter is true
603
+ // Irrelevant of the other 3 proceed if archives, search or 404 page
604
  if ( ( $currID == $realID && in_the_loop() && $dslc_should_filter ) || is_archive() || is_author() || is_search() || is_404() ) {
605
 
606
+ // Variables that are used throughout the function
607
+ $composer_wrapper_before = '';
608
+ $composer_wrapper_after = '';
609
+ $composer_header_append = ''; // HTML to output after LC header HTML
610
+ $composer_footer_append = ''; // HTML to otuput after LC footer HTML
611
+ $composer_header = ''; // HTML for LC header
612
+ $composer_footer = ''; // HTML for LC footer
613
+ $composer_prepend = ''; // HTML to output before LC content
614
+ $composer_content = ''; // HTML for LC content
615
+ $composer_append = ''; // HTML to ouput after LC content
616
+ $template_code = false; // LC code if current post powered by template
617
+ $template_ID = false; // ID of the template that powers current post
618
+
619
+ // Wrapping all LC elements ( unless header/footer outputed by theme )
620
+ if ( ! defined( 'DS_LIVE_COMPOSER_HF_AUTO' ) || DS_LIVE_COMPOSER_HF_AUTO ) {
621
+ $composer_wrapper_before = '<div id="dslc-content" class="dslc-content dslc-clearfix">';
622
+ $composer_wrapper_after = '</div>';
 
 
 
 
623
  }
 
624
 
625
+ // Get LC code of the current post
626
+ $composer_code = dslc_get_code( get_the_ID() );
627
+
628
+ // Interactive Tutorials
629
  $tut_page = false;
630
  $tut_ch_one = dslc_get_option( 'lc_tut_chapter_one', 'dslc_plugin_options_tuts' );
631
  $tut_ch_two = dslc_get_option( 'lc_tut_chapter_two', 'dslc_plugin_options_tuts' );
632
  $tut_ch_three = dslc_get_option( 'lc_tut_chapter_three', 'dslc_plugin_options_tuts' );
633
  $tut_ch_four = dslc_get_option( 'lc_tut_chapter_four', 'dslc_plugin_options_tuts' );
634
 
635
+ // If current page set to be tutorial chapter one or four
636
  if ( get_the_ID() == $tut_ch_one || get_the_ID() == $tut_ch_four ) {
637
  $tut_page = true;
638
  $composer_code = '';
639
+
640
+ // If current page set to be tutorial chapter two
641
  } elseif ( get_the_ID() == $tut_ch_two ) {
642
  $tut_page = true;
643
  $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] ';
644
+
645
+ // If current page set to be tutorial chapter three
646
  } elseif ( get_the_ID() == $tut_ch_three ) {
647
  $tut_page = true;
648
  $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] ';
649
  }
650
 
651
+ // If currently showing a singular post of a post type that supports "post templates"
652
  if ( is_singular( $dslc_post_types ) ) {
653
 
654
+ // Get template ID set for currently shown post
655
  $template_ID = dslc_st_get_template_ID( get_the_ID() );
656
 
657
+ // If template ID exists
658
  if ( $template_ID ) {
659
 
660
+ // Get LC code of the template
661
+ $template_code = dslc_get_code( $template_ID );
 
 
 
 
662
 
663
+ // Add the template code to the holder variable
664
  $composer_prepend .= do_shortcode( $template_code );
665
 
666
  }
667
 
668
  }
669
 
670
+ // If currently showing a category archive page
671
  if ( is_archive() && ! is_author() && ! is_search() ) {
672
 
673
+ // Get ID of the page set to power the category of the current post type
674
  $template_ID = dslc_get_option( get_post_type(), 'dslc_plugin_options_archives' );
675
 
676
+ // If there is a page that powers it
677
  if ( $template_ID ) {
678
 
679
+ // Get LC code of the page
680
+ $template_code = dslc_get_code( $template_ID );
 
 
 
 
681
 
682
+ // Add the template code to the holder variable
683
  $composer_prepend .= do_shortcode( $template_code );
684
 
685
  }
686
 
687
  }
688
 
689
+ // If currently showing an author archive page
690
  if ( is_author() ) {
691
 
692
+ // Get ID of the page set to power the author archives
693
  $template_ID = dslc_get_option( 'author', 'dslc_plugin_options_archives' );
694
 
695
+ // If there is a page that powers it
696
  if ( $template_ID ) {
697
 
698
+ // Get LC code of the page
699
+ $template_code = dslc_get_code( $template_ID );
700
 
701
+ // Add the template code to the holder variable
702
  $composer_prepend .= do_shortcode( $template_code );
703
 
704
  }
705
 
706
  }
707
 
708
+ // If currently showing a search results page
709
  if ( is_search() ) {
710
 
711
+ // Get ID of the page set to power the search results page
712
  $template_ID = dslc_get_option( 'search_results', 'dslc_plugin_options_archives' );
713
 
714
+ // If there is a page that powers it
715
  if ( $template_ID ) {
716
 
717
+ // Get LC code of the page
718
+ $composer_code = dslc_get_code( $template_ID );
 
 
 
 
719
 
720
  }
721
 
722
  }
723
 
724
+ // If currently showina 404 page
725
  if ( is_404() ) {
726
 
727
+ // Get ID of the page set to power the 404 page
728
  $template_ID = dslc_get_option( '404_page', 'dslc_plugin_options_archives' );
729
 
730
+ // If there is a page that powers it
731
  if ( $template_ID ) {
732
 
733
+ // Get LC code of the page
734
+ $composer_code = dslc_get_code( $template_ID );
 
 
 
 
735
 
736
  }
737
 
738
  }
739
 
740
+ // If currently showing a singular post of a post type which is not "dslc_hf" ( used for header/footer )
741
+ // And the constant DS_LIVE_COMPOSER_HF_AUTO is not defined or is set to false
742
+ if ( ! is_singular( 'dslc_hf' ) && ( ! defined( 'DS_LIVE_COMPOSER_HF_AUTO' ) || DS_LIVE_COMPOSER_HF_AUTO ) ) {
743
 
744
+ $composer_header = dslc_hf_get_header();
745
+ $composer_footer = dslc_hf_get_footer();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
746
 
747
  }
748
 
749
+ // If editor is currently active clear the composer_prepend var
750
+ if ( dslc_is_editor_active( 'access' ) ) {
751
  $composer_prepend = '';
752
  }
753
 
754
+ // If editor is currently active generate the LC elements and store them in composer_append var
755
+ if ( dslc_is_editor_active( 'access' ) ) {
756
 
757
+ // Get the editor type from the settings
758
  $editor_type = dslc_get_option( 'lc_editor_type', 'dslc_plugin_options_other' );
759
+
760
+ // If no editor type set in settings
761
+ if ( empty( $editor_type ) ) {
762
+
763
+ // Default to "both" ( Visual and HTML )
764
  $editor_type = 'both';
765
 
766
+ }
767
+
768
+ // The "Add modules row" and "Import" buttons
769
  $composer_append = '<div class="dslca-add-modules-section">
770
  <span class="dslca-add-modules-section-hook"><span class="dslca-icon dslc-icon-align-justify"></span>' . __( 'Add Modules Row', 'dslc_string' ) . '</span>
771
  <span class="dslca-import-modules-section-hook"><span class="dslca-icon dslc-icon-download-alt"></span>' . __( 'Import', 'dslc_string' ) . '</span>
772
  </div>';
773
+
774
+ // Start output fetching
775
  ob_start();
776
 
777
  ?>
795
  </div>
796
  <?php
797
 
798
+ // Stop output fetching
799
  $composer_append .= ob_get_contents();
800
  ob_end_clean();
801
+
802
  }
803
 
804
+ // If there is LC code to add to the content output
805
  if ( $composer_code || $template_code ) {
806
+
807
+ // Turn the LC code into HTML code
808
  $composer_content = do_shortcode( $composer_code );
809
+
810
+ // If there is header or footer LC code to add to the content output
811
+ } elseif ( $composer_header || $composer_footer ) {
812
+
813
+ // If editor not active
814
+ if ( ! DS_LIVE_COMPOSER_ACTIVE ) {
815
+
816
+ // Pass the LC header, regular content and LC footer
817
+ 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;
818
 
819
+ }
 
820
 
821
  } else {
822
 
823
+ // If editor not active
824
+ if ( ! DS_LIVE_COMPOSER_ACTIVE ) {
825
+
826
+ // Pass back the original wrapped in a div ( in case there's a need to style it )
827
  return '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>';
828
 
829
+ }
830
+
831
  }
832
 
833
+ // If singular post shown and has a featured image
834
+ if ( is_singular() && has_post_thumbnail( get_the_ID() ) ) {
835
+ // Hidden input holding value of the URL of the featured image of the shown post ( used by rows for BG image )
836
  $composer_append .= '<input type="hidden" id="dslca-post-data-thumb" value="' . wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) ) . '" />';
837
+ }
838
 
839
+ // If current page is used for a tutorial
840
+ if ( $tut_page ) {
841
+ // Hidden input holding value of the current post ID
842
  $composer_append .= '<input type="hidden" id="dslca-tut-page" value="' . get_the_ID() . '" />';
843
+ }
844
 
845
+ // Get readable representation of the LC modules output ( textual output )
846
  $content_for_search = '';
847
+ if ( get_post_meta( get_the_ID(), 'dslc_content_for_search', true ) ) {
848
  $content_for_search = get_post_meta( get_the_ID(), 'dslc_content_for_search', true );
849
+ }
850
 
851
+ // If editor active include a textarea that holds readable representation of the output
852
+ if ( DS_LIVE_COMPOSER_ACTIVE ) {
853
  $composer_append .= '<textarea id="dslca-content-for-search">' . $content_for_search . '</textarea>';
854
+ }
855
 
856
+ // Pass the filtered content output
857
+ return $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;
858
 
859
+ // If LC should not filter the content
860
  } else {
861
 
862
+ // Pass back the original wrapped in a div ( in case there's a need to style it )
863
  return '<div id="dslc-theme-content"><div id="dslc-theme-content-inner">' . $content . '</div></div>';
864
 
865
  }
1240
 
1241
  function dslc_custom_css() {
1242
 
1243
+ if ( ! is_singular() && ! is_archive() && ! is_author() && ! is_search() && ! is_404() && ! is_home() )
1244
  return;
1245
 
1246
  global $dslc_active;
1313
  $composer_code .= $footer_code;
1314
  }
1315
 
1316
+ // Template content
1317
+ if ( $template_ID ) {
1318
+ $composer_code .= get_post_meta( $template_ID, 'dslc_code', true );
1319
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1320
 
1321
+ // Post/Page content
1322
+ $post_id = get_the_ID();
1323
+ $composer_code .= get_post_meta( $post_id, 'dslc_code', true );
1324
 
1325
+ echo '<style type="text/css">';
 
 
 
 
 
 
1326
 
1327
  // If composer not used on this page stop execution
1328
  if ( $composer_code ) {
includes/functions.php CHANGED
@@ -17,6 +17,7 @@
17
  * - dslc_is_module_active ( Check if a specific module is active - can be disabled in LC settings )
18
  * - dslc_save_preset ( Save a preset )
19
  * - dslc_is_editor_active ( Check if the editor is currently active )
 
20
  */
21
 
22
  /**
@@ -651,11 +652,63 @@ function dslc_save_preset( $preset_name, $preset_code_raw, $module_id ) {
651
  * @since 1.0
652
  */
653
 
654
- function dslc_is_editor_active() {
655
 
656
- if ( DS_LIVE_COMPOSER_ACTIVE && current_user_can( DS_LIVE_COMPOSER_CAPABILITY_SAVE ) )
 
 
 
 
 
 
 
 
 
657
  return true;
658
- else
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
659
  return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
660
 
661
  }
17
  * - dslc_is_module_active ( Check if a specific module is active - can be disabled in LC settings )
18
  * - dslc_save_preset ( Save a preset )
19
  * - dslc_is_editor_active ( Check if the editor is currently active )
20
+ * - dslc_get_code ( Gets LC code of a specific post/page )
21
  */
22
 
23
  /**
652
  * @since 1.0
653
  */
654
 
655
+ function dslc_is_editor_active( $capability = 'save') {
656
 
657
+ // Check for saving capability
658
+ if ( $capability == 'save' ) {
659
+ $capability_check = DS_LIVE_COMPOSER_CAPABILITY_SAVE;
660
+ // Check for access capability ( can use editor but can't publish changes )
661
+ } elseif ( $capability == 'access' ) {
662
+ $capability_check = DS_LIVE_COMPOSER_CAPABILITY;
663
+ }
664
+
665
+ // Check if editor is activated and current user can use the editor
666
+ if ( DS_LIVE_COMPOSER_ACTIVE && current_user_can( $capability_check ) ) {
667
  return true;
668
+ } else {
669
+ return false;
670
+ }
671
+
672
+ }
673
+
674
+ /**
675
+ * Gets LC code of a specific post/page
676
+ *
677
+ * @since 1.0.2
678
+ *
679
+ * @param int $postID ID of the post/page. Default false.
680
+ * @param bool $draft If true will check for draft first. Default true.
681
+ * @return string The LC code for the post/page. Empty string if no LC code.
682
+ */
683
+ function dslc_get_code( $postID = false, $draft = true ) {
684
+
685
+ // This will be returned at the end
686
+ $code = '';
687
+
688
+ // If post ID not supplied ask WordPress
689
+ if ( ! $postID ) {
690
+ $postID = get_the_ID();
691
+ }
692
+
693
+ // If still no ID return false
694
+ if ( ! $postID ) {
695
  return false;
696
+ }
697
+
698
+ // If draft allowed ( func parameter ) and editor currently active and there is a draft version
699
+ if ( $draft && dslc_is_editor_active() && get_post_meta( $postID, 'dslc_code_draft', true ) ) {
700
+
701
+ // Load draft LC code
702
+ $code = get_post_meta( $postID, 'dslc_code_draft', true );
703
+
704
+ } else {
705
+
706
+ // Load regular ( current ) LC code
707
+ $code = get_post_meta( $postID, 'dslc_code', true );
708
+
709
+ }
710
+
711
+ // Pass it back
712
+ return $code;
713
 
714
  }
includes/header-footer.php CHANGED
@@ -9,6 +9,9 @@
9
  * - dslc_hf_unique_default ( Make sure there's only one default per header and footer )
10
  * - dslc_hf_options ( Register options for posts/pages to choose which header/footer to use )
11
  * - dslc_hf_get_ID ( Get the header and footer ID of a specific post/page )
 
 
 
12
  */
13
 
14
  /**
@@ -300,15 +303,54 @@ function dslc_hf_options() {
300
  } add_action( 'init', 'dslc_hf_options' );
301
 
302
  /**
303
- * Get the header and footer ID of a specific post/page
304
  *
305
  * @since 1.0
 
 
 
306
  */
 
307
 
308
- function dslc_hf_get_ID( $post_ID ) {
309
-
310
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) return array( 'header' => false, 'footer' => false );
311
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  // Get header/footer template
313
  $header_tpl = get_post_meta( $post_ID, 'dslc_header', true );
314
  $footer_tpl = get_post_meta( $post_ID, 'dslc_footer', true );
@@ -410,3 +452,175 @@ function dslc_hf_get_ID( $post_ID ) {
410
 
411
  }
412
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  * - dslc_hf_unique_default ( Make sure there's only one default per header and footer )
10
  * - dslc_hf_options ( Register options for posts/pages to choose which header/footer to use )
11
  * - dslc_hf_get_ID ( Get the header and footer ID of a specific post/page )
12
+ * - dslc_hf_get_code ( Get the header or footer LC code of a specific post/page )
13
+ * - dslc_hf_get_header ( Get the header output code )
14
+ * - dslc_hf_get_footer ( Get the footer output code )
15
  */
16
 
17
  /**
303
  } add_action( 'init', 'dslc_hf_options' );
304
 
305
  /**
306
+ * Get the header and footer IDs of a specific post/page
307
  *
308
  * @since 1.0
309
+ *
310
+ * @param int $post_ID ID of the post/page. Default false ( Automatically finds ID ).
311
+ * @return array The IDs of the header and footer associated with the post/page. False if none.
312
  */
313
+ function dslc_hf_get_ID( $post_ID = false ) {
314
 
315
+ // If theme does not define header/footer compatibility return false
 
316
  if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) return array( 'header' => false, 'footer' => false );
317
 
318
+ // If current page is actually header/footer post, return false
319
+ if ( is_singular( 'dslc_hf' ) ) return array( 'header' => false, 'footer' => false );
320
+
321
+ // Global vars
322
+ global $dslc_post_types;
323
+
324
+ // If post ID not supplied, figure it out
325
+ if ( ! $post_ID ) {
326
+
327
+ // If currently showing a singular post of a post type that supports "post templates"
328
+ if ( is_singular( $dslc_post_types ) ) {
329
+ $post_ID = dslc_st_get_template_ID( get_the_ID() );
330
+
331
+ // If currently showing a category archive page
332
+ } elseif ( is_archive() && ! is_author() && ! is_search() ) {
333
+ $post_ID = dslc_get_option( get_post_type(), 'dslc_plugin_options_archives' );
334
+
335
+ // If currently showing an author archive page
336
+ } elseif ( is_author() ) {
337
+ $post_ID = dslc_get_option( 'author', 'dslc_plugin_options_archives' );
338
+
339
+ // If currently showing a search results page
340
+ } elseif ( is_search() ) {
341
+ $post_ID = dslc_get_option( 'search_results', 'dslc_plugin_options_archives' );
342
+
343
+ // If currently showina 404 page
344
+ } elseif ( is_404() ) {
345
+ $post_ID = dslc_get_option( '404_page', 'dslc_plugin_options_archives' );
346
+
347
+ // Otherwise just get the ID
348
+ } else {
349
+ $post_ID = get_the_ID();
350
+ }
351
+
352
+ }
353
+
354
  // Get header/footer template
355
  $header_tpl = get_post_meta( $post_ID, 'dslc_header', true );
356
  $footer_tpl = get_post_meta( $post_ID, 'dslc_footer', true );
452
 
453
  }
454
 
455
+ /**
456
+ * Get the header or footer LC code of a specific post/page
457
+ *
458
+ * @since 1.0.2
459
+ *
460
+ * @param int $post_ID ID of the post/page. Default false.
461
+ * @param string $h_or_f Accepted values 'header' and 'footer'. Defaults to 'header'
462
+ * @return string The LC code for the header/footer of the post/page. Empty string if no LC code.
463
+ */
464
+ function dslc_hf_get_code( $post_ID = false, $h_or_f = 'header' ) {
465
+
466
+ // If support for header/footer functionality not set or is set to false, return empty string
467
+ if ( ! defined( 'DS_LIVE_COMPOSER_HF' ) || ! DS_LIVE_COMPOSER_HF ) return '';
468
+
469
+ // This will be returned at the end
470
+ $code = '';
471
+
472
+ // If post ID not supplied ask WordPress
473
+ if ( ! $post_ID ) {
474
+ $post_ID = get_the_ID();
475
+ }
476
+
477
+ // If still no ID return empty string
478
+ if ( ! $post_ID ) {
479
+ return '';
480
+ }
481
+
482
+ // Get ID of the header/footer powering the post
483
+ $header_footer = dslc_hf_get_ID( $post_ID );
484
+
485
+ // If post has header/footer attached
486
+ if ( $header_footer[$h_or_f] ) {
487
+ // Get LC code of the header/footer powering the post
488
+ $code = get_post_meta( $header_footer[$h_or_f], 'dslc_code', true );
489
+ }
490
+
491
+ // Pass it back
492
+ return $code;
493
+
494
+ }
495
+
496
+ /**
497
+ * Get the header output code
498
+ *
499
+ * @since 1.0.2
500
+ *
501
+ * @param int $post_ID ID of the post/page. Default false.
502
+ * @return string The HTML ouput of the header for a defined post/page
503
+ */
504
+ function dslc_hf_get_header( $post_ID = false ) {
505
+
506
+ // Var defaults
507
+ $append = '';
508
+ $wrapper_start = '';
509
+
510
+ // Wrap if header handled by theme
511
+ if ( defined( 'DS_LIVE_COMPOSER_HF_AUTO' ) && ! DS_LIVE_COMPOSER_HF_AUTO ) {
512
+ $wrapper_start = '<div id="dslc-content" class="dslc-content dslc-clearfix">';
513
+ }
514
+
515
+ // If the page displayed is header/footer, do not repeat
516
+ if ( is_singular( 'dslc_hf' ) ) {
517
+ return $wrapper_start;
518
+ }
519
+
520
+ // Get header/footer ID associated with the post
521
+ $header_footer = dslc_hf_get_ID( $post_ID );
522
+
523
+ // If there is a header applied
524
+ if ( $header_footer['header'] ) {
525
+
526
+ // Get the header LC code
527
+ $header_code = get_post_meta( $header_footer['header'], 'dslc_code', true );
528
+
529
+ // If the "position" option value exists
530
+ if ( get_post_meta( $header_footer['header'], 'dslc_hf_position', true ) ) {
531
+
532
+ // Set the "position" option value to the one from the settings
533
+ $header_position = get_post_meta( $header_footer['header'], 'dslc_hf_position', true );
534
+
535
+ } else {
536
+
537
+ // Set the "position" option value to default "relative"
538
+ $header_position = 'relative';
539
+
540
+ }
541
+
542
+ // If editor active
543
+ if ( dslc_is_editor_active( 'access' ) ) {
544
+
545
+ // Set the HTML for the edit overlay
546
+ $append = '<div class="dslc-hf-block-overlay"><a target="_blank" href="' . add_query_arg( 'dslc', 'active', get_permalink( $header_footer['header'] ) ) . '" class="dslc-hf-block-overlay-button dslca-link">Edit Header</a></div>';
547
+
548
+ }
549
+
550
+ // Add the header code to the variable holder
551
+ return $wrapper_start . '<div id="dslc-header" class="dslc-header-pos-' . $header_position . '">' . do_shortcode( $header_code ) . $append . '</div>';
552
+
553
+ // If no header applied
554
+ } else {
555
+
556
+ return $wrapper_start . '';
557
+
558
+ }
559
+
560
+ }
561
+
562
+ /**
563
+ * Get the footer output code
564
+ *
565
+ * @since 1.0.2
566
+ *
567
+ * @param int $post_ID ID of the post/page. Default false.
568
+ * @return string The HTML ouput of the footer for a defined post/page
569
+ */
570
+ function dslc_hf_get_footer( $post_ID = false ) {
571
+
572
+ // Var defaults
573
+ $append = '';
574
+ $wrapper_end = '';
575
+
576
+ // Wrap if header handled by theme
577
+ if ( defined( 'DS_LIVE_COMPOSER_HF_AUTO' ) && ! DS_LIVE_COMPOSER_HF_AUTO ) {
578
+ $wrapper_end = '</div>';
579
+ }
580
+
581
+ // If the page displayed is header/footer, do not repeat
582
+ if ( is_singular( 'dslc_hf' ) ) {
583
+ return $wrapper_end;
584
+ }
585
+
586
+ // Get header/footer ID associated with the post
587
+ $header_footer = dslc_hf_get_ID( $post_ID );
588
+
589
+ // If there is a footer applied
590
+ if ( $header_footer['footer'] ) {
591
+
592
+ // Get the footer LC code
593
+ $footer_code = get_post_meta( $header_footer['footer'], 'dslc_code', true );
594
+
595
+ // If the "position" option value exists
596
+ if ( get_post_meta( $header_footer['footer'], 'dslc_hf_position', true ) ) {
597
+
598
+ // Set the "position" option value to the one from the settings
599
+ $footer_position = get_post_meta( $header_footer['footer'], 'dslc_hf_position', true );
600
+
601
+ } else {
602
+
603
+ // Set the "position" option value to default "relative"
604
+ $footer_position = 'relative';
605
+
606
+ }
607
+
608
+ // If editor active
609
+ if ( dslc_is_editor_active( 'access' ) ) {
610
+
611
+ // Set the HTML for the edit overlay
612
+ $append = '<div class="dslc-hf-block-overlay"><a target="_blank" href="' . add_query_arg( 'dslc', 'active', get_permalink( $header_footer['footer'] ) ) . '" class="dslc-hf-block-overlay-button dslca-link">Edit Footer</a></div>';
613
+
614
+ }
615
+
616
+ // Add the header code to the variable holder
617
+ return '<div id="dslc-footer" class="dslc-footer-pos-' . $footer_position . '">' . do_shortcode( $footer_code ) . $append . '</div>' . $wrapper_end;
618
+
619
+ // If no header applied
620
+ } else {
621
+
622
+ return '' . $wrapper_end;
623
+
624
+ }
625
+
626
+ }
includes/scripts.php CHANGED
@@ -47,6 +47,23 @@ function dslc_load_scripts() {
47
  'str_res_phone' => __( 'phone', 'dslc_string' )
48
  );
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  /**
51
  * CSS
52
  */
@@ -122,6 +139,8 @@ function dslc_load_scripts() {
122
  wp_localize_script( 'dslc-builder-main-js', 'DSLCAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php', 'http' ) ) );
123
  }
124
  wp_localize_script( 'dslc-builder-main-js', 'DSLCString', $translation_array );
 
 
125
 
126
  }
127
 
47
  'str_res_phone' => __( 'phone', 'dslc_string' )
48
  );
49
 
50
+ // Array of fonts available to be used in LC editor
51
+ $fonts_array = array(
52
+ 'regular' => array( "Georgia", "Times", "Arial", "Lucida Sans Unicode", "Tahoma", "Trebuchet MS", "Verdana", "Helvetica" ),
53
+ 'google' => array( "ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Baumans","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script", "Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","Eagle Lake","Eater","EB Garamond","Economica","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Holtwood One SC","Homemade Apple","Homenaje","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kameron","Karla","Kaushan Script","Kavoon","Keania One","Kelly Slab","Kenia","Kite One","Knewave","Kotta One","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Port Lligat Sans","Port Lligat Slab","Prata","Press Start 2P","Princess Sofia","Prociono","Prosto One","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Swanky and Moo Moo","Syncopate","Tangerine","Tauri","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Vast Shadow","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada" ),
54
+ );
55
+
56
+ // Allow devs to alter available fonts
57
+ $fonts_array = apply_filters( 'dslc_available_fonts', $fonts_array );
58
+
59
+ // Array of icons available to be used
60
+ $icons_array = array(
61
+ 'fontawesome' => array( "adjust", "adn", "align-center", "align-justify", "align-left", "align-right", "ambulance", "anchor", "android", "angellist", "angle-down", "angle-left", "angle-right", "angle-up", "apple", "archive", "area-chart", "arrow-circle-left", "arrow-circle-right", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "asterisk", "at", "automobile", "backward", "ban-circle", "bank", "bar-chart", "barcode", "beaker", "bed", "beer", "behance", "behance-square", "bell", "bell-alt", "bell-slash", "bell-slash-o", "bicycle", "binoculars", "birthday-cake", "bitbucket", "bitbucket-sign", "bitcoin", "bold", "bolt", "bomb", "book", "bookmark", "bookmark-empty", "briefcase", "btc", "bug", "building", "building", "bullhorn", "bullseye", "bus", "buysellads", "cab", "calculator", "calendar", "calendar-empty", "camera", "camera-retro", "car", "caret-down", "caret-left", "caret-right", "caret-square-left", "caret-up", "cart-arrow-down", "cart-plus", "cc", "cc-amex", "cc-discover", "cc-mastercard", "cc-paypal", "cc-stripe", "cc-visa", "certificate", "check", "check-empty", "check-minus", "check-sign", "chevron-down", "chevron-left", "chevron-right", "chevron-sign-down", "chevron-sign-left", "chevron-sign-right", "chevron-sign-up", "chevron-up", "child", "circle", "circle-arrow-down", "circle-arrow-left", "circle-arrow-right", "circle-arrow-up", "circle-blank", "circle-o-notch", "circle-thin", "cloud", "cloud-download", "cloud-upload", "cny", "code", "code-fork", "codepen", "coffee", "cog", "cogs", "collapse", "collapse-alt", "collapse-top", "columns", "comment", "comment-alt", "comments", "comments-alt", "compass", "connectdevelop", "copy", "copyright", "credit-card", "crop", "css3", "cube", "cubes", "cut", "dashboard", "dashcube", "database", "delicious", "desktop", "deviantart", "diamond", "digg", "dollar", "dot-circle", "double-angle-down", "double-angle-left", "double-angle-right", "double-angle-up", "download", "download-alt", "dribbble", "dropbox", "drupal", "edit", "edit-sign", "eject", "ellipsis-horizontal", "ellipsis-vertical", "empire", "envelope", "envelope-alt", "envelope-square", "eraser", "eur", "euro", "exchange", "exclamation", "exclamation-sign", "expand", "expand-alt", "external-link", "external-link-sign", "eye-close", "eye-open", "eyedropper", "facebook", "facebook-official", "facebook-sign", "facetime-video", "fast-backward", "fast-forward", "fax", "female", "fighter-jet", "file", "file-alt", "file-archive-o", "file-audio-o", "file-code-o", "file-excel-o", "file-image-o", "file-movie-o", "file-pdf-o", "file-photo-o", "file-picture-o", "file-powerpoint-o", "file-sound-o", "file-text", "file-text-alt", "file-video-o", "file-word-o", "file-zip-o", "film", "filter", "fire", "fire-extinguisher", "flag", "flag-alt", "flag-checkered", "flickr", "folder-close", "folder-close-alt", "folder-open", "folder-open-alt", "font", "food", "forumbee", "forward", "foursquare", "frown", "fullscreen", "futbol-o", "gamepad", "gbp", "ge", "gear", "gears", "gift", "git", "git-square", "github", "github-alt", "github-sign", "gittip", "glass", "globe", "google", "google-plus", "google-plus-sign", "google-wallet", "graduation-cap", "group", "h-sign", "hacker-news", "hand-down", "hand-left", "hand-right", "hand-up", "hdd", "header", "headphones", "heart", "heart-empty", "heartbeat", "history", "home", "hospital", "hotel (alias)", "html5", "ils", "inbox", "indent-left", "indent-right", "info", "info-sign", "inr", "instagram", "institution", "ioxhost", "italic", "joomla", "jpy", "jsfiddle", "key", "keyboard", "krw", "language", "laptop", "lastfm", "lastfm-square", "leaf", "leanpub", "legal", "lemon", "level-down", "level-up", "life-bouy", "life-ring", "life-saver", "lightbulb", "line-chart", "link", "linkedin", "linkedin-sign", "linux", "list", "list-alt", "list-ol", "list-ul", "location-arrow", "lock", "long-arrow-down", "long-arrow-left", "long-arrow-right", "long-arrow-up", "magic", "magnet", "mail-forward", "mail-reply", "mail-reply-all", "male", "map-marker", "mars", "mars-double", "mars-stroke", "mars-stroke-h", "mars-stroke-v", "maxcdn", "meanpath", "medium", "medkit", "meh", "mercury", "microphone", "microphone-off", "minus", "minus-sign", "minus-sign-alt", "mobile-phone", "money", "moon", "mortar-board", "motorcycle", "move", "music", "neuter", "newspaper-o", "off", "ok", "ok-circle", "ok-sign", "openid", "pagelines", "paint-brush", "paper-clip", "paper-plane", "paper-plane-o", "paperclip", "paragraph", "paste", "pause", "paw", "paypal", "pencil", "phone", "phone-sign", "picture", "pie-chart", "pied-piper", "pied-piper-alt", "pied-piper-square", "pinterest", "pinterest-p", "pinterest-sign", "plane", "play", "play-circle", "play-sign", "plug", "plus", "plus-sign", "plus-sign-alt", "power-off", "print", "pushpin", "puzzle-piece", "qq", "qrcode", "question", "question-sign", "quote-left", "quote-right", "ra", "random", "rebel", "recycle", "reddit", "reddit-square", "refresh", "remove", "remove-circle", "remove-sign", "renminbi", "renren", "reorder", "repeat", "reply", "reply-all", "resize-full", "resize-horizontal", "resize-small", "resize-vertical", "retweet", "road", "rocket", "rotate-left", "rotate-right", "rouble", "rss", "rss-sign", "rupee", "save", "screenshot", "search", "sellsy", "send", "send-o", "server", "share", "share-alt", "share-alt", "share-alt-square", "share-sign", "shield", "ship", "shirtsinbulk", "shopping-cart", "sign-blank", "signal", "signin", "signout", "simplybuilt", "sitemap", "skyatlas", "skype", "slack", "sliders", "slideshare", "smile", "sort", "sort-by-alphabet", "sort-by-alphabet-alt", "sort-by-attributes", "sort-by-attributes-alt", "sort-by-order", "sort-by-order-alt", "sort-down", "sort-up", "soundcloud", "space-shuttle", "spinner", "spoon", "spotify", "stack-exchange", "stackexchange", "star", "star-empty", "star-half", "star-half-empty", "star-half-full", "steam", "steam-square", "step-backward", "step-forward", "stethoscope", "stop", "street-view", "strikethrough", "stumbleupon", "stumbleupon-circle", "subscript", "subway", "suitcase", "sun", "superscript", "support", "table", "tablet", "tag", "tags", "tasks", "taxi", "tencent-weibo", "terminal", "text-height", "text-width", "th", "th-large", "th-list", "thumbs-down", "thumbs-down-alt", "thumbs-up", "thumbs-up-alt", "ticket", "time", "tint", "toggle-off", "toggle-on", "train", "transgender", "transgender-alt", "trash", "trash", "tree", "trello", "trophy", "truck", "tty", "tumblr", "tumblr-sign", "turkish-lira", "twitch", "twitter", "twitter-sign", "umbrella", "unchecked", "underline", "undo", "university", "unlink", "unlock", "unlock-alt", "upload", "upload-alt", "usd", "user", "user-md", "user-plus", "user-secret", "user-times", "venus", "venus-double", "venus-mars", "viacoin", "vimeo-square", "vine", "vk", "volume-down", "volume-off", "volume-up", "warning-sign", "wechat", "weibo", "weixin", "whatsapp", "wheelchair", "wifi", "windows", "won", "wordpress", "wrench", "xing", "xing-sign", "yahoo", "yelp", "yen", "youtube", "youtube-play", "youtube-sign", "zoom-in", "zoom-out" ),
62
+ );
63
+
64
+ // Allow devs to alter available icons
65
+ $icons_array = apply_filters( 'dslc_available_icons', $icons_array );
66
+
67
  /**
68
  * CSS
69
  */
139
  wp_localize_script( 'dslc-builder-main-js', 'DSLCAjax', array( 'ajaxurl' => admin_url( 'admin-ajax.php', 'http' ) ) );
140
  }
141
  wp_localize_script( 'dslc-builder-main-js', 'DSLCString', $translation_array );
142
+ wp_localize_script( 'dslc-builder-main-js', 'DSLCFonts', $fonts_array );
143
+ wp_localize_script( 'dslc-builder-main-js', 'DSLCIcons', $icons_array );
144
 
145
  }
146
 
includes/welcome.php CHANGED
@@ -120,7 +120,7 @@ class DSLC_Welcome {
120
  <p><?php _e( 'If you\'re a developer who is interested in building custom modules for Live Composer give a check at the developer documentation.<br><a target="_blank" href="http://livecomposerplugin.com/docs/building-a-module-the-basics/">Go To Developer Documentation &rarr;</a>', 'dslc_string' );?></p>
121
 
122
  <h4><?php _e( 'Support', 'dslc_string' );?></h4>
123
- <p><?php _e( 'If you run into any bugs or issues do let us know.<br><strong>There is currently a discount on the premium version of support at $29 instead of $50.</strong><br><a target="_blank" href="http://livecomposerplugin.com/support/">Go To Support &rarr;</a>', 'dslc_string' );?></p>
124
 
125
  </div><!-- .feature-section -->
126
 
120
  <p><?php _e( 'If you\'re a developer who is interested in building custom modules for Live Composer give a check at the developer documentation.<br><a target="_blank" href="http://livecomposerplugin.com/docs/building-a-module-the-basics/">Go To Developer Documentation &rarr;</a>', 'dslc_string' );?></p>
121
 
122
  <h4><?php _e( 'Support', 'dslc_string' );?></h4>
123
+ <p><?php _e( 'If you run into any bugs or issues do let us know.<br><a target="_blank" href="http://livecomposerplugin.com/support/">Go To Support &rarr;</a>', 'dslc_string' );?></p>
124
 
125
  </div><!-- .feature-section -->
126
 
js/builder.main.js CHANGED
@@ -17,10 +17,10 @@
17
 
18
  "use strict";
19
 
20
- var dslcRegularFontsArray = [ "Georgia", "Times", "Arial", "Lucida Sans Unicode", "Tahoma", "Trebuchet MS", "Verdana", "Helvetica" ];
21
- var dslcGoogleFontsArray = [ "ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Baumans","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script", "Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","Eagle Lake","Eater","EB Garamond","Economica","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Holtwood One SC","Homemade Apple","Homenaje","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kameron","Karla","Kaushan Script","Kavoon","Keania One","Kelly Slab","Kenia","Kite One","Knewave","Kotta One","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Port Lligat Sans","Port Lligat Slab","Prata","Press Start 2P","Princess Sofia","Prociono","Prosto One","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Swanky and Moo Moo","Syncopate","Tangerine","Tauri","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Vast Shadow","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada" ];
22
  var dslcAllFontsArray = dslcRegularFontsArray.concat( dslcGoogleFontsArray );
23
- var dslcFontAwesomeArray = [ "adjust", "adn", "align-center", "align-justify", "align-left", "align-right", "ambulance", "anchor", "android", "angellist", "angle-down", "angle-left", "angle-right", "angle-up", "apple", "archive", "area-chart", "arrow-circle-left", "arrow-circle-right", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "asterisk", "at", "automobile", "backward", "ban-circle", "bank", "bar-chart", "barcode", "beaker", "bed", "beer", "behance", "behance-square", "bell", "bell-alt", "bell-slash", "bell-slash-o", "bicycle", "binoculars", "birthday-cake", "bitbucket", "bitbucket-sign", "bitcoin", "bold", "bolt", "bomb", "book", "bookmark", "bookmark-empty", "briefcase", "btc", "bug", "building", "building", "bullhorn", "bullseye", "bus", "buysellads", "cab", "calculator", "calendar", "calendar-empty", "camera", "camera-retro", "car", "caret-down", "caret-left", "caret-right", "caret-square-left", "caret-up", "cart-arrow-down", "cart-plus", "cc", "cc-amex", "cc-discover", "cc-mastercard", "cc-paypal", "cc-stripe", "cc-visa", "certificate", "check", "check-empty", "check-minus", "check-sign", "chevron-down", "chevron-left", "chevron-right", "chevron-sign-down", "chevron-sign-left", "chevron-sign-right", "chevron-sign-up", "chevron-up", "child", "circle", "circle-arrow-down", "circle-arrow-left", "circle-arrow-right", "circle-arrow-up", "circle-blank", "circle-o-notch", "circle-thin", "cloud", "cloud-download", "cloud-upload", "cny", "code", "code-fork", "codepen", "coffee", "cog", "cogs", "collapse", "collapse-alt", "collapse-top", "columns", "comment", "comment-alt", "comments", "comments-alt", "compass", "connectdevelop", "copy", "copyright", "credit-card", "crop", "css3", "cube", "cubes", "cut", "dashboard", "dashcube", "database", "delicious", "desktop", "deviantart", "diamond", "digg", "dollar", "dot-circle", "double-angle-down", "double-angle-left", "double-angle-right", "double-angle-up", "download", "download-alt", "dribbble", "dropbox", "drupal", "edit", "edit-sign", "eject", "ellipsis-horizontal", "ellipsis-vertical", "empire", "envelope", "envelope-alt", "envelope-square", "eraser", "eur", "euro", "exchange", "exclamation", "exclamation-sign", "expand", "expand-alt", "external-link", "external-link-sign", "eye-close", "eye-open", "eyedropper", "facebook", "facebook-official", "facebook-sign", "facetime-video", "fast-backward", "fast-forward", "fax", "female", "fighter-jet", "file", "file-alt", "file-archive-o", "file-audio-o", "file-code-o", "file-excel-o", "file-image-o", "file-movie-o", "file-pdf-o", "file-photo-o", "file-picture-o", "file-powerpoint-o", "file-sound-o", "file-text", "file-text-alt", "file-video-o", "file-word-o", "file-zip-o", "film", "filter", "fire", "fire-extinguisher", "flag", "flag-alt", "flag-checkered", "flickr", "folder-close", "folder-close-alt", "folder-open", "folder-open-alt", "font", "food", "forumbee", "forward", "foursquare", "frown", "fullscreen", "futbol-o", "gamepad", "gbp", "ge", "gear", "gears", "gift", "git", "git-square", "github", "github-alt", "github-sign", "gittip", "glass", "globe", "google", "google-plus", "google-plus-sign", "google-wallet", "graduation-cap", "group", "h-sign", "hacker-news", "hand-down", "hand-left", "hand-right", "hand-up", "hdd", "header", "headphones", "heart", "heart-empty", "heartbeat", "history", "home", "hospital", "hotel (alias)", "html5", "ils", "inbox", "indent-left", "indent-right", "info", "info-sign", "inr", "instagram", "institution", "ioxhost", "italic", "joomla", "jpy", "jsfiddle", "key", "keyboard", "krw", "language", "laptop", "lastfm", "lastfm-square", "leaf", "leanpub", "legal", "lemon", "level-down", "level-up", "life-bouy", "life-ring", "life-saver", "lightbulb", "line-chart", "link", "linkedin", "linkedin-sign", "linux", "list", "list-alt", "list-ol", "list-ul", "location-arrow", "lock", "long-arrow-down", "long-arrow-left", "long-arrow-right", "long-arrow-up", "magic", "magnet", "mail-forward", "mail-reply", "mail-reply-all", "male", "map-marker", "mars", "mars-double", "mars-stroke", "mars-stroke-h", "mars-stroke-v", "maxcdn", "meanpath", "medium", "medkit", "meh", "mercury", "microphone", "microphone-off", "minus", "minus-sign", "minus-sign-alt", "mobile-phone", "money", "moon", "mortar-board", "motorcycle", "move", "music", "neuter", "newspaper-o", "off", "ok", "ok-circle", "ok-sign", "openid", "pagelines", "paint-brush", "paper-clip", "paper-plane", "paper-plane-o", "paperclip", "paragraph", "paste", "pause", "paw", "paypal", "pencil", "phone", "phone-sign", "picture", "pie-chart", "pied-piper", "pied-piper-alt", "pied-piper-square", "pinterest", "pinterest-p", "pinterest-sign", "plane", "play", "play-circle", "play-sign", "plug", "plus", "plus-sign", "plus-sign-alt", "power-off", "print", "pushpin", "puzzle-piece", "qq", "qrcode", "question", "question-sign", "quote-left", "quote-right", "ra", "random", "rebel", "recycle", "reddit", "reddit-square", "refresh", "remove", "remove-circle", "remove-sign", "renminbi", "renren", "reorder", "repeat", "reply", "reply-all", "resize-full", "resize-horizontal", "resize-small", "resize-vertical", "retweet", "road", "rocket", "rotate-left", "rotate-right", "rouble", "rss", "rss-sign", "rupee", "save", "screenshot", "search", "sellsy", "send", "send-o", "server", "share", "share-alt", "share-alt", "share-alt-square", "share-sign", "shield", "ship", "shirtsinbulk", "shopping-cart", "sign-blank", "signal", "signin", "signout", "simplybuilt", "sitemap", "skyatlas", "skype", "slack", "sliders", "slideshare", "smile", "sort", "sort-by-alphabet", "sort-by-alphabet-alt", "sort-by-attributes", "sort-by-attributes-alt", "sort-by-order", "sort-by-order-alt", "sort-down", "sort-up", "soundcloud", "space-shuttle", "spinner", "spoon", "spotify", "stack-exchange", "stackexchange", "star", "star-empty", "star-half", "star-half-empty", "star-half-full", "steam", "steam-square", "step-backward", "step-forward", "stethoscope", "stop", "street-view", "strikethrough", "stumbleupon", "stumbleupon-circle", "subscript", "subway", "suitcase", "sun", "superscript", "support", "table", "tablet", "tag", "tags", "tasks", "taxi", "tencent-weibo", "terminal", "text-height", "text-width", "th", "th-large", "th-list", "thumbs-down", "thumbs-down-alt", "thumbs-up", "thumbs-up-alt", "ticket", "time", "tint", "toggle-off", "toggle-on", "train", "transgender", "transgender-alt", "trash", "trash", "tree", "trello", "trophy", "truck", "tty", "tumblr", "tumblr-sign", "turkish-lira", "twitch", "twitter", "twitter-sign", "umbrella", "unchecked", "underline", "undo", "university", "unlink", "unlock", "unlock-alt", "upload", "upload-alt", "usd", "user", "user-md", "user-plus", "user-secret", "user-times", "venus", "venus-double", "venus-mars", "viacoin", "vimeo-square", "vine", "vk", "volume-down", "volume-off", "volume-up", "warning-sign", "wechat", "weibo", "weixin", "whatsapp", "wheelchair", "wifi", "windows", "won", "wordpress", "wrench", "xing", "xing-sign", "yahoo", "yelp", "yen", "youtube", "youtube-play", "youtube-sign", "zoom-in", "zoom-out" ];
24
 
25
  var dslcDebug = false;
26
 
@@ -1627,7 +1627,7 @@ var dslcDebug = false;
1627
  dslcAffectOnChangeEl = jQuery( dslcSliderInput.data('css-element'), dslcAffectOnChangeEl );
1628
  }
1629
 
1630
- dslcAffectOnChangeRule = dslcSliderInput.data('css-rule');
1631
  dslcAffectOnChangeRules = dslcAffectOnChangeRule.split( ',' );
1632
 
1633
  // Loop through rules (useful when there are multiple rules)
@@ -2449,6 +2449,8 @@ var dslcDebug = false;
2449
  * - dslc_module_options_icon ( Actions for icon font option type )
2450
  * - dslc_module_options_text_align ( Actions for text align option type )
2451
  * - dslc_module_options_checkbox ( Actions for checkbox option type )
 
 
2452
  * - dslc_module_options_color ( Actions for color option type )
2453
  * - dslc_module_output_default ( Get module output with default settings )
2454
  * - dslc_module_output_altered ( Get module output when settings altered )
@@ -2660,6 +2662,7 @@ var dslcDebug = false;
2660
 
2661
  // Initiate Colorpicker
2662
  dslc_module_options_color();
 
2663
  dslc_module_options_numeric();
2664
 
2665
  // Set up backup
@@ -3648,6 +3651,102 @@ var dslcDebug = false;
3648
 
3649
  }
3650
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3651
  /**
3652
  * MODULES - Color Option Type
3653
  */
@@ -3824,7 +3923,7 @@ var dslcDebug = false;
3824
 
3825
  // Live change
3826
  dslcAffectOnChangeEl = dslcSliderInput.data('affect-on-change-el');
3827
- dslcAffectOnChangeRule = dslcSliderInput.data('affect-on-change-rule');
3828
  dslcAffectOnChangeRules = dslcAffectOnChangeRule.split( ',' );
3829
 
3830
  // Loop through rules (useful when there are multiple rules)
@@ -4090,6 +4189,7 @@ var dslcDebug = false;
4090
  dslc_module_options_icon();
4091
  dslc_module_options_text_align();
4092
  dslc_module_options_checkbox();
 
4093
 
4094
  /**
4095
  * Hook - Submit
@@ -4523,36 +4623,45 @@ var dslcDebug = false;
4523
  jQuery('.dslca-save-composer .dslca-icon').removeClass('dslc-icon-ok').addClass('dslc-icon-spin dslc-icon-spinner');
4524
 
4525
  // Ajax call to save the new content
4526
- jQuery.post(
4527
-
4528
- DSLCAjax.ajaxurl,
4529
- {
4530
  action : 'dslc-ajax-save-composer',
4531
  dslc : 'active',
4532
  dslc_post_id : postID,
4533
  dslc_code : composerCode,
4534
  dslc_content_for_search : contentForSearch
4535
  },
4536
- function( response ) {
 
 
 
 
 
 
 
 
 
 
4537
 
4538
- // Replace the loading animation with a check icon
4539
- jQuery('.dslca-save-composer .dslca-icon').removeClass('dslc-icon-spin dslc-icon-spinner').addClass('dslc-icon-ok')
4540
-
4541
- // On success hide the publish button
4542
- if ( response.status == 'success' ) {
4543
- jQuery('.dslca-save-composer').fadeOut(250);
4544
- jQuery('.dslca-save-draft-composer').fadeOut(250);
4545
- // On fail show an alert message
4546
- } else {
4547
- alert( 'Something went wrong, please try to save again.' );
4548
- }
4549
-
4550
- // Remove the class previously added so we know saving is finished
4551
- jQuery('body').removeClass('dslca-saving-in-progress');
4552
 
 
 
 
 
4553
  }
4554
 
4555
- );
 
 
 
 
 
 
 
 
4556
 
4557
  }
4558
 
@@ -5712,7 +5821,7 @@ var dslcDebug = false;
5712
  * Live Preview
5713
  */
5714
 
5715
- dslcAffectOnChangeRules = dslcAffectOnChangeRule.split( ',' );
5716
 
5717
  // Loop through rules (useful when there are multiple rules)
5718
  for ( var i = 0; i < dslcAffectOnChangeRules.length; i++ ) {
@@ -5751,7 +5860,7 @@ var dslcDebug = false;
5751
  * Live Preview
5752
  */
5753
 
5754
- dslcAffectOnChangeRules = dslcAffectOnChangeRule.split( ',' );
5755
 
5756
  // Loop through rules (useful when there are multiple rules)
5757
  for ( var i = 0; i < dslcAffectOnChangeRules.length; i++ ) {
17
 
18
  "use strict";
19
 
20
+ var dslcRegularFontsArray = DSLCFonts.regular;
21
+ var dslcGoogleFontsArray = DSLCFonts.google;
22
  var dslcAllFontsArray = dslcRegularFontsArray.concat( dslcGoogleFontsArray );
23
+ var dslcFontAwesomeArray = DSLCIcons.fontawesome;
24
 
25
  var dslcDebug = false;
26
 
1627
  dslcAffectOnChangeEl = jQuery( dslcSliderInput.data('css-element'), dslcAffectOnChangeEl );
1628
  }
1629
 
1630
+ dslcAffectOnChangeRule = dslcSliderInput.data('css-rule').replace(/ /g,'');
1631
  dslcAffectOnChangeRules = dslcAffectOnChangeRule.split( ',' );
1632
 
1633
  // Loop through rules (useful when there are multiple rules)
2449
  * - dslc_module_options_icon ( Actions for icon font option type )
2450
  * - dslc_module_options_text_align ( Actions for text align option type )
2451
  * - dslc_module_options_checkbox ( Actions for checkbox option type )
2452
+ * - dslc_module_options_box_shadow ( Actions for box shadow option type )
2453
+ * - dslc_modules_options_box_shadow_color ( Initiate colorpicker for box shadow)
2454
  * - dslc_module_options_color ( Actions for color option type )
2455
  * - dslc_module_output_default ( Get module output with default settings )
2456
  * - dslc_module_output_altered ( Get module output when settings altered )
2662
 
2663
  // Initiate Colorpicker
2664
  dslc_module_options_color();
2665
+ dslc_modules_options_box_shadow_color();
2666
  dslc_module_options_numeric();
2667
 
2668
  // Set up backup
3651
 
3652
  }
3653
 
3654
+ /**
3655
+ * MODULES - Box Shadow Option Type
3656
+ */
3657
+
3658
+ function dslc_module_options_box_shadow() {
3659
+
3660
+ if ( dslcDebug ) console.log( 'dslc_module_options_box_shadow' );
3661
+
3662
+ /**
3663
+ * Value Change
3664
+ */
3665
+
3666
+ 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(){
3667
+
3668
+ var boxShadowWrapper = jQuery(this).closest('.dslca-module-edit-option'),
3669
+ boxShadowInput = boxShadowWrapper.find('.dslca-module-edit-field'),
3670
+ boxShadowHor = boxShadowWrapper.find('.dslca-module-edit-option-box-shadow-hor').val(),
3671
+ boxShadowVer = boxShadowWrapper.find('.dslca-module-edit-option-box-shadow-ver').val(),
3672
+ boxShadowBlur = boxShadowWrapper.find('.dslca-module-edit-option-box-shadow-blur').val(),
3673
+ boxShadowSpread = boxShadowWrapper.find('.dslca-module-edit-option-box-shadow-spread').val(),
3674
+ boxShadowColor = boxShadowWrapper.find('.dslca-module-edit-option-box-shadow-color').val(),
3675
+ boxShadowInset = boxShadowWrapper.find('.dslca-module-edit-option-box-shadow-inset').is(':checked');
3676
+
3677
+ if ( boxShadowInset ) { boxShadowInset = ' inset'; } else { boxShadowInset = ''; }
3678
+
3679
+ var boxShadowVal = boxShadowHor + 'px ' + boxShadowVer + 'px ' + boxShadowBlur + 'px ' + boxShadowSpread + 'px ' + boxShadowColor + boxShadowInset;
3680
+
3681
+ boxShadowInput.val( boxShadowVal ).trigger('change');
3682
+
3683
+ });
3684
+
3685
+ }
3686
+
3687
+ /**
3688
+ * MODULES - Box Shadow Color Picker
3689
+ */
3690
+
3691
+ function dslc_modules_options_box_shadow_color() {
3692
+
3693
+ jQuery('.dslca-module-edit-option-box-shadow-color').each( function(){
3694
+
3695
+ var inputField = jQuery(this),
3696
+ currColor = inputField.val(),
3697
+ dslcColorField, dslcColorFieldVal;
3698
+
3699
+ jQuery(this).spectrum({
3700
+ color: currColor,
3701
+ showInput: true,
3702
+ allowEmpty: true,
3703
+ showAlpha: true,
3704
+ clickoutFiresChange: true,
3705
+ cancelText: '',
3706
+ chooseText: '',
3707
+ preferredFormat: 'rgb',
3708
+ move: function( color ) {
3709
+
3710
+ // The option field
3711
+ dslcColorField = jQuery(this);
3712
+
3713
+ // The new color
3714
+ if ( color == null )
3715
+ dslcColorFieldVal = 'transparent';
3716
+ else
3717
+ dslcColorFieldVal = color.toRgbString().replace(/ /g,'');
3718
+
3719
+ // Change current value of option
3720
+ dslcColorField.val( dslcColorFieldVal ).trigger('change');
3721
+
3722
+ },
3723
+ change: function( color ) {
3724
+
3725
+ // The option field
3726
+ dslcColorField = jQuery(this);
3727
+
3728
+ // The new color
3729
+ if ( color == null )
3730
+ dslcColorFieldVal = 'transparent';
3731
+ else
3732
+ dslcColorFieldVal = color.toRgbString().replace(/ /g,'');
3733
+
3734
+ // Change current value of option
3735
+ dslcColorField.val( dslcColorFieldVal ).trigger('change');
3736
+
3737
+ },
3738
+ show: function( color ) {
3739
+ jQuery('body').addClass('dslca-disable-selection');
3740
+ },
3741
+ hide: function() {
3742
+ jQuery('body').removeClass('dslca-disable-selection');
3743
+ }
3744
+ });
3745
+
3746
+ });
3747
+
3748
+ }
3749
+
3750
  /**
3751
  * MODULES - Color Option Type
3752
  */
3923
 
3924
  // Live change
3925
  dslcAffectOnChangeEl = dslcSliderInput.data('affect-on-change-el');
3926
+ dslcAffectOnChangeRule = dslcSliderInput.data('affect-on-change-rule').replace(/ /g,'');
3927
  dslcAffectOnChangeRules = dslcAffectOnChangeRule.split( ',' );
3928
 
3929
  // Loop through rules (useful when there are multiple rules)
4189
  dslc_module_options_icon();
4190
  dslc_module_options_text_align();
4191
  dslc_module_options_checkbox();
4192
+ dslc_module_options_box_shadow();
4193
 
4194
  /**
4195
  * Hook - Submit
4623
  jQuery('.dslca-save-composer .dslca-icon').removeClass('dslc-icon-ok').addClass('dslc-icon-spin dslc-icon-spinner');
4624
 
4625
  // Ajax call to save the new content
4626
+ jQuery.ajax({
4627
+ method: 'POST',
4628
+ url: DSLCAjax.ajaxurl,
4629
+ data: {
4630
  action : 'dslc-ajax-save-composer',
4631
  dslc : 'active',
4632
  dslc_post_id : postID,
4633
  dslc_code : composerCode,
4634
  dslc_content_for_search : contentForSearch
4635
  },
4636
+ timeout: 10000
4637
+ }).done(function( response ) {
4638
+
4639
+ // On success hide the publish button
4640
+ if ( response.status == 'success' ) {
4641
+ jQuery('.dslca-save-composer').fadeOut(250);
4642
+ jQuery('.dslca-save-draft-composer').fadeOut(250);
4643
+ // On fail show an alert message
4644
+ } else {
4645
+ alert( 'Something went wrong, please try to save again.' );
4646
+ }
4647
 
4648
+ }).fail(function( response ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
4649
 
4650
+ if ( response.statusText == 'timeout' ) {
4651
+ alert( 'The request timed out after 10 seconds. Please try again.' );
4652
+ } else {
4653
+ alert( 'Something went wrong. Please try again.' );
4654
  }
4655
 
4656
+ }).always(function( reseponse ) {
4657
+
4658
+ // Replace the loading animation with a check icon
4659
+ jQuery('.dslca-save-composer .dslca-icon').removeClass('dslc-icon-spin dslc-icon-spinner').addClass('dslc-icon-ok')
4660
+
4661
+ // Remove the class previously added so we know saving is finished
4662
+ jQuery('body').removeClass('dslca-saving-in-progress');
4663
+
4664
+ });
4665
 
4666
  }
4667
 
5821
  * Live Preview
5822
  */
5823
 
5824
+ dslcAffectOnChangeRules = dslcAffectOnChangeRule.replace(/ /g,'').split( ',' );
5825
 
5826
  // Loop through rules (useful when there are multiple rules)
5827
  for ( var i = 0; i < dslcAffectOnChangeRules.length; i++ ) {
5860
  * Live Preview
5861
  */
5862
 
5863
+ dslcAffectOnChangeRules = dslcAffectOnChangeRule.replace(/ /g,'').split( ',' );
5864
 
5865
  // Loop through rules (useful when there are multiple rules)
5866
  for ( var i = 0; i < dslcAffectOnChangeRules.length; i++ ) {
js/builder.main.min.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";function dslc_hide_composer(){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(".dslca-container").animate({bottom:-1*jQuery(".dslca-container").outerHeight()},300),jQuery(".dslca-header").hide()}function dslc_show_composer(){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(".dslca-container").animate({bottom:0},300),jQuery(".dslca-header").show()}function dslc_show_publish_button(){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_show_section(e){dslcDebug&&console.log("dslc_show_section"),jQuery("body").addClass("dslca-anim-in-progress");var s=(jQuery(e).data("title"),jQuery(e).data("bg"));jQuery(".dslca-container").animate({bottom:-500},200),jQuery(".dslca-sections").animate({backgroundColor:s},200),jQuery(".dslca-section").hide(),jQuery(e).show(),".dslca-modules-section-edit"==e&&dslc_row_edit_scrollbar_init(),dslc_module_options_tab_filter(),".dslca-module-edit"!=e&&dslc_scroller_init(),jQuery(".dslca-container").animate({bottom:0},300),jQuery("body").removeClass("dslca-anim-in-progress")}function dslc_generate_filters(){dslcDebug&&console.log("dslc_generate_filters");var e,s=[],o='<span data-origin="">ALL</span>',d=jQuery(".dslca-section:visible .dslca-origin");d.each(function(){e=jQuery(this),-1==jQuery.inArray(e.data("origin"),s)&&(s.push(e.data("origin")),o+='<span data-origin="'+e.data("origin")+'">'+e.data("origin").replace("_"," ")+"</span>")}),jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(o).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(e,s){dslcDebug&&console.log("dslc_filter_origin"),jQuery(".dslca-origin",s).hide(),jQuery('.dslca-origin[data-origin="'+e+'"]',s).show(),""==e&&jQuery(".dslca-origin",s).show(),dslc_scroller_init()}function dslc_drag_and_drop(){dslcDebug&&console.log("dslc_drag_and_drop");var e,s,o;jQuery(".dslca-modules .dslca-module").draggable({scroll:!1,appendTo:"body",helper:"clone",cursor:"default",cursorAt:{top:50,left:30},containment:"body",start:function(){jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress"),jQuery("#dslc-header").addClass("dslca-header-low-z-index")},stop:function(){jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress"),jQuery("#dslc-header").removeClass("dslca-header-low-z-index")}}),jQuery(".dslc-content").sortable({items:".dslc-modules-section",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"pointer",cursorAt:{bottom:10},axis:"y",scroll:!0,scrollSensitivity:200,scrollSpeed:10,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(){dslc_generate_code(),dslc_show_publish_button()},start:function(e,s){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress"),s.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(){jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop"),jQuery(".dslc-modules-section").css({overflow:"visible","max-height":"none"})}}),jQuery(".dslc-modules-section-inner").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:!0,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(e,s){var o=s.placeholder.closest(".dslc-modules-section");jQuery(o).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"),o.siblings(".dslc-modules-section").each(function(){jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")})},update:function(){dslc_generate_code(),dslc_show_publish_button()},start:function(e,s){s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>"),jQuery(s.item).hasClass("dslc-12-col")?s.placeholder.width(s.item.width()).css({margin:0}):s.placeholder.width(s.item.width()-10),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(){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(){}}),jQuery(".dslc-modules-section").droppable({drop:function(e,s){var o=jQuery(this).find(".dslc-modules-section-inner"),d=s.draggable.data("id");"DSLC_M_A"==d&&dslc_modules_area_add(o)}}),jQuery(".dslc-modules-area").droppable({activeClass:"dslca-ui-state-default",hoverClass:"dslca-ui-state-hover",accept:":not(.ui-sortable-helper)",drop:function(d,l){if(e=jQuery(this),s=l.draggable.data("id"),"DSLC_M_A"==s||jQuery("body").hasClass("dslca-module-drop-in-progress")||e.closest("#dslc-header").length||e.closest("#dslc-footer").length);else{jQuery("body").addClass("dslca-anim-in-progress dslca-module-drop-in-progress"),e.hasClass("dslc-modules-area-not-empty")&&e.animate({paddingBottom:50},150),dslc_module_output_default(s,function(s){o=s.output,jQuery(".dslca-module-loading-inner",e).stop().animate({width:"100%"},300,"linear",function(){e.css({paddingBottom:0}),jQuery(".dslca-module-loading",e).hide();var s=jQuery(o).appendTo(e);s.css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}),setTimeout(function(){dslc_init_square(),dslc_center(),dslc_masonry(s),jQuery("body").removeClass("dslca-anim-in-progress dslca-module-drop-in-progress")},700),jQuery(".dslca-no-content-primary",e).css({opacity:1}),jQuery(".dslca-modules-area-manage",e).css({visibility:"visible"}),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),dslc_carousel(),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),dslc_generate_code(),dslc_show_publish_button()})}),jQuery(".dslca-module-loading",e).show(),jQuery(".dslca-no-content-primary",e).css({opacity:0}),jQuery(".dslca-modules-area-manage",e).css({visibility:"hidden"});var a=100*Math.floor(51*Math.random()+50);jQuery(".dslca-module-loading-inner",e).css({width:0}).animate({width:"100%"},a,"linear")}}}).sortable({connectWith:".dslc-modules-area",items:".dslc-module-front",handle:'.dslca-move-module-hook:not(".dslca-action-disabled")',placeholder:"dslca-module-placeholder",cursorAt:{top:50,left:30},tolerance:"pointer",scroll:!0,scrollSensitivity:100,scrollSpeed:15,start:function(e,s){s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+s.item.find(".dslc-sortable-helper-icon").data("title")+"</span></span>"),jQuery(s.item).hasClass("dslc-12-col")?s.placeholder.width(s.item.width()).css({margin:0}):s.placeholder.width(s.item.width()-10),jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress"),jQuery(".dslc-module-front",this).length<2&&(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,function(){})),jQuery(".dslc-modules-area").sortable("refreshPositions")},sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(){dslc_show_publish_button()},stop:function(e,s){dslc_generate_code(),jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop"),s.item.trigger("mouseleave")},change:function(){}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_scroller_init(){dslcDebug&&console.log("dslc_scroller_init");var e=jQuery(".dslca-section-scroller");e.length&&e.each(function(){{var e,s=jQuery(this),o=jQuery(".dslca-section-scroller-inner",s),d=o.position(),l=jQuery(".dslca-section-scroller-content",s),a=jQuery(".dslca-scroller-item:visible",s),t=0,i=s.width()+-1*d.left;l.width()}jQuery(".dslca-section-scroller-item-last",s).removeClass("dslca-section-scroller-item-last"),a.each(function(){e=jQuery(this),t+=e.outerWidth(),t>i&&jQuery(".dslca-section-scroller-item-last",s).length<1&&(e.addClass("dslca-section-scroller-item-last"),s.data("current",e.prev(".dslca-scroller-item:visible").index()))})})}function dslc_scroller_go_to(e,s){dslcDebug&&console.log("dslc_scroller_go_to");var o=jQuery(".dslca-section-scroller-inner",s),d=jQuery(".dslca-section-scroller-content",s),l=(jQuery(".dslca-scroller-item",s),jQuery(".dslca-scroller-item:eq("+e+")",s));if(l.length){var a=s.width(),t=(d.width(),l.position()),i=a-(t.left+l.outerWidth());0>i?(s.data("current",e),o.stop().animate({left:i},200)):o.stop().animate({left:0},200)}}function dslc_scroller_prev(e){dslcDebug&&console.log("dslc_scroller_prev");var s=e.data("current"),o=e.find(".dslca-scroller-item:eq("+s+")").prevAll(".dslca-scroller-item:visible").eq(1).index(),d=e.find(".dslca-scroller-item:eq("+s+")").prevAll(".dslca-scroller-item:visible").eq(0).index();-1!==o?dslc_scroller_go_to(o,e):-1!==d&&dslc_scroller_go_to(d,e)}function dslc_scroller_next(e){dslcDebug&&console.log("dslc_scroller_next");var s=e.data("current"),o=e.find(".dslca-scroller-item:eq("+s+")").nextAll(".dslca-scroller-item:visible").eq(1).index(),d=e.find(".dslca-scroller-item:eq("+s+")").nextAll(".dslca-scroller-item:visible").eq(0).index();-1!==o?dslc_scroller_go_to(o,e):-1!==d&&dslc_scroller_go_to(d,e)}function dslc_ui_animations(){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"),jQuery(this).stop().animate({opacity:1},200),dslca_draggable_calc_center(jQuery(this).closest(".dslc-modules-area"))}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered"),jQuery(this).stop().animate({opacity:.5},200)}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(){jQuery("body").hasClass("dslca-composer-hidden")||(jQuery(this).height()<190?jQuery(".dslca-module-manage",this).addClass("dslca-horizontal"):jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal"),jQuery(".dslca-module-manage-inner",this).stop().animate({top:0},300,function(){jQuery(this).closest(".dslca-module-manage").css({overflow:"visible"})}),jQuery(".dslca-wysiwyg-actions-edit-hook",this).stop().animate({top:0},300))}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(){jQuery("body").hasClass("dslca-composer-hidden")||(jQuery(this).find(".dslca-change-width-module-options").hide(),jQuery(this).find(".dslca-module-manage").css({overflow:"hidden"}),jQuery(".dslca-module-manage-inner",this).stop().animate({top:-50},300),jQuery(".dslca-wysiwyg-actions-edit-hook",this).stop().animate({top:-50},300))}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(){var e=jQuery(this);jQuery("body").hasClass("dslca-composer-hidden")||(jQuery("#dslc-header").addClass("dslca-header-low-z-index"),jQuery(this).height()<130?jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal"):jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal"),jQuery(".dslca-modules-area-manage-inner",this).stop().animate({left:"0%"},300,function(){jQuery(".dslca-modules-area-manage",e).css({overflow:"visible"})}))}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(){var e=jQuery(this);jQuery("body").hasClass("dslca-composer-hidden")||(jQuery("#dslc-header").removeClass("dslca-header-low-z-index"),jQuery(".dslca-modules-area-manage",e).css({overflow:"hidden"}),jQuery(".dslca-modules-area-manage-inner",this).stop().animate({left:"100%"},300))}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-section",function(){jQuery("body").hasClass("dslca-composer-hidden")||jQuery(".dslca-modules-section-manage-inner",this).stop().animate({opacity:1},300)}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-section",function(){jQuery("body").hasClass("dslca-composer-hidden")||jQuery(".dslca-modules-section-manage-inner",this).stop().animate({opacity:0},300)})}function dslc_show_modal(e,s){dslcDebug&&console.log("dslc_show_modal"),dslc_hide_modal("",jQuery(".dslca-modal:visible"));var s=jQuery(s),o=jQuery(e).position(),d=s.outerWidth()/2-e.outerWidth()/2,l=o.left-d;s.css({left:l}).show(),s.css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).fadeIn(600)}function dslc_hide_modal(e,s){dslcDebug&&console.log("dslc_hide_modal");var s=jQuery(s);s.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).fadeOut(600)}function dslc_js_confirm(e,s,o){dslcDebug&&console.log("dslc_js_confirm"),jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active"),jQuery(".dslca-prompt-modal").data("id",e),jQuery(".dslca-prompt-modal").data("target",o),jQuery(".dslca-prompt-modal-msg").html(s),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(){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_row_add(e){dslcDebug&&console.log("dslc_row_add"),e="undefined"!=typeof e?e:!1,jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(s){jQuery(s.output).appendTo("#dslc-main"),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button(),e&&e()})}function dslc_row_delete(e){dslcDebug&&console.log("dslc_row_delete"),e.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")),e.trigger("mouseleave").remove(),dslc_generate_code(),dslc_show_publish_button()}function dslc_row_edit(e){dslcDebug&&console.log("dslc_row_edit");jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made"),e.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("border-top"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("top")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-right"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("right")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-bottom"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("bottom")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-left"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("left")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),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"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]').val().indexOf(jQuery(this).data("val"))>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),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).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]').val()),jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var e=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":e.val()})}}),jQuery(".dslca-modules-section-edit-field-upload").each(function(){var e=jQuery(this).closest(".dslca-modules-section-edit-option");jQuery(this).val()&&"disabled"!==jQuery(this).val()?(jQuery(".dslca-modules-section-edit-field-image-add-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).show()):(jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-add-hook",e).show())}),dslc_row_edit_slider_init(),dslc_show_section(".dslca-modules-section-edit"),jQuery(".dslca-save-composer-hook").css({visibility:"hidden"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"hidden"})}function dslc_row_edit_colorpicker_init(){dslcDebug&&console.log("dslc_row_edit_colorpicker_init");var e,s,o,d,l,a,t,i,c,n,r=[];if(r[0]=[],r[1]=[],r[2]=[],r[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(c=JSON.parse(localStorage.dslcColorpickerPalleteStorage),n=0;n<c.length;n++){var u=Math.floor(n/3);4>u&&r[u].push(c[n])}jQuery(".dslca-modules-section-edit-field-colorpicker").each(function(){i=jQuery(this).val(),jQuery(this).spectrum({color:i,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:r,move:function(i){e=jQuery(this),s=e.data("id"),d=null==i?"transparent":i.toRgbString(),l=e.data("css-rule"),o=jQuery(".dslca-modules-section-being-edited"),t=o,a=jQuery('.dslca-modules-section-settings input[data-id="'+s+'"]',o),o.addClass("dslca-modules-section-change-made"),e.data("css-element")&&(t=jQuery(e.data("css-element"),o)),t.css(l,d),a.val(d)},change:function(o){if(e=jQuery(this),s=e.data("id"),d=null==o?"transparent":o.toRgbString(),void 0==localStorage.dslcColorpickerPalleteStorage){var l=[d];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(l)}else{var l=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==l.indexOf(d)&&l.unshift(d),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(l)}},show:function(){jQuery("body").addClass("dslca-disable-selection"),jQuery(this).spectrum("set",jQuery(this).val())},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})})}function dslc_row_edit_slider_init(){dslcDebug&&console.log("dslc_row_edit_slider_init"),jQuery(".dslca-modules-section-edit-field-slider").each(function(){var e,s,o,d,l,a,t,i,c,n,r,u="",m=0,p=300,h=1;e=jQuery(this),s=e.siblings(".dslca-modules-section-edit-field"),a=e.siblings(".dslca-modules-section-edit-field-slider-tooltip"),e.data("min")&&(m=e.data("min")),e.data("max")&&(p=e.data("max")),e.data("incr")&&(h=e.data("incr")),e.data("ext")&&(u=e.data("ext")),e.slider({min:m,max:p,step:h,value:s.val(),slide:function(m,p){o=p.value+u,s.val(o),l=jQuery(".dslca-modules-section-being-edited"),s.data("css-element")&&(l=jQuery(s.data("css-element"),l)),d=s.data("css-rule"),r=d.split(",");for(var h=0;h<r.length;h++)jQuery(l).css(r[h],o);c=jQuery(".dslca-modules-section-being-edited"),n=s.data("id"),jQuery('.dslca-modules-section-settings input[data-id="'+n+'"]',c).val(p.value),c.addClass("dslca-modules-section-change-made"),a.text(o),i=e.find(".ui-slider-handle"),t=i[0].style.left,a.css({left:t})},stop:function(){a.hide();var e=jQuery(window).scrollTop();dslc_masonry(),jQuery(window).scrollTop(e)},start:function(s,d){o=d.value,a.show(),a.text(o),i=e.find(".ui-slider-handle"),t=i[0].style.left,a.css({left:t})}})})}function dslc_row_edit_scrollbar_init(){dslcDebug&&console.log("dslc_row_edit_scrollbar_init");var e=0;jQuery(".dslca-modules-section-edit-option").each(function(){e+=jQuery(this).outerWidth(!0)+1}),jQuery(".dslca-modules-section-edit-options-wrapper").width(e>jQuery(".dslca-modules-section-edit-options").width()?e:"auto"),jQuery("body").hasClass("rtl")||(jQuery(".dslca-modules-section-edit-options-inner").data("jsp")&&jQuery(".dslca-modules-section-edit-options-inner").data("jsp").destroy(),jQuery(".dslca-modules-section-edit-options-inner").jScrollPane())}function dslc_row_edit_cancel(e){dslcDebug&&console.log("dslc_row_cancel_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input").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")}),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-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made"),e&&e(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_row_edit_confirm(e){dslcDebug&&console.log("dslc_confirm_row_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input").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-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made"),dslc_generate_code(),dslc_show_publish_button(),e&&e(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_row_copy(e){dslcDebug&&console.log("dslc_row_copy");var s,o,d;o=e.clone().appendTo("#dslc-main"),o.find(".dslc-modules-area").each(function(){var s=jQuery(this).index();jQuery(this).data("size",e.find(".dslc-modules-area:eq( "+s+" )").data("size"))}),o.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(){d=jQuery(this),jQuery.ajax({type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-get-new-module-id"},async:!1}).done(function(e){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=e.output,d.data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button()}function dslc_row_import(e){dslcDebug&&console.log("dslc_row_import"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:e},function(e){dslc_js_confirm_close(),jQuery("#dslc-main").append(e.output),dslc_bg_video(),dslc_carousel(),dslc_masonry(jQuery("#dslc-main").find(".dslc-modules-section:last-child")),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(e){dslc_row_delete(e)}function dslc_edit_modules_section(e){dslc_row_edit(e)}function dslc_edit_modules_section_colorpicker(){dslc_row_edit_colorpicker_init()}function dslc_edit_modules_section_slider(){dslc_row_edit_slider_init()}function dslc_edit_modules_section_scroller(){dslc_row_edit_scrollbar_init()}function dslc_copy_modules_section(e){dslc_row_copy(e)}function dslc_import_modules_section(e){dslc_row_import(e)}function dslc_modules_area_add(e){dslcDebug&&console.log("dslc_add_modules_area"),jQuery("body").addClass("dslca-anim-in-progress"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-area",dslc:"active"},function(s){jQuery(".dslca-modules-area-loading .dslca-module-loading-inner",e.closest(".dslc-modules-section")).stop().animate({width:"100%"},200,"linear",function(){e.css({paddingBottom:0}),jQuery(this).closest(".dslca-modules-area-loading").hide()}),setTimeout(function(){jQuery(s.output).appendTo(e).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation"),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button(),jQuery("body").removeClass("dslca-anim-in-progress")},250)});var s=100*Math.floor(51*Math.random()+50);e.animate({paddingBottom:50},150),jQuery(".dslca-modules-area-loading",e.closest(".dslc-modules-section")).show(),jQuery(".dslca-modules-area-loading .dslca-module-loading-inner",e.closest(".dslc-modules-section")).css({width:0}).animate({width:"100%"},s,"linear")}function dslc_modules_area_delete(e){dslcDebug&&console.log("dslc_delete_modules_area");var s=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),o=!1;e.addClass("dslca-modules-area-being-deleted"),s.find(".dslc-modules-area").length<2&&(o=!0),e.find(".dslca-module-being-edited").length&&(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")),setTimeout(function(){e.remove(),dslc_generate_code(),dslc_show_publish_button(),o&&dslc_modules_area_add(s)},900),e.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(){e.remove(),dslc_generate_code(),dslc_show_publish_button()})}function dslc_modules_area_copy(e){dslcDebug&&console.log("dslc_copy_modules_area");var s,o=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),d=e.clone().appendTo(o);d.find(".dslca-modules-area-manage").trigger("mouseleave"),d.data("size",e.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 e=jQuery(this);jQuery.ajax({type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-get-new-module-id"},async:!1}).done(function(o){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=o.output,e.data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button()}function dslc_modules_area_width_set(e,s){dslcDebug&&console.log("dslc_modules_area_width_set");var o="dslc-"+s+"-col";e.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(o).data("size",s),dslc_init_square(),dslc_center(),dslc_generate_code(),dslc_show_publish_button(),dslc_masonry()}function dslc_add_modules_area(e){dslc_modules_area_add(e)}function dslc_delete_modules_area(e){dslc_modules_area_delete(e)}function dslc_copy_modules_area(e){dslc_modules_area_copy(e)}function dslc_module_delete(e){dslcDebug&&console.log("dslc_delete_module"),e.addClass("dslca-module-being-deleted"),e.hasClass("dslca-module-being-edited")&&dslc_show_section(".dslca-modules"),setTimeout(function(){e.remove(),dslc_generate_code(),dslc_show_publish_button()},1e3),e.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(){e.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")
2
- })}function dslc_module_copy(e){dslcDebug&&console.log("dslc_copy_module");var s;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-get-new-module-id"},function(o){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=o.output,e.clone().appendTo(e.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}).data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}function dslc_module_width_set(e,s){dslcDebug&&console.log("dslc_module_width_set");var o="dslc-"+s+"-col";e.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(o).data("dslc-module-size",s).addClass("dslca-module-being-edited"),jQuery('.dslca-module-option-front[data-id="dslc_m_size"]',e).val(s),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})}function dslc_module_options_show(e){dslcDebug&&console.log("dslc_module_options_show");var s=jQuery(".dslca-module-being-edited"),o=jQuery(".dslca-module-options-front textarea",s),d=jQuery(".dslca-header").data("default-section"),l={};l.action="dslc-ajax-display-module-options",l.dslc="active",l.dslc_module_id=e,l.dslc_post_id=jQuery(".dslca-container").data("data-post-id"),o.each(function(){var e=jQuery(this),s=e.data("id"),o=e.val();l[s]=o}),jQuery(".dslca-wp-editor-actions").hide(),jQuery(".dslca-wp-editor-notification").show(),jQuery.post(DSLCAjax.ajaxurl,l,function(e){jQuery(".dslca-save-composer-hook").css({visibility:"hidden"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"hidden"}),dslc_show_section(".dslca-module-edit"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(e.output):jQuery(".dslca-module-edit-options-inner .jspPane").html(e.output),jQuery(".dslca-module-edit-options-tabs").html(e.output_tabs),jQuery(".dslca-header .dslca-options-filter-hook").show(),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")):(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(),dslc_module_options_color(),dslc_module_options_numeric();var s=jQuery(".dslca-module-options-front",".dslca-module-being-edited").children().clone();jQuery(".dslca-module-options-front-backup").html("").append(s)})}function dslc_module_options_scrollbar(){dslcDebug&&console.log("dslc_module_options_scrollbar");var e=0;if(jQuery(".dslca-module-edit-option:visible").each(function(){e+=jQuery(this).outerWidth(!0)+1}),jQuery(".dslca-module-edit-options-wrapper").width(e>jQuery(".dslca-module-edit-options").width()?e:"auto"),!jQuery("body").hasClass("rtl")&&jQuery(".dslca-module-edit-options-inner").data("jsp")){var s=jQuery(".dslca-module-edit-options-inner").data("jsp");s.reinitialise()}}function dslc_module_options_section_filter(e){dslcDebug&&console.log("dslc_module_options_section_filter"),jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-section="'+e+'"]').show(),dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(e){dslcDebug&&console.log("dslc_module_options_tab_filter");var s=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e="undefined"!=typeof e?e:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+s+'"]:first');var o=e.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active"),e.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="'+s+'"]').show(),o&&(jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-tab="'+o+'"]').show(),dslc_module_options_scrollbar(),dslc_module_options_hideshow_tabs(),jQuery(".dslca-module-edit-options-tab-hook:visible").length<2?jQuery(".dslca-module-edit-options-tabs").hide():jQuery(".dslca-module-edit-options-tabs").show(),o==DSLCString.str_res_tablet+"_responsive"&&(jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet"),jQuery("body").addClass("dslc-res-tablet")),o==DSLCString.str_res_phone+"_responsive"&&(jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet"),jQuery("body").addClass("dslc-res-phone")),(o==DSLCString.str_res_tablet+"_responsive"||o==DSLCString.str_res_phone+"_responsive")&&(jQuery(".dslca-container-loader").show(),dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})))}function dslc_module_options_hideshow_tabs(){dslcDebug&&console.log("dslc_module_options_hideshow_tabs");var e=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if("styling"==e){var s=(jQuery(".dslca-module-edit"),!0),o=!0,d=!0,l=!0,a=!0,t=!0,i=!0,c=!0,n=!0,r=!0,u=!0,m=!0,p=!0,h=!0,_=!0,y=!0,g=!0,f=!0,b=!0,j=!0,v=!0,Q=!0,k=!0,w=!0,C=!0;jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked")||(s=!1),jQuery('.dslca-module-edit-field[value="filters"]').is(":checked")||(o=!1),jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked")||(d=!1),jQuery('.dslca-module-edit-field[value="circles"]').is(":checked")||(l=!1),"carousel"!=jQuery('.dslca-module-edit-field[data-id="type"]').val()&&(d=!1,l=!1),"disabled"==jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()&&(a=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")||(t=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")&&(i=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")||(c=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")||(n=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")&&(r=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")||(u=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")||(p=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")||(m=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")||(h=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")||(_=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")||(y=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")&&(g=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")&&(f=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")||(b=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")||(j=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")||(v=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")||(Q=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")||(k=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")||(w=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")||(C=!1),s?jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide(),o?jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide(),d?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide(),l?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide(),a?jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide(),t?jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide(),i?jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide(),c?jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide(),n?jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide(),r?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():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(),u?jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide(),p?jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide(),m?jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide(),h?jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide(),y?jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide(),_?jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide(),g?jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide(),f?jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide(),b?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide(),j?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide(),v||Q?jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide(),k?jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide(),w?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide(),C?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if("DSLC_Text_Simple"==jQuery(".dslca-module-being-edited").data("dslc-module-id")||"DSLC_TP_Content"==jQuery(".dslca-module-being-edited").data("dslc-module-id")||"DSLC_Html"==jQuery(".dslca-module-being-edited").data("dslc-module-id")){var S=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),x=S.find("select").val();"enabled"==x?(jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"}),jQuery(".dslca-module-edit-options-tabs").show()):(jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"}),jQuery(".dslca-module-edit-options-tabs").hide(),S.css({visibility:"visible"}))}}else jQuery(".dslca-module-edit-options-tabs").show();"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()?jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden"):jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible"),"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()?jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden"):jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible"),jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(e){dslcDebug&&console.log("dslc_module_options_confirm_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-module-being-edited").hasClass("dslc-module-DSLC_Sliders")?jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"):(jQuery("body").addClass("dslca-module-saving-in-progress"),dslc_module_output_altered(function(){dslc_update_preset(),jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery("body").removeClass("dslca-module-saving-in-progress"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(""):jQuery(".dslca-module-edit-options-inner .jspPane").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),e&&e()})),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(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_module_options_cancel_changes(e){dslcDebug&&console.log("dslc_module_options_cancel_changes"),e="undefined"!=typeof e?e:!1;var s=jQuery(".dslca-module-being-edited"),o=jQuery(".dslca-module-options-front-backup").children().clone();jQuery(".dslca-module-options-front",s).html("").append(o),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(""):jQuery(".dslca-module-edit-options-inner .jspPane").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),e&&e()}),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(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}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 e=jQuery(".dslca-module-edit-field-ttip"),s=e.find(".dslca-module-edit-field-ttip-inner"),o=jQuery(this),d=o.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html();if(e.is(":visible"))jQuery(".dslca-module-edit-field-ttip").hide();else{s.html(d);var l=o.offset(),a=e.outerHeight(),t=e.outerWidth(),i=l.left-t/2+6,c="50%";0>i&&(c=t/2+i+"px",i=0),jQuery(".dslca-module-edit-field-ttip").show().css({top:l.top-a-20,left:i}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+c+" }</style>"))}}),jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-icon-ttip"),s=jQuery(this);if(e.is(":visible"))jQuery(".dslca-module-edit-field-icon-ttip").hide();else{var o=s.offset(),d=e.outerHeight(),l=e.outerWidth(),a=o.left-l/2+6,t="50%";0>a&&(t=l/2+a+"px",a=0),jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:o.top-d-20,left:a}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+t+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var s=jQuery(this).closest(".dslca-module-edit-option-font"),o=jQuery(".dslca-module-edit-field-font",s),d=dslcAllFontsArray.indexOf(o.val()),l=d+1;jQuery(".dslca-module-edit-field-font-suggest",s).text(""),o.val(dslcAllFontsArray[l]).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(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var s=jQuery(this).closest(".dslca-module-edit-option-font"),o=jQuery(".dslca-module-edit-field-font",s),d=dslcAllFontsArray.indexOf(o.val()),l=d-1;jQuery(".dslca-module-edit-field-font-suggest",s).text(""),0>l&&(l=dslcAllFontsArray.length-1),o.val(dslcAllFontsArray[l]).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(e){var s,o,d,l,a=!1;if(s=jQuery(this),o=s.closest(".dslca-module-edit-option"),38==e.which&&jQuery(".dslca-module-edit-field-font-prev",o).click(),40==e.which&&jQuery(".dslca-module-edit-field-font-next",o).click(),13!=e.which&&38!=e.which&&40!=e.which){d=s.val();var t=new RegExp("^"+d,"i"),i=dslcAllFontsArray.length,c=0;do{if(t.test(dslcAllFontsArray[c])&&!a)var a=dslcAllFontsArray[c];c++}while(i>c);a?(l=a,jQuery(".dslca-module-edit-field-font-suggest",o).show()):(l=d,jQuery(".dslca-module-edit-field-font-suggest",o).hide()),jQuery(".dslca-module-edit-field-font-suggest",o).text(l),l.length&&s.val(l.substring(0,s.val().length))}}),jQuery(document).on("keypress",".dslca-module-edit-field-font",function(e){if(13==e.which){e.preventDefault();var s,o;s=jQuery(this),o=s.closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",o).text()).trigger("change"),jQuery(".dslca-module-edit-field-font-suggest",o).text("")}})}function dslc_module_options_icon(){jQuery(document).on("click",".dslca-module-edit-field-icon-next",function(e){e.preventDefault();var s=jQuery(this).closest(".dslca-module-edit-option-icon"),o=jQuery(".dslca-module-edit-field-icon",s),d=dslcFontAwesomeArray.indexOf(o.val()),l=d+1;jQuery(".dslca-module-edit-field-icon-suggest",s).text(""),o.val(dslcFontAwesomeArray[l]).trigger("change")}),jQuery(document).on("click",".dslca-module-edit-field-icon-prev",function(e){e.preventDefault();var s=jQuery(this).closest(".dslca-module-edit-option-icon"),o=jQuery(".dslca-module-edit-field-icon",s),d=dslcFontAwesomeArray.indexOf(o.val()),l=d-1;jQuery(".dslca-module-edit-field-icon-suggest",s).text(""),0>l&&(l=dslcFontAwesomeArray.length-1),o.val(dslcFontAwesomeArray[l]).trigger("change")}),jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(e){var s,o,d,l,a;s=jQuery(this),o=s.closest(".dslca-module-edit-option"),38==e.which&&jQuery(".dslca-module-edit-field-icon-prev",o).click(),40==e.which&&jQuery(".dslca-module-edit-field-icon-next",o).click(),13!=e.which&&38!=e.which&&40!=e.which&&(d=s.val().toLowerCase(),s.val(d),l=jQuery.grep(dslcFontAwesomeArray,function(e){return 0==e.indexOf(d)}),a=l[0],jQuery(".dslca-module-edit-field-icon-suggest",o).text(a))}),jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(e){if(13==e.which){e.preventDefault();var s,o;s=jQuery(this),o=s.closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",o).text()).trigger("change"),jQuery(".dslca-module-edit-field-icon-suggest",o).text("")}})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var e=jQuery(this),s=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),o=e.data("val"),d=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");s.removeClass("dslca-active"),e.addClass("dslca-active"),d.val(o).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 e=jQuery(this),s=e.siblings('input[type="checkbox"]');s.prop("checked")?(s.prop("checked",!1),e.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")):(s.prop("checked",!0),e.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")),s.change()})}function dslc_module_options_color(){dslcDebug&&console.log("dslc_module_options_color");var e,s,o,d,l,a,t,i,c,n=[];if(n[0]=[],n[1]=[],n[2]=[],n[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(i=JSON.parse(localStorage.dslcColorpickerPalleteStorage),c=0;c<i.length;c++){var r=Math.floor(c/3);4>r&&n[r].push(i[c])}jQuery(".dslca-module-edit-field-colorpicker").each(function(){t=jQuery(this).val(),jQuery(this).spectrum({color:t,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:n,move:function(t){e=jQuery(this),d=null==t?"transparent":t.toRgbString(),e.val(d),s=e.data("affect-on-change-el"),o=e.data("affect-on-change-rule"),jQuery(s,".dslca-module-being-edited").css(o,d),l=jQuery(".dslca-module-being-edited"),a=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+a+'"]',l).val(d),l.addClass("dslca-module-change-made")},change:function(t){if(e=jQuery(this),d=null==t?"transparent":t.toRgbString(),e.val(d),s=e.data("affect-on-change-el"),o=e.data("affect-on-change-rule"),jQuery(s,".dslca-module-being-edited").css(o,d),l=jQuery(".dslca-module-being-edited"),a=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+a+'"]',l).val(d),l.addClass("dslca-module-change-made"),void 0==localStorage.dslcColorpickerPalleteStorage){var i=[d];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(i)}else{var i=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==i.indexOf(d)&&i.unshift(d),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(i)}},show:function(){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})}),jQuery(".dslca-sp-revert").click(function(){var e=jQuery(".sp-replacer.sp-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("default");jQuery(this).closest(".sp-container").find(".sp-input").val(e).trigger("change")})}function dslc_module_options_numeric(){dslcDebug&&console.log("dslc_module_options_numeric"),jQuery(".dslca-module-edit-field-slider").each(function(){var e,s,o,d,l,a,t,i,c,n,r;e=jQuery(this),s=e.siblings(".dslca-module-edit-field"),a=e.closest(".dslca-module-edit-option-slider").find(".dslca-module-edit-field-slider-tooltip"),e.slider({min:s.data("min"),max:s.data("max"),step:s.data("increment"),value:s.val(),slide:function(u,m){n=s.data("ext"),o=m.value+n,s.val(o),l=s.data("affect-on-change-el"),d=s.data("affect-on-change-rule"),r=d.split(",");for(var p=0;p<r.length;p++)jQuery(l,".dslca-module-being-edited").css(r[p],o);i=jQuery(".dslca-module-being-edited"),c=s.data("id"),jQuery('.dslca-module-option-front[data-id="'+c+'"]',i).val(m.value),i.addClass("dslca-module-change-made"),a.text(o);var h=e.find(".ui-slider-handle");t=h[0].style.left,a.css({left:t}),dslc_masonry(i),dslc_init_square(),dslc_center(),dslc_init_square(i)},stop:function(){a.hide()},start:function(e,s){a.show(),a.text(o),t=s.handle.style.left,a.css({left:t})}})})}function dslc_module_output_default(e,s){dslcDebug&&console.log("dslc_module_output_default"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:e,dslc_post_id:jQuery(".dslca-container").data("post-id")},function(e){s(e)})}function dslc_module_output_altered(e){dslcDebug&&console.log("dslc_module_output_altered"),e="undefined"!=typeof e?e:!1;var s=jQuery(".dslca-module-being-edited"),o=s.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",s),l=s.data("module-id"),a={};a.action="dslc-ajax-add-module",a.dslc="active",a.dslc_module_id=o,a.dslc_module_instance_id=l,a.dslc_post_id=jQuery(".dslca-container").data("post-id"),a.dslc_preload_preset=s.hasClass("dslca-preload-preset")?"enabled":"disabled",s.removeClass("dslca-preload-preset"),d.each(function(){var e=jQuery(this),s=e.data("id"),o=e.val();a[s]=o}),jQuery.post(DSLCAjax.ajaxurl,a,function(o){s.after(o.output).next().addClass("dslca-module-being-edited"),s.remove(),dslc_generate_code(),dslc_show_publish_button(),dslc_carousel(),dslc_masonry(jQuery(".dslca-module-being-edited")),jQuery(".dslca-module-being-edited img").load(function(){dslc_masonry(jQuery(".dslca-module-being-edited")),dslc_center()}),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),e&&e(o)})}function dslc_module_output_reload(e,s){dslcDebug&&console.log("dslc_module_output_reload"),s="undefined"!=typeof s?s:!1;var o=e.data("dslc-module-id"),d=jQuery(".dslca-module-options-front textarea",e),l=e.data("module-id"),a={};a.action="dslc-ajax-add-module",a.dslc="active",a.dslc_module_id=o,a.dslc_module_instance_id=l,a.dslc_post_id=jQuery(".dslca-container").data("post-id"),a.dslc_preload_preset="enabled",e.removeClass("dslca-preload-preset"),d.each(function(){var e=jQuery(this),s=e.data("id"),o=e.val();a[s]=o}),e.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>'),jQuery.post(DSLCAjax.ajaxurl,a,function(o){e.after(o.output).next().addClass("dslca-module-being-edited"),e.remove(),dslc_generate_code(),dslc_show_publish_button(),dslc_carousel(),dslc_masonry(jQuery(".dslca-module-being-edited")),jQuery(".dslca-module-being-edited img").load(function(){dslc_masonry(jQuery(".dslca-module-being-edited")),dslc_center()}),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),s&&s(o),jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})}function dslc_delete_module(e){dslc_module_delete(e)}function dslc_copy_module(e){dslc_module_copy(e)}function dslc_display_module_options(e){dslc_module_options_show(e)}function dslc_filter_module_options(e){dslc_module_options_section_filter(e)}function dslc_show_module_options_tab(e){dslc_module_options_tab_filter(e)}function dslc_confirm_changes(e){dslc_module_options_confirm_changes(e)}function dslc_cancel_changes(e){dslc_module_options_cancel_changes(e)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_init_options_scrollbar(){dslc_module_options_scrollbar()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}function dslc_get_module_output(e,s){dslc_module_output_default(e,s)}function dslc_preview_change(e){dslc_module_output_altered(e)}function dslc_reload_module(e,s){dslc_module_output_reload(e,s)}function dslc_template_load(e){dslcDebug&&console.log("dslc_load_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:e},function(e){jQuery("#dslc-main").html(e.output),dslc_carousel(),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_template_import(){dslcDebug&&console.log("dslc_import_template");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(e){jQuery("#dslc-main").html(e.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"),dslc_bg_video(),dslc_center(),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_template_save(){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(){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(e){dslcDebug&&console.log("dslc_delete_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:e},function(){jQuery('.dslca-template[data-id="'+e+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(e){dslc_template_load(e)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(e){dslc_template_delete(e)}function dslc_save_composer(){dslcDebug&&console.log("dslc_save_composer");var e=jQuery("#dslca-code").val(),s=jQuery("#dslca-content-for-search").val(),o=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.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:o,dslc_code:e,dslc_content_for_search:s},function(e){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok"),"success"==e.status?(jQuery(".dslca-save-composer").fadeOut(250),jQuery(".dslca-save-draft-composer").fadeOut(250)):alert("Something went wrong, please try to save again."),jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){dslcDebug&&console.log("dslc_save_draft_composer");var e=jQuery("#dslca-code").val(),s=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:s,dslc_code:e},function(e){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save"),"success"==e.status?jQuery(".dslca-save-draft-composer").fadeOut(250):alert("Something went wrong, please try to save again."),jQuery("body").removeClass("dslca-saving-in-progress")
3
- })}function dslc_generate_code(){dslcDebug&&console.log("dslc_generate_code");var e,s,o,d,l,a,t,i="",c=12,n=12,r=0,u=0,m="";jQuery("#dslc-main .dslc-modules-area").each(function(){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()):(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").each(function(){jQuery(".dslc-modules-area",this).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}),jQuery("#dslc-main .dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col").removeClass("dslc-last-col dslc-first-col"),jQuery("#dslc-main .dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col").removeClass("dslc-last-col dslc-first-col"),jQuery("#dslc-main .dslc-modules-section").each(function(){u=0,t=jQuery(this),m="",jQuery(".dslca-modules-section-settings input",t).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '}),i=i+"[dslc_modules_section "+m+"] ",jQuery(".dslc-modules-area",t).each(function(){d=jQuery(this),o=parseInt(d.data("size")),l="no",a="no",u+=o,u==n?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),u=0,l="yes"):u>n&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),u=o,a="yes"),u==o&&(a="yes"),i=i+'[dslc_modules_area last="'+l+'" first="'+a+'" size="'+o+'"] ',jQuery(".dslc-module-front",d).each(function(){s=parseInt(jQuery(this).data("dslc-module-size"));var o="no",d="no";r+=s,r==c?(jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0,o="yes"):r>c&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),r=s,d="yes"),r==c&&(d="yes",jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0),e=jQuery(this).find(".dslca-module-code").val(),i=i+'[dslc_module last="'+o+'"]'+e+"[/dslc_module] "}),i+="[/dslc_modules_area] "}),i+="[/dslc_modules_section] "}),jQuery("#dslca-code").val(i),jQuery("#dslca-export-code").val(i),dslca_gen_content_for_search()}function dslc_generate_section_code(e){dslcDebug&&console.log("dslc_generate_section_code");var s,o,d,l,a,t,i,c="",n=12,r=0,u=0,m="";u=0;var i=e;return jQuery(".dslca-modules-section-settings input",i).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '}),c=c+"[dslc_modules_section "+m+"] ",jQuery(".dslc-modules-area",i).each(function(){l=jQuery(this),d=parseInt(l.data("size")),a="no",t="no",u+=d,u==n?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),u=0,a="yes"):u>n&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),u=d,t="yes"),u==d&&(t="yes"),c=c+'[dslc_modules_area last="'+a+'" first="'+t+'" size="'+d+'"] ',jQuery(".dslc-module-front",l).each(function(){o=parseInt(jQuery(this).data("dslc-module-size")),r+=o,r==d&&(jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0),s=jQuery(this).find(".dslca-module-code").val(),c=c+"[dslc_module]"+s+"[/dslc_module] "}),c+="[/dslc_modules_area] "}),c+="[/dslc_modules_section] "}function dslc_update_preset(){dslcDebug&&console.log("dslc_update_preset");var e=jQuery(".dslca-module-being-edited"),s=e.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),o=e.find(".dslca-module-code").val(),d=e.data("dslc-module-id");"none"!==s&&jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:s,dslc_preset_code:o,dslc_module_id:d},function(){jQuery(".dslc-module-front:not(#"+e.attr("id")+')[data-dslc-module-id="'+e.data("dslc-module-id")+'"][data-dslc-preset="'+e.data("dslc-preset")+'"]').each(function(){dslc_module_output_reload(jQuery(this))})})}function dslc_dm_get_defaults(e){dslcDebug&&console.log("dslc_dm_get_defaults");var s=e.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:s},function(e){jQuery(".dslca-prompt-modal textarea").val(e.output)})}function dslca_gen_content_for_search(){dslcDebug&&console.log("dslca_gen_content_for_search");var e=jQuery("#dslca-content-for-search"),s=e.val(),o="";jQuery("#dslc-main .dslca-editable-content").each(function(){o+=jQuery(this).text().replace(/\s+/g," ").trim()+" "}),e.val(o),s!==o&&dslc_show_publish_button()}function dslca_draggable_calc_center(e){dslcDebug&&console.log("dslca_draggable_calc_center"),jQuery(".dslc-modules-section-inner").sortable("option","cursorAt",{top:e.outerHeight()/2,left:e.outerWidth()/2})}function dslc_editable_content_gen_code(e){dslcDebug&&console.log("dslc_editable_content_gen_code");var s,o,d;s=e.closest(".dslc-module-front"),o=e.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),d=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+d+'"]',s).val(o),dslc_show_publish_button()}var dslcRegularFontsArray=["Georgia","Times","Arial","Lucida Sans Unicode","Tahoma","Trebuchet MS","Verdana","Helvetica"],dslcGoogleFontsArray=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Baumans","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","Eagle Lake","Eater","EB Garamond","Economica","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Holtwood One SC","Homemade Apple","Homenaje","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kameron","Karla","Kaushan Script","Kavoon","Keania One","Kelly Slab","Kenia","Kite One","Knewave","Kotta One","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Port Lligat Sans","Port Lligat Slab","Prata","Press Start 2P","Princess Sofia","Prociono","Prosto One","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Swanky and Moo Moo","Syncopate","Tangerine","Tauri","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Vast Shadow","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada"],dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray),dslcFontAwesomeArray=["adjust","adn","align-center","align-justify","align-left","align-right","ambulance","anchor","android","angellist","angle-down","angle-left","angle-right","angle-up","apple","archive","area-chart","arrow-circle-left","arrow-circle-right","arrow-down","arrow-left","arrow-right","arrow-up","asterisk","at","automobile","backward","ban-circle","bank","bar-chart","barcode","beaker","bed","beer","behance","behance-square","bell","bell-alt","bell-slash","bell-slash-o","bicycle","binoculars","birthday-cake","bitbucket","bitbucket-sign","bitcoin","bold","bolt","bomb","book","bookmark","bookmark-empty","briefcase","btc","bug","building","building","bullhorn","bullseye","bus","buysellads","cab","calculator","calendar","calendar-empty","camera","camera-retro","car","caret-down","caret-left","caret-right","caret-square-left","caret-up","cart-arrow-down","cart-plus","cc","cc-amex","cc-discover","cc-mastercard","cc-paypal","cc-stripe","cc-visa","certificate","check","check-empty","check-minus","check-sign","chevron-down","chevron-left","chevron-right","chevron-sign-down","chevron-sign-left","chevron-sign-right","chevron-sign-up","chevron-up","child","circle","circle-arrow-down","circle-arrow-left","circle-arrow-right","circle-arrow-up","circle-blank","circle-o-notch","circle-thin","cloud","cloud-download","cloud-upload","cny","code","code-fork","codepen","coffee","cog","cogs","collapse","collapse-alt","collapse-top","columns","comment","comment-alt","comments","comments-alt","compass","connectdevelop","copy","copyright","credit-card","crop","css3","cube","cubes","cut","dashboard","dashcube","database","delicious","desktop","deviantart","diamond","digg","dollar","dot-circle","double-angle-down","double-angle-left","double-angle-right","double-angle-up","download","download-alt","dribbble","dropbox","drupal","edit","edit-sign","eject","ellipsis-horizontal","ellipsis-vertical","empire","envelope","envelope-alt","envelope-square","eraser","eur","euro","exchange","exclamation","exclamation-sign","expand","expand-alt","external-link","external-link-sign","eye-close","eye-open","eyedropper","facebook","facebook-official","facebook-sign","facetime-video","fast-backward","fast-forward","fax","female","fighter-jet","file","file-alt","file-archive-o","file-audio-o","file-code-o","file-excel-o","file-image-o","file-movie-o","file-pdf-o","file-photo-o","file-picture-o","file-powerpoint-o","file-sound-o","file-text","file-text-alt","file-video-o","file-word-o","file-zip-o","film","filter","fire","fire-extinguisher","flag","flag-alt","flag-checkered","flickr","folder-close","folder-close-alt","folder-open","folder-open-alt","font","food","forumbee","forward","foursquare","frown","fullscreen","futbol-o","gamepad","gbp","ge","gear","gears","gift","git","git-square","github","github-alt","github-sign","gittip","glass","globe","google","google-plus","google-plus-sign","google-wallet","graduation-cap","group","h-sign","hacker-news","hand-down","hand-left","hand-right","hand-up","hdd","header","headphones","heart","heart-empty","heartbeat","history","home","hospital","hotel (alias)","html5","ils","inbox","indent-left","indent-right","info","info-sign","inr","instagram","institution","ioxhost","italic","joomla","jpy","jsfiddle","key","keyboard","krw","language","laptop","lastfm","lastfm-square","leaf","leanpub","legal","lemon","level-down","level-up","life-bouy","life-ring","life-saver","lightbulb","line-chart","link","linkedin","linkedin-sign","linux","list","list-alt","list-ol","list-ul","location-arrow","lock","long-arrow-down","long-arrow-left","long-arrow-right","long-arrow-up","magic","magnet","mail-forward","mail-reply","mail-reply-all","male","map-marker","mars","mars-double","mars-stroke","mars-stroke-h","mars-stroke-v","maxcdn","meanpath","medium","medkit","meh","mercury","microphone","microphone-off","minus","minus-sign","minus-sign-alt","mobile-phone","money","moon","mortar-board","motorcycle","move","music","neuter","newspaper-o","off","ok","ok-circle","ok-sign","openid","pagelines","paint-brush","paper-clip","paper-plane","paper-plane-o","paperclip","paragraph","paste","pause","paw","paypal","pencil","phone","phone-sign","picture","pie-chart","pied-piper","pied-piper-alt","pied-piper-square","pinterest","pinterest-p","pinterest-sign","plane","play","play-circle","play-sign","plug","plus","plus-sign","plus-sign-alt","power-off","print","pushpin","puzzle-piece","qq","qrcode","question","question-sign","quote-left","quote-right","ra","random","rebel","recycle","reddit","reddit-square","refresh","remove","remove-circle","remove-sign","renminbi","renren","reorder","repeat","reply","reply-all","resize-full","resize-horizontal","resize-small","resize-vertical","retweet","road","rocket","rotate-left","rotate-right","rouble","rss","rss-sign","rupee","save","screenshot","search","sellsy","send","send-o","server","share","share-alt","share-alt","share-alt-square","share-sign","shield","ship","shirtsinbulk","shopping-cart","sign-blank","signal","signin","signout","simplybuilt","sitemap","skyatlas","skype","slack","sliders","slideshare","smile","sort","sort-by-alphabet","sort-by-alphabet-alt","sort-by-attributes","sort-by-attributes-alt","sort-by-order","sort-by-order-alt","sort-down","sort-up","soundcloud","space-shuttle","spinner","spoon","spotify","stack-exchange","stackexchange","star","star-empty","star-half","star-half-empty","star-half-full","steam","steam-square","step-backward","step-forward","stethoscope","stop","street-view","strikethrough","stumbleupon","stumbleupon-circle","subscript","subway","suitcase","sun","superscript","support","table","tablet","tag","tags","tasks","taxi","tencent-weibo","terminal","text-height","text-width","th","th-large","th-list","thumbs-down","thumbs-down-alt","thumbs-up","thumbs-up-alt","ticket","time","tint","toggle-off","toggle-on","train","transgender","transgender-alt","trash","trash","tree","trello","trophy","truck","tty","tumblr","tumblr-sign","turkish-lira","twitch","twitter","twitter-sign","umbrella","unchecked","underline","undo","university","unlink","unlock","unlock-alt","upload","upload-alt","usd","user","user-md","user-plus","user-secret","user-times","venus","venus-double","venus-mars","viacoin","vimeo-square","vine","vk","volume-down","volume-off","volume-up","warning-sign","wechat","weibo","weixin","whatsapp","wheelchair","wifi","windows","won","wordpress","wrench","xing","xing-sign","yahoo","yelp","yen","youtube","youtube-play","youtube-sign","zoom-in","zoom-out"],dslcDebug=!1;jQuery(document).ready(function(e){jQuery("body").hasClass("rtl")||jQuery(".dslca-module-edit-options-inner").jScrollPane(),e("body").addClass("dslca-enabled dslca-drag-not-in-progress"),e(".dslca-invisible-overlay").hide(),e(".dslca-section").eq(0).show(),dslc_drag_and_drop(),dslc_generate_code(),e(document).on("click",".dslca-hide-composer-hook",function(){dslc_hide_composer()}),e(document).on("click",".dslca-show-composer-hook",function(){dslc_show_composer()}),e(document).on("click",".dslca-go-to-modules-hook",function(e){e.preventDefault(),dslc_show_section(".dslca-modules")}),e(document).on("click",".dslca-go-to-section-hook",function(s){s.preventDefault();var o=e(this).data("section");dslc_show_section(o),e(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}),e(document).on("click",".dslca-close-composer-hook",function(s){s.preventDefault(),e("body").hasClass("dslca-saving-in-progress")||dslc_js_confirm("disable_lc",'<span class="dslca-prompt-modal-title">'+DSLCString.str_exit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_exit_descr+"</span>",e(this).attr("href"))}),e(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()}),e(document).on("click",".dslca-section-title",function(s){s.stopPropagation(),e(".dslca-section-title-filter",this).length&&(dslc_generate_filters(),e(".dslca-section-title-filter-options").slideToggle(300))}),e(document).on("click",".dslca-section-title-filter-options span",function(s){s.stopPropagation();var o=e(this).data("origin"),d=e(this).closest(".dslca-section");e(".dslca-section-title-filter-curr",d).text(d.hasClass("dslca-templates-load")?e(this).text()+" TEMPLATES":e(this).text()+" MODULES"),e(".dslca-section-scroller-inner").css({left:0}),dslc_filter_origin(o,d)})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-section-scroller-prev",function(s){s.preventDefault(),dslc_scroller_prev(e(this).closest(".dslca-section").find(".dslca-section-scroller"))}),e(document).on("click",".dslca-section-scroller-next",function(s){s.preventDefault(),dslc_scroller_next(e(this).closest(".dslca-section").find(".dslca-section-scroller"))})}),jQuery(window).load(function(){dslc_scroller_init(),jQuery(window).resize(function(){dslc_scroller_init()})}),jQuery(document).ready(function(){dslc_ui_animations()}),jQuery(document).ready(function(e){e(document).on("click",".dslca-open-modal-hook",function(){var s=e(this).data("modal");dslc_show_modal(e(this),s)}),e(document).on("click",".dslca-close-modal-hook",function(){if(!e(this).hasClass("dslca-action-disabled")){var s=e(this).data("modal");dslc_hide_modal(e(this),s)}})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-prompt-modal-cancel-hook",function(e){e.preventDefault();var s=jQuery(".dslca-prompt-modal").data("id"),o=jQuery(".dslca-prompt-modal").data("target");"edit_in_progress"==s&&dslc_module_options_cancel_changes(function(){o.trigger("click")}),dslc_js_confirm_close(),jQuery(".dslca-prompt-modal").data("id","")}),e(document).on("click",".dslca-prompt-modal-confirm-hook",function(s){s.preventDefault();var o=jQuery(".dslca-prompt-modal").data("id"),d=jQuery(".dslca-prompt-modal").data("target"),l=!0;if("edit_in_progress"==o)dslc_module_options_confirm_changes(function(){d.trigger("click")});else if("disable_lc"==o)window.location=d;else if("delete_module"==o){var a=d.closest(".dslc-module-front");dslc_delete_module(a)}else if("delete_modules_area"==o){var t=d.closest(".dslc-modules-area");dslc_modules_area_delete(t)}else"delete_modules_section"==o?dslc_row_delete(d.closest(".dslc-modules-section")):"export_modules_section"==o||"import_modules_section"==o&&(dslc_row_import(e(".dslca-prompt-modal textarea").val()),e(".dslca-prompt-modal-confirm-hook span").css({opacity:0}),e(".dslca-prompt-modal-confirm-hook .dslca-loading").show(),l=!1);l&&dslc_js_confirm_close(),jQuery(".dslca-prompt-modal").data("id","")}),e(window).on("keydown",function(s){13==s.which?e(".dslca-prompt-modal-active").length&&e(".dslca-prompt-modal-confirm-hook").trigger("click"):27==s.which&&e(".dslca-prompt-modal-active").length&&e(".dslca-prompt-modal-cancel-hook").trigger("click")})}),jQuery(document).ready(function(e){dslc_row_edit_colorpicker_init(),dslc_row_edit_slider_init(),e("#dslc-main .dslc-modules-section").length||e("#dslca-tut-page").length||dslc_row_add(),e(document).on("click",".dslca-add-modules-section-hook",function(){var s=e(this);e(this).hasClass("dslca-action-disabled")||(s.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin"),dslc_row_add(function(){s.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")}))}),e(document).on("click",".dslca-edit-modules-section-hook",function(){e(this).hasClass("dslca-action-disabled")||(jQuery(".dslca-module-being-edited.dslca-module-change-made").length?dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_module_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_module_curr_edit_descr+"</span>",jQuery(this)):jQuery(".dslca-modules-section-being-edited.dslca-modules-section-change-made").length?dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_row_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_row_curr_edit_descr+"</span>",jQuery(this)):dslc_row_edit(e(this).closest(".dslc-modules-section")))}),e(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm(),e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel(),e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-copy-modules-section-hook",function(){e(this).hasClass("dslca-action-disabled")||dslc_row_copy(e(this).closest(".dslc-modules-section"))}),e(document).on("click",".dslca-import-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span><span>'+DSLCString.str_import+'</span><div class="dslca-loading followingBallsGWrap"><div class="followingBallsG_1 followingBallsG"></div><div class="followingBallsG_2 followingBallsG"></div><div class="followingBallsG_3 followingBallsG"></div><div class="followingBallsG_4 followingBallsG"></div></div>'),dslc_js_confirm("import_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_import_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_import_row_descr+" <br><br><textarea></textarea></span>",e(this)))}),e(document).on("click",".dslca-delete-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_row_descr+"</span>",e(this))}),e(document).on("click",".dslca-export-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-prompt-modal-cancel-hook").hide(),e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok),dslc_js_confirm("export_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_export_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_export_row_descr+" <br><br><textarea></textarea></span>",e(this)),e(".dslca-prompt-modal textarea").val(dslc_generate_section_code(e(this).closest(".dslc-modules-section"))))})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-add-modules-area-hook",function(e){e.preventDefault(),dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))}),e(document).on("click",".dslca-delete-modules-area-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_modules_area",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_area_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_area_descr+"</span>",e(this))}),e(document).on("click",".dslca-copy-modules-area-hook",function(s){if(s.preventDefault(),!e(this).hasClass("dslca-action-disabled")){var o=e(this).closest(".dslc-modules-area");dslc_copy_modules_area(o)}}),e(document).on("click",".dslca-change-width-modules-area-options span",function(){e(this).hasClass("dslca-action-disabled")||dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}),e(document).on("click",".dslca-change-width-modules-area-hook",function(s){if(s.preventDefault(),!e(this).hasClass("dslca-action-disabled"))if(e(".dslca-change-width-modules-area-options:visible",this).length)e(".dslca-change-width-modules-area-options",this).hide();else{e(".dslca-change-width-modules-area-options .dslca-active-width").removeClass("dslca-active-width");var o=e(this).closest(".dslc-modules-area").data("size");e('.dslca-change-width-modules-area-options span[data-size="'+o+'"]').addClass("dslca-active-width"),e(".dslca-change-width-modules-area-options",this).show()}})}),jQuery(document).ready(function(e){dslc_module_options_tooltip(),dslc_module_options_font(),dslc_module_options_icon(),dslc_module_options_text_align(),dslc_module_options_checkbox(),e(".dslca-module-edit-form").submit(function(e){e.preventDefault(),dslc_module_output_altered()}),e(document).on("click",".dslca-copy-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_module_copy(e(this).closest(".dslc-module-front"))}),e(document).on("click",".dslca-delete-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_module",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_module_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_module_descr+"</span>",e(this))}),e(document).on("click",".dslca-change-width-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-change-width-module-options",this).toggle(),e(this).closest(".dslca-module-manage").toggleClass("dslca-module-manage-change-width-active"))}),e(document).on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))}),e(document).on("click",".dslca-module-edit-hook",function(s){if(s.preventDefault(),!e("body").hasClass("dslca-composer-hidden"))if(e(".dslca-module-being-edited.dslca-module-change-made").length)dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_module_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_module_curr_edit_descr+"</span>",e(this));else if(e(".dslca-modules-section-being-edited.dslca-modules-section-change-made").length)dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_row_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_row_curr_edit_descr+"</span>",e(this));else{e(".dslca-modules-section-being-edited").length&&e(".dslca-module-edit-cancel").trigger("click");{var o=e(this).closest(".dslc-module-front"),d=o.data("dslc-module-id");
4
- o.find(".dslca-module-code").val()}e(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),o.addClass("dslca-module-being-edited"),dslc_module_options_show(d)}}),e(document).on("click",".dslca-module-edit-options-tab-hook",function(){dslc_module_options_tab_filter(e(this))}),e(document).on("click",".dslca-options-filter-hook",function(){var s=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),e(this).addClass("dslca-active"),dslc_module_options_section_filter(jQuery(this).data("section")),"responsive"==s&&(jQuery(".dslca-container-loader").show(),dslc_responsive_classes(),dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()}))}),e(document).on("click",".dslca-module-edit-save",function(){dslc_module_options_confirm_changes(),e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-module-edit-cancel",function(){dslc_module_options_cancel_changes(),e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-template",function(){dslc_template_load(jQuery(this).data("id"))}),e(".dslca-template-import-form").submit(function(e){e.preventDefault(),dslc_template_import()}),e(".dslca-template-save-form").submit(function(e){e.preventDefault(),dslc_template_save()}),e(document).on("click",".dslca-delete-template-hook",function(s){s.stopPropagation(),dslc_template_delete(e(this).data("id"))})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-save-composer-hook",function(){e("body").hasClass("dslca-module-saving-in-progress")||e("body").hasClass("dslca-saving-in-progress")||dslc_save_composer()}),e(document).on("click",".dslca-save-draft-composer-hook",function(){e("body").hasClass("dslca-module-saving-in-progress")||e("body").hasClass("dslca-saving-in-progress")||dslc_save_draft_composer()})}),jQuery(document).ready(function(e){e(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(s){if(13==s.which){var o=e(this).val(),d=o.toLowerCase().replace(/\s/g,"-");e("body").addClass("dslca-new-preset-added"),e('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+d+'">'+d+"</option>").val(d).trigger("change"),e(this).val("")}}),e(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(){e(".dslca-module-being-edited").addClass("dslca-preload-preset")})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-module-get-defaults-hook",function(){var s=jQuery(this).closest(".dslc-module-front"),o=(dslc_dm_get_defaults(s),'<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>');e(".dslca-prompt-modal-cancel-hook").hide(),e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK'),dslc_js_confirm("dev_mode_get_default",o,s)}),e(document).on("click","a:not(.dslca-link)",function(e){e.preventDefault()}),e(document).unbind("keydown").bind("keydown",function(s){var o=!1;if(8===s.keyCode){var d=s.srcElement||s.target;o="INPUT"===d.tagName.toUpperCase()&&("TEXT"===d.type.toUpperCase()||"PASSWORD"===d.type.toUpperCase()||"FILE"===d.type.toUpperCase())||"TEXTAREA"===d.tagName.toUpperCase()||e(d).hasClass("dslca-editable-content")||e(d).hasClass("dslc-tabs-nav-hook-title")||e(d).hasClass("dslc-accordion-title")?d.readOnly||d.disabled:!0}o&&s.preventDefault()}),e(document).on("keydown",function(e){116==(e.which||e.keyCode)&&(jQuery(".dslca-save-composer-hook").is(":visible")||jQuery(".dslca-module-edit-save").is(":visible"))&&(e.preventDefault(),dslc_js_confirm("disable_lc",'<span class="dslca-prompt-modal-title">'+DSLCString.str_refresh_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_refresh_descr+"</span>",document.URL))}),e(document).on("mouseenter",".dslc-hf-block-overlay",function(){e(this).stop().animate({opacity:1},300)}).on("mouseleave",".dslc-hf-block-overlay",function(){e(this).stop().animate({opacity:0},300)}),e(document).on("click",".dslca-refresh-module-hook",function(){e(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"}),e(this).closest(".dslc-module-front").addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){e(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})})}),window.onbeforeunload=function(){},jQuery(document).ready(function(e){e(document).on("change",".dslca-modules-section-edit-field",function(){var s,o,d,l,a,t,i,c;if(s=e(this),o=s.data("id"),l=s.val(),a=l,t=s.data("css-rule"),d=e(".dslca-modules-section-being-edited"),c=d,i=e('.dslca-modules-section-settings input[data-id="'+o+'"]',d),d.addClass("dslca-modules-section-change-made"),s.hasClass("dslca-modules-section-edit-field-upload")&&l&&l.length&&(l=s.data("dslca-img-url")),"background-image"==t&&(l='url("'+l+'")',dslc_bg_video()),"bg_image_attachment"==o&&d.removeClass("dslc-init-parallax"),"border-top"==o||"border-right"==o||"border-bottom"==o||"border-left"==o){var n=e('.dslca-modules-section-settings input[data-id="border_style"]').val();i=e('.dslca-modules-section-settings input[data-id="border"]',d),a="";var r=s.closest(".dslca-modules-section-edit-option-checkbox-wrapper");r.find(".dslca-modules-section-edit-field-checkbox").each(function(){e(this).is(":checked")&&("border-top"==e(this).data("id")?a+="top ":"border-right"==e(this).data("id")?a+="right ":"border-bottom"==e(this).data("id")?a+="bottom ":"border-left"==e(this).data("id")&&(a+="left "))}),s.is(":checked")?"border-top"==s.data("id")?d.css({"border-top-style":n}):"border-right"==s.data("id")?d.css({"border-right-style":n}):"border-bottom"==s.data("id")?d.css({"border-bottom-style":n}):"border-left"==s.data("id")&&d.css({"border-left-style":n}):"border-top"==s.data("id")?d.css({"border-top-style":"hidden"}):"border-right"==s.data("id")?d.css({"border-right-style":"hidden"}):"border-bottom"==s.data("id")?d.css({"border-bottom-style":"hidden"}):"border-left"==s.data("id")&&d.css({"border-left-style":"hidden"})}else if(s.hasClass("dslca-modules-section-edit-field-checkbox")){var u=e(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox"),m="";u.each(function(){e(this).prop("checked")&&(m+=e(this).data("val")+" ")});var a=m;"show_on"==s.data("id")&&(console.log(m),-1!==m.indexOf("desktop")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-desktop"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-desktop"),-1!==m.indexOf("tablet")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-tablet"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-tablet"),-1!==m.indexOf("phone")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-phone"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-phone"))}else if("bg_image_attachment"==o&&"parallax"==l||"type"==o)"bg_image_attachment"==o?(d.addClass("dslc-init-parallax"),dslc_parallax()):"type"==o&&("full"==l?d.addClass("dslc-full"):d.removeClass("dslc-full"),dslc_masonry());else if("columns_spacing"==o)"nospacing"==l?d.addClass("dslc-no-columns-spacing"):d.removeClass("dslc-no-columns-spacing");else if("custom_class"==o);else if("custom_id"==o);else if("bg_video"==o){if(jQuery(".dslc-bg-video video",d).remove(),l&&l.length){var p=l;p=p.replace(".webm",""),p=p.replace(".mp4",""),jQuery(".dslc-bg-video-inner",d).html('<video><source type="video/mp4" src="'+p+'.mp4" /><source type="video/webm" src="'+p+'.webm" /></video>'),dslc_bg_video()}}else if("bg_image_thumb"==o)if("enabled"==a){if(jQuery("#dslca-post-data-thumb").length){var h="url('"+jQuery("#dslca-post-data-thumb").val()+"')";c.css(t,h)}}else"disabled"==a&&c.css(t,"none");else s.data("css-element")&&(c=jQuery(s.data("css-element"),d)),c.css(t,l);i.val(a),dslc_generate_code(),dslc_show_publish_button()}),jQuery(document).on("blur",".dslca-editable-content",function(){jQuery("body").hasClass("dslca-composer-hidden")||"simple"!=jQuery(this).data("type")||dslc_editable_content_gen_code(jQuery(this))}).on("paste",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&"simple"==jQuery(this).data("type")){var e=jQuery(this);setTimeout(function(){"simple"==e.data("type")&&e.html(e.text()),dslc_editable_content_gen_code(jQuery(this))},1)}}).on("focus",".dslca-editable-content",function(){"simple"==jQuery(this).data("type")&&(jQuery("body").hasClass("dslca-composer-hidden")?e(this).trigger("blur"):jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"))}).on("keyup",".dslca-editable-content",function(){"simple"==jQuery(this).data("type")&&jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}),e(document).on("blur",".dslc-editable-area",function(){var s=e(this).closest(".dslc-module-front"),o=e(this).data("dslc-option-id"),d=e(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+o+'"]',s).val(d),dslc_module_output_altered()}),e(document).on("change",".dslca-module-edit-field",function(){dslc_module_options_hideshow_tabs();{var s="",o="",d=e(this),l=d.data("id"),a=d.closest(".dslca-module-edit-option"),t=e(".dslca-module-being-edited"),i=t.data("dslc-module-id");jQuery(".dslca-module-options-front textarea",t)}if(t.addClass("dslca-module-change-made"),"active"==jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")){if(a.find(".dslca-module-edit-option-checkbox-wrapper").length){var c=e('input[type="checkbox"]',a);c.each(function(){e(this).prop("checked")&&(s=s+e(this).val()+" ")})}else if(d.hasClass("dslca-module-edit-option-radio"))var s=e(".dslca-module-edit-field:checked",d).val();else{var s=d.val();if("orientation"==l&&"horizontal"==s){var n=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field-slider");n.slider({value:40}).slider("option","slide")(null,{value:n.slider("value")})}else if("orientation"==l&&"vertical"==s){var n=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field-slider");n.slider({value:100}).slider("option","slide")(null,{value:n.slider("value")})}}jQuery('.dslca-module-options-front textarea[data-id="'+l+'"]',t).val(s),jQuery(".dslca-container-loader").show(),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").addClass("dslca-module-change-made"),"css_load_preset"!=l||jQuery("body").hasClass("dslca-new-preset-added")?jQuery(".dslca-container-loader").hide():(dslc_module_options_show(i),jQuery(".dslca-container-loader").hide()),jQuery("body").removeClass("dslca-new-preset-added")})}else{if(d.hasClass("dslca-module-edit-field-font")){var r=d.val();r+=":400,100,200,300,500,600,700,800,900";var u=d.data("affect-on-change-el"),m=d.data("affect-on-change-rule"),p=d.val(),h=p;d.val().length&&-1!==dslcGoogleFontsArray.indexOf(d.val())?WebFont.load({google:{families:[r]},active:function(){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length?"dslc-icon-chevron-right":"dslc-icon-chevron-left"),jQuery(u,".dslca-module-being-edited").css(m,p)},inactive:function(){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length?"dslc-icon-chevron-right":"dslc-icon-chevron-left")}}):(jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length?"dslc-icon-chevron-right":"dslc-icon-chevron-left"),jQuery(u,".dslca-module-being-edited").css(m,p))}else if(d.hasClass("dslca-module-edit-field-checkbox")){var c=e('input[type="checkbox"]',a);c.each(function(){e(this).prop("checked")?(s+="solid ",o=o+e(this).val()+" "):s+="none "})}if(!d.hasClass("dslca-module-edit-field-font")){var u=d.data("affect-on-change-el"),m=d.data("affect-on-change-rule"),p=d.val(),h=p;d.hasClass("dslca-module-edit-field-checkbox")&&(p=s,h=o),d.hasClass("dslca-module-edit-field-image")&&(p='url("'+p+'")'),p.length<1&&("background-color"==m||"background"==m)&&(p="transparent"),jQuery(u,".dslca-module-being-edited").css(m,p)}jQuery('.dslca-module-option-front[data-id="'+l+'"]',t).val(h)}}),e(document).on("keyup, blur",".dslca-module-edit-field-numeric",function(){var s,o=e(this),d=o.data("id"),l=(o.closest(".dslca-module-edit-option"),e(".dslca-module-being-edited")),a=(l.data("dslc-module-id"),jQuery(".dslca-module-options-front textarea",l),o.data("affect-on-change-el")),t=o.data("affect-on-change-rule"),i=o.val(),c=i+o.data("ext");if(l.addClass("dslca-module-change-made"),"active"!=jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")){s=t.split(",");for(var n=0;n<s.length;n++)jQuery(a,".dslca-module-being-edited").css(s[n],c);jQuery('.dslca-module-option-front[data-id="'+d+'"]',l).val(i)}}),e(document).on("keyup",".dslca-modules-section-edit-field-numeric",function(){var s,o=e(this),d=o.data("id"),l=(o.closest(".dslca-modules-section-edit-option"),e(".dslca-modules-section-being-edited")),a=o.data("css-rule"),t=o.val(),i=t+o.data("ext");l.addClass("dslca-modules-section-change-made"),s=a.split(",");for(var c=0;c<s.length;c++)l.css(s[c],i);jQuery('.dslca-modules-section-settings input[data-id="'+d+'"]',l).val(t)})}),jQuery(document).ready(function(e){var s;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){var e=jQuery(this);if(e.hasClass("dslca-module-edit-field-image-add-hook"))var o=e.siblings(".dslca-module-edit-field-image"),d=e.siblings(".dslca-module-edit-field-image-remove-hook");else var o=e.siblings(".dslca-modules-section-edit-field-upload"),d=e.siblings(".dslca-modules-section-edit-field-image-remove-hook");var l=!1;s=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:l}),s.on("select",function(){var l=s.state().get("selection").first().toJSON();o.val(l.id).data("dslca-img-url",l.url).trigger("change"),e.hide(),d.show()}),s.open()}),jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var e=jQuery(this);if(e.hasClass("dslca-module-edit-field-image-remove-hook"))var s=e.siblings(".dslca-module-edit-field-image"),o=e.siblings(".dslca-module-edit-field-image-add-hook");else var s=e.siblings(".dslca-modules-section-edit-field-upload"),o=e.siblings(".dslca-modules-section-edit-field-image-add-hook");s.val("").trigger("change"),e.hide(),o.show()}),e(document).on("click",".dslca-wysiwyg-actions-edit-hook",function(){var s=e(this).parent().siblings(".dslca-editable-content"),o=s.closest(".dslc-module-front");if(o.hasClass("dslc-module-handle-like-accordion")){dslc_accordion_generate_code(o.find(".dslc-accordion"));var d=o.find('.dslca-module-option-front[data-id="accordion_content"]').val(),l=d.split("(dslc_sep)"),a=s.closest(".dslc-accordion-item").index(),t=l[a].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(o.hasClass("dslc-module-handle-like-tabs")){dslc_tabs_generate_code(o.find(".dslc-tabs"));var d=o.find('.dslca-module-option-front[data-id="tabs_content"]').val(),l=d.split("(dslc_sep)"),a=s.closest(".dslc-tabs-tab-content").index(),t=l[a].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else var t=o.find('.dslca-module-option-front[data-id="'+s.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea");if("undefined"!=typeof tinymce){var i=tinymce.get("dslcawpeditor");e("#wp-dslcawpeditor-wrap").hasClass("tmce-active")?i.setContent(t,{format:"html"}):jQuery("textarea#dslcawpeditor").val(t),o.hasClass("dslca-module-being-edited")||o.find(".dslca-module-edit-hook").trigger("click"),e(".dslca-wp-editor").show(),s.addClass("dslca-wysiwyg-active"),e("#dslcawpeditor_ifr, #dslcawpeditor").css({height:e(".dslca-wp-editor").height()-350})}}),e(document).on("click",".dslca-wp-editor-save-hook",function(){var s=e(".dslca-wysiwyg-active").closest(".dslc-module-front");if("undefined"!=typeof tinymce){if(e("#wp-dslcawpeditor-wrap").hasClass("tmce-active"))var o=tinymce.get("dslcawpeditor"),d=o.getContent();else var d=e("#dslcawpeditor").val();if(e(".dslca-wp-editor").hide(),e(".dslca-wysiwyg-active").html(d),s.hasClass("dslc-module-handle-like-accordion")){e(".dslca-wysiwyg-active").siblings(".dslca-accordion-plain-content").val(d);var l=s.find(".dslc-accordion");dslc_accordion_generate_code(l)}else if(s.hasClass("dslc-module-handle-like-tabs")){e(".dslca-wysiwyg-active").siblings(".dslca-tab-plain-content").val(d);var a=s.find(".dslc-tabs");dslc_tabs_generate_code(a)}dslc_editable_content_gen_code(e(".dslca-wysiwyg-active")),e(".dslca-wysiwyg-active").removeClass("dslca-wysiwyg-active")}}),e(document).on("click",".dslca-wp-editor-cancel-hook",function(){e(".dslca-wp-editor").hide(),e(".dslca-wysiwyg-active").removeClass("dslca-wysiwyg-active")})});
1
+ "use strict";function dslc_hide_composer(){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(".dslca-container").animate({bottom:-1*jQuery(".dslca-container").outerHeight()},300),jQuery(".dslca-header").hide()}function dslc_show_composer(){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(".dslca-container").animate({bottom:0},300),jQuery(".dslca-header").show()}function dslc_show_publish_button(){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_show_section(e){dslcDebug&&console.log("dslc_show_section"),jQuery("body").addClass("dslca-anim-in-progress");var s=(jQuery(e).data("title"),jQuery(e).data("bg"));jQuery(".dslca-container").animate({bottom:-500},200),jQuery(".dslca-sections").animate({backgroundColor:s},200),jQuery(".dslca-section").hide(),jQuery(e).show(),".dslca-modules-section-edit"==e&&dslc_row_edit_scrollbar_init(),dslc_module_options_tab_filter(),".dslca-module-edit"!=e&&dslc_scroller_init(),jQuery(".dslca-container").animate({bottom:0},300),jQuery("body").removeClass("dslca-anim-in-progress")}function dslc_generate_filters(){dslcDebug&&console.log("dslc_generate_filters");var e,s=[],d='<span data-origin="">ALL</span>',o=jQuery(".dslca-section:visible .dslca-origin");o.each(function(){e=jQuery(this),-1==jQuery.inArray(e.data("origin"),s)&&(s.push(e.data("origin")),d+='<span data-origin="'+e.data("origin")+'">'+e.data("origin").replace("_"," ")+"</span>")}),jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(d).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(e,s){dslcDebug&&console.log("dslc_filter_origin"),jQuery(".dslca-origin",s).hide(),jQuery('.dslca-origin[data-origin="'+e+'"]',s).show(),""==e&&jQuery(".dslca-origin",s).show(),dslc_scroller_init()}function dslc_drag_and_drop(){dslcDebug&&console.log("dslc_drag_and_drop");var e,s,d;jQuery(".dslca-modules .dslca-module").draggable({scroll:!1,appendTo:"body",helper:"clone",cursor:"default",cursorAt:{top:50,left:30},containment:"body",start:function(){jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress"),jQuery("#dslc-header").addClass("dslca-header-low-z-index")},stop:function(){jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress"),jQuery("#dslc-header").removeClass("dslca-header-low-z-index")}}),jQuery(".dslc-content").sortable({items:".dslc-modules-section",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"pointer",cursorAt:{bottom:10},axis:"y",scroll:!0,scrollSensitivity:200,scrollSpeed:10,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(){dslc_generate_code(),dslc_show_publish_button()},start:function(e,s){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress"),s.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(){jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop"),jQuery(".dslc-modules-section").css({overflow:"visible","max-height":"none"})}}),jQuery(".dslc-modules-section-inner").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:!0,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(e,s){var d=s.placeholder.closest(".dslc-modules-section");jQuery(d).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"),d.siblings(".dslc-modules-section").each(function(){jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")})},update:function(){dslc_generate_code(),dslc_show_publish_button()},start:function(e,s){s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>"),jQuery(s.item).hasClass("dslc-12-col")?s.placeholder.width(s.item.width()).css({margin:0}):s.placeholder.width(s.item.width()-10),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(){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(){}}),jQuery(".dslc-modules-section").droppable({drop:function(e,s){var d=jQuery(this).find(".dslc-modules-section-inner"),o=s.draggable.data("id");"DSLC_M_A"==o&&dslc_modules_area_add(d)}}),jQuery(".dslc-modules-area").droppable({activeClass:"dslca-ui-state-default",hoverClass:"dslca-ui-state-hover",accept:":not(.ui-sortable-helper)",drop:function(o,l){if(e=jQuery(this),s=l.draggable.data("id"),"DSLC_M_A"==s||jQuery("body").hasClass("dslca-module-drop-in-progress")||e.closest("#dslc-header").length||e.closest("#dslc-footer").length);else{jQuery("body").addClass("dslca-anim-in-progress dslca-module-drop-in-progress"),e.hasClass("dslc-modules-area-not-empty")&&e.animate({paddingBottom:50},150),dslc_module_output_default(s,function(s){d=s.output,jQuery(".dslca-module-loading-inner",e).stop().animate({width:"100%"},300,"linear",function(){e.css({paddingBottom:0}),jQuery(".dslca-module-loading",e).hide();var s=jQuery(d).appendTo(e);s.css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}),setTimeout(function(){dslc_init_square(),dslc_center(),dslc_masonry(s),jQuery("body").removeClass("dslca-anim-in-progress dslca-module-drop-in-progress")},700),jQuery(".dslca-no-content-primary",e).css({opacity:1}),jQuery(".dslca-modules-area-manage",e).css({visibility:"visible"}),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),dslc_carousel(),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),dslc_generate_code(),dslc_show_publish_button()})}),jQuery(".dslca-module-loading",e).show(),jQuery(".dslca-no-content-primary",e).css({opacity:0}),jQuery(".dslca-modules-area-manage",e).css({visibility:"hidden"});var t=100*Math.floor(51*Math.random()+50);jQuery(".dslca-module-loading-inner",e).css({width:0}).animate({width:"100%"},t,"linear")}}}).sortable({connectWith:".dslc-modules-area",items:".dslc-module-front",handle:'.dslca-move-module-hook:not(".dslca-action-disabled")',placeholder:"dslca-module-placeholder",cursorAt:{top:50,left:30},tolerance:"pointer",scroll:!0,scrollSensitivity:100,scrollSpeed:15,start:function(e,s){s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+s.item.find(".dslc-sortable-helper-icon").data("title")+"</span></span>"),jQuery(s.item).hasClass("dslc-12-col")?s.placeholder.width(s.item.width()).css({margin:0}):s.placeholder.width(s.item.width()-10),jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress"),jQuery(".dslc-module-front",this).length<2&&(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,function(){})),jQuery(".dslc-modules-area").sortable("refreshPositions")},sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(){dslc_show_publish_button()},stop:function(e,s){dslc_generate_code(),jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop"),s.item.trigger("mouseleave")},change:function(){}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_scroller_init(){dslcDebug&&console.log("dslc_scroller_init");var e=jQuery(".dslca-section-scroller");e.length&&e.each(function(){{var e,s=jQuery(this),d=jQuery(".dslca-section-scroller-inner",s),o=d.position(),l=jQuery(".dslca-section-scroller-content",s),t=jQuery(".dslca-scroller-item:visible",s),a=0,i=s.width()+-1*o.left;l.width()}jQuery(".dslca-section-scroller-item-last",s).removeClass("dslca-section-scroller-item-last"),t.each(function(){e=jQuery(this),a+=e.outerWidth(),a>i&&jQuery(".dslca-section-scroller-item-last",s).length<1&&(e.addClass("dslca-section-scroller-item-last"),s.data("current",e.prev(".dslca-scroller-item:visible").index()))})})}function dslc_scroller_go_to(e,s){dslcDebug&&console.log("dslc_scroller_go_to");var d=jQuery(".dslca-section-scroller-inner",s),o=jQuery(".dslca-section-scroller-content",s),l=(jQuery(".dslca-scroller-item",s),jQuery(".dslca-scroller-item:eq("+e+")",s));if(l.length){var t=s.width(),a=(o.width(),l.position()),i=t-(a.left+l.outerWidth());0>i?(s.data("current",e),d.stop().animate({left:i},200)):d.stop().animate({left:0},200)}}function dslc_scroller_prev(e){dslcDebug&&console.log("dslc_scroller_prev");var s=e.data("current"),d=e.find(".dslca-scroller-item:eq("+s+")").prevAll(".dslca-scroller-item:visible").eq(1).index(),o=e.find(".dslca-scroller-item:eq("+s+")").prevAll(".dslca-scroller-item:visible").eq(0).index();-1!==d?dslc_scroller_go_to(d,e):-1!==o&&dslc_scroller_go_to(o,e)}function dslc_scroller_next(e){dslcDebug&&console.log("dslc_scroller_next");var s=e.data("current"),d=e.find(".dslca-scroller-item:eq("+s+")").nextAll(".dslca-scroller-item:visible").eq(1).index(),o=e.find(".dslca-scroller-item:eq("+s+")").nextAll(".dslca-scroller-item:visible").eq(0).index();-1!==d?dslc_scroller_go_to(d,e):-1!==o&&dslc_scroller_go_to(o,e)}function dslc_ui_animations(){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"),jQuery(this).stop().animate({opacity:1},200),dslca_draggable_calc_center(jQuery(this).closest(".dslc-modules-area"))}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered"),jQuery(this).stop().animate({opacity:.5},200)}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(){jQuery("body").hasClass("dslca-composer-hidden")||(jQuery(this).height()<190?jQuery(".dslca-module-manage",this).addClass("dslca-horizontal"):jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal"),jQuery(".dslca-module-manage-inner",this).stop().animate({top:0},300,function(){jQuery(this).closest(".dslca-module-manage").css({overflow:"visible"})}),jQuery(".dslca-wysiwyg-actions-edit-hook",this).stop().animate({top:0},300))}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(){jQuery("body").hasClass("dslca-composer-hidden")||(jQuery(this).find(".dslca-change-width-module-options").hide(),jQuery(this).find(".dslca-module-manage").css({overflow:"hidden"}),jQuery(".dslca-module-manage-inner",this).stop().animate({top:-50},300),jQuery(".dslca-wysiwyg-actions-edit-hook",this).stop().animate({top:-50},300))}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(){var e=jQuery(this);jQuery("body").hasClass("dslca-composer-hidden")||(jQuery("#dslc-header").addClass("dslca-header-low-z-index"),jQuery(this).height()<130?jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal"):jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal"),jQuery(".dslca-modules-area-manage-inner",this).stop().animate({left:"0%"},300,function(){jQuery(".dslca-modules-area-manage",e).css({overflow:"visible"})}))}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(){var e=jQuery(this);jQuery("body").hasClass("dslca-composer-hidden")||(jQuery("#dslc-header").removeClass("dslca-header-low-z-index"),jQuery(".dslca-modules-area-manage",e).css({overflow:"hidden"}),jQuery(".dslca-modules-area-manage-inner",this).stop().animate({left:"100%"},300))}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-section",function(){jQuery("body").hasClass("dslca-composer-hidden")||jQuery(".dslca-modules-section-manage-inner",this).stop().animate({opacity:1},300)}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-section",function(){jQuery("body").hasClass("dslca-composer-hidden")||jQuery(".dslca-modules-section-manage-inner",this).stop().animate({opacity:0},300)})}function dslc_show_modal(e,s){dslcDebug&&console.log("dslc_show_modal"),dslc_hide_modal("",jQuery(".dslca-modal:visible"));var s=jQuery(s),d=jQuery(e).position(),o=s.outerWidth()/2-e.outerWidth()/2,l=d.left-o;s.css({left:l}).show(),s.css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).fadeIn(600)}function dslc_hide_modal(e,s){dslcDebug&&console.log("dslc_hide_modal");var s=jQuery(s);s.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).fadeOut(600)}function dslc_js_confirm(e,s,d){dslcDebug&&console.log("dslc_js_confirm"),jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active"),jQuery(".dslca-prompt-modal").data("id",e),jQuery(".dslca-prompt-modal").data("target",d),jQuery(".dslca-prompt-modal-msg").html(s),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(){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_row_add(e){dslcDebug&&console.log("dslc_row_add"),e="undefined"!=typeof e?e:!1,jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(s){jQuery(s.output).appendTo("#dslc-main"),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button(),e&&e()})}function dslc_row_delete(e){dslcDebug&&console.log("dslc_row_delete"),e.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")),e.trigger("mouseleave").remove(),dslc_generate_code(),dslc_show_publish_button()}function dslc_row_edit(e){dslcDebug&&console.log("dslc_row_edit");jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made"),e.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("border-top"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("top")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-right"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("right")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-bottom"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("bottom")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-left"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("left")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),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"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]').val().indexOf(jQuery(this).data("val"))>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),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).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]').val()),jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var e=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":e.val()})}}),jQuery(".dslca-modules-section-edit-field-upload").each(function(){var e=jQuery(this).closest(".dslca-modules-section-edit-option");jQuery(this).val()&&"disabled"!==jQuery(this).val()?(jQuery(".dslca-modules-section-edit-field-image-add-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).show()):(jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-add-hook",e).show())}),dslc_row_edit_slider_init(),dslc_show_section(".dslca-modules-section-edit"),jQuery(".dslca-save-composer-hook").css({visibility:"hidden"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"hidden"})}function dslc_row_edit_colorpicker_init(){dslcDebug&&console.log("dslc_row_edit_colorpicker_init");var e,s,d,o,l,t,a,i,c,n,r=[];if(r[0]=[],r[1]=[],r[2]=[],r[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(c=JSON.parse(localStorage.dslcColorpickerPalleteStorage),n=0;n<c.length;n++){var u=Math.floor(n/3);4>u&&r[u].push(c[n])}jQuery(".dslca-modules-section-edit-field-colorpicker").each(function(){i=jQuery(this).val(),jQuery(this).spectrum({color:i,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:r,move:function(i){e=jQuery(this),s=e.data("id"),o=null==i?"transparent":i.toRgbString(),l=e.data("css-rule"),d=jQuery(".dslca-modules-section-being-edited"),a=d,t=jQuery('.dslca-modules-section-settings input[data-id="'+s+'"]',d),d.addClass("dslca-modules-section-change-made"),e.data("css-element")&&(a=jQuery(e.data("css-element"),d)),a.css(l,o),t.val(o)},change:function(d){if(e=jQuery(this),s=e.data("id"),o=null==d?"transparent":d.toRgbString(),void 0==localStorage.dslcColorpickerPalleteStorage){var l=[o];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(l)}else{var l=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==l.indexOf(o)&&l.unshift(o),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(l)}},show:function(){jQuery("body").addClass("dslca-disable-selection"),jQuery(this).spectrum("set",jQuery(this).val())},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})})}function dslc_row_edit_slider_init(){dslcDebug&&console.log("dslc_row_edit_slider_init"),jQuery(".dslca-modules-section-edit-field-slider").each(function(){var e,s,d,o,l,t,a,i,c,n,r,u="",m=0,p=300,h=1;e=jQuery(this),s=e.siblings(".dslca-modules-section-edit-field"),t=e.siblings(".dslca-modules-section-edit-field-slider-tooltip"),e.data("min")&&(m=e.data("min")),e.data("max")&&(p=e.data("max")),e.data("incr")&&(h=e.data("incr")),e.data("ext")&&(u=e.data("ext")),e.slider({min:m,max:p,step:h,value:s.val(),slide:function(m,p){d=p.value+u,s.val(d),l=jQuery(".dslca-modules-section-being-edited"),s.data("css-element")&&(l=jQuery(s.data("css-element"),l)),o=s.data("css-rule").replace(/ /g,""),r=o.split(",");for(var h=0;h<r.length;h++)jQuery(l).css(r[h],d);c=jQuery(".dslca-modules-section-being-edited"),n=s.data("id"),jQuery('.dslca-modules-section-settings input[data-id="'+n+'"]',c).val(p.value),c.addClass("dslca-modules-section-change-made"),t.text(d),i=e.find(".ui-slider-handle"),a=i[0].style.left,t.css({left:a})},stop:function(){t.hide();var e=jQuery(window).scrollTop();dslc_masonry(),jQuery(window).scrollTop(e)},start:function(s,o){d=o.value,t.show(),t.text(d),i=e.find(".ui-slider-handle"),a=i[0].style.left,t.css({left:a})}})})}function dslc_row_edit_scrollbar_init(){dslcDebug&&console.log("dslc_row_edit_scrollbar_init");var e=0;jQuery(".dslca-modules-section-edit-option").each(function(){e+=jQuery(this).outerWidth(!0)+1}),jQuery(".dslca-modules-section-edit-options-wrapper").width(e>jQuery(".dslca-modules-section-edit-options").width()?e:"auto"),jQuery("body").hasClass("rtl")||(jQuery(".dslca-modules-section-edit-options-inner").data("jsp")&&jQuery(".dslca-modules-section-edit-options-inner").data("jsp").destroy(),jQuery(".dslca-modules-section-edit-options-inner").jScrollPane())}function dslc_row_edit_cancel(e){dslcDebug&&console.log("dslc_row_cancel_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input").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")}),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-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made"),e&&e(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_row_edit_confirm(e){dslcDebug&&console.log("dslc_confirm_row_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input").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-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made"),dslc_generate_code(),dslc_show_publish_button(),e&&e(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_row_copy(e){dslcDebug&&console.log("dslc_row_copy");var s,d,o;d=e.clone().appendTo("#dslc-main"),d.find(".dslc-modules-area").each(function(){var s=jQuery(this).index();jQuery(this).data("size",e.find(".dslc-modules-area:eq( "+s+" )").data("size"))}),d.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(){o=jQuery(this),jQuery.ajax({type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-get-new-module-id"},async:!1}).done(function(e){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=e.output,o.data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button()}function dslc_row_import(e){dslcDebug&&console.log("dslc_row_import"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:e},function(e){dslc_js_confirm_close(),jQuery("#dslc-main").append(e.output),dslc_bg_video(),dslc_carousel(),dslc_masonry(jQuery("#dslc-main").find(".dslc-modules-section:last-child")),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(e){dslc_row_delete(e)}function dslc_edit_modules_section(e){dslc_row_edit(e)}function dslc_edit_modules_section_colorpicker(){dslc_row_edit_colorpicker_init()}function dslc_edit_modules_section_slider(){dslc_row_edit_slider_init()}function dslc_edit_modules_section_scroller(){dslc_row_edit_scrollbar_init()}function dslc_copy_modules_section(e){dslc_row_copy(e)}function dslc_import_modules_section(e){dslc_row_import(e)}function dslc_modules_area_add(e){dslcDebug&&console.log("dslc_add_modules_area"),jQuery("body").addClass("dslca-anim-in-progress"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-area",dslc:"active"},function(s){jQuery(".dslca-modules-area-loading .dslca-module-loading-inner",e.closest(".dslc-modules-section")).stop().animate({width:"100%"},200,"linear",function(){e.css({paddingBottom:0}),jQuery(this).closest(".dslca-modules-area-loading").hide()}),setTimeout(function(){jQuery(s.output).appendTo(e).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation"),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button(),jQuery("body").removeClass("dslca-anim-in-progress")},250)});var s=100*Math.floor(51*Math.random()+50);e.animate({paddingBottom:50},150),jQuery(".dslca-modules-area-loading",e.closest(".dslc-modules-section")).show(),jQuery(".dslca-modules-area-loading .dslca-module-loading-inner",e.closest(".dslc-modules-section")).css({width:0}).animate({width:"100%"},s,"linear")}function dslc_modules_area_delete(e){dslcDebug&&console.log("dslc_delete_modules_area");var s=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),d=!1;e.addClass("dslca-modules-area-being-deleted"),s.find(".dslc-modules-area").length<2&&(d=!0),e.find(".dslca-module-being-edited").length&&(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")),setTimeout(function(){e.remove(),dslc_generate_code(),dslc_show_publish_button(),d&&dslc_modules_area_add(s)},900),e.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(){e.remove(),dslc_generate_code(),dslc_show_publish_button()})}function dslc_modules_area_copy(e){dslcDebug&&console.log("dslc_copy_modules_area");var s,d=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),o=e.clone().appendTo(d);o.find(".dslca-modules-area-manage").trigger("mouseleave"),o.data("size",e.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 e=jQuery(this);jQuery.ajax({type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-get-new-module-id"},async:!1}).done(function(d){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=d.output,e.data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button()}function dslc_modules_area_width_set(e,s){dslcDebug&&console.log("dslc_modules_area_width_set");var d="dslc-"+s+"-col";e.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(d).data("size",s),dslc_init_square(),dslc_center(),dslc_generate_code(),dslc_show_publish_button(),dslc_masonry()}function dslc_add_modules_area(e){dslc_modules_area_add(e)}function dslc_delete_modules_area(e){dslc_modules_area_delete(e)}function dslc_copy_modules_area(e){dslc_modules_area_copy(e)}function dslc_module_delete(e){dslcDebug&&console.log("dslc_delete_module"),e.addClass("dslca-module-being-deleted"),e.hasClass("dslca-module-being-edited")&&dslc_show_section(".dslca-modules"),setTimeout(function(){e.remove(),dslc_generate_code(),dslc_show_publish_button()},1e3),e.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(){e.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")
2
+ })}function dslc_module_copy(e){dslcDebug&&console.log("dslc_copy_module");var s;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-get-new-module-id"},function(d){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=d.output,e.clone().appendTo(e.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}).data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}function dslc_module_width_set(e,s){dslcDebug&&console.log("dslc_module_width_set");var d="dslc-"+s+"-col";e.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(d).data("dslc-module-size",s).addClass("dslca-module-being-edited"),jQuery('.dslca-module-option-front[data-id="dslc_m_size"]',e).val(s),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})}function dslc_module_options_show(e){dslcDebug&&console.log("dslc_module_options_show");var s=jQuery(".dslca-module-being-edited"),d=jQuery(".dslca-module-options-front textarea",s),o=jQuery(".dslca-header").data("default-section"),l={};l.action="dslc-ajax-display-module-options",l.dslc="active",l.dslc_module_id=e,l.dslc_post_id=jQuery(".dslca-container").data("data-post-id"),d.each(function(){var e=jQuery(this),s=e.data("id"),d=e.val();l[s]=d}),jQuery(".dslca-wp-editor-actions").hide(),jQuery(".dslca-wp-editor-notification").show(),jQuery.post(DSLCAjax.ajaxurl,l,function(e){jQuery(".dslca-save-composer-hook").css({visibility:"hidden"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"hidden"}),dslc_show_section(".dslca-module-edit"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(e.output):jQuery(".dslca-module-edit-options-inner .jspPane").html(e.output),jQuery(".dslca-module-edit-options-tabs").html(e.output_tabs),jQuery(".dslca-header .dslca-options-filter-hook").show(),jQuery('.dslca-module-edit-option[data-section="'+o+'"]').length?(jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+o+'"]').show(),jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+o+'"]').trigger("click")):(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(),dslc_module_options_color(),dslc_modules_options_box_shadow_color(),dslc_module_options_numeric();var s=jQuery(".dslca-module-options-front",".dslca-module-being-edited").children().clone();jQuery(".dslca-module-options-front-backup").html("").append(s)})}function dslc_module_options_scrollbar(){dslcDebug&&console.log("dslc_module_options_scrollbar");var e=0;if(jQuery(".dslca-module-edit-option:visible").each(function(){e+=jQuery(this).outerWidth(!0)+1}),jQuery(".dslca-module-edit-options-wrapper").width(e>jQuery(".dslca-module-edit-options").width()?e:"auto"),!jQuery("body").hasClass("rtl")&&jQuery(".dslca-module-edit-options-inner").data("jsp")){var s=jQuery(".dslca-module-edit-options-inner").data("jsp");s.reinitialise()}}function dslc_module_options_section_filter(e){dslcDebug&&console.log("dslc_module_options_section_filter"),jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-section="'+e+'"]').show(),dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(e){dslcDebug&&console.log("dslc_module_options_tab_filter");var s=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e="undefined"!=typeof e?e:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+s+'"]:first');var d=e.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active"),e.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="'+s+'"]').show(),d&&(jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-tab="'+d+'"]').show(),dslc_module_options_scrollbar(),dslc_module_options_hideshow_tabs(),jQuery(".dslca-module-edit-options-tab-hook:visible").length<2?jQuery(".dslca-module-edit-options-tabs").hide():jQuery(".dslca-module-edit-options-tabs").show(),d==DSLCString.str_res_tablet+"_responsive"&&(jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet"),jQuery("body").addClass("dslc-res-tablet")),d==DSLCString.str_res_phone+"_responsive"&&(jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet"),jQuery("body").addClass("dslc-res-phone")),(d==DSLCString.str_res_tablet+"_responsive"||d==DSLCString.str_res_phone+"_responsive")&&(jQuery(".dslca-container-loader").show(),dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})))}function dslc_module_options_hideshow_tabs(){dslcDebug&&console.log("dslc_module_options_hideshow_tabs");var e=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if("styling"==e){var s=(jQuery(".dslca-module-edit"),!0),d=!0,o=!0,l=!0,t=!0,a=!0,i=!0,c=!0,n=!0,r=!0,u=!0,m=!0,p=!0,h=!0,_=!0,y=!0,f=!0,g=!0,j=!0,v=!0,Q=!0,b=!0,k=!0,w=!0,C=!0;jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked")||(s=!1),jQuery('.dslca-module-edit-field[value="filters"]').is(":checked")||(d=!1),jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked")||(o=!1),jQuery('.dslca-module-edit-field[value="circles"]').is(":checked")||(l=!1),"carousel"!=jQuery('.dslca-module-edit-field[data-id="type"]').val()&&(o=!1,l=!1),"disabled"==jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()&&(t=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")||(a=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")&&(i=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")||(c=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")||(n=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")&&(r=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")||(u=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")||(p=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")||(m=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")||(h=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")||(_=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")||(y=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")&&(f=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")&&(g=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")||(j=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")||(v=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")||(Q=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")||(b=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")||(k=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")||(w=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")||(C=!1),s?jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide(),d?jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide(),o?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide(),l?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide(),t?jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide(),a?jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide(),i?jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide(),c?jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide(),n?jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide(),r?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():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(),u?jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide(),p?jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide(),m?jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide(),h?jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide(),y?jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide(),_?jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide(),f?jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide(),g?jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide(),j?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide(),v?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide(),Q||b?jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide(),k?jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide(),w?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide(),C?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if("DSLC_Text_Simple"==jQuery(".dslca-module-being-edited").data("dslc-module-id")||"DSLC_TP_Content"==jQuery(".dslca-module-being-edited").data("dslc-module-id")||"DSLC_Html"==jQuery(".dslca-module-being-edited").data("dslc-module-id")){var x=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),D=x.find("select").val();"enabled"==D?(jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"}),jQuery(".dslca-module-edit-options-tabs").show()):(jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"}),jQuery(".dslca-module-edit-options-tabs").hide(),x.css({visibility:"visible"}))}}else jQuery(".dslca-module-edit-options-tabs").show();"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()?jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden"):jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible"),"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()?jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden"):jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible"),jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(e){dslcDebug&&console.log("dslc_module_options_confirm_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-module-being-edited").hasClass("dslc-module-DSLC_Sliders")?jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"):(jQuery("body").addClass("dslca-module-saving-in-progress"),dslc_module_output_altered(function(){dslc_update_preset(),jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery("body").removeClass("dslca-module-saving-in-progress"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(""):jQuery(".dslca-module-edit-options-inner .jspPane").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),e&&e()})),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(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_module_options_cancel_changes(e){dslcDebug&&console.log("dslc_module_options_cancel_changes"),e="undefined"!=typeof e?e:!1;var s=jQuery(".dslca-module-being-edited"),d=jQuery(".dslca-module-options-front-backup").children().clone();jQuery(".dslca-module-options-front",s).html("").append(d),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(""):jQuery(".dslca-module-edit-options-inner .jspPane").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),e&&e()}),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(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}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 e=jQuery(".dslca-module-edit-field-ttip"),s=e.find(".dslca-module-edit-field-ttip-inner"),d=jQuery(this),o=d.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html();if(e.is(":visible"))jQuery(".dslca-module-edit-field-ttip").hide();else{s.html(o);var l=d.offset(),t=e.outerHeight(),a=e.outerWidth(),i=l.left-a/2+6,c="50%";0>i&&(c=a/2+i+"px",i=0),jQuery(".dslca-module-edit-field-ttip").show().css({top:l.top-t-20,left:i}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+c+" }</style>"))}}),jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-icon-ttip"),s=jQuery(this);if(e.is(":visible"))jQuery(".dslca-module-edit-field-icon-ttip").hide();else{var d=s.offset(),o=e.outerHeight(),l=e.outerWidth(),t=d.left-l/2+6,a="50%";0>t&&(a=l/2+t+"px",t=0),jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:d.top-o-20,left:t}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+a+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var s=jQuery(this).closest(".dslca-module-edit-option-font"),d=jQuery(".dslca-module-edit-field-font",s),o=dslcAllFontsArray.indexOf(d.val()),l=o+1;jQuery(".dslca-module-edit-field-font-suggest",s).text(""),d.val(dslcAllFontsArray[l]).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(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var s=jQuery(this).closest(".dslca-module-edit-option-font"),d=jQuery(".dslca-module-edit-field-font",s),o=dslcAllFontsArray.indexOf(d.val()),l=o-1;jQuery(".dslca-module-edit-field-font-suggest",s).text(""),0>l&&(l=dslcAllFontsArray.length-1),d.val(dslcAllFontsArray[l]).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(e){var s,d,o,l,t=!1;if(s=jQuery(this),d=s.closest(".dslca-module-edit-option"),38==e.which&&jQuery(".dslca-module-edit-field-font-prev",d).click(),40==e.which&&jQuery(".dslca-module-edit-field-font-next",d).click(),13!=e.which&&38!=e.which&&40!=e.which){o=s.val();var a=new RegExp("^"+o,"i"),i=dslcAllFontsArray.length,c=0;do{if(a.test(dslcAllFontsArray[c])&&!t)var t=dslcAllFontsArray[c];c++}while(i>c);t?(l=t,jQuery(".dslca-module-edit-field-font-suggest",d).show()):(l=o,jQuery(".dslca-module-edit-field-font-suggest",d).hide()),jQuery(".dslca-module-edit-field-font-suggest",d).text(l),l.length&&s.val(l.substring(0,s.val().length))}}),jQuery(document).on("keypress",".dslca-module-edit-field-font",function(e){if(13==e.which){e.preventDefault();var s,d;s=jQuery(this),d=s.closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",d).text()).trigger("change"),jQuery(".dslca-module-edit-field-font-suggest",d).text("")}})}function dslc_module_options_icon(){jQuery(document).on("click",".dslca-module-edit-field-icon-next",function(e){e.preventDefault();var s=jQuery(this).closest(".dslca-module-edit-option-icon"),d=jQuery(".dslca-module-edit-field-icon",s),o=dslcFontAwesomeArray.indexOf(d.val()),l=o+1;jQuery(".dslca-module-edit-field-icon-suggest",s).text(""),d.val(dslcFontAwesomeArray[l]).trigger("change")}),jQuery(document).on("click",".dslca-module-edit-field-icon-prev",function(e){e.preventDefault();var s=jQuery(this).closest(".dslca-module-edit-option-icon"),d=jQuery(".dslca-module-edit-field-icon",s),o=dslcFontAwesomeArray.indexOf(d.val()),l=o-1;jQuery(".dslca-module-edit-field-icon-suggest",s).text(""),0>l&&(l=dslcFontAwesomeArray.length-1),d.val(dslcFontAwesomeArray[l]).trigger("change")}),jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(e){var s,d,o,l,t;s=jQuery(this),d=s.closest(".dslca-module-edit-option"),38==e.which&&jQuery(".dslca-module-edit-field-icon-prev",d).click(),40==e.which&&jQuery(".dslca-module-edit-field-icon-next",d).click(),13!=e.which&&38!=e.which&&40!=e.which&&(o=s.val().toLowerCase(),s.val(o),l=jQuery.grep(dslcFontAwesomeArray,function(e){return 0==e.indexOf(o)}),t=l[0],jQuery(".dslca-module-edit-field-icon-suggest",d).text(t))}),jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(e){if(13==e.which){e.preventDefault();var s,d;s=jQuery(this),d=s.closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",d).text()).trigger("change"),jQuery(".dslca-module-edit-field-icon-suggest",d).text("")}})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var e=jQuery(this),s=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),d=e.data("val"),o=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");s.removeClass("dslca-active"),e.addClass("dslca-active"),o.val(d).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 e=jQuery(this),s=e.siblings('input[type="checkbox"]');s.prop("checked")?(s.prop("checked",!1),e.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")):(s.prop("checked",!0),e.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")),s.change()})}function dslc_module_options_box_shadow(){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 e=jQuery(this).closest(".dslca-module-edit-option"),s=e.find(".dslca-module-edit-field"),d=e.find(".dslca-module-edit-option-box-shadow-hor").val(),o=e.find(".dslca-module-edit-option-box-shadow-ver").val(),l=e.find(".dslca-module-edit-option-box-shadow-blur").val(),t=e.find(".dslca-module-edit-option-box-shadow-spread").val(),a=e.find(".dslca-module-edit-option-box-shadow-color").val(),i=e.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");i=i?" inset":"";var c=d+"px "+o+"px "+l+"px "+t+"px "+a+i;s.val(c).trigger("change")})}function dslc_modules_options_box_shadow_color(){jQuery(".dslca-module-edit-option-box-shadow-color").each(function(){var e,s,d=jQuery(this),o=d.val();jQuery(this).spectrum({color:o,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",move:function(d){e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change")},change:function(d){e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change")},show:function(){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})})}function dslc_module_options_color(){dslcDebug&&console.log("dslc_module_options_color");var e,s,d,o,l,t,a,i,c,n=[];if(n[0]=[],n[1]=[],n[2]=[],n[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(i=JSON.parse(localStorage.dslcColorpickerPalleteStorage),c=0;c<i.length;c++){var r=Math.floor(c/3);4>r&&n[r].push(i[c])}jQuery(".dslca-module-edit-field-colorpicker").each(function(){a=jQuery(this).val(),jQuery(this).spectrum({color:a,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:n,move:function(a){e=jQuery(this),o=null==a?"transparent":a.toRgbString(),e.val(o),s=e.data("affect-on-change-el"),d=e.data("affect-on-change-rule"),jQuery(s,".dslca-module-being-edited").css(d,o),l=jQuery(".dslca-module-being-edited"),t=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+t+'"]',l).val(o),l.addClass("dslca-module-change-made")},change:function(a){if(e=jQuery(this),o=null==a?"transparent":a.toRgbString(),e.val(o),s=e.data("affect-on-change-el"),d=e.data("affect-on-change-rule"),jQuery(s,".dslca-module-being-edited").css(d,o),l=jQuery(".dslca-module-being-edited"),t=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+t+'"]',l).val(o),l.addClass("dslca-module-change-made"),void 0==localStorage.dslcColorpickerPalleteStorage){var i=[o];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(i)}else{var i=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==i.indexOf(o)&&i.unshift(o),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(i)}},show:function(){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})}),jQuery(".dslca-sp-revert").click(function(){var e=jQuery(".sp-replacer.sp-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("default");jQuery(this).closest(".sp-container").find(".sp-input").val(e).trigger("change")})}function dslc_module_options_numeric(){dslcDebug&&console.log("dslc_module_options_numeric"),jQuery(".dslca-module-edit-field-slider").each(function(){var e,s,d,o,l,t,a,i,c,n,r;e=jQuery(this),s=e.siblings(".dslca-module-edit-field"),t=e.closest(".dslca-module-edit-option-slider").find(".dslca-module-edit-field-slider-tooltip"),e.slider({min:s.data("min"),max:s.data("max"),step:s.data("increment"),value:s.val(),slide:function(u,m){n=s.data("ext"),d=m.value+n,s.val(d),l=s.data("affect-on-change-el"),o=s.data("affect-on-change-rule").replace(/ /g,""),r=o.split(",");for(var p=0;p<r.length;p++)jQuery(l,".dslca-module-being-edited").css(r[p],d);i=jQuery(".dslca-module-being-edited"),c=s.data("id"),jQuery('.dslca-module-option-front[data-id="'+c+'"]',i).val(m.value),i.addClass("dslca-module-change-made"),t.text(d);var h=e.find(".ui-slider-handle");a=h[0].style.left,t.css({left:a}),dslc_masonry(i),dslc_init_square(),dslc_center(),dslc_init_square(i)},stop:function(){t.hide()},start:function(e,s){t.show(),t.text(d),a=s.handle.style.left,t.css({left:a})}})})}function dslc_module_output_default(e,s){dslcDebug&&console.log("dslc_module_output_default"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:e,dslc_post_id:jQuery(".dslca-container").data("post-id")},function(e){s(e)})}function dslc_module_output_altered(e){dslcDebug&&console.log("dslc_module_output_altered"),e="undefined"!=typeof e?e:!1;var s=jQuery(".dslca-module-being-edited"),d=s.data("dslc-module-id"),o=jQuery(".dslca-module-options-front textarea",s),l=s.data("module-id"),t={};t.action="dslc-ajax-add-module",t.dslc="active",t.dslc_module_id=d,t.dslc_module_instance_id=l,t.dslc_post_id=jQuery(".dslca-container").data("post-id"),t.dslc_preload_preset=s.hasClass("dslca-preload-preset")?"enabled":"disabled",s.removeClass("dslca-preload-preset"),o.each(function(){var e=jQuery(this),s=e.data("id"),d=e.val();t[s]=d}),jQuery.post(DSLCAjax.ajaxurl,t,function(d){s.after(d.output).next().addClass("dslca-module-being-edited"),s.remove(),dslc_generate_code(),dslc_show_publish_button(),dslc_carousel(),dslc_masonry(jQuery(".dslca-module-being-edited")),jQuery(".dslca-module-being-edited img").load(function(){dslc_masonry(jQuery(".dslca-module-being-edited")),dslc_center()}),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),e&&e(d)})}function dslc_module_output_reload(e,s){dslcDebug&&console.log("dslc_module_output_reload"),s="undefined"!=typeof s?s:!1;var d=e.data("dslc-module-id"),o=jQuery(".dslca-module-options-front textarea",e),l=e.data("module-id"),t={};t.action="dslc-ajax-add-module",t.dslc="active",t.dslc_module_id=d,t.dslc_module_instance_id=l,t.dslc_post_id=jQuery(".dslca-container").data("post-id"),t.dslc_preload_preset="enabled",e.removeClass("dslca-preload-preset"),o.each(function(){var e=jQuery(this),s=e.data("id"),d=e.val();t[s]=d}),e.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>'),jQuery.post(DSLCAjax.ajaxurl,t,function(d){e.after(d.output).next().addClass("dslca-module-being-edited"),e.remove(),dslc_generate_code(),dslc_show_publish_button(),dslc_carousel(),dslc_masonry(jQuery(".dslca-module-being-edited")),jQuery(".dslca-module-being-edited img").load(function(){dslc_masonry(jQuery(".dslca-module-being-edited")),dslc_center()}),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),s&&s(d),jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})}function dslc_delete_module(e){dslc_module_delete(e)}function dslc_copy_module(e){dslc_module_copy(e)}function dslc_display_module_options(e){dslc_module_options_show(e)}function dslc_filter_module_options(e){dslc_module_options_section_filter(e)}function dslc_show_module_options_tab(e){dslc_module_options_tab_filter(e)}function dslc_confirm_changes(e){dslc_module_options_confirm_changes(e)}function dslc_cancel_changes(e){dslc_module_options_cancel_changes(e)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_init_options_scrollbar(){dslc_module_options_scrollbar()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}function dslc_get_module_output(e,s){dslc_module_output_default(e,s)}function dslc_preview_change(e){dslc_module_output_altered(e)}function dslc_reload_module(e,s){dslc_module_output_reload(e,s)}function dslc_template_load(e){dslcDebug&&console.log("dslc_load_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:e},function(e){jQuery("#dslc-main").html(e.output),dslc_carousel(),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_template_import(){dslcDebug&&console.log("dslc_import_template");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(e){jQuery("#dslc-main").html(e.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"),dslc_bg_video(),dslc_center(),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_template_save(){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(){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(e){dslcDebug&&console.log("dslc_delete_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:e},function(){jQuery('.dslca-template[data-id="'+e+'"]').fadeOut(200,function(){jQuery(this).remove()
3
+ })})}function dslc_load_template(e){dslc_template_load(e)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(e){dslc_template_delete(e)}function dslc_save_composer(){dslcDebug&&console.log("dslc_save_composer");var e=jQuery("#dslca-code").val(),s=jQuery("#dslca-content-for-search").val(),d=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",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:d,dslc_code:e,dslc_content_for_search:s},timeout:1e4}).done(function(e){"success"==e.status?(jQuery(".dslca-save-composer").fadeOut(250),jQuery(".dslca-save-draft-composer").fadeOut(250)):alert("Something went wrong, please try to save again.")}).fail(function(e){alert("timeout"==e.statusText?"The request timed out after 10 seconds. Please try again.":"Something went wrong. Please try again.")}).always(function(){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(){dslcDebug&&console.log("dslc_save_draft_composer");var e=jQuery("#dslca-code").val(),s=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:s,dslc_code:e},function(e){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save"),"success"==e.status?jQuery(".dslca-save-draft-composer").fadeOut(250):alert("Something went wrong, please try to save again."),jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){dslcDebug&&console.log("dslc_generate_code");var e,s,d,o,l,t,a,i="",c=12,n=12,r=0,u=0,m="";jQuery("#dslc-main .dslc-modules-area").each(function(){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()):(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").each(function(){jQuery(".dslc-modules-area",this).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}),jQuery("#dslc-main .dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col").removeClass("dslc-last-col dslc-first-col"),jQuery("#dslc-main .dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col").removeClass("dslc-last-col dslc-first-col"),jQuery("#dslc-main .dslc-modules-section").each(function(){u=0,a=jQuery(this),m="",jQuery(".dslca-modules-section-settings input",a).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '}),i=i+"[dslc_modules_section "+m+"] ",jQuery(".dslc-modules-area",a).each(function(){o=jQuery(this),d=parseInt(o.data("size")),l="no",t="no",u+=d,u==n?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),u=0,l="yes"):u>n&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),u=d,t="yes"),u==d&&(t="yes"),i=i+'[dslc_modules_area last="'+l+'" first="'+t+'" size="'+d+'"] ',jQuery(".dslc-module-front",o).each(function(){s=parseInt(jQuery(this).data("dslc-module-size"));var d="no",o="no";r+=s,r==c?(jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0,d="yes"):r>c&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),r=s,o="yes"),r==c&&(o="yes",jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0),e=jQuery(this).find(".dslca-module-code").val(),i=i+'[dslc_module last="'+d+'"]'+e+"[/dslc_module] "}),i+="[/dslc_modules_area] "}),i+="[/dslc_modules_section] "}),jQuery("#dslca-code").val(i),jQuery("#dslca-export-code").val(i),dslca_gen_content_for_search()}function dslc_generate_section_code(e){dslcDebug&&console.log("dslc_generate_section_code");var s,d,o,l,t,a,i,c="",n=12,r=0,u=0,m="";u=0;var i=e;return jQuery(".dslca-modules-section-settings input",i).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '}),c=c+"[dslc_modules_section "+m+"] ",jQuery(".dslc-modules-area",i).each(function(){l=jQuery(this),o=parseInt(l.data("size")),t="no",a="no",u+=o,u==n?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),u=0,t="yes"):u>n&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),u=o,a="yes"),u==o&&(a="yes"),c=c+'[dslc_modules_area last="'+t+'" first="'+a+'" size="'+o+'"] ',jQuery(".dslc-module-front",l).each(function(){d=parseInt(jQuery(this).data("dslc-module-size")),r+=d,r==o&&(jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0),s=jQuery(this).find(".dslca-module-code").val(),c=c+"[dslc_module]"+s+"[/dslc_module] "}),c+="[/dslc_modules_area] "}),c+="[/dslc_modules_section] "}function dslc_update_preset(){dslcDebug&&console.log("dslc_update_preset");var e=jQuery(".dslca-module-being-edited"),s=e.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),d=e.find(".dslca-module-code").val(),o=e.data("dslc-module-id");"none"!==s&&jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:s,dslc_preset_code:d,dslc_module_id:o},function(){jQuery(".dslc-module-front:not(#"+e.attr("id")+')[data-dslc-module-id="'+e.data("dslc-module-id")+'"][data-dslc-preset="'+e.data("dslc-preset")+'"]').each(function(){dslc_module_output_reload(jQuery(this))})})}function dslc_dm_get_defaults(e){dslcDebug&&console.log("dslc_dm_get_defaults");var s=e.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:s},function(e){jQuery(".dslca-prompt-modal textarea").val(e.output)})}function dslca_gen_content_for_search(){dslcDebug&&console.log("dslca_gen_content_for_search");var e=jQuery("#dslca-content-for-search"),s=e.val(),d="";jQuery("#dslc-main .dslca-editable-content").each(function(){d+=jQuery(this).text().replace(/\s+/g," ").trim()+" "}),e.val(d),s!==d&&dslc_show_publish_button()}function dslca_draggable_calc_center(e){dslcDebug&&console.log("dslca_draggable_calc_center"),jQuery(".dslc-modules-section-inner").sortable("option","cursorAt",{top:e.outerHeight()/2,left:e.outerWidth()/2})}function dslc_editable_content_gen_code(e){dslcDebug&&console.log("dslc_editable_content_gen_code");var s,d,o;s=e.closest(".dslc-module-front"),d=e.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),o=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+o+'"]',s).val(d),dslc_show_publish_button()}var dslcRegularFontsArray=DSLCFonts.regular,dslcGoogleFontsArray=DSLCFonts.google,dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray),dslcFontAwesomeArray=DSLCIcons.fontawesome,dslcDebug=!1;jQuery(document).ready(function(e){jQuery("body").hasClass("rtl")||jQuery(".dslca-module-edit-options-inner").jScrollPane(),e("body").addClass("dslca-enabled dslca-drag-not-in-progress"),e(".dslca-invisible-overlay").hide(),e(".dslca-section").eq(0).show(),dslc_drag_and_drop(),dslc_generate_code(),e(document).on("click",".dslca-hide-composer-hook",function(){dslc_hide_composer()}),e(document).on("click",".dslca-show-composer-hook",function(){dslc_show_composer()}),e(document).on("click",".dslca-go-to-modules-hook",function(e){e.preventDefault(),dslc_show_section(".dslca-modules")}),e(document).on("click",".dslca-go-to-section-hook",function(s){s.preventDefault();var d=e(this).data("section");dslc_show_section(d),e(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}),e(document).on("click",".dslca-close-composer-hook",function(s){s.preventDefault(),e("body").hasClass("dslca-saving-in-progress")||dslc_js_confirm("disable_lc",'<span class="dslca-prompt-modal-title">'+DSLCString.str_exit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_exit_descr+"</span>",e(this).attr("href"))}),e(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()}),e(document).on("click",".dslca-section-title",function(s){s.stopPropagation(),e(".dslca-section-title-filter",this).length&&(dslc_generate_filters(),e(".dslca-section-title-filter-options").slideToggle(300))}),e(document).on("click",".dslca-section-title-filter-options span",function(s){s.stopPropagation();var d=e(this).data("origin"),o=e(this).closest(".dslca-section");e(".dslca-section-title-filter-curr",o).text(o.hasClass("dslca-templates-load")?e(this).text()+" TEMPLATES":e(this).text()+" MODULES"),e(".dslca-section-scroller-inner").css({left:0}),dslc_filter_origin(d,o)})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-section-scroller-prev",function(s){s.preventDefault(),dslc_scroller_prev(e(this).closest(".dslca-section").find(".dslca-section-scroller"))}),e(document).on("click",".dslca-section-scroller-next",function(s){s.preventDefault(),dslc_scroller_next(e(this).closest(".dslca-section").find(".dslca-section-scroller"))})}),jQuery(window).load(function(){dslc_scroller_init(),jQuery(window).resize(function(){dslc_scroller_init()})}),jQuery(document).ready(function(){dslc_ui_animations()}),jQuery(document).ready(function(e){e(document).on("click",".dslca-open-modal-hook",function(){var s=e(this).data("modal");dslc_show_modal(e(this),s)}),e(document).on("click",".dslca-close-modal-hook",function(){if(!e(this).hasClass("dslca-action-disabled")){var s=e(this).data("modal");dslc_hide_modal(e(this),s)}})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-prompt-modal-cancel-hook",function(e){e.preventDefault();var s=jQuery(".dslca-prompt-modal").data("id"),d=jQuery(".dslca-prompt-modal").data("target");"edit_in_progress"==s&&dslc_module_options_cancel_changes(function(){d.trigger("click")}),dslc_js_confirm_close(),jQuery(".dslca-prompt-modal").data("id","")}),e(document).on("click",".dslca-prompt-modal-confirm-hook",function(s){s.preventDefault();var d=jQuery(".dslca-prompt-modal").data("id"),o=jQuery(".dslca-prompt-modal").data("target"),l=!0;if("edit_in_progress"==d)dslc_module_options_confirm_changes(function(){o.trigger("click")});else if("disable_lc"==d)window.location=o;else if("delete_module"==d){var t=o.closest(".dslc-module-front");dslc_delete_module(t)}else if("delete_modules_area"==d){var a=o.closest(".dslc-modules-area");dslc_modules_area_delete(a)}else"delete_modules_section"==d?dslc_row_delete(o.closest(".dslc-modules-section")):"export_modules_section"==d||"import_modules_section"==d&&(dslc_row_import(e(".dslca-prompt-modal textarea").val()),e(".dslca-prompt-modal-confirm-hook span").css({opacity:0}),e(".dslca-prompt-modal-confirm-hook .dslca-loading").show(),l=!1);l&&dslc_js_confirm_close(),jQuery(".dslca-prompt-modal").data("id","")}),e(window).on("keydown",function(s){13==s.which?e(".dslca-prompt-modal-active").length&&e(".dslca-prompt-modal-confirm-hook").trigger("click"):27==s.which&&e(".dslca-prompt-modal-active").length&&e(".dslca-prompt-modal-cancel-hook").trigger("click")})}),jQuery(document).ready(function(e){dslc_row_edit_colorpicker_init(),dslc_row_edit_slider_init(),e("#dslc-main .dslc-modules-section").length||e("#dslca-tut-page").length||dslc_row_add(),e(document).on("click",".dslca-add-modules-section-hook",function(){var s=e(this);e(this).hasClass("dslca-action-disabled")||(s.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin"),dslc_row_add(function(){s.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")}))}),e(document).on("click",".dslca-edit-modules-section-hook",function(){e(this).hasClass("dslca-action-disabled")||(jQuery(".dslca-module-being-edited.dslca-module-change-made").length?dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_module_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_module_curr_edit_descr+"</span>",jQuery(this)):jQuery(".dslca-modules-section-being-edited.dslca-modules-section-change-made").length?dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_row_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_row_curr_edit_descr+"</span>",jQuery(this)):dslc_row_edit(e(this).closest(".dslc-modules-section")))}),e(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm(),e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel(),e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-copy-modules-section-hook",function(){e(this).hasClass("dslca-action-disabled")||dslc_row_copy(e(this).closest(".dslc-modules-section"))}),e(document).on("click",".dslca-import-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span><span>'+DSLCString.str_import+'</span><div class="dslca-loading followingBallsGWrap"><div class="followingBallsG_1 followingBallsG"></div><div class="followingBallsG_2 followingBallsG"></div><div class="followingBallsG_3 followingBallsG"></div><div class="followingBallsG_4 followingBallsG"></div></div>'),dslc_js_confirm("import_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_import_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_import_row_descr+" <br><br><textarea></textarea></span>",e(this)))}),e(document).on("click",".dslca-delete-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_row_descr+"</span>",e(this))}),e(document).on("click",".dslca-export-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-prompt-modal-cancel-hook").hide(),e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok),dslc_js_confirm("export_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_export_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_export_row_descr+" <br><br><textarea></textarea></span>",e(this)),e(".dslca-prompt-modal textarea").val(dslc_generate_section_code(e(this).closest(".dslc-modules-section"))))})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-add-modules-area-hook",function(e){e.preventDefault(),dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))}),e(document).on("click",".dslca-delete-modules-area-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_modules_area",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_area_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_area_descr+"</span>",e(this))}),e(document).on("click",".dslca-copy-modules-area-hook",function(s){if(s.preventDefault(),!e(this).hasClass("dslca-action-disabled")){var d=e(this).closest(".dslc-modules-area");dslc_copy_modules_area(d)}}),e(document).on("click",".dslca-change-width-modules-area-options span",function(){e(this).hasClass("dslca-action-disabled")||dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}),e(document).on("click",".dslca-change-width-modules-area-hook",function(s){if(s.preventDefault(),!e(this).hasClass("dslca-action-disabled"))if(e(".dslca-change-width-modules-area-options:visible",this).length)e(".dslca-change-width-modules-area-options",this).hide();else{e(".dslca-change-width-modules-area-options .dslca-active-width").removeClass("dslca-active-width");var d=e(this).closest(".dslc-modules-area").data("size");e('.dslca-change-width-modules-area-options span[data-size="'+d+'"]').addClass("dslca-active-width"),e(".dslca-change-width-modules-area-options",this).show()}})}),jQuery(document).ready(function(e){dslc_module_options_tooltip(),dslc_module_options_font(),dslc_module_options_icon(),dslc_module_options_text_align(),dslc_module_options_checkbox(),dslc_module_options_box_shadow(),e(".dslca-module-edit-form").submit(function(e){e.preventDefault(),dslc_module_output_altered()}),e(document).on("click",".dslca-copy-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_module_copy(e(this).closest(".dslc-module-front"))}),e(document).on("click",".dslca-delete-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_module",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_module_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_module_descr+"</span>",e(this))}),e(document).on("click",".dslca-change-width-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-change-width-module-options",this).toggle(),e(this).closest(".dslca-module-manage").toggleClass("dslca-module-manage-change-width-active"))}),e(document).on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))}),e(document).on("click",".dslca-module-edit-hook",function(s){if(s.preventDefault(),!e("body").hasClass("dslca-composer-hidden"))if(e(".dslca-module-being-edited.dslca-module-change-made").length)dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_module_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_module_curr_edit_descr+"</span>",e(this));else if(e(".dslca-modules-section-being-edited.dslca-modules-section-change-made").length)dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_row_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_row_curr_edit_descr+"</span>",e(this));else{e(".dslca-modules-section-being-edited").length&&e(".dslca-module-edit-cancel").trigger("click");{var d=e(this).closest(".dslc-module-front"),o=d.data("dslc-module-id");d.find(".dslca-module-code").val()}e(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),d.addClass("dslca-module-being-edited"),dslc_module_options_show(o)}}),e(document).on("click",".dslca-module-edit-options-tab-hook",function(){dslc_module_options_tab_filter(e(this))}),e(document).on("click",".dslca-options-filter-hook",function(){var s=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),e(this).addClass("dslca-active"),dslc_module_options_section_filter(jQuery(this).data("section")),"responsive"==s&&(jQuery(".dslca-container-loader").show(),dslc_responsive_classes(),dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()}))}),e(document).on("click",".dslca-module-edit-save",function(){dslc_module_options_confirm_changes(),e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-module-edit-cancel",function(){dslc_module_options_cancel_changes(),e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-template",function(){dslc_template_load(jQuery(this).data("id"))}),e(".dslca-template-import-form").submit(function(e){e.preventDefault(),dslc_template_import()}),e(".dslca-template-save-form").submit(function(e){e.preventDefault(),dslc_template_save()}),e(document).on("click",".dslca-delete-template-hook",function(s){s.stopPropagation(),dslc_template_delete(e(this).data("id"))})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-save-composer-hook",function(){e("body").hasClass("dslca-module-saving-in-progress")||e("body").hasClass("dslca-saving-in-progress")||dslc_save_composer()}),e(document).on("click",".dslca-save-draft-composer-hook",function(){e("body").hasClass("dslca-module-saving-in-progress")||e("body").hasClass("dslca-saving-in-progress")||dslc_save_draft_composer()})}),jQuery(document).ready(function(e){e(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(s){if(13==s.which){var d=e(this).val(),o=d.toLowerCase().replace(/\s/g,"-");e("body").addClass("dslca-new-preset-added"),e('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+o+'">'+o+"</option>").val(o).trigger("change"),e(this).val("")}}),e(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(){e(".dslca-module-being-edited").addClass("dslca-preload-preset")})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-module-get-defaults-hook",function(){var s=jQuery(this).closest(".dslc-module-front"),d=(dslc_dm_get_defaults(s),'<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>');e(".dslca-prompt-modal-cancel-hook").hide(),e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK'),dslc_js_confirm("dev_mode_get_default",d,s)}),e(document).on("click","a:not(.dslca-link)",function(e){e.preventDefault()}),e(document).unbind("keydown").bind("keydown",function(s){var d=!1;if(8===s.keyCode){var o=s.srcElement||s.target;d="INPUT"===o.tagName.toUpperCase()&&("TEXT"===o.type.toUpperCase()||"PASSWORD"===o.type.toUpperCase()||"FILE"===o.type.toUpperCase())||"TEXTAREA"===o.tagName.toUpperCase()||e(o).hasClass("dslca-editable-content")||e(o).hasClass("dslc-tabs-nav-hook-title")||e(o).hasClass("dslc-accordion-title")?o.readOnly||o.disabled:!0}d&&s.preventDefault()}),e(document).on("keydown",function(e){116==(e.which||e.keyCode)&&(jQuery(".dslca-save-composer-hook").is(":visible")||jQuery(".dslca-module-edit-save").is(":visible"))&&(e.preventDefault(),dslc_js_confirm("disable_lc",'<span class="dslca-prompt-modal-title">'+DSLCString.str_refresh_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_refresh_descr+"</span>",document.URL))}),e(document).on("mouseenter",".dslc-hf-block-overlay",function(){e(this).stop().animate({opacity:1},300)}).on("mouseleave",".dslc-hf-block-overlay",function(){e(this).stop().animate({opacity:0},300)}),e(document).on("click",".dslca-refresh-module-hook",function(){e(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"}),e(this).closest(".dslc-module-front").addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){e(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})})}),window.onbeforeunload=function(){},jQuery(document).ready(function(e){e(document).on("change",".dslca-modules-section-edit-field",function(){var s,d,o,l,t,a,i,c;if(s=e(this),d=s.data("id"),l=s.val(),t=l,a=s.data("css-rule"),o=e(".dslca-modules-section-being-edited"),c=o,i=e('.dslca-modules-section-settings input[data-id="'+d+'"]',o),o.addClass("dslca-modules-section-change-made"),s.hasClass("dslca-modules-section-edit-field-upload")&&l&&l.length&&(l=s.data("dslca-img-url")),"background-image"==a&&(l='url("'+l+'")',dslc_bg_video()),"bg_image_attachment"==d&&o.removeClass("dslc-init-parallax"),"border-top"==d||"border-right"==d||"border-bottom"==d||"border-left"==d){var n=e('.dslca-modules-section-settings input[data-id="border_style"]').val();i=e('.dslca-modules-section-settings input[data-id="border"]',o),t="";var r=s.closest(".dslca-modules-section-edit-option-checkbox-wrapper");r.find(".dslca-modules-section-edit-field-checkbox").each(function(){e(this).is(":checked")&&("border-top"==e(this).data("id")?t+="top ":"border-right"==e(this).data("id")?t+="right ":"border-bottom"==e(this).data("id")?t+="bottom ":"border-left"==e(this).data("id")&&(t+="left "))}),s.is(":checked")?"border-top"==s.data("id")?o.css({"border-top-style":n}):"border-right"==s.data("id")?o.css({"border-right-style":n}):"border-bottom"==s.data("id")?o.css({"border-bottom-style":n}):"border-left"==s.data("id")&&o.css({"border-left-style":n}):"border-top"==s.data("id")?o.css({"border-top-style":"hidden"}):"border-right"==s.data("id")?o.css({"border-right-style":"hidden"}):"border-bottom"==s.data("id")?o.css({"border-bottom-style":"hidden"}):"border-left"==s.data("id")&&o.css({"border-left-style":"hidden"})}else if(s.hasClass("dslca-modules-section-edit-field-checkbox")){var u=e(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox"),m="";u.each(function(){e(this).prop("checked")&&(m+=e(this).data("val")+" ")});var t=m;"show_on"==s.data("id")&&(console.log(m),-1!==m.indexOf("desktop")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-desktop"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-desktop"),-1!==m.indexOf("tablet")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-tablet"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-tablet"),-1!==m.indexOf("phone")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-phone"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-phone"))}else if("bg_image_attachment"==d&&"parallax"==l||"type"==d)"bg_image_attachment"==d?(o.addClass("dslc-init-parallax"),dslc_parallax()):"type"==d&&("full"==l?o.addClass("dslc-full"):o.removeClass("dslc-full"),dslc_masonry());else if("columns_spacing"==d)"nospacing"==l?o.addClass("dslc-no-columns-spacing"):o.removeClass("dslc-no-columns-spacing");else if("custom_class"==d);else if("custom_id"==d);else if("bg_video"==d){if(jQuery(".dslc-bg-video video",o).remove(),l&&l.length){var p=l;p=p.replace(".webm",""),p=p.replace(".mp4",""),jQuery(".dslc-bg-video-inner",o).html('<video><source type="video/mp4" src="'+p+'.mp4" /><source type="video/webm" src="'+p+'.webm" /></video>'),dslc_bg_video()}}else if("bg_image_thumb"==d)if("enabled"==t){if(jQuery("#dslca-post-data-thumb").length){var h="url('"+jQuery("#dslca-post-data-thumb").val()+"')";c.css(a,h)}}else"disabled"==t&&c.css(a,"none");else s.data("css-element")&&(c=jQuery(s.data("css-element"),o)),c.css(a,l);i.val(t),dslc_generate_code(),dslc_show_publish_button()}),jQuery(document).on("blur",".dslca-editable-content",function(){jQuery("body").hasClass("dslca-composer-hidden")||"simple"!=jQuery(this).data("type")||dslc_editable_content_gen_code(jQuery(this))}).on("paste",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&"simple"==jQuery(this).data("type")){var e=jQuery(this);setTimeout(function(){"simple"==e.data("type")&&e.html(e.text()),dslc_editable_content_gen_code(jQuery(this))},1)}}).on("focus",".dslca-editable-content",function(){"simple"==jQuery(this).data("type")&&(jQuery("body").hasClass("dslca-composer-hidden")?e(this).trigger("blur"):jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"))}).on("keyup",".dslca-editable-content",function(){"simple"==jQuery(this).data("type")&&jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}),e(document).on("blur",".dslc-editable-area",function(){var s=e(this).closest(".dslc-module-front"),d=e(this).data("dslc-option-id"),o=e(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+d+'"]',s).val(o),dslc_module_output_altered()}),e(document).on("change",".dslca-module-edit-field",function(){dslc_module_options_hideshow_tabs();{var s="",d="",o=e(this),l=o.data("id"),t=o.closest(".dslca-module-edit-option"),a=e(".dslca-module-being-edited"),i=a.data("dslc-module-id");jQuery(".dslca-module-options-front textarea",a)}if(a.addClass("dslca-module-change-made"),"active"==jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")){if(t.find(".dslca-module-edit-option-checkbox-wrapper").length){var c=e('input[type="checkbox"]',t);c.each(function(){e(this).prop("checked")&&(s=s+e(this).val()+" ")})}else if(o.hasClass("dslca-module-edit-option-radio"))var s=e(".dslca-module-edit-field:checked",o).val();else{var s=o.val();if("orientation"==l&&"horizontal"==s){var n=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field-slider");n.slider({value:40}).slider("option","slide")(null,{value:n.slider("value")})}else if("orientation"==l&&"vertical"==s){var n=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field-slider");n.slider({value:100}).slider("option","slide")(null,{value:n.slider("value")})}}jQuery('.dslca-module-options-front textarea[data-id="'+l+'"]',a).val(s),jQuery(".dslca-container-loader").show(),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").addClass("dslca-module-change-made"),"css_load_preset"!=l||jQuery("body").hasClass("dslca-new-preset-added")?jQuery(".dslca-container-loader").hide():(dslc_module_options_show(i),jQuery(".dslca-container-loader").hide()),jQuery("body").removeClass("dslca-new-preset-added")})}else{if(o.hasClass("dslca-module-edit-field-font")){var r=o.val();r+=":400,100,200,300,500,600,700,800,900";var u=o.data("affect-on-change-el"),m=o.data("affect-on-change-rule"),p=o.val(),h=p;o.val().length&&-1!==dslcGoogleFontsArray.indexOf(o.val())?WebFont.load({google:{families:[r]},active:function(){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length?"dslc-icon-chevron-right":"dslc-icon-chevron-left"),jQuery(u,".dslca-module-being-edited").css(m,p)},inactive:function(){jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length?"dslc-icon-chevron-right":"dslc-icon-chevron-left")}}):(jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length?"dslc-icon-chevron-right":"dslc-icon-chevron-left"),jQuery(u,".dslca-module-being-edited").css(m,p))}else if(o.hasClass("dslca-module-edit-field-checkbox")){var c=e('input[type="checkbox"]',t);c.each(function(){e(this).prop("checked")?(s+="solid ",d=d+e(this).val()+" "):s+="none "})}if(!o.hasClass("dslca-module-edit-field-font")){var u=o.data("affect-on-change-el"),m=o.data("affect-on-change-rule"),p=o.val(),h=p;
4
+ o.hasClass("dslca-module-edit-field-checkbox")&&(p=s,h=d),o.hasClass("dslca-module-edit-field-image")&&(p='url("'+p+'")'),p.length<1&&("background-color"==m||"background"==m)&&(p="transparent"),jQuery(u,".dslca-module-being-edited").css(m,p)}jQuery('.dslca-module-option-front[data-id="'+l+'"]',a).val(h)}}),e(document).on("keyup, blur",".dslca-module-edit-field-numeric",function(){var s,d=e(this),o=d.data("id"),l=(d.closest(".dslca-module-edit-option"),e(".dslca-module-being-edited")),t=(l.data("dslc-module-id"),jQuery(".dslca-module-options-front textarea",l),d.data("affect-on-change-el")),a=d.data("affect-on-change-rule"),i=d.val(),c=i+d.data("ext");if(l.addClass("dslca-module-change-made"),"active"!=jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")){s=a.replace(/ /g,"").split(",");for(var n=0;n<s.length;n++)jQuery(t,".dslca-module-being-edited").css(s[n],c);jQuery('.dslca-module-option-front[data-id="'+o+'"]',l).val(i)}}),e(document).on("keyup",".dslca-modules-section-edit-field-numeric",function(){var s,d=e(this),o=d.data("id"),l=(d.closest(".dslca-modules-section-edit-option"),e(".dslca-modules-section-being-edited")),t=d.data("css-rule"),a=d.val(),i=a+d.data("ext");l.addClass("dslca-modules-section-change-made"),s=t.replace(/ /g,"").split(",");for(var c=0;c<s.length;c++)l.css(s[c],i);jQuery('.dslca-modules-section-settings input[data-id="'+o+'"]',l).val(a)})}),jQuery(document).ready(function(e){var s;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){var e=jQuery(this);if(e.hasClass("dslca-module-edit-field-image-add-hook"))var d=e.siblings(".dslca-module-edit-field-image"),o=e.siblings(".dslca-module-edit-field-image-remove-hook");else var d=e.siblings(".dslca-modules-section-edit-field-upload"),o=e.siblings(".dslca-modules-section-edit-field-image-remove-hook");var l=!1;s=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:l}),s.on("select",function(){var l=s.state().get("selection").first().toJSON();d.val(l.id).data("dslca-img-url",l.url).trigger("change"),e.hide(),o.show()}),s.open()}),jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var e=jQuery(this);if(e.hasClass("dslca-module-edit-field-image-remove-hook"))var s=e.siblings(".dslca-module-edit-field-image"),d=e.siblings(".dslca-module-edit-field-image-add-hook");else var s=e.siblings(".dslca-modules-section-edit-field-upload"),d=e.siblings(".dslca-modules-section-edit-field-image-add-hook");s.val("").trigger("change"),e.hide(),d.show()}),e(document).on("click",".dslca-wysiwyg-actions-edit-hook",function(){var s=e(this).parent().siblings(".dslca-editable-content"),d=s.closest(".dslc-module-front");if(d.hasClass("dslc-module-handle-like-accordion")){dslc_accordion_generate_code(d.find(".dslc-accordion"));var o=d.find('.dslca-module-option-front[data-id="accordion_content"]').val(),l=o.split("(dslc_sep)"),t=s.closest(".dslc-accordion-item").index(),a=l[t].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(d.hasClass("dslc-module-handle-like-tabs")){dslc_tabs_generate_code(d.find(".dslc-tabs"));var o=d.find('.dslca-module-option-front[data-id="tabs_content"]').val(),l=o.split("(dslc_sep)"),t=s.closest(".dslc-tabs-tab-content").index(),a=l[t].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else var a=d.find('.dslca-module-option-front[data-id="'+s.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea");if("undefined"!=typeof tinymce){var i=tinymce.get("dslcawpeditor");e("#wp-dslcawpeditor-wrap").hasClass("tmce-active")?i.setContent(a,{format:"html"}):jQuery("textarea#dslcawpeditor").val(a),d.hasClass("dslca-module-being-edited")||d.find(".dslca-module-edit-hook").trigger("click"),e(".dslca-wp-editor").show(),s.addClass("dslca-wysiwyg-active"),e("#dslcawpeditor_ifr, #dslcawpeditor").css({height:e(".dslca-wp-editor").height()-350})}}),e(document).on("click",".dslca-wp-editor-save-hook",function(){var s=e(".dslca-wysiwyg-active").closest(".dslc-module-front");if("undefined"!=typeof tinymce){if(e("#wp-dslcawpeditor-wrap").hasClass("tmce-active"))var d=tinymce.get("dslcawpeditor"),o=d.getContent();else var o=e("#dslcawpeditor").val();if(e(".dslca-wp-editor").hide(),e(".dslca-wysiwyg-active").html(o),s.hasClass("dslc-module-handle-like-accordion")){e(".dslca-wysiwyg-active").siblings(".dslca-accordion-plain-content").val(o);var l=s.find(".dslc-accordion");dslc_accordion_generate_code(l)}else if(s.hasClass("dslc-module-handle-like-tabs")){e(".dslca-wysiwyg-active").siblings(".dslca-tab-plain-content").val(o);var t=s.find(".dslc-tabs");dslc_tabs_generate_code(t)}dslc_editable_content_gen_code(e(".dslca-wysiwyg-active")),e(".dslca-wysiwyg-active").removeClass("dslca-wysiwyg-active")}}),e(document).on("click",".dslca-wp-editor-cancel-hook",function(){e(".dslca-wp-editor").hide(),e(".dslca-wysiwyg-active").removeClass("dslca-wysiwyg-active")})});
modules/accordion/module.php CHANGED
@@ -176,6 +176,18 @@ class DSLC_Accordion extends DSLC_Module {
176
  'section' => 'styling',
177
  'ext' => 'px',
178
  ),
 
 
 
 
 
 
 
 
 
 
 
 
179
 
180
  /**
181
  * Header
176
  'section' => 'styling',
177
  'ext' => 'px',
178
  ),
179
+ array(
180
+ 'label' => __( 'Spacing', 'dslc_string' ),
181
+ 'id' => 'css_spacing',
182
+ 'std' => '20',
183
+ 'type' => 'slider',
184
+ 'refresh_on_change' => false,
185
+ 'affect_on_change_el' => '.dslc-accordion-item',
186
+ 'affect_on_change_rule' => 'margin-top',
187
+ 'section' => 'styling',
188
+ 'ext' => 'px',
189
+ 'min' => -5
190
+ ),
191
 
192
  /**
193
  * Header
modules/blog/module.php CHANGED
@@ -711,7 +711,7 @@ class DSLC_Blog extends DSLC_Module {
711
  ),
712
  ),
713
  array(
714
- 'label' => __( ' BG Color', 'dslc_string' ),
715
  'id' => 'css_main_bg_color',
716
  'std' => '#ffffff',
717
  'type' => 'color',
@@ -2236,6 +2236,11 @@ class DSLC_Blog extends DSLC_Module {
2236
  else
2237
  $dslc_is_admin = false;
2238
 
 
 
 
 
 
2239
  $this->module_start( $options );
2240
 
2241
  /* CUSTOM START */
@@ -2676,6 +2681,8 @@ class DSLC_Blog extends DSLC_Module {
2676
 
2677
  </div><!-- .blog-post-main-inner -->
2678
 
 
 
2679
  </div><!-- .blog-post-main -->
2680
 
2681
  <?php endif; ?>
@@ -2760,6 +2767,8 @@ class DSLC_Blog extends DSLC_Module {
2760
 
2761
  </div><!-- .dslc-blog-post -->
2762
 
 
 
2763
  <?php
2764
 
2765
  // Row Separator
711
  ),
712
  ),
713
  array(
714
+ 'label' => __( 'BG Color', 'dslc_string' ),
715
  'id' => 'css_main_bg_color',
716
  'std' => '#ffffff',
717
  'type' => 'color',
2236
  else
2237
  $dslc_is_admin = false;
2238
 
2239
+ // Fix slashes on apostrophes
2240
+ if ( isset( $options['button_text'] ) ) {
2241
+ $options['button_text'] = stripslashes( $options['button_text'] );
2242
+ }
2243
+
2244
  $this->module_start( $options );
2245
 
2246
  /* CUSTOM START */
2681
 
2682
  </div><!-- .blog-post-main-inner -->
2683
 
2684
+ <a href="<?php the_permalink(); ?>" class="dslc-post-main-inner-link-cover"></a>
2685
+
2686
  </div><!-- .blog-post-main -->
2687
 
2688
  <?php endif; ?>
2767
 
2768
  </div><!-- .dslc-blog-post -->
2769
 
2770
+ <?php do_action( 'dslc_blog_module_after_post', $real_count ); ?>
2771
+
2772
  <?php
2773
 
2774
  // Row Separator
modules/button/module.php CHANGED
@@ -255,6 +255,26 @@ class DSLC_Button extends DSLC_Module {
255
  'affect_on_change_rule' => 'display',
256
  'section' => 'styling',
257
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
 
259
  /**
260
  * Typography
@@ -421,7 +441,7 @@ class DSLC_Button extends DSLC_Module {
421
  */
422
 
423
  array(
424
- 'label' => __( ' BG Color', 'dslc_string' ),
425
  'id' => 'css_wrapper_bg_color',
426
  'std' => '',
427
  'type' => 'color',
255
  'affect_on_change_rule' => 'display',
256
  'section' => 'styling',
257
  ),
258
+ array(
259
+ 'label' => __( 'Box Shadow', 'dslc_string' ),
260
+ 'id' => 'css_box_shadow',
261
+ 'std' => '',
262
+ 'type' => 'box_shadow',
263
+ 'refresh_on_change' => false,
264
+ 'affect_on_change_el' => '.dslc-button a',
265
+ 'affect_on_change_rule' => 'box-shadow',
266
+ 'section' => 'styling',
267
+ ),
268
+ array(
269
+ 'label' => __( 'Box Shadow - Hover', 'dslc_string' ),
270
+ 'id' => 'css_box_shadow_hover',
271
+ 'std' => '',
272
+ 'type' => 'box_shadow',
273
+ 'refresh_on_change' => false,
274
+ 'affect_on_change_el' => '.dslc-button a:hover',
275
+ 'affect_on_change_rule' => 'box-shadow',
276
+ 'section' => 'styling',
277
+ ),
278
 
279
  /**
280
  * Typography
441
  */
442
 
443
  array(
444
+ 'label' => __( 'BG Color', 'dslc_string' ),
445
  'id' => 'css_wrapper_bg_color',
446
  'std' => '',
447
  'type' => 'color',
modules/downloads/module.php CHANGED
@@ -613,7 +613,7 @@ class DSLC_Downloads extends DSLC_Module {
613
  ),
614
  ),
615
  array(
616
- 'label' => __( ' BG Color', 'dslc_string' ),
617
  'id' => 'css_main_bg_color',
618
  'std' => '#ffffff',
619
  'type' => 'color',
@@ -1977,6 +1977,11 @@ class DSLC_Downloads extends DSLC_Module {
1977
  else
1978
  $dslc_is_admin = false;
1979
 
 
 
 
 
 
1980
  $this->module_start( $options );
1981
 
1982
  /* Module output stars here */
@@ -2435,6 +2440,8 @@ class DSLC_Downloads extends DSLC_Module {
2435
 
2436
  </div><!-- .dslc-download-main-inner -->
2437
 
 
 
2438
  </div><!-- .dslc-download-main -->
2439
 
2440
  <?php endif; ?>
613
  ),
614
  ),
615
  array(
616
+ 'label' => __( 'BG Color', 'dslc_string' ),
617
  'id' => 'css_main_bg_color',
618
  'std' => '#ffffff',
619
  'type' => 'color',
1977
  else
1978
  $dslc_is_admin = false;
1979
 
1980
+ // Fix slashes on apostrophes
1981
+ if ( isset( $options['button_text'] ) ) {
1982
+ $options['button_text'] = stripslashes( $options['button_text'] );
1983
+ }
1984
+
1985
  $this->module_start( $options );
1986
 
1987
  /* Module output stars here */
2440
 
2441
  </div><!-- .dslc-download-main-inner -->
2442
 
2443
+ <a href="<?php the_permalink(); ?>" class="dslc-post-main-inner-link-cover"></a>
2444
+
2445
  </div><!-- .dslc-download-main -->
2446
 
2447
  <?php endif; ?>
modules/galleries/module.php CHANGED
@@ -2096,6 +2096,11 @@ class DSLC_Galleries extends DSLC_Module {
2096
  else
2097
  $dslc_is_admin = false;
2098
 
 
 
 
 
 
2099
  $this->module_start( $options );
2100
 
2101
  if ( ! isset( $options['count_pos'] ) )
@@ -2545,6 +2550,8 @@ class DSLC_Galleries extends DSLC_Module {
2545
 
2546
  </div><!-- .dslc-gallery-main-inner -->
2547
 
 
 
2548
  </div><!-- .dslc-gallery-main -->
2549
 
2550
  <?php endif; ?>
2096
  else
2097
  $dslc_is_admin = false;
2098
 
2099
+ // Fix slashes on apostrophes
2100
+ if ( isset( $options['button_text'] ) ) {
2101
+ $options['button_text'] = stripslashes( $options['button_text'] );
2102
+ }
2103
+
2104
  $this->module_start( $options );
2105
 
2106
  if ( ! isset( $options['count_pos'] ) )
2550
 
2551
  </div><!-- .dslc-gallery-main-inner -->
2552
 
2553
+ <a href="<?php the_permalink(); ?>" class="dslc-post-main-inner-link-cover"></a>
2554
+
2555
  </div><!-- .dslc-gallery-main -->
2556
 
2557
  <?php endif; ?>
modules/html/module.php CHANGED
@@ -71,7 +71,7 @@ class DSLC_Html extends DSLC_Module {
71
  'section' => 'styling',
72
  ),
73
  array(
74
- 'label' => __( ' BG Color', 'dslc_string' ),
75
  'id' => 'css_main_bg_color',
76
  'std' => '',
77
  'type' => 'color',
@@ -198,6 +198,16 @@ class DSLC_Html extends DSLC_Module {
198
  'section' => 'styling',
199
  'ext' => 'px',
200
  ),
 
 
 
 
 
 
 
 
 
 
201
 
202
  /**
203
  * Content
@@ -995,6 +1005,28 @@ class DSLC_Html extends DSLC_Module {
995
  'section' => 'styling',
996
  'tab' => __( 'links', 'dslc_string' ),
997
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
998
 
999
  /**
1000
  * Lists
@@ -1397,7 +1429,7 @@ class DSLC_Html extends DSLC_Module {
1397
  'std' => '#fff',
1398
  'type' => 'color',
1399
  'refresh_on_change' => false,
1400
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1401
  'affect_on_change_rule' => 'background-color',
1402
  'section' => 'styling',
1403
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -1408,7 +1440,7 @@ class DSLC_Html extends DSLC_Module {
1408
  'std' => '#ddd',
1409
  'type' => 'color',
1410
  'refresh_on_change' => false,
1411
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1412
  'affect_on_change_rule' => 'border-color',
1413
  'section' => 'styling',
1414
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -1419,7 +1451,7 @@ class DSLC_Html extends DSLC_Module {
1419
  'std' => '1',
1420
  'type' => 'slider',
1421
  'refresh_on_change' => false,
1422
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1423
  'affect_on_change_rule' => 'border-width',
1424
  'section' => 'styling',
1425
  'ext' => 'px',
@@ -1449,7 +1481,7 @@ class DSLC_Html extends DSLC_Module {
1449
  ),
1450
  ),
1451
  'refresh_on_change' => false,
1452
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1453
  'affect_on_change_rule' => 'border-style',
1454
  'section' => 'styling',
1455
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -1460,7 +1492,7 @@ class DSLC_Html extends DSLC_Module {
1460
  'std' => '0',
1461
  'type' => 'slider',
1462
  'refresh_on_change' => false,
1463
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1464
  'affect_on_change_rule' => 'border-radius',
1465
  'section' => 'styling',
1466
  'ext' => 'px',
@@ -1472,7 +1504,7 @@ class DSLC_Html extends DSLC_Module {
1472
  'std' => '#4d4d4d',
1473
  'type' => 'color',
1474
  'refresh_on_change' => false,
1475
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1476
  'affect_on_change_rule' => 'color',
1477
  'section' => 'styling',
1478
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -1483,7 +1515,7 @@ class DSLC_Html extends DSLC_Module {
1483
  'std' => '13',
1484
  'type' => 'slider',
1485
  'refresh_on_change' => false,
1486
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1487
  'affect_on_change_rule' => 'font-size',
1488
  'section' => 'styling',
1489
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -1495,7 +1527,7 @@ class DSLC_Html extends DSLC_Module {
1495
  'std' => '500',
1496
  'type' => 'slider',
1497
  'refresh_on_change' => false,
1498
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1499
  'affect_on_change_rule' => 'font-weight',
1500
  'section' => 'styling',
1501
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -1510,7 +1542,7 @@ class DSLC_Html extends DSLC_Module {
1510
  'std' => 'Open Sans',
1511
  'type' => 'font',
1512
  'refresh_on_change' => false,
1513
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1514
  'affect_on_change_rule' => 'font-family',
1515
  'section' => 'styling',
1516
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -1533,7 +1565,7 @@ class DSLC_Html extends DSLC_Module {
1533
  'std' => '15',
1534
  'type' => 'slider',
1535
  'refresh_on_change' => false,
1536
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1537
  'affect_on_change_rule' => 'margin-bottom',
1538
  'section' => 'styling',
1539
  'ext' => 'px',
@@ -1545,7 +1577,7 @@ class DSLC_Html extends DSLC_Module {
1545
  'std' => '10',
1546
  'type' => 'slider',
1547
  'refresh_on_change' => false,
1548
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1549
  'affect_on_change_rule' => 'padding-top,padding-bottom',
1550
  'section' => 'styling',
1551
  'ext' => 'px',
@@ -1557,7 +1589,7 @@ class DSLC_Html extends DSLC_Module {
1557
  'std' => '15',
1558
  'type' => 'slider',
1559
  'refresh_on_change' => false,
1560
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
1561
  'affect_on_change_rule' => 'padding-left,padding-right',
1562
  'section' => 'styling',
1563
  'ext' => 'px',
@@ -1569,7 +1601,7 @@ class DSLC_Html extends DSLC_Module {
1569
  */
1570
 
1571
  array(
1572
- 'label' => __( ' BG Color', 'dslc_string' ),
1573
  'id' => 'css_blockquote_bg_color',
1574
  'std' => '',
1575
  'type' => 'color',
71
  'section' => 'styling',
72
  ),
73
  array(
74
+ 'label' => __( 'BG Color', 'dslc_string' ),
75
  'id' => 'css_main_bg_color',
76
  'std' => '',
77
  'type' => 'color',
198
  'section' => 'styling',
199
  'ext' => 'px',
200
  ),
201
+ array(
202
+ 'label' => __( 'Box Shadow', 'dslc_string' ),
203
+ 'id' => 'css_main_box_shadow',
204
+ 'std' => '',
205
+ 'type' => 'box_shadow',
206
+ 'refresh_on_change' => false,
207
+ 'affect_on_change_el' => '.dslc-html-module-content',
208
+ 'affect_on_change_rule' => 'box-shadow',
209
+ 'section' => 'styling',
210
+ ),
211
 
212
  /**
213
  * Content
1005
  'section' => 'styling',
1006
  'tab' => __( 'links', 'dslc_string' ),
1007
  ),
1008
+ array(
1009
+ 'label' => __( 'Blockquote Link - Color', 'dslc_string' ),
1010
+ 'id' => 'css_blockquote_link_color',
1011
+ 'std' => '',
1012
+ 'type' => 'color',
1013
+ 'refresh_on_change' => false,
1014
+ 'affect_on_change_el' => '.dslc-html-module-content blockquote a',
1015
+ 'affect_on_change_rule' => 'color',
1016
+ 'section' => 'styling',
1017
+ 'tab' => __( 'links', 'dslc_string' ),
1018
+ ),
1019
+ array(
1020
+ 'label' => __( 'Blockquote Link - Hover Color', 'dslc_string' ),
1021
+ 'id' => 'css_blockquote_link_color_hover',
1022
+ 'std' => '',
1023
+ 'type' => 'color',
1024
+ 'refresh_on_change' => false,
1025
+ 'affect_on_change_el' => '.dslc-html-module-content blockquote a:hover',
1026
+ 'affect_on_change_rule' => 'color',
1027
+ 'section' => 'styling',
1028
+ 'tab' => __( 'links', 'dslc_string' ),
1029
+ ),
1030
 
1031
  /**
1032
  * Lists
1429
  'std' => '#fff',
1430
  'type' => 'color',
1431
  'refresh_on_change' => false,
1432
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1433
  'affect_on_change_rule' => 'background-color',
1434
  'section' => 'styling',
1435
  'tab' => __( 'inputs', 'dslc_string' ),
1440
  'std' => '#ddd',
1441
  'type' => 'color',
1442
  'refresh_on_change' => false,
1443
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1444
  'affect_on_change_rule' => 'border-color',
1445
  'section' => 'styling',
1446
  'tab' => __( 'inputs', 'dslc_string' ),
1451
  'std' => '1',
1452
  'type' => 'slider',
1453
  'refresh_on_change' => false,
1454
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1455
  'affect_on_change_rule' => 'border-width',
1456
  'section' => 'styling',
1457
  'ext' => 'px',
1481
  ),
1482
  ),
1483
  'refresh_on_change' => false,
1484
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1485
  'affect_on_change_rule' => 'border-style',
1486
  'section' => 'styling',
1487
  'tab' => __( 'inputs', 'dslc_string' ),
1492
  'std' => '0',
1493
  'type' => 'slider',
1494
  'refresh_on_change' => false,
1495
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1496
  'affect_on_change_rule' => 'border-radius',
1497
  'section' => 'styling',
1498
  'ext' => 'px',
1504
  'std' => '#4d4d4d',
1505
  'type' => 'color',
1506
  'refresh_on_change' => false,
1507
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1508
  'affect_on_change_rule' => 'color',
1509
  'section' => 'styling',
1510
  'tab' => __( 'inputs', 'dslc_string' ),
1515
  'std' => '13',
1516
  'type' => 'slider',
1517
  'refresh_on_change' => false,
1518
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1519
  'affect_on_change_rule' => 'font-size',
1520
  'section' => 'styling',
1521
  'tab' => __( 'inputs', 'dslc_string' ),
1527
  'std' => '500',
1528
  'type' => 'slider',
1529
  'refresh_on_change' => false,
1530
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1531
  'affect_on_change_rule' => 'font-weight',
1532
  'section' => 'styling',
1533
  'tab' => __( 'inputs', 'dslc_string' ),
1542
  'std' => 'Open Sans',
1543
  'type' => 'font',
1544
  'refresh_on_change' => false,
1545
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1546
  'affect_on_change_rule' => 'font-family',
1547
  'section' => 'styling',
1548
  'tab' => __( 'inputs', 'dslc_string' ),
1565
  'std' => '15',
1566
  'type' => 'slider',
1567
  'refresh_on_change' => false,
1568
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1569
  'affect_on_change_rule' => 'margin-bottom',
1570
  'section' => 'styling',
1571
  'ext' => 'px',
1577
  'std' => '10',
1578
  'type' => 'slider',
1579
  'refresh_on_change' => false,
1580
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1581
  'affect_on_change_rule' => 'padding-top,padding-bottom',
1582
  'section' => 'styling',
1583
  'ext' => 'px',
1589
  'std' => '15',
1590
  'type' => 'slider',
1591
  'refresh_on_change' => false,
1592
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
1593
  'affect_on_change_rule' => 'padding-left,padding-right',
1594
  'section' => 'styling',
1595
  'ext' => 'px',
1601
  */
1602
 
1603
  array(
1604
+ 'label' => __( 'BG Color', 'dslc_string' ),
1605
  'id' => 'css_blockquote_bg_color',
1606
  'std' => '',
1607
  'type' => 'color',
modules/infobox/module.php CHANGED
@@ -404,6 +404,16 @@ class DSLC_Info_Box extends DSLC_Module {
404
  'section' => 'styling',
405
  'ext' => '%'
406
  ),
 
 
 
 
 
 
 
 
 
 
407
 
408
  /**
409
  * Wrapper
@@ -817,6 +827,17 @@ class DSLC_Info_Box extends DSLC_Module {
817
  'tab' => __( 'Icon', 'dslc_string' ),
818
  'ext' => 'px'
819
  ),
 
 
 
 
 
 
 
 
 
 
 
820
 
821
  /**
822
  * Title
@@ -1280,6 +1301,28 @@ class DSLC_Info_Box extends DSLC_Module {
1280
  'ext' => 'px',
1281
  'tab' => __( 'Primary Button', 'dslc_string' ),
1282
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1283
 
1284
  /**
1285
  * Secondary Button
@@ -1546,6 +1589,28 @@ class DSLC_Info_Box extends DSLC_Module {
1546
  'ext' => 'px',
1547
  'tab' => __( 'Secondary Button', 'dslc_string' ),
1548
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1549
 
1550
  /**
1551
  * Hidden
@@ -2264,7 +2329,7 @@ class DSLC_Info_Box extends DSLC_Module {
2264
  <?php if ( $options['button_pos'] == 'aside' && in_array( 'button', $elements ) ) : ?>
2265
  <div class="dslc-info-box-button dslc-info-box-button-aside">
2266
  <?php if ( isset( $options['button_link'] ) && ! empty( $options['button_link'] ) ) : ?>
2267
- <a href="<?php echo $options['button_link']; ?>" target="<?php echo $options['button_target']; ?>">
2268
  <?php if ( isset( $options['button_icon_id'] ) && $options['button_icon_id'] != '' ) : ?>
2269
  <span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
2270
  <?php endif; ?>
@@ -2331,7 +2396,7 @@ class DSLC_Info_Box extends DSLC_Module {
2331
  <?php if ( $options['button_pos'] == 'bellow' && in_array( 'button', $elements ) ) : ?>
2332
  <div class="dslc-info-box-button">
2333
  <?php if ( isset( $options['button_link'] ) && ! empty( $options['button_link'] ) ) : ?>
2334
- <a href="<?php echo $options['button_link']; ?>" target="<?php echo $options['button_target']; ?>">
2335
  <?php if ( isset( $options['button_icon_id'] ) && $options['button_icon_id'] != '' ) : ?>
2336
  <span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
2337
  <?php endif; ?>
404
  'section' => 'styling',
405
  'ext' => '%'
406
  ),
407
+ array(
408
+ 'label' => __( 'Box Shadow', 'dslc_string' ),
409
+ 'id' => 'css_box_shadow',
410
+ 'std' => '',
411
+ 'type' => 'box_shadow',
412
+ 'refresh_on_change' => false,
413
+ 'affect_on_change_el' => '.dslc-info-box',
414
+ 'affect_on_change_rule' => 'box-shadow',
415
+ 'section' => 'styling',
416
+ ),
417
 
418
  /**
419
  * Wrapper
827
  'tab' => __( 'Icon', 'dslc_string' ),
828
  'ext' => 'px'
829
  ),
830
+ array(
831
+ 'label' => __( 'Box Shadow', 'dslc_string' ),
832
+ 'id' => 'css_icon_box_shadow',
833
+ 'std' => '',
834
+ 'type' => 'box_shadow',
835
+ 'refresh_on_change' => false,
836
+ 'affect_on_change_el' => '.dslc-info-box-image-inner',
837
+ 'affect_on_change_rule' => 'box-shadow',
838
+ 'section' => 'styling',
839
+ 'tab' => __( 'Icon', 'dslc_string' ),
840
+ ),
841
 
842
  /**
843
  * Title
1301
  'ext' => 'px',
1302
  'tab' => __( 'Primary Button', 'dslc_string' ),
1303
  ),
1304
+ array(
1305
+ 'label' => __( 'Box Shadow', 'dslc_string' ),
1306
+ 'id' => 'css_button_box_shadow',
1307
+ 'std' => '',
1308
+ 'type' => 'box_shadow',
1309
+ 'refresh_on_change' => false,
1310
+ 'affect_on_change_el' => '.dslc-info-box-button a.dslc-primary',
1311
+ 'affect_on_change_rule' => 'box-shadow',
1312
+ 'section' => 'styling',
1313
+ 'tab' => __( 'Primary Button', 'dslc_string' ),
1314
+ ),
1315
+ array(
1316
+ 'label' => __( 'Box Shadow - Hover', 'dslc_string' ),
1317
+ 'id' => 'css_button_box_shadow_hover',
1318
+ 'std' => '',
1319
+ 'type' => 'box_shadow',
1320
+ 'refresh_on_change' => false,
1321
+ 'affect_on_change_el' => '.dslc-info-box-button a.dslc-primary:hover',
1322
+ 'affect_on_change_rule' => 'box-shadow',
1323
+ 'section' => 'styling',
1324
+ 'tab' => __( 'Primary Button', 'dslc_string' ),
1325
+ ),
1326
 
1327
  /**
1328
  * Secondary Button
1589
  'ext' => 'px',
1590
  'tab' => __( 'Secondary Button', 'dslc_string' ),
1591
  ),
1592
+ array(
1593
+ 'label' => __( 'Box Shadow', 'dslc_string' ),
1594
+ 'id' => 'css_button_2_box_shadow',
1595
+ 'std' => '',
1596
+ 'type' => 'box_shadow',
1597
+ 'refresh_on_change' => false,
1598
+ 'affect_on_change_el' => '.dslc-info-box-button a.dslc-secondary',
1599
+ 'affect_on_change_rule' => 'box-shadow',
1600
+ 'section' => 'styling',
1601
+ 'tab' => __( 'Secondary Button', 'dslc_string' ),
1602
+ ),
1603
+ array(
1604
+ 'label' => __( 'Box Shadow - Hover', 'dslc_string' ),
1605
+ 'id' => 'css_button_2_box_shadow_hover',
1606
+ 'std' => '',
1607
+ 'type' => 'box_shadow',
1608
+ 'refresh_on_change' => false,
1609
+ 'affect_on_change_el' => '.dslc-info-box-button a.dslc-secondary:hover',
1610
+ 'affect_on_change_rule' => 'box-shadow',
1611
+ 'section' => 'styling',
1612
+ 'tab' => __( 'Secondary Button', 'dslc_string' ),
1613
+ ),
1614
 
1615
  /**
1616
  * Hidden
2329
  <?php if ( $options['button_pos'] == 'aside' && in_array( 'button', $elements ) ) : ?>
2330
  <div class="dslc-info-box-button dslc-info-box-button-aside">
2331
  <?php if ( isset( $options['button_link'] ) && ! empty( $options['button_link'] ) ) : ?>
2332
+ <a href="<?php echo $options['button_link']; ?>" target="<?php echo $options['button_target']; ?>" class="dslc-primary">
2333
  <?php if ( isset( $options['button_icon_id'] ) && $options['button_icon_id'] != '' ) : ?>
2334
  <span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
2335
  <?php endif; ?>
2396
  <?php if ( $options['button_pos'] == 'bellow' && in_array( 'button', $elements ) ) : ?>
2397
  <div class="dslc-info-box-button">
2398
  <?php if ( isset( $options['button_link'] ) && ! empty( $options['button_link'] ) ) : ?>
2399
+ <a href="<?php echo $options['button_link']; ?>" target="<?php echo $options['button_target']; ?>" class="dslc-primary">
2400
  <?php if ( isset( $options['button_icon_id'] ) && $options['button_icon_id'] != '' ) : ?>
2401
  <span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
2402
  <?php endif; ?>
modules/navigation/module.php CHANGED
@@ -88,7 +88,7 @@ class DSLC_Navigation extends DSLC_Module {
88
  'section' => 'styling',
89
  ),
90
  array(
91
- 'label' => __( ' BG Color', 'dslc_string' ),
92
  'id' => 'css_main_bg_color',
93
  'std' => '',
94
  'type' => 'color',
@@ -299,6 +299,23 @@ class DSLC_Navigation extends DSLC_Module {
299
  'max' => 1000,
300
  'increment' => 5
301
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  array(
303
  'label' => __( 'Padding Vertical', 'dslc_string' ),
304
  'id' => 'css_main_padding_vertical',
@@ -614,7 +631,7 @@ class DSLC_Navigation extends DSLC_Module {
614
  'type' => 'slider',
615
  'refresh_on_change' => false,
616
  'affect_on_change_el' => '.dslc-navigation .menu > li',
617
- 'affect_on_change_rule' => 'margin-left',
618
  'section' => 'styling',
619
  'ext' => 'px',
620
  'tab' => __( 'item', 'dslc_string' ),
@@ -693,7 +710,7 @@ class DSLC_Navigation extends DSLC_Module {
693
  'tab' => __( 'subnav', 'dslc_string' ),
694
  ),
695
  array(
696
- 'label' => __( ' BG Color', 'dslc_string' ),
697
  'id' => 'css_subnav_bg_color',
698
  'std' => '#fff',
699
  'type' => 'color',
@@ -1368,7 +1385,7 @@ class DSLC_Navigation extends DSLC_Module {
1368
  }
1369
  } else {
1370
  ?>
1371
- <div class="dslc-navigation dslc-navigation-res-t-<?php echo $options['css_res_t']; ?> dslc-navigation-res-p-<?php echo $options['css_res_p']; ?>">
1372
  <div class="dslc-navigation-inner">
1373
  <?php wp_nav_menu( array( 'theme_location' => $options['location'] ) ); ?>
1374
  </div>
88
  'section' => 'styling',
89
  ),
90
  array(
91
+ 'label' => __( 'BG Color', 'dslc_string' ),
92
  'id' => 'css_main_bg_color',
93
  'std' => '',
94
  'type' => 'color',
299
  'max' => 1000,
300
  'increment' => 5
301
  ),
302
+ array(
303
+ 'label' => __( 'Orientation', 'dslc_string' ),
304
+ 'id' => 'nav_orientation',
305
+ 'std' => 'horizontal',
306
+ 'type' => 'select',
307
+ 'choices' => array(
308
+ array(
309
+ 'label' => __( 'Horizontal', 'dslc_string' ),
310
+ 'value' => 'horizontal',
311
+ ),
312
+ array(
313
+ 'label' => __( 'Vertical', 'dslc_string' ),
314
+ 'value' => 'vertical',
315
+ ),
316
+ ),
317
+ 'section' => 'styling',
318
+ ),
319
  array(
320
  'label' => __( 'Padding Vertical', 'dslc_string' ),
321
  'id' => 'css_main_padding_vertical',
631
  'type' => 'slider',
632
  'refresh_on_change' => false,
633
  'affect_on_change_el' => '.dslc-navigation .menu > li',
634
+ 'affect_on_change_rule' => 'margin-left,margin-top',
635
  'section' => 'styling',
636
  'ext' => 'px',
637
  'tab' => __( 'item', 'dslc_string' ),
710
  'tab' => __( 'subnav', 'dslc_string' ),
711
  ),
712
  array(
713
+ 'label' => __( 'BG Color', 'dslc_string' ),
714
  'id' => 'css_subnav_bg_color',
715
  'std' => '#fff',
716
  'type' => 'color',
1385
  }
1386
  } else {
1387
  ?>
1388
+ <div class="dslc-navigation dslc-navigation-res-t-<?php echo $options['css_res_t']; ?> dslc-navigation-res-p-<?php echo $options['css_res_p']; ?> dslc-navigation-orientation-<?php echo $options['nav_orientation']; ?>">
1389
  <div class="dslc-navigation-inner">
1390
  <?php wp_nav_menu( array( 'theme_location' => $options['location'] ) ); ?>
1391
  </div>
modules/partners/module.php CHANGED
@@ -412,7 +412,7 @@ class DSLC_Partners extends DSLC_Module {
412
  */
413
 
414
  array(
415
- 'label' => __( ' BG Color', 'dslc_string' ),
416
  'id' => 'css_thumbnail_bg_color',
417
  'std' => '#ffffff',
418
  'type' => 'color',
@@ -603,7 +603,7 @@ class DSLC_Partners extends DSLC_Module {
603
  ),
604
  ),
605
  array(
606
- 'label' => __( ' BG Color', 'dslc_string' ),
607
  'id' => 'css_main_bg_color',
608
  'std' => '',
609
  'type' => 'color',
@@ -1724,6 +1724,8 @@ class DSLC_Partners extends DSLC_Module {
1724
 
1725
  </div><!-- .dslc-partner-main -->
1726
 
 
 
1727
  </div><!-- .dslc-partner-main -->
1728
 
1729
  <?php endif; ?>
412
  */
413
 
414
  array(
415
+ 'label' => __( 'BG Color', 'dslc_string' ),
416
  'id' => 'css_thumbnail_bg_color',
417
  'std' => '#ffffff',
418
  'type' => 'color',
603
  ),
604
  ),
605
  array(
606
+ 'label' => __( 'BG Color', 'dslc_string' ),
607
  'id' => 'css_main_bg_color',
608
  'std' => '',
609
  'type' => 'color',
1724
 
1725
  </div><!-- .dslc-partner-main -->
1726
 
1727
+ <a href="<?php the_permalink(); ?>" class="dslc-post-main-inner-link-cover"></a>
1728
+
1729
  </div><!-- .dslc-partner-main -->
1730
 
1731
  <?php endif; ?>
modules/posts/module.php CHANGED
@@ -690,7 +690,7 @@ class DSLC_Posts extends DSLC_Module {
690
  ),
691
  ),
692
  array(
693
- 'label' => __( ' BG Color', 'dslc_string' ),
694
  'id' => 'css_main_bg_color',
695
  'std' => '#ffffff',
696
  'type' => 'color',
@@ -2108,6 +2108,11 @@ class DSLC_Posts extends DSLC_Module {
2108
  else
2109
  $dslc_is_admin = false;
2110
 
 
 
 
 
 
2111
  $this->module_start( $options );
2112
 
2113
  /* CUSTOM START */
@@ -2546,6 +2551,8 @@ class DSLC_Posts extends DSLC_Module {
2546
 
2547
  </div><!-- .dslc-cpt-post-main-inner -->
2548
 
 
 
2549
  </div><!-- .dslc-cpt-post-main -->
2550
 
2551
  <?php endif; ?>
690
  ),
691
  ),
692
  array(
693
+ 'label' => __( 'BG Color', 'dslc_string' ),
694
  'id' => 'css_main_bg_color',
695
  'std' => '#ffffff',
696
  'type' => 'color',
2108
  else
2109
  $dslc_is_admin = false;
2110
 
2111
+ // Fix slashes on apostrophes
2112
+ if ( isset( $options['button_text'] ) ) {
2113
+ $options['button_text'] = stripslashes( $options['button_text'] );
2114
+ }
2115
+
2116
  $this->module_start( $options );
2117
 
2118
  /* CUSTOM START */
2551
 
2552
  </div><!-- .dslc-cpt-post-main-inner -->
2553
 
2554
+ <a href="<?php the_permalink(); ?>" class="dslc-post-main-inner-link-cover"></a>
2555
+
2556
  </div><!-- .dslc-cpt-post-main -->
2557
 
2558
  <?php endif; ?>
modules/projects/module.php CHANGED
@@ -626,7 +626,7 @@ class DSLC_Projects extends DSLC_Module {
626
  ),
627
  ),
628
  array(
629
- 'label' => __( ' BG Color', 'dslc_string' ),
630
  'id' => 'css_main_bg_color',
631
  'std' => '#ffffff',
632
  'type' => 'color',
@@ -1953,6 +1953,11 @@ class DSLC_Projects extends DSLC_Module {
1953
  else
1954
  $dslc_is_admin = false;
1955
 
 
 
 
 
 
1956
  $options['module_id'] = $this->module_id;
1957
 
1958
  $this->module_start( $options );
@@ -2387,6 +2392,8 @@ class DSLC_Projects extends DSLC_Module {
2387
 
2388
  </div><!-- .dslc-init-center -->
2389
 
 
 
2390
  </div><!-- .dslc-project-main -->
2391
 
2392
  <?php endif; ?>
626
  ),
627
  ),
628
  array(
629
+ 'label' => __( 'BG Color', 'dslc_string' ),
630
  'id' => 'css_main_bg_color',
631
  'std' => '#ffffff',
632
  'type' => 'color',
1953
  else
1954
  $dslc_is_admin = false;
1955
 
1956
+ // Fix slashes on apostrophes
1957
+ if ( isset( $options['button_text'] ) ) {
1958
+ $options['button_text'] = stripslashes( $options['button_text'] );
1959
+ }
1960
+
1961
  $options['module_id'] = $this->module_id;
1962
 
1963
  $this->module_start( $options );
2392
 
2393
  </div><!-- .dslc-init-center -->
2394
 
2395
+ <a href="<?php the_permalink(); ?>" class="dslc-post-main-inner-link-cover"></a>
2396
+
2397
  </div><!-- .dslc-project-main -->
2398
 
2399
  <?php endif; ?>
modules/staff/module.php CHANGED
@@ -762,7 +762,7 @@ class DSLC_Staff extends DSLC_Module {
762
  ),
763
  ),
764
  array(
765
- 'label' => __( ' BG Color', 'dslc_string' ),
766
  'id' => 'css_main_bg_color',
767
  'std' => '#ffffff',
768
  'type' => 'color',
@@ -2268,6 +2268,8 @@ class DSLC_Staff extends DSLC_Module {
2268
 
2269
  </div><!-- .dslc-staff-member-main -->
2270
 
 
 
2271
  </div><!-- .dslc-staff-member-main -->
2272
 
2273
  <?php endif; ?>
762
  ),
763
  ),
764
  array(
765
+ 'label' => __( 'BG Color', 'dslc_string' ),
766
  'id' => 'css_main_bg_color',
767
  'std' => '#ffffff',
768
  'type' => 'color',
2268
 
2269
  </div><!-- .dslc-staff-member-main -->
2270
 
2271
+ <a href="<?php the_permalink(); ?>" class="dslc-post-main-inner-link-cover"></a>
2272
+
2273
  </div><!-- .dslc-staff-member-main -->
2274
 
2275
  <?php endif; ?>
modules/tabs/module.php CHANGED
@@ -64,7 +64,18 @@ class DSLC_Tabs extends DSLC_Module {
64
  */
65
 
66
  array(
67
- 'label' => __( ' BG Color', 'dslc_string' ),
 
 
 
 
 
 
 
 
 
 
 
68
  'id' => 'css_nav_bg_color',
69
  'std' => '#fbfbfb',
70
  'type' => 'color',
@@ -333,7 +344,7 @@ class DSLC_Tabs extends DSLC_Module {
333
  */
334
 
335
  array(
336
- 'label' => __( ' BG Color', 'dslc_string' ),
337
  'id' => 'css_content_bg_color',
338
  'std' => '#ffffff',
339
  'type' => 'color',
@@ -539,7 +550,7 @@ class DSLC_Tabs extends DSLC_Module {
539
  */
540
 
541
  array(
542
- 'label' => __( ' BG Color', 'dslc_string' ),
543
  'id' => 'css_h1_bg_color',
544
  'std' => '',
545
  'type' => 'color',
@@ -760,7 +771,7 @@ class DSLC_Tabs extends DSLC_Module {
760
  */
761
 
762
  array(
763
- 'label' => __( ' BG Color', 'dslc_string' ),
764
  'id' => 'css_h2_bg_color',
765
  'std' => '',
766
  'type' => 'color',
@@ -981,7 +992,7 @@ class DSLC_Tabs extends DSLC_Module {
981
  */
982
 
983
  array(
984
- 'label' => __( ' BG Color', 'dslc_string' ),
985
  'id' => 'css_h3_bg_color',
986
  'std' => '',
987
  'type' => 'color',
@@ -1202,7 +1213,7 @@ class DSLC_Tabs extends DSLC_Module {
1202
  */
1203
 
1204
  array(
1205
- 'label' => __( ' BG Color', 'dslc_string' ),
1206
  'id' => 'css_h4_bg_color',
1207
  'std' => '',
1208
  'type' => 'color',
@@ -1423,7 +1434,7 @@ class DSLC_Tabs extends DSLC_Module {
1423
  */
1424
 
1425
  array(
1426
- 'label' => __( ' BG Color', 'dslc_string' ),
1427
  'id' => 'css_h5_bg_color',
1428
  'std' => '',
1429
  'type' => 'color',
@@ -1644,7 +1655,7 @@ class DSLC_Tabs extends DSLC_Module {
1644
  */
1645
 
1646
  array(
1647
- 'label' => __( ' BG Color', 'dslc_string' ),
1648
  'id' => 'css_h6_bg_color',
1649
  'std' => '',
1650
  'type' => 'color',
@@ -2460,7 +2471,7 @@ class DSLC_Tabs extends DSLC_Module {
2460
  */
2461
 
2462
  array(
2463
- 'label' => __( ' BG Color', 'dslc_string' ),
2464
  'id' => 'css_blockquote_bg_color',
2465
  'std' => '',
2466
  'type' => 'color',
64
  */
65
 
66
  array(
67
+ 'label' => __( 'Align', 'dslc_string' ),
68
+ 'id' => 'css_nav_align',
69
+ 'std' => 'left',
70
+ 'type' => 'text_align',
71
+ 'refresh_on_change' => false,
72
+ 'affect_on_change_el' => '.dslc-tabs-nav',
73
+ 'affect_on_change_rule' => 'text-align',
74
+ 'section' => 'styling',
75
+ 'tab' => __( 'Navigation', 'dslc_string' ),
76
+ ),
77
+ array(
78
+ 'label' => __( 'BG Color', 'dslc_string' ),
79
  'id' => 'css_nav_bg_color',
80
  'std' => '#fbfbfb',
81
  'type' => 'color',
344
  */
345
 
346
  array(
347
+ 'label' => __( 'BG Color', 'dslc_string' ),
348
  'id' => 'css_content_bg_color',
349
  'std' => '#ffffff',
350
  'type' => 'color',
550
  */
551
 
552
  array(
553
+ 'label' => __( 'BG Color', 'dslc_string' ),
554
  'id' => 'css_h1_bg_color',
555
  'std' => '',
556
  'type' => 'color',
771
  */
772
 
773
  array(
774
+ 'label' => __( 'BG Color', 'dslc_string' ),
775
  'id' => 'css_h2_bg_color',
776
  'std' => '',
777
  'type' => 'color',
992
  */
993
 
994
  array(
995
+ 'label' => __( 'BG Color', 'dslc_string' ),
996
  'id' => 'css_h3_bg_color',
997
  'std' => '',
998
  'type' => 'color',
1213
  */
1214
 
1215
  array(
1216
+ 'label' => __( 'BG Color', 'dslc_string' ),
1217
  'id' => 'css_h4_bg_color',
1218
  'std' => '',
1219
  'type' => 'color',
1434
  */
1435
 
1436
  array(
1437
+ 'label' => __( 'BG Color', 'dslc_string' ),
1438
  'id' => 'css_h5_bg_color',
1439
  'std' => '',
1440
  'type' => 'color',
1655
  */
1656
 
1657
  array(
1658
+ 'label' => __( 'BG Color', 'dslc_string' ),
1659
  'id' => 'css_h6_bg_color',
1660
  'std' => '',
1661
  'type' => 'color',
2471
  */
2472
 
2473
  array(
2474
+ 'label' => __( 'BG Color', 'dslc_string' ),
2475
  'id' => 'css_blockquote_bg_color',
2476
  'std' => '',
2477
  'type' => 'color',
modules/testimonials/module.php CHANGED
@@ -366,7 +366,7 @@ class DSLC_Testimonials extends DSLC_Module {
366
  */
367
 
368
  array(
369
- 'label' => __( ' BG Color', 'dslc_string' ),
370
  'id' => 'css_main_bg_color',
371
  'std' => '#5890e5',
372
  'type' => 'color',
366
  */
367
 
368
  array(
369
+ 'label' => __( 'BG Color', 'dslc_string' ),
370
  'id' => 'css_main_bg_color',
371
  'std' => '#5890e5',
372
  'type' => 'color',
modules/text-simple/module.php CHANGED
@@ -71,7 +71,7 @@ class DSLC_Text_Simple extends DSLC_Module {
71
  'section' => 'styling',
72
  ),
73
  array(
74
- 'label' => __( ' BG Color', 'dslc_string' ),
75
  'id' => 'css_main_bg_color',
76
  'std' => '',
77
  'type' => 'color',
@@ -304,6 +304,16 @@ class DSLC_Text_Simple extends DSLC_Module {
304
  'section' => 'styling',
305
  'ext' => 'px',
306
  ),
 
 
 
 
 
 
 
 
 
 
307
 
308
  /**
309
  * Content
@@ -434,7 +444,7 @@ class DSLC_Text_Simple extends DSLC_Module {
434
  */
435
 
436
  array(
437
- 'label' => __( ' BG Color', 'dslc_string' ),
438
  'id' => 'css_h1_bg_color',
439
  'std' => '',
440
  'type' => 'color',
@@ -669,7 +679,7 @@ class DSLC_Text_Simple extends DSLC_Module {
669
  */
670
 
671
  array(
672
- 'label' => __( ' BG Color', 'dslc_string' ),
673
  'id' => 'css_h2_bg_color',
674
  'std' => '',
675
  'type' => 'color',
@@ -904,7 +914,7 @@ class DSLC_Text_Simple extends DSLC_Module {
904
  */
905
 
906
  array(
907
- 'label' => __( ' BG Color', 'dslc_string' ),
908
  'id' => 'css_h3_bg_color',
909
  'std' => '',
910
  'type' => 'color',
@@ -1139,7 +1149,7 @@ class DSLC_Text_Simple extends DSLC_Module {
1139
  */
1140
 
1141
  array(
1142
- 'label' => __( ' BG Color', 'dslc_string' ),
1143
  'id' => 'css_h4_bg_color',
1144
  'std' => '',
1145
  'type' => 'color',
@@ -1374,7 +1384,7 @@ class DSLC_Text_Simple extends DSLC_Module {
1374
  */
1375
 
1376
  array(
1377
- 'label' => __( ' BG Color', 'dslc_string' ),
1378
  'id' => 'css_h5_bg_color',
1379
  'std' => '',
1380
  'type' => 'color',
@@ -1609,7 +1619,7 @@ class DSLC_Text_Simple extends DSLC_Module {
1609
  */
1610
 
1611
  array(
1612
- 'label' => __( ' BG Color', 'dslc_string' ),
1613
  'id' => 'css_h6_bg_color',
1614
  'std' => '',
1615
  'type' => 'color',
@@ -1865,6 +1875,28 @@ class DSLC_Text_Simple extends DSLC_Module {
1865
  'section' => 'styling',
1866
  'tab' => __( 'links', 'dslc_string' ),
1867
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1868
 
1869
  /**
1870
  * Lists
@@ -2267,7 +2299,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2267
  'std' => '#fff',
2268
  'type' => 'color',
2269
  'refresh_on_change' => false,
2270
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2271
  'affect_on_change_rule' => 'background-color',
2272
  'section' => 'styling',
2273
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2278,7 +2310,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2278
  'std' => '#ddd',
2279
  'type' => 'color',
2280
  'refresh_on_change' => false,
2281
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2282
  'affect_on_change_rule' => 'border-color',
2283
  'section' => 'styling',
2284
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2289,7 +2321,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2289
  'std' => '1',
2290
  'type' => 'slider',
2291
  'refresh_on_change' => false,
2292
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2293
  'affect_on_change_rule' => 'border-width',
2294
  'section' => 'styling',
2295
  'ext' => 'px',
@@ -2319,7 +2351,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2319
  ),
2320
  ),
2321
  'refresh_on_change' => false,
2322
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2323
  'affect_on_change_rule' => 'border-style',
2324
  'section' => 'styling',
2325
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2330,7 +2362,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2330
  'std' => '0',
2331
  'type' => 'slider',
2332
  'refresh_on_change' => false,
2333
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2334
  'affect_on_change_rule' => 'border-radius',
2335
  'section' => 'styling',
2336
  'ext' => 'px',
@@ -2342,7 +2374,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2342
  'std' => '#4d4d4d',
2343
  'type' => 'color',
2344
  'refresh_on_change' => false,
2345
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2346
  'affect_on_change_rule' => 'color',
2347
  'section' => 'styling',
2348
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2353,7 +2385,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2353
  'std' => '13',
2354
  'type' => 'slider',
2355
  'refresh_on_change' => false,
2356
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2357
  'affect_on_change_rule' => 'font-size',
2358
  'section' => 'styling',
2359
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2365,7 +2397,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2365
  'std' => '500',
2366
  'type' => 'slider',
2367
  'refresh_on_change' => false,
2368
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2369
  'affect_on_change_rule' => 'font-weight',
2370
  'section' => 'styling',
2371
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2380,7 +2412,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2380
  'std' => 'Open Sans',
2381
  'type' => 'font',
2382
  'refresh_on_change' => false,
2383
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2384
  'affect_on_change_rule' => 'font-family',
2385
  'section' => 'styling',
2386
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2403,7 +2435,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2403
  'std' => '15',
2404
  'type' => 'slider',
2405
  'refresh_on_change' => false,
2406
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2407
  'affect_on_change_rule' => 'margin-bottom',
2408
  'section' => 'styling',
2409
  'ext' => 'px',
@@ -2415,7 +2447,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2415
  'std' => '10',
2416
  'type' => 'slider',
2417
  'refresh_on_change' => false,
2418
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2419
  'affect_on_change_rule' => 'padding-top,padding-bottom',
2420
  'section' => 'styling',
2421
  'ext' => 'px',
@@ -2427,7 +2459,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2427
  'std' => '15',
2428
  'type' => 'slider',
2429
  'refresh_on_change' => false,
2430
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2431
  'affect_on_change_rule' => 'padding-left,padding-right',
2432
  'section' => 'styling',
2433
  'ext' => 'px',
@@ -2439,7 +2471,7 @@ class DSLC_Text_Simple extends DSLC_Module {
2439
  */
2440
 
2441
  array(
2442
- 'label' => __( ' BG Color', 'dslc_string' ),
2443
  'id' => 'css_blockquote_bg_color',
2444
  'std' => '',
2445
  'type' => 'color',
71
  'section' => 'styling',
72
  ),
73
  array(
74
+ 'label' => __( 'BG Color', 'dslc_string' ),
75
  'id' => 'css_main_bg_color',
76
  'std' => '',
77
  'type' => 'color',
304
  'section' => 'styling',
305
  'ext' => 'px',
306
  ),
307
+ array(
308
+ 'label' => __( 'Box Shadow', 'dslc_string' ),
309
+ 'id' => 'css_main_box_shadow',
310
+ 'std' => '',
311
+ 'type' => 'box_shadow',
312
+ 'refresh_on_change' => false,
313
+ 'affect_on_change_el' => '.dslc-text-module-content',
314
+ 'affect_on_change_rule' => 'box-shadow',
315
+ 'section' => 'styling',
316
+ ),
317
 
318
  /**
319
  * Content
444
  */
445
 
446
  array(
447
+ 'label' => __( 'BG Color', 'dslc_string' ),
448
  'id' => 'css_h1_bg_color',
449
  'std' => '',
450
  'type' => 'color',
679
  */
680
 
681
  array(
682
+ 'label' => __( 'BG Color', 'dslc_string' ),
683
  'id' => 'css_h2_bg_color',
684
  'std' => '',
685
  'type' => 'color',
914
  */
915
 
916
  array(
917
+ 'label' => __( 'BG Color', 'dslc_string' ),
918
  'id' => 'css_h3_bg_color',
919
  'std' => '',
920
  'type' => 'color',
1149
  */
1150
 
1151
  array(
1152
+ 'label' => __( 'BG Color', 'dslc_string' ),
1153
  'id' => 'css_h4_bg_color',
1154
  'std' => '',
1155
  'type' => 'color',
1384
  */
1385
 
1386
  array(
1387
+ 'label' => __( 'BG Color', 'dslc_string' ),
1388
  'id' => 'css_h5_bg_color',
1389
  'std' => '',
1390
  'type' => 'color',
1619
  */
1620
 
1621
  array(
1622
+ 'label' => __( 'BG Color', 'dslc_string' ),
1623
  'id' => 'css_h6_bg_color',
1624
  'std' => '',
1625
  'type' => 'color',
1875
  'section' => 'styling',
1876
  'tab' => __( 'links', 'dslc_string' ),
1877
  ),
1878
+ array(
1879
+ 'label' => __( 'Blockquote Link - Color', 'dslc_string' ),
1880
+ 'id' => 'css_blockquote_link_color',
1881
+ 'std' => '',
1882
+ 'type' => 'color',
1883
+ 'refresh_on_change' => false,
1884
+ 'affect_on_change_el' => '.dslc-text-module-content blockquote a',
1885
+ 'affect_on_change_rule' => 'color',
1886
+ 'section' => 'styling',
1887
+ 'tab' => __( 'links', 'dslc_string' ),
1888
+ ),
1889
+ array(
1890
+ 'label' => __( 'Blockquote Link - Hover Color', 'dslc_string' ),
1891
+ 'id' => 'css_blockquote_link_color_hover',
1892
+ 'std' => '',
1893
+ 'type' => 'color',
1894
+ 'refresh_on_change' => false,
1895
+ 'affect_on_change_el' => '.dslc-text-module-content blockquote a:hover',
1896
+ 'affect_on_change_rule' => 'color',
1897
+ 'section' => 'styling',
1898
+ 'tab' => __( 'links', 'dslc_string' ),
1899
+ ),
1900
 
1901
  /**
1902
  * Lists
2299
  'std' => '#fff',
2300
  'type' => 'color',
2301
  'refresh_on_change' => false,
2302
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2303
  'affect_on_change_rule' => 'background-color',
2304
  'section' => 'styling',
2305
  'tab' => __( 'inputs', 'dslc_string' ),
2310
  'std' => '#ddd',
2311
  'type' => 'color',
2312
  'refresh_on_change' => false,
2313
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2314
  'affect_on_change_rule' => 'border-color',
2315
  'section' => 'styling',
2316
  'tab' => __( 'inputs', 'dslc_string' ),
2321
  'std' => '1',
2322
  'type' => 'slider',
2323
  'refresh_on_change' => false,
2324
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2325
  'affect_on_change_rule' => 'border-width',
2326
  'section' => 'styling',
2327
  'ext' => 'px',
2351
  ),
2352
  ),
2353
  'refresh_on_change' => false,
2354
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2355
  'affect_on_change_rule' => 'border-style',
2356
  'section' => 'styling',
2357
  'tab' => __( 'inputs', 'dslc_string' ),
2362
  'std' => '0',
2363
  'type' => 'slider',
2364
  'refresh_on_change' => false,
2365
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2366
  'affect_on_change_rule' => 'border-radius',
2367
  'section' => 'styling',
2368
  'ext' => 'px',
2374
  'std' => '#4d4d4d',
2375
  'type' => 'color',
2376
  'refresh_on_change' => false,
2377
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2378
  'affect_on_change_rule' => 'color',
2379
  'section' => 'styling',
2380
  'tab' => __( 'inputs', 'dslc_string' ),
2385
  'std' => '13',
2386
  'type' => 'slider',
2387
  'refresh_on_change' => false,
2388
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2389
  'affect_on_change_rule' => 'font-size',
2390
  'section' => 'styling',
2391
  'tab' => __( 'inputs', 'dslc_string' ),
2397
  'std' => '500',
2398
  'type' => 'slider',
2399
  'refresh_on_change' => false,
2400
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2401
  'affect_on_change_rule' => 'font-weight',
2402
  'section' => 'styling',
2403
  'tab' => __( 'inputs', 'dslc_string' ),
2412
  'std' => 'Open Sans',
2413
  'type' => 'font',
2414
  'refresh_on_change' => false,
2415
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2416
  'affect_on_change_rule' => 'font-family',
2417
  'section' => 'styling',
2418
  'tab' => __( 'inputs', 'dslc_string' ),
2435
  'std' => '15',
2436
  'type' => 'slider',
2437
  'refresh_on_change' => false,
2438
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2439
  'affect_on_change_rule' => 'margin-bottom',
2440
  'section' => 'styling',
2441
  'ext' => 'px',
2447
  'std' => '10',
2448
  'type' => 'slider',
2449
  'refresh_on_change' => false,
2450
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2451
  'affect_on_change_rule' => 'padding-top,padding-bottom',
2452
  'section' => 'styling',
2453
  'ext' => 'px',
2459
  'std' => '15',
2460
  'type' => 'slider',
2461
  'refresh_on_change' => false,
2462
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2463
  'affect_on_change_rule' => 'padding-left,padding-right',
2464
  'section' => 'styling',
2465
  'ext' => 'px',
2471
  */
2472
 
2473
  array(
2474
+ 'label' => __( 'BG Color', 'dslc_string' ),
2475
  'id' => 'css_blockquote_bg_color',
2476
  'std' => '',
2477
  'type' => 'color',
modules/tp-content/module.php CHANGED
@@ -63,7 +63,7 @@ class DSLC_TP_Content extends DSLC_Module {
63
  'section' => 'styling',
64
  ),
65
  array(
66
- 'label' => __( ' BG Color', 'dslc_string' ),
67
  'id' => 'css_main_bg_color',
68
  'std' => '',
69
  'type' => 'color',
@@ -296,6 +296,16 @@ class DSLC_TP_Content extends DSLC_Module {
296
  'section' => 'styling',
297
  'ext' => 'px',
298
  ),
 
 
 
 
 
 
 
 
 
 
299
 
300
  /**
301
  * Content
@@ -412,7 +422,7 @@ class DSLC_TP_Content extends DSLC_Module {
412
  */
413
 
414
  array(
415
- 'label' => __( ' BG Color', 'dslc_string' ),
416
  'id' => 'css_h1_bg_color',
417
  'std' => '',
418
  'type' => 'color',
@@ -633,7 +643,7 @@ class DSLC_TP_Content extends DSLC_Module {
633
  */
634
 
635
  array(
636
- 'label' => __( ' BG Color', 'dslc_string' ),
637
  'id' => 'css_h2_bg_color',
638
  'std' => '',
639
  'type' => 'color',
@@ -854,7 +864,7 @@ class DSLC_TP_Content extends DSLC_Module {
854
  */
855
 
856
  array(
857
- 'label' => __( ' BG Color', 'dslc_string' ),
858
  'id' => 'css_h3_bg_color',
859
  'std' => '',
860
  'type' => 'color',
@@ -1075,7 +1085,7 @@ class DSLC_TP_Content extends DSLC_Module {
1075
  */
1076
 
1077
  array(
1078
- 'label' => __( ' BG Color', 'dslc_string' ),
1079
  'id' => 'css_h4_bg_color',
1080
  'std' => '',
1081
  'type' => 'color',
@@ -1296,7 +1306,7 @@ class DSLC_TP_Content extends DSLC_Module {
1296
  */
1297
 
1298
  array(
1299
- 'label' => __( ' BG Color', 'dslc_string' ),
1300
  'id' => 'css_h5_bg_color',
1301
  'std' => '',
1302
  'type' => 'color',
@@ -1517,7 +1527,7 @@ class DSLC_TP_Content extends DSLC_Module {
1517
  */
1518
 
1519
  array(
1520
- 'label' => __( ' BG Color', 'dslc_string' ),
1521
  'id' => 'css_h6_bg_color',
1522
  'std' => '',
1523
  'type' => 'color',
@@ -1759,6 +1769,28 @@ class DSLC_TP_Content extends DSLC_Module {
1759
  'section' => 'styling',
1760
  'tab' => __( 'links', 'dslc_string' ),
1761
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1762
 
1763
  /**
1764
  * Lists
@@ -2161,7 +2193,7 @@ class DSLC_TP_Content extends DSLC_Module {
2161
  'std' => '#fff',
2162
  'type' => 'color',
2163
  'refresh_on_change' => false,
2164
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2165
  'affect_on_change_rule' => 'background-color',
2166
  'section' => 'styling',
2167
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2172,7 +2204,7 @@ class DSLC_TP_Content extends DSLC_Module {
2172
  'std' => '#ddd',
2173
  'type' => 'color',
2174
  'refresh_on_change' => false,
2175
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2176
  'affect_on_change_rule' => 'border-color',
2177
  'section' => 'styling',
2178
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2183,7 +2215,7 @@ class DSLC_TP_Content extends DSLC_Module {
2183
  'std' => '1',
2184
  'type' => 'slider',
2185
  'refresh_on_change' => false,
2186
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2187
  'affect_on_change_rule' => 'border-width',
2188
  'section' => 'styling',
2189
  'ext' => 'px',
@@ -2213,7 +2245,7 @@ class DSLC_TP_Content extends DSLC_Module {
2213
  ),
2214
  ),
2215
  'refresh_on_change' => false,
2216
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2217
  'affect_on_change_rule' => 'border-style',
2218
  'section' => 'styling',
2219
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2224,7 +2256,7 @@ class DSLC_TP_Content extends DSLC_Module {
2224
  'std' => '0',
2225
  'type' => 'slider',
2226
  'refresh_on_change' => false,
2227
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2228
  'affect_on_change_rule' => 'border-radius',
2229
  'section' => 'styling',
2230
  'ext' => 'px',
@@ -2236,7 +2268,7 @@ class DSLC_TP_Content extends DSLC_Module {
2236
  'std' => '#4d4d4d',
2237
  'type' => 'color',
2238
  'refresh_on_change' => false,
2239
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2240
  'affect_on_change_rule' => 'color',
2241
  'section' => 'styling',
2242
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2247,7 +2279,7 @@ class DSLC_TP_Content extends DSLC_Module {
2247
  'std' => '13',
2248
  'type' => 'slider',
2249
  'refresh_on_change' => false,
2250
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2251
  'affect_on_change_rule' => 'font-size',
2252
  'section' => 'styling',
2253
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2259,7 +2291,7 @@ class DSLC_TP_Content extends DSLC_Module {
2259
  'std' => '500',
2260
  'type' => 'slider',
2261
  'refresh_on_change' => false,
2262
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2263
  'affect_on_change_rule' => 'font-weight',
2264
  'section' => 'styling',
2265
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2274,7 +2306,7 @@ class DSLC_TP_Content extends DSLC_Module {
2274
  'std' => 'Open Sans',
2275
  'type' => 'font',
2276
  'refresh_on_change' => false,
2277
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2278
  'affect_on_change_rule' => 'font-family',
2279
  'section' => 'styling',
2280
  'tab' => __( 'inputs', 'dslc_string' ),
@@ -2297,7 +2329,7 @@ class DSLC_TP_Content extends DSLC_Module {
2297
  'std' => '15',
2298
  'type' => 'slider',
2299
  'refresh_on_change' => false,
2300
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2301
  'affect_on_change_rule' => 'margin-bottom',
2302
  'section' => 'styling',
2303
  'ext' => 'px',
@@ -2309,7 +2341,7 @@ class DSLC_TP_Content extends DSLC_Module {
2309
  'std' => '10',
2310
  'type' => 'slider',
2311
  'refresh_on_change' => false,
2312
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2313
  'affect_on_change_rule' => 'padding-top,padding-bottom',
2314
  'section' => 'styling',
2315
  'ext' => 'px',
@@ -2321,7 +2353,7 @@ class DSLC_TP_Content extends DSLC_Module {
2321
  'std' => '15',
2322
  'type' => 'slider',
2323
  'refresh_on_change' => false,
2324
- 'affect_on_change_el' => 'input[type=text],input[type=email],textarea',
2325
  'affect_on_change_rule' => 'padding-left,padding-right',
2326
  'section' => 'styling',
2327
  'ext' => 'px',
@@ -2531,7 +2563,7 @@ class DSLC_TP_Content extends DSLC_Module {
2531
  */
2532
 
2533
  array(
2534
- 'label' => __( ' BG Color', 'dslc_string' ),
2535
  'id' => 'css_blockquote_bg_color',
2536
  'std' => '',
2537
  'type' => 'color',
@@ -3874,10 +3906,19 @@ class DSLC_TP_Content extends DSLC_Module {
3874
  }
3875
 
3876
  ?><div class="dslc-tp-content"><?php
3877
- if ( is_singular() && get_post_type( $post_id ) != 'dslc_templates' )
 
 
 
 
 
3878
  the_content();
3879
- else
3880
  echo $content;
 
 
 
 
3881
  ?></div><?php
3882
 
3883
  /* Module output ends here */
63
  'section' => 'styling',
64
  ),
65
  array(
66
+ 'label' => __( 'BG Color', 'dslc_string' ),
67
  'id' => 'css_main_bg_color',
68
  'std' => '',
69
  'type' => 'color',
296
  'section' => 'styling',
297
  'ext' => 'px',
298
  ),
299
+ array(
300
+ 'label' => __( 'Box Shadow', 'dslc_string' ),
301
+ 'id' => 'css_main_box_shadow',
302
+ 'std' => '',
303
+ 'type' => 'box_shadow',
304
+ 'refresh_on_change' => false,
305
+ 'affect_on_change_el' => '.dslc-tp-content',
306
+ 'affect_on_change_rule' => 'box-shadow',
307
+ 'section' => 'styling',
308
+ ),
309
 
310
  /**
311
  * Content
422
  */
423
 
424
  array(
425
+ 'label' => __( 'BG Color', 'dslc_string' ),
426
  'id' => 'css_h1_bg_color',
427
  'std' => '',
428
  'type' => 'color',
643
  */
644
 
645
  array(
646
+ 'label' => __( 'BG Color', 'dslc_string' ),
647
  'id' => 'css_h2_bg_color',
648
  'std' => '',
649
  'type' => 'color',
864
  */
865
 
866
  array(
867
+ 'label' => __( 'BG Color', 'dslc_string' ),
868
  'id' => 'css_h3_bg_color',
869
  'std' => '',
870
  'type' => 'color',
1085
  */
1086
 
1087
  array(
1088
+ 'label' => __( 'BG Color', 'dslc_string' ),
1089
  'id' => 'css_h4_bg_color',
1090
  'std' => '',
1091
  'type' => 'color',
1306
  */
1307
 
1308
  array(
1309
+ 'label' => __( 'BG Color', 'dslc_string' ),
1310
  'id' => 'css_h5_bg_color',
1311
  'std' => '',
1312
  'type' => 'color',
1527
  */
1528
 
1529
  array(
1530
+ 'label' => __( 'BG Color', 'dslc_string' ),
1531
  'id' => 'css_h6_bg_color',
1532
  'std' => '',
1533
  'type' => 'color',
1769
  'section' => 'styling',
1770
  'tab' => __( 'links', 'dslc_string' ),
1771
  ),
1772
+ array(
1773
+ 'label' => __( 'Blockquote Link - Color', 'dslc_string' ),
1774
+ 'id' => 'css_blockquote_link_color',
1775
+ 'std' => '',
1776
+ 'type' => 'color',
1777
+ 'refresh_on_change' => false,
1778
+ 'affect_on_change_el' => '.dslc-tp-content blockquote a',
1779
+ 'affect_on_change_rule' => 'color',
1780
+ 'section' => 'styling',
1781
+ 'tab' => __( 'links', 'dslc_string' ),
1782
+ ),
1783
+ array(
1784
+ 'label' => __( 'Blockquote Link - Hover Color', 'dslc_string' ),
1785
+ 'id' => 'css_blockquote_link_color_hover',
1786
+ 'std' => '',
1787
+ 'type' => 'color',
1788
+ 'refresh_on_change' => false,
1789
+ 'affect_on_change_el' => '.dslc-tp-content blockquote a:hover',
1790
+ 'affect_on_change_rule' => 'color',
1791
+ 'section' => 'styling',
1792
+ 'tab' => __( 'links', 'dslc_string' ),
1793
+ ),
1794
 
1795
  /**
1796
  * Lists
2193
  'std' => '#fff',
2194
  'type' => 'color',
2195
  'refresh_on_change' => false,
2196
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2197
  'affect_on_change_rule' => 'background-color',
2198
  'section' => 'styling',
2199
  'tab' => __( 'inputs', 'dslc_string' ),
2204
  'std' => '#ddd',
2205
  'type' => 'color',
2206
  'refresh_on_change' => false,
2207
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2208
  'affect_on_change_rule' => 'border-color',
2209
  'section' => 'styling',
2210
  'tab' => __( 'inputs', 'dslc_string' ),
2215
  'std' => '1',
2216
  'type' => 'slider',
2217
  'refresh_on_change' => false,
2218
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2219
  'affect_on_change_rule' => 'border-width',
2220
  'section' => 'styling',
2221
  'ext' => 'px',
2245
  ),
2246
  ),
2247
  'refresh_on_change' => false,
2248
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2249
  'affect_on_change_rule' => 'border-style',
2250
  'section' => 'styling',
2251
  'tab' => __( 'inputs', 'dslc_string' ),
2256
  'std' => '0',
2257
  'type' => 'slider',
2258
  'refresh_on_change' => false,
2259
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2260
  'affect_on_change_rule' => 'border-radius',
2261
  'section' => 'styling',
2262
  'ext' => 'px',
2268
  'std' => '#4d4d4d',
2269
  'type' => 'color',
2270
  'refresh_on_change' => false,
2271
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2272
  'affect_on_change_rule' => 'color',
2273
  'section' => 'styling',
2274
  'tab' => __( 'inputs', 'dslc_string' ),
2279
  'std' => '13',
2280
  'type' => 'slider',
2281
  'refresh_on_change' => false,
2282
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2283
  'affect_on_change_rule' => 'font-size',
2284
  'section' => 'styling',
2285
  'tab' => __( 'inputs', 'dslc_string' ),
2291
  'std' => '500',
2292
  'type' => 'slider',
2293
  'refresh_on_change' => false,
2294
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2295
  'affect_on_change_rule' => 'font-weight',
2296
  'section' => 'styling',
2297
  'tab' => __( 'inputs', 'dslc_string' ),
2306
  'std' => 'Open Sans',
2307
  'type' => 'font',
2308
  'refresh_on_change' => false,
2309
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2310
  'affect_on_change_rule' => 'font-family',
2311
  'section' => 'styling',
2312
  'tab' => __( 'inputs', 'dslc_string' ),
2329
  'std' => '15',
2330
  'type' => 'slider',
2331
  'refresh_on_change' => false,
2332
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2333
  'affect_on_change_rule' => 'margin-bottom',
2334
  'section' => 'styling',
2335
  'ext' => 'px',
2341
  'std' => '10',
2342
  'type' => 'slider',
2343
  'refresh_on_change' => false,
2344
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2345
  'affect_on_change_rule' => 'padding-top,padding-bottom',
2346
  'section' => 'styling',
2347
  'ext' => 'px',
2353
  'std' => '15',
2354
  'type' => 'slider',
2355
  'refresh_on_change' => false,
2356
+ 'affect_on_change_el' => 'input[type=text],input[type=password],input[type=number],input[type=email],textarea,select',
2357
  'affect_on_change_rule' => 'padding-left,padding-right',
2358
  'section' => 'styling',
2359
  'ext' => 'px',
2563
  */
2564
 
2565
  array(
2566
+ 'label' => __( 'BG Color', 'dslc_string' ),
2567
  'id' => 'css_blockquote_bg_color',
2568
  'std' => '',
2569
  'type' => 'color',
3906
  }
3907
 
3908
  ?><div class="dslc-tp-content"><?php
3909
+
3910
+ // Output before content
3911
+ do_action( 'dslc_content_module_before_content', $post_id, $options );
3912
+
3913
+ // Output content
3914
+ if ( is_singular() && get_post_type( $post_id ) != 'dslc_templates' ) {
3915
  the_content();
3916
+ } else {
3917
  echo $content;
3918
+ }
3919
+
3920
+ do_action( 'dslc_content_module_after_content', $post_id, $options );
3921
+
3922
  ?></div><?php
3923
 
3924
  /* Module output ends here */
modules/tp-gallery-slider/module.php CHANGED
@@ -119,7 +119,7 @@ class DSLC_TP_Gallery_Slider extends DSLC_Module {
119
  */
120
 
121
  array(
122
- 'label' => __( ' BG Color', 'dslc_string' ),
123
  'id' => 'css_bg_color',
124
  'std' => '',
125
  'type' => 'color',
@@ -252,7 +252,7 @@ class DSLC_TP_Gallery_Slider extends DSLC_Module {
252
  */
253
 
254
  array(
255
- 'label' => __( ' BG Color', 'dslc_string' ),
256
  'id' => 'css_slider_bg_color',
257
  'std' => '',
258
  'type' => 'color',
@@ -368,7 +368,7 @@ class DSLC_TP_Gallery_Slider extends DSLC_Module {
368
  */
369
 
370
  array(
371
- 'label' => __( ' BG Color', 'dslc_string' ),
372
  'id' => 'css_slider_item_bg_color',
373
  'std' => '',
374
  'type' => 'color',
119
  */
120
 
121
  array(
122
+ 'label' => __( 'BG Color', 'dslc_string' ),
123
  'id' => 'css_bg_color',
124
  'std' => '',
125
  'type' => 'color',
252
  */
253
 
254
  array(
255
+ 'label' => __( 'BG Color', 'dslc_string' ),
256
  'id' => 'css_slider_bg_color',
257
  'std' => '',
258
  'type' => 'color',
368
  */
369
 
370
  array(
371
+ 'label' => __( 'BG Color', 'dslc_string' ),
372
  'id' => 'css_slider_item_bg_color',
373
  'std' => '',
374
  'type' => 'color',
modules/tp-meta/module.php CHANGED
@@ -113,7 +113,7 @@ class DSLC_TP_Meta extends DSLC_Module {
113
  ),
114
 
115
  array(
116
- 'label' => __( ' BG Color', 'dslc_string' ),
117
  'id' => 'css_main_bg_color',
118
  'std' => '',
119
  'type' => 'color',
113
  ),
114
 
115
  array(
116
+ 'label' => __( 'BG Color', 'dslc_string' ),
117
  'id' => 'css_main_bg_color',
118
  'std' => '',
119
  'type' => 'color',
modules/tp-project-slider/module.php CHANGED
@@ -119,7 +119,7 @@ class DSLC_TP_Project_Slider extends DSLC_Module {
119
  */
120
 
121
  array(
122
- 'label' => __( ' BG Color', 'dslc_string' ),
123
  'id' => 'css_bg_color',
124
  'std' => '',
125
  'type' => 'color',
@@ -252,7 +252,7 @@ class DSLC_TP_Project_Slider extends DSLC_Module {
252
  */
253
 
254
  array(
255
- 'label' => __( ' BG Color', 'dslc_string' ),
256
  'id' => 'css_slider_bg_color',
257
  'std' => '',
258
  'type' => 'color',
@@ -368,7 +368,7 @@ class DSLC_TP_Project_Slider extends DSLC_Module {
368
  */
369
 
370
  array(
371
- 'label' => __( ' BG Color', 'dslc_string' ),
372
  'id' => 'css_slider_item_bg_color',
373
  'std' => '',
374
  'type' => 'color',
119
  */
120
 
121
  array(
122
+ 'label' => __( 'BG Color', 'dslc_string' ),
123
  'id' => 'css_bg_color',
124
  'std' => '',
125
  'type' => 'color',
252
  */
253
 
254
  array(
255
+ 'label' => __( 'BG Color', 'dslc_string' ),
256
  'id' => 'css_slider_bg_color',
257
  'std' => '',
258
  'type' => 'color',
368
  */
369
 
370
  array(
371
+ 'label' => __( 'BG Color', 'dslc_string' ),
372
  'id' => 'css_slider_item_bg_color',
373
  'std' => '',
374
  'type' => 'color',
modules/tp-thumbnail/module.php CHANGED
@@ -51,7 +51,7 @@ class DSLC_TP_Thumbnail extends DSLC_Module {
51
  'section' => 'styling',
52
  ),
53
  array(
54
- 'label' => __( ' BG Color', 'dslc_string' ),
55
  'id' => 'css_bg_color',
56
  'std' => '',
57
  'type' => 'color',
51
  'section' => 'styling',
52
  ),
53
  array(
54
+ 'label' => __( 'BG Color', 'dslc_string' ),
55
  'id' => 'css_bg_color',
56
  'std' => '',
57
  'type' => 'color',
modules/woocommerce/module.php CHANGED
@@ -2107,6 +2107,16 @@ class DSLC_WooCommerce_Products extends DSLC_Module {
2107
  else
2108
  $dslc_is_admin = false;
2109
 
 
 
 
 
 
 
 
 
 
 
2110
  $this->module_start( $options );
2111
 
2112
  if ( ! isset( $options['price_pos'] ) )
@@ -2555,6 +2565,8 @@ class DSLC_WooCommerce_Products extends DSLC_Module {
2555
 
2556
  </div><!-- .dslc-product-main-inner -->
2557
 
 
 
2558
  </div><!-- .dslc-product-main -->
2559
 
2560
  <?php endif; ?>
2107
  else
2108
  $dslc_is_admin = false;
2109
 
2110
+ // Fix slashes on apostrophes
2111
+ if ( isset( $options['addtocart_text'] ) ) {
2112
+ $options['addtocart_text'] = stripslashes( $options['addtocart_text'] );
2113
+ }
2114
+
2115
+ // Fix slashes on apostrophes
2116
+ if ( isset( $options['details_text'] ) ) {
2117
+ $options['details_text'] = stripslashes( $options['details_text'] );
2118
+ }
2119
+
2120
  $this->module_start( $options );
2121
 
2122
  if ( ! isset( $options['price_pos'] ) )
2565
 
2566
  </div><!-- .dslc-product-main-inner -->
2567
 
2568
+ <a href="<?php the_permalink(); ?>" class="dslc-post-main-inner-link-cover"></a>
2569
+
2570
  </div><!-- .dslc-product-main -->
2571
 
2572
  <?php endif; ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: LiveComposer
3
  Tags: page builder, page, modules, front-end, builder, live, composer
4
  Requires at least: 3.9
5
  Tested up to: 4.3.1
6
- Stable tag: 1.0.1
7
  License: GPLv3
8
 
9
  Live Composer is a front-end WordPress page builder plugin. But with the free "blank" theme you can build a whole website.
@@ -45,20 +45,13 @@ In most of the cases this is because the homepage is not a real WordPress page,
45
 
46
  == Changelog ==
47
 
 
 
 
 
48
  = 1.0.1 - September 15th 2015 =
49
 
50
- * Improvement: Social Module - Yelp added
51
- * Improvement: Option to change the position of the "activate editor" button ( left or right )
52
- * Improvement: Testimonial Module - Option to change line height of "Author Position" element added
53
- * Improvement: Loading animation added when adding a row ( while LC fetches a new row and outputs it )
54
- * Fix: Issue with CSS generation including "url()" as a background-image value and causing a slower page load
55
- * Fix: Masonry was not being initiated when a row is imported
56
- * Fix: Tutorial chapter one was broken, getting stuck at changing the padding value
57
- * Fix: Info Box Module - There was unwanted spacing below the icon
58
- * Fix: Image options causing vertical scrollbar to show in the options area
59
- * Fix: Header was going behind the WordPress admin bar ( the vertical bar at the top )
60
- * Fix: PHP undefined notice error when a module does not utilize presets functionality
61
- * Fix: Styling issue when a module option is an input field with the type number
62
 
63
  = 1.0 - September 10th 2015 =
64
 
3
  Tags: page builder, page, modules, front-end, builder, live, composer
4
  Requires at least: 3.9
5
  Tested up to: 4.3.1
6
+ Stable tag: 1.0.2
7
  License: GPLv3
8
 
9
  Live Composer is a front-end WordPress page builder plugin. But with the free "blank" theme you can build a whole website.
45
 
46
  == Changelog ==
47
 
48
+ = 1.0.2 - September 30th 2015 =
49
+
50
+ [Check out the blog post about 1.0.2 release](http://livecomposerplugin.com/blog/version-1-0-2-released/)
51
+
52
  = 1.0.1 - September 15th 2015 =
53
 
54
+ [Check out the blog post about 1.0.1 release](http://livecomposerplugin.com/blog/version-1-0-1-released/)
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  = 1.0 - September 10th 2015 =
57