WP Responsive Recent Post Slider - Version 1.0

Version Description

  • Initial release.

=

Download this release

Release Info

Developer anoopranawat
Plugin Icon 128x128 WP Responsive Recent Post Slider
Version 1.0
Comparing to
See all releases

Version 1.0

assets/css/ajax-loader.gif ADDED
Binary file
assets/css/arrow-left.png ADDED
Binary file
assets/css/arrow-right.png ADDED
Binary file
assets/css/recent-post-style.css ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .column, .columns {-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
2
+ -moz-box-sizing: border-box; /* Firefox, other Gecko */
3
+ box-sizing: border-box;}
4
+
5
+ .post-overlay{ position:relative}
6
+
7
+ .recent-post-slider h1{margin:5px 0 !important; line-height:28px;}
8
+ .recent-post-slider h1.post-title a{font-size:26px; line-height:28px;}
9
+ .recent-post-slider .post-date{margin-bottom:10px; position:relative;}
10
+ .recent-post-slider .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-right:2px;}
13
+ .recent-post-slider .recentpost-categories ul.post-categories li a{padding:5px 13px; text-transform:uppercase; font-size:12px; }
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;}
17
+ .recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4) a{background:#34495e;}
18
+
19
+ .recent-post-slider.design-1 .post-content-position{position:relative}
20
+ .recent-post-slider.design-1 .post-content-left{position:absolute !important; left:0; bottom: 0px; background:rgba(0, 0, 0, 0.5); z-index:999; color:#fff;}
21
+ .recent-post-slider.design-1 .post-content-left a {color:#fff;}
22
+ .recent-post-slider.design-1 .post-content-left{padding: 20px 20px 35px 20px;}
23
+ .recent-post-slider.design-1 .post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
24
+ .recent-post-slider.design-1 .post-image-bg img {transition: height 0.1s ease-in-out ; transition: transform 0.8s cubic-bezier(.65,.05,.36,1); left: -9999px; margin: 0 auto; opacity: 1; position: absolute; right: -9999px; width:auto !important; max-width:1024px !important;}
25
+ .recent-post-slider.design-1 .post-content p{color:#fff;}
26
+
27
+ .recent-post-slider.design-1 .slick-arrow {bottom:0px !important; top:auto !important;}
28
+ .recent-post-slider.design-1 .slick-next{right:0px !important;}
29
+ .recent-post-slider.design-1 .slick-prev{right:31px !important; left:auto !important}
30
+ .recent-post-slider.design-1 .slick-dots{left:15px !important; bottom:8px !important;}
31
+
32
+ .recent-post-slider.design-2 .post-content-position{position:relative}
33
+ .recent-post-slider.design-2 .post-content-left{position:absolute !important; left:0; top:0; bottom:0; background:rgba(0, 0, 0, 0.5); z-index:999; color:#fff;}
34
+ .recent-post-slider.design-2 .post-content-left a{color:#fff;}
35
+ .design-2 .post-content-left{padding: 30px 20px;}
36
+ .recent-post-slider.design-2 .post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
37
+ .recent-post-slider.design-2 .post-image-bg img {transition: height 0.1s ease-in-out ; transition: transform 0.8s cubic-bezier(.65,.05,.36,1); left: -9999px; margin: 0 auto; opacity: 1; position: absolute; right: -9999px; width:auto !important; max-width:1024px !important;}
38
+ .recent-post-slider.design-2 .post-content p{color:#fff;}
39
+
40
+ .recent-post-slider.design-2 .slick-arrow {bottom:0px !important; top:auto !important;}
41
+ .recent-post-slider.design-2 .slick-next{right:0px !important;}
42
+ .recent-post-slider.design-2 .slick-prev{right:31px !important; left:auto !important}
43
+ .recent-post-slider.design-2 .slick-dots{left:15px !important; bottom:8px !important;}
44
+
45
+ .recent-post-slider.design-3 .post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
46
+ .recent-post-slider.design-3 .post-image-bg img {transition: height 0.1s ease-in-out ; transition: transform 0.8s cubic-bezier(.65,.05,.36,1); left: -9999px; margin: 0 auto; opacity: 1; position: absolute; right: -9999px; width:auto !important; max-width:none !important;}
47
+ .recent-post-slider.design-3 a{color:#fff;}
48
+ .recent-post-slider.design-3 .post-short-content{height: 46%;clear:both; background: rgba(51, 51, 51, 0.5);bottom: 0; color: #fff; left: 0; padding: 15px 30px 35px 30px; position: absolute; right: 0; transition: all 0.5s ease-in-out 0s;}
49
+ .recent-post-slider.design-3 .post-content { opacity: 0; height:0; transition: all 0.5s ease-in-out 0s; }
50
+ .recent-post-slider.design-3 .post-overlay:hover > .post-short-content .post-content{opacity:1;height:auto; }
51
+ .recent-post-slider.design-3 .post-overlay:hover > .post-short-content {height:70%; }
52
+ .recent-post-slider.design-3 .recentpost-categories{left: 0;top: 0px;position: absolute;}
53
+ .recent-post-slider.design-3 .post-content p{color:#fff;}
54
+
55
+
56
+ .recent-post-slider.design-3 .slick-arrow {bottom:0px !important; top:auto !important;}
57
+ .recent-post-slider.design-3 .slick-next{right:0px !important;}
58
+ .recent-post-slider.design-3 .slick-prev{right:31px !important; left:auto !important}
59
+ .recent-post-slider.design-3 .slick-dots{left:15px !important; bottom:8px !important;}
60
+
61
+
62
+ .recent-post-slider.design-4 .post-list-content, .recent-post-slider.design-4 .post-list{width:100%; float:left; clear:both;}
63
+
64
+ .recent-post-slider.design-4 .post-list-content .post-title a{color:#444; text-decoration:none;}
65
+ .recent-post-slider.design-4 .post-image-bg{background: #f1f1f1;height: 230px !important;line-height: 0; overflow: hidden; position: relative; width: 100%;}
66
+ .recent-post-slider.design-4 .post-image-bg img {transition: all 0.2s ease-in-out 0s; left: -9999px; margin: 0 auto; opacity: 1; position: absolute; right: -9999px;width:auto ; 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 .medium-5 {padding: 0px 10px 0 0;}
70
+ .recent-post-slider.design-4 .post-list-content .medium-7{padding:10px 35px 10px 15px;}
71
+
72
+
73
+ .recent-post-slider.design-4 .slick-arrow {top:38% !important;}
74
+ .recent-post-slider.design-4 .slick-next{right:0px !important;}
75
+ .recent-post-slider.design-4 .slick-prev{left:0px !important;}
76
+ .recent-post-slider.design-4 .slick-dots{left:15px !important; right:15px !important; bottom:0px !important; text-align:center; width:100%;}
77
+
78
+
79
+ img { max-width:100% ; height: auto; }
80
+ img { -ms-interpolation-mode: bicubic; }
81
+ .column,
82
+ .columns { padding-left: 0.9375em; padding-right: 0.9375em; width: 100%; float: left; }
83
+
84
+ @media only screen {
85
+
86
+ .column, .columns {position: relative;padding-left: 0.9375em;padding-right: 0.9375em; float: left; }
87
+
88
+ }
89
+ @media only screen and (min-width: 40.0625em) {
90
+
91
+ .column,
92
+ .columns {position: relative;padding-left: 0.9375em;padding-right: 0.9375em;float: left; }
93
+
94
+ .medium-1 { width: 8.33333%; }
95
+ .medium-2 { width: 16.66667%; }
96
+ .medium-3 { width: 25%; }
97
+ .medium-4 { width: 33.33333%; }
98
+ .medium-5 { width: 41.66667%; }
99
+ .medium-6 { width: 50%; }
100
+ .medium-7 { width: 58.33333%; }
101
+ .medium-8 { width: 66.66667%; }
102
+ .medium-9 { width: 75%; }
103
+ .medium-10 { width: 83.33333%; }
104
+ .medium-11 { width: 91.66667%; }
105
+ .medium-12 { width: 100%; }
106
+
107
+ .medium-offset-0 { margin-left: 0 !important; }
108
+ .medium-offset-1 { margin-left: 8.33333% !important; }
109
+ .medium-offset-2 { margin-left: 16.66667% !important; }
110
+ .medium-offset-3 { margin-left: 25% !important; }
111
+ .medium-offset-4 { margin-left: 33.33333% !important; }
112
+ .medium-offset-5 { margin-left: 41.66667% !important; }
113
+ .medium-offset-6 { margin-left: 50% !important; }
114
+ .medium-offset-7 { margin-left: 58.33333% !important; }
115
+ .medium-offset-8 { margin-left: 66.66667% !important; }
116
+ .medium-offset-9 { margin-left: 75% !important; }
117
+ .medium-offset-10 { margin-left: 83.33333% !important; }
118
+ .medium-offset-11 { margin-left: 91.66667% !important; }
119
+
120
+ .medium-reset-order { float: left;left: auto; margin-left: 0;margin-right: 0;right: auto; }
121
+
122
+ .column.medium-centered,
123
+ .columns.medium-centered { margin-left: auto; margin-right: auto; float: none; }
124
+
125
+ .column.medium-uncentered,
126
+ .columns.medium-uncentered {float: left; margin-left: 0; margin-right: 0; }
127
+
128
+ .column.medium-centered:last-child,
129
+ .columns.medium-centered:last-child {
130
+ float: none; }
131
+
132
+ .column.medium-uncentered:last-child,
133
+ .columns.medium-uncentered:last-child {
134
+ float: left; }
135
+
136
+ .column.medium-uncentered.opposite,
137
+ .columns.medium-uncentered.opposite {
138
+ float: right; }
139
+
140
+ .row.medium-collapse > .column,
141
+ .row.medium-collapse > .columns {
142
+ padding-left: 0;
143
+ padding-right: 0; }
144
+ .row.medium-collapse .row {
145
+ margin-left: 0;
146
+ margin-right: 0; }
147
+ .row.medium-uncollapse > .column,
148
+ .row.medium-uncollapse > .columns {
149
+ padding-left: 0.9375em;
150
+ padding-right: 0.9375em;
151
+ float: left; }
152
+
153
+ }
154
+
155
+
156
+
assets/css/slick.css ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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:9999999; border:0px !important;
3
+ padding:0 !important; margin:0px !important; border-radius:0px !important}
4
+ .recent-post-slider button.slick-next, .recent-post-slider button.slick-next:hover, .recent-post-slider button.slick-next:focus{background:url(arrow-right.png) 0 0 no-repeat !important; background-size:30px 51px !important; outline:none !important}
5
+ .recent-post-slider button.slick-prev, .recent-post-slider button.slick-prev:hover, .recent-post-slider button.slick-prev:focus{background:url(arrow-left.png) 0 0 no-repeat !important; background-size:30px 51px !important; outline:none !important}
6
+ .recent-post-slider .slick-dots{padding:0 !important; margin:0 !important; position:absolute; text-align:center;}
7
+ .recent-post-slider .slick-dots li button{text-indent:-99999px;}
8
+ .recent-post-slider .slick-dots li {list-style:none !important; display:inline-block !important; margin:0 5px !important; padding:0px !important; }
9
+ .recent-post-slider .slick-dots li button{background:#fff !important; margin:0px !important; padding:0px !important; border:3px solid #000; border-radius:50% !important; width:18px !important; height:18px !important;}
10
+ .recent-post-slider .slick-dots li button:focus{outline:none !important}
11
+ .recent-post-slider .slick-dots li.slick-active button{background:#444 !important;}
12
+ .recent-post-slider .slick-slide{padding:0px !important}
13
+ /* Slider */
14
+ .slick-loading .slick-list{ background: #fff url('ajax-loader.gif') center center no-repeat;}
15
+ .slick-slider{ position: relative;display: block; -moz-box-sizing: border-box;box-sizing: border-box; -webkit-user-select: none; -moz-user-select: none;
16
+ -ms-user-select: none; user-select: none; -webkit-touch-callout: none;-khtml-user-select: none; -ms-touch-action: pan-y;
17
+ touch-action: pan-y; -webkit-tap-highlight-color: transparent;
18
+ }
19
+ .slick-list{ position: relative;display: block; overflow: hidden; margin: 0; padding: 0;}
20
+ .slick-list:focus{ outline: none;}
21
+ .slick-list.dragging{ cursor: pointer; cursor: hand;}
22
+ .slick-slider .slick-track,
23
+ .slick-slider .slick-list{
24
+ -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0);
25
+ transform: translate3d(0, 0, 0);
26
+ }
27
+ .slick-track{ position: relative;top: 0;left: 0; display: block;}
28
+ .slick-track:before,
29
+ .slick-track:after{ display: table; content: '';}
30
+ .slick-track:after{ clear: both;}
31
+ .slick-loading .slick-track{ visibility: hidden;}
32
+ .slick-slide{ display: none; float: left; height: 100%; min-height: 1px;}
33
+ [dir='rtl'] .slick-slide
34
+ { float: right;}
35
+ .slick-slide img{ display: block;}
36
+ .slick-slide.slick-loading img{ display: none;}
37
+ .slick-slide.dragging img{ pointer-events: none;}
38
+ .slick-initialized .slick-slide{ display: block;}
39
+ .slick-loading .slick-slide{ visibility: hidden;}
40
+ .slick-vertical .slick-slide{ display: block; height: auto; border: 1px solid transparent;}
41
+ .slick-arrow.slick-hidden { display: none;}
assets/js/slick.min.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ _ _ _ _
3
+ ___| (_) ___| | __ (_)___
4
+ / __| | |/ __| |/ / | / __|
5
+ \__ \ | | (__| < _ | \__ \
6
+ |___/_|_|\___|_|\_(_)/ |___/
7
+ |__/
8
+
9
+ Version: 1.5.7
10
+ Author: Ken Wheeler
11
+ Website: http://kenwheeler.github.io
12
+ Docs: http://kenwheeler.github.io/slick
13
+ Repo: http://github.com/kenwheeler/slick
14
+ Issues: http://github.com/kenwheeler/slick/issues
15
+
16
+ */
17
+ !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(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}});
images/design-1.jpg ADDED
Binary file
images/design-2.jpg ADDED
Binary file
images/design-3.jpg ADDED
Binary file
images/design-4.jpg ADDED
Binary file
post_menu_function.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ add_action('admin_menu', 'register_wprps_postdesign_submenu_page');
4
+
5
+ function register_wprps_postdesign_submenu_page() {
6
+ add_submenu_page( 'edit.php', 'Post Slider Designs', 'Post Slider Designs', 'manage_options', 'wprps_postdesign-submenu-page', 'wprps_postdesign_page_callback' );
7
+ }
8
+
9
+ function wprps_postdesign_page_callback() {
10
+
11
+
12
+ $result ='<div class="wrap"><div id="icon-tools" class="icon32"></div><h2>Recent Post Slider Designs</h2></div>
13
+ <div class="postdesigns medium-4 columns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-1.jpg"><p><code>[recent_post_slider design="design-1"]</code></p></div>
14
+ <div class="postdesigns medium-4 columns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-2.jpg"><p><code>[recent_post_slider design="design-2"]</code></p></div>
15
+ <div class="postdesigns medium-4 columns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-3.jpg"><p><code>[recent_post_slider design="design-3"]</code></p></div>
16
+ <div class="postdesigns medium-4 columns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-4.jpg"><p><code>[recent_post_slider design="design-4"]</code></p></div>
17
+ <div class="postdesigns medium-8 columns"><h2>Complete Shortcode is:</h2><p><code>[recent_post_slider limit="4" design="design-4" 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></div>';
18
+
19
+ echo $result;
20
+ }
21
+ function wprps_post_admin_style(){
22
+ ?>
23
+ <style type="text/css">
24
+ .column, .columns {-webkit-box-sizing: border-box;
25
+ -moz-box-sizing: border-box;
26
+ box-sizing: border-box;}
27
+ .postdesigns img{width:100%; height:auto}
28
+ @media only screen and (min-width: 40.0625em) {
29
+ .column,
30
+ .columns {position: relative;padding-left: 0.9375em;padding-right: 0.9375em;float: left; }
31
+ .medium-1 { width: 8.33333%; }
32
+ .medium-2 { width: 16.66667%; }
33
+ .medium-3 { width: 25%; }
34
+ .medium-4 { width: 33.33333%; }
35
+ .medium-5 { width: 41.66667%; }
36
+ .medium-6 { width: 50%; }
37
+ .medium-7 { width: 58.33333%; }
38
+ .medium-8 { width: 66.66667%; }
39
+ .medium-9 { width: 75%; }
40
+ .medium-10 { width: 83.33333%; }
41
+ .medium-11 { width: 91.66667%; }
42
+ .medium-12 { width: 100%; }
43
+
44
+ }
45
+ </style>
46
+ <?php }
47
+
48
+ add_action('admin_head', 'wprps_post_admin_style');
readme.txt ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.3.1
6
+ Stable tag: trunk
7
+ License: GPLv2 or later
8
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
+
10
+ A quick, easy way to add and display Responsive WordPresss Recent Post Slider on your website with 4 designs using a shortcode.
11
+
12
+ == Description ==
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://demo.wponlinesupport.com/recent-post-slider-demo/) for additional information.
17
+
18
+ A multipurpose responsive WordPresss posts slider plugin powered with four built-in design template, lots of easy customizable options.
19
+ Display unlimited number of WordPresss posts slider in a single page or post with different sets of options like category, limit, navigation type.
20
+
21
+ = Here is the Recent Post Slider shortcode example =
22
+
23
+ Main shortcode:
24
+ <code>[recent_post_slider]</code>
25
+
26
+ To display only latest 4 post:
27
+ <code>[recent_post_slider limit="4"]</code>
28
+ Where limit define the number of posts to display.
29
+
30
+ If you want to display Recent Post Slider by category then use this short code:
31
+ <code>[recent_post_slider category="category_ID"]</code>
32
+
33
+ We have given 4 designs. For designs use the following shortcode:
34
+ <code>[recent_post_slider design="design-1"]</code>
35
+ Where designs are : design-1, design-2, design-3, design-4
36
+
37
+ You can see and select all the designs from Post -> Post Slider Designs. Here you can use the shortcode
38
+ for design that you like and want to use for your website.
39
+
40
+ = Complete shortcode is =
41
+
42
+ <code>[recent_post_slider limit="4" design="design-1" category="8" show_category_name="true"
43
+ show_content="true" show_date="true" dots="true" arrows="true" autoplay="true"
44
+ autoplay_interval="5000" speed="1000" content_words_limit ="20"]</code>
45
+
46
+
47
+
48
+ = Here is Template code =
49
+ <code><?php echo do_shortcode('[recent_post_slider]'); ?> </code>
50
+
51
+ = Features include: =
52
+ * Easy to add.
53
+ * Given 4 designs.
54
+ * Responsive.
55
+ * Responsive touch slider.
56
+ * Mouse Draggable.
57
+ * You can create multiple post slider with different options at single page or post.
58
+
59
+ = Use Following Recent Post Slider parameters with shortcode =
60
+ <code>[recent_post_slider]</code>
61
+
62
+ * **limit** : [recent_post_slider limit="8"] (Display only 8 latest post. By default it display 8 latest posts with shortcode [recent_post_slider].
63
+ If you want to display all posts then use limit="-1").
64
+ * **design** : [recent_post_slider design="design-1"] (You can select 4 design( design-1, design-2, design-3, design-4 ) for your recent post slider. Post -> Post Slider Designs ).
65
+ * **category**: [recent_post_slider category="category_ID"] ( ie Display recent post slider by their category ID ).
66
+ * **show_category_name** : [recent_post_slider show_category_name="true" ] (Display category name OR not. By default value is "True". Options are "ture OR false").
67
+ * **show_date** : [recent_post_slider show_date="false"] (Display post date OR not. By default value is "True". Options are "ture OR false")
68
+ * **show_content** : [recent_post_slider show_content="true" ] (Display post Short content OR not. By default value is "True". Options are "ture OR false").
69
+ * **Pagination and arrows** : [recent_post_slider dots="false" arrows="false"]
70
+ * **Autoplay and Autoplay Interval**: [recent_post_slider autoplay="true" autoplayInterval="100"]
71
+ * **Slide Speed**: [recent_post_slider speed="3000"]
72
+ * **content_words_limit** : [recent_post_slider content_words_limit="30" ] (Control post short content Words limit. By default limit is 20 words).
73
+
74
+
75
+
76
+
77
+ == Installation ==
78
+
79
+ 1. Upload the 'wp-recent-post-slider' folder to the '/wp-content/plugins/' directory.
80
+ 2. Activate the "wp-recent-post-slider with Widget" list plugin through the 'Plugins' menu in WordPress.
81
+ 3. Add this short code where you want to display recent post slider
82
+ <code>[recent_post_slider]</code>
83
+
84
+ == Screenshots ==
85
+
86
+ 1. Design-1
87
+ 2. Design-2
88
+ 3. Design-3
89
+ 4. Design-4
90
+ 5. Designs
91
+ 6. Category shortcode for post
92
+
93
+ == Changelog ==
94
+
95
+ = 1.0 =
96
+ * Initial release.
97
+
98
+
99
+ == Upgrade Notice ==
100
+
101
+ = 1.0 =
102
+ * Initial release
templates/designs/design-1.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="post-slides">
2
+ <div class="post-content-position">
3
+ <div class="post-content-left medium-8 columns">
4
+
5
+ <?php if($showCategory == "true") { ?>
6
+ <div class="recentpost-categories">
7
+ <?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
8
+ </div>
9
+ <?php } ?>
10
+
11
+ <h1 class="post-title">
12
+ <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
13
+ </h1>
14
+ <?php if($showDate == "true") { ?>
15
+ <div class="post-date">
16
+ <?php echo get_the_date(); ?>
17
+ </div>
18
+ <?php } ?>
19
+
20
+ <?php if($showContent == "true") { ?>
21
+ <div class="post-content">
22
+ <?php $excerpt = get_the_excerpt();?>
23
+ <p><?php echo wprps_limit_words($excerpt,$words_limit); ?>...</p>
24
+ </div>
25
+ <?php } ?>
26
+ </div>
27
+ <div class="post-image-bg">
28
+ <?php the_post_thumbnail('url'); ?>
29
+ </div>
30
+ </div>
31
+ </div>
templates/designs/design-2.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="post-slides">
2
+ <div class="post-content-position">
3
+
4
+ <!-- Content-left/right -->
5
+ <div class="post-content-left medium-6 columns">
6
+ <?php if($showCategory == "true") { ?>
7
+ <div class="recentpost-categories">
8
+ <?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
9
+ </div>
10
+ <?php } ?>
11
+ <h1 class="post-title">
12
+ <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
13
+ </h1>
14
+ <?php if($showDate == "true") { ?>
15
+ <div class="post-date">
16
+ <?php echo get_the_date(); ?>
17
+ </div>
18
+ <?php } ?>
19
+ <?php if($showContent == "true") { ?>
20
+ <div class="post-content">
21
+ <?php $excerpt = get_the_excerpt();?>
22
+ <p><?php echo wprps_limit_words($excerpt,$words_limit); ?>...</p>
23
+ </div>
24
+ <?php } ?>
25
+ </div>
26
+ <div class="post-image-bg">
27
+ <?php the_post_thumbnail('url'); ?>
28
+ </div>
29
+ </div>
30
+ </div>
templates/designs/design-3.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="post-slides">
2
+ <div class="post-overlay">
3
+ <div class="post-image-bg">
4
+ <?php the_post_thumbnail('url'); ?>
5
+ </div>
6
+ <?php if($showCategory == "true") { ?>
7
+ <div class="recentpost-categories">
8
+ <?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
9
+ </div>
10
+ <?php } ?>
11
+ <div class="post-short-content">
12
+ <div class="item-meta bottom">
13
+ <h1 class="post-title">
14
+ <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
15
+ </h1>
16
+ <?php if($showDate == "true") { ?>
17
+ <div class="post-date">
18
+ <?php echo get_the_date(); ?>
19
+ </div>
20
+ <?php } ?>
21
+
22
+ <?php if($showContent == "true") { ?>
23
+ <div class="post-content">
24
+ <?php $excerpt = get_the_excerpt();?>
25
+ <p><?php echo wprps_limit_words($excerpt,$words_limit); ?>...</p>
26
+ </div>
27
+ <?php } ?>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </div>
templates/designs/design-4.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="post-slides">
2
+ <div class="post-list">
3
+ <div class="post-list-content">
4
+ <div class="medium-5 columns">
5
+ <div class="post-image-bg">
6
+ <?php the_post_thumbnail('url'); ?>
7
+ </div>
8
+
9
+ </div>
10
+ <div class="medium-7 columns">
11
+ <?php if($showCategory == "true") { ?>
12
+ <div class="recentpost-categories">
13
+ <?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
14
+ </div>
15
+ <?php } ?>
16
+ <h1 class="post-title">
17
+ <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
18
+ </h1>
19
+ <?php if($showDate == "true") { ?>
20
+ <div class="post-date">
21
+ <?php echo get_the_date(); ?>
22
+ </div>
23
+ <?php } ?>
24
+ <?php if($showContent == "true") { ?>
25
+ <div class="post-content">
26
+ <?php $excerpt = get_the_excerpt();?>
27
+ <p><?php echo wprps_limit_words($excerpt,$words_limit); ?>...</p>
28
+ </div>
29
+ <?php } ?>
30
+
31
+ </div>
32
+ </div>
33
+ </div>
34
+
35
+ </div>
templates/wprps-template.php ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function get_wprps_slider( $atts, $content = null ){
3
+ // setup the query
4
+ extract(shortcode_atts(array(
5
+ "limit" => '',
6
+ "category" => '',
7
+ "design" => '',
8
+ "show_date" => '',
9
+ "show_category_name" => '',
10
+ "show_content" => '',
11
+ "content_words_limit" => '',
12
+ "dots" => '',
13
+ "arrows" => '',
14
+ "autoplay" => '',
15
+ "autoplay_interval" => '',
16
+ "speed" => '',
17
+
18
+ ), $atts));
19
+ // Define limit
20
+ if( $limit ) {
21
+ $posts_per_page = $limit;
22
+ } else {
23
+ $posts_per_page = '8';
24
+ }
25
+ if( $category ) {
26
+ $cat = $category;
27
+ } else {
28
+ $cat = '';
29
+ }
30
+
31
+ if( $design ) {
32
+ $postdesign = $design;
33
+ } else {
34
+ $postdesign = 'design-1';
35
+ }
36
+
37
+ if( $show_date ) {
38
+ $showDate = $show_date;
39
+ } else {
40
+ $showDate = 'true';
41
+ }
42
+ if( $show_category_name ) {
43
+ $showCategory = $show_category_name;
44
+ } else {
45
+ $showCategory = 'true';
46
+ }
47
+ if( $show_content ) {
48
+ $showContent = $show_content;
49
+ } else {
50
+ $showContent = 'true';
51
+ }
52
+ if( $content_words_limit ) {
53
+ $words_limit = $content_words_limit;
54
+ } else {
55
+ $words_limit = '20';
56
+ }
57
+
58
+ if( $dots ) {
59
+ $dotsv = $dots;
60
+ } else {
61
+ $dotsv = 'true';
62
+ }
63
+
64
+ if( $arrows ) {
65
+ $arrowsv = $arrows;
66
+ } else {
67
+ $arrowsv = 'true';
68
+ }
69
+
70
+ if( $autoplay ) {
71
+ $autoplayv = $autoplay;
72
+ } else {
73
+ $autoplayv = 'true';
74
+ }
75
+
76
+ if( $autoplay_interval ) {
77
+ $autoplayIntervalv = $autoplay_interval;
78
+ } else {
79
+ $autoplayIntervalv = '3000';
80
+ }
81
+
82
+ if( $speed ) {
83
+ $speedv = $speed;
84
+ } else {
85
+ $speedv = '300';
86
+ }
87
+
88
+
89
+ ob_start();
90
+
91
+ $post_type = 'post';
92
+ $orderby = 'post_date';
93
+ $order = 'DESC';
94
+
95
+
96
+ $args = array (
97
+ 'post_type' => $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
+
108
+ if ( $query->have_posts() ) :
109
+ ?>
110
+ <div class="recent-post-slider <?php echo $postdesign; ?>">
111
+ <?php
112
+ while ( $query->have_posts() ) : $query->the_post();
113
+
114
+
115
+ switch ($postdesign) {
116
+ case "design-1":
117
+ include('designs/design-1.php');
118
+ break;
119
+ case "design-2":
120
+ include('designs/design-2.php');
121
+ break;
122
+ case "design-3":
123
+ include('designs/design-3.php');
124
+ break;
125
+ case "design-4":
126
+ include('designs/design-4.php');
127
+ break;
128
+ default:
129
+ include('designs/design-1.php');
130
+ }
131
+
132
+
133
+ endwhile; ?>
134
+ </div><!-- #post-## -->
135
+ <?php
136
+ endif; ?>
137
+ <script type="text/javascript">
138
+ jQuery(document).ready(function(){
139
+ jQuery('.recent-post-slider.<?php echo $postdesign; ?>').slick({
140
+ dots: <?php echo $dotsv; ?>,
141
+ infinite: true,
142
+ arrows: <?php echo $arrowsv; ?>,
143
+ speed: <?php echo $speedv; ?>,
144
+ autoplay: <?php echo $autoplayv; ?>,
145
+ autoplaySpeed: <?php echo $autoplayIntervalv; ?>,
146
+ slidesToShow: 1,
147
+ slidesToScroll: 1,
148
+ responsive: [
149
+ {
150
+ breakpoint: 1024,
151
+ settings: {
152
+ slidesToShow: 1,
153
+ slidesToScroll: 1,
154
+ infinite: true,
155
+ dots: true
156
+ }
157
+ },
158
+ {
159
+ breakpoint: 600,
160
+ settings: {
161
+ slidesToShow: 1,
162
+ slidesToScroll: 1
163
+ }
164
+ },
165
+ {
166
+ breakpoint: 480,
167
+ settings: {
168
+ slidesToShow: 1,
169
+ slidesToScroll: 1
170
+ }
171
+ }
172
+ ]
173
+ });
174
+ });
175
+ </script>
176
+ <?php
177
+ wp_reset_query();
178
+
179
+ return ob_get_clean();
180
+ }
181
+ add_shortcode('recent_post_slider','get_wprps_slider');
182
+
183
+
184
+ function wprps_limit_words($string, $word_limit)
185
+ {
186
+ $words = explode(' ', $string, ($word_limit + 1));
187
+ if(count($words) > $word_limit)
188
+ array_pop($words);
189
+ return implode(' ', $words);
190
+ }
191
+
192
+
193
+ // Manage Category Shortcode Columns
194
+
195
+ add_filter("manage_category_custom_column", 'category_columns', 10, 3);
196
+ add_filter("manage_edit-category_columns", 'category_manage_columns');
197
+ function category_manage_columns($theme_columns) {
198
+ $new_columns = array(
199
+ 'cb' => '<input type="checkbox" />',
200
+ 'name' => __('Name'),
201
+ 'post_slider_shortcode' => __( 'Category Shortcode', 'post' ),
202
+ 'slug' => __('Slug'),
203
+ 'posts' => __('Posts')
204
+ );
205
+ return $new_columns;
206
+ }
207
+
208
+ function category_columns($out, $column_name, $theme_id) {
209
+ $theme = get_term($theme_id, 'category');
210
+ switch ($column_name) {
211
+
212
+ case 'title':
213
+ echo get_the_title();
214
+ break;
215
+ case 'post_slider_shortcode':
216
+
217
+ echo '[recent_post_slider category="' . $theme_id. '"]';
218
+ break;
219
+
220
+ default:
221
+ break;
222
+ }
223
+ return $out;
224
+
225
+ }
wp-recent-post-slider.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin Name: WP Responsive Recent Post Slider
4
+ * Plugin URI: http://www.wponlinesupport.com/
5
+ * Description: Easy to add and display Recent Post Slider
6
+ * Author: WP Online Support
7
+ * Version: 1.0
8
+ * Author URI: http://www.wponlinesupport.com/
9
+ *
10
+ * @package WordPress
11
+ * @author WP Online Support
12
+ */
13
+ add_action( 'wp_enqueue_scripts','wprpsstyle_css' );
14
+ function wprpsstyle_css() {
15
+
16
+ wp_enqueue_script( 'wprps_slick_jquery', plugin_dir_url( __FILE__ ) . 'assets/js/slick.min.js', array( 'jquery' ) );
17
+ wp_enqueue_style( 'wprps_slick_style', plugin_dir_url( __FILE__ ) . 'assets/css/slick.css');
18
+ wp_enqueue_style( 'wprps_recent_post_style', plugin_dir_url( __FILE__ ) . 'assets/css/recent-post-style.css');
19
+
20
+ }
21
+
22
+ require_once( 'templates/wprps-template.php' );
23
+ require_once( 'post_menu_function.php' );
24
+
25
+
26
+
27
+