WP Responsive Recent Post Slider - Version 1.2.1

Version Description

  • Fixed some bugs
Download this release

Release Info

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

Code changes from version 1.0 to 1.2.1

assets/css/recent-post-style.css CHANGED
@@ -1,13 +1,11 @@
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; }
@@ -21,8 +19,8 @@ box-sizing: border-box;}
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;}
@@ -34,8 +32,8 @@ box-sizing: border-box;}
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;}
@@ -43,14 +41,14 @@ box-sizing: border-box;}
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;}
@@ -61,9 +59,9 @@ box-sizing: border-box;}
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;}
@@ -76,11 +74,22 @@ box-sizing: border-box;}
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; }
@@ -117,38 +126,7 @@ img { -ms-interpolation-mode: bicubic; }
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
 
1
+ .column, .columns {-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
 
 
2
 
3
  .post-overlay{ position:relative}
4
 
5
+ .recent-post-slider h2.wp-post-title{margin:5px 0 !important; line-height:22px;}
6
+ .recent-post-slider h2.wp-post-title a{font-size:22px; line-height:22px;}
7
+ .recent-post-slider .wp-post-date{margin-bottom:10px; position:relative; font-size:13px;}
8
+ .recent-post-slider .wp-post-date::after { background: #e96656; bottom: -4px;content: "";height: 2px; left: 0; margin: auto ; position: absolute; width: 50px; z-index: 1;}
9
  .recent-post-slider .recentpost-categories ul.post-categories{margin:0px 0px 10px 0 !important; padding:0px !important; list-style:none !important}
10
  .recent-post-slider .recentpost-categories ul.post-categories li{display:inline-block !important; margin-right:2px;}
11
  .recent-post-slider .recentpost-categories ul.post-categories li a{padding:5px 13px; text-transform:uppercase; font-size:12px; }
19
  .recent-post-slider.design-1 .post-content-left a {color:#fff;}
20
  .recent-post-slider.design-1 .post-content-left{padding: 20px 20px 35px 20px;}
21
  .recent-post-slider.design-1 .post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
22
+ .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 !important; opacity: 1; position: absolute; right: -9999px; width:auto !important; max-width:980px !important;}
23
+ .recent-post-slider.design-1 .wp-post-content p{color:#fff;}
24
 
25
  .recent-post-slider.design-1 .slick-arrow {bottom:0px !important; top:auto !important;}
26
  .recent-post-slider.design-1 .slick-next{right:0px !important;}
32
  .recent-post-slider.design-2 .post-content-left a{color:#fff;}
33
  .design-2 .post-content-left{padding: 30px 20px;}
34
  .recent-post-slider.design-2 .post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
35
+ .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 !important; opacity: 1; position: absolute; right: -9999px; width:auto !important; max-width:980px !important;}
36
+ .recent-post-slider.design-2 .wp-post-content p{color:#fff;}
37
 
38
  .recent-post-slider.design-2 .slick-arrow {bottom:0px !important; top:auto !important;}
39
  .recent-post-slider.design-2 .slick-next{right:0px !important;}
41
  .recent-post-slider.design-2 .slick-dots{left:15px !important; bottom:8px !important;}
42
 
43
  .recent-post-slider.design-3 .post-image-bg{background: #f1f1f1;height: 350px; line-height: 0; overflow: hidden; position: relative; width: 100%;}
44
+ .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 !important; opacity: 1; position: absolute; right: -9999px; width:auto !important; max-width:980px !important;}
45
  .recent-post-slider.design-3 a{color:#fff;}
46
  .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;}
47
+ .recent-post-slider.design-3 .wp-post-content { opacity: 0; height:0; transition: all 0.5s ease-in-out 0s; }
48
+ .recent-post-slider.design-3 .post-overlay:hover > .post-short-content .wp-post-content{opacity:1;height:auto; }
49
  .recent-post-slider.design-3 .post-overlay:hover > .post-short-content {height:70%; }
50
  .recent-post-slider.design-3 .recentpost-categories{left: 0;top: 0px;position: absolute;}
51
+ .recent-post-slider.design-3 .wp-post-content p{color:#fff;}
52
 
53
 
54
  .recent-post-slider.design-3 .slick-arrow {bottom:0px !important; top:auto !important;}
59
 
60
  .recent-post-slider.design-4 .post-list-content, .recent-post-slider.design-4 .post-list{width:100%; float:left; clear:both;}
61
 
62
+ .recent-post-slider.design-4 .post-list-content .wp-post-title a{color:#444; text-decoration:none;}
63
  .recent-post-slider.design-4 .post-image-bg{background: #f1f1f1;height: 230px !important;line-height: 0; overflow: hidden; position: relative; width: 100%;}
64
+ .recent-post-slider.design-4 .post-image-bg img {transition: all 0.2s ease-in-out 0s; left: -9999px; margin: 0 auto !important; opacity: 1; position: absolute; right: -9999px;width:auto !important; max-width:500px !important;}
65
  .recent-post-slider.design-4 .recentpost-categories {margin-top: 0;}
66
  .recent-post-slider.design-4 .recentpost-categories a{color:#fff;}
67
  .recent-post-slider.design-4 .medium-5 {padding: 0px 10px 0 0;}
74
  .recent-post-slider.design-4 .slick-dots{left:15px !important; right:15px !important; bottom:0px !important; text-align:center; width:100%;}
75
 
76
 
77
+
78
  img { -ms-interpolation-mode: bicubic; }
79
  .column,
80
  .columns { padding-left: 0.9375em; padding-right: 0.9375em; width: 100%; float: left; }
81
 
82
+ @media only screen and (max-width: 768px) {
83
+ .recent-post-slider.design-1 .post-image-bg img, .recent-post-slider.design-2 .post-image-bg img, .recent-post-slider.design-3 .post-image-bg img{max-width:700px !important}
84
+ }
85
+
86
+ @media only screen and (max-width: 500px) {
87
+ .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}
88
+ .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}
89
+ }
90
+
91
+
92
+
93
  @media only screen {
94
 
95
  .column, .columns {position: relative;padding-left: 0.9375em;padding-right: 0.9375em; float: left; }
126
  .medium-offset-10 { margin-left: 83.33333% !important; }
127
  .medium-offset-11 { margin-left: 91.66667% !important; }
128
 
129
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
  }
132
 
assets/css/slick.css CHANGED
@@ -1,12 +1,12 @@
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}
1
  .recent-post-slider .slick-arrow{text-indent:-99999px;}
2
+ .recent-post-slider button.slick-arrow {background-color: transparent!important; width:30px; height:51px; position:absolute; z-index:99; border:0px !important;
3
  padding:0 !important; margin:0px !important; border-radius:0px !important}
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 2px !important; padding:0px !important; }
9
+ .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;}
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}
images/design-10.jpg ADDED
Binary file
images/design-11.jpg ADDED
Binary file
images/design-12.jpg ADDED
Binary file
images/design-13.jpg ADDED
Binary file
images/design-14.jpg ADDED
Binary file
images/design-15.jpg ADDED
Binary file
images/design-16.jpg ADDED
Binary file
images/design-17.jpg ADDED
Binary file
images/design-18.jpg ADDED
Binary file
images/design-19.jpg ADDED
Binary file
images/design-20.jpg ADDED
Binary file
images/design-21.jpg ADDED
Binary file
images/design-22.jpg ADDED
Binary file
images/design-5.jpg ADDED
Binary file
images/design-6.jpg ADDED
Binary file
images/design-7.jpg ADDED
Binary file
images/design-8.jpg ADDED
Binary file
images/design-9.jpg ADDED
Binary file
images/post-slider.png ADDED
Binary file
post_menu_function.php CHANGED
@@ -3,31 +3,59 @@
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%; }
@@ -40,8 +68,9 @@ box-sizing: border-box;}
40
  .medium-10 { width: 83.33333%; }
41
  .medium-11 { width: 91.66667%; }
42
  .medium-12 { width: 100%; }
43
-
44
  }
 
 
45
  </style>
46
  <?php }
47
 
3
  add_action('admin_menu', 'register_wprps_postdesign_submenu_page');
4
 
5
  function register_wprps_postdesign_submenu_page() {
6
+ add_submenu_page( 'edit.php', 'Pro Post Slider Designs', 'Pro 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>Free Recent Post Slider Designs</h2></div>
13
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-1.jpg"><p><code>[recent_post_slider design="design-1"]</code></p></div></div>
14
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-2.jpg"><p><code>[recent_post_slider design="design-2"]</code></p></div></div>
15
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-3.jpg"><p><code>[recent_post_slider design="design-3"]</code></p></div></div>
16
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-4.jpg"><p><code>[recent_post_slider design="design-4"]</code></p></div></div>
17
+ <div class="medium-8 columns"><h2>Complete Shortcode is:</h2><p><code>[recent_post_slider limit="4" design="design-4" show_author="false" show_category_name="true" show_content="true" show_date="true" dots="true" arrows="true" autoplay="true" autoplay_interval="5000" speed="1000" content_words_limit="20"]</code></p>
18
+ </div>
19
+ <div class="medium-12 columns" style="margin:15px 0"><p><a href="http://wponlinesupport.com/sp_plugin/wp-responsive-recent-post-slider/" target="_blank"><img src="'.plugin_dir_url( __FILE__ ).'images/post-slider.png"></a></p>
20
+ For More Details <a href="http://demo.wponlinesupport.com/prodemo/post-slider-pro/" target="_blank" >View DEMO</a></div>
21
+
22
+ <div class="medium-12 columns"><h1>Pro Recent Post Slider and Carousel Designs</h1></div>
23
+ <div class="medium-12 columns"><h2>Pro Recent Post Slider Designs</h2></div>
24
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-5.jpg"><p><code>[recent_post_slider design="design-5"]</code></p></div></div>
25
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-6.jpg"><p><code>[recent_post_slider design="design-6"]</code></p></div></div>
26
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-17.jpg"><p><code>[recent_post_slider design="design-17"]</code></p></div></div>
27
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-18.jpg"><p><code>[recent_post_slider design="design-18"]</code></p></div></div>
28
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-19.jpg"><p><code>[recent_post_slider design="design-19"]</code></p></div></div>
29
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-20.jpg"><p><code>[recent_post_slider design="design-20"]</code></p></div></div>
30
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-21.jpg"><p><code>[recent_post_slider design="design-21"]</code></p></div></div>
31
+ <div class="medium-12 columns"><h2>Pro Recent Post Carousel Designs</h2></div>
32
+ <div class="medium-12 columns"><p><code>[recent_post_carousel limit="4" design="design-1" show_author="false" category="8" show_category_name="true"
33
+ show_content="true" show_date="true" slides_to_show="3" slides_to_scroll="1" dots="true" arrows="true" autoplay="true"
34
+ autoplay_interval="5000" speed="1000" content_words_limit ="20"]</code></p></div>
35
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-7.jpg"><p><code>[recent_post_carousel design="design-7"]</code></p></div></div>
36
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-8.jpg"><p><code>[recent_post_carousel design="design-8"]</code></p></div></div>
37
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-9.jpg"><p><code>[recent_post_carousel design="design-9"]</code></p></div></div>
38
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-10.jpg"><p><code>[recent_post_carousel design="design-10"]</code></p></div></div>
39
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-11.jpg"><p><code>[recent_post_carousel design="design-11"]</code></p></div></div>
40
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-12.jpg"><p><code>[recent_post_carousel design="design-12"]</code></p></div></div>
41
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-13.jpg"><p><code>[recent_post_carousel design="design-13"]</code></p></div></div>
42
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-14.jpg"><p><code>[recent_post_carousel design="design-14"]</code></p></div></div>
43
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-15.jpg"><p><code>[recent_post_carousel design="design-15"]</code></p></div></div>
44
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-16.jpg"><p><code>[recent_post_carousel design="design-16"]</code></p></div></div>
45
+ <div class="medium-4 columns"><div class="postdesigns"><img src="'.plugin_dir_url( __FILE__ ).'images/design-22.jpg"><p><code>[recent_post_carousel design="design-22"]</code></p></div></div>
46
+ <div class="medium-12 columns"><p>For More Details <a href="http://demo.wponlinesupport.com/prodemo/post-slider-pro/" target="_blank" >View DEMO</a></p></div>';
47
 
48
  echo $result;
49
  }
50
  function wprps_post_admin_style(){
51
  ?>
52
  <style type="text/css">
53
+ .postdesigns{-moz-box-shadow: 0 0 5px #ddd;-webkit-box-shadow: 0 0 5px#ddd;box-shadow: 0 0 5px #ddd; background:#fff; padding:10px; margin-bottom:15px;}
54
+ .column, .columns {-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
 
55
  .postdesigns img{width:100%; height:auto}
56
  @media only screen and (min-width: 40.0625em) {
57
  .column,
58
+ .columns {position: relative;padding-left:10px;padding-right:10px;float: left; }
59
  .medium-1 { width: 8.33333%; }
60
  .medium-2 { width: 16.66667%; }
61
  .medium-3 { width: 25%; }
68
  .medium-10 { width: 83.33333%; }
69
  .medium-11 { width: 91.66667%; }
70
  .medium-12 { width: 100%; }
 
71
  }
72
+
73
+
74
  </style>
75
  <?php }
76
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
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
@@ -13,7 +13,9 @@ A quick, easy way to add and display Responsive WordPresss Recent Post Slider on
13
  Responsive Recent WordPresss Post Slider is a WordPress posts content slider plugin with touch for mobile devices and responsive.
14
  WordPresss Recent Post Slider displays your recent posts using 4 designs with beautiful slider.
15
 
16
- View [DEMO](http://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.
@@ -56,6 +58,14 @@ show_content="true" show_date="true" dots="true" arrows="true" autoplay="true"
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
 
@@ -67,7 +77,7 @@ show_content="true" show_date="true" dots="true" arrows="true" autoplay="true"
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
 
@@ -92,11 +102,34 @@ show_content="true" show_date="true" dots="true" arrows="true" autoplay="true"
92
 
93
  == Changelog ==
94
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  = 1.0 =
96
  * Initial release.
97
 
98
 
99
  == Upgrade Notice ==
100
 
 
 
 
 
 
 
 
 
 
 
 
101
  = 1.0 =
102
  * Initial release
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.4.1
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
  Responsive Recent WordPresss Post Slider is a WordPress posts content slider plugin with touch for mobile devices and responsive.
14
  WordPresss Recent Post Slider displays your recent posts using 4 designs with beautiful slider.
15
 
16
+ View [DEMO](http://wponlinesupport.com/sp_plugin/wp-responsive-recent-post-slider/) for additional information.
17
+
18
+ View [PRO DEMO and Features](http://wponlinesupport.com/sp_plugin/wp-responsive-recent-post-slider/) for additional information.
19
 
20
  A multipurpose responsive WordPresss posts slider plugin powered with four built-in design template, lots of easy customizable options.
21
  Display unlimited number of WordPresss posts slider in a single page or post with different sets of options like category, limit, navigation type.
58
  * Mouse Draggable.
59
  * You can create multiple post slider with different options at single page or post.
60
 
61
+ = Pro Features include: =
62
+ * Recent Post Slider with 11 designs.
63
+ * Recent Post Carousel with 11 designs.
64
+ <code>[recent_post_carousel]</code>
65
+ * 3 Widgets (Post slider, Post List/Slider-1, Post List/Slider-2)
66
+
67
+ View [PRO DEMO and Features](http://wponlinesupport.com/sp_plugin/wp-responsive-recent-post-slider/) for additional information.
68
+
69
  = Use Following Recent Post Slider parameters with shortcode =
70
  <code>[recent_post_slider]</code>
71
 
77
  * **show_date** : [recent_post_slider show_date="false"] (Display post date OR not. By default value is "True". Options are "ture OR false")
78
  * **show_content** : [recent_post_slider show_content="true" ] (Display post Short content OR not. By default value is "True". Options are "ture OR false").
79
  * **Pagination and arrows** : [recent_post_slider dots="false" arrows="false"]
80
+ * **Autoplay and Autoplay Interval**: [recent_post_slider autoplay="true" autoplay_interval="100"]
81
  * **Slide Speed**: [recent_post_slider speed="3000"]
82
  * **content_words_limit** : [recent_post_slider content_words_limit="30" ] (Control post short content Words limit. By default limit is 20 words).
83
 
102
 
103
  == Changelog ==
104
 
105
+ = 1.2.1 =
106
+ * Fixed some bugs
107
+
108
+
109
+ = 1.2 =
110
+ * Fixed some bugs
111
+ * Added More designs in Pro version and fixed some bug
112
+
113
+ = 1.1 =
114
+ * Fixed some bugs
115
+ * Added More designs in Pro version and fixed some bug
116
+
117
  = 1.0 =
118
  * Initial release.
119
 
120
 
121
  == Upgrade Notice ==
122
 
123
+ = 1.2.1 =
124
+ * Fixed some bugs
125
+
126
+ = 1.2 =
127
+ * Fixed some bugs
128
+ * Added More designs in Pro version and fixed some bug
129
+
130
+ = 1.1 =
131
+ * Fixed some bugs
132
+ * Added More designs in Pro version and fixed some bug
133
+
134
  = 1.0 =
135
  * Initial release
templates/designs/design-1.php CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  <div class="post-slides">
2
  <div class="post-content-position">
3
  <div class="post-content-left medium-8 columns">
@@ -8,24 +13,24 @@
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>
1
+ <?php
2
+ global $separator;
3
+ global $parents;
4
+ global $post_id;
5
+ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
6
  <div class="post-slides">
7
  <div class="post-content-position">
8
  <div class="post-content-left medium-8 columns">
13
  </div>
14
  <?php } ?>
15
 
16
+ <h2 class="wp-post-title">
17
  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
18
+ </h2>
19
  <?php if($showDate == "true") { ?>
20
+ <div class="wp-post-date">
21
  <?php echo get_the_date(); ?>
22
  </div>
23
  <?php } ?>
24
 
25
  <?php if($showContent == "true") { ?>
26
+ <div class="wp-post-content">
27
  <?php $excerpt = get_the_excerpt();?>
28
  <p><?php echo wprps_limit_words($excerpt,$words_limit); ?>...</p>
29
  </div>
30
  <?php } ?>
31
  </div>
32
  <div class="post-image-bg">
33
+ <img src="<?php echo $feat_image; ?>"alt="<?php the_title(); ?>" />
34
  </div>
35
  </div>
36
  </div>
templates/designs/design-2.php CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  <div class="post-slides">
2
  <div class="post-content-position">
3
 
@@ -8,23 +13,23 @@
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>
1
+ <?php
2
+ global $separator;
3
+ global $parents;
4
+ global $post_id;
5
+ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
6
  <div class="post-slides">
7
  <div class="post-content-position">
8
 
13
  <?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
14
  </div>
15
  <?php } ?>
16
+ <h2 class="wp-post-title">
17
  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
18
+ </h2>
19
  <?php if($showDate == "true") { ?>
20
+ <div class="wp-post-date">
21
  <?php echo get_the_date(); ?>
22
  </div>
23
  <?php } ?>
24
  <?php if($showContent == "true") { ?>
25
+ <div class="wp-post-content">
26
  <?php $excerpt = get_the_excerpt();?>
27
  <p><?php echo wprps_limit_words($excerpt,$words_limit); ?>...</p>
28
  </div>
29
  <?php } ?>
30
  </div>
31
  <div class="post-image-bg">
32
+ <img src="<?php echo $feat_image; ?>"alt="<?php the_title(); ?>" />
33
  </div>
34
  </div>
35
  </div>
templates/designs/design-3.php CHANGED
@@ -1,7 +1,12 @@
 
 
 
 
 
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">
@@ -10,17 +15,17 @@
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>
1
+ <?php
2
+ global $separator;
3
+ global $parents;
4
+ global $post_id;
5
+ $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); ?>
6
  <div class="post-slides">
7
  <div class="post-overlay">
8
  <div class="post-image-bg">
9
+ <img src="<?php echo $feat_image; ?>"alt="<?php the_title(); ?>" />
10
  </div>
11
  <?php if($showCategory == "true") { ?>
12
  <div class="recentpost-categories">
15
  <?php } ?>
16
  <div class="post-short-content">
17
  <div class="item-meta bottom">
18
+ <h2 class="wp-post-title">
19
  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
20
+ </h2>
21
  <?php if($showDate == "true") { ?>
22
+ <div class="wp-post-date">
23
  <?php echo get_the_date(); ?>
24
  </div>
25
  <?php } ?>
26
 
27
  <?php if($showContent == "true") { ?>
28
+ <div class="wp-post-content">
29
  <?php $excerpt = get_the_excerpt();?>
30
  <p><?php echo wprps_limit_words($excerpt,$words_limit); ?>...</p>
31
  </div>
templates/designs/design-4.php CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  <div class="post-slides">
2
  <div class="post-list">
3
  <div class="post-list-content">
@@ -13,16 +17,16 @@
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>
1
+ <?php
2
+ global $separator;
3
+ global $parents;
4
+ global $post_id; ?>
5
  <div class="post-slides">
6
  <div class="post-list">
7
  <div class="post-list-content">
17
  <?php echo get_the_category_list( $separator, $parents, $post_id ); ?>
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 == "true") { ?>
24
+ <div class="wp-post-date">
25
  <?php echo get_the_date(); ?>
26
  </div>
27
  <?php } ?>
28
  <?php if($showContent == "true") { ?>
29
+ <div class="wp-post-content">
30
  <?php $excerpt = get_the_excerpt();?>
31
  <p><?php echo wprps_limit_words($excerpt,$words_limit); ?>...</p>
32
  </div>
templates/wprps-template.php CHANGED
@@ -134,7 +134,11 @@ function get_wprps_slider( $atts, $content = null ){
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; ?>,
@@ -147,7 +151,7 @@ function get_wprps_slider( $atts, $content = null ){
147
  slidesToScroll: 1,
148
  responsive: [
149
  {
150
- breakpoint: 1024,
151
  settings: {
152
  slidesToShow: 1,
153
  slidesToScroll: 1,
@@ -156,7 +160,7 @@ function get_wprps_slider( $atts, $content = null ){
156
  }
157
  },
158
  {
159
- breakpoint: 600,
160
  settings: {
161
  slidesToShow: 1,
162
  slidesToScroll: 1
@@ -172,10 +176,8 @@ function get_wprps_slider( $atts, $content = null ){
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');
@@ -198,7 +200,7 @@ 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
  );
134
  </div><!-- #post-## -->
135
  <?php
136
  endif; ?>
137
+
138
+ <?php
139
+ wp_reset_query();
140
+ ?>
141
+ <script type="text/javascript">
142
  jQuery(document).ready(function(){
143
  jQuery('.recent-post-slider.<?php echo $postdesign; ?>').slick({
144
  dots: <?php echo $dotsv; ?>,
151
  slidesToScroll: 1,
152
  responsive: [
153
  {
154
+ breakpoint: 768,
155
  settings: {
156
  slidesToShow: 1,
157
  slidesToScroll: 1,
160
  }
161
  },
162
  {
163
+ breakpoint: 640,
164
  settings: {
165
  slidesToShow: 1,
166
  slidesToScroll: 1
176
  ]
177
  });
178
  });
179
+ </script>
180
+ <?php
 
 
181
  return ob_get_clean();
182
  }
183
  add_shortcode('recent_post_slider','get_wprps_slider');
200
  $new_columns = array(
201
  'cb' => '<input type="checkbox" />',
202
  'name' => __('Name'),
203
+ 'post_slider_shortcode' => __( 'Category Shortcode', 'wp-responsive-recent-post-slider' ),
204
  'slug' => __('Slug'),
205
  'posts' => __('Posts')
206
  );
wp-recent-post-slider.php CHANGED
@@ -2,14 +2,44 @@
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
 
2
  /**
3
  * Plugin Name: WP Responsive Recent Post Slider
4
  * Plugin URI: http://www.wponlinesupport.com/
5
+ * Text Domain: wp-responsive-recent-post-slider
6
+ * Domain Path: /languages/
7
  * Description: Easy to add and display Recent Post Slider
8
  * Author: WP Online Support
9
+ * Version: 1.2.1
10
  * Author URI: http://www.wponlinesupport.com/
11
  *
12
  * @package WordPress
13
  * @author WP Online Support
14
  */
15
+ register_activation_hook( __FILE__, 'install_postslider_free_version' );
16
+ function install_postslider_free_version(){
17
+ if( is_plugin_active('wp-responsive-recent-post-slider-pro/wp-recent-post-slider.php') ){
18
+ add_action('update_option_active_plugins', 'deactivate_postslider_free_version');
19
+ }
20
+ }
21
+ function deactivate_postslider_free_version(){
22
+ deactivate_plugins('wp-responsive-recent-post-slider-pro/wp-recent-post-slider.php',true);
23
+ }
24
+ add_action( 'admin_notices', 'freepostslider_admin_notice');
25
+ function freepostslider_admin_notice() {
26
+ $dir = ABSPATH . 'wp-content/plugins/wp-responsive-recent-post-slider-pro/wp-recent-post-slider.php';
27
+ if( is_plugin_active( 'wp-responsive-recent-post-slider/wp-recent-post-slider.php' ) && file_exists($dir)) {
28
+ global $pagenow;
29
+ if( $pagenow == 'plugins.php' ){
30
+ deactivate_plugins ( 'wp-responsive-recent-post-slider-pro/wp-recent-post-slider.php',true);
31
+ if ( current_user_can( 'install_plugins' ) ) {
32
+ echo '<div id="message" class="updated notice is-dismissible"><p><strong>Thank you for activating WP Responsive Recent Post Slider</strong>.<br /> It looks like you had PRO version <strong>(<em>WP Responsive Recent Post Slider Pro</em>)</strong> of this plugin activated. To avoid conflicts the extra version has been deactivated and we recommend you delete it. </p></div>';
33
+ }
34
+ }
35
+ }
36
+ }
37
+
38
+ add_action('plugins_loaded', 'wprps_load_textdomain');
39
+ function wprps_load_textdomain() {
40
+ load_plugin_textdomain( 'wp-responsive-recent-post-slider', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
41
+ }
42
+
43
  add_action( 'wp_enqueue_scripts','wprpsstyle_css' );
44
  function wprpsstyle_css() {
45