Version Description
Download this release
Release Info
Developer | sayful |
Plugin | Carousel Slider |
Version | 1.9.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.8 to 1.9.2
- assets/css/gutenberg-block.css +1 -0
- assets/css/style.css +1 -1
- assets/js/gutenberg-block.js +223 -0
- assets/js/public/CarouselSlider.js +81 -0
- assets/js/public/main.js +3 -0
- assets/js/script.js +87 -0
- assets/js/script.min.js +1 -0
- assets/lib/owl-carousel/owl.carousel.js +294 -121
- assets/lib/owl-carousel/owl.carousel.min.js +5 -5
- assets/scss/admin.scss +0 -12
- assets/scss/admin/_datepicker.scss +0 -46
- assets/scss/admin/_documentation.scss +0 -44
- assets/scss/admin/_meta-box.scss +0 -239
- assets/scss/admin/_modal.scss +0 -108
- assets/scss/admin/_model.scss +0 -140
- assets/scss/admin/_select2.scss +0 -634
- assets/scss/admin/_tab.scss +0 -79
- assets/scss/admin/_toggle.scss +0 -51
- assets/scss/admin/_tooltip.scss +0 -133
- assets/scss/admin/_widget.scss +0 -10
- assets/scss/admin/index.php +0 -2
- assets/scss/index.php +0 -2
- assets/scss/public/_animate.scss +0 -96
- assets/scss/public/_autoheight.scss +0 -4
- assets/scss/public/_button.scss +0 -39
- assets/scss/public/_content-carousel.scss +0 -162
- assets/scss/public/_core.scss +0 -108
- assets/scss/public/_image-carousel.scss +0 -34
- assets/scss/public/_lazyload.scss +0 -17
- assets/scss/public/_magnific-popup.scss +0 -603
- assets/scss/public/_post-carousel.scss +0 -120
- assets/scss/public/_post-carousel2.scss +0 -63
- assets/scss/public/_product-carousel.scss +0 -180
- assets/scss/public/_product_modal.scss +0 -197
- assets/scss/public/_theme.scss +0 -136
- assets/scss/public/_variables.scss +0 -5
- assets/scss/public/_video.scss +0 -38
- assets/scss/public/index.php +0 -2
- assets/scss/style.scss +0 -15
- assets/scss/utilities/_mixins.scss +0 -74
- assets/scss/utilities/_variables.scss +0 -145
- carousel-slider.php +127 -22
- includes/class-carousel-slider-activator.php +14 -12
- includes/class-carousel-slider-admin.php +38 -20
- includes/class-carousel-slider-credit.php +3 -3
- includes/class-carousel-slider-documentation.php +3 -3
- includes/class-carousel-slider-form.php +6 -3
- includes/class-carousel-slider-gutenberg-block.php +90 -0
- includes/class-carousel-slider-hero-carousel.php +3 -3
- includes/class-carousel-slider-i18n.php +3 -3
- includes/class-carousel-slider-meta-box.php +21 -5
- includes/class-carousel-slider-preview.php +45 -0
- includes/class-carousel-slider-product.php +28 -12
- includes/class-carousel-slider-script.php +32 -113
- includes/class-carousel-slider-vc-element.php +14 -16
- includes/functions-carousel-slider.php +30 -19
- readme.txt +32 -3
- shortcodes/class-carousel-slider-deprecated-shortcode.php +3 -3
- shortcodes/class-carousel-slider-shortcode.php +16 -8
- templates/admin/post-carousel.php +0 -6
- templates/public/hero-banner-slider.php +2 -2
- templates/public/post-carousel.php +7 -3
- templates/public/preview-slider.php +64 -0
- templates/public/product-carousel-2.php +4 -0
- templates/public/product-carousel.php +3 -0
assets/css/gutenberg-block.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.carousel-slider-block-logo{max-width:50px !important;max-height:50px;float:left;margin-right:15px;margin-bottom:10px}#carousel-slider-filter-input-main{clear:both}.carousel-slider-iframe-container{position:relative}.carousel-slider-iframe-overlay{position:absolute;top:0;right:0;bottom:0;left:0}.carousel-slider-block-slider-selector{background-color:lightgrey;border-bottom:1px solid;margin-bottom:5px;padding:4px}.carousel-slider-filter-input{border:1px solid #ddd;border-radius:5px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);box-shadow:inset 0 1px 2px rgba(0,0,0,0.07);padding:0;width:100%;margin-top:10px;margin-bottom:10px;position:relative}.carousel-slider-filter-input .blocks-select-control__input{margin:0 0 0 0}.carousel-slider-filter-input-el{border:none !important;-webkit-box-shadow:none !important;box-shadow:none !important;width:95%;position:relative;display:inline-block}.carousel-slider-filter-input-icon{display:inline-block;content:'▾';color:#999;font-size:14px;right:.77em;position:absolute;top:.2em}#carousel-slider-sliderFilter-main{border-top:none;border-left:none;border-bottom:none}#carousel-slider-sliderFilter-sidebar{border-top:none;border-left:none;border-bottom:none;width:95%}#carousel-slider-filter-input-icon-sidebar{font-size:1.4em;top:.35em;right:.45em}.carousel-slider-filter-input-el.blocks-select-control__input>.components-base-control__field{margin-bottom:0}.carousel-slider-filter-option-container{display:none;position:absolute;background-color:#edeff0;z-index:10000;padding:4px;width:100%;border-radius:5px;max-height:200px;overflow:scroll;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important;box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12) !important}.carousel-slider-filter-option{list-style:none}.carousel-slider-filter-option:hover{background-color:#0073aa;color:white}
|
assets/css/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.carousel-slider{display:none;width:100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}.carousel-slider .owl-stage{position:relative;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-backface-visibility:hidden;backface-visibility:hidden}.carousel-slider .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.carousel-slider .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px)}.carousel-slider .owl-carousel .owl-wrapper,.carousel-slider .owl-carousel .owl-item{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.carousel-slider .owl-item{position:relative;min-height:1px;float:left;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.carousel-slider .owl-item img{display:block;width:100%}.carousel-slider .owl-nav.disabled,.carousel-slider .owl-dots.disabled{display:none}.carousel-slider .owl-nav .owl-prev,.carousel-slider .owl-nav .owl-next,.carousel-slider .owl-dot{cursor:hand;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.carousel-slider .owl-nav button.owl-prev,.carousel-slider .owl-nav button.owl-next,.carousel-slider button.owl-dot{background:none;color:inherit;border:none;padding:0 !important;font:inherit}.carousel-slider.owl-loaded{display:block}.carousel-slider.owl-loading{opacity:0;display:block}.carousel-slider.owl-hidden{opacity:0}.carousel-slider.owl-refresh .owl-item{visibility:hidden}.carousel-slider.owl-drag .owl-item{-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.carousel-slider.owl-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.carousel-slider.owl-rtl{direction:rtl}.carousel-slider.owl-rtl .owl-item{float:right}.no-js .carousel-slider{display:block}.carousel-slider .animated{-webkit-animation-duration:1000ms;animation-duration:1000ms;-webkit-animation-fill-mode:both;animation-fill-mode:both}.carousel-slider .owl-animated-in{z-index:0}.carousel-slider .owl-animated-out{z-index:1}.carousel-slider .fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}.carousel-slider .fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}.carousel-slider .fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}.carousel-slider .fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}.carousel-slider .fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}.carousel-slider .zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInRight{from{opacity:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRight{from{opacity:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes zoomIn{from{opacity:0;-webkit-transform:scale3d(0.3, 0.3, 0.3);transform:scale3d(0.3, 0.3, 0.3)}50%{opacity:1}}@keyframes zoomIn{from{opacity:0;-webkit-transform:scale3d(0.3, 0.3, 0.3);transform:scale3d(0.3, 0.3, 0.3)}50%{opacity:1}}.owl-height{-webkit-transition:height 500ms ease-in-out;-o-transition:height 500ms ease-in-out;transition:height 500ms ease-in-out}.carousel-slider .owl-item img.owl-lazy{background:url("../img/ajax-loader.gif") no-repeat center;min-width:32px;min-height:32px}.carousel-slider .carousel-slider-video-wrapper{position:relative;height:100%;background:#000}.carousel-slider .carousel-slider-video-play-icon{position:absolute;height:40px;width:40px;left:50%;top:50%;margin-left:-20px;margin-top:-20px;background:url("../img/play.svg") no-repeat;cursor:pointer;z-index:2;-webkit-backface-visibility:hidden;-webkit-transition:-webkit-transform 100ms ease;transition:-webkit-transform 100ms ease;-o-transition:transform 100ms ease;transition:transform 100ms ease;transition:transform 100ms ease, -webkit-transform 100ms ease}.carousel-slider .carousel-slider-video-overlay{position:absolute;height:100%;width:100%;left:0;top:0;background-color:rgba(0,0,0,0.5);z-index:1}.carousel-slider .carousel-slider-video-play-icon:hover{-webkit-transform:scale(1.3, 1.3);-ms-transform:scale(1.3, 1.3);transform:scale(1.3, 1.3)}.carousel-slider .owl-nav .owl-prev,.carousel-slider .owl-nav .owl-next{height:48px;width:48px;display:inline-block;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);opacity:0;margin:0;padding:0;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.carousel-slider .owl-nav .owl-prev{left:0}.carousel-slider .owl-nav .owl-next{right:0}.carousel-slider:hover .owl-nav .owl-prev,.carousel-slider:hover .owl-nav .owl-next{opacity:1}.carousel-slider.arrows-visible-always .owl-prev,.carousel-slider.arrows-visible-always .owl-next{opacity:1}.carousel-slider.arrows-outside .owl-nav .owl-prev{left:-48px}.carousel-slider.arrows-outside .owl-nav .owl-next{right:-48px}.carousel-slider .owl-dots{text-align:center;-webkit-tap-highlight-color:transparent;margin-top:10px}.carousel-slider .owl-dots .owl-dot{display:inline-block;zoom:1;*display:inline}.carousel-slider .owl-dots .owl-dot span{width:10px;height:10px;margin:4px 8px;background-color:#9e9e9e;display:block;-webkit-backface-visibility:visible;-webkit-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease}.carousel-slider .owl-dots .owl-dot.active span,.carousel-slider .owl-dots .owl-dot:hover span{background-color:#4caf50}.carousel-slider.dots-center .owl-dots{text-align:center}.carousel-slider.dots-left .owl-dots{text-align:left}.carousel-slider.dots-left .owl-dots:first-child span{margin-left:0}.carousel-slider.dots-right .owl-dots{text-align:right}.carousel-slider.dots-right .owl-dots:last-child span{margin-right:0}.carousel-slider.dots-visible-hover .owl-dots{opacity:0}.carousel-slider.dots-visible-hover:hover .owl-dots{opacity:1}.carousel-slider.dots-circle .owl-dots .owl-dot span{border-radius:9999px}.carousel-slider__post{border:1px solid #f1f1f1;float:left;height:450px;width:100%;position:relative;display:block;overflow:hidden}.carousel-slider__post-content{bottom:0;position:absolute;top:0;-webkit-transition:all 0.2s ease 0s;-o-transition:all 0.2s ease 0s;transition:all 0.2s ease 0s;width:100%;display:block}.carousel-slider__post-image{border-bottom:1px solid #f1f1f1;display:block;height:207px;line-height:0;margin:0 auto;overflow:hidden;text-align:center;width:100%;background-color:#f1f1f1;background-size:cover;background-position:center center}.carousel-slider__post-title{display:block;margin:10px 15px 0;max-height:70px}.carousel-slider__post-title h1{color:#4a4a4a;font:bold 18px/1.4em Arial,sans-serif;margin-bottom:0;margin-top:0}.carousel-slider__post-excerpt{color:#7d7d7d;font-size:14px;line-height:1.5em;padding:10px 15px 5px;text-align:left;width:100%;position:absolute;top:285px}.carousel-slider__post-excerpt-overlay{background:transparent none repeat scroll 0 0;display:block;height:20px;width:100%}.carousel-slider__post-meta{bottom:10px;color:#8e8e8e;font-size:12px;left:0;padding:0 15px;position:absolute;width:100%;display:block}.carousel-slider__post-publication-meta{background-color:white;display:block;padding-top:15px;width:100%;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.carousel-slider__post-details-info{display:inline-block}.carousel-slider__post-author{display:block;font-style:normal;line-height:1em;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;margin-bottom:5px}.carousel-slider__post-author-link{color:#8e8e8e;display:inline-block;max-width:175px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.carousel-slider__post-category{color:#4cc1be;text-transform:uppercase;position:absolute;right:15px;top:50px;z-index:1}.carousel-slider__product{position:relative;text-align:center;border:1px solid #f1f1f1}.carousel-slider__product .woocommerce-LoopProduct-link{display:block;overflow:hidden;margin:0 0 .5em}.carousel-slider__product .onsale{border:0 none;line-height:1;margin:0;padding:15px 5px;color:#f1f1f1;background-color:#96588a;position:absolute;left:8px;top:8px;border-radius:50%}.carousel-slider__product h3{padding:.5em 1em;text-align:left;margin:0;font-size:1em;color:#333}.carousel-slider__product a{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}.carousel-slider__product a img{width:100%;height:auto;display:block;-webkit-box-shadow:none;box-shadow:none}.carousel-slider__product strong{display:block}.carousel-slider__product .price{color:#333;display:inline-block;font-weight:normal;margin:.5em 1em;font-size:.857em;float:left}.carousel-slider__product .price del{color:inherit;background-color:transparent;opacity:0.5;display:inline-block}.carousel-slider__product .price ins{color:inherit;background-color:transparent;font-weight:bold}.carousel-slider__product .star-rating{color:#96588a;display:inline-block;margin:.5em 1em;float:right;overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:'star'}.carousel-slider__product .star-rating:before{content:"\73\73\73\73\73";float:left;top:0;left:0;position:absolute}.carousel-slider__product .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.carousel-slider__product .star-rating span:before{content:"\53\53\53\53\53";top:0;position:absolute;left:0}.carousel-slider__product a.add_to_cart_button,.carousel-slider__product a.added_to_cart,.carousel-slider__product a.quick_view{color:#f1f1f1;background-color:#96588a;margin:1em;line-height:1;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:.5em 1em;font-weight:normal;border-radius:3px;left:auto;border:0;white-space:nowrap;display:block;background-image:none;box-shadow:none;-webkit-box-shadow:none;text-shadow:none}.carousel-slider__product a.add_to_cart_button:hover,.carousel-slider__product a.added_to_cart:hover,.carousel-slider__product a.quick_view:hover{color:#f1f1f1;background-color:#96588a;text-decoration:none;background-image:none}.carousel-slider__product a.add_to_cart_button.loading{opacity:0.25;padding-right:2.618em}.carousel-slider__product a.add_to_cart_button.loading:after{font-family:"WooCommerce";content:"\e01c";vertical-align:top;-webkit-font-smoothing:antialiased;font-weight:normal;position:absolute;top:.618em;right:1em;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}.carousel-slider__product a.add_to_cart_button.added:after{font-family:'WooCommerce';content:"\e017";margin-left:.53em;vertical-align:bottom}.carousel-slider-hero__cell__background{background-size:cover;background-position:center;background-repeat:no-repeat;min-width:100%;min-height:100%;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-duration:10s;-o-transition-duration:10s;transition-duration:10s}.carousel-slider-hero__cell__background.carousel-slider-hero-ken-out{-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3)}.carousel-slider .active .carousel-slider-hero__cell__background{-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:20s;animation-duration:20s}.carousel-slider .active .carousel-slider-hero__cell__background.carousel-slider-hero-ken-in{-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3);-webkit-animation-name:ken-burns-in;animation-name:ken-burns-in}.carousel-slider .active .carousel-slider-hero__cell__background.carousel-slider-hero-ken-out{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-animation-name:ken-burns-out;animation-name:ken-burns-out}.carousel-slider-hero__cell{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;overflow:hidden;height:400px}.carousel-slider-hero__cell:focus{outline:0}.carousel-slider-hero__cell__inner{background-repeat:no-repeat;background-position:center;position:absolute;top:0;left:0;bottom:0;right:0;padding:50px}.carousel-slider-hero__cell__inner,.carousel-slider-hero__cell__inner:hover{color:white;display:-webkit-box;display:-ms-flexbox;display:flex}.carousel-slider-hero__cell__background_overlay{position:absolute;z-index:0;top:0;bottom:0;left:0;right:0}.carousel-slider-hero__cell__content{position:relative;z-index:1;width:100%;max-width:1140px}.carousel-slider-hero__cell__heading{font-size:40px;font-weight:bold;line-height:1}.carousel-slider-hero__cell__description{font-size:20px;line-height:1.4}.carousel-slider-hero__cell__heading:not(:last-child),.carousel-slider-hero__cell__description:not(:last-child){margin-bottom:30px}.carousel-slider-hero__cell__button__one{margin-right:5px}.carousel-slider-hero__cell__button__two{margin-left:5px}.carousel-slider-hero__cell__button__one,.carousel-slider-hero__cell__button__two{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.carousel-slider-hero__cell__inner.carousel-slider--v-position-top{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.carousel-slider-hero__cell__inner.carousel-slider--v-position-bottom{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.carousel-slider-hero__cell__inner.carousel-slider--v-position-middle{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.carousel-slider-hero__cell__inner.carousel-slider--h-position-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.carousel-slider-hero__cell__inner.carousel-slider--h-position-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.carousel-slider-hero__cell__inner.carousel-slider--h-position-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.carousel-slider-hero__cell__inner.carousel-slider--text-left{text-align:left}.carousel-slider-hero__cell__inner.carousel-slider--text-right{text-align:right}.carousel-slider-hero__cell__inner.carousel-slider--text-center{text-align:center}@media (max-width: 767px){.carousel-slider-hero__cell__inner{padding:30px}.carousel-slider-hero__cell__heading{font-size:24px;line-height:1;margin-bottom:15px}.carousel-slider-hero__cell__description{font-size:14px;line-height:1.4;margin-bottom:15px}}.carousel-slider .carousel-slider__item{position:relative}.carousel-slider .carousel-slider__item img{display:block;margin-left:auto;margin-right:auto;max-width:100%;height:auto}.carousel-slider .carousel-slider__caption{position:relative}.carousel-slider .carousel-slider__caption .title{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;color:#474747;font-size:16px;font-weight:500;margin:10px 0 0;text-align:center}.carousel-slider .carousel-slider__caption .caption{font-size:14px;font-weight:300;margin:10px 0 0;text-align:center}.cs-hero-button{-webkit-appearance:none;-webkit-font-smoothing:inherit;display:inline-block;font-size:1rem;line-height:1;padding:0.75em 1em;border-radius:0;text-decoration:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all 200ms ease-in-out;-o-transition:all 200ms ease-in-out;transition:all 200ms ease-in-out}.cs-hero-button:hover{text-decoration:none}.cs-hero-button--normal{opacity:0.9;filter:alpha(opacity=90)}.cs-hero-button--stroke{background:transparent;border-width:1px;border-style:solid;border-color:transparent}.cs-hero-button--medium{font-size:1.2rem;padding:0.9em 1.2em}.cs-hero-button--large{font-size:1.5rem;padding:0.9em 1.6em}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:1043;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-preloader{color:#CCC;position:absolute;top:50%;width:auto;text-align:center;margin-top:-0.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#CCC}.mfp-preloader a:hover{color:#fff}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;-webkit-box-shadow:none;box-shadow:none;-ms-touch-action:manipulation;touch-action:manipulation}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;padding:0 0 18px 10px;color:#fff;font-style:normal;font-size:28px;font-family:Arial, Baskerville, monospace}.mfp-close:hover,.mfp-close:focus{opacity:1}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#fff;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;top:50%;margin:-55px 0 0;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1}.mfp-arrow:before,.mfp-arrow:after{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after{border-right:17px solid #fff;margin-left:31px}.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after{border-left:17px solid #fff;margin-left:39px}.mfp-arrow-right:before{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-webkit-box-shadow:0 0 8px rgba(0,0,0,0.6);box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;-webkit-box-shadow:0 0 8px rgba(0,0,0,0.6);box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-with-zoom .mfp-container,.mfp-with-zoom.mfp-bg{opacity:0;-webkit-backface-visibility:hidden;-webkit-transition:all 0.3s ease-out;-o-transition:all 0.3s ease-out;transition:all 0.3s ease-out}.mfp-with-zoom.mfp-ready .mfp-container{opacity:1}.mfp-with-zoom.mfp-ready.mfp-bg{opacity:0.8}.mfp-with-zoom.mfp-removing .mfp-container,.mfp-with-zoom.mfp-removing.mfp-bg{opacity:0}.mfp-content .product{background-color:#ffffff;display:table;margin:0 auto;padding:15px}.mfp-content .product .images{display:inline-block;float:left;max-width:600px}.mfp-content .product .images img{display:block}.mfp-content .product .onsale{left:24px;top:24px;position:absolute}.mfp-content .product .summary{display:inline-block;margin-left:15px;width:300px}.mfp-content .product .product_title,.mfp-content .product .description{margin:1em 0}.mfp-content .product .price{display:inline-block;font-weight:normal;margin:.5em 1em;font-size:.857em;float:left}.mfp-content .product .price del{color:inherit;background-color:transparent;opacity:0.5;display:inline-block}.mfp-content .product .price ins{color:inherit;background-color:transparent;font-weight:bold}.mfp-content .product .star-rating{display:inline-block;margin:.5em 1em;float:right;overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:'star'}.mfp-content .product .star-rating:before{content:"\73\73\73\73\73";float:left;top:0;left:0;position:absolute}.mfp-content .product .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.mfp-content .product .star-rating span:before{content:"\53\53\53\53\53";top:0;position:absolute;left:0}.mfp-content .product a.add_to_cart_button,.mfp-content .product a.added_to_cart{margin:0;line-height:1;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:.5em 1em;font-weight:normal;border-radius:3px;left:auto;border:0;white-space:nowrap;display:inline-block;background-image:none;box-shadow:none;-webkit-box-shadow:none;text-shadow:none}.mfp-content .product a.add_to_cart_button:hover,.mfp-content .product a.added_to_cart:hover{text-decoration:none;background-image:none}.mfp-content .product a.add_to_cart_button.loading{opacity:0.25;padding-right:2.618em}.mfp-content .product a.add_to_cart_button.loading:after{font-family:"WooCommerce";content:"\e01c";vertical-align:top;-webkit-font-smoothing:antialiased;font-weight:normal;position:absolute;top:.618em;right:1em;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}.mfp-content .product a.add_to_cart_button.added:after{font-family:'WooCommerce';content:"\e017";margin-left:.53em;vertical-align:bottom}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{max-width:945px;margin-top:40px;margin-bottom:40px}@media (max-width: 600px){.mfp-content .product .images{margin-bottom:30px}.mfp-content .product .summary{display:block;margin:0;width:100%}}@media (min-width: 601px){.mfp-content .product .images{display:inline-block;width:49%}.mfp-content .product .summary{display:inline-block;margin:0 0 0 1%;width:49%}}
|
1 |
+
.carousel-slider{display:none;width:100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}.carousel-slider .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-webkit-backface-visibility:hidden;backface-visibility:hidden}.carousel-slider .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.carousel-slider .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px)}.carousel-slider .owl-carousel .owl-wrapper,.carousel-slider .owl-carousel .owl-item{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.carousel-slider .owl-item{position:relative;min-height:1px;float:left;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.carousel-slider .owl-item img{display:block;width:100%}.carousel-slider .owl-nav.disabled,.carousel-slider .owl-dots.disabled{display:none}.carousel-slider .owl-nav .owl-prev,.carousel-slider .owl-nav .owl-next,.carousel-slider .owl-dot{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.carousel-slider .owl-nav button.owl-prev,.carousel-slider .owl-nav button.owl-next,.carousel-slider button.owl-dot{background:none;color:inherit;border:none;padding:0 !important;font:inherit}.carousel-slider.owl-loaded{display:block}.carousel-slider.owl-loading{opacity:0;display:block}.carousel-slider.owl-hidden{opacity:0}.carousel-slider.owl-refresh .owl-item{visibility:hidden}.carousel-slider.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.carousel-slider.owl-grab{cursor:move;cursor:-webkit-grab;cursor:grab}.carousel-slider.owl-rtl{direction:rtl}.carousel-slider.owl-rtl .owl-item{float:right}.no-js .carousel-slider{display:block}.carousel-slider .animated{-webkit-animation-duration:1000ms;animation-duration:1000ms;-webkit-animation-fill-mode:both;animation-fill-mode:both}.carousel-slider .owl-animated-in{z-index:0}.carousel-slider .owl-animated-out{z-index:1}.carousel-slider .fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}.carousel-slider .fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}.carousel-slider .fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}.carousel-slider .fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}.carousel-slider .fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}.carousel-slider .zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInRight{from{opacity:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRight{from{opacity:0;-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes zoomIn{from{opacity:0;-webkit-transform:scale3d(0.3, 0.3, 0.3);transform:scale3d(0.3, 0.3, 0.3)}50%{opacity:1}}@keyframes zoomIn{from{opacity:0;-webkit-transform:scale3d(0.3, 0.3, 0.3);transform:scale3d(0.3, 0.3, 0.3)}50%{opacity:1}}.owl-height{-webkit-transition:height 500ms ease-in-out;-o-transition:height 500ms ease-in-out;transition:height 500ms ease-in-out}.carousel-slider .owl-item img.owl-lazy{background:url("../img/ajax-loader.gif") no-repeat center;min-width:32px;min-height:32px}.carousel-slider .carousel-slider-video-wrapper{position:relative;height:100%;background:#000}.carousel-slider .carousel-slider-video-play-icon{position:absolute;height:40px;width:40px;left:50%;top:50%;margin-left:-20px;margin-top:-20px;background:url("../img/play.svg") no-repeat;cursor:pointer;z-index:2;-webkit-backface-visibility:hidden;-webkit-transition:-webkit-transform 100ms ease;transition:-webkit-transform 100ms ease;-o-transition:transform 100ms ease;transition:transform 100ms ease;transition:transform 100ms ease, -webkit-transform 100ms ease}.carousel-slider .carousel-slider-video-overlay{position:absolute;height:100%;width:100%;left:0;top:0;background-color:rgba(0,0,0,0.5);z-index:1}.carousel-slider .carousel-slider-video-play-icon:hover{-webkit-transform:scale(1.3, 1.3);-ms-transform:scale(1.3, 1.3);transform:scale(1.3, 1.3)}.carousel-slider .owl-nav .owl-prev,.carousel-slider .owl-nav .owl-next{height:48px;width:48px;display:inline-block;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);opacity:0;margin:0;padding:0;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.carousel-slider .owl-nav .owl-prev{left:0}.carousel-slider .owl-nav .owl-next{right:0}.carousel-slider:hover .owl-nav .owl-prev,.carousel-slider:hover .owl-nav .owl-next{opacity:1}.carousel-slider.arrows-visible-always .owl-prev,.carousel-slider.arrows-visible-always .owl-next{opacity:1}.carousel-slider.arrows-outside .owl-nav .owl-prev{left:-48px}.carousel-slider.arrows-outside .owl-nav .owl-next{right:-48px}.carousel-slider .owl-dots{text-align:center;-webkit-tap-highlight-color:transparent;margin-top:10px}.carousel-slider .owl-dots .owl-dot{display:inline-block;zoom:1;*display:inline}.carousel-slider .owl-dots .owl-dot span{width:10px;height:10px;margin:4px 8px;background-color:#9e9e9e;display:block;-webkit-backface-visibility:visible;-webkit-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease}.carousel-slider .owl-dots .owl-dot.active span,.carousel-slider .owl-dots .owl-dot:hover span{background-color:#4caf50}.carousel-slider.dots-center .owl-dots{text-align:center}.carousel-slider.dots-left .owl-dots{text-align:left}.carousel-slider.dots-left .owl-dots:first-child span{margin-left:0}.carousel-slider.dots-right .owl-dots{text-align:right}.carousel-slider.dots-right .owl-dots:last-child span{margin-right:0}.carousel-slider.dots-visible-hover .owl-dots{opacity:0}.carousel-slider.dots-visible-hover:hover .owl-dots{opacity:1}.carousel-slider.dots-circle .owl-dots .owl-dot span{border-radius:9999px}.carousel-slider[data-slide-type="post-carousel"] .owl-stage{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.carousel-slider[data-slide-type="post-carousel"] .owl-item{display:-webkit-box;display:-ms-flexbox;display:flex;height:auto}.carousel-slider__post{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.1),0 0 0 1px rgba(0,0,0,0.1);box-shadow:0 1px 2px rgba(0,0,0,0.1),0 0 0 1px rgba(0,0,0,0.1);margin:2px;position:relative;width:100%}.carousel-slider__post-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.carousel-slider__post-image{background-color:#f1f1f1;background-size:cover;background-position:center center;border-top-left-radius:4px;border-top-right-radius:4px;display:block;line-height:0;margin:0 auto;overflow:hidden;padding-top:66.6666%;position:relative;text-align:center;width:100%}.carousel-slider__post-title{display:block;margin:1rem;min-height:3.75em}.carousel-slider__post-title h1{font-size:1.25rem;margin:0}.carousel-slider__post-excerpt{font-size:1rem;line-height:1.6;margin:1rem 1rem 2rem;text-align:left}.carousel-slider__post-meta{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:0.75rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:auto 1rem 1rem}.carousel-slider__post-publication-meta{display:block;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.carousel-slider__post-author{display:block;font-style:normal;line-height:1.6;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.carousel-slider__post-author-link{display:inline-block;max-width:175px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.carousel-slider__post-category{text-transform:uppercase}.carousel-slider[data-slide-type="product-carousel"] .owl-stage{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.carousel-slider[data-slide-type="product-carousel"] .owl-item{display:-webkit-box;display:-ms-flexbox;display:flex;height:auto}.carousel-slider .woocommerce-loop-category__title{font-size:1.25rem;margin:1rem}.carousel-slider__product{position:relative;text-align:center;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.1),0 0 0 1px rgba(0,0,0,0.1);box-shadow:0 1px 2px rgba(0,0,0,0.1),0 0 0 1px rgba(0,0,0,0.1);margin:2px;width:100%}.carousel-slider__product .woocommerce-LoopProduct-link{display:block;overflow:hidden;margin:0}.carousel-slider__product .onsale{border:0 none;line-height:1;margin:0;padding:0.5rem;color:#f1f1f1;background-color:#96588a;position:absolute;left:1rem;top:1rem}.carousel-slider__product h3{padding:0;text-align:left;margin:1rem;font-size:1.25rem;color:#333}.carousel-slider__product a{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}.carousel-slider__product a img{width:100%;height:auto;display:block;-webkit-box-shadow:none;box-shadow:none}.carousel-slider__product strong{display:block}.carousel-slider__product .price{color:#333;display:inline-block;font-weight:normal;margin:0 0.5rem 0 1rem;font-size:.875rem;float:left}.carousel-slider__product .price del{color:inherit;background-color:transparent;opacity:0.5;display:inline-block}.carousel-slider__product .price ins{color:inherit;background-color:transparent;font-weight:bold}.carousel-slider__product .star-rating{display:inline-block;margin:0 1rem 0 0.5rem;float:right;overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:'star'}.carousel-slider__product .star-rating:before{content:"\73\73\73\73\73";float:left;top:0;left:0;position:absolute}.carousel-slider__product .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.carousel-slider__product .star-rating span:before{color:#96588a;content:"\53\53\53\53\53";top:0;position:absolute;left:0}.carousel-slider__product a.add_to_cart_button,.carousel-slider__product a.added_to_cart,.carousel-slider__product a.quick_view{color:#f1f1f1;background-color:#96588a;margin:1rem;line-height:1;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:.5em 1em;font-weight:normal;border-radius:3px;left:auto;border:0;white-space:nowrap;display:block;background-image:none;box-shadow:none;-webkit-box-shadow:none;text-shadow:none}.carousel-slider__product a.add_to_cart_button:hover,.carousel-slider__product a.added_to_cart:hover,.carousel-slider__product a.quick_view:hover{color:#f1f1f1;background-color:#96588a;text-decoration:none;background-image:none}.carousel-slider__product a.add_to_cart_button.loading{opacity:0.25;padding-right:2.618em}.carousel-slider__product a.add_to_cart_button.loading:after{font-family:"WooCommerce";content:"\e01c";vertical-align:top;-webkit-font-smoothing:antialiased;font-weight:normal;position:absolute;top:.618em;right:1em;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}.carousel-slider__product a.add_to_cart_button.added:after{font-family:'WooCommerce';content:"\e017";margin-left:.53em;vertical-align:bottom}.carousel-slider-hero__cell__background{background-size:cover;background-position:center;background-repeat:no-repeat;min-width:100%;min-height:100%;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-duration:10s;-o-transition-duration:10s;transition-duration:10s}.carousel-slider-hero__cell__background.carousel-slider-hero-ken-out{-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3)}.carousel-slider .active .carousel-slider-hero__cell__background{-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:20s;animation-duration:20s}.carousel-slider .active .carousel-slider-hero__cell__background.carousel-slider-hero-ken-in{-webkit-transform:scale(1.3);-ms-transform:scale(1.3);transform:scale(1.3);-webkit-animation-name:ken-burns-in;animation-name:ken-burns-in}.carousel-slider .active .carousel-slider-hero__cell__background.carousel-slider-hero-ken-out{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);-webkit-animation-name:ken-burns-out;animation-name:ken-burns-out}.carousel-slider-hero__cell{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;overflow:hidden;height:400px}.carousel-slider-hero__cell:focus{outline:0}.carousel-slider-hero__cell__inner{background-repeat:no-repeat;background-position:center;position:absolute;top:0;left:0;bottom:0;right:0;padding:50px}.carousel-slider-hero__cell__inner,.carousel-slider-hero__cell__inner:hover{color:white;display:-webkit-box;display:-ms-flexbox;display:flex}.carousel-slider-hero__cell__background_overlay{position:absolute;z-index:0;top:0;bottom:0;left:0;right:0}.carousel-slider-hero__cell__content{position:relative;z-index:1;width:100%;max-width:1140px}.carousel-slider-hero__cell__heading{font-size:40px;font-weight:bold;line-height:1}.carousel-slider-hero__cell__description{font-size:20px;line-height:1.4}.carousel-slider-hero__cell__heading:not(:last-child),.carousel-slider-hero__cell__description:not(:last-child){margin-bottom:30px}.carousel-slider-hero__cell__button__one{margin-right:5px}.carousel-slider-hero__cell__button__two{margin-left:5px}.carousel-slider-hero__cell__button__one,.carousel-slider-hero__cell__button__two{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.carousel-slider-hero__cell__inner.carousel-slider--v-position-top{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.carousel-slider-hero__cell__inner.carousel-slider--v-position-bottom{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.carousel-slider-hero__cell__inner.carousel-slider--v-position-middle{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.carousel-slider-hero__cell__inner.carousel-slider--h-position-left{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.carousel-slider-hero__cell__inner.carousel-slider--h-position-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.carousel-slider-hero__cell__inner.carousel-slider--h-position-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.carousel-slider-hero__cell__inner.carousel-slider--text-left{text-align:left}.carousel-slider-hero__cell__inner.carousel-slider--text-right{text-align:right}.carousel-slider-hero__cell__inner.carousel-slider--text-center{text-align:center}@media (max-width: 767px){.carousel-slider-hero__cell__inner{padding:30px}.carousel-slider-hero__cell__heading{font-size:24px;line-height:1;margin-bottom:15px}.carousel-slider-hero__cell__description{font-size:14px;line-height:1.4;margin-bottom:15px}}.carousel-slider .carousel-slider__item{position:relative}.carousel-slider .carousel-slider__item img{display:block;margin-left:auto;margin-right:auto;max-width:100%;height:auto}.carousel-slider .carousel-slider__caption{position:relative}.carousel-slider .carousel-slider__caption .title{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;color:#474747;font-size:16px;font-weight:500;margin:10px 0 0;text-align:center}.carousel-slider .carousel-slider__caption .caption{font-size:14px;font-weight:300;margin:10px 0 0;text-align:center}.cs-hero-button{-webkit-appearance:none;-webkit-font-smoothing:inherit;display:inline-block;font-size:1rem;line-height:1;padding:0.75em 1em;border-radius:0;text-decoration:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all 200ms ease-in-out;-o-transition:all 200ms ease-in-out;transition:all 200ms ease-in-out}.cs-hero-button:hover{text-decoration:none}.cs-hero-button--normal{opacity:0.9;filter:alpha(opacity=90)}.cs-hero-button--stroke{background:transparent;border-width:1px;border-style:solid;border-color:transparent}.cs-hero-button--medium{font-size:1.2rem;padding:0.9em 1.2em}.cs-hero-button--large{font-size:1.5rem;padding:0.9em 1.6em}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:1043;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-preloader{color:#CCC;position:absolute;top:50%;width:auto;text-align:center;margin-top:-0.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#CCC}.mfp-preloader a:hover{color:#fff}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;-webkit-box-shadow:none;box-shadow:none;-ms-touch-action:manipulation;touch-action:manipulation}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;padding:0 0 18px 10px;color:#fff;font-style:normal;font-size:28px;font-family:Arial, Baskerville, monospace}.mfp-close:hover,.mfp-close:focus{opacity:1}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#fff;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;top:50%;margin:-55px 0 0;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1}.mfp-arrow:before,.mfp-arrow:after{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after{border-right:17px solid #fff;margin-left:31px}.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after{border-left:17px solid #fff;margin-left:39px}.mfp-arrow-right:before{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-webkit-box-shadow:0 0 8px rgba(0,0,0,0.6);box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;-webkit-box-shadow:0 0 8px rgba(0,0,0,0.6);box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-with-zoom .mfp-container,.mfp-with-zoom.mfp-bg{opacity:0;-webkit-backface-visibility:hidden;-webkit-transition:all 0.3s ease-out;-o-transition:all 0.3s ease-out;transition:all 0.3s ease-out}.mfp-with-zoom.mfp-ready .mfp-container{opacity:1}.mfp-with-zoom.mfp-ready.mfp-bg{opacity:0.8}.mfp-with-zoom.mfp-removing .mfp-container,.mfp-with-zoom.mfp-removing.mfp-bg{opacity:0}.mfp-content .product{background-color:#ffffff;display:table;margin:0 auto;padding:15px}.mfp-content .product .images{display:inline-block;float:left;max-width:600px}.mfp-content .product .images img{display:block}.mfp-content .product .onsale{left:24px;top:24px;position:absolute}.mfp-content .product .summary{display:inline-block;margin-left:15px;width:300px}.mfp-content .product .product_title,.mfp-content .product .description{margin:1em 0}.mfp-content .product .price{display:inline-block;font-weight:normal;margin:.5em 1em;font-size:.857em;float:left}.mfp-content .product .price del{color:inherit;background-color:transparent;opacity:0.5;display:inline-block}.mfp-content .product .price ins{color:inherit;background-color:transparent;font-weight:bold}.mfp-content .product .star-rating{display:inline-block;margin:.5em 1em;float:right;overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:'star'}.mfp-content .product .star-rating:before{content:"\73\73\73\73\73";float:left;top:0;left:0;position:absolute}.mfp-content .product .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.mfp-content .product .star-rating span:before{content:"\53\53\53\53\53";top:0;position:absolute;left:0}.mfp-content .product a.add_to_cart_button,.mfp-content .product a.added_to_cart{margin:0;line-height:1;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:.5em 1em;font-weight:normal;border-radius:3px;left:auto;border:0;white-space:nowrap;display:inline-block;background-image:none;box-shadow:none;-webkit-box-shadow:none;text-shadow:none}.mfp-content .product a.add_to_cart_button:hover,.mfp-content .product a.added_to_cart:hover{text-decoration:none;background-image:none}.mfp-content .product a.add_to_cart_button.loading{opacity:0.25;padding-right:2.618em}.mfp-content .product a.add_to_cart_button.loading:after{font-family:"WooCommerce";content:"\e01c";vertical-align:top;-webkit-font-smoothing:antialiased;font-weight:normal;position:absolute;top:.618em;right:1em;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}.mfp-content .product a.add_to_cart_button.added:after{font-family:'WooCommerce';content:"\e017";margin-left:.53em;vertical-align:bottom}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{max-width:945px;margin-top:40px;margin-bottom:40px}@media (max-width: 600px){.mfp-content .product .images{margin-bottom:30px}.mfp-content .product .summary{display:block;margin:0;width:100%}}@media (min-width: 601px){.mfp-content .product .images{display:inline-block;width:49%}.mfp-content .product .summary{display:inline-block;margin:0 0 0 1%;width:49%}}.mfp-counter{display:none}
|
assets/js/gutenberg-block.js
ADDED
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Carousel Slider Block
|
3 |
+
*
|
4 |
+
* A block for embedding a carousel slider into a post/page.
|
5 |
+
*/
|
6 |
+
(function (blocks, i18n, editor, element, components) {
|
7 |
+
|
8 |
+
var el = element.createElement, // function to create elements
|
9 |
+
settings = window.carousel_slider_gutenberg_block,
|
10 |
+
TextControl = components.TextControl,// text input control
|
11 |
+
InspectorControls = editor.InspectorControls; // sidebar controls
|
12 |
+
|
13 |
+
// register our block
|
14 |
+
blocks.registerBlockType('carousel-slider/slider', {
|
15 |
+
title: settings.block_title,
|
16 |
+
icon: 'slides',
|
17 |
+
category: 'common',
|
18 |
+
|
19 |
+
attributes: {
|
20 |
+
sliderID: {type: 'integer', default: 0},
|
21 |
+
sliderName: {type: 'string', default: ''}
|
22 |
+
},
|
23 |
+
|
24 |
+
edit: function (props) {
|
25 |
+
var sliderID = props.attributes.sliderID,
|
26 |
+
sliderName = props.attributes.sliderName,
|
27 |
+
children = [];
|
28 |
+
|
29 |
+
if (!sliderID) sliderID = ''; // Default.
|
30 |
+
if (!sliderName) sliderName = ''; // Default
|
31 |
+
|
32 |
+
// this function is required, but we don't need it to do anything
|
33 |
+
function carouselSliderOnValueChange(sliderName) {
|
34 |
+
}
|
35 |
+
|
36 |
+
// show the dropdown when we click on the input
|
37 |
+
function carouselSliderFocusClick(event) {
|
38 |
+
var elementID = event.target.getAttribute('id');
|
39 |
+
var idArray = elementID.split('-');
|
40 |
+
var carouselSliderOptions = document.getElementById('carousel-slider-filter-container-' + idArray[idArray.length - 1]);
|
41 |
+
// get the related input element
|
42 |
+
var carouselSliderInput = document.getElementById('carousel-slider-sliderFilter-' + idArray[idArray.length - 1]);
|
43 |
+
// set focus to the element so the onBlur function runs properly
|
44 |
+
carouselSliderInput.focus();
|
45 |
+
carouselSliderOptions.style.display = 'block';
|
46 |
+
}
|
47 |
+
|
48 |
+
// function for select the slider on filter drop down item click
|
49 |
+
function selectSlider(event) {
|
50 |
+
//set the attributes from the selected for item
|
51 |
+
props.setAttributes({
|
52 |
+
sliderID: parseInt(event.target.getAttribute('data-slider_id')),
|
53 |
+
sliderName: event.target.innerText
|
54 |
+
});
|
55 |
+
/**
|
56 |
+
* Get the main div of the filter to tell if this is being
|
57 |
+
* selected from the sidebar or block so we can hide the dropdown
|
58 |
+
*/
|
59 |
+
var elementID = event.target.parentNode.parentNode;
|
60 |
+
var idArray = elementID.getAttribute('id').split('-');
|
61 |
+
var carouselSliderOptions = document.getElementById('carousel-slider-filter-container-' + idArray[idArray.length - 1]);
|
62 |
+
var inputEl = document.getElementById('carousel-slider-sliderFilter-sidebar');
|
63 |
+
|
64 |
+
if (inputEl) {
|
65 |
+
inputEl.value = '';
|
66 |
+
}
|
67 |
+
carouselSliderOptions.style.display = 'none';
|
68 |
+
}
|
69 |
+
|
70 |
+
function carouselSliderHideOptions(event) {
|
71 |
+
/**
|
72 |
+
* Get the main div of the filter to tell if this is being
|
73 |
+
* selected from the sidebar or block so we can hide the dropdown
|
74 |
+
*/
|
75 |
+
var elementID = event.target.getAttribute('id');
|
76 |
+
var idArray = elementID.split('-');
|
77 |
+
var carouselSliderOptions = document.getElementById('carousel-slider-filter-container-' + idArray[idArray.length - 1]);
|
78 |
+
carouselSliderOptions.style.display = 'none';
|
79 |
+
}
|
80 |
+
|
81 |
+
function carouselSliderInputKeyUp(event) {
|
82 |
+
var val = event.target.value;
|
83 |
+
/**
|
84 |
+
* Get the main div of the filter to tell if this is being
|
85 |
+
* selected from the sidebar or block so we can SHOW the dropdown
|
86 |
+
*/
|
87 |
+
var filterInputContainer = event.target.parentNode.parentNode.parentNode;
|
88 |
+
filterInputContainer.querySelector('.carousel-slider-filter-option-container').style.display = 'block';
|
89 |
+
filterInputContainer.style.display = 'block';
|
90 |
+
|
91 |
+
// Let's filter the sliders here
|
92 |
+
_.each(settings.sliders, function (slider, index) {
|
93 |
+
var liEl = filterInputContainer.querySelector("[data-slider_id='" + slider.value + "']");
|
94 |
+
if (0 <= slider.label.toLowerCase().indexOf(val.toLowerCase())) {
|
95 |
+
// shows options that DO contain the text entered
|
96 |
+
liEl.style.display = 'block';
|
97 |
+
} else {
|
98 |
+
// hides options the do not contain the text entered
|
99 |
+
liEl.style.display = 'none';
|
100 |
+
}
|
101 |
+
});
|
102 |
+
}
|
103 |
+
|
104 |
+
// Set up the slider items from the localized php variables
|
105 |
+
var sliderItems = [];
|
106 |
+
_.each(settings.sliders, function (slider, index) {
|
107 |
+
sliderItems.push(el('li', {
|
108 |
+
className: 'carousel-slider-filter-option',
|
109 |
+
'data-slider_id': slider.value, onMouseDown: selectSlider
|
110 |
+
},
|
111 |
+
slider.label + " ( ID: " + slider.value + " )"))
|
112 |
+
});
|
113 |
+
|
114 |
+
// Set up slider filter for the block
|
115 |
+
var inputFilterMain = el('div', {
|
116 |
+
id: 'carousel-slider-filter-input-main',
|
117 |
+
className: 'carousel-slider-filter-input'
|
118 |
+
},
|
119 |
+
el(TextControl, {
|
120 |
+
id: 'carousel-slider-sliderFilter-main',
|
121 |
+
placeHolder: settings.select_slider,
|
122 |
+
className: 'carousel-slider-filter-input-el blocks-select-control__input',
|
123 |
+
onChange: carouselSliderOnValueChange,
|
124 |
+
onClick: carouselSliderFocusClick,
|
125 |
+
onKeyUp: carouselSliderInputKeyUp,
|
126 |
+
onBlur: carouselSliderHideOptions
|
127 |
+
}),
|
128 |
+
el('span', {
|
129 |
+
id: 'carousel-slider-filter-input-icon-main',
|
130 |
+
className: 'carousel-slider-filter-input-icon',
|
131 |
+
onClick: carouselSliderFocusClick,
|
132 |
+
dangerouslySetInnerHTML: {__html: '▾'}
|
133 |
+
}),
|
134 |
+
el('div', {
|
135 |
+
id: 'carousel-slider-filter-container-main',
|
136 |
+
className: 'carousel-slider-filter-option-container'
|
137 |
+
},
|
138 |
+
el('ul', null, sliderItems)
|
139 |
+
)
|
140 |
+
);
|
141 |
+
// Create filter input for the sidebar blocks settings
|
142 |
+
var inputFilterSidebar = el('div', {
|
143 |
+
id: 'carousel-slider-filter-input-sidebar',
|
144 |
+
className: 'carousel-slider-filter-input'
|
145 |
+
},
|
146 |
+
el(TextControl, {
|
147 |
+
id: 'carousel-slider-sliderFilter-sidebar',
|
148 |
+
placeHolder: settings.select_slider,
|
149 |
+
className: 'carousel-slider-filter-input-el blocks-select-control__input',
|
150 |
+
onChange: carouselSliderOnValueChange,
|
151 |
+
onClick: carouselSliderFocusClick,
|
152 |
+
onKeyUp: carouselSliderInputKeyUp,
|
153 |
+
onBlur: carouselSliderHideOptions
|
154 |
+
}),
|
155 |
+
el('span', {
|
156 |
+
id: 'carousel-slider-filter-input-icon-sidebar',
|
157 |
+
className: 'carousel-slider-filter-input-icon',
|
158 |
+
onClick: carouselSliderFocusClick,
|
159 |
+
dangerouslySetInnerHTML: {__html: '▾'}
|
160 |
+
}),
|
161 |
+
el('div', {
|
162 |
+
id: 'carousel-slider-filter-container-sidebar',
|
163 |
+
className: 'carousel-slider-filter-option-container'
|
164 |
+
},
|
165 |
+
el('ul', null, sliderItems)
|
166 |
+
)
|
167 |
+
);
|
168 |
+
|
169 |
+
// Set up the slider filter dropdown in the side bar 'block' settings
|
170 |
+
var inspectorControls = el(InspectorControls, {},
|
171 |
+
el('span', null, settings.selected_slider),
|
172 |
+
el('br', null),
|
173 |
+
el('span', null, sliderName),
|
174 |
+
el('br', null),
|
175 |
+
el('hr', null),
|
176 |
+
el('label', {for: 'carousel-slider-sliderFilter-sidebar'}, settings.filter_slider),
|
177 |
+
inputFilterSidebar
|
178 |
+
);
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Create the div container, add an overlay so the user can interact
|
182 |
+
* with the slider in Gutenberg, then render the iframe with slider
|
183 |
+
*/
|
184 |
+
if ('' === sliderID) {
|
185 |
+
children.push(el('div', {style: {width: '100%'}},
|
186 |
+
el('img', {className: 'carousel-slider-block-logo', src: settings.block_logo}),
|
187 |
+
el('div', null, settings.block_title),
|
188 |
+
inputFilterMain
|
189 |
+
));
|
190 |
+
} else {
|
191 |
+
children.push(
|
192 |
+
el('div', {className: 'carousel-slider-iframe-container'},
|
193 |
+
el('div', {className: 'carousel-slider-iframe-overlay'}),
|
194 |
+
el('iframe', {
|
195 |
+
className: 'carousel-slider-iframe',
|
196 |
+
src: settings.site_url + '?carousel_slider_preview=1&carousel_slider_iframe=1&slider_id=' + sliderID,
|
197 |
+
height: '0',
|
198 |
+
width: '500',
|
199 |
+
scrolling: 'no'
|
200 |
+
})
|
201 |
+
)
|
202 |
+
)
|
203 |
+
}
|
204 |
+
children.push(inspectorControls);
|
205 |
+
return [children];
|
206 |
+
},
|
207 |
+
|
208 |
+
save: function (props) {
|
209 |
+
var sliderID = props.attributes.sliderID;
|
210 |
+
|
211 |
+
if (!sliderID) return '';
|
212 |
+
/**
|
213 |
+
* we're essentially just adding a short code, here is where
|
214 |
+
* it's save in the editor
|
215 |
+
*
|
216 |
+
* return content wrapped in DIV b/c raw HTML is unsupported
|
217 |
+
* going forward
|
218 |
+
*/
|
219 |
+
var returnHTML = '[carousel_slide id=' + parseInt(sliderID) + ']';
|
220 |
+
return el('div', null, returnHTML);
|
221 |
+
}
|
222 |
+
});
|
223 |
+
})(window.wp.blocks, window.wp.i18n, window.wp.editor, window.wp.element, window.wp.components);
|
assets/js/public/CarouselSlider.js
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
class CarouselSlider {
|
2 |
+
constructor($) {
|
3 |
+
$('body').find('.carousel-slider').each(function () {
|
4 |
+
var _this = $(this);
|
5 |
+
var autoWidth = _this.data('auto-width');
|
6 |
+
var stagePadding = parseInt(_this.data('stage-padding'));
|
7 |
+
stagePadding = stagePadding > 0 ? stagePadding : 0;
|
8 |
+
|
9 |
+
if (jQuery().owlCarousel) {
|
10 |
+
_this.owlCarousel({
|
11 |
+
stagePadding: stagePadding,
|
12 |
+
nav: _this.data('nav'),
|
13 |
+
dots: _this.data('dots'),
|
14 |
+
margin: _this.data('margin'),
|
15 |
+
loop: _this.data('loop'),
|
16 |
+
autoplay: _this.data('autoplay'),
|
17 |
+
autoplayTimeout: _this.data('autoplay-timeout'),
|
18 |
+
autoplaySpeed: _this.data('autoplay-speed'),
|
19 |
+
autoplayHoverPause: _this.data('autoplay-hover-pause'),
|
20 |
+
slideBy: _this.data('slide-by'),
|
21 |
+
lazyLoad: _this.data('lazy-load'),
|
22 |
+
autoWidth: autoWidth,
|
23 |
+
navText: [
|
24 |
+
'<svg class="carousel-slider-nav-icon" viewBox="0 0 20 20"><path d="M14 5l-5 5 5 5-1 2-7-7 7-7z"></path></use></svg>',
|
25 |
+
'<svg class="carousel-slider-nav-icon" viewBox="0 0 20 20"><path d="M6 15l5-5-5-5 1-2 7 7-7 7z"></path></svg>'
|
26 |
+
],
|
27 |
+
responsive: {
|
28 |
+
320: {items: _this.data('colums-mobile')},
|
29 |
+
600: {items: _this.data('colums-small-tablet')},
|
30 |
+
768: {items: _this.data('colums-tablet')},
|
31 |
+
993: {items: _this.data('colums-small-desktop')},
|
32 |
+
1200: {items: _this.data('colums-desktop')},
|
33 |
+
1921: {items: _this.data('colums')}
|
34 |
+
}
|
35 |
+
});
|
36 |
+
|
37 |
+
if ('hero-banner-slider' === _this.data('slide-type')) {
|
38 |
+
var animation = _this.data('animation');
|
39 |
+
if (animation.length) {
|
40 |
+
_this.on('change.owl.carousel', function () {
|
41 |
+
var sliderContent = _this.find('.carousel-slider-hero__cell__content');
|
42 |
+
sliderContent.removeClass('animated' + ' ' + animation).hide();
|
43 |
+
});
|
44 |
+
_this.on('changed.owl.carousel', function (e) {
|
45 |
+
setTimeout(function () {
|
46 |
+
var current = $(e.target).find('.carousel-slider-hero__cell__content').eq(e.item.index);
|
47 |
+
current.show().addClass('animated' + ' ' + animation);
|
48 |
+
}, _this.data('autoplay-speed'));
|
49 |
+
});
|
50 |
+
}
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
if (jQuery().magnificPopup) {
|
55 |
+
if (_this.data('slide-type') === 'product-carousel') {
|
56 |
+
$(this).find('.magnific-popup').magnificPopup({
|
57 |
+
type: 'ajax'
|
58 |
+
});
|
59 |
+
} else if ('video-carousel' === _this.data('slide-type')) {
|
60 |
+
$(this).find('.magnific-popup').magnificPopup({
|
61 |
+
type: 'iframe'
|
62 |
+
});
|
63 |
+
} else {
|
64 |
+
$(this).find('.magnific-popup').magnificPopup({
|
65 |
+
type: 'image',
|
66 |
+
gallery: {
|
67 |
+
enabled: true
|
68 |
+
},
|
69 |
+
zoom: {
|
70 |
+
enabled: true,
|
71 |
+
duration: 300,
|
72 |
+
easing: 'ease-in-out'
|
73 |
+
}
|
74 |
+
});
|
75 |
+
}
|
76 |
+
}
|
77 |
+
});
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
export {CarouselSlider}
|
assets/js/public/main.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
import {CarouselSlider} from "./CarouselSlider";
|
2 |
+
|
3 |
+
new CarouselSlider(jQuery);
|
assets/js/script.js
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function (global, factory) {
|
2 |
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
|
3 |
+
typeof define === 'function' && define.amd ? define(factory) :
|
4 |
+
(factory());
|
5 |
+
}(this, (function () { 'use strict';
|
6 |
+
|
7 |
+
var CarouselSlider = function CarouselSlider($) {
|
8 |
+
$('body').find('.carousel-slider').each(function () {
|
9 |
+
var _this = $(this);
|
10 |
+
var autoWidth = _this.data('auto-width');
|
11 |
+
var stagePadding = parseInt(_this.data('stage-padding'));
|
12 |
+
stagePadding = stagePadding > 0 ? stagePadding : 0;
|
13 |
+
|
14 |
+
if (jQuery().owlCarousel) {
|
15 |
+
_this.owlCarousel({
|
16 |
+
stagePadding: stagePadding,
|
17 |
+
nav: _this.data('nav'),
|
18 |
+
dots: _this.data('dots'),
|
19 |
+
margin: _this.data('margin'),
|
20 |
+
loop: _this.data('loop'),
|
21 |
+
autoplay: _this.data('autoplay'),
|
22 |
+
autoplayTimeout: _this.data('autoplay-timeout'),
|
23 |
+
autoplaySpeed: _this.data('autoplay-speed'),
|
24 |
+
autoplayHoverPause: _this.data('autoplay-hover-pause'),
|
25 |
+
slideBy: _this.data('slide-by'),
|
26 |
+
lazyLoad: _this.data('lazy-load'),
|
27 |
+
autoWidth: autoWidth,
|
28 |
+
navText: [
|
29 |
+
'<svg class="carousel-slider-nav-icon" viewBox="0 0 20 20"><path d="M14 5l-5 5 5 5-1 2-7-7 7-7z"></path></use></svg>',
|
30 |
+
'<svg class="carousel-slider-nav-icon" viewBox="0 0 20 20"><path d="M6 15l5-5-5-5 1-2 7 7-7 7z"></path></svg>'
|
31 |
+
],
|
32 |
+
responsive: {
|
33 |
+
320: {items: _this.data('colums-mobile')},
|
34 |
+
600: {items: _this.data('colums-small-tablet')},
|
35 |
+
768: {items: _this.data('colums-tablet')},
|
36 |
+
993: {items: _this.data('colums-small-desktop')},
|
37 |
+
1200: {items: _this.data('colums-desktop')},
|
38 |
+
1921: {items: _this.data('colums')}
|
39 |
+
}
|
40 |
+
});
|
41 |
+
|
42 |
+
if ('hero-banner-slider' === _this.data('slide-type')) {
|
43 |
+
var animation = _this.data('animation');
|
44 |
+
if (animation.length) {
|
45 |
+
_this.on('change.owl.carousel', function () {
|
46 |
+
var sliderContent = _this.find('.carousel-slider-hero__cell__content');
|
47 |
+
sliderContent.removeClass('animated' + ' ' + animation).hide();
|
48 |
+
});
|
49 |
+
_this.on('changed.owl.carousel', function (e) {
|
50 |
+
setTimeout(function () {
|
51 |
+
var current = $(e.target).find('.carousel-slider-hero__cell__content').eq(e.item.index);
|
52 |
+
current.show().addClass('animated' + ' ' + animation);
|
53 |
+
}, _this.data('autoplay-speed'));
|
54 |
+
});
|
55 |
+
}
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
if (jQuery().magnificPopup) {
|
60 |
+
if (_this.data('slide-type') === 'product-carousel') {
|
61 |
+
$(this).find('.magnific-popup').magnificPopup({
|
62 |
+
type: 'ajax'
|
63 |
+
});
|
64 |
+
} else if ('video-carousel' === _this.data('slide-type')) {
|
65 |
+
$(this).find('.magnific-popup').magnificPopup({
|
66 |
+
type: 'iframe'
|
67 |
+
});
|
68 |
+
} else {
|
69 |
+
$(this).find('.magnific-popup').magnificPopup({
|
70 |
+
type: 'image',
|
71 |
+
gallery: {
|
72 |
+
enabled: true
|
73 |
+
},
|
74 |
+
zoom: {
|
75 |
+
enabled: true,
|
76 |
+
duration: 300,
|
77 |
+
easing: 'ease-in-out'
|
78 |
+
}
|
79 |
+
});
|
80 |
+
}
|
81 |
+
}
|
82 |
+
});
|
83 |
+
};
|
84 |
+
|
85 |
+
new CarouselSlider(jQuery);
|
86 |
+
|
87 |
+
})));
|
assets/js/script.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a,e){"object"==typeof exports&&"undefined"!=typeof module?e():"function"==typeof define&&define.amd?define(e):e()}(0,function(){"use strict";new function(i){i("body").find(".carousel-slider").each(function(){var e=i(this),a=e.data("auto-width"),t=parseInt(e.data("stage-padding"));if(t=0<t?t:0,jQuery().owlCarousel&&(e.owlCarousel({stagePadding:t,nav:e.data("nav"),dots:e.data("dots"),margin:e.data("margin"),loop:e.data("loop"),autoplay:e.data("autoplay"),autoplayTimeout:e.data("autoplay-timeout"),autoplaySpeed:e.data("autoplay-speed"),autoplayHoverPause:e.data("autoplay-hover-pause"),slideBy:e.data("slide-by"),lazyLoad:e.data("lazy-load"),autoWidth:a,navText:['<svg class="carousel-slider-nav-icon" viewBox="0 0 20 20"><path d="M14 5l-5 5 5 5-1 2-7-7 7-7z"></path></use></svg>','<svg class="carousel-slider-nav-icon" viewBox="0 0 20 20"><path d="M6 15l5-5-5-5 1-2 7 7-7 7z"></path></svg>'],responsive:{320:{items:e.data("colums-mobile")},600:{items:e.data("colums-small-tablet")},768:{items:e.data("colums-tablet")},993:{items:e.data("colums-small-desktop")},1200:{items:e.data("colums-desktop")},1921:{items:e.data("colums")}}}),"hero-banner-slider"===e.data("slide-type"))){var o=e.data("animation");o.length&&(e.on("change.owl.carousel",function(){e.find(".carousel-slider-hero__cell__content").removeClass("animated "+o).hide()}),e.on("changed.owl.carousel",function(a){setTimeout(function(){i(a.target).find(".carousel-slider-hero__cell__content").eq(a.item.index).show().addClass("animated "+o)},e.data("autoplay-speed"))}))}jQuery().magnificPopup&&("product-carousel"===e.data("slide-type")?i(this).find(".magnific-popup").magnificPopup({type:"ajax"}):"video-carousel"===e.data("slide-type")?i(this).find(".magnific-popup").magnificPopup({type:"iframe"}):i(this).find(".magnific-popup").magnificPopup({type:"image",gallery:{enabled:!0},zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}))})}(jQuery)});
|
assets/lib/owl-carousel/owl.carousel.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
/**
|
2 |
-
* Owl Carousel v2.
|
3 |
-
* Copyright 2013-
|
4 |
-
* Licensed under
|
5 |
*/
|
6 |
/**
|
7 |
* Owl carousel
|
8 |
-
* @version 2.
|
9 |
* @author Bartosz Wojciechowski
|
10 |
* @author David Deutsch
|
11 |
* @license The MIT License (MIT)
|
@@ -57,7 +57,7 @@
|
|
57 |
this._plugins = {};
|
58 |
|
59 |
/**
|
60 |
-
* Currently suppressed events to prevent them from
|
61 |
* @protected
|
62 |
*/
|
63 |
this._supress = {};
|
@@ -188,6 +188,7 @@
|
|
188 |
loop: false,
|
189 |
center: false,
|
190 |
rewind: false,
|
|
|
191 |
|
192 |
mouseDrag: true,
|
193 |
touchDrag: true,
|
@@ -213,6 +214,7 @@
|
|
213 |
responsiveBaseElement: window,
|
214 |
|
215 |
fallbackEasing: 'swing',
|
|
|
216 |
|
217 |
info: false,
|
218 |
|
@@ -335,12 +337,13 @@
|
|
335 |
|
336 |
repeat /= 2;
|
337 |
|
338 |
-
while (repeat
|
339 |
// Switch to only using appended clones
|
340 |
clones.push(this.normalize(clones.length / 2, true));
|
341 |
append = append + items[clones[clones.length - 1]][0].outerHTML;
|
342 |
clones.push(this.normalize(items.length - 1 - (clones.length - 1) / 2, true));
|
343 |
prepend = items[clones[clones.length - 1]][0].outerHTML + prepend;
|
|
|
344 |
}
|
345 |
|
346 |
this._clones = clones;
|
@@ -435,48 +438,63 @@
|
|
435 |
this.$stage.children('.active').removeClass('active');
|
436 |
this.$stage.children(':eq(' + matches.join('), :eq(') + ')').addClass('active');
|
437 |
|
|
|
438 |
if (this.settings.center) {
|
439 |
-
this.$stage.children('.center').removeClass('center');
|
440 |
this.$stage.children().eq(this.current()).addClass('center');
|
441 |
}
|
442 |
}
|
443 |
} ];
|
444 |
|
445 |
/**
|
446 |
-
*
|
447 |
-
* @protected
|
448 |
*/
|
449 |
-
Owl.prototype.
|
450 |
-
this.
|
451 |
-
this.trigger('initialize');
|
452 |
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
var imgs, nestedSelector, width;
|
457 |
-
imgs = this.$element.find('img');
|
458 |
-
nestedSelector = this.settings.nestedItemSelector ? '.' + this.settings.nestedItemSelector : undefined;
|
459 |
-
width = this.$element.children(nestedSelector).width();
|
460 |
-
|
461 |
-
if (imgs.length && width <= 0) {
|
462 |
-
this.preloadAutoWidthImages(imgs);
|
463 |
-
}
|
464 |
}
|
465 |
|
466 |
this.$element.addClass(this.options.loadingClass);
|
467 |
|
468 |
// create stage
|
469 |
-
this.$stage = $('<' + this.settings.stageElement + '
|
470 |
-
|
|
|
|
|
|
|
471 |
|
472 |
// append stage
|
473 |
this.$element.append(this.$stage.parent());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
|
475 |
// append content
|
476 |
this.replace(this.$element.children().not(this.$stage.parent()));
|
477 |
|
478 |
// check visibility
|
479 |
-
if (this
|
480 |
// update view
|
481 |
this.refresh();
|
482 |
} else {
|
@@ -487,6 +505,31 @@
|
|
487 |
this.$element
|
488 |
.removeClass(this.options.loadingClass)
|
489 |
.addClass(this.options.loadedClass);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
|
491 |
// register event handlers
|
492 |
this.registerEventHandlers();
|
@@ -495,6 +538,17 @@
|
|
495 |
this.trigger('initialized');
|
496 |
};
|
497 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
/**
|
499 |
* Setups the current settings.
|
500 |
* @todo Remove responsive classes. Why should adaptive designs be brought into IE8?
|
@@ -650,7 +704,7 @@
|
|
650 |
return false;
|
651 |
}
|
652 |
|
653 |
-
if (!this
|
654 |
return false;
|
655 |
}
|
656 |
|
@@ -856,7 +910,7 @@
|
|
856 |
} else if (direction === 'right' && coordinate > value - width - pull && coordinate < value - width + pull) {
|
857 |
position = index + 1;
|
858 |
} else if (this.op(coordinate, '<', value)
|
859 |
-
&& this.op(coordinate, '>', coordinates[index + 1]
|
860 |
position = direction === 'left' ? index + 1 : index;
|
861 |
}
|
862 |
return position === -1;
|
@@ -894,7 +948,9 @@
|
|
894 |
if ($.support.transform3d && $.support.transition) {
|
895 |
this.$stage.css({
|
896 |
transform: 'translate3d(' + coordinate + 'px,0px,0px)',
|
897 |
-
transition: (this.speed() / 1000) + 's'
|
|
|
|
|
898 |
});
|
899 |
} else if (animate) {
|
900 |
this.$stage.animate({
|
@@ -1033,12 +1089,14 @@
|
|
1033 |
maximum = this._clones.length / 2 + this._items.length - 1;
|
1034 |
} else if (settings.autoWidth || settings.merge) {
|
1035 |
iterator = this._items.length;
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
|
|
|
|
1042 |
}
|
1043 |
}
|
1044 |
maximum = iterator + 1;
|
@@ -1216,7 +1274,7 @@
|
|
1216 |
this.speed(this.duration(current, position, speed));
|
1217 |
this.current(position);
|
1218 |
|
1219 |
-
if (this
|
1220 |
this.update();
|
1221 |
}
|
1222 |
};
|
@@ -1413,7 +1471,7 @@
|
|
1413 |
this.$stage.unwrap();
|
1414 |
this.$stage.children().contents().unwrap();
|
1415 |
this.$stage.children().unwrap();
|
1416 |
-
|
1417 |
this.$element
|
1418 |
.removeClass(this.options.refreshClass)
|
1419 |
.removeClass(this.options.loadingClass)
|
@@ -1698,7 +1756,7 @@
|
|
1698 |
|
1699 |
/**
|
1700 |
* AutoRefresh Plugin
|
1701 |
-
* @version 2.
|
1702 |
* @author Artus Kolanowski
|
1703 |
* @author David Deutsch
|
1704 |
* @license The MIT License (MIT)
|
@@ -1769,7 +1827,7 @@
|
|
1769 |
return;
|
1770 |
}
|
1771 |
|
1772 |
-
this._visible = this._core
|
1773 |
this._interval = window.setInterval($.proxy(this.refresh, this), this._core.settings.autoRefreshInterval);
|
1774 |
};
|
1775 |
|
@@ -1777,7 +1835,7 @@
|
|
1777 |
* Refreshes the element.
|
1778 |
*/
|
1779 |
AutoRefresh.prototype.refresh = function() {
|
1780 |
-
if (this._core
|
1781 |
return;
|
1782 |
}
|
1783 |
|
@@ -1810,7 +1868,7 @@
|
|
1810 |
|
1811 |
/**
|
1812 |
* Lazy Plugin
|
1813 |
-
* @version 2.
|
1814 |
* @author Bartosz Wojciechowski
|
1815 |
* @author David Deutsch
|
1816 |
* @license The MIT License (MIT)
|
@@ -1860,6 +1918,15 @@
|
|
1860 |
position = (e.property && e.property.value !== undefined ? e.property.value : this._core.current()) + i,
|
1861 |
clones = this._core.clones().length,
|
1862 |
load = $.proxy(function(i, v) { this.load(v) }, this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1863 |
|
1864 |
while (i++ < n) {
|
1865 |
this.load(clones / 2 + this._core.relative(position));
|
@@ -1882,7 +1949,8 @@
|
|
1882 |
* @public
|
1883 |
*/
|
1884 |
Lazy.Defaults = {
|
1885 |
-
lazyLoad: false
|
|
|
1886 |
};
|
1887 |
|
1888 |
/**
|
@@ -1900,7 +1968,7 @@
|
|
1900 |
|
1901 |
$elements.each($.proxy(function(index, element) {
|
1902 |
var $element = $(element), image,
|
1903 |
-
|
1904 |
|
1905 |
this._core.trigger('load', { element: $element, url: url }, 'lazy');
|
1906 |
|
@@ -1909,6 +1977,10 @@
|
|
1909 |
$element.css('opacity', 1);
|
1910 |
this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
|
1911 |
}, this)).attr('src', url);
|
|
|
|
|
|
|
|
|
1912 |
} else {
|
1913 |
image = new Image();
|
1914 |
image.onload = $.proxy(function() {
|
@@ -1946,7 +2018,7 @@
|
|
1946 |
|
1947 |
/**
|
1948 |
* AutoHeight Plugin
|
1949 |
-
* @version 2.
|
1950 |
* @author Bartosz Wojciechowski
|
1951 |
* @author David Deutsch
|
1952 |
* @license The MIT License (MIT)
|
@@ -1966,6 +2038,8 @@
|
|
1966 |
*/
|
1967 |
this._core = carousel;
|
1968 |
|
|
|
|
|
1969 |
/**
|
1970 |
* All event handlers.
|
1971 |
* @protected
|
@@ -1978,7 +2052,7 @@
|
|
1978 |
}
|
1979 |
}, this),
|
1980 |
'changed.owl.carousel': $.proxy(function(e) {
|
1981 |
-
if (e.namespace && this._core.settings.autoHeight && e.property.name
|
1982 |
this.update();
|
1983 |
}
|
1984 |
}, this),
|
@@ -1995,6 +2069,32 @@
|
|
1995 |
|
1996 |
// register event handlers
|
1997 |
this._core.$element.on(this._handlers);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1998 |
};
|
1999 |
|
2000 |
/**
|
@@ -2012,6 +2112,7 @@
|
|
2012 |
AutoHeight.prototype.update = function() {
|
2013 |
var start = this._core._current,
|
2014 |
end = start + this._core.settings.items,
|
|
|
2015 |
visible = this._core.$stage.children().toArray().slice(start, end),
|
2016 |
heights = [],
|
2017 |
maxheight = 0;
|
@@ -2022,6 +2123,12 @@
|
|
2022 |
|
2023 |
maxheight = Math.max.apply(null, heights);
|
2024 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2025 |
this._core.$stage.parent()
|
2026 |
.height(maxheight)
|
2027 |
.addClass(this._core.settings.autoHeightClass);
|
@@ -2034,7 +2141,7 @@
|
|
2034 |
this._core.$element.off(handler, this._handlers[handler]);
|
2035 |
}
|
2036 |
for (property in Object.getOwnPropertyNames(this)) {
|
2037 |
-
typeof this[property]
|
2038 |
}
|
2039 |
};
|
2040 |
|
@@ -2044,7 +2151,7 @@
|
|
2044 |
|
2045 |
/**
|
2046 |
* Video Plugin
|
2047 |
-
* @version 2.
|
2048 |
* @author Bartosz Wojciechowski
|
2049 |
* @author David Deutsch
|
2050 |
* @license The MIT License (MIT)
|
@@ -2175,7 +2282,7 @@
|
|
2175 |
Visual example: https://regexper.com/#(http%3A%7Chttps%3A%7C)%5C%2F%5C%2F(player.%7Cwww.%7Capp.)%3F(vimeo%5C.com%7Cyoutu(be%5C.com%7C%5C.be%7Cbe%5C.googleapis%5C.com)%7Cvzaar%5C.com)%5C%2F(video%5C%2F%7Cvideos%5C%2F%7Cembed%5C%2F%7Cchannels%5C%2F.%2B%5C%2F%7Cgroups%5C%2F.%2B%5C%2F%7Cwatch%5C%3Fv%3D%7Cv%5C%2F)%3F(%5BA-Za-z0-9._%25-%5D*)(%5C%26%5CS%2B)%3F
|
2176 |
*/
|
2177 |
|
2178 |
-
id = url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);
|
2179 |
|
2180 |
if (id[3].indexOf('youtu') > -1) {
|
2181 |
type = 'youtube';
|
@@ -2214,7 +2321,7 @@
|
|
2214 |
var tnLink,
|
2215 |
icon,
|
2216 |
path,
|
2217 |
-
dimensions = video.width && video.height ? '
|
2218 |
customTn = target.find('img'),
|
2219 |
srcType = 'src',
|
2220 |
lazyClass = '',
|
@@ -2223,16 +2330,25 @@
|
|
2223 |
icon = '<div class="owl-video-play-icon"></div>';
|
2224 |
|
2225 |
if (settings.lazyLoad) {
|
2226 |
-
tnLink = '<div
|
|
|
|
|
|
|
2227 |
} else {
|
2228 |
-
tnLink = '<div
|
|
|
|
|
|
|
2229 |
}
|
2230 |
target.after(tnLink);
|
2231 |
target.after(icon);
|
2232 |
};
|
2233 |
|
2234 |
// wrap video content into owl-video-wrapper div
|
2235 |
-
target.wrap('<div
|
|
|
|
|
|
|
2236 |
|
2237 |
if (this._core.settings.lazyLoad) {
|
2238 |
srcType = 'data-src';
|
@@ -2298,7 +2414,8 @@
|
|
2298 |
video = this._videos[item.attr('data-video')],
|
2299 |
width = video.width || '100%',
|
2300 |
height = video.height || this._core.$stage.height(),
|
2301 |
-
html
|
|
|
2302 |
|
2303 |
if (this._playing) {
|
2304 |
return;
|
@@ -2311,20 +2428,18 @@
|
|
2311 |
|
2312 |
this._core.reset(item.index());
|
2313 |
|
|
|
|
|
|
|
2314 |
if (video.type === 'youtube') {
|
2315 |
-
html
|
2316 |
-
video.id + '?autoplay=1&rel=0&v=' + video.id + '" frameborder="0" allowfullscreen></iframe>';
|
2317 |
} else if (video.type === 'vimeo') {
|
2318 |
-
html
|
2319 |
-
'?autoplay=1" width="' + width + '" height="' + height +
|
2320 |
-
'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
|
2321 |
} else if (video.type === 'vzaar') {
|
2322 |
-
html
|
2323 |
-
'" allowfullscreen mozallowfullscreen webkitAllowFullScreen ' +
|
2324 |
-
'src="//view.vzaar.com/' + video.id + '/player?autoplay=true"></iframe>';
|
2325 |
}
|
2326 |
|
2327 |
-
$('<div class="owl-video-frame"
|
2328 |
|
2329 |
this._playing = item.addClass('owl-video-playing');
|
2330 |
};
|
@@ -2364,7 +2479,7 @@
|
|
2364 |
|
2365 |
/**
|
2366 |
* Animate Plugin
|
2367 |
-
* @version 2.
|
2368 |
* @author Bartosz Wojciechowski
|
2369 |
* @author David Deutsch
|
2370 |
* @license The MIT License (MIT)
|
@@ -2486,10 +2601,11 @@
|
|
2486 |
|
2487 |
/**
|
2488 |
* Autoplay Plugin
|
2489 |
-
* @version 2.
|
2490 |
* @author Bartosz Wojciechowski
|
2491 |
* @author Artus Kolanowski
|
2492 |
* @author David Deutsch
|
|
|
2493 |
* @license The MIT License (MIT)
|
2494 |
*/
|
2495 |
;(function($, window, document, undefined) {
|
@@ -2508,16 +2624,31 @@
|
|
2508 |
this._core = carousel;
|
2509 |
|
2510 |
/**
|
2511 |
-
* The autoplay timeout.
|
2512 |
-
* @type {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2513 |
*/
|
2514 |
-
this.
|
|
|
|
|
|
|
|
|
|
|
|
|
2515 |
|
2516 |
/**
|
2517 |
* Indicates whenever the autoplay is paused.
|
2518 |
* @type {Boolean}
|
2519 |
*/
|
2520 |
-
this._paused =
|
2521 |
|
2522 |
/**
|
2523 |
* All event handlers.
|
@@ -2532,11 +2663,10 @@
|
|
2532 |
} else {
|
2533 |
this.stop();
|
2534 |
}
|
2535 |
-
} else if (e.namespace && e.property.name === 'position') {
|
2536 |
-
//
|
2537 |
-
|
2538 |
-
|
2539 |
-
}
|
2540 |
}
|
2541 |
}, this),
|
2542 |
'initialized.owl.carousel': $.proxy(function(e) {
|
@@ -2595,48 +2725,63 @@
|
|
2595 |
};
|
2596 |
|
2597 |
/**
|
2598 |
-
*
|
2599 |
-
* @
|
2600 |
-
* @param {Number} [timeout] - The interval before the next animation starts.
|
2601 |
* @param {Number} [speed] - The animation speed for the animations.
|
2602 |
*/
|
2603 |
-
Autoplay.prototype.
|
2604 |
-
this.
|
|
|
|
|
|
|
2605 |
|
2606 |
-
if (this._core.is('
|
2607 |
return;
|
2608 |
}
|
|
|
|
|
2609 |
|
2610 |
-
|
2611 |
-
|
2612 |
-
|
|
|
|
|
|
|
2613 |
};
|
2614 |
|
2615 |
/**
|
2616 |
-
*
|
2617 |
-
* @
|
2618 |
* @param {Number} [timeout] - The interval before the next animation starts.
|
2619 |
* @param {Number} [speed] - The animation speed for the animations.
|
2620 |
-
* @return {Timeout}
|
2621 |
*/
|
2622 |
-
Autoplay.prototype.
|
2623 |
-
|
2624 |
-
|
|
|
|
|
2625 |
}
|
2626 |
-
return window.setTimeout($.proxy(function() {
|
2627 |
-
if (this._paused || this._core.is('busy') || this._core.is('interacting') || document.hidden) {
|
2628 |
-
return;
|
2629 |
-
}
|
2630 |
-
this._core.next(speed || this._core.settings.autoplaySpeed);
|
2631 |
-
}, this), timeout || this._core.settings.autoplayTimeout);
|
2632 |
-
};
|
2633 |
|
2634 |
-
|
2635 |
-
|
2636 |
-
|
2637 |
-
|
2638 |
-
|
2639 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2640 |
};
|
2641 |
|
2642 |
/**
|
@@ -2644,24 +2789,28 @@
|
|
2644 |
* @public
|
2645 |
*/
|
2646 |
Autoplay.prototype.stop = function() {
|
2647 |
-
if (
|
2648 |
-
|
2649 |
-
|
|
|
2650 |
|
2651 |
-
|
2652 |
-
|
|
|
2653 |
};
|
2654 |
|
2655 |
/**
|
2656 |
-
*
|
2657 |
* @public
|
2658 |
*/
|
2659 |
Autoplay.prototype.pause = function() {
|
2660 |
-
if (
|
2661 |
-
|
2662 |
-
|
|
|
2663 |
|
2664 |
-
|
|
|
2665 |
};
|
2666 |
|
2667 |
/**
|
@@ -2686,7 +2835,7 @@
|
|
2686 |
|
2687 |
/**
|
2688 |
* Navigation Plugin
|
2689 |
-
* @version 2.
|
2690 |
* @author Artus Kolanowski
|
2691 |
* @author David Deutsch
|
2692 |
* @license The MIT License (MIT)
|
@@ -2813,12 +2962,18 @@
|
|
2813 |
*/
|
2814 |
Navigation.Defaults = {
|
2815 |
nav: false,
|
2816 |
-
navText: [
|
|
|
|
|
|
|
2817 |
navSpeed: false,
|
2818 |
-
navElement: '
|
2819 |
navContainer: false,
|
2820 |
navContainerClass: 'owl-nav',
|
2821 |
-
navClass: [
|
|
|
|
|
|
|
2822 |
slideBy: 1,
|
2823 |
dotClass: 'owl-dot',
|
2824 |
dotsClass: 'owl-dots',
|
@@ -2858,7 +3013,7 @@
|
|
2858 |
|
2859 |
// create DOM structure for absolute navigation
|
2860 |
if (!settings.dotsData) {
|
2861 |
-
this._templates = [ $('<
|
2862 |
.addClass(settings.dotClass)
|
2863 |
.append($('<span>'))
|
2864 |
.prop('outerHTML') ];
|
@@ -2867,7 +3022,7 @@
|
|
2867 |
this._controls.$absolute = (settings.dotsContainer ? $(settings.dotsContainer)
|
2868 |
: $('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');
|
2869 |
|
2870 |
-
this._controls.$absolute.on('click', '
|
2871 |
var index = $(e.target).parent().is(this._controls.$absolute)
|
2872 |
? $(e.target).index() : $(e.target).parent().index();
|
2873 |
|
@@ -2876,6 +3031,19 @@
|
|
2876 |
this.to(index, settings.dotsSpeed);
|
2877 |
}, this));
|
2878 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2879 |
// override public methods of the carousel
|
2880 |
for (override in this._overrides) {
|
2881 |
this._core[override] = $.proxy(this[override], this);
|
@@ -2887,13 +3055,18 @@
|
|
2887 |
* @protected
|
2888 |
*/
|
2889 |
Navigation.prototype.destroy = function() {
|
2890 |
-
var handler, control, property, override;
|
|
|
2891 |
|
2892 |
for (handler in this._handlers) {
|
2893 |
this.$element.off(handler, this._handlers[handler]);
|
2894 |
}
|
2895 |
for (control in this._controls) {
|
2896 |
-
|
|
|
|
|
|
|
|
|
2897 |
}
|
2898 |
for (override in this.overides) {
|
2899 |
this._core[override] = this._overrides[override];
|
@@ -3069,7 +3242,7 @@
|
|
3069 |
|
3070 |
/**
|
3071 |
* Hash Plugin
|
3072 |
-
* @version 2.
|
3073 |
* @author Artus Kolanowski
|
3074 |
* @author David Deutsch
|
3075 |
* @license The MIT License (MIT)
|
@@ -3193,7 +3366,7 @@
|
|
3193 |
/**
|
3194 |
* Support Plugin
|
3195 |
*
|
3196 |
-
* @version 2.
|
3197 |
* @author Vivid Planet Software GmbH
|
3198 |
* @author Artus Kolanowski
|
3199 |
* @author David Deutsch
|
1 |
/**
|
2 |
+
* Owl Carousel v2.3.4
|
3 |
+
* Copyright 2013-2018 David Deutsch
|
4 |
+
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
5 |
*/
|
6 |
/**
|
7 |
* Owl carousel
|
8 |
+
* @version 2.3.4
|
9 |
* @author Bartosz Wojciechowski
|
10 |
* @author David Deutsch
|
11 |
* @license The MIT License (MIT)
|
57 |
this._plugins = {};
|
58 |
|
59 |
/**
|
60 |
+
* Currently suppressed events to prevent them from being retriggered.
|
61 |
* @protected
|
62 |
*/
|
63 |
this._supress = {};
|
188 |
loop: false,
|
189 |
center: false,
|
190 |
rewind: false,
|
191 |
+
checkVisibility: true,
|
192 |
|
193 |
mouseDrag: true,
|
194 |
touchDrag: true,
|
214 |
responsiveBaseElement: window,
|
215 |
|
216 |
fallbackEasing: 'swing',
|
217 |
+
slideTransition: '',
|
218 |
|
219 |
info: false,
|
220 |
|
337 |
|
338 |
repeat /= 2;
|
339 |
|
340 |
+
while (repeat > 0) {
|
341 |
// Switch to only using appended clones
|
342 |
clones.push(this.normalize(clones.length / 2, true));
|
343 |
append = append + items[clones[clones.length - 1]][0].outerHTML;
|
344 |
clones.push(this.normalize(items.length - 1 - (clones.length - 1) / 2, true));
|
345 |
prepend = items[clones[clones.length - 1]][0].outerHTML + prepend;
|
346 |
+
repeat -= 1;
|
347 |
}
|
348 |
|
349 |
this._clones = clones;
|
438 |
this.$stage.children('.active').removeClass('active');
|
439 |
this.$stage.children(':eq(' + matches.join('), :eq(') + ')').addClass('active');
|
440 |
|
441 |
+
this.$stage.children('.center').removeClass('center');
|
442 |
if (this.settings.center) {
|
|
|
443 |
this.$stage.children().eq(this.current()).addClass('center');
|
444 |
}
|
445 |
}
|
446 |
} ];
|
447 |
|
448 |
/**
|
449 |
+
* Create the stage DOM element
|
|
|
450 |
*/
|
451 |
+
Owl.prototype.initializeStage = function() {
|
452 |
+
this.$stage = this.$element.find('.' + this.settings.stageClass);
|
|
|
453 |
|
454 |
+
// if the stage is already in the DOM, grab it and skip stage initialization
|
455 |
+
if (this.$stage.length) {
|
456 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
}
|
458 |
|
459 |
this.$element.addClass(this.options.loadingClass);
|
460 |
|
461 |
// create stage
|
462 |
+
this.$stage = $('<' + this.settings.stageElement + '>', {
|
463 |
+
"class": this.settings.stageClass
|
464 |
+
}).wrap( $( '<div/>', {
|
465 |
+
"class": this.settings.stageOuterClass
|
466 |
+
}));
|
467 |
|
468 |
// append stage
|
469 |
this.$element.append(this.$stage.parent());
|
470 |
+
};
|
471 |
+
|
472 |
+
/**
|
473 |
+
* Create item DOM elements
|
474 |
+
*/
|
475 |
+
Owl.prototype.initializeItems = function() {
|
476 |
+
var $items = this.$element.find('.owl-item');
|
477 |
+
|
478 |
+
// if the items are already in the DOM, grab them and skip item initialization
|
479 |
+
if ($items.length) {
|
480 |
+
this._items = $items.get().map(function(item) {
|
481 |
+
return $(item);
|
482 |
+
});
|
483 |
+
|
484 |
+
this._mergers = this._items.map(function() {
|
485 |
+
return 1;
|
486 |
+
});
|
487 |
+
|
488 |
+
this.refresh();
|
489 |
+
|
490 |
+
return;
|
491 |
+
}
|
492 |
|
493 |
// append content
|
494 |
this.replace(this.$element.children().not(this.$stage.parent()));
|
495 |
|
496 |
// check visibility
|
497 |
+
if (this.isVisible()) {
|
498 |
// update view
|
499 |
this.refresh();
|
500 |
} else {
|
505 |
this.$element
|
506 |
.removeClass(this.options.loadingClass)
|
507 |
.addClass(this.options.loadedClass);
|
508 |
+
};
|
509 |
+
|
510 |
+
/**
|
511 |
+
* Initializes the carousel.
|
512 |
+
* @protected
|
513 |
+
*/
|
514 |
+
Owl.prototype.initialize = function() {
|
515 |
+
this.enter('initializing');
|
516 |
+
this.trigger('initialize');
|
517 |
+
|
518 |
+
this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl);
|
519 |
+
|
520 |
+
if (this.settings.autoWidth && !this.is('pre-loading')) {
|
521 |
+
var imgs, nestedSelector, width;
|
522 |
+
imgs = this.$element.find('img');
|
523 |
+
nestedSelector = this.settings.nestedItemSelector ? '.' + this.settings.nestedItemSelector : undefined;
|
524 |
+
width = this.$element.children(nestedSelector).width();
|
525 |
+
|
526 |
+
if (imgs.length && width <= 0) {
|
527 |
+
this.preloadAutoWidthImages(imgs);
|
528 |
+
}
|
529 |
+
}
|
530 |
+
|
531 |
+
this.initializeStage();
|
532 |
+
this.initializeItems();
|
533 |
|
534 |
// register event handlers
|
535 |
this.registerEventHandlers();
|
538 |
this.trigger('initialized');
|
539 |
};
|
540 |
|
541 |
+
/**
|
542 |
+
* @returns {Boolean} visibility of $element
|
543 |
+
* if you know the carousel will always be visible you can set `checkVisibility` to `false` to
|
544 |
+
* prevent the expensive browser layout forced reflow the $element.is(':visible') does
|
545 |
+
*/
|
546 |
+
Owl.prototype.isVisible = function() {
|
547 |
+
return this.settings.checkVisibility
|
548 |
+
? this.$element.is(':visible')
|
549 |
+
: true;
|
550 |
+
};
|
551 |
+
|
552 |
/**
|
553 |
* Setups the current settings.
|
554 |
* @todo Remove responsive classes. Why should adaptive designs be brought into IE8?
|
704 |
return false;
|
705 |
}
|
706 |
|
707 |
+
if (!this.isVisible()) {
|
708 |
return false;
|
709 |
}
|
710 |
|
910 |
} else if (direction === 'right' && coordinate > value - width - pull && coordinate < value - width + pull) {
|
911 |
position = index + 1;
|
912 |
} else if (this.op(coordinate, '<', value)
|
913 |
+
&& this.op(coordinate, '>', coordinates[index + 1] !== undefined ? coordinates[index + 1] : value - width)) {
|
914 |
position = direction === 'left' ? index + 1 : index;
|
915 |
}
|
916 |
return position === -1;
|
948 |
if ($.support.transform3d && $.support.transition) {
|
949 |
this.$stage.css({
|
950 |
transform: 'translate3d(' + coordinate + 'px,0px,0px)',
|
951 |
+
transition: (this.speed() / 1000) + 's' + (
|
952 |
+
this.settings.slideTransition ? ' ' + this.settings.slideTransition : ''
|
953 |
+
)
|
954 |
});
|
955 |
} else if (animate) {
|
956 |
this.$stage.animate({
|
1089 |
maximum = this._clones.length / 2 + this._items.length - 1;
|
1090 |
} else if (settings.autoWidth || settings.merge) {
|
1091 |
iterator = this._items.length;
|
1092 |
+
if (iterator) {
|
1093 |
+
reciprocalItemsWidth = this._items[--iterator].width();
|
1094 |
+
elementWidth = this.$element.width();
|
1095 |
+
while (iterator--) {
|
1096 |
+
reciprocalItemsWidth += this._items[iterator].width() + this.settings.margin;
|
1097 |
+
if (reciprocalItemsWidth > elementWidth) {
|
1098 |
+
break;
|
1099 |
+
}
|
1100 |
}
|
1101 |
}
|
1102 |
maximum = iterator + 1;
|
1274 |
this.speed(this.duration(current, position, speed));
|
1275 |
this.current(position);
|
1276 |
|
1277 |
+
if (this.isVisible()) {
|
1278 |
this.update();
|
1279 |
}
|
1280 |
};
|
1471 |
this.$stage.unwrap();
|
1472 |
this.$stage.children().contents().unwrap();
|
1473 |
this.$stage.children().unwrap();
|
1474 |
+
this.$stage.remove();
|
1475 |
this.$element
|
1476 |
.removeClass(this.options.refreshClass)
|
1477 |
.removeClass(this.options.loadingClass)
|
1756 |
|
1757 |
/**
|
1758 |
* AutoRefresh Plugin
|
1759 |
+
* @version 2.3.4
|
1760 |
* @author Artus Kolanowski
|
1761 |
* @author David Deutsch
|
1762 |
* @license The MIT License (MIT)
|
1827 |
return;
|
1828 |
}
|
1829 |
|
1830 |
+
this._visible = this._core.isVisible();
|
1831 |
this._interval = window.setInterval($.proxy(this.refresh, this), this._core.settings.autoRefreshInterval);
|
1832 |
};
|
1833 |
|
1835 |
* Refreshes the element.
|
1836 |
*/
|
1837 |
AutoRefresh.prototype.refresh = function() {
|
1838 |
+
if (this._core.isVisible() === this._visible) {
|
1839 |
return;
|
1840 |
}
|
1841 |
|
1868 |
|
1869 |
/**
|
1870 |
* Lazy Plugin
|
1871 |
+
* @version 2.3.4
|
1872 |
* @author Bartosz Wojciechowski
|
1873 |
* @author David Deutsch
|
1874 |
* @license The MIT License (MIT)
|
1918 |
position = (e.property && e.property.value !== undefined ? e.property.value : this._core.current()) + i,
|
1919 |
clones = this._core.clones().length,
|
1920 |
load = $.proxy(function(i, v) { this.load(v) }, this);
|
1921 |
+
//TODO: Need documentation for this new option
|
1922 |
+
if (settings.lazyLoadEager > 0) {
|
1923 |
+
n += settings.lazyLoadEager;
|
1924 |
+
// If the carousel is looping also preload images that are to the "left"
|
1925 |
+
if (settings.loop) {
|
1926 |
+
position -= settings.lazyLoadEager;
|
1927 |
+
n++;
|
1928 |
+
}
|
1929 |
+
}
|
1930 |
|
1931 |
while (i++ < n) {
|
1932 |
this.load(clones / 2 + this._core.relative(position));
|
1949 |
* @public
|
1950 |
*/
|
1951 |
Lazy.Defaults = {
|
1952 |
+
lazyLoad: false,
|
1953 |
+
lazyLoadEager: 0
|
1954 |
};
|
1955 |
|
1956 |
/**
|
1968 |
|
1969 |
$elements.each($.proxy(function(index, element) {
|
1970 |
var $element = $(element), image,
|
1971 |
+
url = (window.devicePixelRatio > 1 && $element.attr('data-src-retina')) || $element.attr('data-src') || $element.attr('data-srcset');
|
1972 |
|
1973 |
this._core.trigger('load', { element: $element, url: url }, 'lazy');
|
1974 |
|
1977 |
$element.css('opacity', 1);
|
1978 |
this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
|
1979 |
}, this)).attr('src', url);
|
1980 |
+
} else if ($element.is('source')) {
|
1981 |
+
$element.one('load.owl.lazy', $.proxy(function() {
|
1982 |
+
this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
|
1983 |
+
}, this)).attr('srcset', url);
|
1984 |
} else {
|
1985 |
image = new Image();
|
1986 |
image.onload = $.proxy(function() {
|
2018 |
|
2019 |
/**
|
2020 |
* AutoHeight Plugin
|
2021 |
+
* @version 2.3.4
|
2022 |
* @author Bartosz Wojciechowski
|
2023 |
* @author David Deutsch
|
2024 |
* @license The MIT License (MIT)
|
2038 |
*/
|
2039 |
this._core = carousel;
|
2040 |
|
2041 |
+
this._previousHeight = null;
|
2042 |
+
|
2043 |
/**
|
2044 |
* All event handlers.
|
2045 |
* @protected
|
2052 |
}
|
2053 |
}, this),
|
2054 |
'changed.owl.carousel': $.proxy(function(e) {
|
2055 |
+
if (e.namespace && this._core.settings.autoHeight && e.property.name === 'position'){
|
2056 |
this.update();
|
2057 |
}
|
2058 |
}, this),
|
2069 |
|
2070 |
// register event handlers
|
2071 |
this._core.$element.on(this._handlers);
|
2072 |
+
this._intervalId = null;
|
2073 |
+
var refThis = this;
|
2074 |
+
|
2075 |
+
// These changes have been taken from a PR by gavrochelegnou proposed in #1575
|
2076 |
+
// and have been made compatible with the latest jQuery version
|
2077 |
+
$(window).on('load', function() {
|
2078 |
+
if (refThis._core.settings.autoHeight) {
|
2079 |
+
refThis.update();
|
2080 |
+
}
|
2081 |
+
});
|
2082 |
+
|
2083 |
+
// Autoresize the height of the carousel when window is resized
|
2084 |
+
// When carousel has images, the height is dependent on the width
|
2085 |
+
// and should also change on resize
|
2086 |
+
$(window).resize(function() {
|
2087 |
+
if (refThis._core.settings.autoHeight) {
|
2088 |
+
if (refThis._intervalId != null) {
|
2089 |
+
clearTimeout(refThis._intervalId);
|
2090 |
+
}
|
2091 |
+
|
2092 |
+
refThis._intervalId = setTimeout(function() {
|
2093 |
+
refThis.update();
|
2094 |
+
}, 250);
|
2095 |
+
}
|
2096 |
+
});
|
2097 |
+
|
2098 |
};
|
2099 |
|
2100 |
/**
|
2112 |
AutoHeight.prototype.update = function() {
|
2113 |
var start = this._core._current,
|
2114 |
end = start + this._core.settings.items,
|
2115 |
+
lazyLoadEnabled = this._core.settings.lazyLoad,
|
2116 |
visible = this._core.$stage.children().toArray().slice(start, end),
|
2117 |
heights = [],
|
2118 |
maxheight = 0;
|
2123 |
|
2124 |
maxheight = Math.max.apply(null, heights);
|
2125 |
|
2126 |
+
if (maxheight <= 1 && lazyLoadEnabled && this._previousHeight) {
|
2127 |
+
maxheight = this._previousHeight;
|
2128 |
+
}
|
2129 |
+
|
2130 |
+
this._previousHeight = maxheight;
|
2131 |
+
|
2132 |
this._core.$stage.parent()
|
2133 |
.height(maxheight)
|
2134 |
.addClass(this._core.settings.autoHeightClass);
|
2141 |
this._core.$element.off(handler, this._handlers[handler]);
|
2142 |
}
|
2143 |
for (property in Object.getOwnPropertyNames(this)) {
|
2144 |
+
typeof this[property] !== 'function' && (this[property] = null);
|
2145 |
}
|
2146 |
};
|
2147 |
|
2151 |
|
2152 |
/**
|
2153 |
* Video Plugin
|
2154 |
+
* @version 2.3.4
|
2155 |
* @author Bartosz Wojciechowski
|
2156 |
* @author David Deutsch
|
2157 |
* @license The MIT License (MIT)
|
2282 |
Visual example: https://regexper.com/#(http%3A%7Chttps%3A%7C)%5C%2F%5C%2F(player.%7Cwww.%7Capp.)%3F(vimeo%5C.com%7Cyoutu(be%5C.com%7C%5C.be%7Cbe%5C.googleapis%5C.com)%7Cvzaar%5C.com)%5C%2F(video%5C%2F%7Cvideos%5C%2F%7Cembed%5C%2F%7Cchannels%5C%2F.%2B%5C%2F%7Cgroups%5C%2F.%2B%5C%2F%7Cwatch%5C%3Fv%3D%7Cv%5C%2F)%3F(%5BA-Za-z0-9._%25-%5D*)(%5C%26%5CS%2B)%3F
|
2283 |
*/
|
2284 |
|
2285 |
+
id = url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);
|
2286 |
|
2287 |
if (id[3].indexOf('youtu') > -1) {
|
2288 |
type = 'youtube';
|
2321 |
var tnLink,
|
2322 |
icon,
|
2323 |
path,
|
2324 |
+
dimensions = video.width && video.height ? 'width:' + video.width + 'px;height:' + video.height + 'px;' : '',
|
2325 |
customTn = target.find('img'),
|
2326 |
srcType = 'src',
|
2327 |
lazyClass = '',
|
2330 |
icon = '<div class="owl-video-play-icon"></div>';
|
2331 |
|
2332 |
if (settings.lazyLoad) {
|
2333 |
+
tnLink = $('<div/>',{
|
2334 |
+
"class": 'owl-video-tn ' + lazyClass,
|
2335 |
+
"srcType": path
|
2336 |
+
});
|
2337 |
} else {
|
2338 |
+
tnLink = $( '<div/>', {
|
2339 |
+
"class": "owl-video-tn",
|
2340 |
+
"style": 'opacity:1;background-image:url(' + path + ')'
|
2341 |
+
});
|
2342 |
}
|
2343 |
target.after(tnLink);
|
2344 |
target.after(icon);
|
2345 |
};
|
2346 |
|
2347 |
// wrap video content into owl-video-wrapper div
|
2348 |
+
target.wrap( $( '<div/>', {
|
2349 |
+
"class": "owl-video-wrapper",
|
2350 |
+
"style": dimensions
|
2351 |
+
}));
|
2352 |
|
2353 |
if (this._core.settings.lazyLoad) {
|
2354 |
srcType = 'data-src';
|
2414 |
video = this._videos[item.attr('data-video')],
|
2415 |
width = video.width || '100%',
|
2416 |
height = video.height || this._core.$stage.height(),
|
2417 |
+
html,
|
2418 |
+
iframe;
|
2419 |
|
2420 |
if (this._playing) {
|
2421 |
return;
|
2428 |
|
2429 |
this._core.reset(item.index());
|
2430 |
|
2431 |
+
html = $( '<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>' );
|
2432 |
+
html.attr( 'height', height );
|
2433 |
+
html.attr( 'width', width );
|
2434 |
if (video.type === 'youtube') {
|
2435 |
+
html.attr( 'src', '//www.youtube.com/embed/' + video.id + '?autoplay=1&rel=0&v=' + video.id );
|
|
|
2436 |
} else if (video.type === 'vimeo') {
|
2437 |
+
html.attr( 'src', '//player.vimeo.com/video/' + video.id + '?autoplay=1' );
|
|
|
|
|
2438 |
} else if (video.type === 'vzaar') {
|
2439 |
+
html.attr( 'src', '//view.vzaar.com/' + video.id + '/player?autoplay=true' );
|
|
|
|
|
2440 |
}
|
2441 |
|
2442 |
+
iframe = $(html).wrap( '<div class="owl-video-frame" />' ).insertAfter(item.find('.owl-video'));
|
2443 |
|
2444 |
this._playing = item.addClass('owl-video-playing');
|
2445 |
};
|
2479 |
|
2480 |
/**
|
2481 |
* Animate Plugin
|
2482 |
+
* @version 2.3.4
|
2483 |
* @author Bartosz Wojciechowski
|
2484 |
* @author David Deutsch
|
2485 |
* @license The MIT License (MIT)
|
2601 |
|
2602 |
/**
|
2603 |
* Autoplay Plugin
|
2604 |
+
* @version 2.3.4
|
2605 |
* @author Bartosz Wojciechowski
|
2606 |
* @author Artus Kolanowski
|
2607 |
* @author David Deutsch
|
2608 |
+
* @author Tom De Caluwé
|
2609 |
* @license The MIT License (MIT)
|
2610 |
*/
|
2611 |
;(function($, window, document, undefined) {
|
2624 |
this._core = carousel;
|
2625 |
|
2626 |
/**
|
2627 |
+
* The autoplay timeout id.
|
2628 |
+
* @type {Number}
|
2629 |
+
*/
|
2630 |
+
this._call = null;
|
2631 |
+
|
2632 |
+
/**
|
2633 |
+
* Depending on the state of the plugin, this variable contains either
|
2634 |
+
* the start time of the timer or the current timer value if it's
|
2635 |
+
* paused. Since we start in a paused state we initialize the timer
|
2636 |
+
* value.
|
2637 |
+
* @type {Number}
|
2638 |
*/
|
2639 |
+
this._time = 0;
|
2640 |
+
|
2641 |
+
/**
|
2642 |
+
* Stores the timeout currently used.
|
2643 |
+
* @type {Number}
|
2644 |
+
*/
|
2645 |
+
this._timeout = 0;
|
2646 |
|
2647 |
/**
|
2648 |
* Indicates whenever the autoplay is paused.
|
2649 |
* @type {Boolean}
|
2650 |
*/
|
2651 |
+
this._paused = true;
|
2652 |
|
2653 |
/**
|
2654 |
* All event handlers.
|
2663 |
} else {
|
2664 |
this.stop();
|
2665 |
}
|
2666 |
+
} else if (e.namespace && e.property.name === 'position' && this._paused) {
|
2667 |
+
// Reset the timer. This code is triggered when the position
|
2668 |
+
// of the carousel was changed through user interaction.
|
2669 |
+
this._time = 0;
|
|
|
2670 |
}
|
2671 |
}, this),
|
2672 |
'initialized.owl.carousel': $.proxy(function(e) {
|
2725 |
};
|
2726 |
|
2727 |
/**
|
2728 |
+
* Transition to the next slide and set a timeout for the next transition.
|
2729 |
+
* @private
|
|
|
2730 |
* @param {Number} [speed] - The animation speed for the animations.
|
2731 |
*/
|
2732 |
+
Autoplay.prototype._next = function(speed) {
|
2733 |
+
this._call = window.setTimeout(
|
2734 |
+
$.proxy(this._next, this, speed),
|
2735 |
+
this._timeout * (Math.round(this.read() / this._timeout) + 1) - this.read()
|
2736 |
+
);
|
2737 |
|
2738 |
+
if (this._core.is('interacting') || document.hidden) {
|
2739 |
return;
|
2740 |
}
|
2741 |
+
this._core.next(speed || this._core.settings.autoplaySpeed);
|
2742 |
+
}
|
2743 |
|
2744 |
+
/**
|
2745 |
+
* Reads the current timer value when the timer is playing.
|
2746 |
+
* @public
|
2747 |
+
*/
|
2748 |
+
Autoplay.prototype.read = function() {
|
2749 |
+
return new Date().getTime() - this._time;
|
2750 |
};
|
2751 |
|
2752 |
/**
|
2753 |
+
* Starts the autoplay.
|
2754 |
+
* @public
|
2755 |
* @param {Number} [timeout] - The interval before the next animation starts.
|
2756 |
* @param {Number} [speed] - The animation speed for the animations.
|
|
|
2757 |
*/
|
2758 |
+
Autoplay.prototype.play = function(timeout, speed) {
|
2759 |
+
var elapsed;
|
2760 |
+
|
2761 |
+
if (!this._core.is('rotating')) {
|
2762 |
+
this._core.enter('rotating');
|
2763 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2764 |
|
2765 |
+
timeout = timeout || this._core.settings.autoplayTimeout;
|
2766 |
+
|
2767 |
+
// Calculate the elapsed time since the last transition. If the carousel
|
2768 |
+
// wasn't playing this calculation will yield zero.
|
2769 |
+
elapsed = Math.min(this._time % (this._timeout || timeout), timeout);
|
2770 |
+
|
2771 |
+
if (this._paused) {
|
2772 |
+
// Start the clock.
|
2773 |
+
this._time = this.read();
|
2774 |
+
this._paused = false;
|
2775 |
+
} else {
|
2776 |
+
// Clear the active timeout to allow replacement.
|
2777 |
+
window.clearTimeout(this._call);
|
2778 |
+
}
|
2779 |
+
|
2780 |
+
// Adjust the origin of the timer to match the new timeout value.
|
2781 |
+
this._time += this.read() % timeout - elapsed;
|
2782 |
+
|
2783 |
+
this._timeout = timeout;
|
2784 |
+
this._call = window.setTimeout($.proxy(this._next, this, speed), timeout - elapsed);
|
2785 |
};
|
2786 |
|
2787 |
/**
|
2789 |
* @public
|
2790 |
*/
|
2791 |
Autoplay.prototype.stop = function() {
|
2792 |
+
if (this._core.is('rotating')) {
|
2793 |
+
// Reset the clock.
|
2794 |
+
this._time = 0;
|
2795 |
+
this._paused = true;
|
2796 |
|
2797 |
+
window.clearTimeout(this._call);
|
2798 |
+
this._core.leave('rotating');
|
2799 |
+
}
|
2800 |
};
|
2801 |
|
2802 |
/**
|
2803 |
+
* Pauses the autoplay.
|
2804 |
* @public
|
2805 |
*/
|
2806 |
Autoplay.prototype.pause = function() {
|
2807 |
+
if (this._core.is('rotating') && !this._paused) {
|
2808 |
+
// Pause the clock.
|
2809 |
+
this._time = this.read();
|
2810 |
+
this._paused = true;
|
2811 |
|
2812 |
+
window.clearTimeout(this._call);
|
2813 |
+
}
|
2814 |
};
|
2815 |
|
2816 |
/**
|
2835 |
|
2836 |
/**
|
2837 |
* Navigation Plugin
|
2838 |
+
* @version 2.3.4
|
2839 |
* @author Artus Kolanowski
|
2840 |
* @author David Deutsch
|
2841 |
* @license The MIT License (MIT)
|
2962 |
*/
|
2963 |
Navigation.Defaults = {
|
2964 |
nav: false,
|
2965 |
+
navText: [
|
2966 |
+
'<span aria-label="' + 'Previous' + '">‹</span>',
|
2967 |
+
'<span aria-label="' + 'Next' + '">›</span>'
|
2968 |
+
],
|
2969 |
navSpeed: false,
|
2970 |
+
navElement: 'button type="button" role="presentation"',
|
2971 |
navContainer: false,
|
2972 |
navContainerClass: 'owl-nav',
|
2973 |
+
navClass: [
|
2974 |
+
'owl-prev',
|
2975 |
+
'owl-next'
|
2976 |
+
],
|
2977 |
slideBy: 1,
|
2978 |
dotClass: 'owl-dot',
|
2979 |
dotsClass: 'owl-dots',
|
3013 |
|
3014 |
// create DOM structure for absolute navigation
|
3015 |
if (!settings.dotsData) {
|
3016 |
+
this._templates = [ $('<button role="button">')
|
3017 |
.addClass(settings.dotClass)
|
3018 |
.append($('<span>'))
|
3019 |
.prop('outerHTML') ];
|
3022 |
this._controls.$absolute = (settings.dotsContainer ? $(settings.dotsContainer)
|
3023 |
: $('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');
|
3024 |
|
3025 |
+
this._controls.$absolute.on('click', 'button', $.proxy(function(e) {
|
3026 |
var index = $(e.target).parent().is(this._controls.$absolute)
|
3027 |
? $(e.target).index() : $(e.target).parent().index();
|
3028 |
|
3031 |
this.to(index, settings.dotsSpeed);
|
3032 |
}, this));
|
3033 |
|
3034 |
+
/*$el.on('focusin', function() {
|
3035 |
+
$(document).off(".carousel");
|
3036 |
+
|
3037 |
+
$(document).on('keydown.carousel', function(e) {
|
3038 |
+
if(e.keyCode == 37) {
|
3039 |
+
$el.trigger('prev.owl')
|
3040 |
+
}
|
3041 |
+
if(e.keyCode == 39) {
|
3042 |
+
$el.trigger('next.owl')
|
3043 |
+
}
|
3044 |
+
});
|
3045 |
+
});*/
|
3046 |
+
|
3047 |
// override public methods of the carousel
|
3048 |
for (override in this._overrides) {
|
3049 |
this._core[override] = $.proxy(this[override], this);
|
3055 |
* @protected
|
3056 |
*/
|
3057 |
Navigation.prototype.destroy = function() {
|
3058 |
+
var handler, control, property, override, settings;
|
3059 |
+
settings = this._core.settings;
|
3060 |
|
3061 |
for (handler in this._handlers) {
|
3062 |
this.$element.off(handler, this._handlers[handler]);
|
3063 |
}
|
3064 |
for (control in this._controls) {
|
3065 |
+
if (control === '$relative' && settings.navContainer) {
|
3066 |
+
this._controls[control].html('');
|
3067 |
+
} else {
|
3068 |
+
this._controls[control].remove();
|
3069 |
+
}
|
3070 |
}
|
3071 |
for (override in this.overides) {
|
3072 |
this._core[override] = this._overrides[override];
|
3242 |
|
3243 |
/**
|
3244 |
* Hash Plugin
|
3245 |
+
* @version 2.3.4
|
3246 |
* @author Artus Kolanowski
|
3247 |
* @author David Deutsch
|
3248 |
* @license The MIT License (MIT)
|
3366 |
/**
|
3367 |
* Support Plugin
|
3368 |
*
|
3369 |
+
* @version 2.3.4
|
3370 |
* @author Vivid Planet Software GmbH
|
3371 |
* @author Artus Kolanowski
|
3372 |
* @author David Deutsch
|
assets/lib/owl-carousel/owl.carousel.min.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
-
* Owl Carousel v2.
|
3 |
-
* Copyright 2013-
|
4 |
-
* Licensed under
|
5 |
*/
|
6 |
-
!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&b<h+e?d=a:"right"===c&&b>h-f-e&&b<h-f+e?d=a+1:this.op(b,"<",h)&&this.op(b,">",g[a+1]||h-f)&&(d="left"===c?a+1:a),d===-1},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=f*-1*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&a.namespace.indexOf("owl")!==-1?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&e*-1||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};if(b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='<iframe width="'+g+'" height="'+h+'" src="//www.youtube.com/embed/'+f.id+"?autoplay=1&rel=0&v="+f.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===f.type?c='<iframe src="//player.vimeo.com/video/'+f.id+'?autoplay=1" width="'+g+'" height="'+h+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===f.type&&(c='<iframe frameborder="0"height="'+h+'"width="'+g+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+f.id+'/player?autoplay=true"></iframe>'),a('<div class="owl-video-frame">'+c+"</div>").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},
|
7 |
-
a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
|
1 |
/**
|
2 |
+
* Owl Carousel v2.3.4
|
3 |
+
* Copyright 2013-2018 David Deutsch
|
4 |
+
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
|
5 |
*/
|
6 |
+
!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i,g-=1;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],e.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(a("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeItems=function(){var b=this.$element.find(".owl-item");if(b.length)return this._items=b.get().map(function(b){return a(b)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var a,b,c;a=this.$element.find("img"),b=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadAutoWidthImages(a)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freeDrag||a.each(h,a.proxy(function(a,i){return"left"===c&&b>i-f&&b<i+f?e=a:"right"===c&&b>i-g-f&&b<i-g+f?e=a+1:this.op(b,"<",i)&&this.op(b,">",h[a+1]!==d?h[a+1]:i-g)&&(e="left"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,">",h[this.minimum()])?e=b=this.minimum():this.op(b,"<",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isVisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type)){var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyLoadEager>0&&(e+=c.lazyLoadEager,c.loop&&(g-=c.lazyLoadEager,e++));f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src")||f.attr("data-srcset");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):f.is("source")?f.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("srcset",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"===a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var d=this;a(b).on("load",function(){d._core.settings.autoHeight&&d.update()}),a(b).resize(function(){d._core.settings.autoHeight&&(null!=d._intervalId&&clearTimeout(d._intervalId),d._intervalId=setTimeout(function(){d.update()},250))})};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=Math.max.apply(null,f),g<=1&&d&&this._previousHeight&&(g=this._previousHeight),this._previousHeight=g,this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?"width:"+c.width+"px;height:"+c.height+"px;":"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(c){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?a("<div/>",{class:"owl-video-tn "+j,srcType:c}):a("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("<div/>",{class:"owl-video-wrapper",style:g})),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('<div class="owl-video-frame" />').insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,
|
7 |
+
animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('<button role="button">').addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d,e;e=this._core.settings;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)"$relative"===b&&e.navContainer?this._controls[b].html(""):this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
|
assets/scss/admin.scss
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
@import "utilities/variables";
|
2 |
-
@import "utilities/mixins";
|
3 |
-
@import 'admin/widget';
|
4 |
-
@import 'admin/toggle';
|
5 |
-
@import 'admin/meta-box';
|
6 |
-
@import 'admin/datepicker';
|
7 |
-
@import 'admin/select2';
|
8 |
-
@import 'admin/model';
|
9 |
-
@import 'admin/modal';
|
10 |
-
@import 'admin/tooltip';
|
11 |
-
@import 'admin/tab';
|
12 |
-
@import 'admin/documentation';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_datepicker.scss
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
/* jQuery UI Datepicker */
|
2 |
-
.ui-datepicker{
|
3 |
-
background-color: #ffffff;
|
4 |
-
border:1px solid #cccccc;
|
5 |
-
box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
|
6 |
-
padding: 8px;
|
7 |
-
display: none;
|
8 |
-
}
|
9 |
-
.ui-datepicker-header {
|
10 |
-
background-color: #f1f1f1;
|
11 |
-
}
|
12 |
-
.ui-datepicker-prev,
|
13 |
-
.ui-datepicker-next {
|
14 |
-
color:#000;
|
15 |
-
padding: 6px;
|
16 |
-
cursor: pointer;
|
17 |
-
}
|
18 |
-
.ui-datepicker-prev:hover,
|
19 |
-
.ui-datepicker-next:hover {
|
20 |
-
color:#000;
|
21 |
-
}
|
22 |
-
.ui-datepicker-prev {
|
23 |
-
float: left;
|
24 |
-
}
|
25 |
-
.ui-datepicker-next {
|
26 |
-
float: right;
|
27 |
-
}
|
28 |
-
.ui-datepicker-calendar td > a {
|
29 |
-
border: 1px solid #ddd;
|
30 |
-
display: block;
|
31 |
-
padding: 6px;
|
32 |
-
text-decoration: none;
|
33 |
-
color:#000;
|
34 |
-
background-color:#f1f1f1;
|
35 |
-
}
|
36 |
-
.ui-datepicker-calendar td.ui-datepicker-today > a {
|
37 |
-
color:#000;
|
38 |
-
background-color:#ffeb3b;
|
39 |
-
}
|
40 |
-
.ui-datepicker-calendar td.ui-datepicker-current-day > a {
|
41 |
-
color:#fff;
|
42 |
-
background-color:#f44336;
|
43 |
-
}
|
44 |
-
.sp-wp-editor-container {
|
45 |
-
max-width: 560px;
|
46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_documentation.scss
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
.carousel_slider_iframe {
|
2 |
-
position: relative;
|
3 |
-
padding-bottom: 56.25%;
|
4 |
-
padding-top: 25px;
|
5 |
-
height: 0;
|
6 |
-
}
|
7 |
-
|
8 |
-
.carousel_slider_iframe > iframe {
|
9 |
-
position: absolute;
|
10 |
-
top: 0;
|
11 |
-
left: 0;
|
12 |
-
width: 100%;
|
13 |
-
height: 100%;
|
14 |
-
}
|
15 |
-
|
16 |
-
.carousel_slider_columns {
|
17 |
-
display: flex;
|
18 |
-
flex-wrap: wrap;
|
19 |
-
box-sizing: border-box;
|
20 |
-
}
|
21 |
-
|
22 |
-
.carousel_slider_column {
|
23 |
-
flex: 0 0 100%;
|
24 |
-
padding: 1rem;
|
25 |
-
box-sizing: border-box;
|
26 |
-
}
|
27 |
-
|
28 |
-
@media screen and (min-width: 601px) {
|
29 |
-
.carousel_slider_column {
|
30 |
-
flex: 0 0 50%;
|
31 |
-
}
|
32 |
-
}
|
33 |
-
|
34 |
-
@media screen and (min-width: 1025px) {
|
35 |
-
.carousel_slider_column {
|
36 |
-
flex: 0 0 33.333333%;
|
37 |
-
}
|
38 |
-
}
|
39 |
-
|
40 |
-
@media screen and (min-width: 1400px) {
|
41 |
-
.carousel_slider_column {
|
42 |
-
flex: 0 0 25%;
|
43 |
-
}
|
44 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_meta-box.scss
DELETED
@@ -1,239 +0,0 @@
|
|
1 |
-
// Global
|
2 |
-
.overflowHidden {
|
3 |
-
overflow: hidden;
|
4 |
-
}
|
5 |
-
|
6 |
-
.overflowVisible {
|
7 |
-
overflow: visible;
|
8 |
-
}
|
9 |
-
|
10 |
-
// Meta box fields
|
11 |
-
.sp {
|
12 |
-
&-input-group {
|
13 |
-
margin-bottom: 10px;
|
14 |
-
&:after {
|
15 |
-
content: "";
|
16 |
-
display: table;
|
17 |
-
clear: both
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
&-input-label {
|
22 |
-
label {
|
23 |
-
font-weight: 600;
|
24 |
-
margin-right: 30px;
|
25 |
-
}
|
26 |
-
}
|
27 |
-
&-input-field {
|
28 |
-
}
|
29 |
-
|
30 |
-
&-input-label,
|
31 |
-
&-input-field {
|
32 |
-
float: left;
|
33 |
-
width: 100%;
|
34 |
-
}
|
35 |
-
&-input-desc {
|
36 |
-
color: #999;
|
37 |
-
font-size: 0.9em;
|
38 |
-
line-height: 1.3em;
|
39 |
-
margin: 10px 30px 10px 0;
|
40 |
-
}
|
41 |
-
&-input-text {
|
42 |
-
width: 100%;
|
43 |
-
padding: 8px 8px 8px 16px;
|
44 |
-
height: 35px !important;
|
45 |
-
|
46 |
-
option {
|
47 |
-
padding: 8px 4px;
|
48 |
-
}
|
49 |
-
}
|
50 |
-
}
|
51 |
-
|
52 |
-
.spacing-text {
|
53 |
-
width: 62px;
|
54 |
-
}
|
55 |
-
|
56 |
-
@media only screen and (min-width: 600px) {
|
57 |
-
.sp {
|
58 |
-
&-input-label {
|
59 |
-
width: 40%;
|
60 |
-
}
|
61 |
-
&-input-field {
|
62 |
-
width: 60%;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
}
|
66 |
-
|
67 |
-
@media only screen and (min-width: 783px) {
|
68 |
-
.sp-input-label {
|
69 |
-
width: 30%;
|
70 |
-
}
|
71 |
-
.sp-input-field {
|
72 |
-
width: 70%;
|
73 |
-
}
|
74 |
-
.sp-input-text {
|
75 |
-
width: 25em;
|
76 |
-
}
|
77 |
-
}
|
78 |
-
|
79 |
-
@media only screen and (min-width: 851px) {
|
80 |
-
.sp-input-label,
|
81 |
-
.sp-input-field {
|
82 |
-
width: 100%;
|
83 |
-
}
|
84 |
-
}
|
85 |
-
|
86 |
-
@media only screen and (min-width: 1200px) {
|
87 |
-
.sp-input-label {
|
88 |
-
width: 40%;
|
89 |
-
}
|
90 |
-
.sp-input-field {
|
91 |
-
width: 60%;
|
92 |
-
}
|
93 |
-
}
|
94 |
-
|
95 |
-
@media only screen and (min-width: 1600px) {
|
96 |
-
.sp-input-label {
|
97 |
-
width: 30%;
|
98 |
-
}
|
99 |
-
.sp-input-field {
|
100 |
-
width: 70%;
|
101 |
-
}
|
102 |
-
}
|
103 |
-
|
104 |
-
// Admin Media gallery
|
105 |
-
.carousel_slider {
|
106 |
-
&_images {
|
107 |
-
&:before,
|
108 |
-
&:after {
|
109 |
-
display: table;
|
110 |
-
content: "";
|
111 |
-
}
|
112 |
-
&:after {
|
113 |
-
clear: both;
|
114 |
-
}
|
115 |
-
}
|
116 |
-
&_gallery_btn {
|
117 |
-
border: 1px solid #616161;
|
118 |
-
color: #616161;
|
119 |
-
background-color: #f1f1f1;
|
120 |
-
padding: 5px 15px;
|
121 |
-
text-decoration: none;
|
122 |
-
|
123 |
-
&:hover {
|
124 |
-
background-color: #ffffff;
|
125 |
-
color: #616161;
|
126 |
-
}
|
127 |
-
}
|
128 |
-
&_gallery_list {
|
129 |
-
margin: 15px 0 0 0;
|
130 |
-
padding: 0;
|
131 |
-
list-style: none;
|
132 |
-
box-sizing: border-box;
|
133 |
-
&:before,
|
134 |
-
&:after {
|
135 |
-
display: table;
|
136 |
-
content: "";
|
137 |
-
}
|
138 |
-
&:after {
|
139 |
-
clear: both;
|
140 |
-
}
|
141 |
-
|
142 |
-
li {
|
143 |
-
float: left;
|
144 |
-
margin: 0;
|
145 |
-
padding: 0;
|
146 |
-
|
147 |
-
> img {
|
148 |
-
margin-right: 10px;
|
149 |
-
margin-bottom: 10px;
|
150 |
-
display: block;
|
151 |
-
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
152 |
-
}
|
153 |
-
}
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
// Hide Post carousel fields
|
158 |
-
// Related fields will be open by jQuery
|
159 |
-
#field-_post_date_after,
|
160 |
-
#field-_post_date_before,
|
161 |
-
#field-_post_categories,
|
162 |
-
#field-_post_tags,
|
163 |
-
#field-_post_in {
|
164 |
-
display: none;
|
165 |
-
}
|
166 |
-
|
167 |
-
// Hide Post carousel fields
|
168 |
-
// Related fields will be open by jQuery
|
169 |
-
#field-_product_query,
|
170 |
-
#field-_product_categories,
|
171 |
-
#field-_product_tags,
|
172 |
-
#field-_product_in {
|
173 |
-
display: none;
|
174 |
-
}
|
175 |
-
|
176 |
-
#carousel-slider-navigation-settings,
|
177 |
-
#carousel-slider-responsive-settings,
|
178 |
-
#carousel-slider-autoplay-settings {
|
179 |
-
p {
|
180 |
-
overflow: hidden;
|
181 |
-
}
|
182 |
-
input.small-text,
|
183 |
-
select.small-text {
|
184 |
-
float: right;
|
185 |
-
}
|
186 |
-
}
|
187 |
-
|
188 |
-
// Content Carousel Meta
|
189 |
-
.tab-background {
|
190 |
-
.slide_bg_wrapper {
|
191 |
-
display: flex;
|
192 |
-
padding: 1rem 0;
|
193 |
-
}
|
194 |
-
.slide_thumb {
|
195 |
-
position: relative;
|
196 |
-
float: left;
|
197 |
-
margin-right: 1rem;
|
198 |
-
border: solid 1px #e0e0e0;
|
199 |
-
padding: 5px;
|
200 |
-
|
201 |
-
> div {
|
202 |
-
width: 320px;
|
203 |
-
height: 180px;
|
204 |
-
background-color: #f1f1f1;
|
205 |
-
background-repeat: no-repeat;
|
206 |
-
background-position: top left;
|
207 |
-
background-size: 100% auto;
|
208 |
-
}
|
209 |
-
|
210 |
-
> span {
|
211 |
-
display: inline-block;
|
212 |
-
position: absolute;
|
213 |
-
top: 0;
|
214 |
-
right: 0;
|
215 |
-
font-family: Arial, Helvetica, sans-serif;
|
216 |
-
font-size: 14px;
|
217 |
-
line-height: 14px;
|
218 |
-
padding: 3px 3px;
|
219 |
-
background-color: rgba(0, 0, 0, 0.5);
|
220 |
-
color: #ffffff;
|
221 |
-
cursor: pointer;
|
222 |
-
transition: all .3s ease-in-out;
|
223 |
-
|
224 |
-
&.hidden {
|
225 |
-
display: none !important;
|
226 |
-
}
|
227 |
-
}
|
228 |
-
}
|
229 |
-
|
230 |
-
.slide_image_settings_line {
|
231 |
-
display: block;
|
232 |
-
margin: 0.5rem 0;
|
233 |
-
|
234 |
-
> span {
|
235 |
-
width: 150px;
|
236 |
-
display: inline-block;
|
237 |
-
}
|
238 |
-
}
|
239 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_modal.scss
DELETED
@@ -1,108 +0,0 @@
|
|
1 |
-
.modal {
|
2 |
-
@include overlay;
|
3 |
-
align-items: center;
|
4 |
-
display: none;
|
5 |
-
justify-content: center;
|
6 |
-
overflow: hidden;
|
7 |
-
position: fixed;
|
8 |
-
z-index: 10000;
|
9 |
-
|
10 |
-
.admin-bar & {
|
11 |
-
top: 32px;
|
12 |
-
}
|
13 |
-
|
14 |
-
.delete-icon {
|
15 |
-
@include delete;
|
16 |
-
}
|
17 |
-
|
18 |
-
// Modifiers
|
19 |
-
&.is-active {
|
20 |
-
display: flex;
|
21 |
-
}
|
22 |
-
|
23 |
-
&-background {
|
24 |
-
@include overlay;
|
25 |
-
background-color: rgba($black, 0.86);
|
26 |
-
}
|
27 |
-
|
28 |
-
&-content,
|
29 |
-
&-card {
|
30 |
-
margin: 0 20px;
|
31 |
-
max-height: calc(100vh - 160px);
|
32 |
-
overflow: auto;
|
33 |
-
position: relative;
|
34 |
-
width: 100%;
|
35 |
-
// Responsiveness
|
36 |
-
@media screen and (min-width: 769px), print {
|
37 |
-
margin: 0 auto;
|
38 |
-
max-height: calc(100vh - 40px);
|
39 |
-
width: 640px;
|
40 |
-
}
|
41 |
-
}
|
42 |
-
|
43 |
-
&-close {
|
44 |
-
@include delete;
|
45 |
-
background: none;
|
46 |
-
height: 40px;
|
47 |
-
position: fixed;
|
48 |
-
right: 20px;
|
49 |
-
top: 20px;
|
50 |
-
width: 40px;
|
51 |
-
}
|
52 |
-
|
53 |
-
&-card {
|
54 |
-
display: flex;
|
55 |
-
flex-direction: column;
|
56 |
-
max-height: calc(100vh - 40px);
|
57 |
-
overflow: hidden;
|
58 |
-
}
|
59 |
-
|
60 |
-
&-card-head,
|
61 |
-
&-card-foot {
|
62 |
-
align-items: center;
|
63 |
-
background-color: $background;
|
64 |
-
display: flex;
|
65 |
-
flex-shrink: 0;
|
66 |
-
justify-content: flex-start;
|
67 |
-
margin: 0;
|
68 |
-
padding: 20px;
|
69 |
-
position: relative;
|
70 |
-
}
|
71 |
-
|
72 |
-
&-card-head {
|
73 |
-
border-bottom: 1px solid $border;
|
74 |
-
border-top-left-radius: $radius-large;
|
75 |
-
border-top-right-radius: $radius-large;
|
76 |
-
}
|
77 |
-
|
78 |
-
&-card-title {
|
79 |
-
color: $text-strong;
|
80 |
-
flex-grow: 1;
|
81 |
-
flex-shrink: 0;
|
82 |
-
font-size: $size-4;
|
83 |
-
line-height: 1;
|
84 |
-
margin: 0;
|
85 |
-
padding: 0;
|
86 |
-
}
|
87 |
-
|
88 |
-
&-card-foot {
|
89 |
-
border-bottom-left-radius: $radius-large;
|
90 |
-
border-bottom-right-radius: $radius-large;
|
91 |
-
border-top: 1px solid $border;
|
92 |
-
.button {
|
93 |
-
&:not(:last-child) {
|
94 |
-
margin-right: 10px;
|
95 |
-
}
|
96 |
-
}
|
97 |
-
}
|
98 |
-
|
99 |
-
&-card-body {
|
100 |
-
-webkit-overflow-scrolling: touch;
|
101 |
-
background-color: $white;
|
102 |
-
flex-grow: 1;
|
103 |
-
flex-shrink: 1;
|
104 |
-
overflow: auto;
|
105 |
-
margin: 0;
|
106 |
-
padding: 20px;
|
107 |
-
}
|
108 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_model.scss
DELETED
@@ -1,140 +0,0 @@
|
|
1 |
-
.carousel_slider {
|
2 |
-
&-modal{
|
3 |
-
display: none;
|
4 |
-
position: fixed;
|
5 |
-
z-index: 10000;
|
6 |
-
left: 0;
|
7 |
-
top: 0;
|
8 |
-
width: 100%;
|
9 |
-
height: 100%;
|
10 |
-
overflow: hidden;
|
11 |
-
background-color: rgb(0,0,0);
|
12 |
-
background-color: rgba(0,0,0,0.8);
|
13 |
-
|
14 |
-
&-content{
|
15 |
-
position: relative;
|
16 |
-
background-color: #fefefe;
|
17 |
-
margin: 50px auto 18px;
|
18 |
-
padding: 0;
|
19 |
-
border: 1px solid #23282d;
|
20 |
-
min-height: 300px;
|
21 |
-
width: 412px;
|
22 |
-
// height: 90%;
|
23 |
-
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
|
24 |
-
}
|
25 |
-
|
26 |
-
&-header {
|
27 |
-
background-color: #23282d;
|
28 |
-
color: white;
|
29 |
-
font-weight: bold;
|
30 |
-
padding: 10px 16px;
|
31 |
-
}
|
32 |
-
&-body {
|
33 |
-
// max-height: 300px;
|
34 |
-
overflow-x: hidden;
|
35 |
-
overflow-y: scroll;
|
36 |
-
padding: 2px 16px;
|
37 |
-
}
|
38 |
-
|
39 |
-
&-footer {
|
40 |
-
background-color: #23282d;
|
41 |
-
color: white;
|
42 |
-
font-weight: bold;
|
43 |
-
padding: 10px 16px;
|
44 |
-
|
45 |
-
img {
|
46 |
-
display: none;
|
47 |
-
height: 14px;
|
48 |
-
vertical-align: middle;
|
49 |
-
width: 14px;
|
50 |
-
}
|
51 |
-
}
|
52 |
-
}
|
53 |
-
|
54 |
-
&-form {
|
55 |
-
margin-left: -15px;
|
56 |
-
margin-right: -15px;
|
57 |
-
}
|
58 |
-
|
59 |
-
// Carousel Slider Images URL
|
60 |
-
&-fields {
|
61 |
-
background-color: #f1f1f1;
|
62 |
-
margin: 15px;
|
63 |
-
padding: 15px 25px 15px 15px;
|
64 |
-
position: relative;
|
65 |
-
display: inline-block;
|
66 |
-
float: left;
|
67 |
-
|
68 |
-
label.setting {
|
69 |
-
display: block;
|
70 |
-
margin-bottom: 5px;
|
71 |
-
|
72 |
-
.name {
|
73 |
-
display: inline-block;
|
74 |
-
vertical-align: top;
|
75 |
-
width: 75px;
|
76 |
-
}
|
77 |
-
input, textarea {
|
78 |
-
width: 250px;
|
79 |
-
}
|
80 |
-
}
|
81 |
-
.actions {
|
82 |
-
position: absolute;
|
83 |
-
right: 0;
|
84 |
-
top: 0;
|
85 |
-
|
86 |
-
> span {
|
87 |
-
background: #fff none repeat scroll 0 0;
|
88 |
-
display: block;
|
89 |
-
float: none;
|
90 |
-
cursor: pointer;
|
91 |
-
|
92 |
-
.dashicons-plus-alt:hover {
|
93 |
-
color: green;
|
94 |
-
}
|
95 |
-
|
96 |
-
.dashicons-trash:hover {
|
97 |
-
color: red;
|
98 |
-
}
|
99 |
-
}
|
100 |
-
}
|
101 |
-
}
|
102 |
-
|
103 |
-
&-close {
|
104 |
-
color: #f1f1f1;
|
105 |
-
float: right;
|
106 |
-
font-size: 28px;
|
107 |
-
font-weight: bold;
|
108 |
-
|
109 |
-
&:hover,
|
110 |
-
&:focus {
|
111 |
-
color: #fff;
|
112 |
-
text-decoration: none;
|
113 |
-
cursor: pointer;
|
114 |
-
}
|
115 |
-
}
|
116 |
-
}
|
117 |
-
|
118 |
-
.carousel_slider_url_images_list {
|
119 |
-
margin: 15px 0 0;
|
120 |
-
padding: 0;
|
121 |
-
list-style: none;
|
122 |
-
|
123 |
-
li {
|
124 |
-
float: left;
|
125 |
-
display: inline-block;
|
126 |
-
margin: 0 5px 5px 0;
|
127 |
-
}
|
128 |
-
}
|
129 |
-
|
130 |
-
@media only screen and (min-width: 820px ){
|
131 |
-
.carousel_slider-modal-content {
|
132 |
-
width: 810px;
|
133 |
-
}
|
134 |
-
}
|
135 |
-
|
136 |
-
@media only screen and (min-width: 1230px ){
|
137 |
-
.carousel_slider-modal-content {
|
138 |
-
width: 1220px;
|
139 |
-
}
|
140 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_select2.scss
DELETED
@@ -1,634 +0,0 @@
|
|
1 |
-
.select2-container {
|
2 |
-
box-sizing: border-box;
|
3 |
-
display: inline-block;
|
4 |
-
margin: 0;
|
5 |
-
position: relative;
|
6 |
-
vertical-align: middle;
|
7 |
-
}
|
8 |
-
|
9 |
-
.select2-container .select2-selection--single {
|
10 |
-
box-sizing: border-box;
|
11 |
-
cursor: pointer;
|
12 |
-
display: block;
|
13 |
-
height: 28px;
|
14 |
-
user-select: none;
|
15 |
-
-webkit-user-select: none;
|
16 |
-
}
|
17 |
-
|
18 |
-
.select2-container .select2-selection--single .select2-selection__rendered {
|
19 |
-
display: block;
|
20 |
-
padding-left: 8px;
|
21 |
-
padding-right: 20px;
|
22 |
-
overflow: hidden;
|
23 |
-
text-overflow: ellipsis;
|
24 |
-
white-space: nowrap;
|
25 |
-
}
|
26 |
-
|
27 |
-
.select2-container .select2-selection--single .select2-selection__clear {
|
28 |
-
position: relative;
|
29 |
-
}
|
30 |
-
|
31 |
-
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
32 |
-
padding-right: 8px;
|
33 |
-
padding-left: 20px;
|
34 |
-
}
|
35 |
-
|
36 |
-
.select2-container .select2-selection--multiple {
|
37 |
-
box-sizing: border-box;
|
38 |
-
cursor: pointer;
|
39 |
-
display: block;
|
40 |
-
min-height: 32px;
|
41 |
-
user-select: none;
|
42 |
-
-webkit-user-select: none;
|
43 |
-
}
|
44 |
-
|
45 |
-
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
46 |
-
display: inline-block;
|
47 |
-
overflow: hidden;
|
48 |
-
padding-left: 8px;
|
49 |
-
text-overflow: ellipsis;
|
50 |
-
white-space: nowrap;
|
51 |
-
}
|
52 |
-
|
53 |
-
.select2-container .select2-search--inline {
|
54 |
-
float: left;
|
55 |
-
}
|
56 |
-
|
57 |
-
.select2-container .select2-search--inline .select2-search__field {
|
58 |
-
box-sizing: border-box;
|
59 |
-
border: none;
|
60 |
-
font-size: 100%;
|
61 |
-
margin-top: 5px;
|
62 |
-
padding: 0;
|
63 |
-
}
|
64 |
-
|
65 |
-
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
66 |
-
-webkit-appearance: none;
|
67 |
-
}
|
68 |
-
|
69 |
-
.select2-dropdown {
|
70 |
-
background-color: white;
|
71 |
-
border: 1px solid #aaa;
|
72 |
-
border-radius: 0;
|
73 |
-
box-sizing: border-box;
|
74 |
-
display: block;
|
75 |
-
position: absolute;
|
76 |
-
left: -100000px;
|
77 |
-
width: 100%;
|
78 |
-
z-index: 1051;
|
79 |
-
}
|
80 |
-
|
81 |
-
.select2-results {
|
82 |
-
display: block;
|
83 |
-
}
|
84 |
-
|
85 |
-
.select2-results__options {
|
86 |
-
list-style: none;
|
87 |
-
margin: 0;
|
88 |
-
padding: 0;
|
89 |
-
}
|
90 |
-
|
91 |
-
.select2-results__option {
|
92 |
-
padding: 6px;
|
93 |
-
user-select: none;
|
94 |
-
-webkit-user-select: none;
|
95 |
-
}
|
96 |
-
|
97 |
-
.select2-results__option[aria-selected] {
|
98 |
-
cursor: pointer;
|
99 |
-
}
|
100 |
-
|
101 |
-
.select2-container--open .select2-dropdown {
|
102 |
-
left: 0;
|
103 |
-
}
|
104 |
-
|
105 |
-
.select2-container--open .select2-dropdown--above {
|
106 |
-
border-bottom: none;
|
107 |
-
border-bottom-left-radius: 0;
|
108 |
-
border-bottom-right-radius: 0;
|
109 |
-
}
|
110 |
-
|
111 |
-
.select2-container--open .select2-dropdown--below {
|
112 |
-
border-top: none;
|
113 |
-
border-top-left-radius: 0;
|
114 |
-
border-top-right-radius: 0;
|
115 |
-
}
|
116 |
-
|
117 |
-
.select2-search--dropdown {
|
118 |
-
display: block;
|
119 |
-
padding: 4px;
|
120 |
-
}
|
121 |
-
|
122 |
-
.select2-search--dropdown .select2-search__field {
|
123 |
-
padding: 4px;
|
124 |
-
width: 100%;
|
125 |
-
box-sizing: border-box;
|
126 |
-
}
|
127 |
-
|
128 |
-
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
|
129 |
-
-webkit-appearance: none;
|
130 |
-
}
|
131 |
-
|
132 |
-
.select2-search--dropdown.select2-search--hide {
|
133 |
-
display: none;
|
134 |
-
}
|
135 |
-
|
136 |
-
.select2-close-mask {
|
137 |
-
border: 0;
|
138 |
-
margin: 0;
|
139 |
-
padding: 0;
|
140 |
-
display: block;
|
141 |
-
position: fixed;
|
142 |
-
left: 0;
|
143 |
-
top: 0;
|
144 |
-
min-height: 100%;
|
145 |
-
min-width: 100%;
|
146 |
-
height: auto;
|
147 |
-
width: auto;
|
148 |
-
opacity: 0;
|
149 |
-
z-index: 99;
|
150 |
-
background-color: #fff;
|
151 |
-
filter: alpha(opacity=0);
|
152 |
-
}
|
153 |
-
|
154 |
-
.select2-hidden-accessible {
|
155 |
-
border: 0 !important;
|
156 |
-
clip: rect(0 0 0 0) !important;
|
157 |
-
height: 1px !important;
|
158 |
-
margin: -1px !important;
|
159 |
-
overflow: hidden !important;
|
160 |
-
padding: 0 !important;
|
161 |
-
position: absolute !important;
|
162 |
-
width: 1px !important;
|
163 |
-
}
|
164 |
-
|
165 |
-
.select2-container--default .select2-selection--single {
|
166 |
-
background-color: #fff;
|
167 |
-
border: 1px solid #aaa;
|
168 |
-
border-radius: 0;
|
169 |
-
}
|
170 |
-
|
171 |
-
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
172 |
-
color: #444;
|
173 |
-
line-height: 28px;
|
174 |
-
}
|
175 |
-
|
176 |
-
.select2-container--default .select2-selection--single .select2-selection__clear {
|
177 |
-
cursor: pointer;
|
178 |
-
float: right;
|
179 |
-
font-weight: bold;
|
180 |
-
}
|
181 |
-
|
182 |
-
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
183 |
-
color: #999;
|
184 |
-
}
|
185 |
-
|
186 |
-
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
187 |
-
height: 26px;
|
188 |
-
position: absolute;
|
189 |
-
top: 1px;
|
190 |
-
right: 1px;
|
191 |
-
width: 20px;
|
192 |
-
}
|
193 |
-
|
194 |
-
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
195 |
-
border-color: #888 transparent transparent transparent;
|
196 |
-
border-style: solid;
|
197 |
-
border-width: 5px 4px 0 4px;
|
198 |
-
height: 0;
|
199 |
-
left: 50%;
|
200 |
-
margin-left: -4px;
|
201 |
-
margin-top: -2px;
|
202 |
-
position: absolute;
|
203 |
-
top: 50%;
|
204 |
-
width: 0;
|
205 |
-
}
|
206 |
-
|
207 |
-
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
208 |
-
float: left;
|
209 |
-
}
|
210 |
-
|
211 |
-
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
212 |
-
left: 1px;
|
213 |
-
right: auto;
|
214 |
-
}
|
215 |
-
|
216 |
-
.select2-container--default.select2-container--disabled .select2-selection--single {
|
217 |
-
background-color: #eee;
|
218 |
-
cursor: default;
|
219 |
-
}
|
220 |
-
|
221 |
-
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
222 |
-
display: none;
|
223 |
-
}
|
224 |
-
|
225 |
-
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
226 |
-
border-color: transparent transparent #888 transparent;
|
227 |
-
border-width: 0 4px 5px 4px;
|
228 |
-
}
|
229 |
-
|
230 |
-
.select2-container--default .select2-selection--multiple {
|
231 |
-
background-color: white;
|
232 |
-
border: 1px solid #aaa;
|
233 |
-
border-radius: 0;
|
234 |
-
cursor: text;
|
235 |
-
}
|
236 |
-
|
237 |
-
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
238 |
-
box-sizing: border-box;
|
239 |
-
list-style: none;
|
240 |
-
margin: 0;
|
241 |
-
padding: 0 5px;
|
242 |
-
width: 100%;
|
243 |
-
}
|
244 |
-
|
245 |
-
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
|
246 |
-
list-style: none;
|
247 |
-
}
|
248 |
-
|
249 |
-
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
|
250 |
-
color: #999;
|
251 |
-
margin-top: 5px;
|
252 |
-
float: left;
|
253 |
-
}
|
254 |
-
|
255 |
-
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
256 |
-
cursor: pointer;
|
257 |
-
float: right;
|
258 |
-
font-weight: bold;
|
259 |
-
margin-top: 5px;
|
260 |
-
margin-right: 10px;
|
261 |
-
}
|
262 |
-
|
263 |
-
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
264 |
-
background-color: #e4e4e4;
|
265 |
-
border: 1px solid #aaa;
|
266 |
-
border-radius: 0;
|
267 |
-
cursor: default;
|
268 |
-
float: left;
|
269 |
-
margin-right: 5px;
|
270 |
-
margin-top: 5px;
|
271 |
-
padding: 0 5px;
|
272 |
-
}
|
273 |
-
|
274 |
-
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
275 |
-
color: #999;
|
276 |
-
cursor: pointer;
|
277 |
-
display: inline-block;
|
278 |
-
font-weight: bold;
|
279 |
-
margin-right: 2px;
|
280 |
-
}
|
281 |
-
|
282 |
-
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
|
283 |
-
color: #333;
|
284 |
-
}
|
285 |
-
|
286 |
-
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
|
287 |
-
float: right;
|
288 |
-
}
|
289 |
-
|
290 |
-
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
291 |
-
margin-left: 5px;
|
292 |
-
margin-right: auto;
|
293 |
-
}
|
294 |
-
|
295 |
-
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
296 |
-
margin-left: 2px;
|
297 |
-
margin-right: auto;
|
298 |
-
}
|
299 |
-
|
300 |
-
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
301 |
-
border: solid black 1px;
|
302 |
-
outline: 0;
|
303 |
-
}
|
304 |
-
|
305 |
-
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
306 |
-
background-color: #eee;
|
307 |
-
cursor: default;
|
308 |
-
}
|
309 |
-
|
310 |
-
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
|
311 |
-
display: none;
|
312 |
-
}
|
313 |
-
|
314 |
-
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
|
315 |
-
border-top-left-radius: 0;
|
316 |
-
border-top-right-radius: 0;
|
317 |
-
}
|
318 |
-
|
319 |
-
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
|
320 |
-
border-bottom-left-radius: 0;
|
321 |
-
border-bottom-right-radius: 0;
|
322 |
-
}
|
323 |
-
|
324 |
-
.select2-container--default .select2-search--dropdown .select2-search__field {
|
325 |
-
border: 1px solid #aaa;
|
326 |
-
}
|
327 |
-
|
328 |
-
.select2-container--default .select2-search--inline .select2-search__field {
|
329 |
-
background: transparent;
|
330 |
-
border: none;
|
331 |
-
outline: 0;
|
332 |
-
box-shadow: none;
|
333 |
-
-webkit-appearance: textfield;
|
334 |
-
}
|
335 |
-
|
336 |
-
.select2-container--default .select2-results > .select2-results__options {
|
337 |
-
max-height: 200px;
|
338 |
-
overflow-y: auto;
|
339 |
-
}
|
340 |
-
|
341 |
-
.select2-container--default .select2-results__option[role=group] {
|
342 |
-
padding: 0;
|
343 |
-
}
|
344 |
-
|
345 |
-
.select2-container--default .select2-results__option[aria-disabled=true] {
|
346 |
-
color: #999;
|
347 |
-
}
|
348 |
-
|
349 |
-
.select2-container--default .select2-results__option[aria-selected=true] {
|
350 |
-
background-color: #ddd;
|
351 |
-
}
|
352 |
-
|
353 |
-
.select2-container--default .select2-results__option .select2-results__option {
|
354 |
-
padding-left: 1em;
|
355 |
-
}
|
356 |
-
|
357 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
|
358 |
-
padding-left: 0;
|
359 |
-
}
|
360 |
-
|
361 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
|
362 |
-
margin-left: -1em;
|
363 |
-
padding-left: 2em;
|
364 |
-
}
|
365 |
-
|
366 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
367 |
-
margin-left: -2em;
|
368 |
-
padding-left: 3em;
|
369 |
-
}
|
370 |
-
|
371 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
372 |
-
margin-left: -3em;
|
373 |
-
padding-left: 4em;
|
374 |
-
}
|
375 |
-
|
376 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
377 |
-
margin-left: -4em;
|
378 |
-
padding-left: 5em;
|
379 |
-
}
|
380 |
-
|
381 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
382 |
-
margin-left: -5em;
|
383 |
-
padding-left: 6em;
|
384 |
-
}
|
385 |
-
|
386 |
-
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
387 |
-
background-color: #5897fb;
|
388 |
-
color: white;
|
389 |
-
}
|
390 |
-
|
391 |
-
.select2-container--default .select2-results__group {
|
392 |
-
cursor: default;
|
393 |
-
display: block;
|
394 |
-
padding: 6px;
|
395 |
-
}
|
396 |
-
|
397 |
-
.select2-container--classic .select2-selection--single {
|
398 |
-
background-color: #f7f7f7;
|
399 |
-
border: 1px solid #aaa;
|
400 |
-
border-radius: 0;
|
401 |
-
outline: 0;
|
402 |
-
background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
|
403 |
-
background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
|
404 |
-
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
|
405 |
-
background-repeat: repeat-x;
|
406 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
|
407 |
-
}
|
408 |
-
|
409 |
-
.select2-container--classic .select2-selection--single:focus {
|
410 |
-
border: 1px solid #5897fb;
|
411 |
-
}
|
412 |
-
|
413 |
-
.select2-container--classic .select2-selection--single .select2-selection__rendered {
|
414 |
-
color: #444;
|
415 |
-
line-height: 28px;
|
416 |
-
}
|
417 |
-
|
418 |
-
.select2-container--classic .select2-selection--single .select2-selection__clear {
|
419 |
-
cursor: pointer;
|
420 |
-
float: right;
|
421 |
-
font-weight: bold;
|
422 |
-
margin-right: 10px;
|
423 |
-
}
|
424 |
-
|
425 |
-
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
|
426 |
-
color: #999;
|
427 |
-
}
|
428 |
-
|
429 |
-
.select2-container--classic .select2-selection--single .select2-selection__arrow {
|
430 |
-
background-color: #ddd;
|
431 |
-
border: none;
|
432 |
-
border-left: 1px solid #aaa;
|
433 |
-
border-top-right-radius: 4px;
|
434 |
-
border-bottom-right-radius: 4px;
|
435 |
-
height: 26px;
|
436 |
-
position: absolute;
|
437 |
-
top: 1px;
|
438 |
-
right: 1px;
|
439 |
-
width: 20px;
|
440 |
-
background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
441 |
-
background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
442 |
-
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
|
443 |
-
background-repeat: repeat-x;
|
444 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0);
|
445 |
-
}
|
446 |
-
|
447 |
-
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
|
448 |
-
border-color: #888 transparent transparent transparent;
|
449 |
-
border-style: solid;
|
450 |
-
border-width: 5px 4px 0 4px;
|
451 |
-
height: 0;
|
452 |
-
left: 50%;
|
453 |
-
margin-left: -4px;
|
454 |
-
margin-top: -2px;
|
455 |
-
position: absolute;
|
456 |
-
top: 50%;
|
457 |
-
width: 0;
|
458 |
-
}
|
459 |
-
|
460 |
-
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
461 |
-
float: left;
|
462 |
-
}
|
463 |
-
|
464 |
-
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
465 |
-
border: none;
|
466 |
-
border-right: 1px solid #aaa;
|
467 |
-
border-radius: 0;
|
468 |
-
border-top-left-radius: 4px;
|
469 |
-
border-bottom-left-radius: 4px;
|
470 |
-
left: 1px;
|
471 |
-
right: auto;
|
472 |
-
}
|
473 |
-
|
474 |
-
.select2-container--classic.select2-container--open .select2-selection--single {
|
475 |
-
border: 1px solid #5897fb;
|
476 |
-
}
|
477 |
-
|
478 |
-
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
|
479 |
-
background: transparent;
|
480 |
-
border: none;
|
481 |
-
}
|
482 |
-
|
483 |
-
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
484 |
-
border-color: transparent transparent #888 transparent;
|
485 |
-
border-width: 0 4px 5px 4px;
|
486 |
-
}
|
487 |
-
|
488 |
-
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
|
489 |
-
border-top: none;
|
490 |
-
border-top-left-radius: 0;
|
491 |
-
border-top-right-radius: 0;
|
492 |
-
background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
|
493 |
-
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
|
494 |
-
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
|
495 |
-
background-repeat: repeat-x;
|
496 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
|
497 |
-
}
|
498 |
-
|
499 |
-
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
|
500 |
-
border-bottom: none;
|
501 |
-
border-bottom-left-radius: 0;
|
502 |
-
border-bottom-right-radius: 0;
|
503 |
-
background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
|
504 |
-
background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
|
505 |
-
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
|
506 |
-
background-repeat: repeat-x;
|
507 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0);
|
508 |
-
}
|
509 |
-
|
510 |
-
.select2-container--classic .select2-selection--multiple {
|
511 |
-
background-color: white;
|
512 |
-
border: 1px solid #aaa;
|
513 |
-
border-radius: 0;
|
514 |
-
cursor: text;
|
515 |
-
outline: 0;
|
516 |
-
}
|
517 |
-
|
518 |
-
.select2-container--classic .select2-selection--multiple:focus {
|
519 |
-
border: 1px solid #5897fb;
|
520 |
-
}
|
521 |
-
|
522 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
|
523 |
-
list-style: none;
|
524 |
-
margin: 0;
|
525 |
-
padding: 0 5px;
|
526 |
-
}
|
527 |
-
|
528 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
|
529 |
-
display: none;
|
530 |
-
}
|
531 |
-
|
532 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
|
533 |
-
background-color: #e4e4e4;
|
534 |
-
border: 1px solid #aaa;
|
535 |
-
border-radius: 0;
|
536 |
-
cursor: default;
|
537 |
-
float: left;
|
538 |
-
margin-right: 5px;
|
539 |
-
margin-top: 5px;
|
540 |
-
padding: 0 5px;
|
541 |
-
}
|
542 |
-
|
543 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
|
544 |
-
color: #888;
|
545 |
-
cursor: pointer;
|
546 |
-
display: inline-block;
|
547 |
-
font-weight: bold;
|
548 |
-
margin-right: 2px;
|
549 |
-
}
|
550 |
-
|
551 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
|
552 |
-
color: #555;
|
553 |
-
}
|
554 |
-
|
555 |
-
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
556 |
-
float: right;
|
557 |
-
}
|
558 |
-
|
559 |
-
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
560 |
-
margin-left: 5px;
|
561 |
-
margin-right: auto;
|
562 |
-
}
|
563 |
-
|
564 |
-
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
565 |
-
margin-left: 2px;
|
566 |
-
margin-right: auto;
|
567 |
-
}
|
568 |
-
|
569 |
-
.select2-container--classic.select2-container--open .select2-selection--multiple {
|
570 |
-
border: 1px solid #5897fb;
|
571 |
-
}
|
572 |
-
|
573 |
-
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
|
574 |
-
border-top: none;
|
575 |
-
border-top-left-radius: 0;
|
576 |
-
border-top-right-radius: 0;
|
577 |
-
}
|
578 |
-
|
579 |
-
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
|
580 |
-
border-bottom: none;
|
581 |
-
border-bottom-left-radius: 0;
|
582 |
-
border-bottom-right-radius: 0;
|
583 |
-
}
|
584 |
-
|
585 |
-
.select2-container--classic .select2-search--dropdown .select2-search__field {
|
586 |
-
border: 1px solid #aaa;
|
587 |
-
outline: 0;
|
588 |
-
}
|
589 |
-
|
590 |
-
.select2-container--classic .select2-search--inline .select2-search__field {
|
591 |
-
outline: 0;
|
592 |
-
box-shadow: none;
|
593 |
-
}
|
594 |
-
|
595 |
-
.select2-container--classic .select2-dropdown {
|
596 |
-
background-color: white;
|
597 |
-
border: 1px solid transparent;
|
598 |
-
}
|
599 |
-
|
600 |
-
.select2-container--classic .select2-dropdown--above {
|
601 |
-
border-bottom: none;
|
602 |
-
}
|
603 |
-
|
604 |
-
.select2-container--classic .select2-dropdown--below {
|
605 |
-
border-top: none;
|
606 |
-
}
|
607 |
-
|
608 |
-
.select2-container--classic .select2-results > .select2-results__options {
|
609 |
-
max-height: 200px;
|
610 |
-
overflow-y: auto;
|
611 |
-
}
|
612 |
-
|
613 |
-
.select2-container--classic .select2-results__option[role=group] {
|
614 |
-
padding: 0;
|
615 |
-
}
|
616 |
-
|
617 |
-
.select2-container--classic .select2-results__option[aria-disabled=true] {
|
618 |
-
color: grey;
|
619 |
-
}
|
620 |
-
|
621 |
-
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
|
622 |
-
background-color: #3875d7;
|
623 |
-
color: white;
|
624 |
-
}
|
625 |
-
|
626 |
-
.select2-container--classic .select2-results__group {
|
627 |
-
cursor: default;
|
628 |
-
display: block;
|
629 |
-
padding: 6px;
|
630 |
-
}
|
631 |
-
|
632 |
-
.select2-container--classic.select2-container--open .select2-dropdown {
|
633 |
-
border-color: #5897fb;
|
634 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_tab.scss
DELETED
@@ -1,79 +0,0 @@
|
|
1 |
-
/* Tabs */
|
2 |
-
$accent: #323232;
|
3 |
-
|
4 |
-
.shapla-nav {
|
5 |
-
list-style: none !important;
|
6 |
-
margin: 0;
|
7 |
-
padding: 0;
|
8 |
-
|
9 |
-
&:before,
|
10 |
-
&:after {
|
11 |
-
display: table;
|
12 |
-
content: ' ';
|
13 |
-
}
|
14 |
-
|
15 |
-
&:after {
|
16 |
-
clear: both;
|
17 |
-
}
|
18 |
-
|
19 |
-
li {
|
20 |
-
float: left;
|
21 |
-
position: relative;
|
22 |
-
margin: 0 1px -1px 0 !important;
|
23 |
-
z-index: 1;
|
24 |
-
outline: 0;
|
25 |
-
}
|
26 |
-
a {
|
27 |
-
text-decoration: none;
|
28 |
-
display: block;
|
29 |
-
padding: 15px 10px;
|
30 |
-
line-height: 1;
|
31 |
-
outline: 0;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
|
35 |
-
.shapla-tab {
|
36 |
-
margin: 0 0 2em 0;
|
37 |
-
padding: 21px 20px 20px 20px;
|
38 |
-
|
39 |
-
p:first-of-type {
|
40 |
-
margin-top: 0;
|
41 |
-
}
|
42 |
-
p:last-of-type {
|
43 |
-
margin-bottom: 0;
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
.shapla-tabs--normal {
|
48 |
-
.shapla-nav {
|
49 |
-
a {
|
50 |
-
background: $accent;
|
51 |
-
color: #fff;
|
52 |
-
}
|
53 |
-
.ui-tabs-active a {
|
54 |
-
background: #f1f1f1;
|
55 |
-
color: $accent;
|
56 |
-
outline: 0;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
.shapla-tab {
|
60 |
-
background: #f1f1f1;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
|
64 |
-
.shapla-tabs--stroke {
|
65 |
-
.shapla-nav li {
|
66 |
-
margin: 0 -1px 0 0 !important;
|
67 |
-
}
|
68 |
-
.shapla-nav a {
|
69 |
-
border: 1px solid $accent;
|
70 |
-
color: $accent;
|
71 |
-
}
|
72 |
-
.shapla-nav .ui-tabs-active a {
|
73 |
-
border-bottom-color: white;
|
74 |
-
}
|
75 |
-
.shapla-tab {
|
76 |
-
border: 1px solid $accent;
|
77 |
-
margin-top: -1px;
|
78 |
-
}
|
79 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_toggle.scss
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
.shapla-toggle {
|
2 |
-
margin: 1em 0 !important;
|
3 |
-
|
4 |
-
&-title {
|
5 |
-
display: block;
|
6 |
-
padding: 15px 10px;
|
7 |
-
outline: 0;
|
8 |
-
cursor: pointer;
|
9 |
-
position: relative;
|
10 |
-
|
11 |
-
&:after {
|
12 |
-
position: absolute;
|
13 |
-
right: 15px;
|
14 |
-
font: 400 20px/1 dashicons;
|
15 |
-
margin-left: -1px;
|
16 |
-
padding-right: 3px;
|
17 |
-
vertical-align: top;
|
18 |
-
content: "\f132";
|
19 |
-
}
|
20 |
-
|
21 |
-
&.ui-state-active:after {
|
22 |
-
content: "\f460";
|
23 |
-
}
|
24 |
-
}
|
25 |
-
|
26 |
-
&-content {
|
27 |
-
padding: 20px;
|
28 |
-
background-color: #f1f1f1;
|
29 |
-
}
|
30 |
-
|
31 |
-
&--normal .shapla-toggle-title {
|
32 |
-
background: #9e9e9e;
|
33 |
-
color: white;
|
34 |
-
font-weight: 600;
|
35 |
-
}
|
36 |
-
|
37 |
-
&--stroke .shapla-toggle-title {
|
38 |
-
border: 1px solid #363f48;
|
39 |
-
font-weight: 600;
|
40 |
-
|
41 |
-
&:after {
|
42 |
-
color: #363f48;
|
43 |
-
}
|
44 |
-
}
|
45 |
-
&--stroke .shapla-toggle-content {
|
46 |
-
padding: 20px;
|
47 |
-
background-color: #ffffff;
|
48 |
-
border: 1px solid #363f48;
|
49 |
-
border-top: none;
|
50 |
-
}
|
51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_tooltip.scss
DELETED
@@ -1,133 +0,0 @@
|
|
1 |
-
.cs-tooltip {
|
2 |
-
display: inline-block;
|
3 |
-
width: 1.5em;
|
4 |
-
height: 1.5em;
|
5 |
-
float: right;
|
6 |
-
|
7 |
-
&:after {
|
8 |
-
font-family: Dashicons;
|
9 |
-
speak: none;
|
10 |
-
font-weight: 400;
|
11 |
-
text-transform: none;
|
12 |
-
-webkit-font-smoothing: antialiased;
|
13 |
-
width: 100%;
|
14 |
-
height: 100%;
|
15 |
-
text-align: center;
|
16 |
-
content: "\f223";
|
17 |
-
cursor: help;
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
/* TipTip CSS - Version 1.2 */
|
22 |
-
|
23 |
-
#tiptip_holder {
|
24 |
-
display: none;
|
25 |
-
position: absolute;
|
26 |
-
top: 0;
|
27 |
-
left: 0;
|
28 |
-
z-index: 99999;
|
29 |
-
}
|
30 |
-
|
31 |
-
#tiptip_holder.tip_top {
|
32 |
-
padding-bottom: 5px;
|
33 |
-
}
|
34 |
-
|
35 |
-
#tiptip_holder.tip_bottom {
|
36 |
-
padding-top: 5px;
|
37 |
-
}
|
38 |
-
|
39 |
-
#tiptip_holder.tip_right {
|
40 |
-
padding-left: 5px;
|
41 |
-
}
|
42 |
-
|
43 |
-
#tiptip_holder.tip_left {
|
44 |
-
padding-right: 5px;
|
45 |
-
}
|
46 |
-
|
47 |
-
#tiptip_content {
|
48 |
-
font-size: 11px;
|
49 |
-
color: #fff;
|
50 |
-
text-shadow: 0 0 2px #000;
|
51 |
-
padding: 4px 8px;
|
52 |
-
border: 1px solid rgba(255,255,255,0.25);
|
53 |
-
background-color: rgb(25,25,25);
|
54 |
-
background-color: rgba(25,25,25,0.92);
|
55 |
-
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#000));
|
56 |
-
border-radius: 3px;
|
57 |
-
-webkit-border-radius: 3px;
|
58 |
-
-moz-border-radius: 3px;
|
59 |
-
box-shadow: 0 0 3px #555;
|
60 |
-
-webkit-box-shadow: 0 0 3px #555;
|
61 |
-
-moz-box-shadow: 0 0 3px #555;
|
62 |
-
}
|
63 |
-
|
64 |
-
#tiptip_arrow, #tiptip_arrow_inner {
|
65 |
-
position: absolute;
|
66 |
-
border-color: transparent;
|
67 |
-
border-style: solid;
|
68 |
-
border-width: 6px;
|
69 |
-
height: 0;
|
70 |
-
width: 0;
|
71 |
-
}
|
72 |
-
|
73 |
-
#tiptip_holder.tip_top #tiptip_arrow {
|
74 |
-
border-top-color: #fff;
|
75 |
-
border-top-color: rgba(255,255,255,0.35);
|
76 |
-
}
|
77 |
-
|
78 |
-
#tiptip_holder.tip_bottom #tiptip_arrow {
|
79 |
-
border-bottom-color: #fff;
|
80 |
-
border-bottom-color: rgba(255,255,255,0.35);
|
81 |
-
}
|
82 |
-
|
83 |
-
#tiptip_holder.tip_right #tiptip_arrow {
|
84 |
-
border-right-color: #fff;
|
85 |
-
border-right-color: rgba(255,255,255,0.35);
|
86 |
-
}
|
87 |
-
|
88 |
-
#tiptip_holder.tip_left #tiptip_arrow {
|
89 |
-
border-left-color: #fff;
|
90 |
-
border-left-color: rgba(255,255,255,0.35);
|
91 |
-
}
|
92 |
-
|
93 |
-
#tiptip_holder.tip_top #tiptip_arrow_inner {
|
94 |
-
margin-top: -7px;
|
95 |
-
margin-left: -6px;
|
96 |
-
border-top-color: rgb(25,25,25);
|
97 |
-
border-top-color: rgba(25,25,25,0.92);
|
98 |
-
}
|
99 |
-
|
100 |
-
#tiptip_holder.tip_bottom #tiptip_arrow_inner {
|
101 |
-
margin-top: -5px;
|
102 |
-
margin-left: -6px;
|
103 |
-
border-bottom-color: rgb(25,25,25);
|
104 |
-
border-bottom-color: rgba(25,25,25,0.92);
|
105 |
-
}
|
106 |
-
|
107 |
-
#tiptip_holder.tip_right #tiptip_arrow_inner {
|
108 |
-
margin-top: -6px;
|
109 |
-
margin-left: -5px;
|
110 |
-
border-right-color: rgb(25,25,25);
|
111 |
-
border-right-color: rgba(25,25,25,0.92);
|
112 |
-
}
|
113 |
-
|
114 |
-
#tiptip_holder.tip_left #tiptip_arrow_inner {
|
115 |
-
margin-top: -6px;
|
116 |
-
margin-left: -7px;
|
117 |
-
border-left-color: rgb(25,25,25);
|
118 |
-
border-left-color: rgba(25,25,25,0.92);
|
119 |
-
}
|
120 |
-
|
121 |
-
/* Webkit Hacks */
|
122 |
-
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
123 |
-
#tiptip_content {
|
124 |
-
padding: 4px 8px 5px 8px;
|
125 |
-
background-color: rgba(45,45,45,0.88);
|
126 |
-
}
|
127 |
-
#tiptip_holder.tip_bottom #tiptip_arrow_inner {
|
128 |
-
border-bottom-color: rgba(45,45,45,0.88);
|
129 |
-
}
|
130 |
-
#tiptip_holder.tip_top #tiptip_arrow_inner {
|
131 |
-
border-top-color: rgba(20,20,20,0.92);
|
132 |
-
}
|
133 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/_widget.scss
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
// Widget Styles
|
2 |
-
div[id*="_carousel_slider"] .widget-top{
|
3 |
-
background: #ddffff !important;
|
4 |
-
border: 1px solid #2196f3 !important;
|
5 |
-
|
6 |
-
&:hover {
|
7 |
-
background: #ffdddd !important;
|
8 |
-
border: 1px solid #f44336 !important;
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/admin/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
assets/scss/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
assets/scss/public/_animate.scss
DELETED
@@ -1,96 +0,0 @@
|
|
1 |
-
// Owl Carousel - Animate Plugin
|
2 |
-
.carousel-slider {
|
3 |
-
|
4 |
-
.animated {
|
5 |
-
animation-duration: 1000ms;
|
6 |
-
animation-fill-mode: both;
|
7 |
-
}
|
8 |
-
.owl-animated-in {
|
9 |
-
z-index: 0;
|
10 |
-
}
|
11 |
-
.owl-animated-out {
|
12 |
-
z-index: 1;
|
13 |
-
}
|
14 |
-
.fadeOut {
|
15 |
-
animation-name: fadeOut;
|
16 |
-
}
|
17 |
-
.fadeInDown {
|
18 |
-
animation-name: fadeInDown;
|
19 |
-
}
|
20 |
-
.fadeInUp {
|
21 |
-
animation-name: fadeInUp;
|
22 |
-
}
|
23 |
-
.fadeInRight {
|
24 |
-
animation-name: fadeInRight;
|
25 |
-
}
|
26 |
-
.fadeInLeft {
|
27 |
-
animation-name: fadeInLeft;
|
28 |
-
}
|
29 |
-
.zoomIn {
|
30 |
-
animation-name: zoomIn;
|
31 |
-
}
|
32 |
-
}
|
33 |
-
|
34 |
-
@keyframes fadeOut {
|
35 |
-
0% {
|
36 |
-
opacity: 1;
|
37 |
-
}
|
38 |
-
|
39 |
-
100% {
|
40 |
-
opacity: 0;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
@keyframes fadeInDown {
|
45 |
-
from {
|
46 |
-
opacity: 0;
|
47 |
-
transform: translate3d(0, -100%, 0)
|
48 |
-
}
|
49 |
-
to {
|
50 |
-
opacity: 1;
|
51 |
-
transform: none
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
-
@keyframes fadeInUp {
|
56 |
-
from {
|
57 |
-
opacity: 0;
|
58 |
-
transform: translate3d(0, 100%, 0)
|
59 |
-
}
|
60 |
-
to {
|
61 |
-
opacity: 1;
|
62 |
-
transform: none
|
63 |
-
}
|
64 |
-
}
|
65 |
-
|
66 |
-
@keyframes fadeInRight {
|
67 |
-
from {
|
68 |
-
opacity: 0;
|
69 |
-
transform: translate3d(100%, 0, 0)
|
70 |
-
}
|
71 |
-
to {
|
72 |
-
opacity: 1;
|
73 |
-
transform: none
|
74 |
-
}
|
75 |
-
}
|
76 |
-
|
77 |
-
@keyframes fadeInLeft {
|
78 |
-
from {
|
79 |
-
opacity: 0;
|
80 |
-
transform: translate3d(-100%, 0, 0)
|
81 |
-
}
|
82 |
-
to {
|
83 |
-
opacity: 1;
|
84 |
-
transform: none
|
85 |
-
}
|
86 |
-
}
|
87 |
-
|
88 |
-
@keyframes zoomIn {
|
89 |
-
from {
|
90 |
-
opacity: 0;
|
91 |
-
transform: scale3d(.3, .3, .3)
|
92 |
-
}
|
93 |
-
50% {
|
94 |
-
opacity: 1
|
95 |
-
}
|
96 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_autoheight.scss
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
// Owl Carousel - Auto Height Plugin
|
2 |
-
.owl-height {
|
3 |
-
transition: height 500ms ease-in-out;
|
4 |
-
}
|
|
|
|
|
|
|
|
assets/scss/public/_button.scss
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
.cs-hero-button {
|
2 |
-
-webkit-appearance: none;
|
3 |
-
-webkit-font-smoothing: inherit;
|
4 |
-
display: inline-block;
|
5 |
-
font-size: 1rem;
|
6 |
-
line-height: 1;
|
7 |
-
padding: 0.75em 1em;
|
8 |
-
border-radius: 0;
|
9 |
-
text-decoration: none;
|
10 |
-
text-align: center;
|
11 |
-
box-sizing: border-box;
|
12 |
-
transition: all 200ms ease-in-out;
|
13 |
-
|
14 |
-
&:hover {
|
15 |
-
text-decoration: none;
|
16 |
-
}
|
17 |
-
|
18 |
-
&--normal {
|
19 |
-
opacity: 0.9;
|
20 |
-
filter: alpha(opacity=90);
|
21 |
-
}
|
22 |
-
|
23 |
-
&--stroke {
|
24 |
-
background: transparent;
|
25 |
-
border-width: 1px;
|
26 |
-
border-style: solid;
|
27 |
-
border-color: transparent;
|
28 |
-
}
|
29 |
-
|
30 |
-
&--medium {
|
31 |
-
font-size: 1.2rem;
|
32 |
-
padding: 0.9em 1.2em;
|
33 |
-
}
|
34 |
-
|
35 |
-
&--large {
|
36 |
-
font-size: 1.5rem;
|
37 |
-
padding: 0.9em 1.6em;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_content-carousel.scss
DELETED
@@ -1,162 +0,0 @@
|
|
1 |
-
.carousel-slider-hero {
|
2 |
-
// Cell background
|
3 |
-
&__cell__background {
|
4 |
-
background-size: cover;
|
5 |
-
background-position: center;
|
6 |
-
background-repeat: no-repeat;
|
7 |
-
min-width: 100%;
|
8 |
-
min-height: 100%;
|
9 |
-
transition-property: transform;
|
10 |
-
transition-duration: 10s;
|
11 |
-
|
12 |
-
&.carousel-slider-hero-ken-out {
|
13 |
-
transform: scale(1.3);
|
14 |
-
}
|
15 |
-
|
16 |
-
// Active Slide
|
17 |
-
.carousel-slider .active & {
|
18 |
-
animation-timing-function: linear;
|
19 |
-
animation-duration: 20s;
|
20 |
-
|
21 |
-
&.carousel-slider-hero-ken-in {
|
22 |
-
transform: scale(1.3);
|
23 |
-
animation-name: ken-burns-in;
|
24 |
-
}
|
25 |
-
|
26 |
-
&.carousel-slider-hero-ken-out {
|
27 |
-
transform: scale(1);
|
28 |
-
animation-name: ken-burns-out;
|
29 |
-
}
|
30 |
-
}
|
31 |
-
}
|
32 |
-
|
33 |
-
// Cell
|
34 |
-
&__cell {
|
35 |
-
display: flex;
|
36 |
-
justify-content: center;
|
37 |
-
align-items: center;
|
38 |
-
position: relative;
|
39 |
-
overflow: hidden;
|
40 |
-
height: 400px;
|
41 |
-
|
42 |
-
&:focus {
|
43 |
-
outline: 0;
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
// Slide Inner
|
48 |
-
&__cell__inner {
|
49 |
-
background-repeat: no-repeat;
|
50 |
-
background-position: center;
|
51 |
-
position: absolute;
|
52 |
-
top: 0;
|
53 |
-
left: 0;
|
54 |
-
bottom: 0;
|
55 |
-
right: 0;
|
56 |
-
padding: 50px;
|
57 |
-
|
58 |
-
&, &:hover {
|
59 |
-
color: white;
|
60 |
-
display: flex;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
|
64 |
-
&__cell__background_overlay {
|
65 |
-
position: absolute;
|
66 |
-
z-index: 0;
|
67 |
-
top: 0;
|
68 |
-
bottom: 0;
|
69 |
-
left: 0;
|
70 |
-
right: 0;
|
71 |
-
}
|
72 |
-
|
73 |
-
&__cell__content {
|
74 |
-
position: relative;
|
75 |
-
z-index: 1;
|
76 |
-
width: 100%;
|
77 |
-
max-width: 1140px;
|
78 |
-
}
|
79 |
-
|
80 |
-
&__cell__heading {
|
81 |
-
font-size: 40px;
|
82 |
-
font-weight: bold;
|
83 |
-
line-height: 1;
|
84 |
-
}
|
85 |
-
|
86 |
-
&__cell__description {
|
87 |
-
font-size: 20px;
|
88 |
-
line-height: 1.4;
|
89 |
-
}
|
90 |
-
|
91 |
-
&__cell__heading:not(:last-child),
|
92 |
-
&__cell__description:not(:last-child) {
|
93 |
-
margin-bottom: 30px;
|
94 |
-
}
|
95 |
-
|
96 |
-
&__cell__button__one {
|
97 |
-
margin-right: 5px;
|
98 |
-
}
|
99 |
-
&__cell__button__two {
|
100 |
-
margin-left: 5px;
|
101 |
-
}
|
102 |
-
&__cell__button__one,
|
103 |
-
&__cell__button__two {
|
104 |
-
display: inline-flex;
|
105 |
-
}
|
106 |
-
}
|
107 |
-
|
108 |
-
.carousel-slider-hero__cell__inner {
|
109 |
-
&.carousel-slider--v-position {
|
110 |
-
&-top {
|
111 |
-
align-items: flex-start;
|
112 |
-
}
|
113 |
-
&-bottom {
|
114 |
-
align-items: flex-end;
|
115 |
-
}
|
116 |
-
&-middle {
|
117 |
-
align-items: center;
|
118 |
-
}
|
119 |
-
}
|
120 |
-
|
121 |
-
&.carousel-slider--h-position {
|
122 |
-
&-left {
|
123 |
-
justify-content: flex-start;
|
124 |
-
}
|
125 |
-
&-right {
|
126 |
-
justify-content: flex-end;
|
127 |
-
}
|
128 |
-
&-center {
|
129 |
-
justify-content: center;
|
130 |
-
}
|
131 |
-
}
|
132 |
-
|
133 |
-
&.carousel-slider--text {
|
134 |
-
&-left {
|
135 |
-
text-align: left;
|
136 |
-
}
|
137 |
-
&-right {
|
138 |
-
text-align: right;
|
139 |
-
}
|
140 |
-
&-center {
|
141 |
-
text-align: center;
|
142 |
-
}
|
143 |
-
}
|
144 |
-
}
|
145 |
-
|
146 |
-
@media (max-width: 767px) {
|
147 |
-
.carousel-slider-hero__cell__inner {
|
148 |
-
padding: 30px;
|
149 |
-
}
|
150 |
-
|
151 |
-
.carousel-slider-hero__cell__heading {
|
152 |
-
font-size: 24px;
|
153 |
-
line-height: 1;
|
154 |
-
margin-bottom: 15px;
|
155 |
-
}
|
156 |
-
|
157 |
-
.carousel-slider-hero__cell__description {
|
158 |
-
font-size: 14px;
|
159 |
-
line-height: 1.4;
|
160 |
-
margin-bottom: 15px;
|
161 |
-
}
|
162 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_core.scss
DELETED
@@ -1,108 +0,0 @@
|
|
1 |
-
// Owl Carousel - Core
|
2 |
-
.carousel-slider {
|
3 |
-
display: none;
|
4 |
-
width: 100%;
|
5 |
-
-webkit-tap-highlight-color: transparent;
|
6 |
-
position: relative;
|
7 |
-
z-index: 1;
|
8 |
-
|
9 |
-
.owl-stage {
|
10 |
-
position: relative;
|
11 |
-
touch-action: manipulation;
|
12 |
-
backface-visibility: hidden;
|
13 |
-
|
14 |
-
&:after {
|
15 |
-
content: ".";
|
16 |
-
display: block;
|
17 |
-
clear: both;
|
18 |
-
visibility: hidden;
|
19 |
-
line-height: 0;
|
20 |
-
height: 0;
|
21 |
-
}
|
22 |
-
}
|
23 |
-
|
24 |
-
.owl-stage-outer {
|
25 |
-
position: relative;
|
26 |
-
overflow: hidden;
|
27 |
-
transform: translate3d(0px, 0px, 0px);
|
28 |
-
}
|
29 |
-
.owl-carousel .owl-wrapper,
|
30 |
-
.owl-carousel .owl-item {
|
31 |
-
backface-visibility: hidden;
|
32 |
-
transform: translate3d(0, 0, 0);
|
33 |
-
}
|
34 |
-
|
35 |
-
.owl-item {
|
36 |
-
position: relative;
|
37 |
-
min-height: 1px;
|
38 |
-
float: left;
|
39 |
-
backface-visibility: hidden;
|
40 |
-
-webkit-tap-highlight-color: transparent;
|
41 |
-
-webkit-touch-callout: none;
|
42 |
-
}
|
43 |
-
.owl-item img {
|
44 |
-
display: block;
|
45 |
-
width: 100%;
|
46 |
-
}
|
47 |
-
|
48 |
-
.owl-nav.disabled,
|
49 |
-
.owl-dots.disabled {
|
50 |
-
display: none;
|
51 |
-
}
|
52 |
-
|
53 |
-
.owl-nav .owl-prev,
|
54 |
-
.owl-nav .owl-next,
|
55 |
-
.owl-dot {
|
56 |
-
cursor: hand;
|
57 |
-
user-select: none;
|
58 |
-
}
|
59 |
-
.owl-nav button.owl-prev,
|
60 |
-
.owl-nav button.owl-next,
|
61 |
-
button.owl-dot {
|
62 |
-
background: none;
|
63 |
-
color: inherit;
|
64 |
-
border: none;
|
65 |
-
padding: 0 !important;
|
66 |
-
font: inherit;
|
67 |
-
}
|
68 |
-
|
69 |
-
&.owl-loaded {
|
70 |
-
display: block;
|
71 |
-
}
|
72 |
-
|
73 |
-
&.owl-loading {
|
74 |
-
opacity: 0;
|
75 |
-
display: block;
|
76 |
-
}
|
77 |
-
|
78 |
-
&.owl-hidden {
|
79 |
-
opacity: 0;
|
80 |
-
}
|
81 |
-
|
82 |
-
&.owl-refresh .owl-item {
|
83 |
-
visibility: hidden;
|
84 |
-
}
|
85 |
-
|
86 |
-
&.owl-drag .owl-item {
|
87 |
-
touch-action: none;
|
88 |
-
user-select: none;
|
89 |
-
}
|
90 |
-
|
91 |
-
&.owl-grab {
|
92 |
-
cursor: move;
|
93 |
-
cursor: grab;
|
94 |
-
}
|
95 |
-
|
96 |
-
&.owl-rtl {
|
97 |
-
direction: rtl;
|
98 |
-
}
|
99 |
-
|
100 |
-
&.owl-rtl .owl-item {
|
101 |
-
float: right;
|
102 |
-
}
|
103 |
-
}
|
104 |
-
|
105 |
-
// No Js
|
106 |
-
.no-js .carousel-slider {
|
107 |
-
display: block;
|
108 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_image-carousel.scss
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
.carousel-slider {
|
2 |
-
// Styling item
|
3 |
-
.carousel-slider__item {
|
4 |
-
position: relative;
|
5 |
-
|
6 |
-
img {
|
7 |
-
display: block;
|
8 |
-
margin-left: auto;
|
9 |
-
margin-right: auto;
|
10 |
-
max-width: 100%;
|
11 |
-
height: auto;
|
12 |
-
}
|
13 |
-
}
|
14 |
-
.carousel-slider__caption {
|
15 |
-
position: relative;
|
16 |
-
|
17 |
-
.title {
|
18 |
-
overflow: hidden;
|
19 |
-
text-overflow: ellipsis;
|
20 |
-
color: #474747;
|
21 |
-
font-size: 16px;
|
22 |
-
font-weight: 500;
|
23 |
-
margin: 10px 0 0;
|
24 |
-
text-align: center;
|
25 |
-
}
|
26 |
-
|
27 |
-
.caption {
|
28 |
-
font-size: 14px;
|
29 |
-
font-weight: 300;
|
30 |
-
margin: 10px 0 0;
|
31 |
-
text-align: center;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_lazyload.scss
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
// Owl Carousel - Lazy Load Plugin
|
2 |
-
.carousel-slider {
|
3 |
-
.owl-item {
|
4 |
-
.owl-lazy {
|
5 |
-
// opacity: 0;
|
6 |
-
// transition: opacity 400ms ease;
|
7 |
-
}
|
8 |
-
|
9 |
-
img.owl-lazy {
|
10 |
-
// transform-style: preserve-3d;
|
11 |
-
background: url($ajax-loader-url) no-repeat center;
|
12 |
-
min-width: 32px;
|
13 |
-
min-height: 32px;
|
14 |
-
}
|
15 |
-
}
|
16 |
-
}
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_magnific-popup.scss
DELETED
@@ -1,603 +0,0 @@
|
|
1 |
-
/* Magnific Popup CSS */
|
2 |
-
|
3 |
-
////////////////////////
|
4 |
-
// Settings //
|
5 |
-
////////////////////////
|
6 |
-
|
7 |
-
// overlay
|
8 |
-
$mfp-overlay-color: #0b0b0b !default; // Color of overlay screen
|
9 |
-
$mfp-overlay-opacity: 0.8 !default; // Opacity of overlay screen
|
10 |
-
$mfp-shadow: 0 0 8px rgba(0, 0, 0, 0.6) !default; // Shadow on image or iframe
|
11 |
-
|
12 |
-
// spacing
|
13 |
-
$mfp-popup-padding-left: 8px !default; // Padding from left and from right side
|
14 |
-
$mfp-popup-padding-left-mobile: 6px !default; // Same as above, but is applied when width of window is less than 800px
|
15 |
-
|
16 |
-
$mfp-z-index-base: 1040 !default; // Base z-index of popup
|
17 |
-
|
18 |
-
// controls
|
19 |
-
$mfp-include-arrows: true !default; // Include styles for nav arrows
|
20 |
-
$mfp-controls-opacity: 0.65 !default; // Opacity of controls
|
21 |
-
$mfp-controls-color: #FFF !default; // Color of controls
|
22 |
-
$mfp-controls-border-color: #3F3F3F !default; // Border color of controls
|
23 |
-
$mfp-inner-close-icon-color: #333 !default; // Color of close button when inside
|
24 |
-
$mfp-controls-text-color: #CCC !default; // Color of preloader and "1 of X" indicator
|
25 |
-
$mfp-controls-text-color-hover: #FFF !default; // Hover color of preloader and "1 of X" indicator
|
26 |
-
|
27 |
-
// Iframe-type options
|
28 |
-
$mfp-include-iframe-type: true !default; // Enable Iframe-type popups
|
29 |
-
$mfp-iframe-padding-top: 40px !default; // Iframe padding top
|
30 |
-
$mfp-iframe-background: #000 !default; // Background color of iframes
|
31 |
-
$mfp-iframe-max-width: 900px !default; // Maximum width of iframes
|
32 |
-
$mfp-iframe-ratio: 9/16 !default; // Ratio of iframe (9/16 = widescreen, 3/4 = standard, etc.)
|
33 |
-
|
34 |
-
// Image-type options
|
35 |
-
$mfp-include-image-type: true !default; // Enable Image-type popups
|
36 |
-
$mfp-image-background: #444 !default;
|
37 |
-
$mfp-image-padding-top: 40px !default; // Image padding top
|
38 |
-
$mfp-image-padding-bottom: 40px !default; // Image padding bottom
|
39 |
-
$mfp-include-mobile-layout-for-image: true !default; // Removes paddings from top and bottom
|
40 |
-
|
41 |
-
// Image caption options
|
42 |
-
$mfp-caption-title-color: #F3F3F3 !default; // Caption title color
|
43 |
-
$mfp-caption-subtitle-color: #BDBDBD !default; // Caption subtitle color
|
44 |
-
|
45 |
-
// A11y
|
46 |
-
$mfp-use-visuallyhidden: false !default; // Hide content from browsers, but make it available for screen readers
|
47 |
-
|
48 |
-
////////////////////////
|
49 |
-
//
|
50 |
-
// Contents:
|
51 |
-
//
|
52 |
-
// 1. General styles
|
53 |
-
// - Transluscent overlay
|
54 |
-
// - Containers, wrappers
|
55 |
-
// - Cursors
|
56 |
-
// - Helper classes
|
57 |
-
// 2. Appearance
|
58 |
-
// - Preloader & text that displays error messages
|
59 |
-
// - CSS reset for buttons
|
60 |
-
// - Close icon
|
61 |
-
// - "1 of X" counter
|
62 |
-
// - Navigation (left/right) arrows
|
63 |
-
// - Iframe content type styles
|
64 |
-
// - Image content type styles
|
65 |
-
// - Media query where size of arrows is reduced
|
66 |
-
// - IE7 support
|
67 |
-
//
|
68 |
-
////////////////////////
|
69 |
-
|
70 |
-
////////////////////////
|
71 |
-
// 1. General styles
|
72 |
-
////////////////////////
|
73 |
-
|
74 |
-
// Transluscent overlay
|
75 |
-
.mfp-bg {
|
76 |
-
top: 0;
|
77 |
-
left: 0;
|
78 |
-
width: 100%;
|
79 |
-
height: 100%;
|
80 |
-
z-index: $mfp-z-index-base + 2;
|
81 |
-
overflow: hidden;
|
82 |
-
position: fixed;
|
83 |
-
|
84 |
-
background: $mfp-overlay-color;
|
85 |
-
opacity: $mfp-overlay-opacity;
|
86 |
-
}
|
87 |
-
|
88 |
-
// Wrapper for popup
|
89 |
-
.mfp-wrap {
|
90 |
-
top: 0;
|
91 |
-
left: 0;
|
92 |
-
width: 100%;
|
93 |
-
height: 100%;
|
94 |
-
z-index: $mfp-z-index-base + 3;
|
95 |
-
position: fixed;
|
96 |
-
outline: none !important;
|
97 |
-
-webkit-backface-visibility: hidden; // fixes webkit bug that can cause "false" scrollbar
|
98 |
-
}
|
99 |
-
|
100 |
-
// Root container
|
101 |
-
.mfp-container {
|
102 |
-
text-align: center;
|
103 |
-
position: absolute;
|
104 |
-
width: 100%;
|
105 |
-
height: 100%;
|
106 |
-
left: 0;
|
107 |
-
top: 0;
|
108 |
-
padding: 0 $mfp-popup-padding-left;
|
109 |
-
box-sizing: border-box;
|
110 |
-
}
|
111 |
-
|
112 |
-
// Vertical centerer helper
|
113 |
-
.mfp-container {
|
114 |
-
&:before {
|
115 |
-
content: '';
|
116 |
-
display: inline-block;
|
117 |
-
height: 100%;
|
118 |
-
vertical-align: middle;
|
119 |
-
}
|
120 |
-
}
|
121 |
-
|
122 |
-
// Remove vertical centering when popup has class `mfp-align-top`
|
123 |
-
.mfp-align-top {
|
124 |
-
.mfp-container {
|
125 |
-
&:before {
|
126 |
-
display: none;
|
127 |
-
}
|
128 |
-
}
|
129 |
-
}
|
130 |
-
|
131 |
-
// Popup content holder
|
132 |
-
.mfp-content {
|
133 |
-
position: relative;
|
134 |
-
display: inline-block;
|
135 |
-
vertical-align: middle;
|
136 |
-
margin: 0 auto;
|
137 |
-
text-align: left;
|
138 |
-
z-index: $mfp-z-index-base + 5;
|
139 |
-
}
|
140 |
-
|
141 |
-
.mfp-inline-holder,
|
142 |
-
.mfp-ajax-holder {
|
143 |
-
.mfp-content {
|
144 |
-
width: 100%;
|
145 |
-
cursor: auto;
|
146 |
-
}
|
147 |
-
}
|
148 |
-
|
149 |
-
// Cursors
|
150 |
-
.mfp-ajax-cur {
|
151 |
-
cursor: progress;
|
152 |
-
}
|
153 |
-
|
154 |
-
.mfp-zoom-out-cur {
|
155 |
-
&, .mfp-image-holder .mfp-close {
|
156 |
-
cursor: -moz-zoom-out;
|
157 |
-
cursor: -webkit-zoom-out;
|
158 |
-
cursor: zoom-out;
|
159 |
-
}
|
160 |
-
}
|
161 |
-
|
162 |
-
.mfp-zoom {
|
163 |
-
cursor: pointer;
|
164 |
-
cursor: -webkit-zoom-in;
|
165 |
-
cursor: -moz-zoom-in;
|
166 |
-
cursor: zoom-in;
|
167 |
-
}
|
168 |
-
|
169 |
-
.mfp-auto-cursor {
|
170 |
-
.mfp-content {
|
171 |
-
cursor: auto;
|
172 |
-
}
|
173 |
-
}
|
174 |
-
|
175 |
-
.mfp-close,
|
176 |
-
.mfp-arrow,
|
177 |
-
.mfp-preloader,
|
178 |
-
.mfp-counter {
|
179 |
-
-webkit-user-select: none;
|
180 |
-
-moz-user-select: none;
|
181 |
-
user-select: none;
|
182 |
-
}
|
183 |
-
|
184 |
-
// Hide the image during the loading
|
185 |
-
.mfp-loading {
|
186 |
-
&.mfp-figure {
|
187 |
-
display: none;
|
188 |
-
}
|
189 |
-
}
|
190 |
-
|
191 |
-
// Helper class that hides stuff
|
192 |
-
@if $mfp-use-visuallyhidden {
|
193 |
-
// From HTML5 Boilerplate https://github.com/h5bp/html5-boilerplate/blob/v4.2.0/doc/css.md#visuallyhidden
|
194 |
-
.mfp-hide {
|
195 |
-
border: 0 !important;
|
196 |
-
clip: rect(0 0 0 0) !important;
|
197 |
-
height: 1px !important;
|
198 |
-
margin: -1px !important;
|
199 |
-
overflow: hidden !important;
|
200 |
-
padding: 0 !important;
|
201 |
-
position: absolute !important;
|
202 |
-
width: 1px !important;
|
203 |
-
}
|
204 |
-
} @else {
|
205 |
-
.mfp-hide {
|
206 |
-
display: none !important;
|
207 |
-
}
|
208 |
-
}
|
209 |
-
|
210 |
-
////////////////////////
|
211 |
-
// 2. Appearance
|
212 |
-
////////////////////////
|
213 |
-
|
214 |
-
// Preloader and text that displays error messages
|
215 |
-
.mfp-preloader {
|
216 |
-
color: $mfp-controls-text-color;
|
217 |
-
position: absolute;
|
218 |
-
top: 50%;
|
219 |
-
width: auto;
|
220 |
-
text-align: center;
|
221 |
-
margin-top: -0.8em;
|
222 |
-
left: 8px;
|
223 |
-
right: 8px;
|
224 |
-
z-index: $mfp-z-index-base + 4;
|
225 |
-
a {
|
226 |
-
color: $mfp-controls-text-color;
|
227 |
-
&:hover {
|
228 |
-
color: $mfp-controls-text-color-hover;
|
229 |
-
}
|
230 |
-
}
|
231 |
-
}
|
232 |
-
|
233 |
-
// Hide preloader when content successfully loaded
|
234 |
-
.mfp-s-ready {
|
235 |
-
.mfp-preloader {
|
236 |
-
display: none;
|
237 |
-
}
|
238 |
-
}
|
239 |
-
|
240 |
-
// Hide content when it was not loaded
|
241 |
-
.mfp-s-error {
|
242 |
-
.mfp-content {
|
243 |
-
display: none;
|
244 |
-
}
|
245 |
-
}
|
246 |
-
|
247 |
-
// CSS-reset for buttons
|
248 |
-
button {
|
249 |
-
&.mfp-close,
|
250 |
-
&.mfp-arrow {
|
251 |
-
overflow: visible;
|
252 |
-
cursor: pointer;
|
253 |
-
background: transparent;
|
254 |
-
border: 0;
|
255 |
-
-webkit-appearance: none;
|
256 |
-
display: block;
|
257 |
-
outline: none;
|
258 |
-
padding: 0;
|
259 |
-
z-index: $mfp-z-index-base + 6;
|
260 |
-
box-shadow: none;
|
261 |
-
touch-action: manipulation;
|
262 |
-
}
|
263 |
-
&::-moz-focus-inner {
|
264 |
-
padding: 0;
|
265 |
-
border: 0
|
266 |
-
}
|
267 |
-
}
|
268 |
-
|
269 |
-
// Close icon
|
270 |
-
.mfp-close {
|
271 |
-
width: 44px;
|
272 |
-
height: 44px;
|
273 |
-
line-height: 44px;
|
274 |
-
|
275 |
-
position: absolute;
|
276 |
-
right: 0;
|
277 |
-
top: 0;
|
278 |
-
text-decoration: none;
|
279 |
-
text-align: center;
|
280 |
-
opacity: $mfp-controls-opacity;
|
281 |
-
padding: 0 0 18px 10px;
|
282 |
-
color: $mfp-controls-color;
|
283 |
-
|
284 |
-
font-style: normal;
|
285 |
-
font-size: 28px;
|
286 |
-
font-family: Arial, Baskerville, monospace;
|
287 |
-
|
288 |
-
&:hover,
|
289 |
-
&:focus {
|
290 |
-
opacity: 1;
|
291 |
-
}
|
292 |
-
|
293 |
-
&:active {
|
294 |
-
top: 1px;
|
295 |
-
}
|
296 |
-
}
|
297 |
-
|
298 |
-
.mfp-close-btn-in {
|
299 |
-
.mfp-close {
|
300 |
-
color: $mfp-inner-close-icon-color;
|
301 |
-
}
|
302 |
-
}
|
303 |
-
|
304 |
-
.mfp-image-holder,
|
305 |
-
.mfp-iframe-holder {
|
306 |
-
.mfp-close {
|
307 |
-
color: $mfp-controls-color;
|
308 |
-
right: -6px;
|
309 |
-
text-align: right;
|
310 |
-
padding-right: 6px;
|
311 |
-
width: 100%;
|
312 |
-
}
|
313 |
-
}
|
314 |
-
|
315 |
-
// "1 of X" counter
|
316 |
-
.mfp-counter {
|
317 |
-
position: absolute;
|
318 |
-
top: 0;
|
319 |
-
right: 0;
|
320 |
-
color: $mfp-controls-text-color;
|
321 |
-
font-size: 12px;
|
322 |
-
line-height: 18px;
|
323 |
-
white-space: nowrap;
|
324 |
-
}
|
325 |
-
|
326 |
-
// Navigation arrows
|
327 |
-
@if $mfp-include-arrows {
|
328 |
-
.mfp-arrow {
|
329 |
-
position: absolute;
|
330 |
-
opacity: $mfp-controls-opacity;
|
331 |
-
top: 50%;
|
332 |
-
margin: -55px 0 0;
|
333 |
-
padding: 0;
|
334 |
-
width: 90px;
|
335 |
-
height: 110px;
|
336 |
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
337 |
-
&:active {
|
338 |
-
margin-top: -54px;
|
339 |
-
}
|
340 |
-
&:hover,
|
341 |
-
&:focus {
|
342 |
-
opacity: 1;
|
343 |
-
}
|
344 |
-
&:before,
|
345 |
-
&:after {
|
346 |
-
content: '';
|
347 |
-
display: block;
|
348 |
-
width: 0;
|
349 |
-
height: 0;
|
350 |
-
position: absolute;
|
351 |
-
left: 0;
|
352 |
-
top: 0;
|
353 |
-
margin-top: 35px;
|
354 |
-
margin-left: 35px;
|
355 |
-
border: medium inset transparent;
|
356 |
-
}
|
357 |
-
|
358 |
-
&:after {
|
359 |
-
|
360 |
-
border-top-width: 13px;
|
361 |
-
border-bottom-width: 13px;
|
362 |
-
top: 8px;
|
363 |
-
}
|
364 |
-
|
365 |
-
&:before {
|
366 |
-
border-top-width: 21px;
|
367 |
-
border-bottom-width: 21px;
|
368 |
-
opacity: 0.7;
|
369 |
-
}
|
370 |
-
|
371 |
-
}
|
372 |
-
|
373 |
-
.mfp-arrow-left {
|
374 |
-
left: 0;
|
375 |
-
&:after {
|
376 |
-
border-right: 17px solid $mfp-controls-color;
|
377 |
-
margin-left: 31px;
|
378 |
-
}
|
379 |
-
&:before {
|
380 |
-
margin-left: 25px;
|
381 |
-
border-right: 27px solid $mfp-controls-border-color;
|
382 |
-
}
|
383 |
-
}
|
384 |
-
|
385 |
-
.mfp-arrow-right {
|
386 |
-
right: 0;
|
387 |
-
&:after {
|
388 |
-
border-left: 17px solid $mfp-controls-color;
|
389 |
-
margin-left: 39px
|
390 |
-
}
|
391 |
-
&:before {
|
392 |
-
border-left: 27px solid $mfp-controls-border-color;
|
393 |
-
}
|
394 |
-
}
|
395 |
-
}
|
396 |
-
|
397 |
-
// Iframe content type
|
398 |
-
@if $mfp-include-iframe-type {
|
399 |
-
.mfp-iframe-holder {
|
400 |
-
padding-top: $mfp-iframe-padding-top;
|
401 |
-
padding-bottom: $mfp-iframe-padding-top;
|
402 |
-
.mfp-content {
|
403 |
-
line-height: 0;
|
404 |
-
width: 100%;
|
405 |
-
max-width: $mfp-iframe-max-width;
|
406 |
-
}
|
407 |
-
.mfp-close {
|
408 |
-
top: -40px;
|
409 |
-
}
|
410 |
-
}
|
411 |
-
.mfp-iframe-scaler {
|
412 |
-
width: 100%;
|
413 |
-
height: 0;
|
414 |
-
overflow: hidden;
|
415 |
-
padding-top: $mfp-iframe-ratio * 100%;
|
416 |
-
iframe {
|
417 |
-
position: absolute;
|
418 |
-
display: block;
|
419 |
-
top: 0;
|
420 |
-
left: 0;
|
421 |
-
width: 100%;
|
422 |
-
height: 100%;
|
423 |
-
box-shadow: $mfp-shadow;
|
424 |
-
background: $mfp-iframe-background;
|
425 |
-
}
|
426 |
-
}
|
427 |
-
}
|
428 |
-
|
429 |
-
// Image content type
|
430 |
-
@if $mfp-include-image-type {
|
431 |
-
|
432 |
-
/* Main image in popup */
|
433 |
-
img {
|
434 |
-
&.mfp-img {
|
435 |
-
width: auto;
|
436 |
-
max-width: 100%;
|
437 |
-
height: auto;
|
438 |
-
display: block;
|
439 |
-
line-height: 0;
|
440 |
-
box-sizing: border-box;
|
441 |
-
padding: $mfp-image-padding-top 0 $mfp-image-padding-bottom;
|
442 |
-
margin: 0 auto;
|
443 |
-
}
|
444 |
-
}
|
445 |
-
|
446 |
-
/* The shadow behind the image */
|
447 |
-
.mfp-figure {
|
448 |
-
line-height: 0;
|
449 |
-
&:after {
|
450 |
-
content: '';
|
451 |
-
position: absolute;
|
452 |
-
left: 0;
|
453 |
-
top: $mfp-image-padding-top;
|
454 |
-
bottom: $mfp-image-padding-bottom;
|
455 |
-
display: block;
|
456 |
-
right: 0;
|
457 |
-
width: auto;
|
458 |
-
height: auto;
|
459 |
-
z-index: -1;
|
460 |
-
box-shadow: $mfp-shadow;
|
461 |
-
background: $mfp-image-background;
|
462 |
-
}
|
463 |
-
small {
|
464 |
-
color: $mfp-caption-subtitle-color;
|
465 |
-
display: block;
|
466 |
-
font-size: 12px;
|
467 |
-
line-height: 14px;
|
468 |
-
}
|
469 |
-
figure {
|
470 |
-
margin: 0;
|
471 |
-
}
|
472 |
-
}
|
473 |
-
.mfp-bottom-bar {
|
474 |
-
margin-top: -$mfp-image-padding-bottom + 4;
|
475 |
-
position: absolute;
|
476 |
-
top: 100%;
|
477 |
-
left: 0;
|
478 |
-
width: 100%;
|
479 |
-
cursor: auto;
|
480 |
-
}
|
481 |
-
.mfp-title {
|
482 |
-
text-align: left;
|
483 |
-
line-height: 18px;
|
484 |
-
color: $mfp-caption-title-color;
|
485 |
-
word-wrap: break-word;
|
486 |
-
padding-right: 36px; // leave some space for counter at right side
|
487 |
-
}
|
488 |
-
|
489 |
-
.mfp-image-holder {
|
490 |
-
.mfp-content {
|
491 |
-
max-width: 100%;
|
492 |
-
}
|
493 |
-
}
|
494 |
-
|
495 |
-
.mfp-gallery {
|
496 |
-
.mfp-image-holder {
|
497 |
-
.mfp-figure {
|
498 |
-
cursor: pointer;
|
499 |
-
}
|
500 |
-
}
|
501 |
-
}
|
502 |
-
|
503 |
-
@if $mfp-include-mobile-layout-for-image {
|
504 |
-
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
|
505 |
-
/**
|
506 |
-
* Remove all paddings around the image on small screen
|
507 |
-
*/
|
508 |
-
.mfp-img-mobile {
|
509 |
-
.mfp-image-holder {
|
510 |
-
padding-left: 0;
|
511 |
-
padding-right: 0;
|
512 |
-
}
|
513 |
-
img {
|
514 |
-
&.mfp-img {
|
515 |
-
padding: 0;
|
516 |
-
}
|
517 |
-
}
|
518 |
-
.mfp-figure {
|
519 |
-
// The shadow behind the image
|
520 |
-
&:after {
|
521 |
-
top: 0;
|
522 |
-
bottom: 0;
|
523 |
-
}
|
524 |
-
small {
|
525 |
-
display: inline;
|
526 |
-
margin-left: 5px;
|
527 |
-
}
|
528 |
-
}
|
529 |
-
.mfp-bottom-bar {
|
530 |
-
background: rgba(0, 0, 0, 0.6);
|
531 |
-
bottom: 0;
|
532 |
-
margin: 0;
|
533 |
-
top: auto;
|
534 |
-
padding: 3px 5px;
|
535 |
-
position: fixed;
|
536 |
-
box-sizing: border-box;
|
537 |
-
&:empty {
|
538 |
-
padding: 0;
|
539 |
-
}
|
540 |
-
}
|
541 |
-
.mfp-counter {
|
542 |
-
right: 5px;
|
543 |
-
top: 3px;
|
544 |
-
}
|
545 |
-
.mfp-close {
|
546 |
-
top: 0;
|
547 |
-
right: 0;
|
548 |
-
width: 35px;
|
549 |
-
height: 35px;
|
550 |
-
line-height: 35px;
|
551 |
-
background: rgba(0, 0, 0, 0.6);
|
552 |
-
position: fixed;
|
553 |
-
text-align: center;
|
554 |
-
padding: 0;
|
555 |
-
}
|
556 |
-
}
|
557 |
-
}
|
558 |
-
}
|
559 |
-
}
|
560 |
-
|
561 |
-
// Scale navigation arrows and reduce padding from sides
|
562 |
-
@media all and (max-width: 900px) {
|
563 |
-
.mfp-arrow {
|
564 |
-
-webkit-transform: scale(0.75);
|
565 |
-
transform: scale(0.75);
|
566 |
-
}
|
567 |
-
.mfp-arrow-left {
|
568 |
-
-webkit-transform-origin: 0;
|
569 |
-
transform-origin: 0;
|
570 |
-
}
|
571 |
-
.mfp-arrow-right {
|
572 |
-
-webkit-transform-origin: 100%;
|
573 |
-
transform-origin: 100%;
|
574 |
-
}
|
575 |
-
.mfp-container {
|
576 |
-
padding-left: $mfp-popup-padding-left-mobile;
|
577 |
-
padding-right: $mfp-popup-padding-left-mobile;
|
578 |
-
}
|
579 |
-
}
|
580 |
-
|
581 |
-
.mfp-with-zoom .mfp-container,
|
582 |
-
.mfp-with-zoom.mfp-bg {
|
583 |
-
opacity: 0;
|
584 |
-
-webkit-backface-visibility: hidden;
|
585 |
-
/* ideally, transition speed should match zoom duration */
|
586 |
-
-webkit-transition: all 0.3s ease-out;
|
587 |
-
-moz-transition: all 0.3s ease-out;
|
588 |
-
-o-transition: all 0.3s ease-out;
|
589 |
-
transition: all 0.3s ease-out;
|
590 |
-
}
|
591 |
-
|
592 |
-
.mfp-with-zoom.mfp-ready .mfp-container {
|
593 |
-
opacity: 1;
|
594 |
-
}
|
595 |
-
|
596 |
-
.mfp-with-zoom.mfp-ready.mfp-bg {
|
597 |
-
opacity: 0.8;
|
598 |
-
}
|
599 |
-
|
600 |
-
.mfp-with-zoom.mfp-removing .mfp-container,
|
601 |
-
.mfp-with-zoom.mfp-removing.mfp-bg {
|
602 |
-
opacity: 0;
|
603 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_post-carousel.scss
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
.carousel-slider {
|
2 |
-
&__post {
|
3 |
-
border: 1px solid #f1f1f1;
|
4 |
-
float: left;
|
5 |
-
height: 450px;
|
6 |
-
width: 100%;
|
7 |
-
position: relative;
|
8 |
-
display: block;
|
9 |
-
overflow: hidden;
|
10 |
-
|
11 |
-
&-content {
|
12 |
-
bottom: 0;
|
13 |
-
position: absolute;
|
14 |
-
top: 0;
|
15 |
-
transition: all 0.2s ease 0s;
|
16 |
-
width: 100%;
|
17 |
-
display: block;
|
18 |
-
}
|
19 |
-
|
20 |
-
&-image {
|
21 |
-
border-bottom: 1px solid #f1f1f1;
|
22 |
-
display: block;
|
23 |
-
height: 207px;
|
24 |
-
line-height: 0;
|
25 |
-
margin: 0 auto;
|
26 |
-
overflow: hidden;
|
27 |
-
text-align: center;
|
28 |
-
width: 100%;
|
29 |
-
background-color: #f1f1f1;
|
30 |
-
background-size: cover;
|
31 |
-
background-position: center center;
|
32 |
-
}
|
33 |
-
|
34 |
-
&-title {
|
35 |
-
display: block;
|
36 |
-
margin: 10px 15px 0;
|
37 |
-
max-height: 70px;
|
38 |
-
|
39 |
-
h1 {
|
40 |
-
color: #4a4a4a;
|
41 |
-
font: bold 18px/1.4em Arial,sans-serif;
|
42 |
-
margin-bottom: 0;
|
43 |
-
margin-top: 0;
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
&-excerpt {
|
48 |
-
color: #7d7d7d;
|
49 |
-
font-size: 14px;
|
50 |
-
line-height: 1.5em;
|
51 |
-
padding: 10px 15px 5px;
|
52 |
-
text-align: left;
|
53 |
-
width: 100%;
|
54 |
-
position: absolute;
|
55 |
-
top: 285px;
|
56 |
-
|
57 |
-
&-overlay {
|
58 |
-
background: transparent none repeat scroll 0 0;
|
59 |
-
display: block;
|
60 |
-
height: 20px;
|
61 |
-
width: 100%;
|
62 |
-
}
|
63 |
-
}
|
64 |
-
|
65 |
-
&-meta {
|
66 |
-
bottom: 10px;
|
67 |
-
color: #8e8e8e;
|
68 |
-
font-size: 12px;
|
69 |
-
left: 0;
|
70 |
-
padding: 0 15px;
|
71 |
-
position: absolute;
|
72 |
-
width: 100%;
|
73 |
-
display: block;
|
74 |
-
}
|
75 |
-
|
76 |
-
&-publication-meta {
|
77 |
-
background-color: white;
|
78 |
-
display: block;
|
79 |
-
padding-top: 15px;
|
80 |
-
width: 100%;
|
81 |
-
overflow: hidden;
|
82 |
-
text-overflow: ellipsis;
|
83 |
-
white-space: nowrap;
|
84 |
-
}
|
85 |
-
|
86 |
-
&-details-info {
|
87 |
-
display: inline-block;
|
88 |
-
}
|
89 |
-
&-author {
|
90 |
-
display: block;
|
91 |
-
font-style: normal;
|
92 |
-
line-height: 1em;
|
93 |
-
overflow: hidden;
|
94 |
-
text-overflow: ellipsis;
|
95 |
-
white-space: nowrap;
|
96 |
-
margin-bottom: 5px;
|
97 |
-
|
98 |
-
&-link {
|
99 |
-
color: #8e8e8e;
|
100 |
-
display: inline-block;
|
101 |
-
max-width: 175px;
|
102 |
-
overflow: hidden;
|
103 |
-
text-overflow: ellipsis;
|
104 |
-
vertical-align: middle;
|
105 |
-
white-space: nowrap;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
|
109 |
-
&-category {
|
110 |
-
color: #4cc1be;
|
111 |
-
text-transform: uppercase;
|
112 |
-
position: absolute;
|
113 |
-
right: 15px;
|
114 |
-
top: 50px;
|
115 |
-
z-index: 1;
|
116 |
-
|
117 |
-
&-link {}
|
118 |
-
}
|
119 |
-
}
|
120 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_post-carousel2.scss
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
.carousel-slider {
|
2 |
-
.blog-grid-inside {
|
3 |
-
display: flex;
|
4 |
-
flex-direction: column;
|
5 |
-
height: 100%;
|
6 |
-
border-radius: 3px;
|
7 |
-
border: 1px solid rgba(#000, 0.1);
|
8 |
-
|
9 |
-
.post-thumbnail {
|
10 |
-
margin: 0;
|
11 |
-
padding: 0;
|
12 |
-
|
13 |
-
img {
|
14 |
-
width: 100%;
|
15 |
-
height: auto;
|
16 |
-
}
|
17 |
-
}
|
18 |
-
.entry-header {
|
19 |
-
margin: 1rem;
|
20 |
-
padding: 0;
|
21 |
-
border: none;
|
22 |
-
}
|
23 |
-
.cat-links {
|
24 |
-
display: block;
|
25 |
-
margin-top: 0;
|
26 |
-
margin-bottom: .5rem;
|
27 |
-
line-height: 1.25;
|
28 |
-
}
|
29 |
-
.entry-title {
|
30 |
-
margin: 0;
|
31 |
-
padding: 0;
|
32 |
-
font-size: 1.25rem;
|
33 |
-
overflow-wrap: break-word;
|
34 |
-
}
|
35 |
-
.entry-summary {
|
36 |
-
margin: 0 1rem 1rem;
|
37 |
-
overflow-wrap: break-word;
|
38 |
-
}
|
39 |
-
.tags-links {
|
40 |
-
margin: 0 1rem 1rem;
|
41 |
-
}
|
42 |
-
.entry-footer {
|
43 |
-
margin: 0 1em 1.25rem;
|
44 |
-
overflow: hidden;
|
45 |
-
}
|
46 |
-
.byline,
|
47 |
-
.posted-on {
|
48 |
-
float: left;
|
49 |
-
font-size: .875rem;
|
50 |
-
line-height: 1.33;
|
51 |
-
}
|
52 |
-
.vcard img {
|
53 |
-
display: inline-block;
|
54 |
-
width: auto;
|
55 |
-
}
|
56 |
-
.posted-on {
|
57 |
-
float: right;
|
58 |
-
}
|
59 |
-
.published:not(.updated) {
|
60 |
-
display: none;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_product-carousel.scss
DELETED
@@ -1,180 +0,0 @@
|
|
1 |
-
$text-color: #333333;
|
2 |
-
$btn-color: #f1f1f1;
|
3 |
-
$btn-background: #96588a;
|
4 |
-
|
5 |
-
.carousel-slider {
|
6 |
-
|
7 |
-
&__product {
|
8 |
-
position: relative;
|
9 |
-
text-align: center;
|
10 |
-
border: 1px solid #f1f1f1;
|
11 |
-
|
12 |
-
.woocommerce-LoopProduct-link {
|
13 |
-
display: block;
|
14 |
-
overflow: hidden;
|
15 |
-
margin: 0 0 .5em;
|
16 |
-
}
|
17 |
-
|
18 |
-
.onsale {
|
19 |
-
border: 0 none;
|
20 |
-
line-height: 1;
|
21 |
-
margin: 0;
|
22 |
-
padding: 15px 5px;
|
23 |
-
color: $btn-color;
|
24 |
-
background-color: $btn-background;
|
25 |
-
position: absolute;
|
26 |
-
left: 8px;
|
27 |
-
top: 8px;
|
28 |
-
border-radius: 50%;
|
29 |
-
}
|
30 |
-
|
31 |
-
h3 {
|
32 |
-
padding: .5em 1em;
|
33 |
-
text-align: left;
|
34 |
-
margin: 0;
|
35 |
-
font-size: 1em;
|
36 |
-
color: $text-color;
|
37 |
-
}
|
38 |
-
|
39 |
-
a {
|
40 |
-
text-decoration: none;
|
41 |
-
box-shadow: none;
|
42 |
-
|
43 |
-
img {
|
44 |
-
width: 100%;
|
45 |
-
height: auto;
|
46 |
-
display: block;
|
47 |
-
box-shadow: none;
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
-
strong {
|
52 |
-
display: block;
|
53 |
-
}
|
54 |
-
|
55 |
-
// Price
|
56 |
-
.price {
|
57 |
-
color: $text-color;
|
58 |
-
display: inline-block;
|
59 |
-
font-weight: normal;
|
60 |
-
margin: .5em 1em;
|
61 |
-
font-size: .857em;
|
62 |
-
float: left;
|
63 |
-
|
64 |
-
del {
|
65 |
-
color: inherit;
|
66 |
-
background-color: transparent;
|
67 |
-
opacity: 0.5;
|
68 |
-
display: inline-block;
|
69 |
-
}
|
70 |
-
|
71 |
-
ins {
|
72 |
-
color: inherit;
|
73 |
-
background-color: transparent;
|
74 |
-
font-weight: bold;
|
75 |
-
}
|
76 |
-
}
|
77 |
-
|
78 |
-
// Star ratings
|
79 |
-
.star-rating {
|
80 |
-
color: $btn-background;
|
81 |
-
display: inline-block;
|
82 |
-
margin: .5em 1em;
|
83 |
-
float: right;
|
84 |
-
overflow: hidden;
|
85 |
-
position: relative;
|
86 |
-
height: 1em;
|
87 |
-
line-height: 1;
|
88 |
-
font-size: 1em;
|
89 |
-
width: 5.4em;
|
90 |
-
font-family: 'star';
|
91 |
-
|
92 |
-
&:before {
|
93 |
-
content: "\73\73\73\73\73";
|
94 |
-
float: left;
|
95 |
-
top: 0;
|
96 |
-
left: 0;
|
97 |
-
position: absolute;
|
98 |
-
}
|
99 |
-
|
100 |
-
span {
|
101 |
-
overflow: hidden;
|
102 |
-
float: left;
|
103 |
-
top: 0;
|
104 |
-
left: 0;
|
105 |
-
position: absolute;
|
106 |
-
padding-top: 1.5em;
|
107 |
-
}
|
108 |
-
|
109 |
-
span:before {
|
110 |
-
content: "\53\53\53\53\53";
|
111 |
-
top: 0;
|
112 |
-
position: absolute;
|
113 |
-
left: 0;
|
114 |
-
}
|
115 |
-
}
|
116 |
-
|
117 |
-
a.add_to_cart_button,
|
118 |
-
a.added_to_cart,
|
119 |
-
a.quick_view {
|
120 |
-
color: $btn-color;
|
121 |
-
background-color: $btn-background;
|
122 |
-
margin: 1em;
|
123 |
-
line-height: 1;
|
124 |
-
cursor: pointer;
|
125 |
-
position: relative;
|
126 |
-
text-decoration: none;
|
127 |
-
overflow: visible;
|
128 |
-
padding: .5em 1em;
|
129 |
-
font-weight: normal;
|
130 |
-
border-radius: 3px;
|
131 |
-
left: auto;
|
132 |
-
border: 0;
|
133 |
-
white-space: nowrap;
|
134 |
-
display: block;
|
135 |
-
background-image: none;
|
136 |
-
box-shadow: none;
|
137 |
-
-webkit-box-shadow: none;
|
138 |
-
text-shadow: none;
|
139 |
-
|
140 |
-
&:hover {
|
141 |
-
color: $btn-color;
|
142 |
-
background-color: $btn-background;
|
143 |
-
text-decoration: none;
|
144 |
-
background-image: none;
|
145 |
-
}
|
146 |
-
}
|
147 |
-
|
148 |
-
// Buttons
|
149 |
-
a.add_to_cart_button {
|
150 |
-
|
151 |
-
&.loading {
|
152 |
-
opacity: 0.25;
|
153 |
-
padding-right: 2.618em;
|
154 |
-
|
155 |
-
&:after {
|
156 |
-
font-family: "WooCommerce";
|
157 |
-
content: "\e01c";
|
158 |
-
vertical-align: top;
|
159 |
-
-webkit-font-smoothing: antialiased;
|
160 |
-
font-weight: normal;
|
161 |
-
position: absolute;
|
162 |
-
top: .618em;
|
163 |
-
right: 1em;
|
164 |
-
-webkit-animation: spin 2s linear infinite;
|
165 |
-
-moz-animation: spin 2s linear infinite;
|
166 |
-
animation: spin 2s linear infinite;
|
167 |
-
}
|
168 |
-
}
|
169 |
-
|
170 |
-
&.added {
|
171 |
-
&:after {
|
172 |
-
font-family: 'WooCommerce';
|
173 |
-
content: "\e017";
|
174 |
-
margin-left: .53em;
|
175 |
-
vertical-align: bottom;
|
176 |
-
}
|
177 |
-
}
|
178 |
-
}
|
179 |
-
}
|
180 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_product_modal.scss
DELETED
@@ -1,197 +0,0 @@
|
|
1 |
-
.mfp-content {
|
2 |
-
|
3 |
-
.product {
|
4 |
-
background-color: #ffffff;
|
5 |
-
display: table;
|
6 |
-
margin: 0 auto;
|
7 |
-
padding: 15px;
|
8 |
-
|
9 |
-
.images {
|
10 |
-
display: inline-block;
|
11 |
-
float: left;
|
12 |
-
max-width: 600px;
|
13 |
-
|
14 |
-
img {
|
15 |
-
display: block;
|
16 |
-
}
|
17 |
-
}
|
18 |
-
|
19 |
-
.onsale {
|
20 |
-
left: 24px;
|
21 |
-
top: 24px;
|
22 |
-
position: absolute;
|
23 |
-
}
|
24 |
-
|
25 |
-
.summary {
|
26 |
-
display: inline-block;
|
27 |
-
margin-left: 15px;
|
28 |
-
width: 300px;
|
29 |
-
}
|
30 |
-
|
31 |
-
.product_title,
|
32 |
-
.description {
|
33 |
-
margin: 1em 0;
|
34 |
-
}
|
35 |
-
|
36 |
-
// Price
|
37 |
-
.price {
|
38 |
-
// color: $text-color;
|
39 |
-
display: inline-block;
|
40 |
-
font-weight: normal;
|
41 |
-
margin: .5em 1em;
|
42 |
-
font-size: .857em;
|
43 |
-
float: left;
|
44 |
-
|
45 |
-
del {
|
46 |
-
color: inherit;
|
47 |
-
background-color: transparent;
|
48 |
-
opacity: 0.5;
|
49 |
-
display: inline-block;
|
50 |
-
}
|
51 |
-
|
52 |
-
ins {
|
53 |
-
color: inherit;
|
54 |
-
background-color: transparent;
|
55 |
-
font-weight: bold;
|
56 |
-
}
|
57 |
-
}
|
58 |
-
|
59 |
-
// Star ratings
|
60 |
-
.star-rating {
|
61 |
-
// color: $btn-background;
|
62 |
-
display: inline-block;
|
63 |
-
margin: .5em 1em;
|
64 |
-
float: right;
|
65 |
-
overflow: hidden;
|
66 |
-
position: relative;
|
67 |
-
height: 1em;
|
68 |
-
line-height: 1;
|
69 |
-
font-size: 1em;
|
70 |
-
width: 5.4em;
|
71 |
-
font-family: 'star';
|
72 |
-
|
73 |
-
&:before {
|
74 |
-
content: "\73\73\73\73\73";
|
75 |
-
float: left;
|
76 |
-
top: 0;
|
77 |
-
left: 0;
|
78 |
-
position: absolute;
|
79 |
-
}
|
80 |
-
|
81 |
-
span {
|
82 |
-
overflow: hidden;
|
83 |
-
float: left;
|
84 |
-
top: 0;
|
85 |
-
left: 0;
|
86 |
-
position: absolute;
|
87 |
-
padding-top: 1.5em;
|
88 |
-
}
|
89 |
-
|
90 |
-
span:before {
|
91 |
-
content: "\53\53\53\53\53";
|
92 |
-
top: 0;
|
93 |
-
position: absolute;
|
94 |
-
left: 0;
|
95 |
-
}
|
96 |
-
}
|
97 |
-
|
98 |
-
// Buttons
|
99 |
-
|
100 |
-
a.add_to_cart_button,
|
101 |
-
a.added_to_cart {
|
102 |
-
// color: $btn-color;
|
103 |
-
// background-color: $btn-background;
|
104 |
-
margin: 0;
|
105 |
-
line-height: 1;
|
106 |
-
cursor: pointer;
|
107 |
-
position: relative;
|
108 |
-
text-decoration: none;
|
109 |
-
overflow: visible;
|
110 |
-
padding: .5em 1em;
|
111 |
-
font-weight: normal;
|
112 |
-
border-radius: 3px;
|
113 |
-
left: auto;
|
114 |
-
border: 0;
|
115 |
-
white-space: nowrap;
|
116 |
-
display: inline-block;
|
117 |
-
background-image: none;
|
118 |
-
box-shadow: none;
|
119 |
-
-webkit-box-shadow: none;
|
120 |
-
text-shadow: none;
|
121 |
-
|
122 |
-
&:hover {
|
123 |
-
// color: $btn-color;
|
124 |
-
// background-color: $btn-background;
|
125 |
-
text-decoration: none;
|
126 |
-
background-image: none;
|
127 |
-
}
|
128 |
-
}
|
129 |
-
a.add_to_cart_button {
|
130 |
-
|
131 |
-
&.loading {
|
132 |
-
opacity: 0.25;
|
133 |
-
padding-right: 2.618em;
|
134 |
-
|
135 |
-
&:after {
|
136 |
-
font-family: "WooCommerce";
|
137 |
-
content: "\e01c";
|
138 |
-
vertical-align: top;
|
139 |
-
-webkit-font-smoothing: antialiased;
|
140 |
-
font-weight: normal;
|
141 |
-
position: absolute;
|
142 |
-
top: .618em;
|
143 |
-
right: 1em;
|
144 |
-
-webkit-animation: spin 2s linear infinite;
|
145 |
-
-moz-animation: spin 2s linear infinite;
|
146 |
-
animation: spin 2s linear infinite;
|
147 |
-
}
|
148 |
-
}
|
149 |
-
|
150 |
-
&.added {
|
151 |
-
&:after {
|
152 |
-
font-family: 'WooCommerce';
|
153 |
-
content: "\e017";
|
154 |
-
margin-left: .53em;
|
155 |
-
vertical-align: bottom;
|
156 |
-
}
|
157 |
-
}
|
158 |
-
}
|
159 |
-
}
|
160 |
-
}
|
161 |
-
|
162 |
-
.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
|
163 |
-
max-width: 945px;
|
164 |
-
margin-top: 40px;
|
165 |
-
margin-bottom: 40px;
|
166 |
-
}
|
167 |
-
|
168 |
-
@media ( max-width: 600px ) {
|
169 |
-
.mfp-content {
|
170 |
-
.product {
|
171 |
-
.images {
|
172 |
-
margin-bottom: 30px;
|
173 |
-
}
|
174 |
-
.summary {
|
175 |
-
display: block;
|
176 |
-
margin: 0;
|
177 |
-
width: 100%;
|
178 |
-
}
|
179 |
-
}
|
180 |
-
}
|
181 |
-
}
|
182 |
-
|
183 |
-
@media ( min-width: 601px ) {
|
184 |
-
.mfp-content {
|
185 |
-
.product {
|
186 |
-
.images {
|
187 |
-
display: inline-block;
|
188 |
-
width: 49%;
|
189 |
-
}
|
190 |
-
.summary {
|
191 |
-
display: inline-block;
|
192 |
-
margin: 0 0 0 1%;
|
193 |
-
width: 49%;
|
194 |
-
}
|
195 |
-
}
|
196 |
-
}
|
197 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_theme.scss
DELETED
@@ -1,136 +0,0 @@
|
|
1 |
-
.carousel-slider {
|
2 |
-
|
3 |
-
// Styling Next and Prev buttons
|
4 |
-
.owl-nav {
|
5 |
-
.owl-prev,
|
6 |
-
.owl-next {
|
7 |
-
height: 48px;
|
8 |
-
width: 48px;
|
9 |
-
display: inline-block;
|
10 |
-
position: absolute;
|
11 |
-
top: 50%;
|
12 |
-
transform: translateY(-50%);
|
13 |
-
opacity: 0;
|
14 |
-
margin: 0;
|
15 |
-
padding: 0;
|
16 |
-
transition: all .3s ease-in-out;
|
17 |
-
}
|
18 |
-
|
19 |
-
.owl-prev {
|
20 |
-
left: 0;
|
21 |
-
}
|
22 |
-
|
23 |
-
.owl-next {
|
24 |
-
right: 0;
|
25 |
-
}
|
26 |
-
}
|
27 |
-
|
28 |
-
&:hover {
|
29 |
-
.owl-nav {
|
30 |
-
.owl-prev,
|
31 |
-
.owl-next {
|
32 |
-
opacity: 1;
|
33 |
-
}
|
34 |
-
}
|
35 |
-
}
|
36 |
-
|
37 |
-
&.arrows-visible-always {
|
38 |
-
.owl-prev,
|
39 |
-
.owl-next {
|
40 |
-
opacity: 1;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
&.arrows-outside {
|
45 |
-
.owl-nav {
|
46 |
-
.owl-prev {
|
47 |
-
left: -48px;
|
48 |
-
}
|
49 |
-
|
50 |
-
.owl-next {
|
51 |
-
right: -48px;
|
52 |
-
}
|
53 |
-
}
|
54 |
-
}
|
55 |
-
|
56 |
-
// Styling dots
|
57 |
-
.owl-dots {
|
58 |
-
text-align: center;
|
59 |
-
-webkit-tap-highlight-color: transparent;
|
60 |
-
margin-top: 10px;
|
61 |
-
|
62 |
-
.owl-dot {
|
63 |
-
display: inline-block;
|
64 |
-
zoom: 1;
|
65 |
-
*display: inline;
|
66 |
-
|
67 |
-
span {
|
68 |
-
width: 10px;
|
69 |
-
height: 10px;
|
70 |
-
margin: 4px 8px;
|
71 |
-
background-color: $background-color;
|
72 |
-
display: block;
|
73 |
-
-webkit-backface-visibility: visible;
|
74 |
-
transition: opacity 200ms ease;
|
75 |
-
}
|
76 |
-
|
77 |
-
&.active,
|
78 |
-
&:hover {
|
79 |
-
span {
|
80 |
-
background-color: $background-hover-color;
|
81 |
-
}
|
82 |
-
}
|
83 |
-
}
|
84 |
-
}
|
85 |
-
|
86 |
-
// Dots positions
|
87 |
-
&.dots-center {
|
88 |
-
.owl-dots {
|
89 |
-
text-align: center;
|
90 |
-
}
|
91 |
-
}
|
92 |
-
&.dots-left {
|
93 |
-
.owl-dots {
|
94 |
-
text-align: left;
|
95 |
-
|
96 |
-
&:first-child {
|
97 |
-
span {
|
98 |
-
margin-left: 0;
|
99 |
-
}
|
100 |
-
}
|
101 |
-
}
|
102 |
-
}
|
103 |
-
&.dots-right {
|
104 |
-
.owl-dots {
|
105 |
-
text-align: right;
|
106 |
-
|
107 |
-
&:last-child {
|
108 |
-
span {
|
109 |
-
margin-right: 0;
|
110 |
-
}
|
111 |
-
}
|
112 |
-
}
|
113 |
-
}
|
114 |
-
|
115 |
-
// Dots visibility
|
116 |
-
&.dots-visible-hover {
|
117 |
-
.owl-dots {
|
118 |
-
opacity: 0;
|
119 |
-
}
|
120 |
-
|
121 |
-
&:hover .owl-dots {
|
122 |
-
opacity: 1;
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
-
// Dots shape
|
127 |
-
&.dots-circle {
|
128 |
-
.owl-dots {
|
129 |
-
.owl-dot {
|
130 |
-
span {
|
131 |
-
border-radius: 9999px;
|
132 |
-
}
|
133 |
-
}
|
134 |
-
}
|
135 |
-
}
|
136 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_variables.scss
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
// Variables
|
2 |
-
$background-color : #9e9e9e;
|
3 |
-
$background-hover-color : #4caf50;
|
4 |
-
$owl-video-play-icon : "../img/play.svg";
|
5 |
-
$ajax-loader-url : "../img/ajax-loader.gif";
|
|
|
|
|
|
|
|
|
|
assets/scss/public/_video.scss
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
// Owl Carousel - Video Plugin
|
2 |
-
.carousel-slider {
|
3 |
-
|
4 |
-
.carousel-slider-video-wrapper {
|
5 |
-
position: relative;
|
6 |
-
height: 100%;
|
7 |
-
background: #000;
|
8 |
-
}
|
9 |
-
|
10 |
-
.carousel-slider-video-play-icon {
|
11 |
-
position: absolute;
|
12 |
-
height: 40px;
|
13 |
-
width: 40px;
|
14 |
-
left: 50%;
|
15 |
-
top: 50%;
|
16 |
-
margin-left: -20px;
|
17 |
-
margin-top: -20px;
|
18 |
-
background: url($owl-video-play-icon) no-repeat;
|
19 |
-
cursor: pointer;
|
20 |
-
z-index: 2;
|
21 |
-
-webkit-backface-visibility: hidden;
|
22 |
-
transition: transform 100ms ease;
|
23 |
-
}
|
24 |
-
|
25 |
-
.carousel-slider-video-overlay {
|
26 |
-
position: absolute;
|
27 |
-
height: 100%;
|
28 |
-
width: 100%;
|
29 |
-
left: 0;
|
30 |
-
top: 0;
|
31 |
-
background-color: rgba(#000000, 0.5);
|
32 |
-
z-index: 1;
|
33 |
-
}
|
34 |
-
|
35 |
-
.carousel-slider-video-play-icon:hover {
|
36 |
-
transform: scale(1.3, 1.3);
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/public/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
assets/scss/style.scss
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
@import 'public/variables';
|
2 |
-
@import 'public/core';
|
3 |
-
@import 'public/animate';
|
4 |
-
@import 'public/autoheight';
|
5 |
-
@import 'public/lazyload';
|
6 |
-
@import 'public/video';
|
7 |
-
@import 'public/theme';
|
8 |
-
@import 'public/post-carousel';
|
9 |
-
@import 'public/product-carousel';
|
10 |
-
@import 'public/content-carousel';
|
11 |
-
@import 'public/image-carousel';
|
12 |
-
@import 'public/button';
|
13 |
-
|
14 |
-
@import 'public/magnific-popup';
|
15 |
-
@import 'public/product_modal';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/utilities/_mixins.scss
DELETED
@@ -1,74 +0,0 @@
|
|
1 |
-
|
2 |
-
@mixin overlay($offset: 0) {
|
3 |
-
bottom: $offset;
|
4 |
-
left: $offset;
|
5 |
-
position: absolute;
|
6 |
-
right: $offset;
|
7 |
-
top: $offset;
|
8 |
-
}
|
9 |
-
|
10 |
-
@mixin delete {
|
11 |
-
user-select: none;
|
12 |
-
-moz-appearance: none;
|
13 |
-
-webkit-appearance: none;
|
14 |
-
background-color: rgba($black, 0.2);
|
15 |
-
border: none;
|
16 |
-
border-radius: 32px;
|
17 |
-
cursor: pointer;
|
18 |
-
display: inline-block;
|
19 |
-
flex-grow: 0;
|
20 |
-
flex-shrink: 0;
|
21 |
-
font-size: $size-normal;
|
22 |
-
outline: none;
|
23 |
-
position: relative;
|
24 |
-
vertical-align: top;
|
25 |
-
height: 20px;
|
26 |
-
width: 20px;
|
27 |
-
|
28 |
-
&:before,
|
29 |
-
&:after {
|
30 |
-
background-color: $white;
|
31 |
-
content: "";
|
32 |
-
display: block;
|
33 |
-
left: 50%;
|
34 |
-
position: absolute;
|
35 |
-
top: 50%;
|
36 |
-
transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
37 |
-
transform-origin: center center;
|
38 |
-
}
|
39 |
-
|
40 |
-
&:before {
|
41 |
-
height: 2px;
|
42 |
-
width: 50%;
|
43 |
-
}
|
44 |
-
|
45 |
-
&:after {
|
46 |
-
height: 50%;
|
47 |
-
width: 2px;
|
48 |
-
}
|
49 |
-
|
50 |
-
&:hover,
|
51 |
-
&:focus {
|
52 |
-
background-color: rgba($black, 0.3);
|
53 |
-
}
|
54 |
-
|
55 |
-
&:active {
|
56 |
-
background-color: rgba($black, 0.4);
|
57 |
-
}
|
58 |
-
|
59 |
-
// Sizes
|
60 |
-
&.is-small {
|
61 |
-
height: 16px;
|
62 |
-
width: 16px;
|
63 |
-
}
|
64 |
-
|
65 |
-
&.is-medium {
|
66 |
-
height: 24px;
|
67 |
-
width: 24px;
|
68 |
-
}
|
69 |
-
|
70 |
-
&.is-large {
|
71 |
-
height: 32px;
|
72 |
-
width: 32px;
|
73 |
-
}
|
74 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/scss/utilities/_variables.scss
DELETED
@@ -1,145 +0,0 @@
|
|
1 |
-
// == Colors
|
2 |
-
// Start with assigning color names to specific hex values.
|
3 |
-
|
4 |
-
$black: #000000 !default;
|
5 |
-
$grey-darker: #212121 !default;
|
6 |
-
$grey-dark: #616161 !default;
|
7 |
-
$grey: #9e9e9e !default;
|
8 |
-
$grey-light: #e0e0e0 !default;
|
9 |
-
$grey-lighter: #f5f5f5 !default;
|
10 |
-
$white: #ffffff !default;
|
11 |
-
$teal: #009688 !default;
|
12 |
-
$blue: #2196f3 !default;
|
13 |
-
$green: #4caf50 !default;
|
14 |
-
$yellow: #ffeb3b !default;
|
15 |
-
$amber: #ffc107 !default;
|
16 |
-
$orange: #ff9800 !default;
|
17 |
-
$red: #f44336 !default;
|
18 |
-
$purple: #9c27b0 !default;
|
19 |
-
$turquoise: #00d1b2 !default;
|
20 |
-
$pink: #e91e63 !default;
|
21 |
-
|
22 |
-
// Reassign color vars to semantic color scheme
|
23 |
-
$primary: $teal !default;
|
24 |
-
$info: $blue !default;
|
25 |
-
$success: $green !default;
|
26 |
-
$warning: $amber !default;
|
27 |
-
$danger: $red !default;
|
28 |
-
$light: $grey-lighter !default;
|
29 |
-
$dark: $grey-darker !default;
|
30 |
-
|
31 |
-
$colors: (
|
32 |
-
'teal': $teal,
|
33 |
-
'blue': $blue,
|
34 |
-
'green': $green,
|
35 |
-
'yellow': $yellow,
|
36 |
-
'amber': $amber,
|
37 |
-
'orange': $orange,
|
38 |
-
'red': $red,
|
39 |
-
'purple': $purple,
|
40 |
-
'turquoise': $turquoise,
|
41 |
-
'pink': $pink,
|
42 |
-
'white': $white,
|
43 |
-
'light': $grey-lighter,
|
44 |
-
'grey-light': $grey-light,
|
45 |
-
'grey': $grey,
|
46 |
-
'grey-dark': $grey-dark,
|
47 |
-
'dark': $grey-darker,
|
48 |
-
'black': $black,
|
49 |
-
);
|
50 |
-
|
51 |
-
// General colors
|
52 |
-
$background: $grey-lighter !default;
|
53 |
-
|
54 |
-
$border: $grey-lighter !default;
|
55 |
-
$border-hover: $grey-light !default;
|
56 |
-
|
57 |
-
//== Link colors
|
58 |
-
$link: $primary !default;
|
59 |
-
$link-invert: findColorInvert($primary) !default;
|
60 |
-
$link-visited: $purple !default;
|
61 |
-
|
62 |
-
$link-hover: $grey-darker !default;
|
63 |
-
$link-hover-border: $grey-light !default;
|
64 |
-
|
65 |
-
$link-focus: $grey-darker !default;
|
66 |
-
$link-focus-border: $primary !default;
|
67 |
-
|
68 |
-
$link-active: $grey-darker !default;
|
69 |
-
$link-active-border: $grey-dark !default;
|
70 |
-
|
71 |
-
//== Button
|
72 |
-
$button: $grey-darker !default;
|
73 |
-
$button-background: $white !default;
|
74 |
-
$button-border: $grey-lighter !default;
|
75 |
-
|
76 |
-
$button-hover: $link-hover !default;
|
77 |
-
$button-hover-border: $link-hover-border !default;
|
78 |
-
|
79 |
-
$button-focus: $link-focus !default;
|
80 |
-
$button-focus-border: $link-focus-border !default;
|
81 |
-
|
82 |
-
$button-active: $link-active !default;
|
83 |
-
$button-active-border: $link-active-border !default;
|
84 |
-
|
85 |
-
$button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) !default;
|
86 |
-
|
87 |
-
// Typography
|
88 |
-
$family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default;
|
89 |
-
$family-monospace: monospace !default;
|
90 |
-
|
91 |
-
$family-primary: $family-sans-serif !default;
|
92 |
-
$family-code: $family-monospace !default;
|
93 |
-
|
94 |
-
$size-1: 3rem !default;
|
95 |
-
$size-2: 2.5rem !default;
|
96 |
-
$size-3: 2rem !default;
|
97 |
-
$size-4: 1.5rem !default;
|
98 |
-
$size-5: 1.25rem !default;
|
99 |
-
$size-6: 1rem !default;
|
100 |
-
$size-7: 0.75rem !default;
|
101 |
-
|
102 |
-
$size-small: $size-7 !default;
|
103 |
-
$size-normal: $size-6 !default;
|
104 |
-
$size-medium: $size-5 !default;
|
105 |
-
$size-large: $size-4 !default;
|
106 |
-
|
107 |
-
$weight-light: 300 !default;
|
108 |
-
$weight-normal: 400 !default;
|
109 |
-
$weight-semibold: 500 !default;
|
110 |
-
$weight-bold: 700 !default;
|
111 |
-
|
112 |
-
// Text colors
|
113 |
-
$text: $grey-dark !default;
|
114 |
-
$text-invert: findColorInvert($text) !default;
|
115 |
-
$text-light: $grey !default;
|
116 |
-
$text-strong: $grey-darker !default;
|
117 |
-
|
118 |
-
// Miscellaneous
|
119 |
-
$radius-small: 2px !default;
|
120 |
-
$radius: 3px !default;
|
121 |
-
$radius-large: 5px !default;
|
122 |
-
|
123 |
-
//== Grid breakpoints
|
124 |
-
$screen-sm: 576px !default;
|
125 |
-
$screen-md: 769px !default;
|
126 |
-
$screen-lg: 1000px !default;
|
127 |
-
$screen-xl: 1192px !default;
|
128 |
-
$screen-hd: 1384px !default;
|
129 |
-
|
130 |
-
//== Grid containers
|
131 |
-
$container-sm: 540px !default;
|
132 |
-
$container-md: 720px !default;
|
133 |
-
$container-lg: 960px !default;
|
134 |
-
$container-xl: 1140px !default;
|
135 |
-
$container-hd: 1340px !default;
|
136 |
-
|
137 |
-
// Responsiveness
|
138 |
-
// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
|
139 |
-
$tablet: 769px !default;
|
140 |
-
// 960px container + 40px
|
141 |
-
$desktop: 1000px !default;
|
142 |
-
// 1152px container + 40
|
143 |
-
$widescreen: 1192px !default;
|
144 |
-
// 1344px container + 40
|
145 |
-
$fullhd: 1384px !default;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
carousel-slider.php
CHANGED
@@ -2,15 +2,15 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Carousel Slider
|
4 |
* Plugin URI: http://wordpress.org/plugins/carousel-slider
|
5 |
-
* Description:
|
6 |
-
* Version: 1.
|
7 |
* Author: Sayful Islam
|
8 |
* Author URI: https://sayfulislam.com
|
9 |
* Requires at least: 4.4
|
10 |
-
* Tested up to:
|
11 |
*
|
12 |
* WC requires at least: 2.5
|
13 |
-
* WC tested up to: 3.
|
14 |
*
|
15 |
* Text Domain: carousel-slider
|
16 |
*
|
@@ -21,9 +21,8 @@
|
|
21 |
* @author Sayful Islam
|
22 |
*/
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
die;
|
27 |
}
|
28 |
|
29 |
if ( ! class_exists( 'Carousel_Slider' ) ) {
|
@@ -37,12 +36,19 @@ if ( ! class_exists( 'Carousel_Slider' ) ) {
|
|
37 |
*/
|
38 |
private $plugin_name = 'carousel-slider';
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
/**
|
41 |
* Plugin version
|
42 |
*
|
43 |
* @var string
|
44 |
*/
|
45 |
-
private $version = '1.
|
46 |
|
47 |
/**
|
48 |
* Minimum PHP version required
|
@@ -52,13 +58,15 @@ if ( ! class_exists( 'Carousel_Slider' ) ) {
|
|
52 |
private $min_php = '5.3.0';
|
53 |
|
54 |
/**
|
55 |
-
*
|
|
|
|
|
56 |
*/
|
57 |
protected static $instance;
|
58 |
|
59 |
/**
|
60 |
* Main Carousel_Slider Instance
|
61 |
-
* Ensures only one instance of
|
62 |
*
|
63 |
* @since 1.6.0
|
64 |
* @return Carousel_Slider - Main instance
|
@@ -66,26 +74,34 @@ if ( ! class_exists( 'Carousel_Slider' ) ) {
|
|
66 |
public static function instance() {
|
67 |
if ( is_null( self::$instance ) ) {
|
68 |
self::$instance = new self();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
}
|
70 |
|
71 |
return self::$instance;
|
72 |
}
|
73 |
|
74 |
/**
|
75 |
-
*
|
76 |
*/
|
77 |
-
public function __construct() {
|
78 |
-
$this->define_constants();
|
79 |
-
$this->includes();
|
80 |
-
|
81 |
-
register_activation_hook( __FILE__, array( $this, 'activation' ) );
|
82 |
-
register_deactivation_hook( __FILE__, array( $this, 'deactivation' ) );
|
83 |
-
|
84 |
-
do_action( 'carousel_slider_init' );
|
85 |
-
}
|
86 |
-
|
87 |
public function define_constants() {
|
88 |
define( 'CAROUSEL_SLIDER_VERSION', $this->version );
|
|
|
89 |
define( 'CAROUSEL_SLIDER_FILE', __FILE__ );
|
90 |
define( 'CAROUSEL_SLIDER_PATH', dirname( CAROUSEL_SLIDER_FILE ) );
|
91 |
define( 'CAROUSEL_SLIDER_INCLUDES', CAROUSEL_SLIDER_PATH . '/includes' );
|
@@ -116,9 +132,10 @@ if ( ! class_exists( 'Carousel_Slider' ) ) {
|
|
116 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-activator.php';
|
117 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-product.php';
|
118 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-script.php';
|
|
|
119 |
require_once CAROUSEL_SLIDER_WIDGETS . '/widget-carousel_slider.php';
|
120 |
|
121 |
-
if (
|
122 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-credit.php';
|
123 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-documentation.php';
|
124 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-vc-element.php';
|
@@ -126,6 +143,7 @@ if ( ! class_exists( 'Carousel_Slider' ) ) {
|
|
126 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-admin.php';
|
127 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-meta-box.php';
|
128 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-hero-carousel.php';
|
|
|
129 |
}
|
130 |
|
131 |
require_once CAROUSEL_SLIDER_PATH . '/shortcodes/class-carousel-slider-shortcode.php';
|
@@ -150,6 +168,93 @@ if ( ! class_exists( 'Carousel_Slider' ) ) {
|
|
150 |
do_action( 'carousel_slider_deactivation' );
|
151 |
flush_rewrite_rules();
|
152 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
}
|
154 |
}
|
155 |
|
2 |
/**
|
3 |
* Plugin Name: Carousel Slider
|
4 |
* Plugin URI: http://wordpress.org/plugins/carousel-slider
|
5 |
+
* Description: <strong>Carousel Slider</strong> allows you to create beautiful, touch enabled, responsive carousels and sliders. It let you create SEO friendly Image carousel from Media Library or from custom URL, Video carousel using Youtube and Vimeo video, Post carousel, Hero banner slider and various types of WooCommerce products carousels.
|
6 |
+
* Version: 1.9.2
|
7 |
* Author: Sayful Islam
|
8 |
* Author URI: https://sayfulislam.com
|
9 |
* Requires at least: 4.4
|
10 |
+
* Tested up to: 5.2
|
11 |
*
|
12 |
* WC requires at least: 2.5
|
13 |
+
* WC tested up to: 3.6
|
14 |
*
|
15 |
* Text Domain: carousel-slider
|
16 |
*
|
21 |
* @author Sayful Islam
|
22 |
*/
|
23 |
|
24 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
25 |
+
die; // If this file is called directly, abort.
|
|
|
26 |
}
|
27 |
|
28 |
if ( ! class_exists( 'Carousel_Slider' ) ) {
|
36 |
*/
|
37 |
private $plugin_name = 'carousel-slider';
|
38 |
|
39 |
+
/**
|
40 |
+
* Plugin custom post type
|
41 |
+
*
|
42 |
+
* @var string
|
43 |
+
*/
|
44 |
+
private $post_type = 'carousels';
|
45 |
+
|
46 |
/**
|
47 |
* Plugin version
|
48 |
*
|
49 |
* @var string
|
50 |
*/
|
51 |
+
private $version = '1.9.2';
|
52 |
|
53 |
/**
|
54 |
* Minimum PHP version required
|
58 |
private $min_php = '5.3.0';
|
59 |
|
60 |
/**
|
61 |
+
* The instance of the class
|
62 |
+
*
|
63 |
+
* @var self
|
64 |
*/
|
65 |
protected static $instance;
|
66 |
|
67 |
/**
|
68 |
* Main Carousel_Slider Instance
|
69 |
+
* Ensures only one instance of the class is loaded or can be loaded.
|
70 |
*
|
71 |
* @since 1.6.0
|
72 |
* @return Carousel_Slider - Main instance
|
74 |
public static function instance() {
|
75 |
if ( is_null( self::$instance ) ) {
|
76 |
self::$instance = new self();
|
77 |
+
|
78 |
+
self::$instance->define_constants();
|
79 |
+
|
80 |
+
// Check if PHP version is supported for our plugin
|
81 |
+
if ( ! self::$instance->is_supported_php() ) {
|
82 |
+
register_activation_hook( __FILE__, array( self::$instance, 'auto_deactivate' ) );
|
83 |
+
add_action( 'admin_notices', array( self::$instance, 'php_version_notice' ) );
|
84 |
+
|
85 |
+
return self::$instance;
|
86 |
+
}
|
87 |
+
|
88 |
+
self::$instance->includes();
|
89 |
+
|
90 |
+
register_activation_hook( __FILE__, array( self::$instance, 'activation' ) );
|
91 |
+
register_deactivation_hook( __FILE__, array( self::$instance, 'deactivation' ) );
|
92 |
+
|
93 |
+
do_action( 'carousel_slider_init' );
|
94 |
}
|
95 |
|
96 |
return self::$instance;
|
97 |
}
|
98 |
|
99 |
/**
|
100 |
+
* Define plugin constants
|
101 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
public function define_constants() {
|
103 |
define( 'CAROUSEL_SLIDER_VERSION', $this->version );
|
104 |
+
define( 'CAROUSEL_SLIDER_POST_TYPE', $this->post_type );
|
105 |
define( 'CAROUSEL_SLIDER_FILE', __FILE__ );
|
106 |
define( 'CAROUSEL_SLIDER_PATH', dirname( CAROUSEL_SLIDER_FILE ) );
|
107 |
define( 'CAROUSEL_SLIDER_INCLUDES', CAROUSEL_SLIDER_PATH . '/includes' );
|
132 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-activator.php';
|
133 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-product.php';
|
134 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-script.php';
|
135 |
+
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-preview.php';
|
136 |
require_once CAROUSEL_SLIDER_WIDGETS . '/widget-carousel_slider.php';
|
137 |
|
138 |
+
if ( $this->is_request( 'admin' ) ) {
|
139 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-credit.php';
|
140 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-documentation.php';
|
141 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-vc-element.php';
|
143 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-admin.php';
|
144 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-meta-box.php';
|
145 |
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-hero-carousel.php';
|
146 |
+
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-gutenberg-block.php';
|
147 |
}
|
148 |
|
149 |
require_once CAROUSEL_SLIDER_PATH . '/shortcodes/class-carousel-slider-shortcode.php';
|
168 |
do_action( 'carousel_slider_deactivation' );
|
169 |
flush_rewrite_rules();
|
170 |
}
|
171 |
+
|
172 |
+
/**
|
173 |
+
* Show notice about PHP version
|
174 |
+
*
|
175 |
+
* @return void
|
176 |
+
*/
|
177 |
+
public function php_version_notice() {
|
178 |
+
|
179 |
+
if ( $this->is_supported_php() || ! current_user_can( 'manage_options' ) ) {
|
180 |
+
return;
|
181 |
+
}
|
182 |
+
|
183 |
+
$error = __( 'Your installed PHP Version is: ', 'carousel-slider' ) . PHP_VERSION . '. ';
|
184 |
+
$error .= sprintf( __( 'The Carousel Slider plugin requires PHP version %s or greater.',
|
185 |
+
'carousel-slider' ), $this->min_php );
|
186 |
+
?>
|
187 |
+
<div class="error">
|
188 |
+
<p><?php printf( $error ); ?></p>
|
189 |
+
</div>
|
190 |
+
<?php
|
191 |
+
}
|
192 |
+
|
193 |
+
/**
|
194 |
+
* Bail out if the php version is lower than
|
195 |
+
*
|
196 |
+
* @return void
|
197 |
+
*/
|
198 |
+
public function auto_deactivate() {
|
199 |
+
if ( $this->is_supported_php() ) {
|
200 |
+
return;
|
201 |
+
}
|
202 |
+
|
203 |
+
deactivate_plugins( plugin_basename( __FILE__ ) );
|
204 |
+
|
205 |
+
$error = '<h1>' . __( 'An Error Occurred', 'carousel-slider' ) . '</h1>';
|
206 |
+
$error .= '<h2>' . __( 'Your installed PHP Version is: ', 'carousel-slider' ) . PHP_VERSION . '</h2>';
|
207 |
+
$error .= '<p>' . sprintf( __( 'The Carousel Slider plugin requires PHP version %s or greater',
|
208 |
+
'carousel-slider' ), $this->min_php ) . '</p>';
|
209 |
+
$error .= '<p>' . sprintf( __( 'The version of your PHP is %s unsupported and old %s. ',
|
210 |
+
'carousel-slider' ),
|
211 |
+
'<a href="http://php.net/supported-versions.php" target="_blank"><strong>',
|
212 |
+
'</strong></a>'
|
213 |
+
);
|
214 |
+
$error .= __( 'You should update your PHP software or contact your host regarding this matter.',
|
215 |
+
'carousel-slider' ) . '</p>';
|
216 |
+
|
217 |
+
wp_die( $error, __( 'Plugin Activation Error', 'carousel-slider' ), array( 'back_link' => true ) );
|
218 |
+
}
|
219 |
+
|
220 |
+
/**
|
221 |
+
* What type of request is this?
|
222 |
+
*
|
223 |
+
* @param string $type admin, ajax, cron or frontend.
|
224 |
+
*
|
225 |
+
* @return bool
|
226 |
+
*/
|
227 |
+
public function is_request( $type ) {
|
228 |
+
switch ( $type ) {
|
229 |
+
case 'admin':
|
230 |
+
return is_admin();
|
231 |
+
case 'ajax':
|
232 |
+
return defined( 'DOING_AJAX' );
|
233 |
+
case 'cron':
|
234 |
+
return defined( 'DOING_CRON' );
|
235 |
+
case 'frontend':
|
236 |
+
return ( ! is_admin() || defined( 'DOING_AJAX' ) ) && ! defined( 'DOING_CRON' );
|
237 |
+
}
|
238 |
+
|
239 |
+
return false;
|
240 |
+
}
|
241 |
+
|
242 |
+
/**
|
243 |
+
* Check if the PHP version is supported
|
244 |
+
*
|
245 |
+
* @param null $min_php
|
246 |
+
*
|
247 |
+
* @return bool
|
248 |
+
*/
|
249 |
+
private function is_supported_php( $min_php = null ) {
|
250 |
+
$min_php = $min_php ? $min_php : $this->min_php;
|
251 |
+
|
252 |
+
if ( version_compare( PHP_VERSION, $min_php, '<=' ) ) {
|
253 |
+
return false;
|
254 |
+
}
|
255 |
+
|
256 |
+
return true;
|
257 |
+
}
|
258 |
}
|
259 |
}
|
260 |
|
includes/class-carousel-slider-activator.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
/**
|
@@ -11,29 +11,32 @@ if ( ! defined( 'WPINC' ) ) {
|
|
11 |
* @since 1.6.0
|
12 |
* @author Sayful Islam <sayful.islam001@gmail.com>
|
13 |
*/
|
14 |
-
if ( ! class_exists( 'Carousel_Slider_Activator' ) )
|
15 |
|
16 |
class Carousel_Slider_Activator {
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
/**
|
21 |
* Ensures only one instance of this class is loaded or can be loaded.
|
22 |
*
|
23 |
-
* @return
|
24 |
*/
|
25 |
public static function init() {
|
26 |
if ( is_null( self::$instance ) ) {
|
27 |
self::$instance = new self();
|
|
|
|
|
28 |
}
|
29 |
|
30 |
return self::$instance;
|
31 |
}
|
32 |
|
33 |
-
public function __construct() {
|
34 |
-
add_action( 'carousel_slider_activation', array( $this, 'activate' ) );
|
35 |
-
}
|
36 |
-
|
37 |
/**
|
38 |
* Script that should load upon plugin activation
|
39 |
*/
|
@@ -72,7 +75,6 @@ if ( ! class_exists( 'Carousel_Slider_Activator' ) ):
|
|
72 |
}
|
73 |
}
|
74 |
}
|
75 |
-
|
76 |
-
endif;
|
77 |
|
78 |
Carousel_Slider_Activator::init();
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
/**
|
11 |
* @since 1.6.0
|
12 |
* @author Sayful Islam <sayful.islam001@gmail.com>
|
13 |
*/
|
14 |
+
if ( ! class_exists( 'Carousel_Slider_Activator' ) ) {
|
15 |
|
16 |
class Carousel_Slider_Activator {
|
17 |
|
18 |
+
/**
|
19 |
+
* The instance of the class
|
20 |
+
*
|
21 |
+
* @var self
|
22 |
+
*/
|
23 |
+
private static $instance = null;
|
24 |
|
25 |
/**
|
26 |
* Ensures only one instance of this class is loaded or can be loaded.
|
27 |
*
|
28 |
+
* @return self
|
29 |
*/
|
30 |
public static function init() {
|
31 |
if ( is_null( self::$instance ) ) {
|
32 |
self::$instance = new self();
|
33 |
+
|
34 |
+
add_action( 'carousel_slider_activation', array( self::$instance, 'activate' ) );
|
35 |
}
|
36 |
|
37 |
return self::$instance;
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
40 |
/**
|
41 |
* Script that should load upon plugin activation
|
42 |
*/
|
75 |
}
|
76 |
}
|
77 |
}
|
78 |
+
}
|
|
|
79 |
|
80 |
Carousel_Slider_Activator::init();
|
includes/class-carousel-slider-admin.php
CHANGED
@@ -1,14 +1,23 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Admin' ) )
|
8 |
|
9 |
class Carousel_Slider_Admin {
|
10 |
|
|
|
|
|
|
|
11 |
private $form;
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
protected static $instance = null;
|
13 |
|
14 |
/**
|
@@ -101,7 +110,13 @@ if ( ! class_exists( 'Carousel_Slider_Admin' ) ):
|
|
101 |
return $actions;
|
102 |
}
|
103 |
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
unset( $actions['inline hide-if-no-js'] );
|
106 |
|
107 |
return $actions;
|
@@ -110,7 +125,7 @@ if ( ! class_exists( 'Carousel_Slider_Admin' ) ):
|
|
110 |
/**
|
111 |
* Customize Carousel slider list table head
|
112 |
*
|
113 |
-
* @return array
|
114 |
*/
|
115 |
public function columns_head() {
|
116 |
|
@@ -126,18 +141,21 @@ if ( ! class_exists( 'Carousel_Slider_Admin' ) ):
|
|
126 |
}
|
127 |
|
128 |
/**
|
129 |
-
* Generate carousel slider list table content
|
130 |
*
|
131 |
-
* @param $column
|
132 |
-
* @param $post_id
|
133 |
*/
|
134 |
-
public function columns_content( $
|
135 |
$slide_types = carousel_slider_slide_type( false );
|
136 |
-
switch ( $
|
137 |
|
138 |
case 'usage':
|
139 |
?>
|
|
|
|
|
140 |
<input
|
|
|
141 |
type="text"
|
142 |
onmousedown="this.clicked = 1;"
|
143 |
onfocus="if (!this.clicked) this.select(); else this.clicked = 2;"
|
@@ -149,7 +167,7 @@ if ( ! class_exists( 'Carousel_Slider_Admin' ) ):
|
|
149 |
break;
|
150 |
|
151 |
case 'slide_type':
|
152 |
-
$slide_type = get_post_meta(
|
153 |
echo isset( $slide_types[ $slide_type ] ) ? esc_attr( $slide_types[ $slide_type ] ) : '';
|
154 |
|
155 |
break;
|
@@ -191,16 +209,11 @@ if ( ! class_exists( 'Carousel_Slider_Admin' ) ):
|
|
191 |
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/video-carousel.php';
|
192 |
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/hero-banner-slider.php';
|
193 |
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/images-settings.php';
|
194 |
-
|
195 |
-
// require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/navigation.php';
|
196 |
-
// require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/autoplay.php';
|
197 |
-
// require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/responsive.php';
|
198 |
}
|
199 |
|
200 |
/**
|
201 |
* Save custom meta box
|
202 |
*
|
203 |
-
* @method save_meta_box
|
204 |
* @param int $post_id The post ID
|
205 |
*/
|
206 |
public function save_meta_box( $post_id ) {
|
@@ -353,8 +366,9 @@ if ( ! class_exists( 'Carousel_Slider_Admin' ) ):
|
|
353 |
$slider_link_url = isset( $attachment['carousel_slider_link_url'] ) ? $attachment['carousel_slider_link_url'] : null;
|
354 |
|
355 |
if ( filter_var( $slider_link_url, FILTER_VALIDATE_URL ) ) {
|
356 |
-
|
357 |
update_post_meta( $post['ID'], '_carousel_slider_link_url', esc_url_raw( $slider_link_url ) );
|
|
|
|
|
358 |
}
|
359 |
|
360 |
return $post;
|
@@ -419,6 +433,11 @@ if ( ! class_exists( 'Carousel_Slider_Admin' ) ):
|
|
419 |
update_post_meta( $post_id, '_content_slider', $_slides );
|
420 |
}
|
421 |
|
|
|
|
|
|
|
|
|
|
|
422 |
private function update_content_settings( $post_id ) {
|
423 |
$setting = $_POST['content_settings'];
|
424 |
$_settings = array(
|
@@ -435,7 +454,6 @@ if ( ! class_exists( 'Carousel_Slider_Admin' ) ):
|
|
435 |
update_post_meta( $post_id, '_content_slider_settings', $_settings );
|
436 |
}
|
437 |
}
|
438 |
-
|
439 |
-
endif;
|
440 |
|
441 |
Carousel_Slider_Admin::init();
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
+
if ( ! class_exists( 'Carousel_Slider_Admin' ) ) {
|
8 |
|
9 |
class Carousel_Slider_Admin {
|
10 |
|
11 |
+
/**
|
12 |
+
* @var Carousel_Slider_Form
|
13 |
+
*/
|
14 |
private $form;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* The instance of the class
|
18 |
+
*
|
19 |
+
* @var self
|
20 |
+
*/
|
21 |
protected static $instance = null;
|
22 |
|
23 |
/**
|
110 |
return $actions;
|
111 |
}
|
112 |
|
113 |
+
$view_url = add_query_arg( array(
|
114 |
+
'carousel_slider_preview' => true,
|
115 |
+
'carousel_slider_iframe' => true,
|
116 |
+
'slider_id' => $post->ID,
|
117 |
+
), site_url( '/' ) );
|
118 |
+
$actions['view'] = '<a href="' . $view_url . '" target="_blank">' . esc_html__( 'Preview', 'carousel-slider' ) . '</a>';
|
119 |
+
|
120 |
unset( $actions['inline hide-if-no-js'] );
|
121 |
|
122 |
return $actions;
|
125 |
/**
|
126 |
* Customize Carousel slider list table head
|
127 |
*
|
128 |
+
* @return array A list of column headers.
|
129 |
*/
|
130 |
public function columns_head() {
|
131 |
|
141 |
}
|
142 |
|
143 |
/**
|
144 |
+
* Generate carousel slider list table content for each custom column
|
145 |
*
|
146 |
+
* @param string $column_name The name of the column to display.
|
147 |
+
* @param int $post_id The current post ID.
|
148 |
*/
|
149 |
+
public function columns_content( $column_name, $post_id ) {
|
150 |
$slide_types = carousel_slider_slide_type( false );
|
151 |
+
switch ( $column_name ) {
|
152 |
|
153 |
case 'usage':
|
154 |
?>
|
155 |
+
<label class="screen-reader-text" for="carousel_slider_usage_<?php echo $post_id; ?>">Copy
|
156 |
+
shortcode</label>
|
157 |
<input
|
158 |
+
id="carousel_slider_usage_<?php echo $post_id; ?>"
|
159 |
type="text"
|
160 |
onmousedown="this.clicked = 1;"
|
161 |
onfocus="if (!this.clicked) this.select(); else this.clicked = 2;"
|
167 |
break;
|
168 |
|
169 |
case 'slide_type':
|
170 |
+
$slide_type = get_post_meta( $post_id, '_slide_type', true );
|
171 |
echo isset( $slide_types[ $slide_type ] ) ? esc_attr( $slide_types[ $slide_type ] ) : '';
|
172 |
|
173 |
break;
|
209 |
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/video-carousel.php';
|
210 |
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/hero-banner-slider.php';
|
211 |
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/images-settings.php';
|
|
|
|
|
|
|
|
|
212 |
}
|
213 |
|
214 |
/**
|
215 |
* Save custom meta box
|
216 |
*
|
|
|
217 |
* @param int $post_id The post ID
|
218 |
*/
|
219 |
public function save_meta_box( $post_id ) {
|
366 |
$slider_link_url = isset( $attachment['carousel_slider_link_url'] ) ? $attachment['carousel_slider_link_url'] : null;
|
367 |
|
368 |
if ( filter_var( $slider_link_url, FILTER_VALIDATE_URL ) ) {
|
|
|
369 |
update_post_meta( $post['ID'], '_carousel_slider_link_url', esc_url_raw( $slider_link_url ) );
|
370 |
+
} else {
|
371 |
+
delete_post_meta( $post['ID'], '_carousel_slider_link_url' );
|
372 |
}
|
373 |
|
374 |
return $post;
|
433 |
update_post_meta( $post_id, '_content_slider', $_slides );
|
434 |
}
|
435 |
|
436 |
+
/**
|
437 |
+
* Update hero carousel settings
|
438 |
+
*
|
439 |
+
* @param int $post_id post id
|
440 |
+
*/
|
441 |
private function update_content_settings( $post_id ) {
|
442 |
$setting = $_POST['content_settings'];
|
443 |
$_settings = array(
|
454 |
update_post_meta( $post_id, '_content_slider_settings', $_settings );
|
455 |
}
|
456 |
}
|
457 |
+
}
|
|
|
458 |
|
459 |
Carousel_Slider_Admin::init();
|
includes/class-carousel-slider-credit.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Credit' ) ):
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Credit' ) ):
|
includes/class-carousel-slider-documentation.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Documentation' ) ):
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Documentation' ) ):
|
includes/class-carousel-slider-form.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Form' ) ) {
|
@@ -334,6 +334,9 @@ if ( ! class_exists( 'Carousel_Slider_Form' ) ) {
|
|
334 |
$terms = get_terms( $taxonomy );
|
335 |
}
|
336 |
|
|
|
|
|
|
|
337 |
|
338 |
echo $this->field_before( $args );
|
339 |
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Form' ) ) {
|
334 |
$terms = get_terms( $taxonomy );
|
335 |
}
|
336 |
|
337 |
+
if ( is_wp_error( $terms ) ) {
|
338 |
+
$terms = array();
|
339 |
+
}
|
340 |
|
341 |
echo $this->field_before( $args );
|
342 |
|
includes/class-carousel-slider-gutenberg-block.php
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
+
}
|
6 |
+
|
7 |
+
if ( ! class_exists( 'Carousel_Slider_Gutenberg_Block' ) ) {
|
8 |
+
|
9 |
+
class Carousel_Slider_Gutenberg_Block {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* The instance of the class
|
13 |
+
*
|
14 |
+
* @var self
|
15 |
+
*/
|
16 |
+
protected static $instance;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Ensures only one instance of this class is loaded or can be loaded.
|
20 |
+
*
|
21 |
+
* @return self
|
22 |
+
*/
|
23 |
+
public static function init() {
|
24 |
+
if ( is_null( self::$instance ) ) {
|
25 |
+
self::$instance = new self();
|
26 |
+
|
27 |
+
add_action( 'init', array( self::$instance, 'gutenberg_block' ) );
|
28 |
+
}
|
29 |
+
|
30 |
+
return self::$instance;
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Register gutenberg block
|
35 |
+
*/
|
36 |
+
public function gutenberg_block() {
|
37 |
+
if ( ! function_exists( 'register_block_type' ) ) {
|
38 |
+
return;
|
39 |
+
}
|
40 |
+
wp_register_script( 'carousel-slider-gutenberg-block',
|
41 |
+
CAROUSEL_SLIDER_ASSETS . '/js/gutenberg-block.js',
|
42 |
+
array( 'underscore', 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor', 'wp-i18n' )
|
43 |
+
);
|
44 |
+
wp_register_style( 'carousel-slider-gutenberg-style',
|
45 |
+
CAROUSEL_SLIDER_ASSETS . '/css/gutenberg-block.css',
|
46 |
+
array( 'wp-edit-blocks' )
|
47 |
+
);
|
48 |
+
wp_localize_script( 'carousel-slider-gutenberg-block',
|
49 |
+
'carousel_slider_gutenberg_block', $this->block()
|
50 |
+
);
|
51 |
+
|
52 |
+
register_block_type( 'carousel-slider/slider', array(
|
53 |
+
'editor_script' => 'carousel-slider-gutenberg-block',
|
54 |
+
'editor_style' => 'carousel-slider-gutenberg-style',
|
55 |
+
) );
|
56 |
+
}
|
57 |
+
|
58 |
+
private function block() {
|
59 |
+
$_sliders = get_posts( array(
|
60 |
+
'posts_per_page' => - 1,
|
61 |
+
'orderby' => 'date',
|
62 |
+
'order' => 'DESC',
|
63 |
+
'post_type' => 'carousels',
|
64 |
+
'post_status' => 'publish',
|
65 |
+
) );
|
66 |
+
$sliders = array();
|
67 |
+
foreach ( $_sliders as $form ) {
|
68 |
+
if ( ! $form instanceof \WP_Post ) {
|
69 |
+
continue;
|
70 |
+
}
|
71 |
+
$sliders[] = array(
|
72 |
+
'value' => absint( $form->ID ),
|
73 |
+
'label' => esc_attr( $form->post_title ),
|
74 |
+
);
|
75 |
+
}
|
76 |
+
|
77 |
+
return array(
|
78 |
+
'sliders' => $sliders,
|
79 |
+
'site_url' => site_url(),
|
80 |
+
'block_logo' => CAROUSEL_SLIDER_ASSETS . '/img/logo.svg',
|
81 |
+
'block_title' => __( 'Carousel Slider', 'carousel-slider' ),
|
82 |
+
'select_slider' => __( 'Select a Slider', 'carousel-slider' ),
|
83 |
+
'selected_slider' => __( 'Current Selected Slider', 'carousel-slider' ),
|
84 |
+
'filter_slider' => __( 'Type to filter sliders', 'carousel-slider' ),
|
85 |
+
);
|
86 |
+
}
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
Carousel_Slider_Gutenberg_Block::init();
|
includes/class-carousel-slider-hero-carousel.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Hero_Carousel' ) ):
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Hero_Carousel' ) ):
|
includes/class-carousel-slider-i18n.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
/**
|
7 |
* Define the internationalization functionality.
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
/**
|
7 |
* Define the internationalization functionality.
|
includes/class-carousel-slider-meta-box.php
CHANGED
@@ -1,15 +1,30 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Meta_Box' ) ):
|
8 |
|
9 |
class Carousel_Slider_Meta_Box {
|
10 |
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
private $form;
|
14 |
|
15 |
/**
|
@@ -26,6 +41,7 @@ if ( ! class_exists( 'Carousel_Slider_Meta_Box' ) ):
|
|
26 |
}
|
27 |
|
28 |
public function __construct() {
|
|
|
29 |
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
|
30 |
}
|
31 |
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Meta_Box' ) ):
|
8 |
|
9 |
class Carousel_Slider_Meta_Box {
|
10 |
|
11 |
+
/**
|
12 |
+
* The instance of the class
|
13 |
+
*
|
14 |
+
* @var self
|
15 |
+
*/
|
16 |
+
private static $instance = null;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Post type
|
20 |
+
*
|
21 |
+
* @var string
|
22 |
+
*/
|
23 |
+
private $post_type;
|
24 |
+
|
25 |
+
/**
|
26 |
+
* @var Carousel_Slider_Form
|
27 |
+
*/
|
28 |
private $form;
|
29 |
|
30 |
/**
|
41 |
}
|
42 |
|
43 |
public function __construct() {
|
44 |
+
$this->post_type = CAROUSEL_SLIDER_POST_TYPE;
|
45 |
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
|
46 |
}
|
47 |
|
includes/class-carousel-slider-preview.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
+
}
|
6 |
+
|
7 |
+
if ( ! class_exists( 'Carousel_Slider_Preview' ) ) {
|
8 |
+
|
9 |
+
class Carousel_Slider_Preview {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* The instance of the class
|
13 |
+
*
|
14 |
+
* @var self
|
15 |
+
*/
|
16 |
+
protected static $instance;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Ensures only one instance of this class is loaded or can be loaded.
|
20 |
+
*
|
21 |
+
* @return self
|
22 |
+
*/
|
23 |
+
public static function init() {
|
24 |
+
if ( is_null( self::$instance ) ) {
|
25 |
+
self::$instance = new self();
|
26 |
+
|
27 |
+
add_action( 'template_include', array( self::$instance, 'template_include' ) );
|
28 |
+
}
|
29 |
+
|
30 |
+
return self::$instance;
|
31 |
+
}
|
32 |
+
|
33 |
+
public function template_include( $template ) {
|
34 |
+
if ( isset( $_GET['carousel_slider_preview'], $_GET['carousel_slider_iframe'], $_GET['slider_id'] ) ) {
|
35 |
+
if ( current_user_can( 'edit_pages' ) ) {
|
36 |
+
$template = CAROUSEL_SLIDER_TEMPLATES . '/public/preview-slider.php';
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
return $template;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
}
|
44 |
+
|
45 |
+
Carousel_Slider_Preview::init();
|
includes/class-carousel-slider-product.php
CHANGED
@@ -18,24 +18,42 @@
|
|
18 |
* @method products_by_tags()
|
19 |
*/
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
die;
|
24 |
}
|
25 |
|
26 |
-
if ( ! class_exists( 'Carousel_Slider_Product' ) )
|
27 |
|
28 |
class Carousel_Slider_Product {
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
/**
|
31 |
* Product carousel quick view
|
32 |
*/
|
33 |
public static function init() {
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
-
|
38 |
-
add_action( 'wp_ajax_nopriv_carousel_slider_quick_view', array( __CLASS__, 'quick_view' ) );
|
39 |
}
|
40 |
|
41 |
/**
|
@@ -151,7 +169,7 @@ if ( ! class_exists( 'Carousel_Slider_Product' ) ):
|
|
151 |
<div class="description">
|
152 |
<?php
|
153 |
echo '<div style="clear: both;"></div>';
|
154 |
-
echo apply_filters( 'woocommerce_short_description', $product->
|
155 |
?>
|
156 |
</div>
|
157 |
|
@@ -517,8 +535,6 @@ if ( ! class_exists( 'Carousel_Slider_Product' ) ):
|
|
517 |
return get_posts( $args );
|
518 |
}
|
519 |
}
|
520 |
-
|
521 |
-
|
522 |
-
endif;
|
523 |
|
524 |
Carousel_Slider_Product::init();
|
18 |
* @method products_by_tags()
|
19 |
*/
|
20 |
|
21 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
22 |
+
die; // If this file is called directly, abort.
|
|
|
23 |
}
|
24 |
|
25 |
+
if ( ! class_exists( 'Carousel_Slider_Product' ) ) {
|
26 |
|
27 |
class Carousel_Slider_Product {
|
28 |
|
29 |
+
/**
|
30 |
+
* The instance of the class
|
31 |
+
*
|
32 |
+
* @var self
|
33 |
+
*/
|
34 |
+
private static $instance;
|
35 |
+
|
36 |
/**
|
37 |
* Product carousel quick view
|
38 |
*/
|
39 |
public static function init() {
|
40 |
+
if ( is_null( self::$instance ) ) {
|
41 |
+
self::$instance = new self();
|
42 |
+
|
43 |
+
add_action( 'carousel_slider_after_shop_loop_item', array(
|
44 |
+
self::$instance,
|
45 |
+
'quick_view_button'
|
46 |
+
), 10, 3 );
|
47 |
+
add_action( 'carousel_slider_after_shop_loop_item', array(
|
48 |
+
self::$instance,
|
49 |
+
'wish_list_button'
|
50 |
+
), 12, 3 );
|
51 |
+
|
52 |
+
add_action( 'wp_ajax_carousel_slider_quick_view', array( self::$instance, 'quick_view' ) );
|
53 |
+
add_action( 'wp_ajax_nopriv_carousel_slider_quick_view', array( self::$instance, 'quick_view' ) );
|
54 |
+
}
|
55 |
|
56 |
+
return self::$instance;
|
|
|
57 |
}
|
58 |
|
59 |
/**
|
169 |
<div class="description">
|
170 |
<?php
|
171 |
echo '<div style="clear: both;"></div>';
|
172 |
+
echo apply_filters( 'woocommerce_short_description', $product->get_description() );
|
173 |
?>
|
174 |
</div>
|
175 |
|
535 |
return get_posts( $args );
|
536 |
}
|
537 |
}
|
538 |
+
}
|
|
|
|
|
539 |
|
540 |
Carousel_Slider_Product::init();
|
includes/class-carousel-slider-script.php
CHANGED
@@ -1,14 +1,19 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Script' ) )
|
8 |
|
9 |
class Carousel_Slider_Script {
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
/**
|
14 |
* Ensures only one instance of this class is loaded or can be loaded.
|
@@ -18,25 +23,23 @@ if ( ! class_exists( 'Carousel_Slider_Script' ) ):
|
|
18 |
public static function init() {
|
19 |
if ( is_null( self::$instance ) ) {
|
20 |
self::$instance = new self();
|
21 |
-
}
|
22 |
|
23 |
-
|
24 |
-
|
25 |
|
26 |
-
|
27 |
-
add_action( 'wp_loaded', array( $this, 'register_styles' ) );
|
28 |
-
add_action( 'wp_loaded', array( $this, 'register_scripts' ) );
|
29 |
|
30 |
-
|
31 |
-
|
|
|
32 |
|
33 |
-
|
34 |
-
add_action( 'admin_footer', array( $this, 'gallery_url_template' ), 5 );
|
35 |
}
|
36 |
|
|
|
|
|
|
|
37 |
public function register_styles() {
|
38 |
-
$suffix = ( defined( "SCRIPT_DEBUG" ) && SCRIPT_DEBUG ) ? '' : '.min';
|
39 |
-
|
40 |
$styles = array(
|
41 |
'carousel-slider' => array(
|
42 |
'src' => CAROUSEL_SLIDER_ASSETS . '/css/style.css',
|
@@ -57,6 +60,9 @@ if ( ! class_exists( 'Carousel_Slider_Script' ) ):
|
|
57 |
}
|
58 |
}
|
59 |
|
|
|
|
|
|
|
60 |
public function register_scripts() {
|
61 |
$suffix = ( defined( "SCRIPT_DEBUG" ) && SCRIPT_DEBUG ) ? '' : '.min';
|
62 |
|
@@ -97,7 +103,7 @@ if ( ! class_exists( 'Carousel_Slider_Script' ) ):
|
|
97 |
'owl-carousel' => array(
|
98 |
'src' => CAROUSEL_SLIDER_ASSETS . '/lib/owl-carousel/owl.carousel' . $suffix . '.js',
|
99 |
'dependency' => array( 'jquery' ),
|
100 |
-
'version' => '2.
|
101 |
'in_footer' => true,
|
102 |
),
|
103 |
'magnific-popup' => array(
|
@@ -106,6 +112,12 @@ if ( ! class_exists( 'Carousel_Slider_Script' ) ):
|
|
106 |
'version' => '1.1.0',
|
107 |
'in_footer' => true,
|
108 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
);
|
110 |
|
111 |
foreach ( $scripts as $handle => $script ) {
|
@@ -123,7 +135,7 @@ if ( ! class_exists( 'Carousel_Slider_Script' ) ):
|
|
123 |
}
|
124 |
|
125 |
wp_enqueue_style( 'carousel-slider' );
|
126 |
-
wp_enqueue_script( '
|
127 |
}
|
128 |
|
129 |
/**
|
@@ -146,98 +158,6 @@ if ( ! class_exists( 'Carousel_Slider_Script' ) ):
|
|
146 |
wp_enqueue_script( 'carousel-slider-admin' );
|
147 |
}
|
148 |
|
149 |
-
/**
|
150 |
-
* Load front end inline script
|
151 |
-
*/
|
152 |
-
public function inline_script() {
|
153 |
-
if ( ! $this->should_load_scripts() ) {
|
154 |
-
return;
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
<script type="text/javascript">
|
158 |
-
(function ($) {
|
159 |
-
'use strict';
|
160 |
-
|
161 |
-
$('body').find('.carousel-slider').each(function () {
|
162 |
-
var _this = $(this);
|
163 |
-
var autoWidth = _this.data('auto-width');
|
164 |
-
var stagePadding = parseInt(_this.data('stage-padding'));
|
165 |
-
stagePadding = stagePadding > 0 ? stagePadding : 0;
|
166 |
-
|
167 |
-
if (jQuery().owlCarousel) {
|
168 |
-
_this.owlCarousel({
|
169 |
-
stagePadding: stagePadding,
|
170 |
-
nav: _this.data('nav'),
|
171 |
-
dots: _this.data('dots'),
|
172 |
-
margin: _this.data('margin'),
|
173 |
-
loop: _this.data('loop'),
|
174 |
-
autoplay: _this.data('autoplay'),
|
175 |
-
autoplayTimeout: _this.data('autoplay-timeout'),
|
176 |
-
autoplaySpeed: _this.data('autoplay-speed'),
|
177 |
-
autoplayHoverPause: _this.data('autoplay-hover-pause'),
|
178 |
-
slideBy: _this.data('slide-by'),
|
179 |
-
lazyLoad: _this.data('lazy-load'),
|
180 |
-
autoWidth: autoWidth,
|
181 |
-
navText: [
|
182 |
-
'<svg class="carousel-slider-nav-icon" viewBox="0 0 20 20"><path d="M14 5l-5 5 5 5-1 2-7-7 7-7z"></path></use></svg>',
|
183 |
-
'<svg class="carousel-slider-nav-icon" viewBox="0 0 20 20"><path d="M6 15l5-5-5-5 1-2 7 7-7 7z"></path></svg>'
|
184 |
-
],
|
185 |
-
responsive: {
|
186 |
-
320: {items: _this.data('colums-mobile')},
|
187 |
-
600: {items: _this.data('colums-small-tablet')},
|
188 |
-
768: {items: _this.data('colums-tablet')},
|
189 |
-
993: {items: _this.data('colums-small-desktop')},
|
190 |
-
1200: {items: _this.data('colums-desktop')},
|
191 |
-
1921: {items: _this.data('colums')}
|
192 |
-
}
|
193 |
-
});
|
194 |
-
|
195 |
-
if ('hero-banner-slider' === _this.data('slide-type')) {
|
196 |
-
var animation = _this.data('animation');
|
197 |
-
if (animation.length) {
|
198 |
-
_this.on('change.owl.carousel', function () {
|
199 |
-
var sliderContent = _this.find('.carousel-slider-hero__cell__content');
|
200 |
-
sliderContent.removeClass('animated' + ' ' + animation).hide();
|
201 |
-
});
|
202 |
-
_this.on('changed.owl.carousel', function (e) {
|
203 |
-
setTimeout(function () {
|
204 |
-
var current = $(e.target).find('.carousel-slider-hero__cell__content').eq(e.item.index);
|
205 |
-
current.show().addClass('animated' + ' ' + animation);
|
206 |
-
}, _this.data('autoplay-speed'));
|
207 |
-
});
|
208 |
-
}
|
209 |
-
}
|
210 |
-
}
|
211 |
-
|
212 |
-
if (jQuery().magnificPopup) {
|
213 |
-
if (_this.data('slide-type') === 'product-carousel') {
|
214 |
-
$(this).find('.magnific-popup').magnificPopup({
|
215 |
-
type: 'ajax'
|
216 |
-
});
|
217 |
-
} else if ('video-carousel' === _this.data('slide-type')) {
|
218 |
-
$(this).find('.magnific-popup').magnificPopup({
|
219 |
-
type: 'iframe'
|
220 |
-
});
|
221 |
-
} else {
|
222 |
-
$(this).find('.magnific-popup').magnificPopup({
|
223 |
-
type: 'image',
|
224 |
-
gallery: {
|
225 |
-
enabled: true
|
226 |
-
},
|
227 |
-
zoom: {
|
228 |
-
enabled: true,
|
229 |
-
duration: 300,
|
230 |
-
easing: 'ease-in-out'
|
231 |
-
}
|
232 |
-
});
|
233 |
-
}
|
234 |
-
}
|
235 |
-
});
|
236 |
-
})(jQuery);
|
237 |
-
</script>
|
238 |
-
<?php
|
239 |
-
}
|
240 |
-
|
241 |
/**
|
242 |
* Carousel slider gallery url template
|
243 |
*
|
@@ -295,7 +215,6 @@ if ( ! class_exists( 'Carousel_Slider_Script' ) ):
|
|
295 |
return apply_filters( 'carousel_slider_load_scripts', $load_scripts );
|
296 |
}
|
297 |
}
|
298 |
-
|
299 |
-
endif;
|
300 |
|
301 |
Carousel_Slider_Script::init();
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
+
if ( ! class_exists( 'Carousel_Slider_Script' ) ) {
|
8 |
|
9 |
class Carousel_Slider_Script {
|
10 |
|
11 |
+
/**
|
12 |
+
* The instance of the class
|
13 |
+
*
|
14 |
+
* @var self
|
15 |
+
*/
|
16 |
+
private static $instance = null;
|
17 |
|
18 |
/**
|
19 |
* Ensures only one instance of this class is loaded or can be loaded.
|
23 |
public static function init() {
|
24 |
if ( is_null( self::$instance ) ) {
|
25 |
self::$instance = new self();
|
|
|
26 |
|
27 |
+
add_action( 'wp_loaded', array( self::$instance, 'register_styles' ) );
|
28 |
+
add_action( 'wp_loaded', array( self::$instance, 'register_scripts' ) );
|
29 |
|
30 |
+
add_action( 'wp_enqueue_scripts', array( self::$instance, 'frontend_scripts' ), 15 );
|
|
|
|
|
31 |
|
32 |
+
add_action( 'admin_enqueue_scripts', array( self::$instance, 'admin_scripts' ), 10 );
|
33 |
+
add_action( 'admin_footer', array( self::$instance, 'gallery_url_template' ), 5 );
|
34 |
+
}
|
35 |
|
36 |
+
return self::$instance;
|
|
|
37 |
}
|
38 |
|
39 |
+
/**
|
40 |
+
* Register styles
|
41 |
+
*/
|
42 |
public function register_styles() {
|
|
|
|
|
43 |
$styles = array(
|
44 |
'carousel-slider' => array(
|
45 |
'src' => CAROUSEL_SLIDER_ASSETS . '/css/style.css',
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
/**
|
64 |
+
* Register scripts
|
65 |
+
*/
|
66 |
public function register_scripts() {
|
67 |
$suffix = ( defined( "SCRIPT_DEBUG" ) && SCRIPT_DEBUG ) ? '' : '.min';
|
68 |
|
103 |
'owl-carousel' => array(
|
104 |
'src' => CAROUSEL_SLIDER_ASSETS . '/lib/owl-carousel/owl.carousel' . $suffix . '.js',
|
105 |
'dependency' => array( 'jquery' ),
|
106 |
+
'version' => '2.3.4',
|
107 |
'in_footer' => true,
|
108 |
),
|
109 |
'magnific-popup' => array(
|
112 |
'version' => '1.1.0',
|
113 |
'in_footer' => true,
|
114 |
),
|
115 |
+
'carousel-slider' => array(
|
116 |
+
'src' => CAROUSEL_SLIDER_ASSETS . '/js/script' . $suffix . '.js',
|
117 |
+
'dependency' => array( 'jquery', 'owl-carousel', 'magnific-popup' ),
|
118 |
+
'version' => CAROUSEL_SLIDER_VERSION,
|
119 |
+
'in_footer' => true,
|
120 |
+
),
|
121 |
);
|
122 |
|
123 |
foreach ( $scripts as $handle => $script ) {
|
135 |
}
|
136 |
|
137 |
wp_enqueue_style( 'carousel-slider' );
|
138 |
+
wp_enqueue_script( 'carousel-slider' );
|
139 |
}
|
140 |
|
141 |
/**
|
158 |
wp_enqueue_script( 'carousel-slider-admin' );
|
159 |
}
|
160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
/**
|
162 |
* Carousel slider gallery url template
|
163 |
*
|
215 |
return apply_filters( 'carousel_slider_load_scripts', $load_scripts );
|
216 |
}
|
217 |
}
|
218 |
+
}
|
|
|
219 |
|
220 |
Carousel_Slider_Script::init();
|
includes/class-carousel-slider-vc-element.php
CHANGED
@@ -1,36 +1,35 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Visual_Composer_Element' ) )
|
8 |
|
9 |
class Carousel_Slider_Visual_Composer_Element {
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
/**
|
14 |
* Ensures only one instance of this class is loaded or can be loaded.
|
15 |
*
|
16 |
-
* @return
|
17 |
*/
|
18 |
public static function init() {
|
19 |
if ( is_null( self::$instance ) ) {
|
20 |
self::$instance = new self();
|
|
|
|
|
21 |
}
|
22 |
|
23 |
return self::$instance;
|
24 |
}
|
25 |
|
26 |
-
/**
|
27 |
-
* CarouselSliderVisualComposerElement constructor.
|
28 |
-
*/
|
29 |
-
public function __construct() {
|
30 |
-
// We safely integrate with VC with this hook
|
31 |
-
add_action( 'init', array( $this, 'integrate_with_vc' ) );
|
32 |
-
}
|
33 |
-
|
34 |
/**
|
35 |
* Integrate with visual composer
|
36 |
*/
|
@@ -85,7 +84,6 @@ if ( ! class_exists( 'Carousel_Slider_Visual_Composer_Element' ) ):
|
|
85 |
return $result;
|
86 |
}
|
87 |
}
|
88 |
-
|
89 |
-
endif;
|
90 |
|
91 |
Carousel_Slider_Visual_Composer_Element::init();
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
+
if ( ! class_exists( 'Carousel_Slider_Visual_Composer_Element' ) ) {
|
8 |
|
9 |
class Carousel_Slider_Visual_Composer_Element {
|
10 |
|
11 |
+
/**
|
12 |
+
* The instance of the class
|
13 |
+
*
|
14 |
+
* @var self
|
15 |
+
*/
|
16 |
+
private static $instance = null;
|
17 |
|
18 |
/**
|
19 |
* Ensures only one instance of this class is loaded or can be loaded.
|
20 |
*
|
21 |
+
* @return self
|
22 |
*/
|
23 |
public static function init() {
|
24 |
if ( is_null( self::$instance ) ) {
|
25 |
self::$instance = new self();
|
26 |
+
|
27 |
+
add_action( 'init', array( self::$instance, 'integrate_with_vc' ) );
|
28 |
}
|
29 |
|
30 |
return self::$instance;
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
/**
|
34 |
* Integrate with visual composer
|
35 |
*/
|
84 |
return $result;
|
85 |
}
|
86 |
}
|
87 |
+
}
|
|
|
88 |
|
89 |
Carousel_Slider_Visual_Composer_Element::init();
|
includes/functions-carousel-slider.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
if ( ! function_exists( 'carousel_slider_is_url' ) ) {
|
@@ -263,17 +263,19 @@ if ( ! function_exists( 'carousel_slider_products' ) ) {
|
|
263 |
* @return array
|
264 |
*/
|
265 |
function carousel_slider_products( $carousel_id ) {
|
266 |
-
$id
|
267 |
-
$per_page
|
268 |
-
$query_type
|
269 |
-
$query_type
|
|
|
|
|
270 |
$product_query = get_post_meta( $id, '_product_query', true );
|
271 |
|
272 |
$product_carousel = new Carousel_Slider_Product();
|
273 |
|
274 |
$args = array( 'posts_per_page' => $per_page );
|
275 |
|
276 |
-
if ( $query_type == '
|
277 |
|
278 |
// Get features products
|
279 |
if ( $product_query == 'featured' ) {
|
@@ -391,16 +393,6 @@ if ( ! function_exists( 'carousel_slider_inline_style' ) ) {
|
|
391 |
}
|
392 |
";
|
393 |
|
394 |
-
// Post Carousel Slider
|
395 |
-
if ( $slide_type == 'post-carousel' ) {
|
396 |
-
|
397 |
-
echo "
|
398 |
-
#id-{$id} .carousel-slider__post {
|
399 |
-
height: {$_post_height}px
|
400 |
-
}
|
401 |
-
";
|
402 |
-
}
|
403 |
-
|
404 |
// Product Carousel Slider
|
405 |
if ( $slide_type == 'product-carousel' ) {
|
406 |
echo "
|
@@ -417,7 +409,7 @@ if ( ! function_exists( 'carousel_slider_inline_style' ) ) {
|
|
417 |
color: {$_product_btn_text_color};
|
418 |
}
|
419 |
|
420 |
-
#id-{$id} .carousel-slider__product .star-rating {
|
421 |
color: {$_product_btn_bg_color};
|
422 |
}
|
423 |
";
|
@@ -426,6 +418,25 @@ if ( ! function_exists( 'carousel_slider_inline_style' ) ) {
|
|
426 |
// Content Carousel
|
427 |
if ( $slide_type == 'hero-banner-slider' && $content_sliders ) {
|
428 |
foreach ( $content_sliders as $slide_id => $slide ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
429 |
if ( isset( $slide['link_type'] ) && ( $slide['link_type'] == 'button' ) ) {
|
430 |
|
431 |
$_btn_1_type = ! empty( $slide['button_one_type'] ) ? esc_attr( $slide['button_one_type'] ) : 'normal';
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
if ( ! function_exists( 'carousel_slider_is_url' ) ) {
|
263 |
* @return array
|
264 |
*/
|
265 |
function carousel_slider_products( $carousel_id ) {
|
266 |
+
$id = $carousel_id;
|
267 |
+
$per_page = intval( get_post_meta( $id, '_products_per_page', true ) );
|
268 |
+
$query_type = get_post_meta( $id, '_product_query_type', true );
|
269 |
+
$query_type = empty( $query_type ) ? 'query_product' : $query_type;
|
270 |
+
// Type mistake
|
271 |
+
$query_type = ( 'query_porduct' == $query_type ) ? 'query_product' : $query_type;
|
272 |
$product_query = get_post_meta( $id, '_product_query', true );
|
273 |
|
274 |
$product_carousel = new Carousel_Slider_Product();
|
275 |
|
276 |
$args = array( 'posts_per_page' => $per_page );
|
277 |
|
278 |
+
if ( $query_type == 'query_product' ) {
|
279 |
|
280 |
// Get features products
|
281 |
if ( $product_query == 'featured' ) {
|
393 |
}
|
394 |
";
|
395 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
// Product Carousel Slider
|
397 |
if ( $slide_type == 'product-carousel' ) {
|
398 |
echo "
|
409 |
color: {$_product_btn_text_color};
|
410 |
}
|
411 |
|
412 |
+
#id-{$id} .carousel-slider__product .star-rating span:before {
|
413 |
color: {$_product_btn_bg_color};
|
414 |
}
|
415 |
";
|
418 |
// Content Carousel
|
419 |
if ( $slide_type == 'hero-banner-slider' && $content_sliders ) {
|
420 |
foreach ( $content_sliders as $slide_id => $slide ) {
|
421 |
+
// Title Style
|
422 |
+
$heading_font_size = ! empty( $slide['heading_font_size'] ) ? esc_attr( $slide['heading_font_size'] ) : 40;
|
423 |
+
$heading_gutter = ! empty( $slide['heading_gutter'] ) ? esc_attr( $slide['heading_gutter'] ) : '30px';
|
424 |
+
$heading_color = ! empty( $slide['heading_color'] ) ? esc_attr( $slide['heading_color'] ) : '#ffffff';
|
425 |
+
echo "#id-{$id} .hero__cell-{$slide_id} .carousel-slider-hero__cell__heading {
|
426 |
+
font-size: {$heading_font_size}px;
|
427 |
+
margin-bottom: {$heading_gutter};
|
428 |
+
color: {$heading_color};
|
429 |
+
}";
|
430 |
+
// Description Style
|
431 |
+
$description_font_size = ! empty( $slide['description_font_size'] ) ? esc_attr( $slide['description_font_size'] ) : 20;
|
432 |
+
$description_gutter = ! empty( $slide['description_gutter'] ) ? esc_attr( $slide['description_gutter'] ) : '30px';
|
433 |
+
$description_color = ! empty( $slide['description_color'] ) ? esc_attr( $slide['description_color'] ) : '#ffffff';
|
434 |
+
echo "#id-{$id} .hero__cell-{$slide_id} .carousel-slider-hero__cell__description{
|
435 |
+
font-size: {$description_font_size}px;
|
436 |
+
margin-bottom: {$description_gutter};
|
437 |
+
color: {$description_color};
|
438 |
+
}";
|
439 |
+
// Button Style
|
440 |
if ( isset( $slide['link_type'] ) && ( $slide['link_type'] == 'button' ) ) {
|
441 |
|
442 |
$_btn_1_type = ! empty( $slide['button_one_type'] ) ? esc_attr( $slide['button_one_type'] ) : 'normal';
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Carousel Slider ===
|
2 |
-
Contributors: sayful
|
3 |
Tags: woocommerce, shortcode, images, carousel, carousel slider, image carousel, product carousel, slider, owl carousel
|
4 |
Requires at least: 4.5
|
5 |
-
Tested up to:
|
6 |
Requires PHP: 5.3
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
@@ -113,6 +113,35 @@ Now you can use the following function at your theme template file replacing `YO
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
= version 1.8.8 - 2018-04-18 =
|
117 |
* Fixed - Roll back to Owl Carousel version 2.2.1 as new version has a bug relating to rewind feature that creates conflict with previous version.
|
118 |
|
1 |
=== Carousel Slider ===
|
2 |
+
Contributors: sayful, stackonet, majeedraza
|
3 |
Tags: woocommerce, shortcode, images, carousel, carousel slider, image carousel, product carousel, slider, owl carousel
|
4 |
Requires at least: 4.5
|
5 |
+
Tested up to: 5.2
|
6 |
Requires PHP: 5.3
|
7 |
+
Stable tag: 1.9.2
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= version 1.9.2 - 2019-05-26 =
|
117 |
+
* Fix - Fix Carousel slider showing hidden products
|
118 |
+
* Tweak - Checked version compatibility with WooCommerce 3.6.*
|
119 |
+
* Tweak - Checked version compatibility with WordPress 5.2.*
|
120 |
+
|
121 |
+
= version 1.9.1 - 2019-05-07 =
|
122 |
+
* Tweak - Add WP_Post class as first params on `carousel_slider_post_read_more` filter hook.
|
123 |
+
|
124 |
+
= version 1.9.0 - 2019-01-20 =
|
125 |
+
* Tweak - Checked version compatibility with WooCommerce 3.5.*
|
126 |
+
* Tweak - Checked version compatibility with WordPress 5.0.*
|
127 |
+
* Tweak - Add Gutenberg block for carousel slider.
|
128 |
+
* Fixed - Hero banner slider heading and description style is not working.
|
129 |
+
* Fixed - Disable magnific popup counter as it show wrong count.
|
130 |
+
* Fixed - Fix "Link to URL" value is not deleting.
|
131 |
+
* Fixed - Post carousel border does not show properly.
|
132 |
+
* Tweak - Update post carousel style.
|
133 |
+
* Tweak - Update product carousel style with equal item width.
|
134 |
+
* Fixed - Product carousel star rating color does not work.
|
135 |
+
* Tweak - Removed "Columns Height" field from post carousel as it no longer required.
|
136 |
+
* Tweak - Slider item equal height for post and product carousel (issue #5)
|
137 |
+
* Dev - Two new filter `carousel_slider_post_read_more` and `carousel_slider_post_excerpt_length` has been added.
|
138 |
+
|
139 |
+
= version 1.8.9 - 2018-07-12 =
|
140 |
+
* Tweak - Update Owl Carousel version to v2.3.4 as fix rewind issue.
|
141 |
+
* Tweak - Transfer inline script to external file so that it should not conflict when combine scripts.
|
142 |
+
* Fixed - PHP notice of terms if WooCommerce is not installed.
|
143 |
+
* Dev - Tested with WooCommerce version 3.4
|
144 |
+
|
145 |
= version 1.8.8 - 2018-04-18 =
|
146 |
* Fixed - Roll back to Owl Carousel version 2.2.1 as new version has a bug relating to rewind feature that creates conflict with previous version.
|
147 |
|
shortcodes/class-carousel-slider-deprecated-shortcode.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Deprecated_Shortcode' ) ):
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Deprecated_Shortcode' ) ):
|
shortcodes/class-carousel-slider-shortcode.php
CHANGED
@@ -1,12 +1,18 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if ( ! defined( '
|
4 |
-
die;
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Shortcode' ) ):
|
8 |
|
9 |
class Carousel_Slider_Shortcode {
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
protected static $instance = null;
|
11 |
|
12 |
/**
|
@@ -88,11 +94,13 @@ if ( ! class_exists( 'Carousel_Slider_Shortcode' ) ):
|
|
88 |
|
89 |
if ( $slide_type == 'product-carousel' ) {
|
90 |
|
91 |
-
$query_type
|
92 |
-
$query_type
|
|
|
|
|
93 |
$product_query = get_post_meta( $id, '_product_query', true );
|
94 |
|
95 |
-
if ( $query_type == '
|
96 |
ob_start();
|
97 |
|
98 |
echo $this->product_categories( $id );
|
@@ -180,8 +188,8 @@ if ( ! class_exists( 'Carousel_Slider_Shortcode' ) ):
|
|
180 |
$class .= ' dots-square';
|
181 |
}
|
182 |
|
183 |
-
$_dot_nav
|
184 |
-
$_nav_button = (get_post_meta( $id, '_nav_button', true ) != 'off');
|
185 |
|
186 |
$options_array = array(
|
187 |
'id' => 'id-' . $id,
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
die; // If this file is called directly, abort.
|
5 |
}
|
6 |
|
7 |
if ( ! class_exists( 'Carousel_Slider_Shortcode' ) ):
|
8 |
|
9 |
class Carousel_Slider_Shortcode {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* The instance of the class
|
13 |
+
*
|
14 |
+
* @var self
|
15 |
+
*/
|
16 |
protected static $instance = null;
|
17 |
|
18 |
/**
|
94 |
|
95 |
if ( $slide_type == 'product-carousel' ) {
|
96 |
|
97 |
+
$query_type = get_post_meta( $id, '_product_query_type', true );
|
98 |
+
$query_type = empty( $query_type ) ? 'query_product' : $query_type;
|
99 |
+
// Type mistake
|
100 |
+
$query_type = ( 'query_porduct' == $query_type ) ? 'query_product' : $query_type;
|
101 |
$product_query = get_post_meta( $id, '_product_query', true );
|
102 |
|
103 |
+
if ( $query_type == 'query_product' && $product_query == 'product_categories_list' ) {
|
104 |
ob_start();
|
105 |
|
106 |
echo $this->product_categories( $id );
|
188 |
$class .= ' dots-square';
|
189 |
}
|
190 |
|
191 |
+
$_dot_nav = ( get_post_meta( $id, '_dot_nav', true ) != 'off' );
|
192 |
+
$_nav_button = ( get_post_meta( $id, '_nav_button', true ) != 'off' );
|
193 |
|
194 |
$options_array = array(
|
195 |
'id' => 'id-' . $id,
|
templates/admin/post-carousel.php
CHANGED
@@ -83,12 +83,6 @@ if ( ! defined( 'WPINC' ) ) {
|
|
83 |
'comment_count' => esc_html__( 'Number of comments', 'carousel-slider' ),
|
84 |
),
|
85 |
) );
|
86 |
-
$this->form->number( array(
|
87 |
-
'id' => '_post_height',
|
88 |
-
'name' => esc_html__( 'Colums Height', 'carousel-slider' ),
|
89 |
-
'desc' => esc_html__( 'Enter colums height for posts carousel in numbers. 450 (px) is perfect when columns width is around 300px or higher. Otherwise you need to change it for perfection.', 'carousel-slider' ),
|
90 |
-
'std' => 450,
|
91 |
-
) );
|
92 |
?>
|
93 |
</div>
|
94 |
</div>
|
83 |
'comment_count' => esc_html__( 'Number of comments', 'carousel-slider' ),
|
84 |
),
|
85 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
?>
|
87 |
</div>
|
88 |
</div>
|
templates/public/hero-banner-slider.php
CHANGED
@@ -35,9 +35,9 @@ if ( empty( $settings['content_animation'] ) ) {
|
|
35 |
$_cell_style .= isset( $settings['slide_height'] ) ? 'height: ' . $settings['slide_height'] . ';' : '';
|
36 |
|
37 |
if ( $_link_type == 'full' && carousel_slider_is_url( $_slide_link ) ) {
|
38 |
-
$html .= '<a class="carousel-slider-hero__cell" style="' . $_cell_style . '" href="' . $_slide_link . '" target="' . $_link_target . '">';
|
39 |
} else {
|
40 |
-
$html .= '<div class="carousel-slider-hero__cell" style="' . $_cell_style . '">';
|
41 |
}
|
42 |
|
43 |
// Slide Background
|
35 |
$_cell_style .= isset( $settings['slide_height'] ) ? 'height: ' . $settings['slide_height'] . ';' : '';
|
36 |
|
37 |
if ( $_link_type == 'full' && carousel_slider_is_url( $_slide_link ) ) {
|
38 |
+
$html .= '<a class="carousel-slider-hero__cell hero__cell-' . $slide_id . '" style="' . $_cell_style . '" href="' . $_slide_link . '" target="' . $_link_target . '">';
|
39 |
} else {
|
40 |
+
$html .= '<div class="carousel-slider-hero__cell hero__cell-' . $slide_id . '" style="' . $_cell_style . '">';
|
41 |
}
|
42 |
|
43 |
// Slide Background
|
templates/public/post-carousel.php
CHANGED
@@ -28,7 +28,9 @@ $_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
|
|
28 |
// Post Thumbnail
|
29 |
$_permalink = esc_url( get_permalink( $post->ID ) );
|
30 |
$_thumb_id = get_post_thumbnail_id( $post->ID );
|
31 |
-
$
|
|
|
|
|
32 |
|
33 |
if ( has_post_thumbnail( $post ) ) {
|
34 |
$image_src = wp_get_attachment_image_src( $_thumb_id, $_image_size );
|
@@ -47,11 +49,13 @@ $_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
|
|
47 |
}
|
48 |
|
49 |
// Post Title
|
50 |
-
$html .= sprintf( '<a class="carousel-slider__post-title" href="%s"><
|
51 |
$html .= '</div>'; // End Post Header
|
52 |
$html .= '<div class="carousel-slider__post-excerpt">' . $_excerpt . '</div>';
|
|
|
|
|
53 |
$html .= '<footer class="carousel-slider__post-meta">';
|
54 |
-
$html .= '<div class="carousel-slider__post-excerpt-overlay"></div>';
|
55 |
$html .= '<div class="carousel-slider__post-publication-meta">';
|
56 |
$html .= '<div class="carousel-slider__post-details-info">';
|
57 |
|
28 |
// Post Thumbnail
|
29 |
$_permalink = esc_url( get_permalink( $post->ID ) );
|
30 |
$_thumb_id = get_post_thumbnail_id( $post->ID );
|
31 |
+
$num_words = apply_filters( 'carousel_slider_post_excerpt_length', 20 );
|
32 |
+
$more_text = apply_filters( 'carousel_slider_post_read_more', ' ...', $post );
|
33 |
+
$_excerpt = wp_trim_words( wp_strip_all_tags( $post->post_content ), $num_words, $more_text );
|
34 |
|
35 |
if ( has_post_thumbnail( $post ) ) {
|
36 |
$image_src = wp_get_attachment_image_src( $_thumb_id, $_image_size );
|
49 |
}
|
50 |
|
51 |
// Post Title
|
52 |
+
$html .= sprintf( '<a class="carousel-slider__post-title" href="%s"><h2>%s</h2></a>', $_permalink, $post->post_title );
|
53 |
$html .= '</div>'; // End Post Header
|
54 |
$html .= '<div class="carousel-slider__post-excerpt">' . $_excerpt . '</div>';
|
55 |
+
|
56 |
+
// Footer
|
57 |
$html .= '<footer class="carousel-slider__post-meta">';
|
58 |
+
// $html .= '<div class="carousel-slider__post-excerpt-overlay"></div>';
|
59 |
$html .= '<div class="carousel-slider__post-publication-meta">';
|
60 |
$html .= '<div class="carousel-slider__post-details-info">';
|
61 |
|
templates/public/preview-slider.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Exit if accessed directly
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
$slider_id = isset( $_GET['slider_id'] ) ? intval( $_GET['slider_id'] ) : 0;
|
7 |
+
add_filter( 'carousel_slider_load_scripts', '__return_true' );
|
8 |
+
?><!DOCTYPE html>
|
9 |
+
<html <?php language_attributes(); ?>>
|
10 |
+
<head>
|
11 |
+
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
12 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
13 |
+
<?php wp_head(); ?>
|
14 |
+
<style type="text/css" media="screen">
|
15 |
+
html {
|
16 |
+
margin-top: 0 !important;
|
17 |
+
}
|
18 |
+
|
19 |
+
* html body {
|
20 |
+
margin-top: 0 !important;
|
21 |
+
}
|
22 |
+
|
23 |
+
#wpadminbar {
|
24 |
+
display: none !important;
|
25 |
+
}
|
26 |
+
|
27 |
+
.carousel-slider-preview-container {
|
28 |
+
max-width: 1024px;
|
29 |
+
margin-left: auto;
|
30 |
+
margin-right: auto;
|
31 |
+
}
|
32 |
+
|
33 |
+
@media screen and ( max-width: 782px ) {
|
34 |
+
html {
|
35 |
+
margin-top: 0 !important;
|
36 |
+
}
|
37 |
+
|
38 |
+
* html body {
|
39 |
+
margin-top: 0 !important;
|
40 |
+
}
|
41 |
+
}
|
42 |
+
</style>
|
43 |
+
</head>
|
44 |
+
<body>
|
45 |
+
<div class="carousel-slider-preview-container">
|
46 |
+
<?php echo do_shortcode( '[carousel_slide id="' . $slider_id . '"]' ); ?>
|
47 |
+
</div>
|
48 |
+
|
49 |
+
<script type="text/javascript">
|
50 |
+
jQuery(document).ready(function () {
|
51 |
+
setTimeout(function () {
|
52 |
+
var frameEl = window.frameElement;
|
53 |
+
// get the form element
|
54 |
+
var height = jQuery('.carousel-slider-preview-container').outerHeight(true);
|
55 |
+
|
56 |
+
if (frameEl) {
|
57 |
+
frameEl.height = height;
|
58 |
+
}
|
59 |
+
}, 500);
|
60 |
+
});
|
61 |
+
</script>
|
62 |
+
<?php wp_footer(); ?>
|
63 |
+
</body>
|
64 |
+
</html>
|
templates/public/product-carousel-2.php
CHANGED
@@ -29,6 +29,10 @@ if ( ! carousel_slider_is_woocommerce_active() ) {
|
|
29 |
setup_postdata( $post );
|
30 |
$product = wc_get_product( $post );
|
31 |
|
|
|
|
|
|
|
|
|
32 |
echo '<div class="product carousel-slider__product">';
|
33 |
|
34 |
do_action( 'carousel_slider_product_loop', $product );
|
29 |
setup_postdata( $post );
|
30 |
$product = wc_get_product( $post );
|
31 |
|
32 |
+
if ( ! $product->is_visible() ) {
|
33 |
+
continue;
|
34 |
+
}
|
35 |
+
|
36 |
echo '<div class="product carousel-slider__product">';
|
37 |
|
38 |
do_action( 'carousel_slider_product_loop', $product );
|
templates/public/product-carousel.php
CHANGED
@@ -39,6 +39,9 @@ $_product_quick_view = get_post_meta( $id, '_product_quick_view', true );
|
|
39 |
<?php foreach ( $posts as $post ): setup_postdata( $post ); ?>
|
40 |
<?php
|
41 |
$product = wc_get_product( $post->ID );
|
|
|
|
|
|
|
42 |
do_action( 'carousel_slider_product_loop', $product, $post );
|
43 |
?>
|
44 |
<div class="product carousel-slider__product">
|
39 |
<?php foreach ( $posts as $post ): setup_postdata( $post ); ?>
|
40 |
<?php
|
41 |
$product = wc_get_product( $post->ID );
|
42 |
+
if ( ! $product->is_visible() ) {
|
43 |
+
continue;
|
44 |
+
}
|
45 |
do_action( 'carousel_slider_product_loop', $product, $post );
|
46 |
?>
|
47 |
<div class="product carousel-slider__product">
|