Version Description
(04-10-2017) = * [] Updated slick.min.js latest version * [] Fixed Firefox Reader View
Download this release
Release Info
Developer | anoopranawat |
Plugin | WP Responsive Recent Post Slider |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.8 to 1.3.2
- assets/css/arrow-left.png +0 -0
- assets/css/arrow-right.png +0 -0
- assets/css/recent-post-style.css +35 -6
- assets/css/slick.css +0 -16
- assets/js/slick.min.js +1 -16
- assets/js/wppsac-public.js +23 -0
- includes/admin/wprps-how-it-work.php +1 -1
- includes/class-wppsac-script.php +68 -0
- includes/shortcodes/wppsac-slider.php +119 -0
- includes/wppsac-function.php +128 -0
- readme.txt +37 -14
- templates/{designs/design-1.php → design-1.php} +13 -16
- templates/{designs/design-2.php → design-2.php} +14 -18
- templates/{designs/design-3.php → design-3.php} +14 -17
- templates/{designs/design-4.php → design-4.php} +14 -16
- templates/wprps-template.php +0 -255
- wp-recent-post-slider.php +9 -13
assets/css/arrow-left.png
CHANGED
Binary file
|
assets/css/arrow-right.png
CHANGED
Binary file
|
assets/css/recent-post-style.css
CHANGED
@@ -1,5 +1,34 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
.post-overlay{ position:relative;}
|
4 |
.recent-post-slider .wp-post-content a.readmorebtn {padding: 3px 10px;border: 1px solid #e7e7e7;text-decoration: none;margin: 5px 0;}
|
5 |
.wp-post-content {padding-bottom: 10px;}
|
@@ -10,7 +39,7 @@
|
|
10 |
.recent-post-slider .wp-post-date::after { background: #e96656; bottom: -4px;content: "";height: 2px; left: 0; margin: auto ; position: absolute; width: 50px; z-index: 1;}
|
11 |
.recent-post-slider .recentpost-categories ul.post-categories{margin:0px 0px 10px 0 !important; padding:0px !important; list-style:none !important; font-size: 0;}
|
12 |
.recent-post-slider .recentpost-categories ul.post-categories li{display:inline-block !important; margin: 2px !important; padding: 0 !important;}
|
13 |
-
.recent-post-slider .recentpost-categories ul.post-categories li a{padding:5px 13px; text-transform:uppercase; font-size:
|
14 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+1) a{background:#1abc9c;}
|
15 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+2) a{background:#3498db;}
|
16 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+3) a{background:#e74c3c;}
|
@@ -28,7 +57,7 @@
|
|
28 |
.recent-post-slider.design-1 .slick-arrow {bottom:0px !important; top:auto !important;}
|
29 |
.recent-post-slider.design-1 .slick-next{right:0px !important;}
|
30 |
.recent-post-slider.design-1 .slick-prev{right:31px !important; left:auto !important;}
|
31 |
-
.recent-post-slider.design-1 .slick-dots{left:15px !important; bottom:
|
32 |
|
33 |
/***************Design-2**************/
|
34 |
.recent-post-slider.design-2 .post-content-position{position:relative;}
|
@@ -40,7 +69,7 @@
|
|
40 |
.recent-post-slider.design-2 .slick-arrow {bottom:0px !important; top:auto !important;}
|
41 |
.recent-post-slider.design-2 .slick-next{right:0px !important;}
|
42 |
.recent-post-slider.design-2 .slick-prev{right:31px !important; left:auto !important;}
|
43 |
-
.recent-post-slider.design-2 .slick-dots{left:15px !important; bottom:
|
44 |
.recent-post-slider.design-2 .recentpost-inner-content {width: 100%; max-height: 100%; overflow: hidden;}
|
45 |
|
46 |
/***************Design-3**************/
|
@@ -57,7 +86,7 @@
|
|
57 |
.recent-post-slider.design-3 .slick-arrow {bottom:0px !important; top:auto !important;}
|
58 |
.recent-post-slider.design-3 .slick-next{right:0px !important;}
|
59 |
.recent-post-slider.design-3 .slick-prev{right:31px !important; left:auto !important;}
|
60 |
-
.recent-post-slider.design-3 .slick-dots{left:15px !important; bottom:
|
61 |
|
62 |
/***************Design-4**************/
|
63 |
.recent-post-slider.design-4 .post-list-content, .recent-post-slider.design-4 .post-list{width:100%; float:left; clear:both;}
|
@@ -67,7 +96,7 @@
|
|
67 |
.recent-post-slider.design-4 .recentpost-categories a{color:#fff;}
|
68 |
.recent-post-slider.design-4 .wp-medium-5{padding: 0px 10px 0 0;}
|
69 |
.recent-post-slider.design-4 .post-list-content .wp-medium-7{padding:10px 35px 10px 15px;}
|
70 |
-
.recent-post-slider.design-4 .slick-arrow{top:
|
71 |
.recent-post-slider.design-4 .slick-next{right:0px !important;}
|
72 |
.recent-post-slider.design-4 .slick-prev{left:0px !important;}
|
73 |
.recent-post-slider.design-4 .slick-dots{left: 0;right: 0;}
|
1 |
+
/************************************************************
|
2 |
+
Box Sizing
|
3 |
+
************************************************************/
|
4 |
+
.wpcolumn, .wpcolumns {-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;}
|
5 |
+
.recent-post-slider * {-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;}
|
6 |
|
7 |
+
/************************************************************
|
8 |
+
Clearfix
|
9 |
+
************************************************************/
|
10 |
+
.wppsac-clearfix:before, .wppsac-clearfix:after{content: "";display: table;}
|
11 |
+
.wppsac-clearfix::after{clear: both;}
|
12 |
+
.wppsac-clearfix{clear: both;}
|
13 |
+
|
14 |
+
/************************************************************
|
15 |
+
Slick slider
|
16 |
+
************************************************************/
|
17 |
+
.recent-post-slider{visibility: hidden; opacity:0; transition:opacity 0.5s linear;}
|
18 |
+
.recent-post-slider.slick-initialized { visibility: visible; opacity:1;}
|
19 |
+
.wppsac-hide{display:none;}
|
20 |
+
.recent-post-slider .slick-arrow{text-indent:-99999px;}
|
21 |
+
.recent-post-slider button.slick-arrow {background-color: transparent!important; cursor:pointer; width:30px; height:45px; position:absolute; z-index:9; border:0px !important;padding:0 !important; margin:0px !important; border-radius:0px !important;}
|
22 |
+
.recent-post-slider button.slick-next, .recent-post-slider button.slick-next:hover, .recent-post-slider button.slick-next:focus{background:rgba(0,0,0,0.5) url(arrow-right.png) center center no-repeat !important; background-size:25px 25px !important; outline:none !important; box-shadow: none;}
|
23 |
+
.recent-post-slider button.slick-prev, .recent-post-slider button.slick-prev:hover, .recent-post-slider button.slick-prev:focus{background:rgba(0,0,0,0.5) url(arrow-left.png) center center no-repeat !important; background-size:25px 25px !important; outline:none !important; box-shadow: none;}
|
24 |
+
.recent-post-slider .slick-dots{padding:0 !important; margin:0 !important; position:absolute; text-align:center;}
|
25 |
+
.recent-post-slider .slick-dots li button{text-indent:-99999px;}
|
26 |
+
.recent-post-slider .slick-dots li {list-style:none !important; display:inline-block !important; margin:0 2px !important; padding:0px !important;}
|
27 |
+
.recent-post-slider .slick-dots li button{background:#fff !important; margin:0px !important; padding:0px !important; border:1px solid #000; border-radius:50% !important; width:13px !important; height:13px !important;}
|
28 |
+
.recent-post-slider .slick-dots li button:focus{outline:none !important}
|
29 |
+
.recent-post-slider button:active{box-shadow: none;}
|
30 |
+
.recent-post-slider .slick-dots li.slick-active button{background:#444 !important;}
|
31 |
+
.recent-post-slider .slick-slide{padding:0px !important}
|
32 |
.post-overlay{ position:relative;}
|
33 |
.recent-post-slider .wp-post-content a.readmorebtn {padding: 3px 10px;border: 1px solid #e7e7e7;text-decoration: none;margin: 5px 0;}
|
34 |
.wp-post-content {padding-bottom: 10px;}
|
39 |
.recent-post-slider .wp-post-date::after { background: #e96656; bottom: -4px;content: "";height: 2px; left: 0; margin: auto ; position: absolute; width: 50px; z-index: 1;}
|
40 |
.recent-post-slider .recentpost-categories ul.post-categories{margin:0px 0px 10px 0 !important; padding:0px !important; list-style:none !important; font-size: 0;}
|
41 |
.recent-post-slider .recentpost-categories ul.post-categories li{display:inline-block !important; margin: 2px !important; padding: 0 !important;}
|
42 |
+
.recent-post-slider .recentpost-categories ul.post-categories li a{padding:5px 13px; text-transform:uppercase; font-size:11px; text-decoration:none; color: #fff; display: block; line-height: normal;}
|
43 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+1) a{background:#1abc9c;}
|
44 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+2) a{background:#3498db;}
|
45 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+3) a{background:#e74c3c;}
|
57 |
.recent-post-slider.design-1 .slick-arrow {bottom:0px !important; top:auto !important;}
|
58 |
.recent-post-slider.design-1 .slick-next{right:0px !important;}
|
59 |
.recent-post-slider.design-1 .slick-prev{right:31px !important; left:auto !important;}
|
60 |
+
.recent-post-slider.design-1 .slick-dots{left:15px !important; bottom:2px !important;}
|
61 |
|
62 |
/***************Design-2**************/
|
63 |
.recent-post-slider.design-2 .post-content-position{position:relative;}
|
69 |
.recent-post-slider.design-2 .slick-arrow {bottom:0px !important; top:auto !important;}
|
70 |
.recent-post-slider.design-2 .slick-next{right:0px !important;}
|
71 |
.recent-post-slider.design-2 .slick-prev{right:31px !important; left:auto !important;}
|
72 |
+
.recent-post-slider.design-2 .slick-dots{left:15px !important; bottom:2px !important;}
|
73 |
.recent-post-slider.design-2 .recentpost-inner-content {width: 100%; max-height: 100%; overflow: hidden;}
|
74 |
|
75 |
/***************Design-3**************/
|
86 |
.recent-post-slider.design-3 .slick-arrow {bottom:0px !important; top:auto !important;}
|
87 |
.recent-post-slider.design-3 .slick-next{right:0px !important;}
|
88 |
.recent-post-slider.design-3 .slick-prev{right:31px !important; left:auto !important;}
|
89 |
+
.recent-post-slider.design-3 .slick-dots{left:15px !important; bottom:2px !important;}
|
90 |
|
91 |
/***************Design-4**************/
|
92 |
.recent-post-slider.design-4 .post-list-content, .recent-post-slider.design-4 .post-list{width:100%; float:left; clear:both;}
|
96 |
.recent-post-slider.design-4 .recentpost-categories a{color:#fff;}
|
97 |
.recent-post-slider.design-4 .wp-medium-5{padding: 0px 10px 0 0;}
|
98 |
.recent-post-slider.design-4 .post-list-content .wp-medium-7{padding:10px 35px 10px 15px;}
|
99 |
+
.recent-post-slider.design-4 .slick-arrow{top:50% ;transform: translateY(-50%);-webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);}
|
100 |
.recent-post-slider.design-4 .slick-next{right:0px !important;}
|
101 |
.recent-post-slider.design-4 .slick-prev{left:0px !important;}
|
102 |
.recent-post-slider.design-4 .slick-dots{left: 0;right: 0;}
|
assets/css/slick.css
CHANGED
@@ -1,19 +1,3 @@
|
|
1 |
-
.recent-post-slider{visibility: hidden; opacity:0; transition:opacity 0.5s linear;}
|
2 |
-
.slick-initialized { visibility: visible; opacity:1;}
|
3 |
-
|
4 |
-
.recent-post-slider .slick-arrow{text-indent:-99999px;}
|
5 |
-
.recent-post-slider button.slick-arrow {background-color: transparent!important; width:30px; height:51px; position:absolute; z-index:99; border:0px !important;padding:0 !important; margin:0px !important; border-radius:0px !important;}
|
6 |
-
.recent-post-slider button.slick-next, .recent-post-slider button.slick-next:hover, .recent-post-slider button.slick-next:focus{background:url(arrow-right.png) 0 0 no-repeat !important; background-size:30px 51px !important; outline:none !important; box-shadow: none;}
|
7 |
-
.recent-post-slider button.slick-prev, .recent-post-slider button.slick-prev:hover, .recent-post-slider button.slick-prev:focus{background:url(arrow-left.png) 0 0 no-repeat !important; background-size:30px 51px !important; outline:none !important; box-shadow: none;}
|
8 |
-
.recent-post-slider .slick-dots{padding:0 !important; margin:0 !important; position:absolute; text-align:center;}
|
9 |
-
.recent-post-slider .slick-dots li button{text-indent:-99999px;}
|
10 |
-
.recent-post-slider .slick-dots li {list-style:none !important; display:inline-block !important; margin:0 2px !important; padding:0px !important;}
|
11 |
-
.recent-post-slider .slick-dots li button{background:#fff !important; margin:0px !important; padding:0px !important; border:1px solid #000; border-radius:50% !important; width:13px !important; height:13px !important;}
|
12 |
-
.recent-post-slider .slick-dots li button:focus{outline:none !important}
|
13 |
-
.recent-post-slider button:active{box-shadow: none;}
|
14 |
-
.recent-post-slider .slick-dots li.slick-active button{background:#444 !important;}
|
15 |
-
.recent-post-slider .slick-slide{padding:0px !important}
|
16 |
-
|
17 |
/*************** Slider ************/
|
18 |
.slick-loading .slick-list{ background: #fff url('ajax-loader.gif') center center no-repeat;}
|
19 |
.slick-slider{ position: relative;display: block; -moz-box-sizing: border-box;box-sizing: border-box; -webkit-user-select: none;-moz-user-select: none;-ms-user-select: none; user-select: none; -webkit-touch-callout: none;-khtml-user-select: none;-ms-touch-action: pan-y;touch-action: pan-y;-webkit-tap-highlight-color: transparent;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;-ms-user-select: none; user-select: none; -webkit-touch-callout: none;-khtml-user-select: none;-ms-touch-action: pan-y;touch-action: pan-y;-webkit-tap-highlight-color: transparent;}
|
assets/js/slick.min.js
CHANGED
@@ -1,16 +1 @@
|
|
1 |
-
/*
|
2 |
-
_ _ _ _
|
3 |
-
___| (_) ___| | __ (_)___
|
4 |
-
/ __| | |/ __| |/ / | / __|
|
5 |
-
\__ \ | | (__| < _ | \__ \
|
6 |
-
|___/_|_|\___|_|\_(_)/ |___/
|
7 |
-
|__/
|
8 |
-
Version: 1.6.0
|
9 |
-
Author: Ken Wheeler
|
10 |
-
Website: http://kenwheeler.github.io
|
11 |
-
Docs: http://kenwheeler.github.io/slick
|
12 |
-
Repo: http://github.com/kenwheeler/slick
|
13 |
-
Issues: http://github.com/kenwheeler/slick/issues
|
14 |
-
*/
|
15 |
-
!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,
|
16 |
-
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/wppsac-public.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
|
3 |
+
// For Slider
|
4 |
+
$( '.recent-post-slider' ).each(function( index ) {
|
5 |
+
|
6 |
+
var slider_id = $(this).attr('id');
|
7 |
+
var slider_conf = $.parseJSON( $(this).closest('.wppsac-slick-slider-wrp').find('.wppsac-slider-conf').attr('data-conf'));
|
8 |
+
|
9 |
+
if( typeof(slider_id) != 'undefined' && slider_id != '' ) {
|
10 |
+
jQuery('#'+slider_id).slick({
|
11 |
+
dots : (slider_conf.dots) == "true" ? true : false,
|
12 |
+
infinite : true,
|
13 |
+
arrows : (slider_conf.arrows) == "true" ? true : false,
|
14 |
+
speed : parseInt(slider_conf.speed),
|
15 |
+
autoplay : (slider_conf.autoplay) == "true" ? true : false,
|
16 |
+
autoplaySpeed : parseInt(slider_conf.autoplay_interval),
|
17 |
+
slidesToShow : 1,
|
18 |
+
slidesToScroll : 1,
|
19 |
+
rtl : (slider_conf.rtl) == "true" ? true : false,
|
20 |
+
});
|
21 |
+
}
|
22 |
+
});
|
23 |
+
});
|
includes/admin/wprps-how-it-work.php
CHANGED
@@ -208,7 +208,7 @@ function wprpsm_howitwork_page() { ?>
|
|
208 |
</th>
|
209 |
<td>
|
210 |
<p><?php _e('Check plugin document for shortcode parameters and demo for designs.', 'wp-responsive-recent-post-slider'); ?></p> <br/>
|
211 |
-
<a class="button button-primary" href="
|
212 |
<a class="button button-primary" href="http://demo.wponlinesupport.com/recent-post-slider-demo/?utm_source=hp&event=demo" target="_blank"><?php _e('Demo for Designs', 'wp-responsive-recent-post-slider'); ?></a>
|
213 |
</td>
|
214 |
</tr>
|
208 |
</th>
|
209 |
<td>
|
210 |
<p><?php _e('Check plugin document for shortcode parameters and demo for designs.', 'wp-responsive-recent-post-slider'); ?></p> <br/>
|
211 |
+
<a class="button button-primary" href="http://docs.wponlinesupport.com/wp-responsive-recent-post-slider/" target="_blank"><?php _e('Documentation', 'wp-responsive-recent-post-slider'); ?></a>
|
212 |
<a class="button button-primary" href="http://demo.wponlinesupport.com/recent-post-slider-demo/?utm_source=hp&event=demo" target="_blank"><?php _e('Demo for Designs', 'wp-responsive-recent-post-slider'); ?></a>
|
213 |
</td>
|
214 |
</tr>
|
includes/class-wppsac-script.php
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Script Class
|
4 |
+
*
|
5 |
+
* Handles the script and style functionality of plugin
|
6 |
+
*
|
7 |
+
* @package WP Responsive Recent Post Slider
|
8 |
+
* @since 1.0.0
|
9 |
+
*/
|
10 |
+
|
11 |
+
// Exit if accessed directly
|
12 |
+
if ( !defined( 'ABSPATH' ) ) exit;
|
13 |
+
|
14 |
+
class Wppsac_Script {
|
15 |
+
|
16 |
+
function __construct() {
|
17 |
+
|
18 |
+
// Action to add style at front side
|
19 |
+
add_action( 'wp_enqueue_scripts', array($this, 'wppsac_front_style') );
|
20 |
+
|
21 |
+
// Action to add script at front side
|
22 |
+
add_action( 'wp_enqueue_scripts', array($this, 'wppsac_front_script') );
|
23 |
+
|
24 |
+
}
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Function to add style at front side
|
28 |
+
*
|
29 |
+
* @package WP Responsive Recent Post Slider
|
30 |
+
* @since 1.0.0
|
31 |
+
*/
|
32 |
+
function wppsac_front_style() {
|
33 |
+
|
34 |
+
// Registring and enqueing slick slider css
|
35 |
+
if( !wp_style_is( 'wpos-slick-style', 'registered' ) ) {
|
36 |
+
wp_register_style( 'wpos-slick-style', WPRPS_URL.'assets/css/slick.css', array(), WPRPS_VERSION );
|
37 |
+
wp_enqueue_style( 'wpos-slick-style' );
|
38 |
+
}
|
39 |
+
|
40 |
+
// Registring and enqueing public css
|
41 |
+
wp_register_style( 'wppsac-public-style', WPRPS_URL.'assets/css/recent-post-style.css', array(), WPRPS_VERSION );
|
42 |
+
wp_enqueue_style( 'wppsac-public-style' );
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Function to add script at front side
|
47 |
+
*
|
48 |
+
* @package WP Responsive Recent Post Slider
|
49 |
+
* @since 1.0.0
|
50 |
+
*/
|
51 |
+
function wppsac_front_script() {
|
52 |
+
|
53 |
+
// Registring slick slider script
|
54 |
+
if( !wp_script_is( 'wpos-slick-jquery', 'registered' ) ) {
|
55 |
+
wp_register_script( 'wpos-slick-jquery', WPRPS_URL.'assets/js/slick.min.js', array('jquery'), WPRPS_VERSION, true );
|
56 |
+
}
|
57 |
+
|
58 |
+
// Registring and enqueing public script
|
59 |
+
wp_register_script( 'wppsac-public-script', WPRPS_URL.'assets/js/wppsac-public.js', array('jquery'), WPRPS_VERSION, true );
|
60 |
+
wp_localize_script( 'wppsac-public-script', 'Wppsac', array(
|
61 |
+
'is_mobile' => (wp_is_mobile()) ? 1 : 0,
|
62 |
+
'is_rtl' => (is_rtl()) ? 1 : 0
|
63 |
+
));
|
64 |
+
}
|
65 |
+
|
66 |
+
}
|
67 |
+
|
68 |
+
$wppsac_script = new Wppsac_Script();
|
includes/shortcodes/wppsac-slider.php
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// Exit if accessed directly
|
4 |
+
if ( !defined( 'ABSPATH' ) ) exit;
|
5 |
+
|
6 |
+
function get_wppsac_slider( $atts, $content = null ) {
|
7 |
+
|
8 |
+
extract(shortcode_atts(array(
|
9 |
+
"limit" => '-1',
|
10 |
+
"design" => 'design-1',
|
11 |
+
"category" => '',
|
12 |
+
"show_date" => 'true',
|
13 |
+
"show_category_name" => 'true',
|
14 |
+
"show_content" => 'true',
|
15 |
+
"content_words_limit" => '20',
|
16 |
+
"dots" => 'true',
|
17 |
+
"arrows" => 'true',
|
18 |
+
"autoplay" => 'true',
|
19 |
+
"autoplay_interval" => '3000',
|
20 |
+
"speed" => '500',
|
21 |
+
"hide_post" => array(),
|
22 |
+
"post_type" => 'post',
|
23 |
+
"taxonomy" => 'category',
|
24 |
+
"show_author" => 'true',
|
25 |
+
"show_read_more" => 'true',
|
26 |
+
"rtl" => 'false'
|
27 |
+
), $atts));
|
28 |
+
|
29 |
+
$unique = wppsac_get_unique();
|
30 |
+
$shortcode_designs = wppsac_slider_designs();
|
31 |
+
$posts_per_page = !empty($limit) ? $limit : '-1';
|
32 |
+
$cat = (!empty($category)) ? explode(',', $category) : '';
|
33 |
+
$design = ($design && (array_key_exists(trim($design), $shortcode_designs))) ? trim($design) : 'design-1';
|
34 |
+
$showCategory = ( $show_category_name == 'false' ) ? false : true;
|
35 |
+
$showContent = ( $show_content == 'false' ) ? false : true;
|
36 |
+
$showDate = ( $show_date == 'false') ? false : true;
|
37 |
+
$showAuthor = ( $show_author == 'false') ? false : true;
|
38 |
+
$showreadmore = ( $show_read_more == 'false') ? false : true;
|
39 |
+
$words_limit = !empty( $content_words_limit ) ? $content_words_limit : 20;
|
40 |
+
$dots = ( $dots == 'false' ) ? 'false' : 'true';
|
41 |
+
$arrows = ( $arrows == 'false' ) ? 'false' : 'true';
|
42 |
+
$autoplay = ( $autoplay == 'false' ) ? 'false' : 'true';
|
43 |
+
$autoplay_interval = (!empty($autoplay_interval)) ? $autoplay_interval : 3000;
|
44 |
+
$speed = (!empty($speed)) ? $speed : 500;
|
45 |
+
$post_type = !empty($post_type) ? $post_type : 'post';
|
46 |
+
$taxonomy = !empty($taxonomy) ? $taxonomy : 'category';
|
47 |
+
$exclude_post = !empty($hide_post) ? explode(',', $hide_post) : array();
|
48 |
+
|
49 |
+
// For RTL
|
50 |
+
if( empty($rtl) && is_rtl() ) {
|
51 |
+
$rtl = 'true';
|
52 |
+
} elseif ( $rtl == 'true' ) {
|
53 |
+
$rtl = 'true';
|
54 |
+
} else {
|
55 |
+
$rtl = 'false';
|
56 |
+
}
|
57 |
+
|
58 |
+
// Shortcode file
|
59 |
+
$design_file_path = WPRPS_DIR . '/templates/' . $design . '.php';
|
60 |
+
$design_file = (file_exists($design_file_path)) ? $design_file_path : '';
|
61 |
+
|
62 |
+
// Enqueus required script
|
63 |
+
wp_enqueue_script( 'wpos-slick-jquery' );
|
64 |
+
wp_enqueue_script( 'wppsac-public-script' );
|
65 |
+
|
66 |
+
// Slider configuration
|
67 |
+
$slider_conf = compact('dots', 'arrows', 'autoplay', 'autoplay_interval','speed', 'rtl');
|
68 |
+
|
69 |
+
// Taking some global
|
70 |
+
global $post;
|
71 |
+
|
72 |
+
ob_start();
|
73 |
+
|
74 |
+
// WP Query Parameters
|
75 |
+
$args = array (
|
76 |
+
'post_type' => $post_type,
|
77 |
+
'post_status' => array( 'publish' ),
|
78 |
+
'orderby' => 'date',
|
79 |
+
'order' => 'DESC',
|
80 |
+
'posts_per_page' => $posts_per_page,
|
81 |
+
'post__not_in' => $exclude_post,
|
82 |
+
);
|
83 |
+
|
84 |
+
// Category Parameter
|
85 |
+
if($cat != "") {
|
86 |
+
|
87 |
+
$args['tax_query'] = array(
|
88 |
+
array(
|
89 |
+
'taxonomy' => $taxonomy,
|
90 |
+
'field' => 'term_id',
|
91 |
+
'terms' => $cat,
|
92 |
+
));
|
93 |
+
}
|
94 |
+
|
95 |
+
$query = new WP_Query($args);
|
96 |
+
$post_count = $query->post_count;
|
97 |
+
|
98 |
+
if ( $query->have_posts() ) :
|
99 |
+
?>
|
100 |
+
<div class="wppsac-slick-slider-wrp wppsac-clearfix">
|
101 |
+
<div id="recent-post-slider-<?php echo $unique; ?>" class="recent-post-slider <?php echo $design; ?>">
|
102 |
+
<?php
|
103 |
+
while ( $query->have_posts() ) : $query->the_post();
|
104 |
+
$post_id = isset($post->ID) ? $post->ID : '';
|
105 |
+
$cat_list = wppsac_get_category_list($post->ID, $taxonomy);
|
106 |
+
$feat_image = wppsac_get_post_featured_image( $post->ID, 'full', true );
|
107 |
+
if( $design_file ) {
|
108 |
+
include( $design_file );
|
109 |
+
}
|
110 |
+
endwhile; ?>
|
111 |
+
</div>
|
112 |
+
<div class="wppsac-slider-conf wppsac-hide" data-conf="<?php echo htmlspecialchars(json_encode($slider_conf)); ?>"></div>
|
113 |
+
</div>
|
114 |
+
<?php
|
115 |
+
endif;
|
116 |
+
wp_reset_query();
|
117 |
+
return ob_get_clean();
|
118 |
+
}
|
119 |
+
add_shortcode('recent_post_slider', 'get_wppsac_slider');
|
includes/wppsac-function.php
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Plugin generic functions file
|
4 |
+
*
|
5 |
+
* @package WP Responsive Recent Post Slider
|
6 |
+
* @since 1.0.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
// Exit if accessed directly
|
10 |
+
if ( !defined( 'ABSPATH' ) ) exit;
|
11 |
+
/**
|
12 |
+
* Function to get plugin image sizes array
|
13 |
+
*
|
14 |
+
* @package WP Responsive Recent Post Slider
|
15 |
+
* @since 1.2.2
|
16 |
+
*/
|
17 |
+
function wppsac_get_unique() {
|
18 |
+
static $unique = 0;
|
19 |
+
$unique++;
|
20 |
+
|
21 |
+
return $unique;
|
22 |
+
}
|
23 |
+
/**
|
24 |
+
* Function to get post featured image
|
25 |
+
*
|
26 |
+
* @package WP Responsive Recent Post Slider
|
27 |
+
* @since 1.2.5
|
28 |
+
*/
|
29 |
+
function wppsac_get_post_featured_image( $post_id = '', $size = 'full') {
|
30 |
+
$size = !empty($size) ? $size : 'full';
|
31 |
+
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size );
|
32 |
+
|
33 |
+
if( !empty($image) ) {
|
34 |
+
$image = isset($image[0]) ? $image[0] : '';
|
35 |
+
}
|
36 |
+
return $image;
|
37 |
+
}
|
38 |
+
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Function to get Taxonomies list
|
42 |
+
*
|
43 |
+
* @package WP Responsive Recent Post Slider Pro
|
44 |
+
* @since 1.3.3
|
45 |
+
*/
|
46 |
+
function wppsac_get_category_list( $post_id = 0, $taxonomy = '' ) {
|
47 |
+
$output = '';
|
48 |
+
$terms = get_the_terms( $post_id, $taxonomy );
|
49 |
+
|
50 |
+
if( $terms && !is_wp_error($terms) && !empty($taxonomy) ) {
|
51 |
+
$output .= '<ul class="post-categories wppsac-post-categories">';
|
52 |
+
foreach ( $terms as $term ) {
|
53 |
+
$output .= '<li><a href="'.get_term_link($term).'" rel="'.$taxonomy.'"> '.$term->name.' </a></li>';
|
54 |
+
}
|
55 |
+
$output .= '</ul>';
|
56 |
+
}
|
57 |
+
return $output;
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Function to get shortcode designs
|
63 |
+
*
|
64 |
+
* @package WP Responsive Recent Post Slider
|
65 |
+
* @since 1.2.5
|
66 |
+
*/
|
67 |
+
function wppsac_slider_designs() {
|
68 |
+
$design_arr = array(
|
69 |
+
'design-1' => __('Design 1', 'wp-responsive-recent-post-slider'),
|
70 |
+
'design-2' => __('Design 2', 'wp-responsive-recent-post-slider'),
|
71 |
+
'design-3' => __('Design 3', 'wp-responsive-recent-post-slider'),
|
72 |
+
'design-4' => __('Design 4', 'wp-responsive-recent-post-slider'),
|
73 |
+
);
|
74 |
+
return apply_filters('wppsac_slider_designs', $design_arr );
|
75 |
+
}
|
76 |
+
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Function to add array after specific key
|
80 |
+
*
|
81 |
+
* @package wp-responsive-recent-post-slider
|
82 |
+
* @since 1.2.5
|
83 |
+
*/
|
84 |
+
function wppsac_add_array(&$array, $value, $index, $from_last = false) {
|
85 |
+
|
86 |
+
if( is_array($array) && is_array($value) ) {
|
87 |
+
|
88 |
+
if( $from_last ) {
|
89 |
+
$total_count = count($array);
|
90 |
+
$index = (!empty($total_count) && ($total_count > $index)) ? ($total_count-$index): $index;
|
91 |
+
}
|
92 |
+
|
93 |
+
$split_arr = array_splice($array, max(0, $index));
|
94 |
+
$array = array_merge( $array, $value, $split_arr);
|
95 |
+
}
|
96 |
+
|
97 |
+
return $array;
|
98 |
+
}
|
99 |
+
|
100 |
+
|
101 |
+
// Manage Category Shortcode Columns
|
102 |
+
|
103 |
+
add_filter("manage_category_custom_column", 'wppsac_category_columns' , 10, 3);
|
104 |
+
add_filter("manage_edit-category_columns", 'wppsac_category_manage_columns');
|
105 |
+
function wppsac_category_manage_columns($columns) {
|
106 |
+
$new_columns['wpos_shortcode'] = __( 'Category ID', 'wp-responsive-recent-post-slider' );
|
107 |
+
$columns = wppsac_add_array( $columns, $new_columns, 2 );
|
108 |
+
return $columns;
|
109 |
+
}
|
110 |
+
|
111 |
+
function wppsac_category_columns($ouput, $column_name, $tax_id) {
|
112 |
+
if( $column_name == 'wpos_shortcode' ) {
|
113 |
+
$ouput .= $tax_id;
|
114 |
+
|
115 |
+
}
|
116 |
+
return $ouput;
|
117 |
+
|
118 |
+
}
|
119 |
+
|
120 |
+
// Manage conetnt limit
|
121 |
+
|
122 |
+
function wprps_limit_words($string, $word_limit)
|
123 |
+
{
|
124 |
+
$words = explode(' ', $string, ($word_limit + 1));
|
125 |
+
if(count($words) > $word_limit)
|
126 |
+
array_pop($words);
|
127 |
+
return implode(' ', $words);
|
128 |
+
}
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: wponlinesupport, anoopranawat
|
3 |
Tags: wponlinesupport, post slider, posts slider, recent post slider, recent posts slider, slider, responsive post slider, responsive posts slider, responsive recent post slider, responsive recent posts slider, wordpress posts slider, post slideshow, posts slideshow, recent posts slideshow, shortcodes
|
4 |
Requires at least: 3.1
|
5 |
-
Tested up to: 4.8.
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -26,35 +26,26 @@ Display unlimited number of WordPresss posts slider in a single page or post wit
|
|
26 |
|
27 |
= Here is the Recent Post Slider shortcode example =
|
28 |
|
29 |
-
* Main shortcode
|
30 |
|
31 |
<code>[recent_post_slider]</code>
|
32 |
|
33 |
-
* To display only latest 4 post
|
34 |
|
35 |
<code>[recent_post_slider limit="4"]</code>
|
36 |
Where limit define the number of posts to display.
|
37 |
|
38 |
-
* If you want to display Recent Post Slider by category then use this short code
|
39 |
|
40 |
<code>[recent_post_slider category="category_ID"]</code>
|
41 |
|
42 |
-
* We have given 4 designs. For designs use the following shortcode
|
43 |
|
44 |
<code>[recent_post_slider design="design-1"]</code>
|
45 |
Where designs are : design-1, design-2, design-3, design-4
|
46 |
|
47 |
You can see and select all the designs from Post -> Post Slider Designs. Here you can use the shortcode for design that you like and want to use for your website.
|
48 |
|
49 |
-
= Complete shortcode is =
|
50 |
-
|
51 |
-
<code>[recent_post_slider limit="4" design="design-1" category="8" show_category_name="true"
|
52 |
-
show_content="true" show_date="true" dots="true" arrows="true" autoplay="true"
|
53 |
-
autoplay_interval="5000" speed="1000" content_words_limit="20"
|
54 |
-
post_type="post" hide_post="1,2,3" show_author="false" show_read_more="true"]</code>
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
= Here is Template code =
|
59 |
<code><?php echo do_shortcode('[recent_post_slider]'); ?> </code>
|
60 |
|
@@ -74,6 +65,7 @@ post_type="post" hide_post="1,2,3" show_author="false" show_read_more="true"]</c
|
|
74 |
* **content_words_limit** : [recent_post_slider content_words_limit="30" ] (Control post short content Words limit. By default limit is 20 words).
|
75 |
* **Added New Shortcode Parameters**
|
76 |
* **post_type:** [recent_post_slider post_type="post"] (ie added custom post type support where you add custom post. By default value is "post")
|
|
|
77 |
* **hide_post:** [recent_post_slider hide_post="1,2,3"] (ie exclude some posts with their post-id that you do not want to display)
|
78 |
* **show_author** [recent_post_slider show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
|
79 |
* **show_read_more** [recent_post_slider show_read_more="true"] (Display read more button. Values are "true OR false")
|
@@ -101,6 +93,8 @@ post_type="post" hide_post="1,2,3" show_author="false" show_read_more="true"]</c
|
|
101 |
* Custom post type support.
|
102 |
* Exclude Post with their ID's that you do not want to display.
|
103 |
|
|
|
|
|
104 |
|
105 |
== Installation ==
|
106 |
|
@@ -109,6 +103,9 @@ post_type="post" hide_post="1,2,3" show_author="false" show_read_more="true"]</c
|
|
109 |
3. Add this short code where you want to display recent post slider
|
110 |
<code>[recent_post_slider]</code>
|
111 |
|
|
|
|
|
|
|
112 |
== Screenshots ==
|
113 |
|
114 |
1. Design-1
|
@@ -120,6 +117,19 @@ post_type="post" hide_post="1,2,3" show_author="false" show_read_more="true"]</c
|
|
120 |
|
121 |
== Changelog ==
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
= 1.2.8 =
|
124 |
* [+] RTL Supported.
|
125 |
|
@@ -163,6 +173,19 @@ post_type="post" hide_post="1,2,3" show_author="false" show_read_more="true"]</c
|
|
163 |
|
164 |
== Upgrade Notice ==
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
= 1.2.8 =
|
167 |
* [+] RTL Supported.
|
168 |
|
2 |
Contributors: wponlinesupport, anoopranawat
|
3 |
Tags: wponlinesupport, post slider, posts slider, recent post slider, recent posts slider, slider, responsive post slider, responsive posts slider, responsive recent post slider, responsive recent posts slider, wordpress posts slider, post slideshow, posts slideshow, recent posts slideshow, shortcodes
|
4 |
Requires at least: 3.1
|
5 |
+
Tested up to: 4.8.2
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
26 |
|
27 |
= Here is the Recent Post Slider shortcode example =
|
28 |
|
29 |
+
* **Main shortcode:**
|
30 |
|
31 |
<code>[recent_post_slider]</code>
|
32 |
|
33 |
+
* **To display only latest 4 post:**
|
34 |
|
35 |
<code>[recent_post_slider limit="4"]</code>
|
36 |
Where limit define the number of posts to display.
|
37 |
|
38 |
+
* **If you want to display Recent Post Slider by category then use this short code:**
|
39 |
|
40 |
<code>[recent_post_slider category="category_ID"]</code>
|
41 |
|
42 |
+
* **We have given 4 designs. For designs use the following shortcode:**
|
43 |
|
44 |
<code>[recent_post_slider design="design-1"]</code>
|
45 |
Where designs are : design-1, design-2, design-3, design-4
|
46 |
|
47 |
You can see and select all the designs from Post -> Post Slider Designs. Here you can use the shortcode for design that you like and want to use for your website.
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
= Here is Template code =
|
50 |
<code><?php echo do_shortcode('[recent_post_slider]'); ?> </code>
|
51 |
|
65 |
* **content_words_limit** : [recent_post_slider content_words_limit="30" ] (Control post short content Words limit. By default limit is 20 words).
|
66 |
* **Added New Shortcode Parameters**
|
67 |
* **post_type:** [recent_post_slider post_type="post"] (ie added custom post type support where you add custom post. By default value is "post")
|
68 |
+
* **taxonomy:** [recent_post_slider taxonomy="category"] (ie added custom taxonomy support where you add custom taxonomy. By default value is "category")
|
69 |
* **hide_post:** [recent_post_slider hide_post="1,2,3"] (ie exclude some posts with their post-id that you do not want to display)
|
70 |
* **show_author** [recent_post_slider show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
|
71 |
* **show_read_more** [recent_post_slider show_read_more="true"] (Display read more button. Values are "true OR false")
|
93 |
* Custom post type support.
|
94 |
* Exclude Post with their ID's that you do not want to display.
|
95 |
|
96 |
+
= How to install : =
|
97 |
+
[youtube https://www.youtube.com/watch?v=Bpi8f1JEBzc]
|
98 |
|
99 |
== Installation ==
|
100 |
|
103 |
3. Add this short code where you want to display recent post slider
|
104 |
<code>[recent_post_slider]</code>
|
105 |
|
106 |
+
= How to install : =
|
107 |
+
[youtube https://www.youtube.com/watch?v=Bpi8f1JEBzc]
|
108 |
+
|
109 |
== Screenshots ==
|
110 |
|
111 |
1. Design-1
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
= 1.3.2 (04-10-2017) =
|
121 |
+
* [*] Updated slick.min.js latest version
|
122 |
+
* [*] Fixed Firefox Reader View
|
123 |
+
|
124 |
+
= 1.3.1 (26-09-2017) =
|
125 |
+
* [*] Thanks to @cruisertech showing us a bug in the version 1.3 ie category parameter was missing.
|
126 |
+
|
127 |
+
= 1.3 (26-09-2017) =
|
128 |
+
* [+] Now use same design multiple time
|
129 |
+
* [+] Added custom taxonomy support with custom post type
|
130 |
+
* [*] Plugin files structure modified
|
131 |
+
* [*] If you are using any cache plugin, kinldy clear all cache after plugin update
|
132 |
+
|
133 |
= 1.2.8 =
|
134 |
* [+] RTL Supported.
|
135 |
|
173 |
|
174 |
== Upgrade Notice ==
|
175 |
|
176 |
+
= 1.3.2 (04-10-2017) =
|
177 |
+
* [*] Updated slick.min.js latest version
|
178 |
+
* [*] Fixed Firefox Reader View
|
179 |
+
|
180 |
+
= 1.3.1 (26-09-2017) =
|
181 |
+
* [*] Thanks to @cruisertech showing us a bug in the version 1.3 ie category parameter was missing.
|
182 |
+
|
183 |
+
= 1.3 (26-09-2017) =
|
184 |
+
* [+] Now use same design multiple time
|
185 |
+
* [+] Added custom taxonomy support with custom post type
|
186 |
+
* [*] Plugin files structure modified
|
187 |
+
* [*] If you are using any cache plugin, kinldy clear all cache after plugin update
|
188 |
+
|
189 |
= 1.2.8 =
|
190 |
* [+] RTL Supported.
|
191 |
|
templates/{designs/design-1.php → design-1.php}
RENAMED
@@ -1,31 +1,28 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
7 |
-
<div class="post-slides">
|
8 |
<div class="post-content-position">
|
9 |
<div class="post-content-left wp-medium-8 wpcolumns">
|
10 |
|
11 |
-
<?php if($showCategory
|
12 |
<div class="recentpost-categories">
|
13 |
-
<?php echo
|
14 |
</div>
|
15 |
-
<?php } ?>
|
16 |
-
|
17 |
<h2 class="wp-post-title">
|
18 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
19 |
</h2>
|
20 |
-
<?php if($showDate
|
21 |
<div class="wp-post-date">
|
22 |
-
<?php if($showAuthor
|
23 |
-
<?php echo ($showAuthor
|
24 |
-
<?php if($showDate
|
25 |
</div>
|
26 |
<?php } ?>
|
27 |
|
28 |
-
<?php if($showContent
|
29 |
<div class="wp-post-content">
|
30 |
<?php
|
31 |
$customExcerpt = get_the_excerpt();
|
@@ -36,7 +33,7 @@ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
|
36 |
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
37 |
<?php } ?>
|
38 |
|
39 |
-
<?php if($showreadmore
|
40 |
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
41 |
<?php } ?>
|
42 |
|
1 |
<?php
|
2 |
+
// Exit if accessed directly
|
3 |
+
if ( !defined( 'ABSPATH' ) ) exit; ?>
|
4 |
+
|
5 |
+
<div class="post-slides">
|
|
|
|
|
6 |
<div class="post-content-position">
|
7 |
<div class="post-content-left wp-medium-8 wpcolumns">
|
8 |
|
9 |
+
<?php if($showCategory) { ?>
|
10 |
<div class="recentpost-categories">
|
11 |
+
<?php echo $cat_list; ?>
|
12 |
</div>
|
13 |
+
<?php } ?>
|
|
|
14 |
<h2 class="wp-post-title">
|
15 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
16 |
</h2>
|
17 |
+
<?php if($showDate || $showAuthor) { ?>
|
18 |
<div class="wp-post-date">
|
19 |
+
<?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
|
20 |
+
<?php echo ($showAuthor && $showDate) ? ' / ' : '' ?>
|
21 |
+
<?php if($showDate) { echo get_the_date(); } ?>
|
22 |
</div>
|
23 |
<?php } ?>
|
24 |
|
25 |
+
<?php if($showContent) { ?>
|
26 |
<div class="wp-post-content">
|
27 |
<?php
|
28 |
$customExcerpt = get_the_excerpt();
|
33 |
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
34 |
<?php } ?>
|
35 |
|
36 |
+
<?php if($showreadmore) { ?>
|
37 |
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
38 |
<?php } ?>
|
39 |
|
templates/{designs/design-2.php → design-2.php}
RENAMED
@@ -1,31 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
global $post_id;
|
5 |
-
global $post;
|
6 |
-
$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
7 |
<div class="post-slides">
|
8 |
-
<div class="post-content-position">
|
9 |
-
|
10 |
<!-- Content-left/right -->
|
11 |
<div class="post-content-left wp-medium-6 wpcolumns">
|
12 |
<div class="recentpost-inner-content">
|
13 |
-
<?php if($showCategory
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
<h2 class="wp-post-title">
|
19 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
20 |
</h2>
|
21 |
-
<?php if($showDate
|
22 |
<div class="wp-post-date">
|
23 |
-
<?php if($showAuthor
|
24 |
-
<?php echo ($showAuthor
|
25 |
-
<?php if($showDate
|
26 |
</div>
|
27 |
<?php } ?>
|
28 |
-
<?php if($showContent
|
29 |
<div class="wp-post-content">
|
30 |
<?php
|
31 |
$customExcerpt = get_the_excerpt();
|
@@ -36,7 +32,7 @@ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
|
36 |
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
37 |
<?php } ?>
|
38 |
|
39 |
-
<?php if($showreadmore
|
40 |
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
41 |
<?php } ?>
|
42 |
|
1 |
<?php
|
2 |
+
// Exit if accessed directly
|
3 |
+
if ( !defined( 'ABSPATH' ) ) exit; ?>
|
|
|
|
|
|
|
4 |
<div class="post-slides">
|
5 |
+
<div class="post-content-position">
|
|
|
6 |
<!-- Content-left/right -->
|
7 |
<div class="post-content-left wp-medium-6 wpcolumns">
|
8 |
<div class="recentpost-inner-content">
|
9 |
+
<?php if($showCategory) { ?>
|
10 |
+
<div class="recentpost-categories">
|
11 |
+
<?php echo $cat_list; ?>
|
12 |
+
</div>
|
13 |
+
<?php } ?>
|
14 |
<h2 class="wp-post-title">
|
15 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
16 |
</h2>
|
17 |
+
<?php if($showDate || $showAuthor) { ?>
|
18 |
<div class="wp-post-date">
|
19 |
+
<?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
|
20 |
+
<?php echo ($showAuthor && $showDate) ? ' / ' : '' ?>
|
21 |
+
<?php if($showDate) { echo get_the_date(); } ?>
|
22 |
</div>
|
23 |
<?php } ?>
|
24 |
+
<?php if($showContent) { ?>
|
25 |
<div class="wp-post-content">
|
26 |
<?php
|
27 |
$customExcerpt = get_the_excerpt();
|
32 |
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
33 |
<?php } ?>
|
34 |
|
35 |
+
<?php if($showreadmore) { ?>
|
36 |
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
37 |
<?php } ?>
|
38 |
|
templates/{designs/design-3.php → design-3.php}
RENAMED
@@ -1,34 +1,31 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
global $post_id;
|
5 |
-
global $post;
|
6 |
-
$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
7 |
|
8 |
<div class="post-slides">
|
9 |
<div class="post-overlay">
|
10 |
<div class="post-image-bg">
|
11 |
<img src="<?php echo $feat_image; ?>" alt="<?php the_title(); ?>" />
|
12 |
</div>
|
13 |
-
<?php if($showCategory
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
<div class="post-short-content">
|
19 |
<div class="item-meta bottom">
|
20 |
<h2 class="wp-post-title">
|
21 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
22 |
</h2>
|
23 |
-
<?php if($showDate
|
24 |
<div class="wp-post-date">
|
25 |
-
<?php if($showAuthor
|
26 |
-
<?php echo ($showAuthor
|
27 |
-
<?php if($showDate
|
28 |
</div>
|
29 |
<?php } ?>
|
30 |
|
31 |
-
<?php if($showContent
|
32 |
<div class="wp-post-content">
|
33 |
<?php
|
34 |
$customExcerpt = get_the_excerpt();
|
@@ -39,7 +36,7 @@ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
|
39 |
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
40 |
<?php } ?>
|
41 |
|
42 |
-
<?php if($showreadmore
|
43 |
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
44 |
<?php } ?>
|
45 |
|
1 |
+
<?php
|
2 |
+
// Exit if accessed directly
|
3 |
+
if ( !defined( 'ABSPATH' ) ) exit; ?>
|
|
|
|
|
|
|
4 |
|
5 |
<div class="post-slides">
|
6 |
<div class="post-overlay">
|
7 |
<div class="post-image-bg">
|
8 |
<img src="<?php echo $feat_image; ?>" alt="<?php the_title(); ?>" />
|
9 |
</div>
|
10 |
+
<?php if($showCategory) { ?>
|
11 |
+
<div class="recentpost-categories">
|
12 |
+
<?php echo $cat_list; ?>
|
13 |
+
</div>
|
14 |
+
<?php } ?>
|
15 |
<div class="post-short-content">
|
16 |
<div class="item-meta bottom">
|
17 |
<h2 class="wp-post-title">
|
18 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
19 |
</h2>
|
20 |
+
<?php if($showDate || $showAuthor) { ?>
|
21 |
<div class="wp-post-date">
|
22 |
+
<?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
|
23 |
+
<?php echo ($showAuthor && $showDate) ? ' / ' : '' ?>
|
24 |
+
<?php if($showDate) { echo get_the_date(); } ?>
|
25 |
</div>
|
26 |
<?php } ?>
|
27 |
|
28 |
+
<?php if($showContent) { ?>
|
29 |
<div class="wp-post-content">
|
30 |
<?php
|
31 |
$customExcerpt = get_the_excerpt();
|
36 |
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
37 |
<?php } ?>
|
38 |
|
39 |
+
<?php if($showreadmore) { ?>
|
40 |
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
41 |
<?php } ?>
|
42 |
|
templates/{designs/design-4.php → design-4.php}
RENAMED
@@ -1,34 +1,32 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
global $post_id;
|
5 |
-
global $post; ?>
|
6 |
<div class="post-slides">
|
7 |
<div class="post-list">
|
8 |
<div class="post-list-content">
|
9 |
<div class="wp-medium-5 wpcolumns">
|
10 |
<div class="post-image-bg">
|
11 |
-
<?php
|
12 |
</div>
|
13 |
|
14 |
</div>
|
15 |
<div class="wp-medium-7 wpcolumns">
|
16 |
-
<?php if($showCategory
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
<h2 class="wp-post-title">
|
22 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
23 |
</h2>
|
24 |
-
<?php if($showDate
|
25 |
<div class="wp-post-date">
|
26 |
-
<?php if($showAuthor
|
27 |
-
<?php echo ($showAuthor
|
28 |
-
<?php if($showDate
|
29 |
</div>
|
30 |
<?php } ?>
|
31 |
-
<?php if($showContent
|
32 |
<div class="wp-post-content">
|
33 |
<?php
|
34 |
$customExcerpt = get_the_excerpt();
|
@@ -39,7 +37,7 @@ global $post; ?>
|
|
39 |
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
40 |
<?php } ?>
|
41 |
|
42 |
-
<?php if($showreadmore
|
43 |
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
44 |
<?php } ?>
|
45 |
|
1 |
<?php
|
2 |
+
// Exit if accessed directly
|
3 |
+
if ( !defined( 'ABSPATH' ) ) exit; ?>
|
|
|
|
|
4 |
<div class="post-slides">
|
5 |
<div class="post-list">
|
6 |
<div class="post-list-content">
|
7 |
<div class="wp-medium-5 wpcolumns">
|
8 |
<div class="post-image-bg">
|
9 |
+
<img src="<?php echo $feat_image; ?>" alt="<?php the_title(); ?>" />
|
10 |
</div>
|
11 |
|
12 |
</div>
|
13 |
<div class="wp-medium-7 wpcolumns">
|
14 |
+
<?php if($showCategory) { ?>
|
15 |
+
<div class="recentpost-categories">
|
16 |
+
<?php echo $cat_list; ?>
|
17 |
+
</div>
|
18 |
+
<?php } ?>
|
19 |
<h2 class="wp-post-title">
|
20 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
21 |
</h2>
|
22 |
+
<?php if($showDate || $showAuthor) { ?>
|
23 |
<div class="wp-post-date">
|
24 |
+
<?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
|
25 |
+
<?php echo ($showAuthor && $showDate) ? ' / ' : '' ?>
|
26 |
+
<?php if($showDate) { echo get_the_date(); } ?>
|
27 |
</div>
|
28 |
<?php } ?>
|
29 |
+
<?php if($showContent) { ?>
|
30 |
<div class="wp-post-content">
|
31 |
<?php
|
32 |
$customExcerpt = get_the_excerpt();
|
37 |
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
38 |
<?php } ?>
|
39 |
|
40 |
+
<?php if($showreadmore) { ?>
|
41 |
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
42 |
<?php } ?>
|
43 |
|
templates/wprps-template.php
DELETED
@@ -1,255 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function get_wprps_slider( $atts, $content = null ) {
|
3 |
-
// setup the query
|
4 |
-
extract(shortcode_atts(array(
|
5 |
-
"limit" => '',
|
6 |
-
"category" => '',
|
7 |
-
"design" => '',
|
8 |
-
"show_date" => '',
|
9 |
-
"show_category_name" => '',
|
10 |
-
"show_content" => '',
|
11 |
-
"content_words_limit" => '',
|
12 |
-
"dots" => '',
|
13 |
-
"arrows" => '',
|
14 |
-
"autoplay" => '',
|
15 |
-
"autoplay_interval" => '',
|
16 |
-
"speed" => '',
|
17 |
-
"hide_post" => '',
|
18 |
-
"post_type" => '',
|
19 |
-
"show_author" => '',
|
20 |
-
'show_read_more' => 'true',
|
21 |
-
), $atts));
|
22 |
-
|
23 |
-
// Enqueue required script
|
24 |
-
wp_enqueue_script( 'wpos-slick-jquery' );
|
25 |
-
|
26 |
-
if( $post_type ) {
|
27 |
-
$postType = $post_type;
|
28 |
-
} else {
|
29 |
-
$postType = 'post';
|
30 |
-
}
|
31 |
-
if( $hide_post ) {
|
32 |
-
$hidePost = $hide_post;
|
33 |
-
} else {
|
34 |
-
$hidePost = array();
|
35 |
-
}
|
36 |
-
if( $show_author ) {
|
37 |
-
$showAuthor = $show_author;
|
38 |
-
} else {
|
39 |
-
$showAuthor = 'true';
|
40 |
-
}
|
41 |
-
|
42 |
-
if( $limit ) {
|
43 |
-
$posts_per_page = $limit;
|
44 |
-
} else {
|
45 |
-
$posts_per_page = '8';
|
46 |
-
}
|
47 |
-
if( $category ) {
|
48 |
-
$cat = $category;
|
49 |
-
} else {
|
50 |
-
$cat = '';
|
51 |
-
}
|
52 |
-
|
53 |
-
if( $design ) {
|
54 |
-
$postdesign = $design;
|
55 |
-
} else {
|
56 |
-
$postdesign = 'design-1';
|
57 |
-
}
|
58 |
-
|
59 |
-
if( $show_date ) {
|
60 |
-
$showDate = $show_date;
|
61 |
-
} else {
|
62 |
-
$showDate = 'true';
|
63 |
-
}
|
64 |
-
if( $show_category_name ) {
|
65 |
-
$showCategory = $show_category_name;
|
66 |
-
} else {
|
67 |
-
$showCategory = 'true';
|
68 |
-
}
|
69 |
-
if( $show_content ) {
|
70 |
-
$showContent = $show_content;
|
71 |
-
} else {
|
72 |
-
$showContent = 'true';
|
73 |
-
}
|
74 |
-
if( $content_words_limit ) {
|
75 |
-
$words_limit = $content_words_limit;
|
76 |
-
} else {
|
77 |
-
$words_limit = '20';
|
78 |
-
}
|
79 |
-
|
80 |
-
if( $dots ) {
|
81 |
-
$dotsv = $dots;
|
82 |
-
} else {
|
83 |
-
$dotsv = 'true';
|
84 |
-
}
|
85 |
-
|
86 |
-
if( $arrows ) {
|
87 |
-
$arrowsv = $arrows;
|
88 |
-
} else {
|
89 |
-
$arrowsv = 'true';
|
90 |
-
}
|
91 |
-
|
92 |
-
if( $autoplay ) {
|
93 |
-
$autoplayv = $autoplay;
|
94 |
-
} else {
|
95 |
-
$autoplayv = 'true';
|
96 |
-
}
|
97 |
-
|
98 |
-
if( $autoplay_interval ) {
|
99 |
-
$autoplayIntervalv = $autoplay_interval;
|
100 |
-
} else {
|
101 |
-
$autoplayIntervalv = '3000';
|
102 |
-
}
|
103 |
-
|
104 |
-
if( $speed ) {
|
105 |
-
$speedv = $speed;
|
106 |
-
} else {
|
107 |
-
$speedv = '300';
|
108 |
-
}
|
109 |
-
$showreadmore = ( $show_read_more == 'false' ) ? 'false' : 'true';
|
110 |
-
$is_rtl = (is_rtl()) ? 'true': 'false';
|
111 |
-
ob_start();
|
112 |
-
|
113 |
-
$posts_type = $postType ;
|
114 |
-
$orderby = 'post_date';
|
115 |
-
$order = 'DESC';
|
116 |
-
|
117 |
-
|
118 |
-
$args = array (
|
119 |
-
'post_type' => $posts_type,
|
120 |
-
'orderby' => $orderby,
|
121 |
-
'order' => $order,
|
122 |
-
'posts_per_page' => $posts_per_page,
|
123 |
-
'cat' => $cat
|
124 |
-
|
125 |
-
);
|
126 |
-
|
127 |
-
if(!empty($hidePost)){
|
128 |
-
$hidePosId = explode(',',$hidePost);
|
129 |
-
$args['post__not_in'] = $hidePosId;
|
130 |
-
}
|
131 |
-
|
132 |
-
$query = new WP_Query($args);
|
133 |
-
$post_count = $query->post_count;
|
134 |
-
|
135 |
-
if ( $query->have_posts() ) :
|
136 |
-
?>
|
137 |
-
<div class="recent-post-slider <?php echo $postdesign; ?>">
|
138 |
-
<?php
|
139 |
-
while ( $query->have_posts() ) : $query->the_post();
|
140 |
-
|
141 |
-
|
142 |
-
switch ($postdesign) {
|
143 |
-
case "design-1":
|
144 |
-
include('designs/design-1.php');
|
145 |
-
break;
|
146 |
-
case "design-2":
|
147 |
-
include('designs/design-2.php');
|
148 |
-
break;
|
149 |
-
case "design-3":
|
150 |
-
include('designs/design-3.php');
|
151 |
-
break;
|
152 |
-
case "design-4":
|
153 |
-
include('designs/design-4.php');
|
154 |
-
break;
|
155 |
-
default:
|
156 |
-
include('designs/design-1.php');
|
157 |
-
}
|
158 |
-
|
159 |
-
|
160 |
-
endwhile; ?>
|
161 |
-
</div><!-- #post-## -->
|
162 |
-
<?php
|
163 |
-
endif; ?>
|
164 |
-
|
165 |
-
<?php
|
166 |
-
wp_reset_query();
|
167 |
-
?>
|
168 |
-
<script type="text/javascript">
|
169 |
-
jQuery(document).ready(function(){
|
170 |
-
jQuery('.recent-post-slider.<?php echo $postdesign; ?>').slick({
|
171 |
-
dots : <?php echo $dotsv; ?>,
|
172 |
-
infinite : true,
|
173 |
-
arrows : <?php echo $arrowsv; ?>,
|
174 |
-
speed : <?php echo $speedv; ?>,
|
175 |
-
autoplay : <?php echo $autoplayv; ?>,
|
176 |
-
rtl : <?php echo $is_rtl;?>,
|
177 |
-
autoplaySpeed : <?php echo $autoplayIntervalv; ?>,
|
178 |
-
slidesToShow : 1,
|
179 |
-
slidesToScroll : 1,
|
180 |
-
responsive: [
|
181 |
-
{
|
182 |
-
breakpoint: 768,
|
183 |
-
settings: {
|
184 |
-
slidesToShow: 1,
|
185 |
-
slidesToScroll: 1,
|
186 |
-
infinite: true,
|
187 |
-
dots: true
|
188 |
-
}
|
189 |
-
},
|
190 |
-
{
|
191 |
-
breakpoint: 640,
|
192 |
-
settings: {
|
193 |
-
slidesToShow: 1,
|
194 |
-
slidesToScroll: 1
|
195 |
-
}
|
196 |
-
},
|
197 |
-
{
|
198 |
-
breakpoint: 480,
|
199 |
-
settings: {
|
200 |
-
slidesToShow: 1,
|
201 |
-
slidesToScroll: 1
|
202 |
-
}
|
203 |
-
}
|
204 |
-
]
|
205 |
-
});
|
206 |
-
});
|
207 |
-
</script>
|
208 |
-
<?php
|
209 |
-
return ob_get_clean();
|
210 |
-
}
|
211 |
-
add_shortcode('recent_post_slider','get_wprps_slider');
|
212 |
-
|
213 |
-
|
214 |
-
function wprps_limit_words($string, $word_limit)
|
215 |
-
{
|
216 |
-
$words = explode(' ', $string, ($word_limit + 1));
|
217 |
-
if(count($words) > $word_limit)
|
218 |
-
array_pop($words);
|
219 |
-
return implode(' ', $words);
|
220 |
-
}
|
221 |
-
|
222 |
-
|
223 |
-
// Manage Category Shortcode Columns
|
224 |
-
|
225 |
-
add_filter("manage_category_custom_column", 'category_columns', 10, 3);
|
226 |
-
add_filter("manage_edit-category_columns", 'category_manage_columns');
|
227 |
-
function category_manage_columns($theme_columns) {
|
228 |
-
$new_columns = array(
|
229 |
-
'cb' => '<input type="checkbox" />',
|
230 |
-
'name' => __('Name'),
|
231 |
-
'post_slider_shortcode' => __( 'Category Shortcode', 'wp-responsive-recent-post-slider' ),
|
232 |
-
'slug' => __('Slug'),
|
233 |
-
'posts' => __('Posts')
|
234 |
-
);
|
235 |
-
return $new_columns;
|
236 |
-
}
|
237 |
-
|
238 |
-
function category_columns($out, $column_name, $theme_id) {
|
239 |
-
$theme = get_term($theme_id, 'category');
|
240 |
-
switch ($column_name) {
|
241 |
-
|
242 |
-
case 'title':
|
243 |
-
echo get_the_title();
|
244 |
-
break;
|
245 |
-
case 'post_slider_shortcode':
|
246 |
-
|
247 |
-
echo '[recent_post_slider category="' . $theme_id. '"]';
|
248 |
-
break;
|
249 |
-
|
250 |
-
default:
|
251 |
-
break;
|
252 |
-
}
|
253 |
-
return $out;
|
254 |
-
|
255 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wp-recent-post-slider.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Domain Path: /languages/
|
7 |
* Description: Easy to add and display Recent Post Slider
|
8 |
* Author: WP Online Support
|
9 |
-
* Version: 1.2
|
10 |
* Author URI: http://www.wponlinesupport.com/
|
11 |
*
|
12 |
* @package WordPress
|
@@ -20,7 +20,7 @@
|
|
20 |
* @since 1.0.0
|
21 |
*/
|
22 |
if( !defined( 'WPRPS_VERSION' ) ) {
|
23 |
-
define( 'WPRPS_VERSION', '1.2
|
24 |
}
|
25 |
if( !defined( 'WPRPS_DIR' ) ) {
|
26 |
define( 'WPRPS_DIR', dirname( __FILE__ ) ); // Plugin dir
|
@@ -61,19 +61,15 @@ function wprps_load_textdomain() {
|
|
61 |
load_plugin_textdomain( 'wp-responsive-recent-post-slider', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
|
62 |
}
|
63 |
|
64 |
-
add_action( 'wp_enqueue_scripts','wprpsstyle_css' );
|
65 |
-
function wprpsstyle_css() {
|
66 |
-
|
67 |
-
// Registring slick slider script
|
68 |
-
if( !wp_script_is( 'wpos-slick-jquery', 'registered' ) ) {
|
69 |
-
wp_register_script( 'wpos-slick-jquery', WPRPS_URL.'assets/js/slick.min.js', array('jquery'), WPRPS_VERSION, true );
|
70 |
-
}
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
75 |
|
76 |
-
|
|
|
77 |
|
78 |
// How it work file, Load admin files
|
79 |
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|
6 |
* Domain Path: /languages/
|
7 |
* Description: Easy to add and display Recent Post Slider
|
8 |
* Author: WP Online Support
|
9 |
+
* Version: 1.3.2
|
10 |
* Author URI: http://www.wponlinesupport.com/
|
11 |
*
|
12 |
* @package WordPress
|
20 |
* @since 1.0.0
|
21 |
*/
|
22 |
if( !defined( 'WPRPS_VERSION' ) ) {
|
23 |
+
define( 'WPRPS_VERSION', '1.3.2' ); // Version of plugin
|
24 |
}
|
25 |
if( !defined( 'WPRPS_DIR' ) ) {
|
26 |
define( 'WPRPS_DIR', dirname( __FILE__ ) ); // Plugin dir
|
61 |
load_plugin_textdomain( 'wp-responsive-recent-post-slider', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
|
62 |
}
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
+
// Function file
|
66 |
+
require_once( WPRPS_DIR . '/includes/wppsac-function.php' );
|
67 |
+
|
68 |
+
// Script Fils
|
69 |
+
require_once( WPRPS_DIR . '/includes/class-wppsac-script.php' );
|
70 |
|
71 |
+
// Shortcodes
|
72 |
+
require_once( WPRPS_DIR . '/includes/shortcodes/wppsac-slider.php' );
|
73 |
|
74 |
// How it work file, Load admin files
|
75 |
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|