Version Description
(13-11-2017) = * [*] Fixed issue ie autoplay stop working if you click on a logo - Pause Autoplay On Focus
Download this release
Release Info
Developer | anoopranawat |
Plugin | WP Logo Showcase Responsive Slider |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.8 to 1.3.3
- assets/css/logo-showcase.css +46 -16
- assets/css/slick.css +28 -44
- assets/images/ajax-loader.gif +0 -0
- assets/images/arrow-left.png +0 -0
- assets/images/arrow-right.png +0 -0
- assets/js/slick.min.js +1 -18
- assets/js/wpls-public.js +53 -0
- includes/admin/metabox/wpls-post-setting-metabox.php +48 -0
- includes/class-wpls-script.php +53 -0
- includes/logo-showcase-functions.php +0 -396
- includes/shortcode/wpls-logo-slider.php +149 -0
- includes/wpls-functions.php +84 -0
- includes/wpls-post-types.php +75 -0
- logo-showcase.php +21 -27
- readme.txt +60 -18
- templates/design-1.php +26 -0
assets/css/logo-showcase.css
CHANGED
@@ -1,24 +1,54 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
.
|
5 |
-
.logo_showcase .slick-dots{left:15px !important; right:15px !important; text-align:center; bottom:-10px !important;}
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
.
|
11 |
-
.
|
12 |
-
.
|
13 |
|
14 |
-
.
|
15 |
-
.
|
16 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
@media screen and (max-width: 641px)
|
19 |
{
|
20 |
-
.
|
21 |
-
.
|
22 |
}
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
|
|
|
|
|
1 |
+
/************************************************************
|
2 |
+
Box Sizing
|
3 |
+
************************************************************/
|
4 |
+
.wpls-logo-showcase * {-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;}
|
|
|
5 |
|
6 |
+
/************************************************************
|
7 |
+
Clearfix
|
8 |
+
************************************************************/
|
9 |
+
.wpls-logo-clearfix:before, .wpls-logo-clearfix:after{content: "";display: table;}
|
10 |
+
.wpls-logo-clearfix::after{clear: both;}
|
11 |
+
.wpls-logo-clearfix{clear: both;}
|
12 |
|
13 |
+
.wpls-logo-showcase{padding:0 30px 20px 30px !important; margin:0 !important; text-align:center; clear:both;}
|
14 |
+
.wpls-logo-showcase .slick-arrow { top: 42%;-webkit-transform: translateY(-50%);transform: translateY(-50%);cursor:pointer;}
|
15 |
+
.wpls-logo-showcase .slick-next{right:0px !important;}
|
16 |
+
.wpls-logo-showcase .slick-prev{ left:0px !important}
|
17 |
+
.wpls-logo-showcase .slick-dots{left:15px !important; right:15px !important; text-align:center; bottom:-10px !important;}
|
18 |
+
.wpls-logo-showcase .wpls-logo-cnt.slick-slide{margin:0 5px;}
|
19 |
+
.wpls-logo-showcase .wpls-logo-cnt.slick-slide img{display:inline-block !important; padding:10px; border:1px solid #f1f1f1; box-shadow:none !important }
|
20 |
+
.wpls-logo-showcase .slick-slide{ text-align:center !important; display: inline-block !important; float:none !important; vertical-align: middle !important; }
|
21 |
+
.wpls-logo-showcase .slick-slide .logo-title{color:#444; padding:10px 0; font-size:16px;}
|
22 |
+
.wpls-logo-showcase .slick-arrow{display: none; }
|
23 |
+
|
24 |
+
.wpls-logo-slider.center .slick-slide {opacity: 0.5;transform: scale(0.7);transition: all 300ms ease 0s;}
|
25 |
+
.wpls-logo-showcase.center .slick-center{opacity: 1;transform: scale(1);}
|
26 |
+
|
27 |
+
.wpls-logo-showcase .slick-prev::before, .wpls-logo-showcase .slick-next::before{display: none !important;}
|
28 |
+
.wpls-logo-showcase .wplss-logo-slide::before, .wpls-logo-showcase .wplss-logo-slide::after{display: none !important;}
|
29 |
+
.sliderimage_hide_border .wpls-logo-cnt.slick-slide img{padding:0px; border:0px solid #f1f1f1;}
|
30 |
|
31 |
@media screen and (max-width: 641px)
|
32 |
{
|
33 |
+
.wpls-logo-showcase.center .slick-slide {opacity: 1;transform: scale(1);transition: all 300ms ease 0s;}
|
34 |
+
.wpls-logo-showcase.center .slick-center{opacity: 1;transform: scale(1);}
|
35 |
}
|
36 |
|
37 |
+
/* Slider Common CSS Starts */
|
38 |
+
.wpls-logo-showcase{visibility: hidden; opacity:0; transition:opacity 0.5s linear; }
|
39 |
+
.slick-initialized { visibility: visible; opacity:1; }
|
40 |
+
|
41 |
+
.wpls-logo-showcase .slick-arrow {text-indent:-99999px; padding:0px !important; margin:0px !important; border-radius:0px !important}
|
42 |
+
.wpls-logo-showcase button.slick-arrow {width: 30px;height: 30px;position: absolute;z-index:9;border: 0px !important;border-radius: 50% !important;color: #fff; cursor:pointer;}
|
43 |
+
.wpls-logo-showcase button.slick-next, .wpls-logo-showcase button.slick-next:hover, .wpls-logo-showcase button.slick-next:focus, .wpls-logo-showcase button.slick-next:active{background:rgba(00, 00, 0, 0.0) url('../images/arrow-right.png') center center no-repeat !important;box-shadow:none !important;}
|
44 |
+
.wpls-logo-showcase button.slick-prev, .wpls-logo-showcase button.slick-prev:hover, .wpls-logo-showcase button.slick-prev:focus, .wpls-logo-showcase button.slick-prev:active{background:rgba(00, 00, 0, 0.0) url('../images/arrow-left.png') center center no-repeat !important;box-shadow:none !important;}
|
45 |
+
.wpls-logo-showcase .slick-dots {padding:0 !important; margin:0 !important; text-align:center;}
|
46 |
+
.wpls-logo-showcase .slick-dots li {list-style:none !important; display:inline-block !important; margin:0 3px !important; padding:0px !important; }
|
47 |
+
.wpls-logo-showcase .slick-dots li button {text-indent:-99999px;margin: 0px !important; padding: 0px !important; border: 2px solid #444 !important; border-radius: 50% !important; width: 12px !important; height: 12px !important; background-color:#fff; cursor:pointer;}
|
48 |
+
.wpls-logo-showcase .slick-dots li button:focus {outline:none !important}
|
49 |
+
.wpls-logo-showcase .slick-dots li.slick-active button {background:#8D8C8C !important;}
|
50 |
+
/* Slider Common CSS Ends */
|
51 |
|
52 |
+
.wpls-logo-showacse-slider-conf{
|
53 |
+
display:none;
|
54 |
+
}
|
assets/css/slick.css
CHANGED
@@ -1,45 +1,29 @@
|
|
1 |
-
|
2 |
-
.slick-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
.
|
8 |
-
.
|
9 |
-
.
|
10 |
-
.
|
11 |
-
.
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
.slick-
|
19 |
-
.slick-
|
20 |
-
|
21 |
-
|
22 |
-
}
|
23 |
-
.slick-
|
24 |
-
.slick-
|
25 |
-
.slick-
|
26 |
-
.slick-
|
27 |
-
.slick-
|
28 |
-
|
29 |
-
transform: translate3d(0, 0, 0);
|
30 |
-
}
|
31 |
-
.slick-track{ position: relative;top: 0;left: 0; display: block;}
|
32 |
-
.slick-track:before,
|
33 |
-
.slick-track:after{ display: table; content: '';}
|
34 |
-
.slick-track:after{ clear: both;}
|
35 |
-
.slick-loading .slick-track{ visibility: hidden;}
|
36 |
-
.slick-slide{ display: none; float: left; height: 100%; min-height: 1px;}
|
37 |
-
[dir='rtl'] .slick-slide
|
38 |
-
{ float: right;}
|
39 |
-
.slick-slide img{ display: block;}
|
40 |
-
.slick-slide.slick-loading img{ display: none;}
|
41 |
-
.slick-slide.dragging img{ pointer-events: none;}
|
42 |
-
.slick-initialized .slick-slide{ display: block;}
|
43 |
-
.slick-loading .slick-slide{ visibility: hidden;}
|
44 |
-
.slick-vertical .slick-slide{ display: block; height: auto; border: 1px solid transparent;}
|
45 |
.slick-arrow.slick-hidden { display: none;}
|
1 |
+
/* Slider */
|
2 |
+
.slick-loading .slick-list{ background: #fff url('ajax-loader.gif') center center no-repeat;}
|
3 |
+
.slick-slider{ position: relative;display: block; -moz-box-sizing: border-box;box-sizing: border-box; -webkit-user-select: none; -moz-user-select: none;
|
4 |
+
-ms-user-select: none; user-select: none; -webkit-touch-callout: none;-khtml-user-select: none; -ms-touch-action: pan-y;
|
5 |
+
touch-action: pan-y; -webkit-tap-highlight-color: transparent;
|
6 |
+
}
|
7 |
+
.slick-list{ position: relative;display: block; overflow: hidden; margin: 0; padding: 0;}
|
8 |
+
.slick-list:focus{ outline: none;}
|
9 |
+
.slick-list.dragging{ cursor: pointer; cursor: hand;}
|
10 |
+
.slick-slider .slick-track,
|
11 |
+
.slick-slider .slick-list{
|
12 |
+
-webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0);
|
13 |
+
transform: translate3d(0, 0, 0);
|
14 |
+
}
|
15 |
+
.slick-track{ position: relative;top: 0;left: 0; display: block;}
|
16 |
+
.slick-track:before,
|
17 |
+
.slick-track:after{ display: table; content: '';}
|
18 |
+
.slick-track:after{ clear: both;}
|
19 |
+
.slick-loading .slick-track{ visibility: hidden;}
|
20 |
+
.slick-slide{ display: none; float: left; height: 100%; min-height: 1px;}
|
21 |
+
[dir='rtl'] .slick-slide
|
22 |
+
{ float: right;}
|
23 |
+
.slick-slide img{ display: block;}
|
24 |
+
.slick-slide.slick-loading img{ display: none;}
|
25 |
+
.slick-slide.dragging img{ pointer-events: none;}
|
26 |
+
.slick-initialized .slick-slide{ display: block;}
|
27 |
+
.slick-loading .slick-slide{ visibility: hidden;}
|
28 |
+
.slick-vertical .slick-slide{ display: block; height: auto; border: 1px solid transparent;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
.slick-arrow.slick-hidden { display: none;}
|
assets/images/ajax-loader.gif
ADDED
Binary file
|
assets/images/arrow-left.png
ADDED
Binary file
|
assets/images/arrow-right.png
ADDED
Binary file
|
assets/js/slick.min.js
CHANGED
@@ -1,18 +1 @@
|
|
1 |
-
/*
|
2 |
-
_ _ _ _
|
3 |
-
___| (_) ___| | __ (_)___
|
4 |
-
/ __| | |/ __| |/ / | / __|
|
5 |
-
\__ \ | | (__| < _ | \__ \
|
6 |
-
|___/_|_|\___|_|\_(_)/ |___/
|
7 |
-
|__/
|
8 |
-
|
9 |
-
Version: 1.6.0
|
10 |
-
Author: Ken Wheeler
|
11 |
-
Website: http://kenwheeler.github.io
|
12 |
-
Docs: http://kenwheeler.github.io/slick
|
13 |
-
Repo: http://github.com/kenwheeler/slick
|
14 |
-
Issues: http://github.com/kenwheeler/slick/issues
|
15 |
-
|
16 |
-
*/
|
17 |
-
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?"next":"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=document.createElement("img");e.onload=function(){c.animate({opacity:0},100,function(){c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},e.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=document.createElement("img"),g.onload=function(){e.attr("src",f).removeAttr("data-lazy").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focusHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":"undefined"!=typeof arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,
|
18 |
-
d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}});
|
1 |
+
!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/wpls-public.js
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery( document ).ready(function($) {
|
2 |
+
|
3 |
+
// Logo Slider
|
4 |
+
$( '.wpls-logo-slider' ).each(function( index ) {
|
5 |
+
|
6 |
+
var slider_id = $(this).attr('id');
|
7 |
+
var logo_conf = $.parseJSON( $(this).closest('.wpls-logo-showcase-slider-wrp').find('.wpls-logo-showacse-slider-conf').text() );
|
8 |
+
|
9 |
+
if( typeof(slider_id) != 'undefined' && slider_id != '' ) {
|
10 |
+
jQuery('#'+slider_id).slick({
|
11 |
+
centerMode : (logo_conf.center_mode) == "true" ? true : false,
|
12 |
+
dots : (logo_conf.dots) == "true" ? true : false,
|
13 |
+
arrows : (logo_conf.arrows) == "true" ? true : false,
|
14 |
+
infinite : (logo_conf.loop) == "true" ? true : false,
|
15 |
+
speed : parseInt(logo_conf.speed),
|
16 |
+
autoplay : (logo_conf.autoplay) == "true" ? true : false,
|
17 |
+
slidesToShow : parseInt(logo_conf.slides_column),
|
18 |
+
slidesToScroll : parseInt(logo_conf.slides_scroll),
|
19 |
+
autoplaySpeed : parseInt(logo_conf.autoplay_interval),
|
20 |
+
pauseOnFocus : false,
|
21 |
+
centerPadding : '0px',
|
22 |
+
rtl : (logo_conf.rtl) == "true" ? true : false,
|
23 |
+
cssEase : (logo_conf.ticker) == "true" ? "linear" : "ease",
|
24 |
+
mobileFirst : (Wpls.is_mobile == 1) ? true : false,
|
25 |
+
responsive: [{
|
26 |
+
breakpoint: 1023,
|
27 |
+
settings: {
|
28 |
+
slidesToShow : (parseInt(logo_conf.slides_column) > 3) ? 3 : parseInt(logo_conf.slides_column),
|
29 |
+
slidesToScroll : 1
|
30 |
+
}
|
31 |
+
},{
|
32 |
+
breakpoint: 640,
|
33 |
+
settings: {
|
34 |
+
slidesToShow : (parseInt(logo_conf.slides_column) > 2) ? 2 : parseInt(logo_conf.slides_column),
|
35 |
+
slidesToScroll : 1
|
36 |
+
}
|
37 |
+
},{
|
38 |
+
breakpoint: 479,
|
39 |
+
settings: {
|
40 |
+
slidesToShow : 1,
|
41 |
+
slidesToScroll : 1
|
42 |
+
}
|
43 |
+
},{
|
44 |
+
breakpoint: 319,
|
45 |
+
settings: {
|
46 |
+
slidesToShow: 1,
|
47 |
+
slidesToScroll: 1
|
48 |
+
}
|
49 |
+
}]
|
50 |
+
});
|
51 |
+
}
|
52 |
+
});
|
53 |
+
});
|
includes/admin/metabox/wpls-post-setting-metabox.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Function Custom meta box for slider link
|
4 |
+
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider
|
6 |
+
* @since 1.2.8
|
7 |
+
*/
|
8 |
+
function wplss_add_meta_box() {
|
9 |
+
add_meta_box('custom-metabox',__( 'Add Link URL for Logo', 'link_textdomain' ),'wplss_box_callback','logoshowcase');
|
10 |
+
}
|
11 |
+
add_action( 'add_meta_boxes', 'wplss_add_meta_box' );
|
12 |
+
|
13 |
+
function wplss_box_callback( $post ) {
|
14 |
+
wp_nonce_field( 'wplss_save_meta_box_data', 'wplss_meta_box_nonce' );
|
15 |
+
$value = get_post_meta( $post->ID, 'wplss_slide_link', true );
|
16 |
+
echo '<input type="url" id="wplss_slide_link" name="wplss_slide_link" value="' . esc_url( $value ) . '" size="25" /><br />';
|
17 |
+
echo 'ie http://www.google.com';
|
18 |
+
|
19 |
+
}
|
20 |
+
|
21 |
+
function wplss_save_meta_box_data( $post_id ) {
|
22 |
+
if ( ! isset( $_POST['wplss_meta_box_nonce'] ) ) {
|
23 |
+
return;
|
24 |
+
}
|
25 |
+
if ( ! wp_verify_nonce( $_POST['wplss_meta_box_nonce'], 'wplss_save_meta_box_data' ) ) {
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
if ( isset( $_POST['post_type'] ) && 'logoshowcase' == $_POST['post_type'] ) {
|
32 |
+
|
33 |
+
if ( ! current_user_can( 'edit_page', $post_id ) ) {
|
34 |
+
return;
|
35 |
+
}
|
36 |
+
} else {
|
37 |
+
|
38 |
+
if ( ! current_user_can( 'edit_post', $post_id ) ) {
|
39 |
+
return;
|
40 |
+
}
|
41 |
+
}
|
42 |
+
if ( ! isset( $_POST['wplss_slide_link'] ) ) {
|
43 |
+
return;
|
44 |
+
}
|
45 |
+
$link_data = stripslashes_deep( $_POST['wplss_slide_link'] );
|
46 |
+
update_post_meta( $post_id, 'wplss_slide_link', $link_data );
|
47 |
+
}
|
48 |
+
add_action( 'save_post', 'wplss_save_meta_box_data' );
|
includes/class-wpls-script.php
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Script Class
|
4 |
+
*
|
5 |
+
* Handles the script and style functionality of plugin
|
6 |
+
*
|
7 |
+
* @package WP Logo Showcase Responsive Slider
|
8 |
+
* @since 1.2.8
|
9 |
+
*/
|
10 |
+
|
11 |
+
// Exit if accessed directly
|
12 |
+
if ( !defined( 'ABSPATH' ) ) exit;
|
13 |
+
|
14 |
+
class Wpls_Script {
|
15 |
+
function __construct() {
|
16 |
+
// Action to add style at front side
|
17 |
+
add_action( 'wp_enqueue_scripts', array($this, 'wplss_logoshowcase_style_css' ));
|
18 |
+
|
19 |
+
// Action to add script at front side
|
20 |
+
add_action( 'wp_enqueue_scripts', array($this, 'wpls_logoshowcase_script') );
|
21 |
+
}
|
22 |
+
|
23 |
+
function wplss_logoshowcase_style_css() {
|
24 |
+
// Registring and enqueing slick slider css
|
25 |
+
if( !wp_style_is( 'wpos-slick-style', 'registered' ) ) {
|
26 |
+
wp_register_style( 'wpos-slick-style', WPLS_URL.'assets/css/slick.css', array(), WPLS_VERSION );
|
27 |
+
wp_enqueue_style( 'wpos-slick-style' );
|
28 |
+
}
|
29 |
+
|
30 |
+
wp_register_style( 'logo_showcase_style', WPLS_URL.'assets/css/logo-showcase.css', array(), WPLS_VERSION );
|
31 |
+
wp_enqueue_style( 'logo_showcase_style');
|
32 |
+
|
33 |
+
}
|
34 |
+
function wpls_logoshowcase_script(){
|
35 |
+
|
36 |
+
// Registring slick slider js
|
37 |
+
if( !wp_script_is( 'wpos-slick-jquery', 'registered' ) ) {
|
38 |
+
wp_register_script( 'wpos-slick-jquery', WPLS_URL.'assets/js/slick.min.js', array('jquery'), WPLS_VERSION, true );
|
39 |
+
}
|
40 |
+
|
41 |
+
|
42 |
+
wp_register_script( 'wpls-public-js', WPLS_URL.'assets/js/wpls-public.js', array('jquery'), WPLS_VERSION, true );
|
43 |
+
wp_localize_script( 'wpls-public-js', 'Wpls', array(
|
44 |
+
'is_mobile' => (wp_is_mobile()) ? 1 : 0,
|
45 |
+
'is_rtl' => (is_rtl()) ? 1 : 0,
|
46 |
+
));
|
47 |
+
//wp_enqueue_script('wpls-public-jquery');
|
48 |
+
|
49 |
+
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
$wpls_script = new Wpls_Script();
|
includes/logo-showcase-functions.php
DELETED
@@ -1,396 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**********************Logo showcase Slider*************************/
|
4 |
-
|
5 |
-
function wplss_logo_showcase_post_types() {
|
6 |
-
|
7 |
-
$sp_logoshowcase_labels = apply_filters( 'sp_logo_showcase_slider_labels', array(
|
8 |
-
'name' => 'Logo Showcase',
|
9 |
-
'singular_name' => 'Logo Showcase',
|
10 |
-
'add_new' => __('Add New', 'logoshowcase'),
|
11 |
-
'add_new_item' => __('Add New Logo Showcase', 'logoshowcase'),
|
12 |
-
'edit_item' => __('Edit Logo Showcase', 'logoshowcase'),
|
13 |
-
'new_item' => __('New Logo Showcase', 'logoshowcase'),
|
14 |
-
'all_items' => __('All Logo Showcase', 'logoshowcase'),
|
15 |
-
'view_item' => __('View Logo Showcase', 'logoshowcase'),
|
16 |
-
'search_items' => __('Search Logo Showcase', 'logoshowcase'),
|
17 |
-
'not_found' => __('No Logo Showcase found', 'logoshowcase'),
|
18 |
-
'not_found_in_trash' => __('No Logo Showcase found in Trash', 'logoshowcase'),
|
19 |
-
'parent_item_colon' => '',
|
20 |
-
'menu_name' => __('Logo Showcase', 'logoshowcase'),
|
21 |
-
'exclude_from_search' => true
|
22 |
-
));
|
23 |
-
|
24 |
-
$sp_logoshowcase_args = array(
|
25 |
-
'labels' => $sp_logoshowcase_labels,
|
26 |
-
'public' => false,
|
27 |
-
'menu_icon' => 'dashicons-images-alt2',
|
28 |
-
'show_ui' => true,
|
29 |
-
'show_in_menu' => true,
|
30 |
-
'query_var' => false,
|
31 |
-
'capability_type' => 'post',
|
32 |
-
'hierarchical' => false,
|
33 |
-
'supports' => array('title','thumbnail')
|
34 |
-
);
|
35 |
-
register_post_type( 'logoshowcase', apply_filters( 'sp_logoshowcase_post_type_args', $sp_logoshowcase_args ) );
|
36 |
-
}
|
37 |
-
add_action('init', 'wplss_logo_showcase_post_types');
|
38 |
-
|
39 |
-
/* Register Taxonomy */
|
40 |
-
|
41 |
-
add_action( 'init', 'wplss_logo_showcase_taxonomies');
|
42 |
-
function wplss_logo_showcase_taxonomies() {
|
43 |
-
$labels = array(
|
44 |
-
'name' => _x( 'Category', 'taxonomy general name' ),
|
45 |
-
'singular_name' => _x( 'Category', 'taxonomy singular name' ),
|
46 |
-
'search_items' => __( 'Search Category' ),
|
47 |
-
'all_items' => __( 'All Category' ),
|
48 |
-
'parent_item' => __( 'Parent Category' ),
|
49 |
-
'parent_item_colon' => __( 'Parent Category:' ),
|
50 |
-
'edit_item' => __( 'Edit Category' ),
|
51 |
-
'update_item' => __( 'Update Category' ),
|
52 |
-
'add_new_item' => __( 'Add New Category' ),
|
53 |
-
'new_item_name' => __( 'New Category Name' ),
|
54 |
-
'menu_name' => __( 'Logo Category' ),
|
55 |
-
|
56 |
-
);
|
57 |
-
$args = array(
|
58 |
-
'public' => false,
|
59 |
-
'hierarchical' => true,
|
60 |
-
'labels' => $labels,
|
61 |
-
'show_ui' => true,
|
62 |
-
'show_admin_column' => true,
|
63 |
-
'query_var' => true,
|
64 |
-
'rewrite' => false,
|
65 |
-
);
|
66 |
-
register_taxonomy( 'wplss_logo_showcase_cat', array( 'logoshowcase' ), $args );
|
67 |
-
}
|
68 |
-
|
69 |
-
/* Custom meta box for slider link */
|
70 |
-
function wplss_add_meta_box() {
|
71 |
-
add_meta_box('custom-metabox',__( 'Add Link URL for Logo', 'link_textdomain' ),'wplss_box_callback','logoshowcase');
|
72 |
-
}
|
73 |
-
add_action( 'add_meta_boxes', 'wplss_add_meta_box' );
|
74 |
-
function wplss_box_callback( $post ) {
|
75 |
-
wp_nonce_field( 'wplss_save_meta_box_data', 'wplss_meta_box_nonce' );
|
76 |
-
$value = get_post_meta( $post->ID, 'wplss_slide_link', true );
|
77 |
-
echo '<input type="url" id="wplss_slide_link" name="wplss_slide_link" value="' . esc_url( $value ) . '" size="25" /><br />';
|
78 |
-
echo 'ie http://www.google.com';
|
79 |
-
}
|
80 |
-
function wplss_save_meta_box_data( $post_id ) {
|
81 |
-
if ( ! isset( $_POST['wplss_meta_box_nonce'] ) ) {
|
82 |
-
return;
|
83 |
-
}
|
84 |
-
if ( ! wp_verify_nonce( $_POST['wplss_meta_box_nonce'], 'wplss_save_meta_box_data' ) ) {
|
85 |
-
return;
|
86 |
-
}
|
87 |
-
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
88 |
-
return;
|
89 |
-
}
|
90 |
-
if ( isset( $_POST['post_type'] ) && 'logoshowcase' == $_POST['post_type'] ) {
|
91 |
-
|
92 |
-
if ( ! current_user_can( 'edit_page', $post_id ) ) {
|
93 |
-
return;
|
94 |
-
}
|
95 |
-
} else {
|
96 |
-
|
97 |
-
if ( ! current_user_can( 'edit_post', $post_id ) ) {
|
98 |
-
return;
|
99 |
-
}
|
100 |
-
}
|
101 |
-
if ( ! isset( $_POST['wplss_slide_link'] ) ) {
|
102 |
-
return;
|
103 |
-
}
|
104 |
-
$link_data = stripslashes_deep( $_POST['wplss_slide_link'] );
|
105 |
-
update_post_meta( $post_id, 'wplss_slide_link', $link_data );
|
106 |
-
}
|
107 |
-
add_action( 'save_post', 'wplss_save_meta_box_data' );
|
108 |
-
|
109 |
-
/*
|
110 |
-
* Add [logoshowcase limit ="-1"] shortcode
|
111 |
-
*
|
112 |
-
*/
|
113 |
-
|
114 |
-
function wplss_logoshowcase_shortcode( $atts) {
|
115 |
-
|
116 |
-
extract(shortcode_atts(array(
|
117 |
-
"limit" => '',
|
118 |
-
"cat_id" => '',
|
119 |
-
"cat_name" => '',
|
120 |
-
"slides_column" => '',
|
121 |
-
"slides_scroll" => '',
|
122 |
-
"dots" => '',
|
123 |
-
"arrows" => '',
|
124 |
-
"autoplay" => '',
|
125 |
-
"autoplay_interval" => '',
|
126 |
-
"speed" => '',
|
127 |
-
"center_mode" => '',
|
128 |
-
"loop" => '',
|
129 |
-
"link_target" => '',
|
130 |
-
"show_title" => '',
|
131 |
-
"image_size" => '',
|
132 |
-
"orderby" => '',
|
133 |
-
"order" => '',
|
134 |
-
'start_slide' => 0,
|
135 |
-
'hide_border' => '',
|
136 |
-
), $atts));
|
137 |
-
|
138 |
-
// Required enqueue_script
|
139 |
-
wp_enqueue_script( 'wpos-slick-jquery' );
|
140 |
-
|
141 |
-
$start_slide = !empty($start_slide) ? ((int)$start_slide - 1) : 0;
|
142 |
-
|
143 |
-
// Define limit
|
144 |
-
if( $limit ) {
|
145 |
-
$posts_per_page = $limit;
|
146 |
-
|
147 |
-
} else {
|
148 |
-
$posts_per_page = '-1';
|
149 |
-
}
|
150 |
-
// Define limit
|
151 |
-
if( $cat_id ) {
|
152 |
-
$cat = $cat_id;
|
153 |
-
} else {
|
154 |
-
$cat = '';
|
155 |
-
}
|
156 |
-
|
157 |
-
if( $cat_name ) {
|
158 |
-
$showcase_cat_name = $cat_name;
|
159 |
-
} else {
|
160 |
-
$showcase_cat_name = '';
|
161 |
-
}
|
162 |
-
|
163 |
-
if( $slides_column ) {
|
164 |
-
$showcase_slides_column = $slides_column;
|
165 |
-
} else {
|
166 |
-
$showcase_slides_column = '4';
|
167 |
-
}
|
168 |
-
|
169 |
-
if( $slides_scroll ) {
|
170 |
-
$showcase_slides_scroll = $slides_scroll;
|
171 |
-
} else {
|
172 |
-
$showcase_slides_scroll = '1';
|
173 |
-
}
|
174 |
-
|
175 |
-
if( $dots ) {
|
176 |
-
$showcase_dots = $dots;
|
177 |
-
} else {
|
178 |
-
$showcase_dots = 'true';
|
179 |
-
}
|
180 |
-
|
181 |
-
if( $arrows ) {
|
182 |
-
$showcase_arrows = $arrows;
|
183 |
-
} else {
|
184 |
-
$showcase_arrows = 'true';
|
185 |
-
}
|
186 |
-
|
187 |
-
if( $autoplay ) {
|
188 |
-
$showcase_autoplay = $autoplay;
|
189 |
-
} else {
|
190 |
-
$showcase_autoplay = 'true';
|
191 |
-
}
|
192 |
-
|
193 |
-
if( $autoplay_interval ) {
|
194 |
-
$showcase_autoplayInterval = $autoplay_interval;
|
195 |
-
} else {
|
196 |
-
$showcase_autoplayInterval = '2000';
|
197 |
-
}
|
198 |
-
|
199 |
-
if( $speed ) {
|
200 |
-
$showcase_speed = $speed;
|
201 |
-
} else {
|
202 |
-
$showcase_speed = '300';
|
203 |
-
}
|
204 |
-
if( $center_mode ) {
|
205 |
-
$showcase_center_mode = $center_mode;
|
206 |
-
} else {
|
207 |
-
$showcase_center_mode = 'false';
|
208 |
-
}
|
209 |
-
if( $loop ) {
|
210 |
-
$showcase_loop = $loop;
|
211 |
-
} else {
|
212 |
-
$showcase_loop = 'true';
|
213 |
-
}
|
214 |
-
if( $link_target ) {
|
215 |
-
$linkTarget = $link_target;
|
216 |
-
} else {
|
217 |
-
$linkTarget = '';
|
218 |
-
}
|
219 |
-
if( $show_title ) {
|
220 |
-
$showTitle = $show_title;
|
221 |
-
} else {
|
222 |
-
$showTitle = 'false';
|
223 |
-
}
|
224 |
-
if( $image_size ) {
|
225 |
-
$sliderimage_size = $image_size;
|
226 |
-
} else {
|
227 |
-
$sliderimage_size = 'original';}
|
228 |
-
if( $orderby ) {
|
229 |
-
$sliderimage_orderby = $orderby;
|
230 |
-
} else {
|
231 |
-
$sliderimage_orderby = 'post_date';}
|
232 |
-
if( $order ) {
|
233 |
-
$sliderimage_order = $order;
|
234 |
-
} else {
|
235 |
-
$sliderimage_order = 'DESC';}
|
236 |
-
|
237 |
-
if( $hide_border ) {
|
238 |
-
$sliderimage_hide_border = $hide_border;
|
239 |
-
} else {
|
240 |
-
$sliderimage_hide_border = 'false';}
|
241 |
-
|
242 |
-
ob_start();
|
243 |
-
|
244 |
-
$unique = wplss_get_unique();
|
245 |
-
$post_type = 'logoshowcase';
|
246 |
-
$orderby = $sliderimage_orderby;
|
247 |
-
$order = $sliderimage_order;
|
248 |
-
|
249 |
-
$args = array (
|
250 |
-
'post_type' => $post_type,
|
251 |
-
'orderby' => $orderby,
|
252 |
-
'order' => $order,
|
253 |
-
'posts_per_page' => $posts_per_page,
|
254 |
-
|
255 |
-
);
|
256 |
-
if($cat != ""){
|
257 |
-
$args['tax_query'] = array( array( 'taxonomy' => 'wplss_logo_showcase_cat', 'field' => 'term_id', 'terms' => $cat) );
|
258 |
-
}
|
259 |
-
$query = new WP_Query($args);
|
260 |
-
$post_count = $query->post_count;
|
261 |
-
|
262 |
-
$start_slide = ( $start_slide < $post_count ) ? $start_slide : 0;
|
263 |
-
|
264 |
-
if($showcase_cat_name != '') { ?>
|
265 |
-
<h2><?php echo $showcase_cat_name; ?> </h2>
|
266 |
-
<?php } ?>
|
267 |
-
<ul class="wplss-logo-showcase-<?php echo $unique; ?> logo_showcase showcase_<?php echo $cat; ?> <?php if($showcase_center_mode == "true") { echo 'center'; } else { echo 'nocenter'; } ?> <?php if ($sliderimage_hide_border == "true") { echo 'sliderimage_hide_border';} ?>">
|
268 |
-
<?php
|
269 |
-
while ($query->have_posts()) : $query->the_post();
|
270 |
-
?>
|
271 |
-
<li class="wplss-logo-slide">
|
272 |
-
<?php $logourl = get_post_meta( get_the_ID(),'wplss_slide_link', true );
|
273 |
-
if ($logourl != '') { ?>
|
274 |
-
<a href="<?php echo esc_url($logourl); ?>" <?php if($linkTarget == 'blank') { ?> target="_blank" <?php } ?>>
|
275 |
-
<?php if($sliderimage_size == '' || $sliderimage_size == 'original') {
|
276 |
-
the_post_thumbnail('url');
|
277 |
-
} elseif ($sliderimage_size == 'large') {
|
278 |
-
the_post_thumbnail('large');
|
279 |
-
} elseif ( $sliderimage_size == 'medium') {
|
280 |
-
the_post_thumbnail('medium');
|
281 |
-
} elseif ( $sliderimage_size == 'thumbnail') {
|
282 |
-
the_post_thumbnail('thumbnail');
|
283 |
-
} else {
|
284 |
-
the_post_thumbnail('url');
|
285 |
-
} ?>
|
286 |
-
</a>
|
287 |
-
<?php }
|
288 |
-
else
|
289 |
-
{
|
290 |
-
if($sliderimage_size == '' || $sliderimage_size == 'original') {
|
291 |
-
the_post_thumbnail('url');
|
292 |
-
} elseif ($sliderimage_size == 'large') {
|
293 |
-
the_post_thumbnail('large');
|
294 |
-
} elseif ( $sliderimage_size == 'medium') {
|
295 |
-
the_post_thumbnail('medium');
|
296 |
-
} elseif ( $sliderimage_size == 'thumbnail') {
|
297 |
-
the_post_thumbnail('thumbnail');
|
298 |
-
} else {
|
299 |
-
the_post_thumbnail('url');
|
300 |
-
}
|
301 |
-
}
|
302 |
-
if($showTitle == "true") { ?>
|
303 |
-
<div class="logo-title"><?php the_title(); ?></div>
|
304 |
-
<?php } ?>
|
305 |
-
</li>
|
306 |
-
<?php endwhile; ?>
|
307 |
-
</ul>
|
308 |
-
|
309 |
-
<?php wp_reset_query(); ?>
|
310 |
-
|
311 |
-
<script>
|
312 |
-
jQuery(document).ready(function(){
|
313 |
-
jQuery('.wplss-logo-showcase-<?php echo $unique; ?>').slick({
|
314 |
-
centerMode: <?php echo $showcase_center_mode; ?>,
|
315 |
-
dots: <?php echo $showcase_dots; ?>,
|
316 |
-
arrows: <?php echo $showcase_arrows; ?>,
|
317 |
-
infinite: <?php echo $showcase_loop; ?>,
|
318 |
-
speed: <?php echo $showcase_speed; ?>,
|
319 |
-
slidesToShow: <?php echo $showcase_slides_column; ?>,
|
320 |
-
slidesToScroll: <?php echo $showcase_slides_scroll; ?>,
|
321 |
-
autoplay: <?php echo $showcase_autoplay; ?>,
|
322 |
-
autoplaySpeed: <?php echo $showcase_autoplayInterval; ?>,
|
323 |
-
initialSlide: <?php echo $start_slide; ?>,
|
324 |
-
responsive: [
|
325 |
-
{
|
326 |
-
breakpoint: 1024,
|
327 |
-
settings: {
|
328 |
-
slidesToShow: 3,
|
329 |
-
slidesToScroll: 2,
|
330 |
-
infinite: true,
|
331 |
-
dots: true
|
332 |
-
}
|
333 |
-
},
|
334 |
-
{
|
335 |
-
breakpoint: 640,
|
336 |
-
settings: {
|
337 |
-
slidesToShow: 2,
|
338 |
-
slidesToScroll: 2,
|
339 |
-
centerMode:false
|
340 |
-
}
|
341 |
-
},
|
342 |
-
{
|
343 |
-
breakpoint: 480,
|
344 |
-
settings: {
|
345 |
-
slidesToShow: 1,
|
346 |
-
slidesToScroll: 1,
|
347 |
-
centerMode:false
|
348 |
-
}
|
349 |
-
}
|
350 |
-
]
|
351 |
-
});
|
352 |
-
|
353 |
-
});
|
354 |
-
</script>
|
355 |
-
|
356 |
-
<?php
|
357 |
-
|
358 |
-
|
359 |
-
return ob_get_clean();}
|
360 |
-
|
361 |
-
|
362 |
-
add_shortcode("logoshowcase", "wplss_logoshowcase_shortcode");
|
363 |
-
|
364 |
-
// Manage Category Shortcode Columns
|
365 |
-
|
366 |
-
add_filter("manage_wplss_logo_showcase_cat_custom_column", 'wplss_logoshowcase_cat_columns', 10, 3);
|
367 |
-
add_filter("manage_edit-wplss_logo_showcase_cat_columns", 'wplss_logoshowcase_cat_manage_columns');
|
368 |
-
function wplss_logoshowcase_cat_manage_columns($theme_columns) {
|
369 |
-
$new_columns = array(
|
370 |
-
'cb' => '<input type="checkbox" />',
|
371 |
-
'name' => __('Name'),
|
372 |
-
'logoshowcase_shortcode' => __( 'Logo Category Shortcode', 'logoshowcase' ),
|
373 |
-
'slug' => __('Slug'),
|
374 |
-
'posts' => __('Posts')
|
375 |
-
);
|
376 |
-
return $new_columns;
|
377 |
-
}
|
378 |
-
|
379 |
-
function wplss_logoshowcase_cat_columns($out, $column_name, $theme_id) {
|
380 |
-
$theme = get_term($theme_id, 'faq_cat');
|
381 |
-
switch ($column_name) {
|
382 |
-
|
383 |
-
case 'title':
|
384 |
-
echo get_the_title();
|
385 |
-
break;
|
386 |
-
case 'logoshowcase_shortcode':
|
387 |
-
|
388 |
-
echo '[logoshowcase cat_id="' . $theme_id. '"]';
|
389 |
-
break;
|
390 |
-
|
391 |
-
default:
|
392 |
-
break;
|
393 |
-
}
|
394 |
-
return $out;
|
395 |
-
|
396 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/shortcode/wpls-logo-slider.php
ADDED
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* 'logoshowcase' Shortcode
|
4 |
+
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider Pro
|
6 |
+
* @since 1.0.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
// Exit if accessed directly
|
10 |
+
if ( !defined( 'ABSPATH' ) ) exit;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Function to handle the `logoshowcase` shortcode
|
14 |
+
*
|
15 |
+
* @package WP Logo Showcase Responsive Slider Pro
|
16 |
+
* @since 1.0.0
|
17 |
+
*/
|
18 |
+
function wpls_logo_slider( $atts, $content ) {
|
19 |
+
|
20 |
+
// Shortcode Parameter
|
21 |
+
extract(shortcode_atts(array(
|
22 |
+
'limit' => '15',
|
23 |
+
'design' => 'design-1',
|
24 |
+
'cat_id' => '',
|
25 |
+
'cat_name' => '',
|
26 |
+
'slides_column' => '4',
|
27 |
+
'slides_scroll' => '1',
|
28 |
+
'dots' => 'true',
|
29 |
+
'arrows' => 'true',
|
30 |
+
'autoplay' => 'true',
|
31 |
+
'autoplay_interval' => '2000',
|
32 |
+
'speed' => '1000',
|
33 |
+
'center_mode' => 'false',
|
34 |
+
'rtl' => '',
|
35 |
+
'loop' => 'true',
|
36 |
+
'link_target' => 'self',
|
37 |
+
'show_title' => 'false',
|
38 |
+
'image_size' => 'original',
|
39 |
+
'orderby' => 'date',
|
40 |
+
'order' => 'ASC',
|
41 |
+
'hide_border' => '',
|
42 |
+
|
43 |
+
|
44 |
+
), $atts));
|
45 |
+
$shortcode_designs = wpls_logo_designs();
|
46 |
+
$design = array_key_exists( trim($design), $shortcode_designs ) ? $design : 'design-1';
|
47 |
+
$limit = !empty($limit) ? $limit : '15';
|
48 |
+
$cat = (!empty($cat_id)) ? explode(',',$cat_id) : '';
|
49 |
+
$cat_name = !empty($cat_name) ? $cat_name : '';
|
50 |
+
$slides_scroll = !empty($slides_scroll) ? $slides_scroll : 1;
|
51 |
+
$dots = ($dots == 'false') ? 'false' : 'true';
|
52 |
+
$arrows = ($arrows == 'false') ? 'false' : 'true';
|
53 |
+
$autoplay = ($autoplay == 'false') ? 'false' : 'true';
|
54 |
+
$autoplay_interval = ($autoplay_interval !== '') ? $autoplay_interval : '2000';
|
55 |
+
$speed = (!empty($speed)) ? $speed : '300';
|
56 |
+
$loop = ($loop == 'false') ? 'false' : 'true';
|
57 |
+
$link_target = ($link_target == 'blank') ? '_blank' : '_self';
|
58 |
+
$show_title = ($show_title == 'false') ? 'false' : 'true';
|
59 |
+
$image_size = (!empty($image_size)) ? $image_size : 'original';
|
60 |
+
$order = ( strtolower($order) == 'asc' ) ? 'ASC' : 'DESC';
|
61 |
+
$orderby = !empty($orderby) ? $orderby : 'date';
|
62 |
+
$hide_border = ($hide_border == 'true') ? 'sliderimage_hide_border' : '';
|
63 |
+
|
64 |
+
|
65 |
+
// For RTL
|
66 |
+
if( empty($rtl) && is_rtl() ) {
|
67 |
+
$rtl = 'true';
|
68 |
+
} elseif ( $rtl == 'true' ) {
|
69 |
+
$rtl = 'true';
|
70 |
+
} else {
|
71 |
+
$rtl = 'false';
|
72 |
+
}
|
73 |
+
// Taking some globals
|
74 |
+
$unique = wplss_get_unique();
|
75 |
+
|
76 |
+
// Shortcode file
|
77 |
+
$design_file_path = WPLS_DIR . '/templates/' . $design . '.php';
|
78 |
+
$design_file_path = (file_exists($design_file_path)) ? $design_file_path : '';
|
79 |
+
|
80 |
+
global $post;
|
81 |
+
// WP Query Parameters
|
82 |
+
$query_args = array(
|
83 |
+
'post_type' => WPLS_POST_TYPE,
|
84 |
+
'post_status' => array( 'publish' ),
|
85 |
+
'posts_per_page' => $limit,
|
86 |
+
'order' => $order,
|
87 |
+
'orderby' => $orderby,
|
88 |
+
);
|
89 |
+
if($cat != ""){
|
90 |
+
$query_args['tax_query'] = array(
|
91 |
+
array(
|
92 |
+
'taxonomy' => WPLS_CAT_TYPE,
|
93 |
+
'field' => 'term_id',
|
94 |
+
'terms' => $cat,
|
95 |
+
)
|
96 |
+
);
|
97 |
+
}
|
98 |
+
|
99 |
+
$unique = wplss_get_unique();
|
100 |
+
// Enqueue required script
|
101 |
+
wp_enqueue_script( 'wpos-slick-jquery' );
|
102 |
+
wp_enqueue_script( 'wpls-public-js' );
|
103 |
+
|
104 |
+
global $post;
|
105 |
+
// WP Query Parameters
|
106 |
+
$logo_query = new WP_Query($query_args);
|
107 |
+
$post_count = $logo_query->post_count;
|
108 |
+
|
109 |
+
// Slider configuration and taken care of centermode
|
110 |
+
$slides_column = (!empty($slides_column) && $slides_column <= $post_count) ? $slides_column : $post_count;
|
111 |
+
$center_mode = ($center_mode == 'true' && $slides_column % 2 != 0 && $slides_column != $post_count) ? 'true' : 'false';
|
112 |
+
$center_mode_cls = ($center_mode == 'true') ? 'center' : '';
|
113 |
+
|
114 |
+
// Slider configuration
|
115 |
+
$slider_conf = compact('slides_column', 'slides_scroll', 'dots', 'arrows', 'autoplay', 'autoplay_interval', 'loop' , 'rtl', 'speed', 'center_mode');
|
116 |
+
|
117 |
+
ob_start();
|
118 |
+
|
119 |
+
// If post is there
|
120 |
+
if( $logo_query->have_posts() ) { ?>
|
121 |
+
<?php
|
122 |
+
if($cat_name != '') { ?>
|
123 |
+
<h2><?php echo $cat_name; ?> </h2>
|
124 |
+
<?php } ?>
|
125 |
+
|
126 |
+
<div class="wpls-logo-showcase-slider-wrp wpls-logo-clearfix">
|
127 |
+
<div class="wpls-logo-showcase logo_showcase wpls-logo-slider wpls-<?php echo $design; ?> <?php echo $center_mode_cls; ?> <?php echo $hide_border; ?>" id="wpls-logo-showcase-slider-<?php echo $unique; ?>" >
|
128 |
+
<?php while ($logo_query->have_posts()) : $logo_query->the_post();
|
129 |
+
$feat_image = wpls_get_logo_image( $post->ID, $image_size);
|
130 |
+
$logourl = get_post_meta( $post->ID, 'wplss_slide_link', true );
|
131 |
+
// Include shortcode html file
|
132 |
+
if( $design_file_path ) {
|
133 |
+
include( $design_file_path );
|
134 |
+
}
|
135 |
+
|
136 |
+
endwhile; ?>
|
137 |
+
</div><!-- end .wpls-logo-slider -->
|
138 |
+
<div class="wpls-logo-showacse-slider-conf"><?php echo htmlspecialchars(json_encode($slider_conf)); ?></div>
|
139 |
+
</div><!-- end .wpls-logo-showcase-slider-wrp -->
|
140 |
+
|
141 |
+
<?php
|
142 |
+
wp_reset_query(); // Reset WP Query
|
143 |
+
$content .= ob_get_clean();
|
144 |
+
return $content;
|
145 |
+
}
|
146 |
+
}
|
147 |
+
|
148 |
+
// `logoshowcase` slider shortcode
|
149 |
+
add_shortcode( 'logoshowcase', 'wpls_logo_slider' );
|
includes/wpls-functions.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Function to get plugin image sizes array
|
4 |
+
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider
|
6 |
+
* @since 1.2.8
|
7 |
+
*/
|
8 |
+
function wplss_get_unique() {
|
9 |
+
static $unique = 0;
|
10 |
+
$unique++;
|
11 |
+
|
12 |
+
return $unique;
|
13 |
+
}
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Function to get post featured image
|
17 |
+
*
|
18 |
+
* @package WP Blog and Widgets Pro
|
19 |
+
* @since 1.1.7
|
20 |
+
*/
|
21 |
+
function wpls_get_logo_image( $post_id = '', $size = 'full' ) {
|
22 |
+
// If external image is blank then take featured image
|
23 |
+
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size );
|
24 |
+
if( !empty($image) ) {
|
25 |
+
$image = isset($image[0]) ? $image[0] : '';
|
26 |
+
}
|
27 |
+
return $image;
|
28 |
+
}
|
29 |
+
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Function to get plugin image sizes array
|
33 |
+
*
|
34 |
+
* @package WP Logo Showcase Responsive Slider Pro
|
35 |
+
* @since 1.0.0
|
36 |
+
*/
|
37 |
+
function wpls_logo_designs() {
|
38 |
+
$design_arr = array(
|
39 |
+
'design-1' => __('Design 1', 'wp-logo-showcase-responsive-slider-slider')
|
40 |
+
);
|
41 |
+
return apply_filters('wpls_logo_designs', $design_arr );
|
42 |
+
}
|
43 |
+
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Function to add array after specific key
|
47 |
+
*
|
48 |
+
* @package WP Logo Showcase Responsive Slider Pro
|
49 |
+
* @since 1.2.5
|
50 |
+
*/
|
51 |
+
function wpls_logo_add_array(&$array, $value, $index, $from_last = false) {
|
52 |
+
|
53 |
+
if( is_array($array) && is_array($value) ) {
|
54 |
+
|
55 |
+
if( $from_last ) {
|
56 |
+
$total_count = count($array);
|
57 |
+
$index = (!empty($total_count) && ($total_count > $index)) ? ($total_count-$index): $index;
|
58 |
+
}
|
59 |
+
|
60 |
+
$split_arr = array_splice($array, max(0, $index));
|
61 |
+
$array = array_merge( $array, $value, $split_arr);
|
62 |
+
}
|
63 |
+
|
64 |
+
return $array;
|
65 |
+
}
|
66 |
+
|
67 |
+
// Manage Category Shortcode Columns
|
68 |
+
|
69 |
+
add_filter("manage_wplss_logo_showcase_cat_custom_column", 'wplss_logoshowcase_cat_columns', 10, 3);
|
70 |
+
add_filter("manage_edit-wplss_logo_showcase_cat_columns", 'wplss_logoshowcase_cat_manage_columns');
|
71 |
+
function wplss_logoshowcase_cat_manage_columns($columns) {
|
72 |
+
$new_columns['wpls_logo_shortcode'] = __( 'Category Shortcode', 'wp-logo-showcase-responsive-slider-slider' );
|
73 |
+
$columns = wpls_logo_add_array( $columns, $new_columns, 2 );
|
74 |
+
return $columns;
|
75 |
+
}
|
76 |
+
|
77 |
+
function wplss_logoshowcase_cat_columns($ouput, $column_name, $tax_id) {
|
78 |
+
if( $column_name == 'wpls_logo_shortcode' ) {
|
79 |
+
$ouput .= '[logoshowcase cat_id="' . $tax_id. '"]';
|
80 |
+
|
81 |
+
}
|
82 |
+
return $ouput;
|
83 |
+
|
84 |
+
}
|
includes/wpls-post-types.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Function to register post type
|
4 |
+
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider
|
6 |
+
* @since 1.2.8
|
7 |
+
*/
|
8 |
+
function wplss_logo_showcase_post_types() {
|
9 |
+
|
10 |
+
$sp_logoshowcase_labels = apply_filters( 'sp_logo_showcase_slider_labels', array(
|
11 |
+
'name' => 'Logo Showcase',
|
12 |
+
'singular_name' => 'Logo Showcase',
|
13 |
+
'add_new' => __('Add New', 'wp-logo-showcase-responsive-slider-slider'),
|
14 |
+
'add_new_item' => __('Add New Logo Showcase', 'wp-logo-showcase-responsive-slider-slider'),
|
15 |
+
'edit_item' => __('Edit Logo Showcase', 'wp-logo-showcase-responsive-slider-slider'),
|
16 |
+
'new_item' => __('New Logo Showcase', 'wp-logo-showcase-responsive-slider-slider'),
|
17 |
+
'all_items' => __('All Logo Showcase', 'wp-logo-showcase-responsive-slider-slider'),
|
18 |
+
'view_item' => __('View Logo Showcase', 'wp-logo-showcase-responsive-slider-slider'),
|
19 |
+
'search_items' => __('Search Logo Showcase', 'wp-logo-showcase-responsive-slider-slider'),
|
20 |
+
'not_found' => __('No Logo Showcase found', 'wp-logo-showcase-responsive-slider-slider'),
|
21 |
+
'not_found_in_trash' => __('No Logo Showcase found in Trash', 'wp-logo-showcase-responsive-slider-slider'),
|
22 |
+
'parent_item_colon' => '',
|
23 |
+
'menu_name' => __('Logo Showcase', 'wp-logo-showcase-responsive-slider-slider'),
|
24 |
+
'exclude_from_search' => true
|
25 |
+
));
|
26 |
+
|
27 |
+
$sp_logoshowcase_args = array(
|
28 |
+
'labels' => $sp_logoshowcase_labels,
|
29 |
+
'public' => false,
|
30 |
+
'menu_icon' => 'dashicons-images-alt2',
|
31 |
+
'show_ui' => true,
|
32 |
+
'show_in_menu' => true,
|
33 |
+
'query_var' => false,
|
34 |
+
'capability_type' => 'post',
|
35 |
+
'hierarchical' => false,
|
36 |
+
'supports' => array('title','thumbnail')
|
37 |
+
);
|
38 |
+
register_post_type( 'logoshowcase', apply_filters( 'sp_logoshowcase_post_type_args', $sp_logoshowcase_args ) );
|
39 |
+
}
|
40 |
+
add_action('init', 'wplss_logo_showcase_post_types');
|
41 |
+
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Function to register post taxonomies
|
45 |
+
*
|
46 |
+
* @package WP Logo Showcase Responsive Slider
|
47 |
+
* @since 1.2.8
|
48 |
+
*/
|
49 |
+
add_action( 'init', 'wplss_logo_showcase_taxonomies');
|
50 |
+
function wplss_logo_showcase_taxonomies() {
|
51 |
+
$labels = array(
|
52 |
+
'name' => _x( 'Category', 'wp-logo-showcase-responsive-slider-slider' ),
|
53 |
+
'singular_name' => _x( 'Category', 'wp-logo-showcase-responsive-slider-slider' ),
|
54 |
+
'search_items' => __( 'Search Category' ),
|
55 |
+
'all_items' => __( 'All Category' ),
|
56 |
+
'parent_item' => __( 'Parent Category' ),
|
57 |
+
'parent_item_colon' => __( 'Parent Category:' ),
|
58 |
+
'edit_item' => __( 'Edit Category' ),
|
59 |
+
'update_item' => __( 'Update Category' ),
|
60 |
+
'add_new_item' => __( 'Add New Category' ),
|
61 |
+
'new_item_name' => __( 'New Category Name' ),
|
62 |
+
'menu_name' => __( 'Logo Category' ),
|
63 |
+
|
64 |
+
);
|
65 |
+
$args = array(
|
66 |
+
'public' => false,
|
67 |
+
'hierarchical' => true,
|
68 |
+
'labels' => $labels,
|
69 |
+
'show_ui' => true,
|
70 |
+
'show_admin_column' => true,
|
71 |
+
'query_var' => true,
|
72 |
+
'rewrite' => false,
|
73 |
+
);
|
74 |
+
register_taxonomy( 'wplss_logo_showcase_cat', array( 'logoshowcase' ), $args );
|
75 |
+
}
|
logo-showcase.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author: WP Online Support
|
7 |
* Text Domain: wp-logo-showcase-responsive-slider-slider
|
8 |
* Domain Path: /languages/
|
9 |
-
* Version: 1.
|
10 |
* Author URI: http://www.wponlinesupport.com/
|
11 |
*
|
12 |
* @package WordPress
|
@@ -14,7 +14,7 @@
|
|
14 |
*/
|
15 |
|
16 |
if( !defined( 'WPLS_VERSION' ) ) {
|
17 |
-
define( 'WPLS_VERSION', '1.
|
18 |
}
|
19 |
if( !defined( 'WPLS_DIR' ) ) {
|
20 |
define( 'WPLS_DIR', dirname( __FILE__ ) ); // Plugin dir
|
@@ -25,7 +25,12 @@ if( !defined( 'WPLS_URL' ) ) {
|
|
25 |
if( !defined( 'WPLS_POST_TYPE' ) ) {
|
26 |
define( 'WPLS_POST_TYPE', 'logoshowcase' ); // Plugin Post Type
|
27 |
}
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
29 |
/**
|
30 |
* Activation Hook
|
31 |
*
|
@@ -127,31 +132,20 @@ function wpls_load_textdomain() {
|
|
127 |
}
|
128 |
add_action('plugins_loaded', 'wpls_load_textdomain');
|
129 |
|
130 |
-
|
131 |
-
|
132 |
-
*
|
133 |
-
* @package WP Logo Showcase Responsive Slider
|
134 |
-
* @since 1.2.1
|
135 |
-
*/
|
136 |
-
function wplss_get_unique() {
|
137 |
-
static $unique = 0;
|
138 |
-
$unique++;
|
139 |
-
|
140 |
-
return $unique;
|
141 |
-
}
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
require_once( 'includes/logo-showcase-functions.php' );
|
155 |
|
156 |
// Load admin files
|
157 |
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|
6 |
* Author: WP Online Support
|
7 |
* Text Domain: wp-logo-showcase-responsive-slider-slider
|
8 |
* Domain Path: /languages/
|
9 |
+
* Version: 1.3.3
|
10 |
* Author URI: http://www.wponlinesupport.com/
|
11 |
*
|
12 |
* @package WordPress
|
14 |
*/
|
15 |
|
16 |
if( !defined( 'WPLS_VERSION' ) ) {
|
17 |
+
define( 'WPLS_VERSION', '1.3.3' ); // Version of plugin
|
18 |
}
|
19 |
if( !defined( 'WPLS_DIR' ) ) {
|
20 |
define( 'WPLS_DIR', dirname( __FILE__ ) ); // Plugin dir
|
25 |
if( !defined( 'WPLS_POST_TYPE' ) ) {
|
26 |
define( 'WPLS_POST_TYPE', 'logoshowcase' ); // Plugin Post Type
|
27 |
}
|
28 |
+
if( !defined( 'WPLS_CAT_TYPE' ) ) {
|
29 |
+
define( 'WPLS_CAT_TYPE', 'wplss_logo_showcase_cat' ); // Plugin Post Type
|
30 |
+
}
|
31 |
+
if( !defined( 'WPLS_META_PREFIX' ) ) {
|
32 |
+
define( 'WPLS_META_PREFIX', '_wpls_' ); // Plugin metabox prefix
|
33 |
+
}
|
34 |
/**
|
35 |
* Activation Hook
|
36 |
*
|
132 |
}
|
133 |
add_action('plugins_loaded', 'wpls_load_textdomain');
|
134 |
|
135 |
+
// Script file
|
136 |
+
require_once( WPLS_DIR . '/includes/class-wpls-script.php' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
+
//functions file
|
139 |
+
require_once( WPLS_DIR . '/includes/wpls-functions.php' );
|
140 |
+
|
141 |
+
//post types file
|
142 |
+
require_once( WPLS_DIR . '/includes/wpls-post-types.php' );
|
143 |
+
|
144 |
+
//post metabox file
|
145 |
+
require_once( WPLS_DIR . '/includes/admin/metabox/wpls-post-setting-metabox.php' );
|
146 |
+
|
147 |
+
//post metabox file
|
148 |
+
require_once( WPLS_DIR . '/includes/shortcode/wpls-logo-slider.php' );
|
|
|
149 |
|
150 |
// Load admin files
|
151 |
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: wponlinesupport, anoopranawat
|
3 |
Tags: wponlinesupport, wponlinesupport logo slider, logo slider, widget , client logo carousel, client logo slider, client, customer, image carousel, carousel, logo showcase, Responsive logo slider, Responsive logo carousel, WordPress logo slider, WordPress logo carousel, slick carousel, Best logo showcase, easy logo slider, logo carousel wordpress, logo slider wordpress, sponsors, sponsors slider, sponsors carousel
|
4 |
Requires at least: 3.1
|
5 |
-
Tested up to: 4.
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -14,41 +14,40 @@ Many CMS site needs to display logo slideshow responsive slider/carousel on thei
|
|
14 |
|
15 |
Using WP Logo Showcase Responsive slider/carousel plugin creating a carousel slider of logos like client logo slider, partners logo slider, sponsor logo slider is super easy.
|
16 |
|
17 |
-
View [DEMO](
|
18 |
|
19 |
-
|
|
|
|
|
20 |
|
21 |
= Here is the shortcode example =
|
|
|
22 |
<code>[logoshowcase]</code>
|
23 |
|
24 |
= If you want to display Logos by category then use this short code =
|
25 |
-
<code>[logoshowcase limit ="-1" cat_id="category_ID"]</code>
|
26 |
-
|
27 |
-
= Complete shortcode with all parameters =
|
28 |
-
<code>[logoshowcase limit="-1" cat_id="15" cat_name="Support" dots="true" arrows="true" slides_column="3" slides_scroll="2" autoplay="true"
|
29 |
-
autoplay_interval="300" speed="2000" loop="true" center_mode="true" link_target="blank" show_title="false" image_size="original"
|
30 |
-
order="DESC" orderby="post_date" start_slide="2"]</code>
|
31 |
|
|
|
32 |
|
33 |
= Use Following parameters with shortcode =
|
|
|
34 |
<code>[logoshowcase]</code>
|
35 |
|
36 |
* **limit:**
|
37 |
-
[logoshowcase limit="
|
38 |
* **Display by category**
|
39 |
-
[logoshowcase
|
40 |
* **Display category name:**
|
41 |
[logoshowcase cat_name="category name"] ( Display category name)
|
42 |
* **Slide columns for Logo slider:**
|
43 |
-
[logoshowcase slides_column="
|
44 |
* **Number of Logos slides at a time:**
|
45 |
-
[logoshowcase slides_scroll="
|
46 |
* **Pagination and arrows:**
|
47 |
[logoshowcase dots="false" arrows="false"]
|
48 |
* **Autoplay and Autoplay Interval:**
|
49 |
-
[logoshowcase autoplay="true" autoplay_interval="
|
50 |
* **Logo Showcase Slide Speed:**
|
51 |
-
[logoshowcase speed="
|
52 |
* **Loop:**
|
53 |
[logoshowcase loop="true"] ( Display slider in Loop OR not : You can use "true" OR "false")
|
54 |
* **Initialize Slide:**
|
@@ -62,11 +61,17 @@ order="DESC" orderby="post_date" start_slide="2"]</code>
|
|
62 |
* **image_size:**
|
63 |
[logoshowcase image_size="original"] (ie set image size of logo. By default value is "original" Values are "original, large, medium, thumbnail")
|
64 |
* **order:**
|
65 |
-
[logoshowcase order="
|
66 |
* **orderby :**
|
67 |
[logoshowcase orderby="post_date"] (Sort retrieved posts by parameter. Defaults to 'date (post_date)'. One or more options can be passed. 'none',ID','author','title','name',rand',date')
|
68 |
* **hide_border :**
|
69 |
[logoshowcase hide_border="true"] (Option to remove the border of logo. )
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
= Features include: =
|
72 |
* Added two new shortcode parameters "order and orderby"
|
@@ -119,8 +124,10 @@ order="DESC" orderby="post_date" start_slide="2"]</code>
|
|
119 |
3. Add a new page and add this short code
|
120 |
<code>[logoshowcase]</code>
|
121 |
4. Template code is
|
122 |
-
<code
|
123 |
|
|
|
|
|
124 |
|
125 |
== Screenshots ==
|
126 |
|
@@ -130,7 +137,24 @@ order="DESC" orderby="post_date" start_slide="2"]</code>
|
|
130 |
4. Add a Logo
|
131 |
|
132 |
|
133 |
-
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
= 1.2.8(16-8-2017) =
|
136 |
* [*] Fixed .wplss-logo-slide::before, .wplss-logo-slide::after issue. Becouse of this a design(design given for LI tag in theme) was showing before logo.
|
@@ -180,6 +204,24 @@ order="DESC" orderby="post_date" start_slide="2"]</code>
|
|
180 |
|
181 |
== Upgrade Notice ==
|
182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
= 1.2.8(16-8-2017) =
|
184 |
* [*] Fixed .wplss-logo-slide::before, .wplss-logo-slide::after issue. Becouse of this a design(design given for LI tag in theme) was showing before logo.
|
185 |
|
2 |
Contributors: wponlinesupport, anoopranawat
|
3 |
Tags: wponlinesupport, wponlinesupport logo slider, logo slider, widget , client logo carousel, client logo slider, client, customer, image carousel, carousel, logo showcase, Responsive logo slider, Responsive logo carousel, WordPress logo slider, WordPress logo carousel, slick carousel, Best logo showcase, easy logo slider, logo carousel wordpress, logo slider wordpress, sponsors, sponsors slider, sponsors carousel
|
4 |
Requires at least: 3.1
|
5 |
+
Tested up to: 4.9
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
14 |
|
15 |
Using WP Logo Showcase Responsive slider/carousel plugin creating a carousel slider of logos like client logo slider, partners logo slider, sponsor logo slider is super easy.
|
16 |
|
17 |
+
View [DEMO](https://www.wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/) | [PRO DEMO and Features](https://www.wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/) for additional information.
|
18 |
|
19 |
+
[SlidersPack – All In One Image Sliders](https://wordpress.org/plugins/sliderspack-all-in-one-image-sliders/) | [PowerPack - Need of Every Website](https://wordpress.org/plugins/powerpack-lite/) our new **FREE WordPress Plugins**. Try it Now.
|
20 |
+
|
21 |
+
Download our all [FREE 44+ WordPress Plugins and 7+ Themes](wordpress-free-plugins/?utm_source=wp&event=fd).
|
22 |
|
23 |
= Here is the shortcode example =
|
24 |
+
|
25 |
<code>[logoshowcase]</code>
|
26 |
|
27 |
= If you want to display Logos by category then use this short code =
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
+
<code>[logoshowcase limit ="-1" cat_id="category_ID"]</code>
|
30 |
|
31 |
= Use Following parameters with shortcode =
|
32 |
+
|
33 |
<code>[logoshowcase]</code>
|
34 |
|
35 |
* **limit:**
|
36 |
+
[logoshowcase limit="10"] ( ie Display 5 Logo on your website. To show all logo use limit="-1" )
|
37 |
* **Display by category**
|
38 |
+
[logoshowcase cat_id="category_ID"] ( ie Display Logos by their category ID )
|
39 |
* **Display category name:**
|
40 |
[logoshowcase cat_name="category name"] ( Display category name)
|
41 |
* **Slide columns for Logo slider:**
|
42 |
+
[logoshowcase slides_column="4"] (Display no of columns in Logos slider )
|
43 |
* **Number of Logos slides at a time:**
|
44 |
+
[logoshowcase slides_scroll="1"] (Controls number of Logos slide at a time)
|
45 |
* **Pagination and arrows:**
|
46 |
[logoshowcase dots="false" arrows="false"]
|
47 |
* **Autoplay and Autoplay Interval:**
|
48 |
+
[logoshowcase autoplay="true" autoplay_interval="2000"]
|
49 |
* **Logo Showcase Slide Speed:**
|
50 |
+
[logoshowcase speed="1000"]
|
51 |
* **Loop:**
|
52 |
[logoshowcase loop="true"] ( Display slider in Loop OR not : You can use "true" OR "false")
|
53 |
* **Initialize Slide:**
|
61 |
* **image_size:**
|
62 |
[logoshowcase image_size="original"] (ie set image size of logo. By default value is "original" Values are "original, large, medium, thumbnail")
|
63 |
* **order:**
|
64 |
+
[logoshowcase order="orderby"] (Designates the ascending or descending order of the 'orderby' parameter. Defaults to 'DESC'. Values are "DESC" and "ASC")
|
65 |
* **orderby :**
|
66 |
[logoshowcase orderby="post_date"] (Sort retrieved posts by parameter. Defaults to 'date (post_date)'. One or more options can be passed. 'none',ID','author','title','name',rand',date')
|
67 |
* **hide_border :**
|
68 |
[logoshowcase hide_border="true"] (Option to remove the border of logo. )
|
69 |
+
* **rtl :**
|
70 |
+
[logoshowcase rtl="true"] (Option to enable rtl mode )
|
71 |
+
|
72 |
+
= How to install : =
|
73 |
+
[youtube https://www.youtube.com/watch?v=frvJI6ZqYEo]
|
74 |
+
|
75 |
|
76 |
= Features include: =
|
77 |
* Added two new shortcode parameters "order and orderby"
|
124 |
3. Add a new page and add this short code
|
125 |
<code>[logoshowcase]</code>
|
126 |
4. Template code is
|
127 |
+
<code> echo do_shortcode('[logoshowcase]'); </code>
|
128 |
|
129 |
+
= How to install : =
|
130 |
+
[youtube https://www.youtube.com/watch?v=frvJI6ZqYEo]
|
131 |
|
132 |
== Screenshots ==
|
133 |
|
137 |
4. Add a Logo
|
138 |
|
139 |
|
140 |
+
== Changelog == Pause Autoplay On Focus
|
141 |
+
|
142 |
+
= 1.3.3 (13-11-2017) =
|
143 |
+
* [*] Fixed issue ie autoplay stop working if you click on a logo - Pause Autoplay On Focus
|
144 |
+
|
145 |
+
= 1.3.2 (23-9-2017) =
|
146 |
+
* [+] Added **Category Shortcode** field under Logo Showcase--> Logo Category
|
147 |
+
* [*] Fixed some issues
|
148 |
+
* [*] If you are using any cacheing plugin then please delete the cache after plugin update.
|
149 |
+
|
150 |
+
= 1.3.1 (15-9-2017) =
|
151 |
+
* [*] As feedback by users, we have set show_title parameter by default to false and slide to show 4
|
152 |
+
|
153 |
+
= 1.3 (14-9-2017) =
|
154 |
+
* [+] Added better files structure
|
155 |
+
* [+] Added rtl shortcode parameter for the shortcode
|
156 |
+
* [*] Fixed issue if user using slides_column="1" and in iPad and and lower size device showing 3 OR 4 logos at a time
|
157 |
+
* [*] Imorvied CSS and JS files
|
158 |
|
159 |
= 1.2.8(16-8-2017) =
|
160 |
* [*] Fixed .wplss-logo-slide::before, .wplss-logo-slide::after issue. Becouse of this a design(design given for LI tag in theme) was showing before logo.
|
204 |
|
205 |
== Upgrade Notice ==
|
206 |
|
207 |
+
= 1.3.3 (13-11-2017) =
|
208 |
+
* [*] Fixed issue ie autoplay stop working if you click on a logo - Pause Autoplay On Focus
|
209 |
+
|
210 |
+
= 1.3.2 (23-9-2017) =
|
211 |
+
* [+] Added **Category Shortcode** field under Logo Showcase--> Logo Category
|
212 |
+
* [*] Fixed some issues
|
213 |
+
* [*] If you are using any cacheing plugin then please delete the cache after plugin update.
|
214 |
+
|
215 |
+
|
216 |
+
= 1.3.1 (15-9-2017) =
|
217 |
+
* [*] As feedback by users, we have set show_title parameter by default to false and slide to show 4
|
218 |
+
|
219 |
+
= 1.3 (14-9-2017) =
|
220 |
+
* [+] Added better files structure
|
221 |
+
* [+] Added rtl shortcode parameter for the shortcode
|
222 |
+
* [*] Fixed issue if user using slides_column="1" and in iPad and and lower size device showing 3 OR 4 logos at a time
|
223 |
+
* [*] Imorvied CSS and JS files
|
224 |
+
|
225 |
= 1.2.8(16-8-2017) =
|
226 |
* [*] Fixed .wplss-logo-slide::before, .wplss-logo-slide::after issue. Becouse of this a design(design given for LI tag in theme) was showing before logo.
|
227 |
|
templates/design-1.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* 'logoshowcase' Design 1 Shortcodes HTML
|
4 |
+
*
|
5 |
+
* @package WP Logo Showcase Responsive Slider Pro
|
6 |
+
* @since 1.0.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
// Exit if accessed directly
|
10 |
+
if ( !defined( 'ABSPATH' ) ) exit;
|
11 |
+
?>
|
12 |
+
|
13 |
+
<div class="wpls-logo-cnt" title="<?php the_title(); ?>">
|
14 |
+
<div class="wpls-fix-box">
|
15 |
+
<?php if ($logourl != '') { ?>
|
16 |
+
<a href="<?php echo esc_url($logourl); ?>" target="<?php echo $link_target; ?>">
|
17 |
+
<img class="wp-post-image" src="<?php echo $feat_image; ?>" alt="<?php _e('Logo Image', 'logoshowcase'); ?>" />
|
18 |
+
</a>
|
19 |
+
<?php } else { ?>
|
20 |
+
<img class="wp-post-image" src="<?php echo $feat_image; ?>" alt="<?php _e('Logo Image', 'logoshowcase'); ?>" />
|
21 |
+
<?php } ?>
|
22 |
+
</div>
|
23 |
+
<?php if($show_title == "true") { ?>
|
24 |
+
<div class="logo-title"><?php the_title(); ?></div>
|
25 |
+
<?php } ?>
|
26 |
+
</div>
|