SiteOrigin Widgets Bundle - Version 1.17.0

Version Description

  • 22 May 2020 ==
  • Simple Masonry: Added a preloader and related settings.
  • Post Carousel: Migrated to Slick Carousel.
  • Post Carousel: Added RTL support.
  • Icon: Added Title field.
  • Minor admin interface styling fixes.
  • Price Table: Added title for the feature hover text.
  • Testimonials: Added Equalize testimonial height setting.
  • Testimonials: Fixed user image alignment.
  • Switched to Wikimedia's fork of less.php.
  • Added error suppression for external Less library.

=

Download this release

Release Info

Developer gpriday
Plugin Icon 128x128 SiteOrigin Widgets Bundle
Version 1.17.0
Comparing to
See all releases

Code changes from version 1.16.1 to 1.17.0

Files changed (40) hide show
  1. base/base.php +5 -2
  2. base/css/admin.css +1 -1
  3. base/inc/fields/css/media-field.css +1 -1
  4. base/inc/lessc.inc.php +0 -7
  5. base/inc/lib/Less/Exception/Chunk.php +203 -203
  6. base/inc/lib/Less/Parser.php +2 -2
  7. base/inc/lib/Less/SourceMap/Base64VLQ.php +1 -6
  8. base/inc/lib/Less/SourceMap/Generator.php +2 -2
  9. base/inc/lib/Less/Tree/Dimension.php +4 -8
  10. base/inc/lib/Less/Tree/Directive.php +1 -1
  11. base/inc/lib/Less/Tree/Extend.php +8 -3
  12. base/inc/lib/Less/Tree/Import.php +6 -3
  13. base/inc/lib/Less/Tree/Selector.php +5 -0
  14. base/inc/lib/Less/Version.php +2 -2
  15. base/inc/lib/Less/Visitor/processExtends.php +6 -4
  16. base/siteorigin-widget.class.php +1 -1
  17. css/lib/slick.css +1 -0
  18. js/lib/slick.js +3011 -0
  19. js/lib/slick.min.js +1 -0
  20. lang/so-widgets-bundle.pot +42 -14
  21. readme.txt +15 -3
  22. so-widgets-bundle.php +2 -2
  23. widgets/icon/icon.php +7 -0
  24. widgets/icon/tpl/default.php +1 -1
  25. widgets/post-carousel/css/style.css +1 -1
  26. widgets/post-carousel/js/carousel.js +105 -166
  27. widgets/post-carousel/js/carousel.min.js +1 -1
  28. widgets/post-carousel/post-carousel.php +31 -8
  29. widgets/post-carousel/styles/default.less +4 -4
  30. widgets/post-carousel/tpl/base.php +9 -6
  31. widgets/post-carousel/tpl/carousel-post-loop.php +2 -2
  32. widgets/price-table/tpl/atom.php +2 -2
  33. widgets/simple-masonry/js/simple-masonry.js +8 -1
  34. widgets/simple-masonry/js/simple-masonry.min.js +1 -1
  35. widgets/simple-masonry/simple-masonry.php +36 -0
  36. widgets/simple-masonry/styles/default.less +51 -1
  37. widgets/simple-masonry/tpl/default.php +4 -1
  38. widgets/testimonial/css/style.css +1 -1
  39. widgets/testimonial/styles/default.less +21 -9
  40. widgets/testimonial/testimonial.php +6 -0
base/base.php CHANGED
@@ -64,10 +64,11 @@ add_action('wp_ajax_siteorigin_widgets_get_icons', 'siteorigin_widget_get_icon_l
64
/**
65
* @param $icon_value
66
* @param bool $icon_styles
67
*
68
* @return bool|string
69
*/
70
- function siteorigin_widget_get_icon($icon_value, $icon_styles = false) {
71
if( empty( $icon_value ) ) return false;
72
73
static $widget_icon_families;
@@ -104,7 +105,9 @@ function siteorigin_widget_get_icon($icon_value, $icon_styles = false) {
104
} else if ( is_string( $icon_data ) ) {
105
$unicode = $icon_data;
106
}
107
- return '<span class="' . esc_attr( $family_style ) . '" data-sow-icon="' . $unicode . '" ' . ( ! empty( $icon_styles ) ? 'style="' . implode( '; ', $icon_styles ) . '"' : '' ) . '></span>';
108
}
109
else {
110
return false;
64
/**
65
* @param $icon_value
66
* @param bool $icon_styles
67
+ * @param string $title
68
*
69
* @return bool|string
70
*/
71
+ function siteorigin_widget_get_icon($icon_value, $icon_styles = false, $title = null) {
72
if( empty( $icon_value ) ) return false;
73
74
static $widget_icon_families;
105
} else if ( is_string( $icon_data ) ) {
106
$unicode = $icon_data;
107
}
108
+ return '<span class="' . esc_attr( $family_style ) . '" data-sow-icon="' . $unicode . '"
109
+ ' . ( ! empty( $icon_styles ) ? 'style="' . implode( '; ', $icon_styles ) . '"' : '' ) . ' '.
110
+ ( ! empty( $title ) ? 'title="' . esc_attr( $title ) .'"' : '' ) .'></span>';
111
}
112
else {
113
return false;
base/css/admin.css CHANGED
@@ -1 +1 @@
1
- .siteorigin-widget-form-no-styles{display:none !important}.siteorigin-widget-teaser{padding:10px 12px;border:1px solid #5fc133;background:#edfbe7;color:#394a3a;margin-bottom:20px}.siteorigin-widget-teaser .dashicons{float:right;margin:1px 2px 6px 10px;cursor:pointer;font-size:18px;width:18px;height:18px}.siteorigin-widget-form-notification{padding:8px 12px;border:1px solid #a4cadd;background-color:#CDE2EC;margin-bottom:20px}.siteorigin-widget-form-notification>span{line-height:22px}.siteorigin-widget-form-notification>a.button.button-small{margin-left:10px;height:22px}.siteorigin-widget-form{display:block !important;margin:15px 0}.siteorigin-widget-form>div:first-child{margin-top:0}.siteorigin-widget-form a{box-shadow:none}.siteorigin-widget-form.siteorigin-widget-form-main{min-width:600px}.siteorigin-widget-form .siteorigin-widget-field{margin:1em 0}.siteorigin-widget-form .siteorigin-widget-field>label{display:block;font-size:13px;font-weight:400;margin-bottom:3px}.siteorigin-widget-form .siteorigin-widget-field>label.siteorigin-widget-field-label{font-weight:bold}.siteorigin-widget-form .siteorigin-widget-field>label.so-checkbox-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.siteorigin-widget-form .siteorigin-widget-field .siteorigin-widget-description{font-size:.9em;margin-top:.2em;color:#999;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-separator{margin:1.75em 0}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-optional .field-optional{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#54a242;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-required .field-required{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#F02311;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field input[type="text"]{width:100%}.siteorigin-widget-form .siteorigin-widget-field input.siteorigin-widget-input-color{width:auto}.siteorigin-widget-form .siteorigin-widget-field .wp-picker-clear{margin-left:6px;min-height:30px}.siteorigin-widget-form .siteorigin-widget-field textarea.siteorigin-widget-code-input{font-family:"Courier New",Courier,monospace}.siteorigin-widget-form .siteorigin-widget-field select{min-width:150px}.siteorigin-widget-form .siteorigin-widget-field select[multiple]{max-height:83px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-wrapper{margin:10px 0;border:1px solid #E0E0E0;padding:12px 15px;background:#F4F4F4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;max-width:500px;display:block;margin-left:55px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-value{display:block;float:left;margin-top:0;border:1px solid #E0E0E0;padding:11px 0;background:#F4F4F4;font-weight:bold;color:#666;width:45px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-value-slider{position:relative;height:5px;background:#A0A0A0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .ui-slider-handle{cursor:move;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #a4a3a8;z-index:10;position:absolute;width:18px;height:18px;margin-top:-7px;margin-left:-9px;background:#F9F9F9;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;top:0;left:0;-webkit-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1)}.siteorigin-widget-form .siteorigin-widget-field-type-slider input[type="number"]{display:none}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;position:relative}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{font-size:13px;margin:0;padding:0 !important}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{width:14px;height:14px;position:absolute;top:50%;margin-top:-7px;cursor:pointer;font-size:14px;line-height:14px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{font-family:dashicons;vertical-align:middle;color:#999999}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand{right:48px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before{content:"\f140"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy{right:28px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before{content:"\f105"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{right:12px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{content:'\f158'}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover{background:#ff0000}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover:before{color:#FFFFFF}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#FCFCFC;border:1px solid #EEEEEE;border-top:0;border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#FCFCFC;border-bottom:1px solid #EEEEEE}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{padding:10px;cursor:move;position:relative;background:#F6F6F6}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top h4{font-size:12px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item h4{font-size:15px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top:1px solid #EEEEEE;display:none;padding:1px 10px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{padding:7px 10px;background:#F0F0F0;border:1px dashed #D0D0D0;font-size:12px;line-height:1em;text-align:center;cursor:pointer}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#F4F4F4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#eaf2f6;border-color:#c9d0d4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#f6fdff;border-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#f8fdff;border-bottom-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{background:#f0f8fc}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{background:#eaf2f6;border-color:#c9d0d4;color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#edf5f9}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;display:block;margin-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper>label{display:inline}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper:before{float:left;margin:3px 6px 0 0;display:block;width:14px;height:14px;font-size:14px;line-height:1;font-family:"dashicons";content:"\f132"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper.siteorigin-widget-section-visible:before{content:"\f460"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper span.sow-current-count{display:inline-block;border-radius:9px;background:#f92700;border:1px solid #da0900;line-height:14px;font-size:7px;width:17px;height:17px;text-align:center;vertical-align:middle;font-weight:bold;color:#FFFFFF;box-sizing:border-box;margin:1px 5px}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label,.siteorigin-widget-form .siteorigin-widget-field-type-section>label{background:#F0F0F0;border:1px solid #D0D0D0;line-height:1.4;padding:10px;display:block;margin-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label:before{float:left;margin:3px 6px 0 0;display:block;width:14px;height:14px;font-size:14px;line-height:1;font-family:"dashicons";content:"\f132"}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label.siteorigin-widget-section-visible:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label.siteorigin-widget-section-visible:before{content:"\f460"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .siteorigin-widget-section,.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section{padding:1px 10px;background:#FCFCFC;border:1px solid #EEEEEE;border-top:0}.siteorigin-widget-form .siteorigin-widget-field-type-posts .siteorigin-widget-section.siteorigin-widget-section-hide,.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section.siteorigin-widget-section-hide,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section.siteorigin-widget-section-hide{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete,.siteorigin-widget-form .siteorigin-widget-field-type-link{position:relative}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector{padding:20px;display:none;position:absolute;top:110%;width:360px;z-index:10;border:1px solid #c0c0c0;background:#F6F6F6;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .content-text-search,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .content-text-search{width:100%;margin-bottom:15px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts{margin:0;padding:0;background:#fff;max-height:300px;overflow-y:scroll;border:1px solid #e4e4e4}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li{cursor:pointer;padding:5px 10px;color:#32373c;border-bottom:1px solid #f1f1f1;margin:0;font-size:.95em}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li.selected{background:#e1edfa}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:hover{background:#eaf2fa}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li span,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li span,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li span,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li span{font-size:.9em;display:inline-block;float:right;color:#999;margin-left:10px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{min-height:40px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading li{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .buttons,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons{margin-top:15px;text-align:right}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .buttons a,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons a{display:inline-block}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .url-input-wrapper,.siteorigin-widget-form .siteorigin-widget-field-type-link .url-input-wrapper{display:block;margin-right:130px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .select-content-button,.siteorigin-widget-form .siteorigin-widget-field-type-link .select-content-button{float:right;line-height:28px;min-height:30px;width:120px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector{right:0}.siteorigin-widget-form .siteorigin-widget-description{clear:both}.siteorigin-widget-preview{display:block !important}.siteorigin-widget-help-link{display:block;margin:1em 0}.so-widgets-dialog .so-widgets-dialog-overlay{position:fixed;z-index:500000;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7)}.so-widgets-dialog .so-widgets-toolbar,.so-widgets-dialog .so-widgets-dialog-frame{position:fixed;z-index:500001;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.so-widgets-dialog .so-widgets-toolbar{left:30px;right:30px;top:30px;height:50px;background:#fafafa;border-bottom:1px solid #D8D8D8}.so-widgets-dialog .so-widgets-toolbar h3{margin:15px 0 15px 20px}.so-widgets-dialog .so-widgets-toolbar .close{position:absolute;box-sizing:border-box;width:50px;height:50px;display:block;cursor:pointer;top:0;right:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background:#fafafa;border-left:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8}.so-widgets-dialog .so-widgets-toolbar .close:hover{background:#e9e9e9}.so-widgets-dialog .so-widgets-toolbar .close:hover .so-dialog-icon{color:#333333}.so-widgets-dialog .so-widgets-toolbar .close .dashicons{position:absolute;top:50%;left:50%;text-decoration:none;width:21px;height:21px;margin-left:-11px;margin-top:-10px;font-size:21px;color:#666666;text-align:center}.so-widgets-dialog .so-widgets-dialog-frame{top:80px;left:30px;right:30px;bottom:30px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.so-widgets-dialog .so-widgets-dialog-frame{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.so-widgets-dialog .so-widgets-dialog-frame iframe{width:100%;height:100%}.widget-icon.so-widget-icon{background-size:cover;background-image:url("img/bundle-icon.png")}.widget-icon.so-widget-icon.so-block-editor-icon{width:20px;height:20px;display:inline-block}.block-editor .so-widget-placeholder{text-align:left}.block-editor .so-widget-placeholder>.components-placeholder__label{background:url("img/bundle-icon.png") no-repeat left;background-size:20px;padding-left:25px}.block-editor .so-widget-placeholder>.components-placeholder__fieldset{max-width:unset}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container{width:100%}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container .components-base-control__field select{max-width:unset}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container .siteorigin-widget-form.siteorigin-widget-form-main{min-width:unset}.block-editor .siteorigin-widget-form .siteorigin-widget-field{text-align:left}.block-editor .siteorigin-widget-form .siteorigin-widget-field input{padding:3px 5px}.block-editor .siteorigin-widget-form .siteorigin-widget-field input[type=checkbox]{background-color:#ffffff}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-autocomplete .select-content-button,.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-link .select-content-button{box-shadow:unset;font-size:13px;height:28px}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current{height:37px}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-tinymce .wp-switch-editor{box-sizing:content-box}.block-editor .so-widget-preview-container .so-widgets-spinner-container{text-align:center}.block-editor .so-widget-preview-container .so-widgets-spinner-container>span{display:inline-block}
1
+ .siteorigin-widget-form-no-styles{display:none !important}.siteorigin-widget-teaser{padding:10px 12px;border:1px solid #5fc133;background:#edfbe7;color:#394a3a;margin-bottom:20px}.siteorigin-widget-teaser .dashicons{float:right;margin:1px 2px 6px 10px;cursor:pointer;font-size:18px;width:18px;height:18px}.siteorigin-widget-form-notification{padding:8px 12px;border:1px solid #a4cadd;background-color:#CDE2EC;margin-bottom:20px}.siteorigin-widget-form-notification>span{line-height:22px}.siteorigin-widget-form-notification>a.button.button-small{margin-left:10px;height:22px}.siteorigin-widget-form{display:block !important;margin:15px 0}.siteorigin-widget-form>div:first-child{margin-top:0}.siteorigin-widget-form a{box-shadow:none}.siteorigin-widget-form.siteorigin-widget-form-main{min-width:600px}.siteorigin-widget-form .siteorigin-widget-field{margin:1em 0}.siteorigin-widget-form .siteorigin-widget-field>label{display:block;font-size:13px;font-weight:400;margin-bottom:3px}.siteorigin-widget-form .siteorigin-widget-field>label.siteorigin-widget-field-label{font-weight:bold}.siteorigin-widget-form .siteorigin-widget-field>label.so-checkbox-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.siteorigin-widget-form .siteorigin-widget-field .siteorigin-widget-description{font-size:.9em;margin-top:.2em;color:#999;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-separator{margin:1.75em 0}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-optional .field-optional{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#54a242;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-required .field-required{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#F02311;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field input[type="text"]{width:100%}.siteorigin-widget-form .siteorigin-widget-field input.siteorigin-widget-input-color{width:auto}.siteorigin-widget-form .siteorigin-widget-field .wp-picker-clear{margin-left:6px;min-height:30px}.siteorigin-widget-form .siteorigin-widget-field textarea.siteorigin-widget-code-input{font-family:"Courier New",Courier,monospace}.siteorigin-widget-form .siteorigin-widget-field select{min-width:150px}.siteorigin-widget-form .siteorigin-widget-field select[multiple]{max-height:83px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-wrapper{margin:10px 0;border:1px solid #E0E0E0;padding:12px 15px;background:#F4F4F4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;max-width:500px;display:block;margin-left:55px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-value{display:block;float:left;margin-top:0;border:1px solid #E0E0E0;padding:11px 0;background:#F4F4F4;font-weight:bold;color:#666;width:45px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-value-slider{position:relative;height:5px;background:#A0A0A0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .ui-slider-handle{cursor:move;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #a4a3a8;z-index:10;position:absolute;width:18px;height:18px;margin-top:-7px;margin-left:-9px;background:#F9F9F9;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;top:0;left:0;-webkit-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1)}.siteorigin-widget-form .siteorigin-widget-field-type-slider input[type="number"]{display:none}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;position:relative}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{font-size:13px;margin:0;padding:0 !important}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{width:14px;height:14px;position:absolute;top:50%;margin-top:-7px;cursor:pointer;font-size:14px;line-height:14px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{font-family:dashicons;color:#999999}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand{right:48px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before{content:"\f140"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy{right:28px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before{content:"\f105"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{right:12px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{content:'\f158'}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover{background:#ff0000}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover:before{color:#FFFFFF}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#FCFCFC;border:1px solid #EEEEEE;border-top:0;border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#FCFCFC;border-bottom:1px solid #EEEEEE}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{padding:10px;cursor:move;position:relative;background:#F6F6F6}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top h4{font-size:12px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item h4{font-size:15px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top:1px solid #EEEEEE;display:none;padding:1px 10px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{padding:7px 10px;background:#F0F0F0;border:1px dashed #D0D0D0;font-size:12px;line-height:1em;text-align:center;cursor:pointer}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#F4F4F4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#eaf2f6;border-color:#c9d0d4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#f6fdff;border-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#f8fdff;border-bottom-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{background:#f0f8fc}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{background:#eaf2f6;border-color:#c9d0d4;color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#edf5f9}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;display:block;margin-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper>label{display:inline}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper:before{float:left;margin:3px 6px 0 0;display:block;width:14px;height:14px;font-size:14px;line-height:1;font-family:"dashicons";content:"\f132"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper.siteorigin-widget-section-visible:before{content:"\f460"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .posts-container-label-wrapper span.sow-current-count{display:inline-block;border-radius:9px;background:#f92700;border:1px solid #da0900;line-height:14px;font-size:7px;width:17px;height:17px;text-align:center;vertical-align:middle;font-weight:bold;color:#FFFFFF;box-sizing:border-box;margin:1px 5px}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label,.siteorigin-widget-form .siteorigin-widget-field-type-section>label{background:#F0F0F0;border:1px solid #D0D0D0;line-height:1.4;padding:10px;display:block;margin-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label:before{float:left;margin:3px 6px 0 0;display:block;width:14px;height:14px;font-size:14px;line-height:1;font-family:"dashicons";content:"\f132"}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label.siteorigin-widget-section-visible:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label.siteorigin-widget-section-visible:before{content:"\f460"}.siteorigin-widget-form .siteorigin-widget-field-type-posts .siteorigin-widget-section,.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section{padding:1px 10px;background:#FCFCFC;border:1px solid #EEEEEE;border-top:0}.siteorigin-widget-form .siteorigin-widget-field-type-posts .siteorigin-widget-section.siteorigin-widget-section-hide,.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section.siteorigin-widget-section-hide,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section.siteorigin-widget-section-hide{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete,.siteorigin-widget-form .siteorigin-widget-field-type-link{position:relative}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector{padding:20px;display:none;position:absolute;top:110%;width:360px;z-index:10;border:1px solid #c0c0c0;background:#F6F6F6;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .content-text-search,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .content-text-search{width:100%;margin-bottom:15px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts{margin:0;padding:0;background:#fff;max-height:300px;overflow-y:scroll;border:1px solid #e4e4e4}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li{cursor:pointer;padding:5px 10px;color:#32373c;border-bottom:1px solid #f1f1f1;margin:0;font-size:.95em}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li.selected,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li.selected{background:#e1edfa}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li:hover,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:hover{background:#eaf2fa}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li:last-child,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items li span,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items li span,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts li span,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li span{font-size:.9em;display:inline-block;float:right;color:#999;margin-left:10px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{min-height:40px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .items.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .items.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .posts.loading li,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading li{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .buttons,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons{margin-top:15px;text-align:right}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .existing-content-selector .buttons a,.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons a{display:inline-block}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .url-input-wrapper,.siteorigin-widget-form .siteorigin-widget-field-type-link .url-input-wrapper{display:block;margin-right:130px}.siteorigin-widget-form .siteorigin-widget-field-type-autocomplete .select-content-button,.siteorigin-widget-form .siteorigin-widget-field-type-link .select-content-button{float:right;line-height:28px;min-height:30px;width:120px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector{right:0}.siteorigin-widget-form .siteorigin-widget-description{clear:both}.siteorigin-widget-preview{display:block !important}.siteorigin-widget-help-link{display:block;margin:1em 0}.so-widgets-dialog .so-widgets-dialog-overlay{position:fixed;z-index:500000;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7)}.so-widgets-dialog .so-widgets-toolbar,.so-widgets-dialog .so-widgets-dialog-frame{position:fixed;z-index:500001;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.so-widgets-dialog .so-widgets-toolbar{left:30px;right:30px;top:30px;height:50px;background:#fafafa;border-bottom:1px solid #D8D8D8}.so-widgets-dialog .so-widgets-toolbar h3{margin:15px 0 15px 20px}.so-widgets-dialog .so-widgets-toolbar .close{position:absolute;box-sizing:border-box;width:50px;height:50px;display:block;cursor:pointer;top:0;right:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background:#fafafa;border-left:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8}.so-widgets-dialog .so-widgets-toolbar .close:hover{background:#e9e9e9}.so-widgets-dialog .so-widgets-toolbar .close:hover .so-dialog-icon{color:#333333}.so-widgets-dialog .so-widgets-toolbar .close .dashicons{position:absolute;top:50%;left:50%;text-decoration:none;width:21px;height:21px;margin-left:-11px;margin-top:-10px;font-size:21px;color:#666666;text-align:center}.so-widgets-dialog .so-widgets-dialog-frame{top:80px;left:30px;right:30px;bottom:30px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.so-widgets-dialog .so-widgets-dialog-frame{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.so-widgets-dialog .so-widgets-dialog-frame iframe{width:100%;height:100%}.widget-icon.so-widget-icon{background-size:cover;background-image:url("img/bundle-icon.png")}.widget-icon.so-widget-icon.so-block-editor-icon{width:20px;height:20px;display:inline-block}.block-editor .so-widget-placeholder{text-align:left}.block-editor .so-widget-placeholder>.components-placeholder__label{background:url("img/bundle-icon.png") no-repeat left;background-size:20px;padding-left:25px}.block-editor .so-widget-placeholder>.components-placeholder__fieldset{max-width:unset}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container{width:100%}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container .components-base-control__field select{max-width:unset}.block-editor .so-widget-placeholder>.components-placeholder__fieldset .so-widget-block-container .siteorigin-widget-form.siteorigin-widget-form-main{min-width:unset}.block-editor .siteorigin-widget-form .siteorigin-widget-field{text-align:left}.block-editor .siteorigin-widget-form .siteorigin-widget-field input{padding:3px 5px}.block-editor .siteorigin-widget-form .siteorigin-widget-field input[type=checkbox]{background-color:#ffffff}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-autocomplete .select-content-button,.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-link .select-content-button{box-shadow:unset;font-size:13px;height:28px}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current{height:37px}.block-editor .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-type-tinymce .wp-switch-editor{box-sizing:content-box}.block-editor .so-widget-preview-container .so-widgets-spinner-container{text-align:center}.block-editor .so-widget-preview-container .so-widgets-spinner-container>span{display:inline-block}
base/inc/fields/css/media-field.css CHANGED
@@ -1 +1 @@
1
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper{background:#f9f9f9;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));background:-ms-linear-gradient(bottom, #f2f2f2, #f9f9f9);background:-moz-linear-gradient(center bottom, #f2f2f2 0%, #f9f9f9 100%);background:-o-linear-gradient(#f9f9f9, #f2f2f2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f2f2f2', GradientType=0);border:1px solid #bbbbbb;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.1);box-shadow:0 1px 2px rgba(0,0,0,0.1);display:block;float:left;font-size:13px;height:32px;line-height:18.2px;overflow:auto;position:relative}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover{-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.15);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.15);box-shadow:0 1px 2px rgba(0,0,0,0.15)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;height:32px;padding:4px;border-right:1px solid #bbb;position:relative;box-shadow:1px 0 0 #FFF}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .title{display:none;position:absolute;bottom:34px;left:0;padding:4px 12px;background:#333;color:#CCC;font-weight:bold;width:auto;white-space:nowrap}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper{border:1px solid #999;line-height:0;box-shadow:0 1px 1px #FFF;width:22px;height:22px;background:#cfcfcf;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #cccccc), color-stop(1, #cfcfcf));background:-ms-linear-gradient(bottom, #cccccc, #cfcfcf);background:-moz-linear-gradient(center bottom, #cccccc 0%, #cfcfcf 100%);background:-o-linear-gradient(#cfcfcf, #cccccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#cfcfcf', endColorstr='#cccccc', GradientType=0);box-shadow:inset 0 1px 3px rgba(0,0,0,0.2)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper img{height:100%;width:100%;box-shadow:inset 0 1px 3px rgba(0,0,0,0.2)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{display:block;float:left;color:#666;text-decoration:none;text-shadow:0 1px 0 #FFF;font-weight:600;font-size:11px;padding:7px 8px;outline:none;cursor:pointer;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button:hover,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button:hover{background:rgba(255,255,255,0.75)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{border-left:1px solid #bbbbbb}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover .media-upload-button{color:#707070}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button{display:block;text-decoration:none;float:left;color:#AAA;font-size:11px;line-height:1em;margin-right:25px;padding:11px 0 11px 6px;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;position:static;opacity:1}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button.remove-hide{pointer-events:none;opacity:0}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button:hover{color:#BC0B0B}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-fallback-external{float:left;margin-top:2px !important;max-width:320px}#so-widgets-image-search-frame{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;padding:25px;overflow-y:scroll;overflow-x:hidden}#so-widgets-image-search-frame #so-widgets-image-search-form{display:block;width:100%;position:relative;margin-bottom:2px;box-sizing:border-box}@media (min-width:783px){#so-widgets-image-search-frame #so-widgets-image-search-form{padding-right:368px}}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input{padding:9px 12px;margin-bottom:0px;box-shadow:none}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input:focus{box-shadow:none}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button{position:absolute;padding:0 14px;font-size:1.2em;height:100%;top:0;right:320px;border-width:1px;box-shadow:none}@media (max-width:783px){#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button{right:0}}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button .dashicons-search{vertical-align:middle}#so-widgets-image-search-frame #so-widgets-image-search-suggestions{position:absolute;right:0;top:0;width:300px;height:40px;text-align:right;display:none;font-size:1.1em;overflow:hidden}#so-widgets-image-search-frame #so-widgets-image-search-suggestions strong{display:block}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul{display:block;list-style:none;margin:0;padding:0}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul li{display:inline-block;margin-right:4px}#so-widgets-image-search-frame #so-widgets-image-search-powered{font-size:.85em;margin-bottom:15px;color:#888}#so-widgets-image-search-frame .so-widgets-image-results{zoom:1;margin:0 -8px}#so-widgets-image-search-frame .so-widgets-image-results:before{content:'';display:block}#so-widgets-image-search-frame .so-widgets-image-results:after{content:'';display:table;clear:both}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;margin:8px}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a{position:relative;background-repeat:no-repeat;background-size:cover;display:block;width:260px;height:180px;background-color:#e8e8e8}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a .so-widgets-result-sponsored{font-size:.8em;position:absolute;top:5px;right:5px;color:#fff;background:#59946B;line-height:1em;padding:5px;border-radius:2px}#so-widgets-image-search-frame .so-widgets-results-loading{display:none;font-size:1.1em;padding:15px 5px;background-color:#f7f7f7;text-align:center;margin-top:20px}#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{margin:0 6px -3px 0;display:inline-block;width:16px;height:16px;background-image:url("images/wpspin_light.gif");background-position:center center;background-repeat:no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{background-image:url(images/wpspin_light-2x.gif);background-size:16px 16px}}#so-widgets-image-search-frame .so-widgets-results-more{display:none;text-align:center;margin-top:20px;padding-bottom:20px}#so-widgets-image-search-frame .so-widgets-preview-window{display:none;position:fixed;background-color:#ffffff;box-shadow:0 1px 3px rgba(0,0,0,0.35);padding:10px;pointer-events:none}#so-widgets-image-search-frame .so-widgets-preview-window .so-widgets-preview-window-inside{background-size:cover;overflow:hidden}#so-widgets-image-search-frame .so-widgets-preview-window img{width:100%;height:auto}#so-widgets-image-search-frame.so-widgets-importing .so-widgets-preview-window,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-form,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-powered,#so-widgets-image-search-frame.so-widgets-importing .so-widgets-image-results{visibility:hidden !important;display:none !important}
1
+ .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper{border:1px solid #bbb;-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);display:block;float:left;font-size:13px;background:#f9f9f9;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));background:-ms-linear-gradient(bottom, #f2f2f2, #f9f9f9);background:-moz-linear-gradient(center bottom, #f2f2f2 0%, #f9f9f9 100%);background:-o-linear-gradient(#f9f9f9, #f2f2f2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f2f2f2', GradientType=0);height:32px;line-height:18.2px;overflow:auto;position:relative;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover{-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:0 1px 2px rgba(0, 0, 0, 0.15)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current{border-right:1px solid #bbb;box-shadow:1px 0 0 #fff;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;height:32px;overflow:hidden;padding:4px;position:relative}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .title{background:#333;bottom:34px;color:#ccc;display:none;font-weight:bold;left:0;padding:4px 12px;position:absolute;white-space:nowrap;width:auto}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper{border:1px solid #999;box-shadow:0 1px 1px #fff;box-shadow:inset 0 1px 3px rgba(0,0,0,0.2);height:22px;background:#cfcfcf;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #cccccc), color-stop(1, #cfcfcf));background:-ms-linear-gradient(bottom, #cccccc, #cfcfcf);background:-moz-linear-gradient(center bottom, #cccccc 0%, #cfcfcf 100%);background:-o-linear-gradient(#cfcfcf, #cccccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#cfcfcf', endColorstr='#cccccc', GradientType=0);line-height:0;width:22px}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper img{box-shadow:inset 0 1px 3px rgba(0,0,0,0.2);height:100%;width:100%}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{display:block;cursor:pointer;float:left;font-size:11px;font-weight:600;color:#666;outline:none;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;padding:7px 8px;text-decoration:none;text-shadow:0 1px 0 #fff}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button:hover,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button:hover{background:rgba(255,255,255,0.75)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{border-left:1px solid #bbb}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover .media-upload-button{color:#707070}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button{display:block;color:#aaa;float:left;font-size:11px;line-height:1em;margin-right:25px;opacity:1;padding:11px 0 11px 6px;position:static;text-decoration:none;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button.remove-hide{opacity:0;pointer-events:none}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button:hover{color:#bc0b0b}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-fallback-external{float:left;margin-top:2px !important;max-width:320px}#so-widgets-image-search-frame{background-color:#fff;bottom:0;left:0;overflow-x:hidden;overflow-y:scroll;padding:25px;position:absolute;right:0;top:0}#so-widgets-image-search-frame #so-widgets-image-search-form{box-sizing:border-box;display:block;margin-bottom:2px;position:relative;width:100%}@media (min-width:783px){#so-widgets-image-search-frame #so-widgets-image-search-form{padding-right:368px}}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input{box-shadow:none;margin-bottom:0px;padding:9px 12px}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input:focus{box-shadow:none}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button{border-width:1px;box-shadow:none;font-size:1.2em;height:100%;padding:0 14px;position:absolute;right:320px;top:0}@media (max-width:783px){#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button{right:0}}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button .dashicons-search{vertical-align:middle}#so-widgets-image-search-frame #so-widgets-image-search-suggestions{display:none;font-size:1.1em;height:40px;overflow:hidden;position:absolute;right:0;text-align:right;top:0;width:300px}#so-widgets-image-search-frame #so-widgets-image-search-suggestions strong{display:block}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul{display:block;list-style:none;margin:0;padding:0}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul li{display:inline-block;margin-right:4px}#so-widgets-image-search-frame #so-widgets-image-search-powered{color:#888;font-size:.85em;margin-bottom:15px}#so-widgets-image-search-frame .so-widgets-image-results{zoom:1;margin:0 -8px}#so-widgets-image-search-frame .so-widgets-image-results:before{content:'';display:block}#so-widgets-image-search-frame .so-widgets-image-results:after{content:'';display:table;clear:both}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;margin:8px}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a{background-color:#e8e8e8;background-repeat:no-repeat;background-size:cover;display:block;position:relative;height:180px;width:260px}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a .so-widgets-result-sponsored{background:#59946b;border-radius:2px;color:#fff;font-size:.8em;line-height:1em;padding:5px;position:absolute;right:5px;top:5px}#so-widgets-image-search-frame .so-widgets-results-loading{background-color:#f7f7f7;display:none;font-size:1.1em;margin-top:20px;padding:15px 5px;text-align:center}#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{background-image:url("images/wpspin_light.gif");background-position:center center;background-repeat:no-repeat;display:inline-block;height:16px;margin:0 6px -3px 0;width:16px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{background-image:url(images/wpspin_light-2x.gif);background-size:16px 16px}}#so-widgets-image-search-frame .so-widgets-results-more{display:none;margin-top:20px;padding-bottom:20px;text-align:center}#so-widgets-image-search-frame .so-widgets-preview-window{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.35);display:none;padding:10px;pointer-events:none;position:fixed}#so-widgets-image-search-frame .so-widgets-preview-window .so-widgets-preview-window-inside{background-size:cover;overflow:hidden}#so-widgets-image-search-frame .so-widgets-preview-window img{height:auto;width:100%}#so-widgets-image-search-frame.so-widgets-importing .so-widgets-preview-window,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-form,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-powered,#so-widgets-image-search-frame.so-widgets-importing .so-widgets-image-results{display:none !important;visibility:hidden !important}
base/inc/lessc.inc.php CHANGED
@@ -4,13 +4,6 @@
4
* to be a drop-in replacement for following products:
5
* - Drupal 7, by the less module v3.0+ (https://drupal.org/project/less)
6
* - Symfony 2
7
- *
8
- * @SiteOrigin: We originally used leafo/lessphp (https://github.com/leafo/lessphp), until we found it wasn't
9
- * maintained and missed some newer LESS features. We then migrated to a more recent and maintained repo
10
- * (https://github.com/oyejorge/less.php) simply replacing leafo's lessc.inc.php with the one from oyejorge. This
11
- * worked well until users started running PHP 7 compatibility checkers which found some issues, so now we have our own
12
- * fork here: https://github.com/siteorigin/less.php We have fixed the PHP 7 compatibility issues and will only make
13
- * more changes if there are severe issues.
14
*/
15
16
// Register autoloader for non-composer installations
4
* to be a drop-in replacement for following products:
5
* - Drupal 7, by the less module v3.0+ (https://drupal.org/project/less)
6
* - Symfony 2
7
*/
8
9
// Register autoloader for non-composer installations
base/inc/lib/Less/Exception/Chunk.php CHANGED
@@ -1,203 +1,203 @@
1
- <?php
2
-
3
- /**
4
- * Chunk Exception
5
- *
6
- * @package Less
7
- * @subpackage exception
8
- */
9
- class Less_Exception_Chunk extends Less_Exception_Parser{
10
-
11
-
12
- protected $parserCurrentIndex = 0;
13
-
14
- protected $emitFrom = 0;
15
-
16
- protected $input_len;
17
-
18
-
19
- /**
20
- * Constructor
21
- *
22
- * @param string $input
23
- * @param Exception $previous Previous exception
24
- * @param integer $index The current parser index
25
- * @param Less_FileInfo|string $currentFile The file
26
- * @param integer $code The exception code
27
- */
28
- public function __construct($input, Exception $previous = null, $index = null, $currentFile = null, $code = 0){
29
-
30
- $this->message = 'ParseError: Unexpected input'; //default message
31
-
32
- $this->index = $index;
33
-
34
- $this->currentFile = $currentFile;
35
-
36
- $this->input = $input;
37
- $this->input_len = strlen($input);
38
-
39
- $this->Chunks();
40
- $this->genMessage();
41
- }
42
-
43
-
44
- /**
45
- * See less.js chunks()
46
- * We don't actually need the chunks
47
- *
48
- */
49
- protected function Chunks(){
50
- $level = 0;
51
- $parenLevel = 0;
52
- $lastMultiCommentEndBrace = null;
53
- $lastOpening = null;
54
- $lastMultiComment = null;
55
- $lastParen = null;
56
-
57
- for( $this->parserCurrentIndex = 0; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++ ){
58
- $cc = $this->CharCode($this->parserCurrentIndex);
59
- if ((($cc >= 97) && ($cc <= 122)) || ($cc < 34)) {
60
- // a-z or whitespace
61
- continue;
62
- }
63
-
64
- switch ($cc) {
65
-
66
- // (
67
- case 40:
68
- $parenLevel++;
69
- $lastParen = $this->parserCurrentIndex;
70
- break;
71
-
72
- // )
73
- case 41:
74
- $parenLevel--;
75
- if( $parenLevel < 0 ){
76
- return $this->fail("missing opening `(`");
77
- }
78
- break;
79
-
80
- // ;
81
- case 59:
82
- //if (!$parenLevel) { $this->emitChunk(); }
83
- break;
84
-
85
- // {
86
- case 123:
87
- $level++;
88
- $lastOpening = $this->parserCurrentIndex;
89
- break;
90
-
91
- // }
92
- case 125:
93
- $level--;
94
- if( $level < 0 ){
95
- return $this->fail("missing opening `{`");
96
-
97
- }
98
- //if (!$level && !$parenLevel) { $this->emitChunk(); }
99
- break;
100
- // \
101
- case 92:
102
- if ($this->parserCurrentIndex < $this->input_len - 1) { $this->parserCurrentIndex++; break; }
103
- return $this->fail("unescaped `\\`");
104
-
105
- // ", ' and `
106
- case 34:
107
- case 39:
108
- case 96:
109
- $matched = 0;
110
- $currentChunkStartIndex = $this->parserCurrentIndex;
111
- for ($this->parserCurrentIndex = $this->parserCurrentIndex + 1; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {
112
- $cc2 = $this->CharCode($this->parserCurrentIndex);
113
- if ($cc2 > 96) { continue; }
114
- if ($cc2 == $cc) { $matched = 1; break; }
115
- if ($cc2 == 92) { // \
116
- if ($this->parserCurrentIndex == $this->input_len - 1) {
117
- return $this->fail("unescaped `\\`");
118
- }
119
- $this->parserCurrentIndex++;
120
- }
121
- }
122
- if ($matched) { break; }
123
- return $this->fail("unmatched `" . chr($cc) . "`", $currentChunkStartIndex);
124
-
125
- // /, check for comment
126
- case 47:
127
- if ($parenLevel || ($this->parserCurrentIndex == $this->input_len - 1)) { break; }
128
- $cc2 = $this->CharCode($this->parserCurrentIndex+1);
129
- if ($cc2 == 47) {
130
- // //, find lnfeed
131
- for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {
132
- $cc2 = $this->CharCode($this->parserCurrentIndex);
133
- if (($cc2 <= 13) && (($cc2 == 10) || ($cc2 == 13))) { break; }
134
- }
135
- } else if ($cc2 == 42) {
136
- // /*, find */
137
- $lastMultiComment = $currentChunkStartIndex = $this->parserCurrentIndex;
138
- for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len - 1; $this->parserCurrentIndex++) {
139
- $cc2 = $this->CharCode($this->parserCurrentIndex);
140
- if ($cc2 == 125) { $lastMultiCommentEndBrace = $this->parserCurrentIndex; }
141
- if ($cc2 != 42) { continue; }
142
- if ($this->CharCode($this->parserCurrentIndex+1) == 47) { break; }
143
- }
144
- if ($this->parserCurrentIndex == $this->input_len - 1) {
145
- return $this->fail("missing closing `*/`", $currentChunkStartIndex);
146
- }
147
- }
148
- break;
149
-
150
- // *, check for unmatched */
151
- case 42:
152
- if (($this->parserCurrentIndex < $this->input_len - 1) && ($this->CharCode($this->parserCurrentIndex+1) == 47)) {
153
- return $this->fail("unmatched `/*`");
154
- }
155
- break;
156
- }
157
- }
158
-
159
- if( $level !== 0 ){
160
- if( ($lastMultiComment > $lastOpening) && ($lastMultiCommentEndBrace > $lastMultiComment) ){
161
- return $this->fail("missing closing `}` or `*/`", $lastOpening);
162
- } else {
163
- return $this->fail("missing closing `}`", $lastOpening);
164
- }
165
- } else if ( $parenLevel !== 0 ){
166
- return $this->fail("missing closing `)`", $lastParen);
167
- }
168
-
169
-
170
- //chunk didn't fail
171
-
172
-
173
- //$this->emitChunk(true);
174
- }
175
-
176
- public function CharCode($pos){
177
- return ord($this->input[$pos]);
178
- }
179
-
180
-
181
- public function fail( $msg, $index = null ){
182
-
183
- if( !$index ){
184
- $this->index = $this->parserCurrentIndex;
185
- }else{
186
- $this->index = $index;
187
- }
188
- $this->message = 'ParseError: '.$msg;
189
- }
190
-
191
-
192
- /*
193
- function emitChunk( $force = false ){
194
- $len = $this->parserCurrentIndex - $this->emitFrom;
195
- if ((($len < 512) && !$force) || !$len) {
196
- return;
197
- }
198
- $chunks[] = substr($this->input, $this->emitFrom, $this->parserCurrentIndex + 1 - $this->emitFrom );
199
- $this->emitFrom = $this->parserCurrentIndex + 1;
200
- }
201
- */
202
-
203
- }
1
+ <?php
2
+
3
+ /**
4
+ * Chunk Exception
5
+ *
6
+ * @package Less
7
+ * @subpackage exception
8
+ */
9
+ class Less_Exception_Chunk extends Less_Exception_Parser{
10
+
11
+
12
+ protected $parserCurrentIndex = 0;
13
+
14
+ protected $emitFrom = 0;
15
+
16
+ protected $input_len;
17
+
18
+
19
+ /**
20
+ * Constructor
21
+ *
22
+ * @param string $input
23
+ * @param Exception $previous Previous exception
24
+ * @param integer $index The current parser index
25
+ * @param Less_FileInfo|string $currentFile The file
26
+ * @param integer $code The exception code
27
+ */
28
+ public function __construct($input, Exception $previous = null, $index = null, $currentFile = null, $code = 0){
29
+
30
+ $this->message = 'ParseError: Unexpected input'; //default message
31
+
32
+ $this->index = $index;
33
+
34
+ $this->currentFile = $currentFile;
35
+
36
+ $this->input = $input;
37
+ $this->input_len = strlen($input);
38
+
39
+ $this->Chunks();
40
+ $this->genMessage();
41
+ }
42
+
43
+
44
+ /**
45
+ * See less.js chunks()
46
+ * We don't actually need the chunks
47
+ *
48
+ */
49
+ protected function Chunks(){
50
+ $level = 0;
51
+ $parenLevel = 0;
52
+ $lastMultiCommentEndBrace = null;
53
+ $lastOpening = null;
54
+ $lastMultiComment = null;
55
+ $lastParen = null;
56
+
57
+ for( $this->parserCurrentIndex = 0; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++ ){
58
+ $cc = $this->CharCode($this->parserCurrentIndex);
59
+ if ((($cc >= 97) && ($cc <= 122)) || ($cc < 34)) {
60
+ // a-z or whitespace
61
+ continue;
62
+ }
63
+
64
+ switch ($cc) {
65
+
66
+ // (
67
+ case 40:
68
+ $parenLevel++;
69
+ $lastParen = $this->parserCurrentIndex;
70
+ break;
71
+
72
+ // )
73
+ case 41:
74
+ $parenLevel--;
75
+ if( $parenLevel < 0 ){
76
+ return $this->fail("missing opening `(`");
77
+ }
78
+ break;
79
+
80
+ // ;
81
+ case 59:
82
+ //if (!$parenLevel) { $this->emitChunk(); }
83
+ break;
84
+
85
+ // {
86
+ case 123:
87
+ $level++;
88
+ $lastOpening = $this->parserCurrentIndex;
89
+ break;
90
+
91
+ // }
92
+ case 125:
93
+ $level--;
94
+ if( $level < 0 ){
95
+ return $this->fail("missing opening `{`");
96
+
97
+ }
98
+ //if (!$level && !$parenLevel) { $this->emitChunk(); }
99
+ break;
100
+ // \
101
+ case 92:
102
+ if ($this->parserCurrentIndex < $this->input_len - 1) { $this->parserCurrentIndex++; break; }
103
+ return $this->fail("unescaped `\\`");
104
+
105
+ // ", ' and `
106
+ case 34:
107
+ case 39:
108
+ case 96:
109
+ $matched = 0;
110
+ $currentChunkStartIndex = $this->parserCurrentIndex;
111
+ for ($this->parserCurrentIndex = $this->parserCurrentIndex + 1; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {
112
+ $cc2 = $this->CharCode($this->parserCurrentIndex);
113
+ if ($cc2 > 96) { continue; }
114
+ if ($cc2 == $cc) { $matched = 1; break; }
115
+ if ($cc2 == 92) { // \
116
+ if ($this->parserCurrentIndex == $this->input_len - 1) {
117
+ return $this->fail("unescaped `\\`");
118
+ }
119
+ $this->parserCurrentIndex++;
120
+ }
121
+ }
122
+ if ($matched) { break; }
123
+ return $this->fail("unmatched `" . chr($cc) . "`", $currentChunkStartIndex);
124
+
125
+ // /, check for comment
126
+ case 47:
127
+ if ($parenLevel || ($this->parserCurrentIndex == $this->input_len - 1)) { break; }
128
+ $cc2 = $this->CharCode($this->parserCurrentIndex+1);
129
+ if ($cc2 == 47) {
130
+ // //, find lnfeed
131
+ for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len; $this->parserCurrentIndex++) {
132
+ $cc2 = $this->CharCode($this->parserCurrentIndex);
133
+ if (($cc2 <= 13) && (($cc2 == 10) || ($cc2 == 13))) { break; }
134
+ }
135
+ } else if ($cc2 == 42) {
136
+ // /*, find */
137
+ $lastMultiComment = $currentChunkStartIndex = $this->parserCurrentIndex;
138
+ for ($this->parserCurrentIndex = $this->parserCurrentIndex + 2; $this->parserCurrentIndex < $this->input_len - 1; $this->parserCurrentIndex++) {
139
+ $cc2 = $this->CharCode($this->parserCurrentIndex);
140
+ if ($cc2 == 125) { $lastMultiCommentEndBrace = $this->parserCurrentIndex; }
141
+ if ($cc2 != 42) { continue; }
142
+ if ($this->CharCode($this->parserCurrentIndex+1) == 47) { break; }
143
+ }
144
+ if ($this->parserCurrentIndex == $this->input_len - 1) {
145
+ return $this->fail("missing closing `*/`", $currentChunkStartIndex);
146
+ }
147
+ }
148
+ break;
149
+
150
+ // *, check for unmatched */
151
+ case 42:
152
+ if (($this->parserCurrentIndex < $this->input_len - 1) && ($this->CharCode($this->parserCurrentIndex+1) == 47)) {
153
+ return $this->fail("unmatched `/*`");
154
+ }
155
+ break;
156
+ }
157
+ }
158
+
159
+ if( $level !== 0 ){
160
+ if( ($lastMultiComment > $lastOpening) && ($lastMultiCommentEndBrace > $lastMultiComment) ){
161
+ return $this->fail("missing closing `}` or `*/`", $lastOpening);
162
+ } else {
163
+ return $this->fail("missing closing `}`", $lastOpening);
164
+ }
165
+ } else if ( $parenLevel !== 0 ){
166
+ return $this->fail("missing closing `)`", $lastParen);
167
+ }
168
+
169
+
170
+ //chunk didn't fail
171
+
172
+
173
+ //$this->emitChunk(true);
174
+ }
175
+
176
+ public function CharCode($pos){
177
+ return ord($this->input[$pos]);
178
+ }
179
+
180
+
181
+ public function fail( $msg, $index = null ){
182
+
183
+ if( !$index ){
184
+ $this->index = $this->parserCurrentIndex;
185
+ }else{
186
+ $this->index = $index;
187
+ }
188
+ $this->message = 'ParseError: '.$msg;
189
+ }
190
+
191
+
192
+ /*
193
+ function emitChunk( $force = false ){
194
+ $len = $this->parserCurrentIndex - $this->emitFrom;
195
+ if ((($len < 512) && !$force) || !$len) {
196
+ return;
197
+ }
198
+ $chunks[] = substr($this->input, $this->emitFrom, $this->parserCurrentIndex + 1 - $this->emitFrom );
199
+ $this->emitFrom = $this->parserCurrentIndex + 1;
200
+ }
201
+ */
202
+
203
+ }
base/inc/lib/Less/Parser.php CHANGED
@@ -877,8 +877,8 @@ class Less_Parser{
877
878
if( preg_match($tok, $this->input, $match, 0, $this->pos) ){
879
$this->skipWhitespace(strlen($match[0]));
880
}
881
- return $match;
882
}
883
884
@@ -1924,7 +1924,7 @@ class Less_Parser{
1924
1925
$this->expectChar(']');
1926
1927
- return $this->NewObj3('Less_Tree_Attribute',array( $key, $op[0], $val));
1928
}
1929
1930
//
877
878
if( preg_match($tok, $this->input, $match, 0, $this->pos) ){
879
$this->skipWhitespace(strlen($match[0]));
880
+ return $match;
881
}
882
}
883
884
1924
1925
$this->expectChar(']');
1926
1927
+ return $this->NewObj3('Less_Tree_Attribute',array( $key, $op === null ? null : $op[0], $val));
1928
}
1929
1930
//
base/inc/lib/Less/SourceMap/Base64VLQ.php CHANGED
@@ -153,12 +153,7 @@ class Less_SourceMap_Base64VLQ {
153
* @return integer
154
*/
155
public function zeroFill($a, $b){
156
- if ( $b <= 0) {
157
- throw new Exception( sprintf( '$b must be a positive integer. "%s" given.', $b ) );
158
- }
159
- $shift_max_int = $b - 1;
160
-
161
- return ($a >= 0) ? ($a >> $b) : ($a >> $b) & (PHP_INT_MAX >> $shift_max_int);
162
}
163
164
/**
153
* @return integer
154
*/
155
public function zeroFill($a, $b){
156
+ return ($a >= 0) ? ($a >> $b) : ($a >> $b) & (PHP_INT_MAX >> ($b - 1));
157
}
158
159
/**
base/inc/lib/Less/SourceMap/Generator.php CHANGED
@@ -169,7 +169,7 @@ class Less_SourceMap_Generator extends Less_Configurable {
169
$basePath = $this->getOption('sourceMapBasepath');
170
171
// "Trim" the 'sourceMapBasepath' from the output filename.
172
- if (strpos($filename, $basePath) === 0) {
173
$filename = substr($filename, strlen($basePath));
174
}
175
@@ -362,4 +362,4 @@ class Less_SourceMap_Generator extends Less_Configurable {
362
return $path;
363
}
364
365
- }
169
$basePath = $this->getOption('sourceMapBasepath');
170
171
// "Trim" the 'sourceMapBasepath' from the output filename.
172
+ if (is_string($basePath) && strpos($filename, $basePath) === 0) {
173
$filename = substr($filename, strlen($basePath));
174
}
175
362
return $path;
363
}
364
365
+ }
base/inc/lib/Less/Tree/Dimension.php CHANGED
@@ -157,14 +157,10 @@ class Less_Tree_Dimension extends Less_Tree{
157
158
if( is_string($conversions) ){
159
$derivedConversions = array();
160
- if( isset(Less_Tree_UnitConversions::$length[$conversions]) ){
161
- $derivedConversions = array( 'length' => $conversions );
162
- }
163
- if( isset(Less_Tree_UnitConversions::$duration[$conversions]) ){
164
- $derivedConversions = array( 'duration' => $conversions );
165
- }
166
- if( isset(Less_Tree_UnitConversions::$angle[$conversions]) ){
167
- $derivedConversions = array( 'angle' => $conversions );
168
}
169
$conversions = $derivedConversions;
170
}
157
158
if( is_string($conversions) ){
159
$derivedConversions = array();
160
+ foreach( Less_Tree_UnitConversions::$groups as $i ){
161
+ if( isset(Less_Tree_UnitConversions::${$i}[$conversions]) ){
162
+ $derivedConversions = array( $i => $conversions);
163
+ }
164
}
165
$conversions = $derivedConversions;
166
}
base/inc/lib/Less/Tree/Directive.php CHANGED
@@ -17,7 +17,7 @@ class Less_Tree_Directive extends Less_Tree{
17
public $debugInfo;
18
public $type = 'Directive';
19
20
- public function __construct($name, $value = null, $rules, $index = null, $currentFileInfo = null, $debugInfo = null ){
21
$this->name = $name;
22
$this->value = $value;
23
if( $rules ){
17
public $debugInfo;
18
public $type = 'Directive';
19
20
+ public function __construct($name, $value = null, $rules = null, $index = null, $currentFileInfo = null, $debugInfo = null ){
21
$this->name = $name;
22
$this->value = $value;
23
if( $rules ){
base/inc/lib/Less/Tree/Extend.php CHANGED
@@ -42,8 +42,13 @@ class Less_Tree_Extend extends Less_Tree{
42
break;
43
}
44
45
- $this->object_id = $i++;
46
- $this->parent_ids = array($this->object_id);
47
}
48
49
public function accept( $visitor ){
@@ -74,4 +79,4 @@ class Less_Tree_Extend extends Less_Tree{
74
$this->selfSelectors = array(new Less_Tree_Selector($selfElements));
75
}
76
77
- }
42
break;
43
}
44
45
+ // This must use a string (instead of int) so that array_merge()
46
+ // preserves keys on arrays that use IDs in their keys.
47
+ $this->object_id = 'id_' . $i++;
48
+
49
+ $this->parent_ids = array(
50
+ $this->object_id => true
51
+ );
52
}
53
54
public function accept( $visitor ){
79
$this->selfSelectors = array(new Less_Tree_Selector($selfElements));
80
}
81
82
+ }
base/inc/lib/Less/Tree/Import.php CHANGED
@@ -214,12 +214,15 @@ class Less_Tree_Import extends Less_Tree{
214
215
if( Less_Environment::isPathRelative($evald_path) ){
216
//if the path is relative, the file should be in the current directory
217
- $import_dirs[ $this->currentFileInfo['currentDirectory'] ] = $this->currentFileInfo['uri_root'];
218
219
}else{
220
//otherwise, the file should be relative to the server root
221
- $import_dirs[ $this->currentFileInfo['entryPath'] ] = $this->currentFileInfo['entryUri'];
222
-
223
//if the user supplied entryPath isn't the actual root
224
$import_dirs[ $_SERVER['DOCUMENT_ROOT'] ] = '';
225
214
215
if( Less_Environment::isPathRelative($evald_path) ){
216
//if the path is relative, the file should be in the current directory
217
+ if ( $this->currentFileInfo ){
218
+ $import_dirs[ $this->currentFileInfo['currentDirectory'] ] = $this->currentFileInfo['uri_root'];
219
+ }
220
221
}else{
222
//otherwise, the file should be relative to the server root
223
+ if( $this->currentFileInfo ) {
224
+ $import_dirs[ $this->currentFileInfo['entryPath'] ] = $this->currentFileInfo['entryUri'];
225
+ }
226
//if the user supplied entryPath isn't the actual root
227
$import_dirs[ $_SERVER['DOCUMENT_ROOT'] ] = '';
228
base/inc/lib/Less/Tree/Selector.php CHANGED
@@ -22,6 +22,7 @@ class Less_Tree_Selector extends Less_Tree{
22
public $elements_len = 0;
23
24
public $_oelements;
25
public $_oelements_len;
26
public $cacheable = true;
27
@@ -83,6 +84,8 @@ class Less_Tree_Selector extends Less_Tree{
83
public function CacheElements(){
84
85
$this->_oelements = array();
86
$css = '';
87
88
foreach($this->elements as $v){
@@ -108,6 +111,8 @@ class Less_Tree_Selector extends Less_Tree{
108
array_shift($this->_oelements);
109
$this->_oelements_len--;
110
}
111
}
112
}
113
22
public $elements_len = 0;
23
24
public $_oelements;
25
+ public $_oelements_assoc;
26
public $_oelements_len;
27
public $cacheable = true;
28
84
public function CacheElements(){
85
86
$this->_oelements = array();
87
+ $this->_oelements_assoc = array();
88
+
89
$css = '';
90
91
foreach($this->elements as $v){
111
array_shift($this->_oelements);
112
$this->_oelements_len--;
113
}
114
+
115
+ $this->_oelements_assoc = array_fill_keys($this->_oelements, true);
116
}
117
}
118
base/inc/lib/Less/Version.php CHANGED
@@ -8,8 +8,8 @@
8
*/
9
class Less_Version{
10
11
- const version = '1.7.0.13'; // The current build number of less.php
12
- const less_version = '2.5.3'; // The less.js version that this build should be compatible with
13
const cache_version = '253'; // The parser cache version
14
15
}
8
*/
9
class Less_Version{
10
11
+ const version = '3.0.0'; // The current build number of less.php
12
+ const less_version = '2.5.3'; // The less.js version that this build should be compatible with
13
const cache_version = '253'; // The parser cache version
14
15
}
base/inc/lib/Less/Visitor/processExtends.php CHANGED
@@ -53,8 +53,9 @@ class Less_Visitor_processExtends extends Less_Visitor{
53
$extend = $extendsList[$extendIndex];
54
$targetExtend = $extendsListTarget[$targetExtendIndex];
55
56
- // look for circular references
57
- if( in_array($targetExtend->object_id, $extend->parent_ids,true) ){
58
continue;
59
}
60
@@ -269,7 +270,8 @@ class Less_Visitor_processExtends extends Less_Visitor{
269
return true;
270
}
271
272
- if( in_array($first_el, $hackstackSelector->_oelements) ){
273
return true;
274
}
275
}
@@ -466,4 +468,4 @@ class Less_Visitor_processExtends extends Less_Visitor{
466
array_pop($this->allExtendsStack);
467
}
468
469
- }
53
$extend = $extendsList[$extendIndex];
54
$targetExtend = $extendsListTarget[$targetExtendIndex];
55
56
+ // Optimisation: Explicit reference, <https://github.com/wikimedia/less.php/pull/14>
57
+ if( \array_key_exists($targetExtend->object_id, $extend->parent_ids) ){
58
+ // ignore circular references
59
continue;
60
}
61
270
return true;
271
}
272
273
+ // Optimisation: Explicit reference, <https://github.com/wikimedia/less.php/pull/14>
274
+ if( \array_key_exists($first_el, $hackstackSelector->_oelements_assoc) ){
275
return true;
276
}
277
}
468
array_pop($this->allExtendsStack);
469
}
470
471
+ }
base/siteorigin-widget.class.php CHANGED
@@ -912,7 +912,7 @@ abstract class SiteOrigin_Widget extends WP_Widget {
912
913
try {
914
if( method_exists( $compiler, 'compile' ) ) {
915
- $css = $compiler->compile( $less );
916
}
917
}
918
catch ( Exception $e ) {
912
913
try {
914
if( method_exists( $compiler, 'compile' ) ) {
915
+ $css = @ $compiler->compile( $less );
916
}
917
}
918
catch ( Exception $e ) {
css/lib/slick.css ADDED
@@ -0,0 +1 @@
1
+ .slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}.slick-list{position:relative;overflow:hidden;display:block;margin:0;padding:0}.slick-list:focus{outline:none}.slick-list.dragging{cursor:pointer;cursor:hand}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.slick-track{position:relative;left:0;top:0;display:block;margin-left:auto;margin-right:auto}.slick-track:before,.slick-track:after{content:"";display:table}.slick-track:after{clear:both}.slick-loading .slick-track{visibility:hidden}.slick-slide{float:left;height:100%;min-height:1px;display:none}[dir="rtl"] .slick-slide{float:right}.slick-slide img{display:block}.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}.slick-initialized .slick-slide{display:block}.slick-loading .slick-slide{visibility:hidden}.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}.slick-arrow.slick-hidden{display:none}
js/lib/slick.js ADDED
@@ -0,0 +1,3011 @@
1
+ /*
2
+ _ _ _ _
3
+ ___| (_) ___| | __ (_)___
4
+ / __| | |/ __| |/ / | / __|
5
+ \__ \ | | (__| < _ | \__ \
6
+ |___/_|_|\___|_|\_(_)/ |___/
7
+ |__/
8
+
9
+ Version: 1.8.0
10
+ Author: Ken Wheeler
11
+ Website: http://kenwheeler.github.io
12
+ Docs: http://kenwheeler.github.io/slick
13
+ Repo: http://github.com/kenwheeler/slick
14
+ Issues: http://github.com/kenwheeler/slick/issues
15
+
16
+ */
17
+ /* global window, document, define, jQuery, setInterval, clearInterval */
18
+ ;(function(factory) {
19
+ 'use strict';
20
+ if (typeof define === 'function' && define.amd) {
21
+ define(['jquery'], factory);
22
+ } else if (typeof exports !== 'undefined') {
23
+ module.exports = factory(require('jquery'));
24
+ } else {
25
+ factory(jQuery);
26
+ }
27
+
28
+ }(function($) {
29
+ 'use strict';
30
+ var Slick = window.Slick || {};
31
+
32
+ Slick = (function() {
33
+
34
+ var instanceUid = 0;
35
+
36
+ function Slick(element, settings) {
37
+
38
+ var _ = this, dataSettings;
39
+
40
+ _.defaults = {
41
+ accessibility: true,
42
+ adaptiveHeight: false,
43
+ appendArrows: $(element),
44
+ appendDots: $(element),
45
+ arrows: true,
46
+ asNavFor: null,
47
+ prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
48
+ nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
49
+ autoplay: false,
50
+ autoplaySpeed: 3000,
51
+ centerMode: false,
52
+ centerPadding: '50px',
53
+ cssEase: 'ease',
54
+ customPaging: function(slider, i) {
55
+ return $('<button type="button" />').text(i + 1);
56
+ },
57
+ dots: false,
58
+ dotsClass: 'slick-dots',
59
+ draggable: true,
60
+ easing: 'linear',
61
+ edgeFriction: 0.35,
62
+ fade: false,
63
+ focusOnSelect: false,
64
+ focusOnChange: false,
65
+ infinite: true,
66
+ initialSlide: 0,
67
+ lazyLoad: 'ondemand',
68
+ mobileFirst: false,
69
+ pauseOnHover: true,
70
+ pauseOnFocus: true,
71
+ pauseOnDotsHover: false,
72
+ respondTo: 'window',
73
+ responsive: null,
74
+ rows: 1,
75
+ rtl: false,
76
+ slide: '',
77
+ slidesPerRow: 1,
78
+ slidesToShow: 1,
79
+ slidesToScroll: 1,
80
+ speed: 500,
81
+ swipe: true,
82
+ swipeToSlide: false,
83
+ touchMove: true,
84
+ touchThreshold: 5,
85
+ useCSS: true,
86
+ useTransform: true,
87
+ variableWidth: false,
88
+ vertical: false,
89
+ verticalSwiping: false,
90
+ waitForAnimate: true,
91
+ zIndex: 1000
92
+ };
93
+
94
+ _.initials = {
95
+ animating: false,
96
+ dragging: false,
97
+ autoPlayTimer: null,
98
+ currentDirection: 0,
99
+ currentLeft: null,
100
+ currentSlide: 0,
101
+ direction: 1,
102
+ $dots: null,
103
+ listWidth: null,
104
+ listHeight: null,
105
+ loadIndex: 0,
106
+ $nextArrow: null,
107
+ $prevArrow: null,
108
+ scrolling: false,
109
+ slideCount: null,
110
+ slideWidth: null,
111
+ $slideTrack: null,
112
+ $slides: null,
113
+ sliding: false,
114
+ slideOffset: 0,
115
+ swipeLeft: null,
116
+ swiping: false,
117
+ $list: null,
118
+ touchObject: {},
119
+ transformsEnabled: false,
120
+ unslicked: false
121
+ };
122
+
123
+ $.extend(_, _.initials);
124
+
125
+ _.activeBreakpoint = null;
126
+ _.animType = null;
127
+ _.animProp = null;
128
+ _.breakpoints = [];
129
+ _.breakpointSettings = [];
130
+ _.cssTransitions = false;
131
+ _.focussed = false;
132
+ _.interrupted = false;
133
+ _.hidden = 'hidden';
134
+ _.paused = true;
135
+ _.positionProp = null;
136
+ _.respondTo = null;
137
+ _.rowCount = 1;
138
+ _.shouldClick = true;
139
+ _.$slider = $(element);
140
+ _.$slidesCache = null;
141
+ _.transformType = null;
142
+ _.transitionType = null;
143
+ _.visibilityChange = 'visibilitychange';
144
+ _.windowWidth = 0;
145
+ _.windowTimer = null;
146
+
147
+ dataSettings = $(element).data('slick') || {};
148
+
149
+ _.options = $.extend({}, _.defaults, settings, dataSettings);
150
+
151
+ _.currentSlide = _.options.initialSlide;
152
+
153
+ _.originalSettings = _.options;
154
+
155
+ if (typeof document.mozHidden !== 'undefined') {
156
+ _.hidden = 'mozHidden';
157
+ _.visibilityChange = 'mozvisibilitychange';
158
+ } else if (typeof document.webkitHidden !== 'undefined') {
159
+ _.hidden = 'webkitHidden';
160
+ _.visibilityChange = 'webkitvisibilitychange';
161
+ }
162
+
163
+ _.autoPlay = $.proxy(_.autoPlay, _);
164
+ _.autoPlayClear = $.proxy(_.autoPlayClear, _);
165
+ _.autoPlayIterator = $.proxy(_.autoPlayIterator, _);
166
+ _.changeSlide = $.proxy(_.changeSlide, _);
167
+ _.clickHandler = $.proxy(_.clickHandler, _);
168
+ _.selectHandler = $.proxy(_.selectHandler, _);
169
+ _.setPosition = $.proxy(_.setPosition, _);
170
+ _.swipeHandler = $.proxy(_.swipeHandler, _);
171
+ _.dragHandler = $.proxy(_.dragHandler, _);
172
+ _.keyHandler = $.proxy(_.keyHandler, _);
173
+
174
+ _.instanceUid = instanceUid++;
175
+
176
+ // A simple way to check for HTML strings
177
+ // Strict HTML recognition (must start with <)
178
+ // Extracted from jQuery v1.11 source
179
+ _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)#x2F;;
180
+
181
+
182
+ _.registerBreakpoints();
183
+ _.init(true);
184
+
185
+ }
186
+
187
+ return Slick;
188
+
189
+ }());
190
+
191
+ Slick.prototype.activateADA = function() {
192
+ var _ = this;
193
+
194
+ _.$slideTrack.find('.slick-active').attr({
195
+ 'aria-hidden': 'false'
196
+ }).find('a, input, button, select').attr({
197
+ 'tabindex': '0'
198
+ });
199
+
200
+ };
201
+
202
+ Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {
203
+
204
+ var _ = this;
205
+
206
+ if (typeof(index) === 'boolean') {
207
+ addBefore = index;
208
+ index = null;
209
+ } else if (index < 0 || (index >= _.slideCount)) {
210
+ return false;
211
+ }
212
+
213
+ _.unload();
214
+
215
+ if (typeof(index) === 'number') {
216
+ if (index === 0 && _.$slides.length === 0) {
217
+ $(markup).appendTo(_.$slideTrack);
218
+ } else if (addBefore) {
219
+ $(markup).insertBefore(_.$slides.eq(index));
220
+ } else {
221
+ $(markup).insertAfter(_.$slides.eq(index));
222
+ }
223
+ } else {
224
+ if (addBefore === true) {
225
+ $(markup).prependTo(_.$slideTrack);
226
+ } else {
227
+ $(markup).appendTo(_.$slideTrack);
228
+ }
229
+ }
230
+
231
+ _.$slides = _.$slideTrack.children(this.options.slide);
232
+
233
+ _.$slideTrack.children(this.options.slide).detach();
234
+
235
+ _.$slideTrack.append(_.$slides);
236
+
237
+ _.$slides.each(function(index, element) {
238
+ $(element).attr('data-slick-index', index);
239
+ });
240
+
241
+ _.$slidesCache = _.$slides;
242
+
243
+ _.reinit();
244
+
245
+ };
246
+
247
+ Slick.prototype.animateHeight = function() {
248
+ var _ = this;
249
+ if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
250
+ var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
251
+ _.$list.animate({
252
+ height: targetHeight
253
+ }, _.options.speed);
254
+ }
255
+ };
256
+
257
+ Slick.prototype.animateSlide = function(targetLeft, callback) {
258
+
259
+ var animProps = {},
260
+ _ = this;
261
+
262
+ _.animateHeight();
263
+
264
+ if (_.options.rtl === true && _.options.vertical === false) {
265
+ targetLeft = -targetLeft;
266
+ }
267
+ if (_.transformsEnabled === false) {
268
+ if (_.options.vertical === false) {
269
+ _.$slideTrack.animate({
270
+ left: targetLeft
271
+ }, _.options.speed, _.options.easing, callback);
272
+ } else {
273
+ _.$slideTrack.animate({
274
+ top: targetLeft
275
+ }, _.options.speed, _.options.easing, callback);
276
+ }
277
+
278
+ } else {
279
+
280
+ if (_.cssTransitions === false) {
281
+ if (_.options.rtl === true) {
282
+ _.currentLeft = -(_.currentLeft);
283
+ }
284
+ $({
285
+ animStart: _.currentLeft
286
+ }).animate({
287
+ animStart: targetLeft
288
+ }, {
289
+ duration: _.options.speed,
290
+ easing: _.options.easing,
291
+ step: function(now) {
292
+ now = Math.ceil(now);
293
+ if (_.options.vertical === false) {
294
+ animProps[_.animType] = 'translate(' +
295
+ now + 'px, 0px)';
296
+ _.$slideTrack.css(animProps);
297
+ } else {
298
+ animProps[_.animType] = 'translate(0px,' +
299
+ now + 'px)';
300
+ _.$slideTrack.css(animProps);
301
+ }
302
+ },
303
+ complete: function() {
304
+ if (callback) {
305
+ callback.call();