Version Description
- Added 'show_read_more' shortcode parameter for read more button.
- Updated plugin design page.
- Updated slider js to newer version.
- Fixed some css issues.
Download this release
Release Info
Developer | anoopranawat |
Plugin | WP Responsive Recent Post Slider |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.5
- assets/css/recent-post-style.css +27 -25
- assets/css/slick.css +3 -0
- assets/js/slick.min.js +16 -18
- images/design-1.jpg +0 -0
- images/design-10.jpg +0 -0
- images/design-11.jpg +0 -0
- images/design-12.jpg +0 -0
- images/design-13.jpg +0 -0
- images/design-14.jpg +0 -0
- images/design-15.jpg +0 -0
- images/design-16.jpg +0 -0
- images/design-17.jpg +0 -0
- images/design-18.jpg +0 -0
- images/design-19.jpg +0 -0
- images/design-2.jpg +0 -0
- images/design-20.jpg +0 -0
- images/design-21.jpg +0 -0
- images/design-22.jpg +0 -0
- images/design-3.jpg +0 -0
- images/design-4.jpg +0 -0
- images/design-5.jpg +0 -0
- images/design-6.jpg +0 -0
- images/design-7.jpg +0 -0
- images/design-8.jpg +0 -0
- images/design-9.jpg +0 -0
- images/post-slider.png +0 -0
- post_menu_function.php +97 -68
- readme.txt +66 -23
- templates/designs/design-1.php +24 -10
- templates/designs/design-2.php +22 -8
- templates/designs/design-3.php +21 -6
- templates/designs/design-4.php +24 -10
- templates/wprps-template.php +35 -8
- wp-recent-post-slider.php +30 -14
assets/css/recent-post-style.css
CHANGED
@@ -1,14 +1,16 @@
|
|
1 |
-
.
|
2 |
-
|
3 |
-
.post-overlay{ position:relative}
|
4 |
|
|
|
|
|
|
|
|
|
5 |
.recent-post-slider h2.wp-post-title{margin:5px 0 !important; line-height:22px;}
|
6 |
.recent-post-slider h2.wp-post-title a{font-size:22px; line-height:22px;}
|
7 |
.recent-post-slider .wp-post-date{margin-bottom:10px; position:relative; font-size:13px;}
|
8 |
.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;}
|
9 |
.recent-post-slider .recentpost-categories ul.post-categories{margin:0px 0px 10px 0 !important; padding:0px !important; list-style:none !important}
|
10 |
-
.recent-post-slider .recentpost-categories ul.post-categories li{display:inline-block !important; margin
|
11 |
-
.recent-post-slider .recentpost-categories ul.post-categories li a{padding:5px 13px; text-transform:uppercase; font-size:12px; }
|
12 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(1) a{background:#1abc9c;}
|
13 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(2) a{background:#3498db;}
|
14 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(3) a{background:#e74c3c;}
|
@@ -64,8 +66,8 @@
|
|
64 |
.recent-post-slider.design-4 .post-image-bg img {transition: all 0.2s ease-in-out 0s; left: -9999px; margin: 0 auto !important; opacity: 1; position: absolute; right: -9999px;width:auto !important; max-width:500px !important;}
|
65 |
.recent-post-slider.design-4 .recentpost-categories {margin-top: 0;}
|
66 |
.recent-post-slider.design-4 .recentpost-categories a{color:#fff;}
|
67 |
-
.recent-post-slider.design-4 .medium-5 {padding: 0px 10px 0 0;}
|
68 |
-
.recent-post-slider.design-4 .post-list-content .medium-7{padding:10px 35px 10px 15px;}
|
69 |
|
70 |
|
71 |
.recent-post-slider.design-4 .slick-arrow {top:38% !important;}
|
@@ -76,8 +78,8 @@
|
|
76 |
|
77 |
|
78 |
img { -ms-interpolation-mode: bicubic; }
|
79 |
-
.
|
80 |
-
.
|
81 |
|
82 |
@media only screen and (max-width: 768px) {
|
83 |
.recent-post-slider.design-1 .post-image-bg img, .recent-post-slider.design-2 .post-image-bg img, .recent-post-slider.design-3 .post-image-bg img{max-width:700px !important}
|
@@ -92,26 +94,26 @@ img { -ms-interpolation-mode: bicubic; }
|
|
92 |
|
93 |
@media only screen {
|
94 |
|
95 |
-
.
|
96 |
|
97 |
}
|
98 |
@media only screen and (min-width: 40.0625em) {
|
99 |
|
100 |
-
.
|
101 |
-
.
|
102 |
-
|
103 |
-
.medium-1 { width: 8.33333%; }
|
104 |
-
.medium-2 { width: 16.66667%; }
|
105 |
-
.medium-3 { width: 25%; }
|
106 |
-
.medium-4 { width: 33.33333%; }
|
107 |
-
.medium-5 { width: 41.66667%; }
|
108 |
-
.medium-6 { width: 50%; }
|
109 |
-
.medium-7 { width: 58.33333%; }
|
110 |
-
.medium-8 { width: 66.66667%; }
|
111 |
-
.medium-9 { width: 75%; }
|
112 |
-
.medium-10 { width: 83.33333%; }
|
113 |
-
.medium-11 { width: 91.66667%; }
|
114 |
-
.medium-12 { width: 100%; }
|
115 |
|
116 |
.medium-offset-0 { margin-left: 0 !important; }
|
117 |
.medium-offset-1 { margin-left: 8.33333% !important; }
|
1 |
+
.wpcolumn, .wpcolumns {-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
|
|
|
|
|
2 |
|
3 |
+
.post-overlay{ position:relative;}
|
4 |
+
.recent-post-slider .wp-post-content a.readmorebtn {padding: 0px 10px;border: 1px solid #e7e7e7;text-decoration: none;margin: 5px 0;}
|
5 |
+
.wp-post-content {padding-bottom: 10px;}
|
6 |
+
.wp-sub-content {padding-bottom: 10px;}
|
7 |
.recent-post-slider h2.wp-post-title{margin:5px 0 !important; line-height:22px;}
|
8 |
.recent-post-slider h2.wp-post-title a{font-size:22px; line-height:22px;}
|
9 |
.recent-post-slider .wp-post-date{margin-bottom:10px; position:relative; font-size:13px;}
|
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}
|
12 |
+
.recent-post-slider .recentpost-categories ul.post-categories li{display:inline-block !important; margin: 0 2px 0 0 !important; padding: 0 !important;}
|
13 |
+
.recent-post-slider .recentpost-categories ul.post-categories li a{padding:5px 13px; text-transform:uppercase; font-size:12px; text-decoration:none;}
|
14 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(1) a{background:#1abc9c;}
|
15 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(2) a{background:#3498db;}
|
16 |
.recent-post-slider .recentpost-categories ul.post-categories li:nth-child(3) a{background:#e74c3c;}
|
66 |
.recent-post-slider.design-4 .post-image-bg img {transition: all 0.2s ease-in-out 0s; left: -9999px; margin: 0 auto !important; opacity: 1; position: absolute; right: -9999px;width:auto !important; max-width:500px !important;}
|
67 |
.recent-post-slider.design-4 .recentpost-categories {margin-top: 0;}
|
68 |
.recent-post-slider.design-4 .recentpost-categories a{color:#fff;}
|
69 |
+
.recent-post-slider.design-4 .wp-medium-5 {padding: 0px 10px 0 0;}
|
70 |
+
.recent-post-slider.design-4 .post-list-content .wp-medium-7{padding:10px 35px 10px 15px;}
|
71 |
|
72 |
|
73 |
.recent-post-slider.design-4 .slick-arrow {top:38% !important;}
|
78 |
|
79 |
|
80 |
img { -ms-interpolation-mode: bicubic; }
|
81 |
+
.wpcolumn,
|
82 |
+
.wpcolumns { padding-left: 0.9375em; padding-right: 0.9375em; width:100%; float: left; position: relative; }
|
83 |
|
84 |
@media only screen and (max-width: 768px) {
|
85 |
.recent-post-slider.design-1 .post-image-bg img, .recent-post-slider.design-2 .post-image-bg img, .recent-post-slider.design-3 .post-image-bg img{max-width:700px !important}
|
94 |
|
95 |
@media only screen {
|
96 |
|
97 |
+
.wpcolumn, .wpcolumns {position: relative;padding-left: 0.9375em;padding-right: 0.9375em; float: left; }
|
98 |
|
99 |
}
|
100 |
@media only screen and (min-width: 40.0625em) {
|
101 |
|
102 |
+
.wpcolumn,
|
103 |
+
.wpcolumns {position: relative;padding-left: 0.9375em;padding-right: 0.9375em;float: left; }
|
104 |
+
|
105 |
+
.wp-medium-1 { width: 8.33333%; }
|
106 |
+
.wp-medium-2 { width: 16.66667%; }
|
107 |
+
.wp-medium-3 { width: 25%; }
|
108 |
+
.wp-medium-4 { width: 33.33333%; }
|
109 |
+
.wp-medium-5 { width: 41.66667%; }
|
110 |
+
.wp-medium-6 { width: 50%; }
|
111 |
+
.wp-medium-7 { width: 58.33333%; }
|
112 |
+
.wp-medium-8 { width: 66.66667%; }
|
113 |
+
.wp-medium-9 { width: 75%; }
|
114 |
+
.wp-medium-10 { width: 83.33333%; }
|
115 |
+
.wp-medium-11 { width: 91.66667%; }
|
116 |
+
.wp-medium-12 { width: 100%; }
|
117 |
|
118 |
.medium-offset-0 { margin-left: 0 !important; }
|
119 |
.medium-offset-1 { margin-left: 8.33333% !important; }
|
assets/css/slick.css
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
.recent-post-slider .slick-arrow{text-indent:-99999px;}
|
2 |
.recent-post-slider button.slick-arrow {background-color: transparent!important; width:30px; height:51px; position:absolute; z-index:99; border:0px !important;
|
3 |
padding:0 !important; margin:0px !important; border-radius:0px !important}
|
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;
|
6 |
padding:0 !important; margin:0px !important; border-radius:0px !important}
|
assets/js/slick.min.js
CHANGED
@@ -1,18 +1,16 @@
|
|
1 |
-
/*
|
2 |
-
_ _ _ _
|
3 |
-
___| (_) ___| | __ (_)___
|
4 |
-
/ __| | |/ __| |/ / | / __|
|
5 |
-
\__ \ | | (__| < _ | \__ \
|
6 |
-
|___/_|_|\___|_|\_(_)/ |___/
|
7 |
-
|__/
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(a,b){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(b+1)+"</button>"},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,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,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.hidden="hidden",e.paused=!1,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,f,d),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.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.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0),e.checkResponsive(!0)}var b=0;return c}(),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),d[e.animType]=e.options.vertical===!1?"translate3d("+b+"px, 0px, 0px)":"translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.asNavFor=function(b){var c=this,d=c.options.asNavFor;d&&null!==d&&(d=a(d).not(c.$slider)),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={};c[b.transitionType]=b.options.fade===!1?b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:"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.autoPlayTimer&&clearInterval(a.autoPlayTimer),a.slideCount>a.options.slidesToShow&&a.paused!==!0&&(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;a.options.infinite===!1?1===a.direction?(a.currentSlide+1===a.slideCount-1&&(a.direction=0),a.slideHandler(a.currentSlide+a.options.slidesToScroll)):(0===a.currentSlide-1&&(a.direction=1),a.slideHandler(a.currentSlide-a.options.slidesToScroll)):a.slideHandler(a.currentSlide+a.options.slidesToScroll)},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(d='<ul class="'+b.options.dotsClass+'">',c=0;c<=b.getDotCount();c+=1)d+="<li>"+b.options.customPaging.call(this,b,c)+"</li>";d+="</ul>",b.$dots=a(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.$slidesCache=b.$slides,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.html(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.target);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=0!==d.slideCount%d.options.slidesToScroll,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),b.options.pauseOnDotsHover===!0&&b.options.autoplay===!0&&a("li",b.$dots).off("mouseenter.slick",a.proxy(b.setPaused,b,!0)).off("mouseleave.slick",a.proxy(b.setPaused,b,!1))),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.$list.off("mouseenter.slick",a.proxy(b.setPaused,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.setPaused,b,!1)),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.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.html(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.options.arrows===!0&&(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.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.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},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.slidesToShow,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else for(;b<a.slideCount;)++d,b=c+a.options.slidesToShow,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;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=-1*b.slideWidth*b.options.slidesToShow,e=-1*d*b.options.slidesToShow),0!==b.slideCount%b.options.slidesToScroll&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=-1*(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth,e=-1*(b.options.slidesToShow-(a-b.slideCount))*d):(b.slideOffset=-1*b.slideCount%b.options.slidesToScroll*b.slideWidth,e=-1*b.slideCount%b.options.slidesToScroll*d))):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?-1*a*b.slideWidth+b.slideOffset:-1*a*d+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=f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=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()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.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&&b.options.autoplay===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.setPaused,b,!0)).on("mouseleave.slick",a.proxy(b.setPaused,b,!1))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),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.$list.on("mouseenter.slick",a.proxy(b.setPaused,b,!0)),b.$list.on("mouseleave.slick",a.proxy(b.setPaused,b,!1)),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(),a.options.autoplay===!0&&a.autoPlay()},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:"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:"next"}}))},b.prototype.lazyLoad=function(){function g(b){a("img[data-lazy]",b).each(function(){var b=a(this),c=a(this).attr("data-lazy"),d=document.createElement("img");d.onload=function(){b.animate({opacity:0},100,function(){b.attr("src",c).animate({opacity:1},200,function(){b.removeAttr("data-lazy").removeClass("slick-loading")})})},d.src=c})}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=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.paused=!1,a.autoPlay()},b.prototype.postSlide=function(a){var b=this;b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay===!0&&b.paused===!1&&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(){var c,d,b=this;c=a("img[data-lazy]",b.$slider).length,c>0&&(d=a("img[data-lazy]",b.$slider).first(),d.attr("src",d.attr("data-lazy")).removeClass("slick-loading").load(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad(),b.options.adaptiveHeight===!0&&b.setPosition()}).error(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad()}))},b.prototype.refresh=function(b){var c=this,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.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses(0),b.setPosition(),b.$slider.trigger("reInit",[b]),b.options.autoplay===!0&&b.focusHandler()},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,d.reinit(),void 0)},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=-1*b.slideWidth*d,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(b,c,d){var f,g,e=this;if("responsive"===b&&"array"===a.type(c))for(g in c)if("array"!==a.type(e.options.responsive))e.options.responsive=[c[g]];else{for(f=e.options.responsive.length-1;f>=0;)e.options.responsive[f].breakpoint===c[g].breakpoint&&e.options.responsive.splice(f,1),f--;e.options.responsive.push(c[g])}else e.options[b]=c;d===!0&&(e.unload(),e.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=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,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.setPaused=function(a){var b=this;b.options.autoplay===!0&&b.options.pauseOnHover===!0&&(b.paused=a,a?b.autoPlayClear():b.autoPlay())},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),c.asNavFor(e),void 0):(c.slideHandler(e),void 0)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,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)?(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d)),void 0):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d)),void 0):(i.options.autoplay===!0&&clearInterval(i.autoPlayTimer),e=0>d?0!==i.slideCount%i.options.slidesToScroll?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?0!==i.slideCount%i.options.slidesToScroll?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.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)
|
18 |
-
})):i.postSlide(e),i.animateHeight(),void 0):(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e),void 0)))},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?"left":"right":"vertical"},b.prototype.swipeEnd=function(){var c,b=this;if(b.dragging=!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(b.swipeDirection()){case"left":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.slideHandler(c),b.currentDirection=0,b.touchObject={},b.$slider.trigger("swipe",[b,"left"]);break;case"right":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.slideHandler(c),b.currentDirection=1,b.touchObject={},b.$slider.trigger("swipe",[b,"right"])}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.swipeLeft=b.options.vertical===!1?d+f*g: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):(b.setCSS(b.swipeLeft),void 0)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return 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,b.dragging=!0,void 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;document[a.hidden]?(a.paused=!0,a.autoPlayClear()):a.options.autoplay===!0&&(a.paused=!1,a.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.activateADA=function(){var a=this,b=a.$slider.find("*").is(":focus");a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false",tabindex:"0"}).find("a, input, button, select").attr({tabindex:"0"}),b&&a.$slideTrack.find(".slick-active").focus()},b.prototype.focusHandler=function(){var b=this;b.$slider.on("focus.slick blur.slick","*",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.isPlay&&(d.is(":focus")?(b.autoPlayClear(),b.paused=!0):(b.paused=!1,b.autoPlay()))},0)})},a.fn.slick=function(){var g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length,f=0;for(f;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 |
+
/*
|
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}});
|
|
|
|
images/design-1.jpg
DELETED
Binary file
|
images/design-10.jpg
DELETED
Binary file
|
images/design-11.jpg
DELETED
Binary file
|
images/design-12.jpg
DELETED
Binary file
|
images/design-13.jpg
DELETED
Binary file
|
images/design-14.jpg
DELETED
Binary file
|
images/design-15.jpg
DELETED
Binary file
|
images/design-16.jpg
DELETED
Binary file
|
images/design-17.jpg
DELETED
Binary file
|
images/design-18.jpg
DELETED
Binary file
|
images/design-19.jpg
DELETED
Binary file
|
images/design-2.jpg
DELETED
Binary file
|
images/design-20.jpg
DELETED
Binary file
|
images/design-21.jpg
DELETED
Binary file
|
images/design-22.jpg
DELETED
Binary file
|
images/design-3.jpg
DELETED
Binary file
|
images/design-4.jpg
DELETED
Binary file
|
images/design-5.jpg
DELETED
Binary file
|
images/design-6.jpg
DELETED
Binary file
|
images/design-7.jpg
DELETED
Binary file
|
images/design-8.jpg
DELETED
Binary file
|
images/design-9.jpg
DELETED
Binary file
|
images/post-slider.png
DELETED
Binary file
|
post_menu_function.php
CHANGED
@@ -1,77 +1,106 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
}
|
8 |
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
$
|
13 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-1.jpg"><p><code>[recent_post_slider design="design-1"]</code></p></div></div>
|
14 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-2.jpg"><p><code>[recent_post_slider design="design-2"]</code></p></div></div>
|
15 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-3.jpg"><p><code>[recent_post_slider design="design-3"]</code></p></div></div>
|
16 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-4.jpg"><p><code>[recent_post_slider design="design-4"]</code></p></div></div>
|
17 |
-
<div class="medium-8 columns"><h2>Complete Shortcode is:</h2><p><code>[recent_post_slider limit="4" design="design-4" show_author="false" show_category_name="true" show_content="true" show_date="true" dots="true" arrows="true" autoplay="true" autoplay_interval="5000" speed="1000" content_words_limit="20"]</code></p>
|
18 |
-
</div>
|
19 |
-
<div class="medium-12 columns" style="margin:15px 0"><p><a href="http://wponlinesupport.com/sp_plugin/wp-responsive-recent-post-slider/" target="_blank"><img src="'.plugin_dir_url( __FILE__ ).'images/post-slider.png"></a></p>
|
20 |
-
For More Details <a href="http://demo.wponlinesupport.com/prodemo/post-slider-pro/" target="_blank" >View DEMO</a></div>
|
21 |
-
|
22 |
-
<div class="medium-12 columns"><h1>Pro Recent Post Slider and Carousel Designs</h1></div>
|
23 |
-
<div class="medium-12 columns"><h2>Pro Recent Post Slider Designs</h2></div>
|
24 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-5.jpg"><p><code>[recent_post_slider design="design-5"]</code></p></div></div>
|
25 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-6.jpg"><p><code>[recent_post_slider design="design-6"]</code></p></div></div>
|
26 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-17.jpg"><p><code>[recent_post_slider design="design-17"]</code></p></div></div>
|
27 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-18.jpg"><p><code>[recent_post_slider design="design-18"]</code></p></div></div>
|
28 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-19.jpg"><p><code>[recent_post_slider design="design-19"]</code></p></div></div>
|
29 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-20.jpg"><p><code>[recent_post_slider design="design-20"]</code></p></div></div>
|
30 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-21.jpg"><p><code>[recent_post_slider design="design-21"]</code></p></div></div>
|
31 |
-
<div class="medium-12 columns"><h2>Pro Recent Post Carousel Designs</h2></div>
|
32 |
-
<div class="medium-12 columns"><p><code>[recent_post_carousel limit="4" design="design-1" show_author="false" category="8" show_category_name="true"
|
33 |
-
show_content="true" show_date="true" slides_to_show="3" slides_to_scroll="1" dots="true" arrows="true" autoplay="true"
|
34 |
-
autoplay_interval="5000" speed="1000" content_words_limit ="20"]</code></p></div>
|
35 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-7.jpg"><p><code>[recent_post_carousel design="design-7"]</code></p></div></div>
|
36 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-8.jpg"><p><code>[recent_post_carousel design="design-8"]</code></p></div></div>
|
37 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-9.jpg"><p><code>[recent_post_carousel design="design-9"]</code></p></div></div>
|
38 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-10.jpg"><p><code>[recent_post_carousel design="design-10"]</code></p></div></div>
|
39 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-11.jpg"><p><code>[recent_post_carousel design="design-11"]</code></p></div></div>
|
40 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-12.jpg"><p><code>[recent_post_carousel design="design-12"]</code></p></div></div>
|
41 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-13.jpg"><p><code>[recent_post_carousel design="design-13"]</code></p></div></div>
|
42 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-14.jpg"><p><code>[recent_post_carousel design="design-14"]</code></p></div></div>
|
43 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-15.jpg"><p><code>[recent_post_carousel design="design-15"]</code></p></div></div>
|
44 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-16.jpg"><p><code>[recent_post_carousel design="design-16"]</code></p></div></div>
|
45 |
-
<div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-22.jpg"><p><code>[recent_post_carousel design="design-22"]</code></p></div></div>
|
46 |
-
<div class="medium-12 columns"><p>For More Details <a href="http://demo.wponlinesupport.com/prodemo/post-slider-pro/" target="_blank" >View DEMO</a></p></div>';
|
47 |
-
|
48 |
-
echo $result;
|
49 |
-
}
|
50 |
-
function wprps_post_admin_style(){
|
51 |
?>
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
.medium-9 { width: 75%; }
|
68 |
-
.medium-10 { width: 83.33333%; }
|
69 |
-
.medium-11 { width: 91.66667%; }
|
70 |
-
.medium-12 { width: 100%; }
|
71 |
-
}
|
72 |
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Pro Designs and Plugins Feed
|
4 |
+
*
|
5 |
+
* @package WP Responsive Recent Post Slider Pro
|
6 |
+
* @since 1.0.0
|
7 |
+
*/
|
8 |
|
9 |
+
// Exit if accessed directly
|
10 |
+
if ( !defined( 'ABSPATH' ) ) exit;
|
11 |
|
12 |
+
// Action to add menu
|
13 |
+
add_action('admin_menu', 'wprps_register_design_page');
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Register plugin design page in admin menu
|
17 |
+
*
|
18 |
+
* @package WP Responsive Recent Post Slider Pro
|
19 |
+
* @since 1.0.0
|
20 |
+
*/
|
21 |
+
function wprps_register_design_page() {
|
22 |
+
add_submenu_page( 'edit.php', __('PRO Post Slider Designs', 'wp-responsive-recent-post-slider'), __('PRO Post Slider Designs', 'wp-responsive-recent-post-slider'), 'manage_options', 'wprps-designs', 'wprps_designs_page' );
|
23 |
}
|
24 |
|
25 |
+
/**
|
26 |
+
* Function to display plugin design HTML
|
27 |
+
*
|
28 |
+
* @package WP Responsive Recent Post Slider Pro
|
29 |
+
* @since 1.0.0
|
30 |
+
*/
|
31 |
+
function wprps_designs_page() {
|
32 |
+
|
33 |
+
$wprps_feed_tabs = array(
|
34 |
+
'design-feed' => __('Plugin Designs', 'wp-responsive-recent-post-slider'),
|
35 |
+
'plugins-feed' => __('Our Plugins', 'wp-responsive-recent-post-slider')
|
36 |
+
);
|
37 |
+
|
38 |
|
39 |
+
$active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'design-feed';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
?>
|
41 |
+
|
42 |
+
<div class="wrap wprpsp-wrap">
|
43 |
+
|
44 |
+
<h2 class="nav-tab-wrapper">
|
45 |
+
<?php
|
46 |
+
foreach ($wprps_feed_tabs as $tab_key => $tab_val) {
|
47 |
+
|
48 |
+
$active_cls = ($tab_key == $active_tab) ? 'nav-tab-active' : '';
|
49 |
+
$tab_link = add_query_arg( array('page' => 'wprps-designs', 'tab' => $tab_key), admin_url('edit.php') );
|
50 |
+
?>
|
51 |
+
|
52 |
+
<a class="nav-tab <?php echo $active_cls; ?>" href="<?php echo $tab_link; ?>"><?php echo $tab_val; ?></a>
|
53 |
+
|
54 |
+
<?php } ?>
|
55 |
+
</h2>
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
+
<div class="wprpsp-tab-cnt-wrp">
|
58 |
+
<?php
|
59 |
+
if( isset($_GET['tab']) && $_GET['tab'] == 'plugins-feed' ) {
|
60 |
+
echo wprps_get_design( 'plugins-feed' );
|
61 |
+
} else {
|
62 |
+
echo wprps_get_design();
|
63 |
+
}
|
64 |
+
?>
|
65 |
+
</div><!-- end .wprpsp-tab-cnt-wrp -->
|
66 |
|
67 |
+
</div><!-- end .wprpsp-wrap -->
|
68 |
+
|
69 |
+
<?php
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Gets the plugin design part feed
|
74 |
+
*
|
75 |
+
* @package WP Responsive Recent Post Slider Pro
|
76 |
+
* @since 1.2.5
|
77 |
+
*/
|
78 |
+
function wprps_get_design( $feed_type = '' ) {
|
79 |
+
|
80 |
+
$active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'design-feed';
|
81 |
+
|
82 |
+
$cache = get_transient( 'wprps_' . $active_tab );
|
83 |
+
|
84 |
+
if ( false === $cache ) {
|
85 |
+
|
86 |
+
// Feed URL
|
87 |
+
if( $feed_type == 'plugins-feed' ) {
|
88 |
+
$url = 'http://wponlinesupport.com/plugin-data-api/plugins-data.php';
|
89 |
+
} else {
|
90 |
+
$url = 'http://wponlinesupport.com/plugin-data-api/wp-responsive-recent-post-slider/wp-responsive-recent-post-slider.php';
|
91 |
+
}
|
92 |
+
|
93 |
+
$feed = wp_remote_get( esc_url_raw( $url ), array( 'timeout' => 120, 'sslverify' => false ) );
|
94 |
+
$response_code = wp_remote_retrieve_response_code( $feed );
|
95 |
+
|
96 |
+
if ( ! is_wp_error( $feed ) && $response_code == 200 ) {
|
97 |
+
if ( isset( $feed['body'] ) && strlen( $feed['body'] ) > 0 ) {
|
98 |
+
$cache = wp_remote_retrieve_body( $feed );
|
99 |
+
set_transient( 'wprps_' . $active_tab, $cache, 172800 );
|
100 |
+
}
|
101 |
+
} else {
|
102 |
+
$cache = '<div class="error"><p>' . __( 'There was an error retrieving the data from the server. Please try again later.', 'wp-responsive-recent-post-slider' ) . '</div>';
|
103 |
+
}
|
104 |
+
}
|
105 |
+
return $cache;
|
106 |
+
}
|
readme.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
=== WP Responsive Recent Post Slider ===
|
2 |
Contributors: wponlinesupport, anoopranawat
|
3 |
-
Tags: 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.
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -13,9 +13,11 @@ A quick, easy way to add and display Responsive WordPresss Recent Post Slider on
|
|
13 |
Responsive Recent WordPresss Post Slider is a WordPress posts content slider plugin with touch for mobile devices and responsive.
|
14 |
WordPresss Recent Post Slider displays your recent posts using 4 designs with beautiful slider.
|
15 |
|
16 |
-
View [DEMO](http://wponlinesupport.com/
|
17 |
|
18 |
-
View [PRO DEMO and Features](http://wponlinesupport.com/
|
|
|
|
|
19 |
|
20 |
A multipurpose responsive WordPresss posts slider plugin powered with four built-in design template, lots of easy customizable options.
|
21 |
Display unlimited number of WordPresss posts slider in a single page or post with different sets of options like category, limit, navigation type.
|
@@ -30,7 +32,7 @@ To display only latest 4 post:
|
|
30 |
Where limit define the number of posts to display.
|
31 |
|
32 |
If you want to display Recent Post Slider by category then use this short code:
|
33 |
-
<code>[recent_post_slider
|
34 |
|
35 |
We have given 4 designs. For designs use the following shortcode:
|
36 |
<code>[recent_post_slider design="design-1"]</code>
|
@@ -43,29 +45,14 @@ for design that you like and want to use for your website.
|
|
43 |
|
44 |
<code>[recent_post_slider limit="4" design="design-1" category="8" show_category_name="true"
|
45 |
show_content="true" show_date="true" dots="true" arrows="true" autoplay="true"
|
46 |
-
|
|
|
47 |
|
48 |
|
49 |
|
50 |
= Here is Template code =
|
51 |
<code><?php echo do_shortcode('[recent_post_slider]'); ?> </code>
|
52 |
|
53 |
-
= Features include: =
|
54 |
-
* Easy to add.
|
55 |
-
* Given 4 designs.
|
56 |
-
* Responsive.
|
57 |
-
* Responsive touch slider.
|
58 |
-
* Mouse Draggable.
|
59 |
-
* You can create multiple post slider with different options at single page or post.
|
60 |
-
|
61 |
-
= Pro Features include: =
|
62 |
-
* Recent Post Slider with 11 designs.
|
63 |
-
* Recent Post Carousel with 11 designs.
|
64 |
-
<code>[recent_post_carousel]</code>
|
65 |
-
* 3 Widgets (Post slider, Post List/Slider-1, Post List/Slider-2)
|
66 |
-
|
67 |
-
View [PRO DEMO and Features](http://wponlinesupport.com/sp_plugin/wp-responsive-recent-post-slider/) for additional information.
|
68 |
-
|
69 |
= Use Following Recent Post Slider parameters with shortcode =
|
70 |
<code>[recent_post_slider]</code>
|
71 |
|
@@ -80,8 +67,32 @@ View [PRO DEMO and Features](http://wponlinesupport.com/sp_plugin/wp-responsive-
|
|
80 |
* **Autoplay and Autoplay Interval**: [recent_post_slider autoplay="true" autoplay_interval="100"]
|
81 |
* **Slide Speed**: [recent_post_slider speed="3000"]
|
82 |
* **content_words_limit** : [recent_post_slider content_words_limit="30" ] (Control post short content Words limit. By default limit is 20 words).
|
|
|
|
|
|
|
|
|
|
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
|
87 |
== Installation ==
|
@@ -102,6 +113,22 @@ View [PRO DEMO and Features](http://wponlinesupport.com/sp_plugin/wp-responsive-
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
= 1.2.1 =
|
106 |
* Fixed some bugs
|
107 |
|
@@ -120,6 +147,22 @@ View [PRO DEMO and Features](http://wponlinesupport.com/sp_plugin/wp-responsive-
|
|
120 |
|
121 |
== Upgrade Notice ==
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
= 1.2.1 =
|
124 |
* Fixed some bugs
|
125 |
|
@@ -132,4 +175,4 @@ View [PRO DEMO and Features](http://wponlinesupport.com/sp_plugin/wp-responsive-
|
|
132 |
* Added More designs in Pro version and fixed some bug
|
133 |
|
134 |
= 1.0 =
|
135 |
-
* Initial release
|
1 |
=== WP Responsive Recent Post Slider ===
|
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.6
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
Responsive Recent WordPresss Post Slider is a WordPress posts content slider plugin with touch for mobile devices and responsive.
|
14 |
WordPresss Recent Post Slider displays your recent posts using 4 designs with beautiful slider.
|
15 |
|
16 |
+
View [DEMO](http://wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/) for additional information.
|
17 |
|
18 |
+
View [PRO DEMO and Features](http://wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/) for additional information.
|
19 |
+
|
20 |
+
Need Featured Post section in your website? Try our plugin [Featured Post Creative](https://wordpress.org/plugins/featured-post-creative/).
|
21 |
|
22 |
A multipurpose responsive WordPresss posts slider plugin powered with four built-in design template, lots of easy customizable options.
|
23 |
Display unlimited number of WordPresss posts slider in a single page or post with different sets of options like category, limit, navigation type.
|
32 |
Where limit define the number of posts to display.
|
33 |
|
34 |
If you want to display Recent Post Slider by category then use this short code:
|
35 |
+
<code>[recent_post_slider category="category_ID"]</code>
|
36 |
|
37 |
We have given 4 designs. For designs use the following shortcode:
|
38 |
<code>[recent_post_slider design="design-1"]</code>
|
45 |
|
46 |
<code>[recent_post_slider limit="4" design="design-1" category="8" show_category_name="true"
|
47 |
show_content="true" show_date="true" dots="true" arrows="true" autoplay="true"
|
48 |
+
autoplay_interval="5000" speed="1000" content_words_limit="20"
|
49 |
+
post_type="post" hide_post="1,2,3" show_author="false" show_read_more="true"]</code>
|
50 |
|
51 |
|
52 |
|
53 |
= Here is Template code =
|
54 |
<code><?php echo do_shortcode('[recent_post_slider]'); ?> </code>
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
= Use Following Recent Post Slider parameters with shortcode =
|
57 |
<code>[recent_post_slider]</code>
|
58 |
|
67 |
* **Autoplay and Autoplay Interval**: [recent_post_slider autoplay="true" autoplay_interval="100"]
|
68 |
* **Slide Speed**: [recent_post_slider speed="3000"]
|
69 |
* **content_words_limit** : [recent_post_slider content_words_limit="30" ] (Control post short content Words limit. By default limit is 20 words).
|
70 |
+
* **Added New Shortcode Parameters**
|
71 |
+
* **post_type:** [recent_post_slider post_type="post"] (ie added custom post type support where you add custom post. By default value is "post")
|
72 |
+
* **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)
|
73 |
+
* **show_author** [recent_post_slider show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
|
74 |
+
* **show_read_more** [recent_post_slider show_read_more="true"] (Display read more button. Values are "true OR false")
|
75 |
|
76 |
+
= Pro Features include: =
|
77 |
+
> <strong>Premium Version</strong><br>
|
78 |
+
>
|
79 |
+
> * Recent Post Slider with 11 designs.
|
80 |
+
> * Recent Post Carousel with 11 designs.
|
81 |
+
> * Shortcode <code>[recent_post_carousel]</code>
|
82 |
+
> * 3 Widgets (Post slider, Post List/Slider-1, Post List/Slider-2)
|
83 |
+
>
|
84 |
+
> View [PRO DEMO and Features](http://wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/) for additional information.
|
85 |
+
>
|
86 |
|
87 |
+
= Features include: =
|
88 |
+
* Easy to add.
|
89 |
+
* Given 4 designs.
|
90 |
+
* Responsive.
|
91 |
+
* Responsive touch slider.
|
92 |
+
* Mouse Draggable.
|
93 |
+
* You can create multiple post slider with different options at single page or post.
|
94 |
+
* Custom post type support.
|
95 |
+
* Exclude Post with their ID's that you do not want to display.
|
96 |
|
97 |
|
98 |
== Installation ==
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= 1.2.5 =
|
117 |
+
* Added 'show_read_more' shortcode parameter for read more button.
|
118 |
+
* Updated plugin design page.
|
119 |
+
* Updated slider js to newer version.
|
120 |
+
* Fixed some css issues.
|
121 |
+
|
122 |
+
= 1.2.4 =
|
123 |
+
* Fixed some css issues.
|
124 |
+
|
125 |
+
= 1.2.3 =
|
126 |
+
* Fixed some css issues.
|
127 |
+
|
128 |
+
= 1.2.2 =
|
129 |
+
* Fixed some bugs
|
130 |
+
* Added 3 New shortcode parameters ie **post_type="post", hide_post="1,2,3", show_author="false"**
|
131 |
+
|
132 |
= 1.2.1 =
|
133 |
* Fixed some bugs
|
134 |
|
147 |
|
148 |
== Upgrade Notice ==
|
149 |
|
150 |
+
= 1.2.5 =
|
151 |
+
* Added 'show_read_more' shortcode parameter for read more button.
|
152 |
+
* Updated plugin design page.
|
153 |
+
* Updated slider js to newer version.
|
154 |
+
* Fixed some css issues.
|
155 |
+
|
156 |
+
= 1.2.4 =
|
157 |
+
* Fixed some css issues.
|
158 |
+
|
159 |
+
= 1.2.3 =
|
160 |
+
* Fixed some css issues.
|
161 |
+
|
162 |
+
= 1.2.2 =
|
163 |
+
* Fixed some bugs
|
164 |
+
* Added 3 New shortcode parameters ie **post_type="post", hide_post="1,2,3", show_author="false"**
|
165 |
+
|
166 |
= 1.2.1 =
|
167 |
* Fixed some bugs
|
168 |
|
175 |
* Added More designs in Pro version and fixed some bug
|
176 |
|
177 |
= 1.0 =
|
178 |
+
* Initial release
|
templates/designs/design-1.php
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
-
|
2 |
global $separator;
|
3 |
global $parents;
|
|
|
4 |
global $post_id;
|
5 |
-
$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) );
|
6 |
-
|
7 |
<div class="post-content-position">
|
8 |
-
<div class="post-content-left medium-8
|
9 |
|
10 |
<?php if($showCategory == "true") { ?>
|
11 |
<div class="recentpost-categories">
|
@@ -16,16 +17,29 @@ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
|
16 |
<h2 class="wp-post-title">
|
17 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
18 |
</h2>
|
19 |
-
<?php if($showDate == "true")
|
20 |
<div class="wp-post-date">
|
21 |
-
<?php
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
|
25 |
<?php if($showContent == "true") { ?>
|
26 |
<div class="wp-post-content">
|
27 |
-
<?php
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
</div>
|
30 |
<?php } ?>
|
31 |
</div>
|
1 |
+
<?php
|
2 |
global $separator;
|
3 |
global $parents;
|
4 |
+
global $post;
|
5 |
global $post_id;
|
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 == "true") { ?>
|
12 |
<div class="recentpost-categories">
|
17 |
<h2 class="wp-post-title">
|
18 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
19 |
</h2>
|
20 |
+
<?php if($showDate == "true" || $showAuthor == 'true') { ?>
|
21 |
<div class="wp-post-date">
|
22 |
+
<?php if($showAuthor == 'true') { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
|
23 |
+
<?php echo ($showAuthor == 'true' && $showDate == 'true') ? ' / ' : '' ?>
|
24 |
+
<?php if($showDate == "true") { echo get_the_date(); } ?>
|
25 |
+
</div>
|
26 |
+
<?php } ?>
|
27 |
|
28 |
<?php if($showContent == "true") { ?>
|
29 |
<div class="wp-post-content">
|
30 |
+
<?php
|
31 |
+
$customExcerpt = get_the_excerpt();
|
32 |
+
if (has_excerpt($post->ID)) { ?>
|
33 |
+
<div class="wp-sub-content"><?php echo $customExcerpt ; ?></div>
|
34 |
+
<?php } else {
|
35 |
+
$excerpt = strip_tags(get_the_content()); ?>
|
36 |
+
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
37 |
+
<?php } ?>
|
38 |
+
|
39 |
+
<?php if($showreadmore == 'true') { ?>
|
40 |
+
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
41 |
+
<?php } ?>
|
42 |
+
|
43 |
</div>
|
44 |
<?php } ?>
|
45 |
</div>
|
templates/designs/design-2.php
CHANGED
@@ -1,13 +1,14 @@
|
|
1 |
-
|
2 |
global $separator;
|
3 |
global $parents;
|
4 |
global $post_id;
|
|
|
5 |
$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
6 |
<div class="post-slides">
|
7 |
<div class="post-content-position">
|
8 |
|
9 |
<!-- Content-left/right -->
|
10 |
-
<div class="post-content-left medium-6
|
11 |
<?php if($showCategory == "true") { ?>
|
12 |
<div class="recentpost-categories">
|
13 |
<?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
|
@@ -16,15 +17,28 @@ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
|
16 |
<h2 class="wp-post-title">
|
17 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
18 |
</h2>
|
19 |
-
<?php if($showDate == "true")
|
20 |
<div class="wp-post-date">
|
21 |
-
<?php
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
<?php if($showContent == "true") { ?>
|
25 |
<div class="wp-post-content">
|
26 |
-
<?php
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
</div>
|
29 |
<?php } ?>
|
30 |
</div>
|
1 |
+
<?php
|
2 |
global $separator;
|
3 |
global $parents;
|
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 |
<?php if($showCategory == "true") { ?>
|
13 |
<div class="recentpost-categories">
|
14 |
<?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
|
17 |
<h2 class="wp-post-title">
|
18 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
19 |
</h2>
|
20 |
+
<?php if($showDate == "true" || $showAuthor == 'true') { ?>
|
21 |
<div class="wp-post-date">
|
22 |
+
<?php if($showAuthor == 'true') { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
|
23 |
+
<?php echo ($showAuthor == 'true' && $showDate == 'true') ? ' / ' : '' ?>
|
24 |
+
<?php if($showDate == "true") { echo get_the_date(); } ?>
|
25 |
+
</div>
|
26 |
+
<?php } ?>
|
27 |
<?php if($showContent == "true") { ?>
|
28 |
<div class="wp-post-content">
|
29 |
+
<?php
|
30 |
+
$customExcerpt = get_the_excerpt();
|
31 |
+
if (has_excerpt($post->ID)) { ?>
|
32 |
+
<div class="wp-sub-content"><?php echo $customExcerpt ; ?></div>
|
33 |
+
<?php } else {
|
34 |
+
$excerpt = strip_tags(get_the_content()); ?>
|
35 |
+
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
36 |
+
<?php } ?>
|
37 |
+
|
38 |
+
<?php if($showreadmore == 'true') { ?>
|
39 |
+
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
40 |
+
<?php } ?>
|
41 |
+
|
42 |
</div>
|
43 |
<?php } ?>
|
44 |
</div>
|
templates/designs/design-3.php
CHANGED
@@ -2,7 +2,9 @@
|
|
2 |
global $separator;
|
3 |
global $parents;
|
4 |
global $post_id;
|
|
|
5 |
$feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
|
|
6 |
<div class="post-slides">
|
7 |
<div class="post-overlay">
|
8 |
<div class="post-image-bg">
|
@@ -18,16 +20,29 @@ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
|
|
18 |
<h2 class="wp-post-title">
|
19 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
20 |
</h2>
|
21 |
-
<?php if($showDate == "true")
|
22 |
<div class="wp-post-date">
|
23 |
-
<?php
|
24 |
-
|
25 |
-
|
|
|
|
|
26 |
|
27 |
<?php if($showContent == "true") { ?>
|
28 |
<div class="wp-post-content">
|
29 |
-
<?php
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
</div>
|
32 |
<?php } ?>
|
33 |
</div>
|
2 |
global $separator;
|
3 |
global $parents;
|
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">
|
20 |
<h2 class="wp-post-title">
|
21 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
22 |
</h2>
|
23 |
+
<?php if($showDate == "true" || $showAuthor == 'true') { ?>
|
24 |
<div class="wp-post-date">
|
25 |
+
<?php if($showAuthor == 'true') { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
|
26 |
+
<?php echo ($showAuthor == 'true' && $showDate == 'true') ? ' / ' : '' ?>
|
27 |
+
<?php if($showDate == "true") { echo get_the_date(); } ?>
|
28 |
+
</div>
|
29 |
+
<?php } ?>
|
30 |
|
31 |
<?php if($showContent == "true") { ?>
|
32 |
<div class="wp-post-content">
|
33 |
+
<?php
|
34 |
+
$customExcerpt = get_the_excerpt();
|
35 |
+
if (has_excerpt($post->ID)) { ?>
|
36 |
+
<div class="wp-sub-content"><?php echo $customExcerpt ; ?></div>
|
37 |
+
<?php } else {
|
38 |
+
$excerpt = strip_tags(get_the_content()); ?>
|
39 |
+
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
40 |
+
<?php } ?>
|
41 |
+
|
42 |
+
<?php if($showreadmore == 'true') { ?>
|
43 |
+
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
44 |
+
<?php } ?>
|
45 |
+
|
46 |
</div>
|
47 |
<?php } ?>
|
48 |
</div>
|
templates/designs/design-4.php
CHANGED
@@ -1,17 +1,18 @@
|
|
1 |
-
|
2 |
global $separator;
|
3 |
global $parents;
|
4 |
-
global $post_id;
|
|
|
5 |
<div class="post-slides">
|
6 |
<div class="post-list">
|
7 |
<div class="post-list-content">
|
8 |
-
<div class="medium-5
|
9 |
<div class="post-image-bg">
|
10 |
<?php the_post_thumbnail('url'); ?>
|
11 |
</div>
|
12 |
|
13 |
</div>
|
14 |
-
<div class="medium-7
|
15 |
<?php if($showCategory == "true") { ?>
|
16 |
<div class="recentpost-categories">
|
17 |
<?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
|
@@ -20,15 +21,28 @@ global $post_id; ?>
|
|
20 |
<h2 class="wp-post-title">
|
21 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
22 |
</h2>
|
23 |
-
<?php if($showDate == "true")
|
24 |
<div class="wp-post-date">
|
25 |
-
<?php
|
26 |
-
|
27 |
-
|
|
|
|
|
28 |
<?php if($showContent == "true") { ?>
|
29 |
<div class="wp-post-content">
|
30 |
-
<?php
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
</div>
|
33 |
<?php } ?>
|
34 |
|
1 |
+
<?php
|
2 |
global $separator;
|
3 |
global $parents;
|
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 the_post_thumbnail('url'); ?>
|
12 |
</div>
|
13 |
|
14 |
</div>
|
15 |
+
<div class="wp-medium-7 wpcolumns">
|
16 |
<?php if($showCategory == "true") { ?>
|
17 |
<div class="recentpost-categories">
|
18 |
<?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
|
21 |
<h2 class="wp-post-title">
|
22 |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
23 |
</h2>
|
24 |
+
<?php if($showDate == "true" || $showAuthor == 'true') { ?>
|
25 |
<div class="wp-post-date">
|
26 |
+
<?php if($showAuthor == 'true') { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
|
27 |
+
<?php echo ($showAuthor == 'true' && $showDate == 'true') ? ' / ' : '' ?>
|
28 |
+
<?php if($showDate == "true") { echo get_the_date(); } ?>
|
29 |
+
</div>
|
30 |
+
<?php } ?>
|
31 |
<?php if($showContent == "true") { ?>
|
32 |
<div class="wp-post-content">
|
33 |
+
<?php
|
34 |
+
$customExcerpt = get_the_excerpt();
|
35 |
+
if (has_excerpt($post->ID)) { ?>
|
36 |
+
<div class="wp-sub-content"><?php echo $customExcerpt ; ?></div>
|
37 |
+
<?php } else {
|
38 |
+
$excerpt = strip_tags(get_the_content()); ?>
|
39 |
+
<div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
|
40 |
+
<?php } ?>
|
41 |
+
|
42 |
+
<?php if($showreadmore == 'true') { ?>
|
43 |
+
<a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
|
44 |
+
<?php } ?>
|
45 |
+
|
46 |
</div>
|
47 |
<?php } ?>
|
48 |
|
templates/wprps-template.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
function get_wprps_slider( $atts, $content = null ){
|
3 |
// setup the query
|
4 |
extract(shortcode_atts(array(
|
5 |
"limit" => '',
|
@@ -13,10 +13,32 @@ function get_wprps_slider( $atts, $content = null ){
|
|
13 |
"arrows" => '',
|
14 |
"autoplay" => '',
|
15 |
"autoplay_interval" => '',
|
16 |
-
"speed" => '',
|
17 |
-
|
|
|
|
|
|
|
18 |
), $atts));
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
if( $limit ) {
|
21 |
$posts_per_page = $limit;
|
22 |
} else {
|
@@ -84,24 +106,29 @@ function get_wprps_slider( $atts, $content = null ){
|
|
84 |
} else {
|
85 |
$speedv = '300';
|
86 |
}
|
87 |
-
|
88 |
|
89 |
ob_start();
|
90 |
|
91 |
-
$
|
92 |
$orderby = 'post_date';
|
93 |
$order = 'DESC';
|
94 |
|
95 |
|
96 |
$args = array (
|
97 |
-
'post_type' => $
|
98 |
'orderby' => $orderby,
|
99 |
'order' => $order,
|
100 |
'posts_per_page' => $posts_per_page,
|
101 |
'cat' => $cat
|
102 |
|
103 |
);
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
105 |
$query = new WP_Query($args);
|
106 |
$post_count = $query->post_count;
|
107 |
|
1 |
<?php
|
2 |
+
function get_wprps_slider( $atts, $content = null ) {
|
3 |
// setup the query
|
4 |
extract(shortcode_atts(array(
|
5 |
"limit" => '',
|
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 {
|
106 |
} else {
|
107 |
$speedv = '300';
|
108 |
}
|
109 |
+
$showreadmore = ( $show_read_more == 'false' ) ? 'false' : 'true';
|
110 |
|
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 |
|
wp-recent-post-slider.php
CHANGED
@@ -6,19 +6,36 @@
|
|
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
|
13 |
* @author WP Online Support
|
14 |
-
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
register_activation_hook( __FILE__, 'install_postslider_free_version' );
|
16 |
function install_postslider_free_version(){
|
17 |
if( is_plugin_active('wp-responsive-recent-post-slider-pro/wp-recent-post-slider.php') ){
|
18 |
add_action('update_option_active_plugins', 'deactivate_postslider_free_version');
|
19 |
}
|
20 |
}
|
21 |
-
function deactivate_postslider_free_version(){
|
22 |
deactivate_plugins('wp-responsive-recent-post-slider-pro/wp-recent-post-slider.php',true);
|
23 |
}
|
24 |
add_action( 'admin_notices', 'freepostslider_admin_notice');
|
@@ -41,17 +58,16 @@ function wprps_load_textdomain() {
|
|
41 |
}
|
42 |
|
43 |
add_action( 'wp_enqueue_scripts','wprpsstyle_css' );
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
51 |
|
52 |
require_once( 'templates/wprps-template.php' );
|
53 |
-
require_once( 'post_menu_function.php' );
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
6 |
* Domain Path: /languages/
|
7 |
* Description: Easy to add and display Recent Post Slider
|
8 |
* Author: WP Online Support
|
9 |
+
* Version: 1.2.5
|
10 |
* Author URI: http://www.wponlinesupport.com/
|
11 |
*
|
12 |
* @package WordPress
|
13 |
* @author WP Online Support
|
14 |
+
*/
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Basic plugin definitions
|
18 |
+
*
|
19 |
+
* @package WP Responsive Recent Post Slider
|
20 |
+
* @since 1.0.0
|
21 |
+
*/
|
22 |
+
if( !defined( 'WPRPS_VERSION' ) ) {
|
23 |
+
define( 'WPRPS_VERSION', '1.2.5' ); // Version of plugin
|
24 |
+
}
|
25 |
+
if( !defined( 'WPRPS_DIR' ) ) {
|
26 |
+
define( 'WPRPS_DIR', dirname( __FILE__ ) ); // Plugin dir
|
27 |
+
}
|
28 |
+
if( !defined( 'WPRPS_URL' ) ) {
|
29 |
+
define( 'WPRPS_URL', plugin_dir_url( __FILE__ ) ); // Plugin url
|
30 |
+
}
|
31 |
+
|
32 |
register_activation_hook( __FILE__, 'install_postslider_free_version' );
|
33 |
function install_postslider_free_version(){
|
34 |
if( is_plugin_active('wp-responsive-recent-post-slider-pro/wp-recent-post-slider.php') ){
|
35 |
add_action('update_option_active_plugins', 'deactivate_postslider_free_version');
|
36 |
}
|
37 |
}
|
38 |
+
function deactivate_postslider_free_version() {
|
39 |
deactivate_plugins('wp-responsive-recent-post-slider-pro/wp-recent-post-slider.php',true);
|
40 |
}
|
41 |
add_action( 'admin_notices', 'freepostslider_admin_notice');
|
58 |
}
|
59 |
|
60 |
add_action( 'wp_enqueue_scripts','wprpsstyle_css' );
|
61 |
+
function wprpsstyle_css() {
|
62 |
|
63 |
+
// Registring slick slider script
|
64 |
+
if( !wp_script_is( 'wpos-slick-jquery', 'registered' ) ) {
|
65 |
+
wp_register_script( 'wpos-slick-jquery', WPRPS_URL.'assets/js/slick.min.js', array('jquery'), WPRPS_VERSION, true );
|
66 |
+
}
|
67 |
+
|
68 |
+
wp_enqueue_style( 'wprps_slick_style', plugin_dir_url( __FILE__ ) . 'assets/css/slick.css');
|
69 |
+
wp_enqueue_style( 'wprps_recent_post_style', plugin_dir_url( __FILE__ ) . 'assets/css/recent-post-style.css');
|
70 |
+
}
|
71 |
|
72 |
require_once( 'templates/wprps-template.php' );
|
73 |
+
require_once( 'post_menu_function.php' );
|
|
|
|
|
|
|
|