WP Responsive Recent Post Slider - Version 2.2.5

Version Description

(24, Jan 2020) = * [*] New : Added new shortcode parameter "posts" for both shortcode.

Download this release

Release Info

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

Code changes from version 2.1 to 2.2.5

assets/css/recent-post-style.css CHANGED
@@ -2,7 +2,7 @@
2
  Box Sizing
3
  ************************************************************/
4
  .wpcolumn, .wpcolumns {-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;}
5
- .recent-post-slider * {-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;}
6
 
7
  /************************************************************
8
  Clearfix
@@ -14,112 +14,152 @@
14
  /************************************************************
15
  Slick slider
16
  ************************************************************/
17
- .recent-post-slider{visibility: hidden; opacity:0; transition:opacity 0.5s linear;}
18
- .recent-post-slider.slick-initialized { visibility: visible; opacity:1;}
19
  .wppsac-hide{display:none;}
20
- .recent-post-slider .slick-arrow{text-indent:-99999px;}
21
- .recent-post-slider button.slick-arrow {background-color: transparent!important; cursor:pointer; width:30px; height:45px; position:absolute; z-index:9; border:0px !important;padding:0 !important; margin:0px !important; border-radius:0px !important;}
22
- .recent-post-slider button.slick-next, .recent-post-slider button.slick-next:hover, .recent-post-slider button.slick-next:focus{background:rgba(0,0,0,0.5) url(arrow-right.png) center center no-repeat !important; background-size:25px 25px !important; outline:none !important; box-shadow: none;}
23
- .recent-post-slider button.slick-prev, .recent-post-slider button.slick-prev:hover, .recent-post-slider button.slick-prev:focus{background:rgba(0,0,0,0.5) url(arrow-left.png) center center no-repeat !important; background-size:25px 25px !important; outline:none !important; box-shadow: none;}
24
- .recent-post-slider .slick-dots{padding:0 !important; margin:0 !important; position:absolute; text-align:center;}
25
- .recent-post-slider .slick-dots li button{text-indent:-99999px;}
26
- .recent-post-slider .slick-dots li {list-style:none !important; display:inline-block !important; margin:0 2px !important; padding:0px !important;}
27
- .recent-post-slider .slick-dots li button{background:#fff !important; margin:0px !important; padding:0px !important; border:1px solid #000; border-radius:50% !important; width:13px !important; height:13px !important;}
28
- .recent-post-slider .slick-dots li button:focus{outline:none !important}
29
- .recent-post-slider button:active{box-shadow: none;}
30
- .recent-post-slider .slick-dots li.slick-active button{background:#444 !important;}
31
- .recent-post-slider .slick-slide{padding:0px !important}
32
- .post-overlay{ position:relative;}
33
- .recent-post-slider .wp-post-content a.readmorebtn {padding: 5px 10px;border: 1px solid #e7e7e7;text-decoration: none;margin: 5px 0; font-size:14px; -moz-transition:all 0.5s ease-out 0s;-ms-transition:all 0.5s ease-out 0s;-o-transition:all 0.5s ease-out 0s; transition: all 0.5s ease-out 0s; }
34
- .wp-post-content {padding-bottom: 10px;}
35
- .wp-sub-content {padding-bottom: 10px;}
36
- .recent-post-slider h2.wp-post-title{margin:5px 0 !important; line-height:22px;}
37
- .recent-post-slider h2.wp-post-title a{font-size:22px; line-height:22px;}
38
- .recent-post-slider .wp-post-date{margin-bottom:10px; position:relative; font-size:13px;}
39
- .recent-post-slider .wp-post-date::after { background: #e96656; bottom: -4px;content: "";height: 2px; left: 0; margin: auto ; position: absolute; width: 50px; z-index: 1;}
40
- .recent-post-slider .recentpost-categories ul.post-categories{margin:0px 0px 10px 0 !important; padding:0px !important; list-style:none !important; font-size: 0;}
41
- .recent-post-slider .recentpost-categories ul.post-categories li{display:inline-block !important; margin: 2px !important; padding: 0 !important;}
42
- .recent-post-slider .recentpost-categories ul.post-categories li a{padding:4px 10px; text-transform:uppercase; font-size:11px; text-decoration:none; color: #fff; display: block; line-height: normal;}
43
- .recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+1) a{background:#1abc9c;}
44
- .recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+2) a{background:#3498db;}
45
- .recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+3) a{background:#e74c3c;}
46
- .recent-post-slider .recentpost-categories ul.post-categories li:nth-child(4n+4) a{background:#34495e;}
47
-
48
- .recent-post-slider .post-image-bg img{height: 100%;width: 100%;object-fit: cover;object-position: top center;border-radius: 0px;}
 
 
 
49
 
50
  /***************Design-1**************/
51
- .recent-post-slider a{text-decoration:none !important;}
52
-
53
- .recent-post-slider.design-1 .post-content-position{position:relative}
54
- .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;}
55
- .recent-post-slider.design-1 .post-content-left a {color:#fff;}
56
- .recent-post-slider.design-1 .post-content-left{padding: 20px 20px 35px 20px;}
57
- .recent-post-slider.design-1 .post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
58
- .recent-post-slider.design-1 .wp-post-content p{color:#fff;}
59
- .recent-post-slider.design-1 .slick-arrow {bottom:0px !important; top:auto !important;}
60
- .recent-post-slider.design-1 .slick-next{right:0px !important;}
61
- .recent-post-slider.design-1 .slick-prev{right:31px !important; left:auto !important;}
62
- .recent-post-slider.design-1 .slick-dots{left:15px !important; bottom:2px !important;}
63
- .recent-post-slider.design-1 a.readmorebtn{color:#fff;}
64
- .recent-post-slider.design-1 a.readmorebtn:hover{color:#fff; background:rgba(0,0,0,0.5);}
65
 
66
  /***************Design-2**************/
67
- .recent-post-slider.design-2 .post-content-position{position:relative;}
68
- .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;}
69
- .recent-post-slider.design-2 .post-content-left a{color:#fff;}
70
- .recent-post-slider.design-2 .post-content-left{padding: 33px 20px;}
71
- .recent-post-slider.design-2 .post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
72
- .recent-post-slider.design-2 .wp-post-content p{color:#fff;}
73
- .recent-post-slider.design-2 .slick-arrow {bottom:0px !important; top:auto !important;}
74
- .recent-post-slider.design-2 .slick-next{right:0px !important;}
75
- .recent-post-slider.design-2 .slick-prev{right:31px !important; left:auto !important;}
76
- .recent-post-slider.design-2 .slick-dots{left:15px !important; bottom:2px !important;}
77
- .recent-post-slider.design-2 .recentpost-inner-content {width: 100%; max-height: 100%; overflow: hidden;}
78
- .recent-post-slider.design-2 a.readmorebtn{color:#fff;}
79
- .recent-post-slider.design-2 a.readmorebtn:hover{color:#fff; background:rgba(0,0,0,0.5);}
80
 
81
  /***************Design-3**************/
82
- .recent-post-slider.design-3 .post-image-bg{background: #f1f1f1;height: 350px;line-height: 0; overflow: hidden; position: relative; width: 100%;}
83
- .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;}
84
- .recent-post-slider.design-3 .wp-post-content { opacity: 0; height:0; transition: all 0.5s ease-in-out 0s;}
85
- .recent-post-slider.design-3 .post-overlay:hover > .post-short-content .wp-post-content{opacity:1;height:auto;}
86
- .recent-post-slider.design-3 .post-overlay:hover > .post-short-content {height:85%;}
87
- .recent-post-slider.design-3 .recentpost-categories{left: 0;top: 0px;position: absolute;}
88
- .recent-post-slider.design-3 .recentpost-categories ul.post-categories li{margin: 0 2px 2px 0 !important;}
89
- .recent-post-slider.design-3 h2.wp-post-title a,
90
- .recent-post-slider.design-3 .wp-post-content a.readmorebtn,
91
- .recent-post-slider.design-3 .wp-post-content p{color: #fff;}
92
- .recent-post-slider.design-3 .slick-arrow {bottom:0px !important; top:auto !important;}
93
- .recent-post-slider.design-3 .slick-next{right:0px !important;}
94
- .recent-post-slider.design-3 .slick-prev{right:31px !important; left:auto !important;}
95
- .recent-post-slider.design-3 .slick-dots{left:15px !important; bottom:2px !important;}
96
- .recent-post-slider.design-3 a.readmorebtn:hover{color:#fff; background:rgba(0,0,0,0.5);}
97
 
98
  /***************Design-4**************/
99
- .recent-post-slider.design-4 .post-list-content, .recent-post-slider.design-4 .post-list{width:100%; float:left; clear:both;}
100
- .recent-post-slider.design-4 .post-list-content .wp-post-title a{color:#444; text-decoration:none;}
101
- .recent-post-slider.design-4 .post-image-bg{background: #f1f1f1;height: 230px;line-height: 0; overflow: hidden; position: relative; width: 100%;}
102
- .recent-post-slider.design-4 .recentpost-categories {margin-top: 0;}
103
- .recent-post-slider.design-4 .recentpost-categories a{color:#fff;}
104
- .recent-post-slider.design-4 .wp-medium-5{padding: 0px 10px 0 0;}
105
- .recent-post-slider.design-4 .post-list-content .wp-medium-7{padding:10px 35px 10px 15px;}
106
- .recent-post-slider.design-4 .slick-arrow{top:50% ;transform: translateY(-50%);-webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);}
107
- .recent-post-slider.design-4 .slick-next{right:0px !important;}
108
- .recent-post-slider.design-4 .slick-prev{left:0px !important;}
109
- .recent-post-slider.design-4 .slick-dots{left: 0;right: 0;}
110
- .recent-post-slider.design-4 .wp-post-content a.readmorebtn {color: #444; border-color: #444;}
111
- .recent-post-slider.design-4 a.readmorebtn:hover{color:#fff; background:rgba(0,0,0,0.5);}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  .wpcolumn,
114
  .wpcolumns { padding-left: 0.9375em; padding-right: 0.9375em; width:100%; float: left; position: relative; }
115
 
116
  @media only screen and (max-width: 768px) {
117
- .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}
118
  }
119
 
120
  @media only screen and (max-width: 500px) {
121
- .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:600px !important}
122
- .recent-post-slider.design-1 .wp-post-content, .recent-post-slider.design-2 .wp-post-content, .recent-post-slider.design-3 .wp-post-content{display:none}
123
  }
124
 
125
  @media only screen {
2
  Box Sizing
3
  ************************************************************/
4
  .wpcolumn, .wpcolumns {-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;}
5
+ .wppsac-post-slider *, .wppsac-post-carousel * {-webkit-box-sizing: border-box; -moz-box-sizing: border-box;box-sizing: border-box;}
6
 
7
  /************************************************************
8
  Clearfix
14
  /************************************************************
15
  Slick slider
16
  ************************************************************/
17
+ .wppsac-post-slider{visibility: hidden; opacity:0; transition:opacity 0.5s linear;}
18
+ .wppsac-post-slider.slick-initialized { visibility: visible; opacity:1;}
19
  .wppsac-hide{display:none;}
20
+ .wppsac-post-slider .slick-arrow, .wppsac-post-carousel .slick-arrow{text-indent:-99999px;}
21
+ .wppsac-post-slider button.slick-arrow, .wppsac-post-carousel button.slick-arrow {background-color: transparent!important; cursor:pointer; width:30px; height:45px; position:absolute; z-index:9; border:0px !important;padding:0 !important; margin:0px !important; border-radius:0px !important; -webkit-transition-duration: 0.4s; transition-duration: 0.4s;}
22
+ .wppsac-post-slider button.slick-next, .wppsac-post-carousel button.slick-next {background:rgba(0,0,0,0.5) url(arrow-right.png) center center no-repeat !important; background-size:25px 25px !important; outline:none !important; box-shadow: none;}
23
+ .wppsac-post-slider button.slick-prev, .wppsac-post-carousel button.slick-prev{background:rgba(0,0,0,0.5) url(arrow-left.png) center center no-repeat !important; background-size:25px 25px !important; outline:none !important; box-shadow: none;}
24
+ .wppsac-post-slider button.slick-next:hover, .wppsac-post-slider button.slick-next:focus, .wppsac-post-carousel button.slick-next:hover, .wppsac-post-carousel button.slick-next:focus,
25
+ .wppsac-post-slider button.slick-prev:hover, .wppsac-post-slider button.slick-prev:focus, .wppsac-post-carousel button.slick-prev:hover, .wppsac-post-carousel button.slick-prev:focus{background-color:rgba(0,0,0,0.8) !important;}
26
+
27
+ .wppsac-post-slider .slick-dots{padding:0 !important; margin:0 !important; position:absolute; text-align:center;}
28
+ .wppsac-post-slider .slick-dots li button{text-indent:-99999px;}
29
+ .wppsac-post-slider .slick-dots li {list-style:none !important; display:inline-block !important; margin:0 2px !important; padding:0px !important;}
30
+ .wppsac-post-slider .slick-dots li button{background:#fff !important; margin:0px !important; padding:0px !important; border:1px solid #000; border-radius:50% !important; width:13px !important; height:13px !important;}
31
+ .wppsac-post-slider .slick-dots li button:focus{outline:none !important}
32
+ .wppsac-post-slider button:active{box-shadow: none;}
33
+ .wppsac-post-slider .slick-dots li.slick-active button{background:#444 !important;}
34
+ .wppsac-post-slider .slick-slide{padding:0px !important}
35
+ .wppsac-post-overlay{ position:relative;}
36
+ .wppsac-post-slider .wppsac-post-content a.wppsac-readmorebtn {padding: 5px 10px;border: 1px solid #e7e7e7;text-decoration: none;margin: 5px 0; font-size:14px; -moz-transition:all 0.5s ease-out 0s;-ms-transition:all 0.5s ease-out 0s;-o-transition:all 0.5s ease-out 0s; transition: all 0.5s ease-out 0s; }
37
+ .wppsac-post-content {padding-bottom: 10px;}
38
+ .wppsac-sub-content {padding-bottom: 10px;}
39
+ .wppsac-post-slider h2.wppsac-post-title{margin:5px 0 !important; line-height:26px;}
40
+ .wppsac-post-slider h2.wppsac-post-title a{font-size:22px; line-height:26px;}
41
+ .wppsac-post-slider .wppsac-post-date{margin-bottom:10px; position:relative; font-size:13px;}
42
+ .wppsac-post-slider .wppsac-post-date::after { background: #e96656; bottom: -4px;content: "";height: 2px; left: 0; margin: auto ; position: absolute; width: 50px; z-index: 1;}
43
+ .wppsac-post-slider .wppsac-post-categories ul.wppsac-post-categories-list{margin:0px 0px 10px 0 !important; padding:0px !important; list-style:none !important; font-size: 0;}
44
+ .wppsac-post-slider .wppsac-post-categories ul.wppsac-post-categories-list li{display:inline-block !important; margin: 2px !important; padding: 0 !important;}
45
+ .wppsac-post-slider .wppsac-post-categories ul.wppsac-post-categories-list li a{padding:4px 10px; text-transform:uppercase; font-size:11px; text-decoration:none; color: #fff; display: block; line-height: normal;}
46
+ .wppsac-post-slider .wppsac-post-categories ul.wppsac-post-categories-list li:nth-child(4n+1) a{background:#1abc9c;}
47
+ .wppsac-post-slider .wppsac-post-categories ul.wppsac-post-categories-list li:nth-child(4n+2) a{background:#3498db;}
48
+ .wppsac-post-slider .wppsac-post-categories ul.wppsac-post-categories-list li:nth-child(4n+3) a{background:#e74c3c;}
49
+ .wppsac-post-slider .wppsac-post-categories ul.wppsac-post-categories-list li:nth-child(4n+4) a{background:#34495e;}
50
+
51
+ .wppsac-post-slider .wppsac-post-image-bg img{height: 100%;width: 100%;object-fit: cover;object-position: top center;border-radius: 0px;}
52
 
53
  /***************Design-1**************/
54
+ .wppsac-post-slider a{text-decoration:none !important;}
55
+
56
+ .wppsac-post-slider.design-1 .wppsac-post-content-position{position:relative}
57
+ .wppsac-post-slider.design-1 .wppsac-post-content-left{position:absolute !important; left:0; bottom: 0px; background:rgba(0, 0, 0, 0.5); z-index:999; color:#fff;}
58
+ .wppsac-post-slider.design-1 .wppsac-post-content-left a {color:#fff;}
59
+ .wppsac-post-slider.design-1 .wppsac-post-content-left{padding: 20px 20px 35px 20px;}
60
+ .wppsac-post-slider.design-1 .wppsac-post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
61
+ .wppsac-post-slider.design-1 .wppsac-post-content p{color:#fff;}
62
+ .wppsac-post-slider.design-1 .slick-arrow {bottom:0px !important; top:auto !important;}
63
+ .wppsac-post-slider.design-1 .slick-next{right:0px !important;}
64
+ .wppsac-post-slider.design-1 .slick-prev{right:31px !important; left:auto !important;}
65
+ .wppsac-post-slider.design-1 .slick-dots{left:15px !important; bottom:2px !important;}
66
+ .wppsac-post-slider.design-1 a.wppsac-readmorebtn{color:#fff;}
67
+ .wppsac-post-slider.design-1 a.wppsac-readmorebtn:hover{color:#fff; background:rgba(0,0,0,0.5);}
68
 
69
  /***************Design-2**************/
70
+ .wppsac-post-slider.design-2 .wppsac-post-content-position{position:relative;}
71
+ .wppsac-post-slider.design-2 .wppsac-post-content-left{position:absolute !important; left:0; top:0; bottom:0; background:rgba(0, 0, 0, 0.5); z-index:999; color:#fff;}
72
+ .wppsac-post-slider.design-2 .wppsac-post-content-left a{color:#fff;}
73
+ .wppsac-post-slider.design-2 .wppsac-post-content-left{padding: 33px 20px;}
74
+ .wppsac-post-slider.design-2 .wppsac-post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
75
+ .wppsac-post-slider.design-2 .wppsac-post-content p{color:#fff;}
76
+ .wppsac-post-slider.design-2 .slick-arrow {bottom:0px !important; top:auto !important;}
77
+ .wppsac-post-slider.design-2 .slick-next{right:0px !important;}
78
+ .wppsac-post-slider.design-2 .slick-prev{right:31px !important; left:auto !important;}
79
+ .wppsac-post-slider.design-2 .slick-dots{left:15px !important; bottom:2px !important;}
80
+ .wppsac-post-slider.design-2 .wppsac-post-inner-content {width: 100%; max-height: 100%; overflow: hidden;}
81
+ .wppsac-post-slider.design-2 a.wppsac-readmorebtn{color:#fff;}
82
+ .wppsac-post-slider.design-2 a.wppsac-readmorebtn:hover{color:#fff; background:rgba(0,0,0,0.5);}
83
 
84
  /***************Design-3**************/
85
+ .wppsac-post-slider.design-3 .wppsac-post-image-bg{background: #f1f1f1;height: 350px;line-height: 0; overflow: hidden; position: relative; width: 100%;}
86
+ .wppsac-post-slider.design-3 .wppsac-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;}
87
+ .wppsac-post-slider.design-3 .wppsac-post-content { opacity: 0; height:0; transition: all 0.5s ease-in-out 0s;}
88
+ .wppsac-post-slider.design-3 .wppsac-post-overlay:hover > .wppsac-post-short-content .wppsac-post-content{opacity:1;height:auto;}
89
+ .wppsac-post-slider.design-3 .wppsac-post-overlay:hover > .wppsac-post-short-content {height:85%;}
90
+ .wppsac-post-slider.design-3 .wppsac-post-categories{left: 0;top: 0px;position: absolute;}
91
+ .wppsac-post-slider.design-3 .wppsac-post-categories ul.post-categories li{margin: 0 2px 2px 0 !important;}
92
+ .wppsac-post-slider.design-3 h2.wppsac-post-title a,
93
+ .wppsac-post-slider.design-3 .wppsac-post-content a.wppsac-readmorebtn,
94
+ .wppsac-post-slider.design-3 .wppsac-post-content p{color: #fff;}
95
+ .wppsac-post-slider.design-3 .slick-arrow {bottom:0px !important; top:auto !important;}
96
+ .wppsac-post-slider.design-3 .slick-next{right:0px !important;}
97
+ .wppsac-post-slider.design-3 .slick-prev{right:31px !important; left:auto !important;}
98
+ .wppsac-post-slider.design-3 .slick-dots{left:15px !important; bottom:2px !important;}
99
+ .wppsac-post-slider.design-3 a.wppsac-readmorebtn:hover{color:#fff; background:rgba(0,0,0,0.5);}
100
 
101
  /***************Design-4**************/
102
+ .wppsac-post-slider.design-4 .wppsac-post-list-content, .wppsac-post-slider.design-4 .post-list{width:100%; float:left; clear:both;}
103
+ .wppsac-post-slider.design-4 .wppsac-post-list-content .wppsac-post-title a{color:#444; text-decoration:none;}
104
+ .wppsac-post-slider.design-4 .wppsac-post-image-bg{background: #f1f1f1;height: 230px;line-height: 0; overflow: hidden; position: relative; width: 100%;}
105
+ .wppsac-post-slider.design-4 .wppsac-post-categories {margin-top: 0;}
106
+ .wppsac-post-slider.design-4 .wppsac-post-categories a{color:#fff;}
107
+ .wppsac-post-slider.design-4 .wp-medium-5{padding: 0px 10px 0 0;}
108
+ .wppsac-post-slider.design-4 .wppsac-post-list-content .wp-medium-7{padding:10px 35px 10px 15px;}
109
+ .wppsac-post-slider.design-4 .slick-arrow{top:50% ;transform: translateY(-50%);-webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);}
110
+ .wppsac-post-slider.design-4 .slick-next{right:0px !important;}
111
+ .wppsac-post-slider.design-4 .slick-prev{left:0px !important;}
112
+ .wppsac-post-slider.design-4 .slick-dots{left: 0;right: 0;}
113
+ .wppsac-post-slider.design-4 .wppsac-post-content a.wppsac-readmorebtn {color: #444; border-color: #444;}
114
+ .wppsac-post-slider.design-4 a.wppsac-readmorebtn:hover{color:#fff; background:rgba(0,0,0,0.5);}
115
+
116
+ /************************************************************
117
+ Slick carousel
118
+ ************************************************************/
119
+ .wppsac-post-carousel{visibility: hidden; opacity:0; transition:opacity 0.5s linear;}
120
+ .wppsac-post-carousel.slick-initialized { visibility: visible; opacity:1;}
121
+ .wppsac-hide{display:none;}
122
+ .wppsac-post-carousel .slick-dots{padding:0 !important; margin:0 !important; position:absolute; text-align:center;}
123
+ .wppsac-post-carousel .slick-dots li button{text-indent:-99999px;}
124
+ .wppsac-post-carousel .slick-dots li {list-style:none !important; display:inline-block !important; margin:0 2px !important; padding:0px !important;}
125
+ .wppsac-post-carousel .slick-dots li button{background:#fff !important; margin:0px !important; padding:0px !important; border:1px solid #000; border-radius:50% !important; width:13px !important; height:13px !important;}
126
+ .wppsac-post-carousel .slick-dots li button:focus{outline:none !important}
127
+ .wppsac-post-carousel button:active{box-shadow: none;}
128
+ .wppsac-post-carousel .slick-dots li.slick-active button{background:#444 !important;}
129
+ .wppsac-post-carousel .wppsac-post-content a.wppsac-readmorebtn {padding: 5px 10px;border: 1px solid #e7e7e7;text-decoration: none;margin: 5px 0; font-size:14px; -moz-transition:all 0.5s ease-out 0s;-ms-transition:all 0.5s ease-out 0s;-o-transition:all 0.5s ease-out 0s; transition: all 0.5s ease-out 0s; }
130
+ .wppsac-post-carousel h2.wppsac-post-title{margin:5px 0 !important; line-height:26px;}
131
+ .wppsac-post-carousel h2.wppsac-post-title a{font-size:22px; line-height:26px;}
132
+ .wppsac-post-carousel .wppsac-post-date{margin-bottom:10px; position:relative; font-size:13px;}
133
+ .wppsac-post-carousel .wppsac-post-categories ul.wppsac-post-categories-list{margin:0px 0px 10px 0 !important; padding:0px !important; list-style:none !important; font-size: 0;}
134
+ .wppsac-post-carousel .wppsac-post-categories ul.wppsac-post-categories-list li{display:inline-block !important; margin: 2px !important; padding: 0 !important;}
135
+ .wppsac-post-carousel .wppsac-post-categories ul.wppsac-post-categories-list li a{padding:4px 10px; text-transform:uppercase; font-size:11px; text-decoration:none; color: #fff; display: block; line-height: normal;}
136
+ .wppsac-post-carousel .wppsac-post-categories ul.wppsac-post-categories-list li:nth-child(4n+1) a{background:#1abc9c;}
137
+ .wppsac-post-carousel .wppsac-post-categories ul.wppsac-post-categories-list li:nth-child(4n+2) a{background:#3498db;}
138
+ .wppsac-post-carousel .wppsac-post-categories ul.wppsac-post-categories-list li:nth-child(4n+3) a{background:#e74c3c;}
139
+ .wppsac-post-carousel .wppsac-post-categories ul.wppsac-post-categories-list li:nth-child(4n+4) a{background:#34495e;}
140
+
141
+ /***************Design-1**************/
142
+ .wppsac-post-carousel a{text-decoration:none !important;}
143
+ .wppsac-post-carousel.design-1 .wppsac-post-title a{color:#444;}
144
+ .wppsac-post-carousel.design-1 .wppsac-post-image-bg{margin-bottom:15px;}
145
+ .wppsac-post-carousel.design-1 .slick-arrow{top:50% ;transform: translateY(-50%);-webkit-transform: translateY(-50%);-moz-transform: translateY(-50%);}
146
+ .wppsac-post-carousel.design-1 .wppsac-carousel-slides{padding: 0 10px}
147
+ .wppsac-post-carousel.design-1 .slick-next{right:0px !important;}
148
+ .wppsac-post-carousel.design-1 .slick-prev{left:0px !important;}
149
+ .wppsac-post-carousel.design-1 .slick-dots{left: 0;right: 0;}
150
+ .wppsac-post-carousel.design-1 a.wppsac-readmorebtn{color:#555;}
151
+ .wppsac-post-carousel.design-1 a.wppsac-readmorebtn:hover{color:#fff; background:rgba(0,0,0,0.5);}
152
 
153
  .wpcolumn,
154
  .wpcolumns { padding-left: 0.9375em; padding-right: 0.9375em; width:100%; float: left; position: relative; }
155
 
156
  @media only screen and (max-width: 768px) {
157
+ .wppsac-post-slider.design-1 .wppsac-post-image-bg img, .wppsac-post-slider.design-2 .wppsac-post-image-bg img, .wppsac-post-slider.design-3 .wppsac-post-image-bg img{max-width:700px !important}
158
  }
159
 
160
  @media only screen and (max-width: 500px) {
161
+ .wppsac-post-slider.design-1 .wppsac-post-image-bg img, .wppsac-post-slider.design-2 .wppsac-post-image-bg img, .wppsac-post-slider.design-3 .wppsac-post-image-bg img{max-width:600px !important}
162
+ .wppsac-post-slider.design-1 .wppsac-post-content, .wppsac-post-slider.design-2 .wppsac-post-content, .wppsac-post-slider.design-3 .wppsac-post-content{display:none}
163
  }
164
 
165
  @media only screen {
assets/js/wppsac-public.js CHANGED
@@ -1,7 +1,7 @@
1
  jQuery(document).ready(function($) {
2
 
3
  // For Slider
4
- $( '.recent-post-slider' ).each(function( index ) {
5
 
6
  var slider_id = $(this).attr('id');
7
  var slider_conf = $.parseJSON( $(this).closest('.wppsac-slick-slider-wrp').find('.wppsac-slider-conf').attr('data-conf'));
@@ -20,4 +20,56 @@ jQuery(document).ready(function($) {
20
  });
21
  }
22
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  });
1
  jQuery(document).ready(function($) {
2
 
3
  // For Slider
4
+ $( '.wppsac-post-slider' ).each(function( index ) {
5
 
6
  var slider_id = $(this).attr('id');
7
  var slider_conf = $.parseJSON( $(this).closest('.wppsac-slick-slider-wrp').find('.wppsac-slider-conf').attr('data-conf'));
20
  });
21
  }
22
  });
23
+
24
+ // For Carousel
25
+ $( '.wppsac-post-carousel' ).each(function( index ) {
26
+
27
+ var carousel_id = $(this).attr('id');
28
+ var carousel_conf = $.parseJSON( $(this).closest('.wppsac-slick-carousel-wrp').find('.wppsac-carousel-conf').attr('data-conf'));
29
+
30
+ if( typeof(carousel_id) != 'undefined' && carousel_id != '' ) {
31
+ jQuery('#'+carousel_id).slick({
32
+ dots : (carousel_conf.dots) == "true" ? true : false,
33
+ infinite : true,
34
+ arrows : (carousel_conf.arrows) == "true" ? true : false,
35
+ speed : parseInt(carousel_conf.speed),
36
+ autoplay : (carousel_conf.autoplay) == "true" ? true : false,
37
+ autoplaySpeed : parseInt(carousel_conf.autoplay_interval),
38
+ slidesToShow : parseInt(carousel_conf.slides_to_show),
39
+ slidesToScroll : parseInt(carousel_conf.slides_to_scroll),
40
+ rtl : (carousel_conf.rtl) == "true" ? true : false,
41
+ responsive : [{
42
+ breakpoint : 1023,
43
+ settings : {
44
+ slidesToShow : (parseInt(carousel_conf.slides_to_show) > 3) ? 3 : parseInt(carousel_conf.slides_to_show),
45
+ slidesToScroll : 1,
46
+ }
47
+ },{
48
+ breakpoint : 767,
49
+ settings : {
50
+ slidesToShow : (parseInt(carousel_conf.slides_to_show) > 2) ? 2 : parseInt(carousel_conf.slides_to_show),
51
+ slidesToScroll : 1,
52
+ }
53
+ },{
54
+ breakpoint : 639,
55
+ settings : {
56
+ slidesToShow : 1,
57
+ slidesToScroll : 1,
58
+ }
59
+ },{
60
+ breakpoint : 479,
61
+ settings : {
62
+ slidesToShow : 1,
63
+ slidesToScroll : 1,
64
+ }
65
+ },{
66
+ breakpoint : 319,
67
+ settings : {
68
+ slidesToShow : 1,
69
+ slidesToScroll : 1,
70
+ }
71
+ }]
72
+ });
73
+ }
74
+ });
75
  });
includes/admin/settings/premium.php CHANGED
@@ -51,8 +51,14 @@ if ( !defined( 'ABSPATH' ) ) {
51
 
52
  /* Table Footer */
53
  .wpos-plugin-pricing-table tfoot th, .wpos-plugin-pricing-table tfoot td{text-align: center; border-top: 1px solid #ccc;}
54
- .wpos-plugin-pricing-table tfoot a{font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; display: inline-block; padding: 1em 2em; background: #59c7fb; border-radius: .2em;}
 
 
 
55
  </style>
 
 
 
56
 
57
  <table class="wpos-plugin-pricing-table">
58
  <colgroup></colgroup>
@@ -67,7 +73,7 @@ if ( !defined( 'ABSPATH' ) ) {
67
  </th>
68
  <th>
69
  <h2>Premium</h2>
70
- <p>Gain access to <strong>WP Responsive Recent Post Slider</strong> and <strong>all other products</strong> with a single purchase.</p>
71
  <p class="promo">Our most valuable package!</p>
72
  </th>
73
  </tr>
@@ -77,8 +83,8 @@ if ( !defined( 'ABSPATH' ) ) {
77
  <tr>
78
  <th></th>
79
  <td></td>
80
- <td><p>Gain access to <strong>WP Responsive Recent Post Slider</strong> and <strong>all other products</strong> with a single purchase.</p>
81
- <a href="https://www.wponlinesupport.com/pricing/?ref=WposPratik" target="_blank">View Pricing Options</a></td>
82
  </tr>
83
  </tfoot>
84
 
@@ -90,7 +96,7 @@ if ( !defined( 'ABSPATH' ) ) {
90
  </tr>
91
  <tr>
92
  <th>Shortcodes <span>Shortcode provide output to the front-end side</span></th>
93
- <td>1 (Slider)</td>
94
  <td>4 (Slider, Carousel, Grid Box Slider )</td>
95
  </tr>
96
  <tr>
@@ -122,37 +128,42 @@ if ( !defined( 'ABSPATH' ) ) {
122
  <th>Drag & Drop Post Order Change <span>Arrange your desired post with your desired order and display</span></th>
123
  <td><i class="dashicons dashicons-no-alt"></i></td>
124
  <td><i class="dashicons dashicons-yes"></i></td>
 
 
 
 
 
125
  </tr>
126
  <tr>
127
  <th>Visual Composer Page Builder Supports <span>Use this plugin with Visual Composer easily</span></th>
128
  <td><i class="dashicons dashicons-no-alt"></i></td>
129
  <td><i class="dashicons dashicons-yes"></i></td>
130
- </tr>
131
  <tr>
132
  <th>Custom Read More link for Post <span>Redirect post to third party destination if any</span></th>
133
  <td><i class="dashicons dashicons-no-alt"></i></td>
134
  <td><i class="dashicons dashicons-yes"></i></td>
135
  </tr>
136
- <tr>
137
- <th>Display Sticky Post <span>Display sticky post</span></th>
138
  <td><i class="dashicons dashicons-no-alt"></i></td>
139
  <td><i class="dashicons dashicons-yes"></i></td>
140
  </tr>
141
  <tr>
142
  <th>Display Desired Post <span>Display only the post you want</span></th>
143
- <td><i class="dashicons dashicons-no-alt"></i></td>
 
 
 
 
 
144
  <td><i class="dashicons dashicons-yes"></i></td>
145
  </tr>
146
  <tr>
147
  <th>Display Post for Particular Categories <span>Display only the posts with particular category</span></th>
148
- <td><i class="dashicons dashicons-no-alt"></i></td>
149
  <td><i class="dashicons dashicons-yes"></i></td>
150
  </tr>
151
- <tr>
152
- <th>Exclude Some Posts <span>Do not display the posts you want</span></th>
153
- <td><i class="dashicons dashicons-no-alt"></i></td>
154
- <td><i class="dashicons dashicons-yes"></i></td>
155
- </tr>
156
  <tr>
157
  <th>Exclude Some Categories <span>Do not display the posts for particular categories</span></th>
158
  <td><i class="dashicons dashicons-no-alt"></i></td>
@@ -172,6 +183,11 @@ if ( !defined( 'ABSPATH' ) ) {
172
  <th>Slider RTL Support <span>Slider supports for RTL website</span></th>
173
  <td><i class="dashicons dashicons-yes"></i></td>
174
  <td><i class="dashicons dashicons-yes"></i></td>
 
 
 
 
 
175
  </tr>
176
  <tr>
177
  <th>Support <span>Get support for plugin</span></th>
51
 
52
  /* Table Footer */
53
  .wpos-plugin-pricing-table tfoot th, .wpos-plugin-pricing-table tfoot td{text-align: center; border-top: 1px solid #ccc;}
54
+ .wpos-plugin-pricing-table tfoot a{font-weight: 600; color: #fff; text-decoration: none; text-transform: uppercase; display: inline-block; padding: 1em 2em; background: #ca4a1f; border-radius: .2em;}
55
+
56
+ .essential-plugin-bundle{clear:both; margin-bottom:15px;}
57
+ .essential-plugin-bundle img{max-width:100%;}
58
  </style>
59
+ <div class="essential-plugin-bundle">
60
+ <a href="https://www.wponlinesupport.com/pricing/?ref=WposPratik&utm_source=WP&utm_medium=WP-Plugins&utm_campaign=Essential-Plugin-Banner" target="_blank"><img src="https://www.wponlinesupport.com/plugin-data-api/images/plugin-bundle-banner.png?time=<?php echo current_time('timestamp'); ?>" alt="essential-plugin-bundle" /></a>
61
+ </div>
62
 
63
  <table class="wpos-plugin-pricing-table">
64
  <colgroup></colgroup>
73
  </th>
74
  <th>
75
  <h2>Premium</h2>
76
+ <p>Gain access to <strong>WP Responsive Recent Post Slider</strong> included in <br /><strong>Essential Plugin Bundle</p>
77
  <p class="promo">Our most valuable package!</p>
78
  </th>
79
  </tr>
83
  <tr>
84
  <th></th>
85
  <td></td>
86
+ <td><p>Gain access to <strong>WP Responsive Recent Post Slider</strong> included in <br /><strong>Essential Plugin Bundle</p>
87
+ <a href="https://www.wponlinesupport.com/pricing/?ref=WposPratik&utm_source=WP&utm_medium=WP-Plugins&utm_campaign=Upgrade-PRO" target="_blank">View Buying Options</a></td>
88
  </tr>
89
  </tfoot>
90
 
96
  </tr>
97
  <tr>
98
  <th>Shortcodes <span>Shortcode provide output to the front-end side</span></th>
99
+ <td>2 (Slider and Carousel)</td>
100
  <td>4 (Slider, Carousel, Grid Box Slider )</td>
101
  </tr>
102
  <tr>
128
  <th>Drag & Drop Post Order Change <span>Arrange your desired post with your desired order and display</span></th>
129
  <td><i class="dashicons dashicons-no-alt"></i></td>
130
  <td><i class="dashicons dashicons-yes"></i></td>
131
+ </tr>
132
+ <tr>
133
+ <th>Gutenberg Block Supports <span>Use this plugin with Gutenberg easily</span></th>
134
+ <td><i class="dashicons dashicons-no-alt"></i></td>
135
+ <td><i class="dashicons dashicons-yes"></i></td>
136
  </tr>
137
  <tr>
138
  <th>Visual Composer Page Builder Supports <span>Use this plugin with Visual Composer easily</span></th>
139
  <td><i class="dashicons dashicons-no-alt"></i></td>
140
  <td><i class="dashicons dashicons-yes"></i></td>
141
+ </tr>
142
  <tr>
143
  <th>Custom Read More link for Post <span>Redirect post to third party destination if any</span></th>
144
  <td><i class="dashicons dashicons-no-alt"></i></td>
145
  <td><i class="dashicons dashicons-yes"></i></td>
146
  </tr>
147
+ <tr>
148
+ <th>Ignore Sticky Post <span>Ignore sticky post or not</span></th>
149
  <td><i class="dashicons dashicons-no-alt"></i></td>
150
  <td><i class="dashicons dashicons-yes"></i></td>
151
  </tr>
152
  <tr>
153
  <th>Display Desired Post <span>Display only the post you want</span></th>
154
+ <td><i class="dashicons dashicons-yes"></i></td>
155
+ <td><i class="dashicons dashicons-yes"></i></td>
156
+ </tr>
157
+ <tr>
158
+ <th>Exclude Some Posts <span>Do not display the posts you want</span></th>
159
+ <td><i class="dashicons dashicons-yes"></i></td>
160
  <td><i class="dashicons dashicons-yes"></i></td>
161
  </tr>
162
  <tr>
163
  <th>Display Post for Particular Categories <span>Display only the posts with particular category</span></th>
164
+ <td><i class="dashicons dashicons-yes"></i></td>
165
  <td><i class="dashicons dashicons-yes"></i></td>
166
  </tr>
 
 
 
 
 
167
  <tr>
168
  <th>Exclude Some Categories <span>Do not display the posts for particular categories</span></th>
169
  <td><i class="dashicons dashicons-no-alt"></i></td>
183
  <th>Slider RTL Support <span>Slider supports for RTL website</span></th>
184
  <td><i class="dashicons dashicons-yes"></i></td>
185
  <td><i class="dashicons dashicons-yes"></i></td>
186
+ </tr>
187
+ <tr>
188
+ <th>Automatic Update <span>Get automatic plugin updates </span></th>
189
+ <td>Lifetime</td>
190
+ <td>Lifetime</td>
191
  </tr>
192
  <tr>
193
  <th>Support <span>Get support for plugin</span></th>
includes/admin/wprps-how-it-work.php CHANGED
@@ -123,12 +123,6 @@ function wprps_help_tabs() {
123
  'url' => 'http://wponlinesupport.com/plugin-data-api/plugins-data.php',
124
  'transient_key' => 'wpos_plugins_feed',
125
  'transient_time' => 172800
126
- ),
127
- 'offers-feed' => array(
128
- 'name' => __('Hire Us', 'wp-responsive-recent-post-slider'),
129
- 'url' => 'http://wponlinesupport.com/plugin-data-api/wpos-offers.php',
130
- 'transient_key' => 'wpos_offers_feed',
131
- 'transient_time' => 86400,
132
  )
133
  );
134
  return $wpos_feed_tabs;
@@ -148,6 +142,7 @@ function wprps_howitwork_page() { ?>
148
  .postbox-container .wpos-list li:before{font-family: dashicons; content: "\f139"; font-size:20px; color: #0073aa; vertical-align: middle;}
149
  .wprpsm-wrap .wpos-button-full{display:block; text-align:center; box-shadow:none; border-radius:0;}
150
  .wprpsm-shortcode-preview{background-color: #e7e7e7; font-weight: bold; padding: 2px 5px; display: inline-block; margin:0 0 2px 0;}
 
151
  </style>
152
 
153
  <div class="post-box-container">
@@ -198,8 +193,8 @@ function wprps_howitwork_page() { ?>
198
  <label><?php _e('All Shortcodes', 'wp-responsive-recent-post-slider'); ?>:</label>
199
  </th>
200
  <td>
201
- <span class="wprpsm-shortcode-preview">[recent_post_slider design="design-1"]</span> – <?php _e('Post slider Shortcode. Where you can use 4 designs', 'wp-responsive-recent-post-slider'); ?>
202
-
203
  </td>
204
  </tr>
205
 
@@ -239,12 +234,15 @@ function wprps_howitwork_page() { ?>
239
  <li>3 Widgets (Post slider, Post List/Slider-1, Post List/Slider-2)</li>
240
  <li>Drag & Drop order change</li>
241
  <li>Custom CSS option</li>
 
242
  <li>Visual Composer Support</li>
 
243
  <li>Slider RTL support</li>
244
  <li>Fully responsive</li>
245
  <li>100% Multi language</li>
246
  </ul>
247
- <a class="button button-primary wpos-button-full" href="https://1.envato.market/Yye" target="_blank"><?php _e('Go Premium ', 'wp-responsive-recent-post-slider'); ?></a>
 
248
  <p><a class="button button-primary wpos-button-full" href="http://demo.wponlinesupport.com/prodemo/post-slider-pro/" target="_blank"><?php _e('View PRO Demo ', 'wp-responsive-recent-post-slider'); ?></a> </p>
249
  </div><!-- .inside -->
250
  </div><!-- #general -->
123
  'url' => 'http://wponlinesupport.com/plugin-data-api/plugins-data.php',
124
  'transient_key' => 'wpos_plugins_feed',
125
  'transient_time' => 172800
 
 
 
 
 
 
126
  )
127
  );
128
  return $wpos_feed_tabs;
142
  .postbox-container .wpos-list li:before{font-family: dashicons; content: "\f139"; font-size:20px; color: #0073aa; vertical-align: middle;}
143
  .wprpsm-wrap .wpos-button-full{display:block; text-align:center; box-shadow:none; border-radius:0;}
144
  .wprpsm-shortcode-preview{background-color: #e7e7e7; font-weight: bold; padding: 2px 5px; display: inline-block; margin:0 0 2px 0;}
145
+ .upgrade-to-pro{font-size:18px; text-align:center; margin-bottom:15px;}
146
  </style>
147
 
148
  <div class="post-box-container">
193
  <label><?php _e('All Shortcodes', 'wp-responsive-recent-post-slider'); ?>:</label>
194
  </th>
195
  <td>
196
+ <span class="wprpsm-shortcode-preview">[recent_post_slider design="design-1"]</span> – <?php _e('Post slider Shortcode. Where you can use 4 designs.', 'wp-responsive-recent-post-slider'); ?> <br />
197
+ <span class="wprpsm-shortcode-preview">[recent_post_carousel design="design-1"]</span> – <?php _e('Post carousel Shortcode. Where you can use 1 designs.', 'wp-responsive-recent-post-slider'); ?>
198
  </td>
199
  </tr>
200
 
234
  <li>3 Widgets (Post slider, Post List/Slider-1, Post List/Slider-2)</li>
235
  <li>Drag & Drop order change</li>
236
  <li>Custom CSS option</li>
237
+ <li>Gutenberg Block Supports</li>
238
  <li>Visual Composer Support</li>
239
+ <li>WP Templating Features</li>
240
  <li>Slider RTL support</li>
241
  <li>Fully responsive</li>
242
  <li>100% Multi language</li>
243
  </ul>
244
+ <div class="upgrade-to-pro">Gain access to <strong>Responsive Recent Post Slider</strong> included in <br /><strong>Essential Plugin Bundle</div>
245
+ <a class="button button-primary wpos-button-full" href="https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/?ref=WposPratik&utm_source=WP&utm_medium=WP-Plugins&utm_campaign=Upgrade-PRO" target="_blank"><?php _e('Go Premium ', 'wp-responsive-recent-post-slider'); ?></a>
246
  <p><a class="button button-primary wpos-button-full" href="http://demo.wponlinesupport.com/prodemo/post-slider-pro/" target="_blank"><?php _e('View PRO Demo ', 'wp-responsive-recent-post-slider'); ?></a> </p>
247
  </div><!-- .inside -->
248
  </div><!-- #general -->
includes/shortcodes/wppsac-carousel.php ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Exit if accessed directly
4
+ if ( !defined( 'ABSPATH' ) ) exit;
5
+
6
+ function get_wppsac_carousel( $atts, $content = null ) {
7
+
8
+ extract(shortcode_atts(array(
9
+ "limit" => '10',
10
+ "design" => 'design-1',
11
+ "category" => '',
12
+ "show_date" => 'true',
13
+ "show_category_name" => 'true',
14
+ "show_content" => 'true',
15
+ "content_words_limit" => '20',
16
+ "slides_to_show" => '3',
17
+ "slides_to_scroll" => '1',
18
+ "dots" => 'true',
19
+ "arrows" => 'true',
20
+ "autoplay" => 'true',
21
+ "autoplay_interval" => '3000',
22
+ "speed" => '500',
23
+ "hide_post" => array(),
24
+ 'posts' => array(),
25
+ "post_type" => 'post',
26
+ "taxonomy" => 'category',
27
+ "show_author" => 'true',
28
+ "show_read_more" => 'true',
29
+ "media_size" => 'full',
30
+ "rtl" => 'false'
31
+ ), $atts));
32
+
33
+ $unique = wppsac_get_unique();
34
+ $shortcode_designs = wppsac_carousel_designs();
35
+ $posts_per_page = !empty($limit) ? $limit : '-1';
36
+ $cat = (!empty($category)) ? explode(',', $category) : '';
37
+ $design = ($design && (array_key_exists(trim($design), $shortcode_designs))) ? trim($design) : 'design-1';
38
+ $showCategory = ( $show_category_name == 'false' ) ? false : true;
39
+ $showContent = ( $show_content == 'false' ) ? false : true;
40
+ $showDate = ( $show_date == 'false') ? false : true;
41
+ $showAuthor = ( $show_author == 'false') ? false : true;
42
+ $showreadmore = ( $show_read_more == 'false') ? false : true;
43
+ $words_limit = !empty( $content_words_limit ) ? $content_words_limit : 20;
44
+ $slides_to_show = !empty($slides_to_show) ? $slides_to_show : 3;
45
+ $slides_to_scroll = !empty($slides_to_scroll) ? $slides_to_scroll : 1;
46
+ $dots = ( $dots == 'false' ) ? 'false' : 'true';
47
+ $arrows = ( $arrows == 'false' ) ? 'false' : 'true';
48
+ $autoplay = ( $autoplay == 'false' ) ? 'false' : 'true';
49
+ $autoplay_interval = (!empty($autoplay_interval)) ? $autoplay_interval : 3000;
50
+ $speed = (!empty($speed)) ? $speed : 500;
51
+ $post_type = !empty($post_type) ? $post_type : 'post';
52
+ $taxonomy = !empty($taxonomy) ? $taxonomy : 'category';
53
+ $media_size = !empty($media_size) ? $media_size : 'full'; // you can use thumbnail, medium, medium_large, large, full
54
+ $exclude_post = !empty($hide_post) ? explode(',', $hide_post) : array();
55
+ $posts = !empty($posts) ? explode(',', $posts) : array();
56
+
57
+ // For RTL
58
+ if( empty($rtl) && is_rtl() ) {
59
+ $rtl = 'true';
60
+ } elseif ( $rtl == 'true' ) {
61
+ $rtl = 'true';
62
+ } else {
63
+ $rtl = 'false';
64
+ }
65
+
66
+ // Shortcode file
67
+ $design_file_path = WPRPS_DIR . '/templates/carousel/' . $design . '.php';
68
+ $design_file = (file_exists($design_file_path)) ? $design_file_path : '';
69
+
70
+ // Enqueus required script
71
+ wp_enqueue_script( 'wpos-slick-jquery' );
72
+ wp_enqueue_script( 'wppsac-public-script' );
73
+
74
+ // Slider configuration
75
+ $carousel_conf = compact('slides_to_show', 'slides_to_scroll', 'dots', 'arrows', 'autoplay', 'autoplay_interval','speed', 'rtl');
76
+
77
+ // Taking some global
78
+ global $post;
79
+
80
+ ob_start();
81
+
82
+ // WP Query Parameters
83
+ $args = array (
84
+ 'post_type' => $post_type,
85
+ 'post_status' => array( 'publish' ),
86
+ 'orderby' => 'date',
87
+ 'order' => 'DESC',
88
+ 'posts_per_page' => $posts_per_page,
89
+ 'post__not_in' => $exclude_post,
90
+ 'post__in' => $posts,
91
+ );
92
+
93
+ // Category Parameter
94
+ if($cat != "") {
95
+
96
+ $args['tax_query'] = array(
97
+ array(
98
+ 'taxonomy' => $taxonomy,
99
+ 'field' => 'term_id',
100
+ 'terms' => $cat,
101
+ ));
102
+ }
103
+
104
+ $query = new WP_Query($args);
105
+ $post_count = $query->post_count;
106
+
107
+ if ( $query->have_posts() ) :
108
+ ?>
109
+ <div class="wppsac-slick-carousel-wrp wppsac-clearfix">
110
+ <div id="wppsac-post-carousel-<?php echo $unique; ?>" class="wppsac-post-carousel <?php echo $design; ?>">
111
+ <?php
112
+ while ( $query->have_posts() ) : $query->the_post();
113
+ $post_id = isset($post->ID) ? $post->ID : '';
114
+ $cat_list = wppsac_get_category_list($post->ID, $taxonomy);
115
+ $feat_image = wppsac_get_post_featured_image( $post->ID, $media_size, true );
116
+ if( $design_file ) {
117
+ include( $design_file );
118
+ }
119
+ endwhile; ?>
120
+ </div>
121
+ <div class="wppsac-carousel-conf wppsac-hide" data-conf="<?php echo htmlspecialchars(json_encode($carousel_conf)); ?>"></div>
122
+ </div>
123
+ <?php
124
+ endif;
125
+ wp_reset_postdata();
126
+ return ob_get_clean();
127
+ }
128
+ add_shortcode('recent_post_carousel', 'get_wppsac_carousel');
includes/shortcodes/wppsac-slider.php CHANGED
@@ -18,6 +18,7 @@ function get_wppsac_slider( $atts, $content = null ) {
18
  "autoplay" => 'true',
19
  "autoplay_interval" => '3000',
20
  "speed" => '500',
 
21
  "hide_post" => array(),
22
  "post_type" => 'post',
23
  "taxonomy" => 'category',
@@ -47,6 +48,7 @@ function get_wppsac_slider( $atts, $content = null ) {
47
  $taxonomy = !empty($taxonomy) ? $taxonomy : 'category';
48
  $media_size = !empty($media_size) ? $media_size : 'full'; // you can use thumbnail, medium, medium_large, large, full
49
  $exclude_post = !empty($hide_post) ? explode(',', $hide_post) : array();
 
50
 
51
  // For RTL
52
  if( empty($rtl) && is_rtl() ) {
@@ -58,7 +60,7 @@ function get_wppsac_slider( $atts, $content = null ) {
58
  }
59
 
60
  // Shortcode file
61
- $design_file_path = WPRPS_DIR . '/templates/' . $design . '.php';
62
  $design_file = (file_exists($design_file_path)) ? $design_file_path : '';
63
 
64
  // Enqueus required script
@@ -80,6 +82,7 @@ function get_wppsac_slider( $atts, $content = null ) {
80
  'orderby' => 'date',
81
  'order' => 'DESC',
82
  'posts_per_page' => $posts_per_page,
 
83
  'post__not_in' => $exclude_post,
84
  );
85
 
@@ -100,7 +103,7 @@ function get_wppsac_slider( $atts, $content = null ) {
100
  if ( $query->have_posts() ) :
101
  ?>
102
  <div class="wppsac-slick-slider-wrp wppsac-clearfix">
103
- <div id="recent-post-slider-<?php echo $unique; ?>" class="recent-post-slider <?php echo $design; ?>">
104
  <?php
105
  while ( $query->have_posts() ) : $query->the_post();
106
  $post_id = isset($post->ID) ? $post->ID : '';
@@ -115,7 +118,7 @@ function get_wppsac_slider( $atts, $content = null ) {
115
  </div>
116
  <?php
117
  endif;
118
- wp_reset_query();
119
  return ob_get_clean();
120
  }
121
  add_shortcode('recent_post_slider', 'get_wppsac_slider');
18
  "autoplay" => 'true',
19
  "autoplay_interval" => '3000',
20
  "speed" => '500',
21
+ 'posts' => array(),
22
  "hide_post" => array(),
23
  "post_type" => 'post',
24
  "taxonomy" => 'category',
48
  $taxonomy = !empty($taxonomy) ? $taxonomy : 'category';
49
  $media_size = !empty($media_size) ? $media_size : 'full'; // you can use thumbnail, medium, medium_large, large, full
50
  $exclude_post = !empty($hide_post) ? explode(',', $hide_post) : array();
51
+ $posts = !empty($posts) ? explode(',', $posts) : array();
52
 
53
  // For RTL
54
  if( empty($rtl) && is_rtl() ) {
60
  }
61
 
62
  // Shortcode file
63
+ $design_file_path = WPRPS_DIR . '/templates/slider/' . $design . '.php';
64
  $design_file = (file_exists($design_file_path)) ? $design_file_path : '';
65
 
66
  // Enqueus required script
82
  'orderby' => 'date',
83
  'order' => 'DESC',
84
  'posts_per_page' => $posts_per_page,
85
+ 'post__in' => $posts,
86
  'post__not_in' => $exclude_post,
87
  );
88
 
103
  if ( $query->have_posts() ) :
104
  ?>
105
  <div class="wppsac-slick-slider-wrp wppsac-clearfix">
106
+ <div id="wppsac-post-slider-<?php echo $unique; ?>" class="wppsac-post-slider <?php echo $design; ?>">
107
  <?php
108
  while ( $query->have_posts() ) : $query->the_post();
109
  $post_id = isset($post->ID) ? $post->ID : '';
118
  </div>
119
  <?php
120
  endif;
121
+ wp_reset_postdata();
122
  return ob_get_clean();
123
  }
124
  add_shortcode('recent_post_slider', 'get_wppsac_slider');
includes/wppsac-function.php CHANGED
@@ -48,7 +48,7 @@ function wppsac_get_category_list( $post_id = 0, $taxonomy = '' ) {
48
  $terms = get_the_terms( $post_id, $taxonomy );
49
 
50
  if( $terms && !is_wp_error($terms) && !empty($taxonomy) ) {
51
- $output .= '<ul class="post-categories wppsac-post-categories">';
52
  foreach ( $terms as $term ) {
53
  $output .= '<li><a href="'.get_term_link($term).'" rel="'.$taxonomy.'"> '.$term->name.' </a></li>';
54
  }
@@ -74,6 +74,19 @@ function wppsac_slider_designs() {
74
  return apply_filters('wppsac_slider_designs', $design_arr );
75
  }
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
  /**
79
  * Function to add array after specific key
48
  $terms = get_the_terms( $post_id, $taxonomy );
49
 
50
  if( $terms && !is_wp_error($terms) && !empty($taxonomy) ) {
51
+ $output .= '<ul class="wppsac-post-categories-list">';
52
  foreach ( $terms as $term ) {
53
  $output .= '<li><a href="'.get_term_link($term).'" rel="'.$taxonomy.'"> '.$term->name.' </a></li>';
54
  }
74
  return apply_filters('wppsac_slider_designs', $design_arr );
75
  }
76
 
77
+ /**
78
+ * Function to get carousel shortcode designs
79
+ *
80
+ * @package WP Responsive Recent Post Slider
81
+ * @since 2.2
82
+ */
83
+ function wppsac_carousel_designs() {
84
+ $design_arr = array(
85
+ 'design-1' => __('Design 1', 'wp-responsive-recent-post-slider'),
86
+ );
87
+ return apply_filters('wppsac_carousel_designs', $design_arr );
88
+ }
89
+
90
 
91
  /**
92
  * Function to add array after specific key
readme.txt CHANGED
@@ -1,61 +1,67 @@
1
- === WP Responsive Recent Post Slider ===
2
  Contributors: wponlinesupport, anoopranawat, pratik-jain
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: 4.0
5
- Tested up to: 5.2.2
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. Also work with Gutenberg shortcode block.
11
 
12
  == Description ==
13
 
14
- Attractive & eye-catching WP Responsive Recent Post Slider.
15
 
16
- Recent Post Slider plugin displays your recent WordPress posts using 4 designs with beautiful slider.
17
 
18
- View [FREE DEMO](http://demo.wponlinesupport.com/recent-post-slider-demo/) | [PRO DEMO and Features](https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/) for additional information.
 
 
 
19
 
20
  When you want to makeover your WordPress website theme with something extraordinary and creative, you must consider WP responsive recent post slider. Help your website to get a slide-wise display to show the recent posts/news. Not just eye appealing, it is also loved by the visitors as they find it quite easy to locate the recent posts.
21
 
22
- You can also try our FREE plugin [Recent Posts Widget Designer](https://wordpress.org/plugins/recent-posts-widget-designer/) along with "Responsive Recent Post Slider"
23
 
24
- Display unlimited number of WordPresss posts slider in a single page or post with different sets of options like category, limit, navigation type.
25
 
26
  **Also work with Gutenberg shortcode block.**
27
 
28
- = Here is the Recent Post Slider shortcode example =
29
 
30
- **Main shortcode:**
31
 
32
  <code>[recent_post_slider]</code>
33
 
 
 
 
 
34
  **To display only latest 4 post:**
35
 
36
  <code>[recent_post_slider limit="4"]</code>
37
- Where limit define the number of posts to display.
38
 
39
  **If you want to display Recent Post Slider by category then use this short code:**
40
 
41
  <code>[recent_post_slider category="category_ID"]</code>
 
42
 
43
  **We have given 4 designs. For designs use the following shortcode:**
44
 
45
  <code>[recent_post_slider design="design-1"]</code>
46
- Where designs are : design-1, design-2, design-3, design-4
47
-
48
- You can see and select all the designs from Post -> Post Slider Designs. Here you can use the shortcode for design that you like and want to use for your website.
49
 
50
  = Here is Template code =
51
  <code><?php echo do_shortcode('[recent_post_slider]'); ?> </code>
 
52
 
53
  = Use Following Recent Post Slider parameters with shortcode =
54
  <code>[recent_post_slider]</code>
55
 
56
- * **limit** : [recent_post_slider limit="8"] (Display only 8 latest post. By default it display 8 latest posts with shortcode [recent_post_slider].
57
- If you want to display all posts then use limit="-1").
58
- * **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 ).
59
  * **category**: [recent_post_slider category="category_ID"] ( ie Display recent post slider by their category ID ).
60
  * **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").
61
  * **show_date** : [recent_post_slider show_date="false"] (Display post date OR not. By default value is "True". Options are "ture OR false")
@@ -67,11 +73,36 @@ You can see and select all the designs from Post -> Post Slider Designs. Here yo
67
  * **content_words_limit** : [recent_post_slider content_words_limit="30" ] (Control post short content Words limit. By default limit is 20 words).
68
  * **post_type:** [recent_post_slider post_type="post"] (ie added custom post type support where you add custom post. By default value is "post")
69
  * **taxonomy:** [recent_post_slider taxonomy="category"] (ie added custom taxonomy support where you add custom taxonomy. By default value is "category")
 
70
  * **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)
71
  * **show_author:** [recent_post_slider show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
72
  * **show_read_more:** [recent_post_slider show_read_more="true"] (Display read more button. Values are "true OR false")
73
  * **rtl:** [recent_post_slider rtl="true"] (for rtl mode. By default value is “false”. Options are “true OR false”).
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  = Pro Features include: =
76
  > <strong>Premium Version</strong><br>
77
  >
@@ -79,13 +110,18 @@ You can see and select all the designs from Post -> Post Slider Designs. Here yo
79
  > * Recent Post Carousel with 30 designs.
80
  > * Recent Post gridbox slider with 8 designs.
81
  > * Shortcode <code>[recent_post_carousel]</code> and <code>[gridbox_post_slider]</code>
82
- > * 3 Widgets (Post slider, Post List/Slider-1, Post List/Slider-2)
83
- > * V1.3.4 Support WordPress default post as well as any custom post-type and taxonomy
 
 
 
84
  >
85
  > View [PRO DEMO and Features](https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/) for additional information.
86
  >
87
 
88
  = Features include: =
 
 
89
  * Easy to add.
90
  * Also work with Gutenberg shortcode block.
91
  * Given 4 designs.
@@ -124,6 +160,27 @@ You can see and select all the designs from Post -> Post Slider Designs. Here yo
124
 
125
  == Changelog ==
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  = 2.1 (22, June 2019) =
128
  * [*] Fixed : Fixed readmore button hover issue in all designs.
129
 
1
+ === WP Responsive Recent Post Slider/Carousel ===
2
  Contributors: wponlinesupport, anoopranawat, pratik-jain
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: 4.0
5
+ Tested up to: 5.4
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Add and display Responsive WordPresss Recent Post Slider and Carousel on your website with 4 designs (Slider) and 1 designs (Carousel) using a shortcode. Also work with Gutenberg shortcode block.
11
 
12
  == Description ==
13
 
14
+ Attractive & eye-catching WP Responsive Recent Post Slider and Carousel.
15
 
16
+ This plugin displays your recent WordPress posts using :
17
 
18
+ * Posts Slider (4 designs),
19
+ * Posts Carousel (1 designs)
20
+
21
+ Check [Demo and Features](https://demo.wponlinesupport.com/recent-post-slider-demo/) for additional information.
22
 
23
  When you want to makeover your WordPress website theme with something extraordinary and creative, you must consider WP responsive recent post slider. Help your website to get a slide-wise display to show the recent posts/news. Not just eye appealing, it is also loved by the visitors as they find it quite easy to locate the recent posts.
24
 
25
+ You can also try our FREE plugin [Recent Posts Widget Designer](https://wordpress.org/plugins/recent-posts-widget-designer/) along with "Responsive Recent Post Slider/Carousel"
26
 
27
+ Display unlimited number of WordPresss posts slider and carousel in a single page or post with different sets of options like category, limit, navigation type.
28
 
29
  **Also work with Gutenberg shortcode block.**
30
 
31
+ = Here is the plugin shortcode example =
32
 
33
+ **Post Slider**
34
 
35
  <code>[recent_post_slider]</code>
36
 
37
+ **Post Carousel**
38
+
39
+ <code>[recent_post_carousel]</code>
40
+
41
  **To display only latest 4 post:**
42
 
43
  <code>[recent_post_slider limit="4"]</code>
44
+ Where limit define the number of posts to display. You can use same parameter with Carousel shortcode.
45
 
46
  **If you want to display Recent Post Slider by category then use this short code:**
47
 
48
  <code>[recent_post_slider category="category_ID"]</code>
49
+ You can use same parameter with Carousel shortcode.
50
 
51
  **We have given 4 designs. For designs use the following shortcode:**
52
 
53
  <code>[recent_post_slider design="design-1"]</code>
54
+ Where designs are : design-1, design-2, design-3, design-4. You can use same parameter with Carousel shortcode but in Carousel we have given only 1 design ie design-1.
 
 
55
 
56
  = Here is Template code =
57
  <code><?php echo do_shortcode('[recent_post_slider]'); ?> </code>
58
+ <code><?php echo do_shortcode('[recent_post_carousel]'); ?> </code>
59
 
60
  = Use Following Recent Post Slider parameters with shortcode =
61
  <code>[recent_post_slider]</code>
62
 
63
+ * **limit** : [recent_post_slider limit="8"] (Display only 8 latest post. By default it display 8 latest posts with shortcode [recent_post_slider]. 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. ).
 
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")
73
  * **content_words_limit** : [recent_post_slider content_words_limit="30" ] (Control post short content Words limit. By default limit is 20 words).
74
  * **post_type:** [recent_post_slider post_type="post"] (ie added custom post type support where you add custom post. By default value is "post")
75
  * **taxonomy:** [recent_post_slider taxonomy="category"] (ie added custom taxonomy support where you add custom taxonomy. By default value is "category")
76
+ * **posts:** [recent_post_slider posts="1,2,3"] (ie include some posts with their post-id that you want to display)
77
  * **hide_post:** [recent_post_slider hide_post="1,2,3"] (ie exclude some posts with their post-id that you do not want to display)
78
  * **show_author:** [recent_post_slider show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
79
  * **show_read_more:** [recent_post_slider show_read_more="true"] (Display read more button. Values are "true OR false")
80
  * **rtl:** [recent_post_slider rtl="true"] (for rtl mode. By default value is “false”. Options are “true OR false”).
81
 
82
+ = Use Following Recent Post Carousel parameters with shortcode =
83
+ <code>[recent_post_carousel]</code>
84
+
85
+ * **limit** : [recent_post_carousel limit="8"] (Display only 8 latest post. By default it display 8 latest posts with shortcode [recent_post_carousel]. If you want to display all posts then use limit="-1").
86
+ * **design** : [recent_post_carousel design="design-1"] (You can select 1 design for your recent post carousel. ).
87
+ * **category**: [recent_post_carousel category="category_ID"] ( ie Display recent post carousel by their category ID ).
88
+ * **show_category_name** : [recent_post_carousel show_category_name="true" ] (Display category name OR not. By default value is "True". Options are "ture OR false").
89
+ * **show_date** : [recent_post_carousel show_date="false"] (Display post date OR not. By default value is "True". Options are "ture OR false")
90
+ * **show_content** : [recent_post_carousel show_content="true" ] (Display post Short content OR not. By default value is "True". Options are "ture OR false").
91
+ * **media_size** : [recent_post_carousel media_size="full"] (where you can use values : thumbnail, medium, medium_large, large and full)
92
+ * **slides_to_show** : [recent_post_carousel slides_to_show="3" ] (Display number of posts at a time. By default value is "3").
93
+ * **slides_to_scroll** : [recent_post_carousel slides_to_scroll="1" ] (Scroll number of posts at a time. By default value is "1").
94
+ * **Pagination and arrows** : [recent_post_carousel dots="false" arrows="false"]
95
+ * **Autoplay and Autoplay Interval**: [recent_post_carousel autoplay="true" autoplay_interval="100"]
96
+ * **Slide Speed**: [recent_post_carousel speed="3000"]
97
+ * **content_words_limit** : [recent_post_carousel content_words_limit="30" ] (Control post short content Words limit. By default limit is 20 words).
98
+ * **post_type:** [recent_post_carousel post_type="post"] (ie added custom post type support where you add custom post. By default value is "post")
99
+ * **taxonomy:** [recent_post_carousel taxonomy="category"] (ie added custom taxonomy support where you add custom taxonomy. By default value is "category")
100
+ * **posts:** [recent_post_carousel posts="1,2,3"] (ie include some posts with their post-id that you want to display)
101
+ * **hide_post:** [recent_post_carousel hide_post="1,2,3"] (ie exclude some posts with their post-id that you do not want to display)
102
+ * **show_author:** [recent_post_carousel show_author="false"] (ie Display author name OR not. By default value is "true". Values are "true OR false")
103
+ * **show_read_more:** [recent_post_carousel show_read_more="true"] (Display read more button. Values are "true OR false")
104
+ * **rtl:** [recent_post_carousel rtl="true"] (for rtl mode. By default value is “false”. Options are “true OR false”).
105
+
106
  = Pro Features include: =
107
  > <strong>Premium Version</strong><br>
108
  >
110
  > * Recent Post Carousel with 30 designs.
111
  > * Recent Post gridbox slider with 8 designs.
112
  > * Shortcode <code>[recent_post_carousel]</code> and <code>[gridbox_post_slider]</code>
113
+ > * 3 Widgets (Post slider, Post List/Slider-1, Post List/Slider-2).
114
+ > * V1.3.4 Support WordPress default post as well as any custom post-type and taxonomy .
115
+ > * Gutenberg Block Supports.
116
+ > * Visual Composer Support.
117
+ > * WP Templating Features.
118
  >
119
  > View [PRO DEMO and Features](https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/) for additional information.
120
  >
121
 
122
  = Features include: =
123
+ * Post slider
124
+ * Post carousel
125
  * Easy to add.
126
  * Also work with Gutenberg shortcode block.
127
  * Given 4 designs.
160
 
161
  == Changelog ==
162
 
163
+ = 2.2.5 (24, Jan 2020) =
164
+ * [*] New : Added new shortcode parameter "posts" for both shortcode.
165
+
166
+ = 2.2.4 (26, Dec 2019) =
167
+ * [*] Tested : Tested with Gutenberg blocks.
168
+ * [*] Updated features list.
169
+ * [*] Added unique prefix to all classes to avoid the conflict with any theme and third-party plugins.
170
+ * [*] Fixed some css issues.
171
+
172
+ = 2.2.3 (09, Sept 2019) =
173
+ * [*] Fixed title line height issue reported by a user.
174
+
175
+ = 2.2.2 (20, August 2019) =
176
+ * [+] Added : Added esc_url() for featured image in a design file.
177
+ * [*] Fixed title duplicate issue reported by a user.
178
+
179
+ = 2.2.1 (2, August 2019) =
180
+ * [+] Added : Added a new shortcode for post carousel with a design.
181
+ * [*] New Shortcode : [recent_post_carousel]
182
+ * [+] Added : wp_reset_postdata();
183
+
184
  = 2.1 (22, June 2019) =
185
  * [*] Fixed : Fixed readmore button hover issue in all designs.
186
 
templates/carousel/design-1.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( !defined( 'ABSPATH' ) ) exit; ?>
4
+
5
+ <div class="wppsac-carousel-slides">
6
+ <?php if( has_post_thumbnail() ) { ?>
7
+ <div class="wppsac-post-image-bg">
8
+ <a href="<?php the_permalink(); ?>">
9
+ <img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" />
10
+ </a>
11
+ </div>
12
+ <?php } ?>
13
+ <div class="wppsac-post-content-position">
14
+ <?php if($showCategory) { ?>
15
+ <div class="wppsac-post-categories">
16
+ <?php echo $cat_list; ?>
17
+ </div>
18
+ <?php } ?>
19
+ <h2 class="wppsac-post-title">
20
+ <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
21
+ </h2>
22
+ <?php if($showDate || $showAuthor) { ?>
23
+ <div class="wppsac-post-date">
24
+ <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
25
+ <?php echo ($showAuthor && $showDate) ? '&nbsp;/&nbsp;' : '' ?>
26
+ <?php if($showDate) { echo get_the_date(); } ?>
27
+ </div>
28
+ <?php } ?>
29
+
30
+ <?php if($showContent) { ?>
31
+ <div class="wppsac-post-content">
32
+ <?php
33
+ $customExcerpt = get_the_excerpt();
34
+ if (has_excerpt($post->ID)) { ?>
35
+ <div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
36
+ <?php } else {
37
+ $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
38
+ <div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
39
+ <?php } ?>
40
+
41
+ <?php if($showreadmore) { ?>
42
+ <a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
43
+ <?php } ?>
44
+ </div>
45
+ <?php } ?>
46
+ </div>
47
+ </div>
templates/design-1.php DELETED
@@ -1,51 +0,0 @@
1
- <?php
2
- // Exit if accessed directly
3
- if ( !defined( 'ABSPATH' ) ) exit; ?>
4
-
5
- <div class="post-slides">
6
- <div class="post-content-position">
7
- <div class="post-content-left wp-medium-8 wpcolumns">
8
-
9
- <?php if($showCategory) { ?>
10
- <div class="recentpost-categories">
11
- <?php echo $cat_list; ?>
12
- </div>
13
- <?php } ?>
14
- <h2 class="wp-post-title">
15
- <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
16
- </h2>
17
- <?php if($showDate || $showAuthor) { ?>
18
- <div class="wp-post-date">
19
- <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
20
- <?php echo ($showAuthor && $showDate) ? '&nbsp;/&nbsp;' : '' ?>
21
- <?php if($showDate) { echo get_the_date(); } ?>
22
- </div>
23
- <?php } ?>
24
-
25
- <?php if($showContent) { ?>
26
- <div class="wp-post-content">
27
- <?php
28
- $customExcerpt = get_the_excerpt();
29
- if (has_excerpt($post->ID)) { ?>
30
- <div class="wp-sub-content"><?php echo $customExcerpt ; ?></div>
31
- <?php } else {
32
- $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
33
- <div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
34
- <?php } ?>
35
-
36
- <?php if($showreadmore) { ?>
37
- <a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
38
- <?php } ?>
39
-
40
- </div>
41
- <?php } ?>
42
- </div>
43
- <div class="post-image-bg">
44
- <a href="<?php the_permalink(); ?>">
45
- <?php if( has_post_thumbnail() ) { ?>
46
- <img src="<?php echo $feat_image; ?>" alt="<?php the_title(); ?>" />
47
- <?php } ?>
48
- </a>
49
- </div>
50
- </div>
51
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/slider/design-1.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if ( !defined( 'ABSPATH' ) ) exit; ?>
4
+
5
+ <div class="wppsac-post-slides">
6
+ <div class="wppsac-post-content-position">
7
+ <div class="wppsac-post-content-left wp-medium-8 wpcolumns">
8
+ <?php if($showCategory) { ?>
9
+ <div class="wppsac-post-categories">
10
+ <?php echo $cat_list; ?>
11
+ </div>
12
+ <?php } ?>
13
+ <h2 class="wppsac-post-title">
14
+ <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
15
+ </h2>
16
+ <?php if($showDate || $showAuthor) { ?>
17
+ <div class="wppsac-post-date">
18
+ <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
19
+ <?php echo ($showAuthor && $showDate) ? '&nbsp;/&nbsp;' : '' ?>
20
+ <?php if($showDate) { echo get_the_date(); } ?>
21
+ </div>
22
+ <?php } ?>
23
+
24
+ <?php if($showContent) { ?>
25
+ <div class="wppsac-post-content">
26
+ <?php
27
+ $customExcerpt = get_the_excerpt();
28
+ if (has_excerpt($post->ID)) { ?>
29
+ <div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
30
+ <?php } else {
31
+ $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
32
+ <div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
33
+ <?php } ?>
34
+
35
+ <?php if($showreadmore) { ?>
36
+ <a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
37
+ <?php } ?>
38
+
39
+ </div>
40
+ <?php } ?>
41
+ </div>
42
+ <div class="wppsac-post-image-bg">
43
+ <a href="<?php the_permalink(); ?>">
44
+ <?php if( has_post_thumbnail() ) { ?>
45
+ <img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" />
46
+ <?php } ?>
47
+ </a>
48
+ </div>
49
+ </div>
50
+ </div>
templates/{design-2.php → slider/design-2.php} RENAMED
@@ -1,49 +1,49 @@
1
  <?php
2
  // Exit if accessed directly
3
  if ( !defined( 'ABSPATH' ) ) exit; ?>
4
- <div class="post-slides">
5
- <div class="post-content-position">
6
  <!-- Content-left/right -->
7
- <div class="post-content-left wp-medium-6 wpcolumns">
8
- <div class="recentpost-inner-content">
9
  <?php if($showCategory) { ?>
10
- <div class="recentpost-categories">
11
  <?php echo $cat_list; ?>
12
  </div>
13
  <?php } ?>
14
- <h2 class="wp-post-title">
15
  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
16
  </h2>
17
  <?php if($showDate || $showAuthor) { ?>
18
- <div class="wp-post-date">
19
  <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
20
  <?php echo ($showAuthor && $showDate) ? '&nbsp;/&nbsp;' : '' ?>
21
  <?php if($showDate) { echo get_the_date(); } ?>
22
  </div>
23
  <?php } ?>
24
  <?php if($showContent) { ?>
25
- <div class="wp-post-content">
26
  <?php
27
  $customExcerpt = get_the_excerpt();
28
  if (has_excerpt($post->ID)) { ?>
29
- <div class="wp-sub-content"><?php echo $customExcerpt ; ?></div>
30
  <?php } else {
31
  $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
32
- <div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
33
  <?php } ?>
34
 
35
  <?php if($showreadmore) { ?>
36
- <a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
37
  <?php } ?>
38
 
39
  </div>
40
  <?php } ?>
41
  </div>
42
  </div>
43
- <div class="post-image-bg">
44
  <a href="<?php the_permalink(); ?>">
45
  <?php if( has_post_thumbnail() ) { ?>
46
- <img src="<?php echo $feat_image; ?>" alt="<?php the_title(); ?>" />
47
  <?php } ?>
48
  </a>
49
  </div>
1
  <?php
2
  // Exit if accessed directly
3
  if ( !defined( 'ABSPATH' ) ) exit; ?>
4
+ <div class="wppsac-post-slides">
5
+ <div class="wppsac-post-content-position">
6
  <!-- Content-left/right -->
7
+ <div class="wppsac-post-content-left wp-medium-6 wpcolumns">
8
+ <div class="wppsac-post-inner-content">
9
  <?php if($showCategory) { ?>
10
+ <div class="wppsac-post-categories">
11
  <?php echo $cat_list; ?>
12
  </div>
13
  <?php } ?>
14
+ <h2 class="wppsac-post-title">
15
  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
16
  </h2>
17
  <?php if($showDate || $showAuthor) { ?>
18
+ <div class="wppsac-post-date">
19
  <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
20
  <?php echo ($showAuthor && $showDate) ? '&nbsp;/&nbsp;' : '' ?>
21
  <?php if($showDate) { echo get_the_date(); } ?>
22
  </div>
23
  <?php } ?>
24
  <?php if($showContent) { ?>
25
+ <div class="wppsac-post-content">
26
  <?php
27
  $customExcerpt = get_the_excerpt();
28
  if (has_excerpt($post->ID)) { ?>
29
+ <div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
30
  <?php } else {
31
  $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
32
+ <div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
33
  <?php } ?>
34
 
35
  <?php if($showreadmore) { ?>
36
+ <a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
37
  <?php } ?>
38
 
39
  </div>
40
  <?php } ?>
41
  </div>
42
  </div>
43
+ <div class="wppsac-post-image-bg">
44
  <a href="<?php the_permalink(); ?>">
45
  <?php if( has_post_thumbnail() ) { ?>
46
+ <img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" />
47
  <?php } ?>
48
  </a>
49
  </div>
templates/{design-3.php → slider/design-3.php} RENAMED
@@ -2,27 +2,27 @@
2
  // Exit if accessed directly
3
  if ( !defined( 'ABSPATH' ) ) exit; ?>
4
 
5
- <div class="post-slides">
6
- <div class="post-overlay">
7
- <div class="post-image-bg">
8
  <a href="<?php the_permalink(); ?>">
9
  <?php if( has_post_thumbnail() ) { ?>
10
- <img src="<?php echo $feat_image; ?>" alt="<?php the_title(); ?>" />
11
  <?php } ?>
12
  </a>
13
  </div>
14
  <?php if($showCategory) { ?>
15
- <div class="recentpost-categories">
16
  <?php echo $cat_list; ?>
17
- </div>
18
- <?php } ?>
19
- <div class="post-short-content">
20
- <div class="item-meta bottom">
21
- <h2 class="wp-post-title">
22
  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
23
  </h2>
24
  <?php if($showDate || $showAuthor) { ?>
25
- <div class="wp-post-date">
26
  <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
27
  <?php echo ($showAuthor && $showDate) ? '&nbsp;/&nbsp;' : '' ?>
28
  <?php if($showDate) { echo get_the_date(); } ?>
@@ -30,20 +30,19 @@ if ( !defined( 'ABSPATH' ) ) exit; ?>
30
  <?php } ?>
31
 
32
  <?php if($showContent) { ?>
33
- <div class="wp-post-content">
34
  <?php
35
  $customExcerpt = get_the_excerpt();
36
  if (has_excerpt($post->ID)) { ?>
37
- <div class="wp-sub-content"><?php echo $customExcerpt ; ?></div>
38
  <?php } else {
39
  $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
40
- <div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
41
  <?php } ?>
42
 
43
  <?php if($showreadmore) { ?>
44
- <a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
45
  <?php } ?>
46
-
47
  </div>
48
  <?php } ?>
49
  </div>
2
  // Exit if accessed directly
3
  if ( !defined( 'ABSPATH' ) ) exit; ?>
4
 
5
+ <div class="wppsac-post-slides">
6
+ <div class="wppsac-post-overlay">
7
+ <div class="wppsac-post-image-bg">
8
  <a href="<?php the_permalink(); ?>">
9
  <?php if( has_post_thumbnail() ) { ?>
10
+ <img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" />
11
  <?php } ?>
12
  </a>
13
  </div>
14
  <?php if($showCategory) { ?>
15
+ <div class="wppsac-post-categories">
16
  <?php echo $cat_list; ?>
17
+ </div>
18
+ <?php } ?>
19
+ <div class="wppsac-post-short-content">
20
+ <div class="wppsac-item-meta bottom">
21
+ <h2 class="wppsac-post-title">
22
  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
23
  </h2>
24
  <?php if($showDate || $showAuthor) { ?>
25
+ <div class="wppsac-post-date">
26
  <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
27
  <?php echo ($showAuthor && $showDate) ? '&nbsp;/&nbsp;' : '' ?>
28
  <?php if($showDate) { echo get_the_date(); } ?>
30
  <?php } ?>
31
 
32
  <?php if($showContent) { ?>
33
+ <div class="wppsac-post-content">
34
  <?php
35
  $customExcerpt = get_the_excerpt();
36
  if (has_excerpt($post->ID)) { ?>
37
+ <div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
38
  <?php } else {
39
  $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
40
+ <div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
41
  <?php } ?>
42
 
43
  <?php if($showreadmore) { ?>
44
+ <a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
45
  <?php } ?>
 
46
  </div>
47
  <?php } ?>
48
  </div>
templates/{design-4.php → slider/design-4.php} RENAMED
@@ -1,45 +1,45 @@
1
  <?php
2
  // Exit if accessed directly
3
  if ( !defined( 'ABSPATH' ) ) exit; ?>
4
- <div class="post-slides">
5
- <div class="post-list">
6
- <div class="post-list-content">
7
  <?php if (!empty($feat_image)) { ?>
8
  <div class="wp-medium-5 wpcolumns">
9
- <div class="post-image-bg">
10
- <a href="<?php the_permalink(); ?>"><img src="<?php echo $feat_image; ?>" alt="<?php the_title(); ?>" /></a>
11
  </div>
12
  </div>
13
  <?php } ?>
14
  <div class="<?php if (!empty($feat_image)) { ?> wp-medium-7 <?php } else { ?> wp-medium-12 <?php } ?> wpcolumns">
15
  <?php if($showCategory) { ?>
16
- <div class="recentpost-categories">
17
  <?php echo $cat_list; ?>
18
  </div>
19
  <?php } ?>
20
- <h2 class="wp-post-title">
21
  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
22
  </h2>
23
  <?php if($showDate || $showAuthor) { ?>
24
- <div class="wp-post-date">
25
  <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
26
  <?php echo ($showAuthor && $showDate) ? '&nbsp;/&nbsp;' : '' ?>
27
  <?php if($showDate) { echo get_the_date(); } ?>
28
  </div>
29
  <?php } ?>
30
  <?php if($showContent) { ?>
31
- <div class="wp-post-content">
32
  <?php
33
  $customExcerpt = get_the_excerpt();
34
  if (has_excerpt($post->ID)) { ?>
35
- <div class="wp-sub-content"><?php echo $customExcerpt ; ?></div>
36
  <?php } else {
37
  $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
38
- <div class="wp-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
39
  <?php } ?>
40
 
41
  <?php if($showreadmore) { ?>
42
- <a class="readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
43
  <?php } ?>
44
 
45
  </div>
1
  <?php
2
  // Exit if accessed directly
3
  if ( !defined( 'ABSPATH' ) ) exit; ?>
4
+ <div class="wppsac-post-slides">
5
+ <div class="wppsac-post-list">
6
+ <div class="wppsac-post-list-content">
7
  <?php if (!empty($feat_image)) { ?>
8
  <div class="wp-medium-5 wpcolumns">
9
+ <div class="wppsac-post-image-bg">
10
+ <a href="<?php the_permalink(); ?>"><img src="<?php echo esc_url($feat_image); ?>" alt="<?php the_title_attribute(); ?>" /></a>
11
  </div>
12
  </div>
13
  <?php } ?>
14
  <div class="<?php if (!empty($feat_image)) { ?> wp-medium-7 <?php } else { ?> wp-medium-12 <?php } ?> wpcolumns">
15
  <?php if($showCategory) { ?>
16
+ <div class="wppsac-post-categories">
17
  <?php echo $cat_list; ?>
18
  </div>
19
  <?php } ?>
20
+ <h2 class="wppsac-post-title">
21
  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
22
  </h2>
23
  <?php if($showDate || $showAuthor) { ?>
24
+ <div class="wppsac-post-date">
25
  <?php if($showAuthor) { ?> <span><?php esc_html_e( 'By', 'wp-responsive-recent-post-slider' ); ?> <?php the_author(); ?></span><?php } ?>
26
  <?php echo ($showAuthor && $showDate) ? '&nbsp;/&nbsp;' : '' ?>
27
  <?php if($showDate) { echo get_the_date(); } ?>
28
  </div>
29
  <?php } ?>
30
  <?php if($showContent) { ?>
31
+ <div class="wppsac-post-content">
32
  <?php
33
  $customExcerpt = get_the_excerpt();
34
  if (has_excerpt($post->ID)) { ?>
35
+ <div class="wppsac-sub-content"><?php echo $customExcerpt ; ?></div>
36
  <?php } else {
37
  $excerpt = strip_shortcodes(strip_tags(get_the_content())); ?>
38
+ <div class="wppsac-sub-content"><?php echo wprps_limit_words($excerpt,$words_limit); ?></div>
39
  <?php } ?>
40
 
41
  <?php if($showreadmore) { ?>
42
+ <a class="wppsac-readmorebtn" href="<?php the_permalink(); ?>"><?php _e('Read More', 'wp-responsive-recent-post-slider'); ?></a>
43
  <?php } ?>
44
 
45
  </div>
wp-recent-post-slider.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
  /**
3
- * Plugin Name: WP Responsive Recent Post Slider
4
  * Plugin URI: https://www.wponlinesupport.com/plugins/
5
  * Text Domain: wp-responsive-recent-post-slider
6
  * Domain Path: /languages/
7
- * Description: A quick, easy way to add and display Responsive WordPresss Recent Post Slider on your website with 4 designs using a shortcode. Also work with Gutenberg shortcode block.
8
  * Author: WP OnlineSupport
9
- * Version: 2.1
10
  * Author URI: https://www.wponlinesupport.com/
11
  *
12
  * @package WordPress
@@ -24,7 +24,7 @@ if ( ! defined( 'ABSPATH' ) ) {
24
  * @since 1.0.0
25
  */
26
  if( !defined( 'WPRPS_VERSION' ) ) {
27
- define( 'WPRPS_VERSION', '2.1' ); // Version of plugin
28
  }
29
  if( !defined( 'WPRPS_DIR' ) ) {
30
  define( 'WPRPS_DIR', dirname( __FILE__ ) ); // Plugin dir
@@ -83,6 +83,7 @@ require_once( WPRPS_DIR . '/includes/admin/class-wprps-admin.php' );
83
 
84
  // Shortcodes
85
  require_once( WPRPS_DIR . '/includes/shortcodes/wppsac-slider.php' );
 
86
 
87
  // How it work file, Load admin files
88
  if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
1
  <?php
2
  /**
3
+ * Plugin Name: WP Responsive Recent Post Slider/Carousel
4
  * Plugin URI: https://www.wponlinesupport.com/plugins/
5
  * Text Domain: wp-responsive-recent-post-slider
6
  * Domain Path: /languages/
7
+ * Description: Add and display Responsive WordPresss Recent Post Slider and Carousel on your website with 4 designs (Slider) and 1 designs (Carousel) using a shortcode. Also work with Gutenberg shortcode block.
8
  * Author: WP OnlineSupport
9
+ * Version: 2.2.5
10
  * Author URI: https://www.wponlinesupport.com/
11
  *
12
  * @package WordPress
24
  * @since 1.0.0
25
  */
26
  if( !defined( 'WPRPS_VERSION' ) ) {
27
+ define( 'WPRPS_VERSION', '2.2.5' ); // Version of plugin
28
  }
29
  if( !defined( 'WPRPS_DIR' ) ) {
30
  define( 'WPRPS_DIR', dirname( __FILE__ ) ); // Plugin dir
83
 
84
  // Shortcodes
85
  require_once( WPRPS_DIR . '/includes/shortcodes/wppsac-slider.php' );
86
+ require_once( WPRPS_DIR . '/includes/shortcodes/wppsac-carousel.php' );
87
 
88
  // How it work file, Load admin files
89
  if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {