WP Responsive Recent Post Slider - Version 1.2.6

Version Description

  • [+] Added "Post Slider - How it work" tab.
  • [-] Removed Por design tab.
Download this release

Release Info

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

Code changes from version 1.2.5 to 1.2.6

includes/admin/wprps-how-it-work.php ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Pro Designs and Plugins Feed
4
+ *
5
+ * @package Album and Image Gallery Plus Lightbox
6
+ * @since 1.0.0
7
+ */
8
+
9
+ // Exit if accessed directly
10
+ if ( !defined( 'ABSPATH' ) ) exit;
11
+
12
+ // Action to add menu
13
+ add_action('admin_menu', 'wprpsm_register_design_page');
14
+
15
+ /**
16
+ * Register plugin design page in admin menu
17
+ *
18
+ * @package Album and Image Gallery Plus Lightbox
19
+ * @since 1.0.0
20
+ */
21
+ function wprpsm_register_design_page() {
22
+ add_submenu_page( 'edit.php', __('How it works, our plugins and offers', 'wp-responsive-recent-post-slider'), __('Post Slider - How It Works', 'wp-responsive-recent-post-slider'), 'manage_options', 'wprpsm-designs', 'wprpsm_designs_page' );
23
+ }
24
+
25
+ /**
26
+ * Function to display plugin design HTML
27
+ *
28
+ * @package Album and Image Gallery Plus Lightbox
29
+ * @since 1.0.0
30
+ */
31
+ function wprpsm_designs_page() {
32
+
33
+ $wpos_feed_tabs = wprpsm_help_tabs();
34
+ $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'how-it-work';
35
+ ?>
36
+
37
+ <div class="wrap wprpsm-wrap">
38
+
39
+ <h2 class="nav-tab-wrapper">
40
+ <?php
41
+ foreach ($wpos_feed_tabs as $tab_key => $tab_val) {
42
+ $tab_name = $tab_val['name'];
43
+ $active_cls = ($tab_key == $active_tab) ? 'nav-tab-active' : '';
44
+ $tab_link = add_query_arg( array('page' => 'wprpsm-designs', 'tab' => $tab_key), admin_url('edit.php') );
45
+ ?>
46
+
47
+ <a class="nav-tab <?php echo $active_cls; ?>" href="<?php echo $tab_link; ?>"><?php echo $tab_name; ?></a>
48
+
49
+ <?php } ?>
50
+ </h2>
51
+
52
+ <div class="wprpsm-tab-cnt-wrp">
53
+ <?php
54
+ if( isset($active_tab) && $active_tab == 'how-it-work' ) {
55
+ wprpsm_howitwork_page();
56
+ }
57
+ else if( isset($active_tab) && $active_tab == 'plugins-feed' ) {
58
+ echo wprpsm_get_plugin_design( 'plugins-feed' );
59
+ } else {
60
+ echo wprpsm_get_plugin_design( 'offers-feed' );
61
+ }
62
+ ?>
63
+ </div><!-- end .wprpsm-tab-cnt-wrp -->
64
+
65
+ </div><!-- end .wprpsm-wrap -->
66
+
67
+ <?php
68
+ }
69
+
70
+ /**
71
+ * Gets the plugin design part feed
72
+ *
73
+ * @package Album and Image Gallery Plus Lightbox
74
+ * @since 1.0.0
75
+ */
76
+ function wprpsm_get_plugin_design( $feed_type = '' ) {
77
+
78
+ $active_tab = isset($_GET['tab']) ? $_GET['tab'] : '';
79
+
80
+ // If tab is not set then return
81
+ if( empty($active_tab) ) {
82
+ return false;
83
+ }
84
+
85
+ // Taking some variables
86
+ $wpos_feed_tabs = wprpsm_help_tabs();
87
+ $transient_key = isset($wpos_feed_tabs[$active_tab]['transient_key']) ? $wpos_feed_tabs[$active_tab]['transient_key'] : 'wprpsm_' . $active_tab;
88
+ $url = isset($wpos_feed_tabs[$active_tab]['url']) ? $wpos_feed_tabs[$active_tab]['url'] : '';
89
+ $transient_time = isset($wpos_feed_tabs[$active_tab]['transient_time']) ? $wpos_feed_tabs[$active_tab]['transient_time'] : 172800;
90
+ $cache = get_transient( $transient_key );
91
+
92
+ if ( false === $cache ) {
93
+
94
+ $feed = wp_remote_get( esc_url_raw( $url ), array( 'timeout' => 120, 'sslverify' => false ) );
95
+ $response_code = wp_remote_retrieve_response_code( $feed );
96
+
97
+ if ( ! is_wp_error( $feed ) && $response_code == 200 ) {
98
+ if ( isset( $feed['body'] ) && strlen( $feed['body'] ) > 0 ) {
99
+ $cache = wp_remote_retrieve_body( $feed );
100
+ set_transient( $transient_key, $cache, $transient_time );
101
+ }
102
+ } else {
103
+ $cache = '<div class="error"><p>' . __( 'There was an error retrieving the data from the server. Please try again later.', 'wp-responsive-recent-post-slider' ) . '</div>';
104
+ }
105
+ }
106
+ return $cache;
107
+ }
108
+
109
+ /**
110
+ * Function to get plugin feed tabs
111
+ *
112
+ * @package Album and Image Gallery Plus Lightbox
113
+ * @since 1.0.0
114
+ */
115
+ function wprpsm_help_tabs() {
116
+ $wpos_feed_tabs = array(
117
+ 'how-it-work' => array(
118
+ 'name' => __('How It Works', 'wp-responsive-recent-post-slider'),
119
+ ),
120
+ 'plugins-feed' => array(
121
+ 'name' => __('Our Plugins', 'wp-responsive-recent-post-slider'),
122
+ 'url' => 'http://wponlinesupport.com/plugin-data-api/plugins-data.php',
123
+ 'transient_key' => 'wpos_plugins_feed',
124
+ 'transient_time' => 172800
125
+ ),
126
+ 'offers-feed' => array(
127
+ 'name' => __('WPOS Offers', 'wp-responsive-recent-post-slider'),
128
+ 'url' => 'http://wponlinesupport.com/plugin-data-api/wpos-offers.php',
129
+ 'transient_key' => 'wpos_offers_feed',
130
+ 'transient_time' => 86400,
131
+ )
132
+ );
133
+ return $wpos_feed_tabs;
134
+ }
135
+
136
+ /**
137
+ * Function to get 'How It Works' HTML
138
+ *
139
+ * @package Album and Image Gallery Plus Lightbox
140
+ * @since 1.0.0
141
+ */
142
+ function wprpsm_howitwork_page() { ?>
143
+
144
+ <style type="text/css">
145
+ .wpos-pro-box .hndle{background-color:#0073AA; color:#fff;}
146
+ .wpos-pro-box .postbox{background:#dbf0fa none repeat scroll 0 0; border:1px solid #0073aa; color:#191e23;}
147
+ .postbox-container .wpos-list li:before{font-family: dashicons; content: "\f139"; font-size:20px; color: #0073aa; vertical-align: middle;}
148
+ .wprpsm-wrap .wpos-button-full{display:block; text-align:center; box-shadow:none; border-radius:0;}
149
+ .wprpsm-shortcode-preview{background-color: #e7e7e7; font-weight: bold; padding: 2px 5px; display: inline-block; margin:0 0 2px 0;}
150
+ </style>
151
+
152
+ <div class="post-box-container">
153
+ <div id="poststuff">
154
+ <div id="post-body" class="metabox-holder columns-2">
155
+
156
+ <!--How it workd HTML -->
157
+ <div id="post-body-content">
158
+ <div class="metabox-holder">
159
+ <div class="meta-box-sortables ui-sortable">
160
+ <div class="postbox">
161
+
162
+ <h3 class="hndle">
163
+ <span><?php _e( 'How It Works - Display and shortcode', 'wp-responsive-recent-post-slider' ); ?></span>
164
+ </h3>
165
+
166
+ <div class="inside">
167
+ <table class="form-table">
168
+ <tbody>
169
+ <tr>
170
+ <th>
171
+ <label><?php _e('Geeting Started with Post Slider', 'wp-responsive-recent-post-slider'); ?>:</label>
172
+ </th>
173
+ <td>
174
+ <ul>
175
+ <li><?php _e('Step-1. This plugin create a tab under "POST--> Post Slider - How it work".', 'wp-responsive-recent-post-slider'); ?></li>
176
+ <li><?php _e('Step-2. This plugin get all the latest POST from WordPress post section with a simple shortcode', 'wp-responsive-recent-post-slider'); ?></li>
177
+ <li><?php _e('Step-3. If you need a <b>Featured Post</b> OR <b>Trending/Popular Post</b> plugin then try our plugins', 'wp-responsive-recent-post-slider'); ?> <a href="https://wordpress.org/plugins/featured-post-creative/" target="_blank">Featured Post</a> and <a href="https://wordpress.org/plugins/wp-trending-post-slider-and-widget/" target="_blank">Trending/Popular Post</a></li>
178
+
179
+ </ul>
180
+ </td>
181
+ </tr>
182
+
183
+ <tr>
184
+ <th>
185
+ <label><?php _e('How Shortcode Works', 'wp-responsive-recent-post-slider'); ?>:</label>
186
+ </th>
187
+ <td>
188
+ <ul>
189
+ <li><?php _e('Step-1. Create a page like Latet Post OR add the shortcode in a page.', 'wp-responsive-recent-post-slider'); ?></li>
190
+ <li><?php _e('Step-2. Put below shortcode as per your need.', 'wp-responsive-recent-post-slider'); ?></li>
191
+ </ul>
192
+ </td>
193
+ </tr>
194
+
195
+ <tr>
196
+ <th>
197
+ <label><?php _e('All Shortcodes', 'wp-responsive-recent-post-slider'); ?>:</label>
198
+ </th>
199
+ <td>
200
+ <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'); ?>
201
+
202
+ </td>
203
+ </tr>
204
+
205
+ <tr>
206
+ <th>
207
+ <label><?php _e('Need Support?', 'wp-responsive-recent-post-slider'); ?></label>
208
+ </th>
209
+ <td>
210
+ <p><?php _e('Check plugin document for shortcode parameters and demo for designs.', 'wp-responsive-recent-post-slider'); ?></p> <br/>
211
+ <a class="button button-primary" href="https://www.wponlinesupport.com/plugins-documentation/wp-responsive-recent-post-slider/?utm_source=hp&event=doc" target="_blank"><?php _e('Documentation', 'wp-responsive-recent-post-slider'); ?></a>
212
+ <a class="button button-primary" href="http://demo.wponlinesupport.com/recent-post-slider-demo/?utm_source=hp&event=demo" target="_blank"><?php _e('Demo for Designs', 'wp-responsive-recent-post-slider'); ?></a>
213
+ </td>
214
+ </tr>
215
+ </tbody>
216
+ </table>
217
+ </div><!-- .inside -->
218
+ </div><!-- #general -->
219
+ </div><!-- .meta-box-sortables ui-sortable -->
220
+ </div><!-- .metabox-holder -->
221
+ </div><!-- #post-body-content -->
222
+
223
+ <!--Upgrad to Pro HTML -->
224
+ <div id="postbox-container-1" class="postbox-container">
225
+ <div class="metabox-holder wpos-pro-box">
226
+ <div class="meta-box-sortables ui-sortable">
227
+ <div class="postbox" style="">
228
+
229
+ <h3 class="hndle">
230
+ <span><?php _e( 'Upgrate to Pro', 'wp-responsive-recent-post-slider' ); ?></span>
231
+ </h3>
232
+ <div class="inside">
233
+ <ul class="wpos-list">
234
+ <li>30+ designs</li>
235
+ <li>Recent Post Slider with 15+ designs</li>
236
+ <li>Recent Post Carousel with 15+ designs</li>
237
+ <li>3 Widgets (Post slider, Post List/Slider-1, Post List/Slider-2)</li>
238
+ <li>Drag & Drop order change</li>
239
+ <li>Custom CSS option</li>
240
+ <li>Visual Composer Support</li>
241
+ <li>Slider RTL support</li>
242
+ <li>Fully responsive</li>
243
+ <li>100% Multi language</li>
244
+ </ul>
245
+ <a class="button button-primary wpos-button-full" href="https://www.wponlinesupport.com/wp-plugin/wp-responsive-recent-post-slider/?utm_source=hp&event=go_premium" 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/?utm_source=hp&event=pro_demo" target="_blank"><?php _e('View PRO Demo ', 'wp-responsive-recent-post-slider'); ?></a> </p>
247
+ </div><!-- .inside -->
248
+ </div><!-- #general -->
249
+ </div><!-- .meta-box-sortables ui-sortable -->
250
+ </div><!-- .metabox-holder -->
251
+
252
+ <!-- Help to improve this plugin! -->
253
+ <div class="metabox-holder">
254
+ <div class="meta-box-sortables ui-sortable">
255
+ <div class="postbox">
256
+ <h3 class="hndle">
257
+ <span><?php _e( 'Help to improve this plugin!', 'wp-responsive-recent-post-slider' ); ?></span>
258
+ </h3>
259
+ <div class="inside">
260
+ <p>Enjoyed this plugin? You can help by rate this plugin <a href="https://wordpress.org/support/plugin/wp-responsive-recent-post-slider/reviews/?filter=5" target="_blank">5 stars!</a></p>
261
+ </div><!-- .inside -->
262
+ </div><!-- #general -->
263
+ </div><!-- .meta-box-sortables ui-sortable -->
264
+ </div><!-- .metabox-holder -->
265
+ </div><!-- #post-container-1 -->
266
+
267
+ </div><!-- #post-body -->
268
+ </div><!-- #poststuff -->
269
+ </div><!-- #post-box-container -->
270
+ <?php }
post_menu_function.php DELETED
@@ -1,106 +0,0 @@
1
- <?php
2
- /**
3
- * Pro Designs and Plugins Feed
4
- *
5
- * @package WP Responsive Recent Post Slider Pro
6
- * @since 1.0.0
7
- */
8
-
9
- // Exit if accessed directly
10
- if ( !defined( 'ABSPATH' ) ) exit;
11
-
12
- // Action to add menu
13
- add_action('admin_menu', 'wprps_register_design_page');
14
-
15
- /**
16
- * Register plugin design page in admin menu
17
- *
18
- * @package WP Responsive Recent Post Slider Pro
19
- * @since 1.0.0
20
- */
21
- function wprps_register_design_page() {
22
- add_submenu_page( 'edit.php', __('PRO Post Slider Designs', 'wp-responsive-recent-post-slider'), __('PRO Post Slider Designs', 'wp-responsive-recent-post-slider'), 'manage_options', 'wprps-designs', 'wprps_designs_page' );
23
- }
24
-
25
- /**
26
- * Function to display plugin design HTML
27
- *
28
- * @package WP Responsive Recent Post Slider Pro
29
- * @since 1.0.0
30
- */
31
- function wprps_designs_page() {
32
-
33
- $wprps_feed_tabs = array(
34
- 'design-feed' => __('Plugin Designs', 'wp-responsive-recent-post-slider'),
35
- 'plugins-feed' => __('Our Plugins', 'wp-responsive-recent-post-slider')
36
- );
37
-
38
-
39
- $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'design-feed';
40
- ?>
41
-
42
- <div class="wrap wprpsp-wrap">
43
-
44
- <h2 class="nav-tab-wrapper">
45
- <?php
46
- foreach ($wprps_feed_tabs as $tab_key => $tab_val) {
47
-
48
- $active_cls = ($tab_key == $active_tab) ? 'nav-tab-active' : '';
49
- $tab_link = add_query_arg( array('page' => 'wprps-designs', 'tab' => $tab_key), admin_url('edit.php') );
50
- ?>
51
-
52
- <a class="nav-tab <?php echo $active_cls; ?>" href="<?php echo $tab_link; ?>"><?php echo $tab_val; ?></a>
53
-
54
- <?php } ?>
55
- </h2>
56
-
57
- <div class="wprpsp-tab-cnt-wrp">
58
- <?php
59
- if( isset($_GET['tab']) && $_GET['tab'] == 'plugins-feed' ) {
60
- echo wprps_get_design( 'plugins-feed' );
61
- } else {
62
- echo wprps_get_design();
63
- }
64
- ?>
65
- </div><!-- end .wprpsp-tab-cnt-wrp -->
66
-
67
- </div><!-- end .wprpsp-wrap -->
68
-
69
- <?php
70
- }
71
-
72
- /**
73
- * Gets the plugin design part feed
74
- *
75
- * @package WP Responsive Recent Post Slider Pro
76
- * @since 1.2.5
77
- */
78
- function wprps_get_design( $feed_type = '' ) {
79
-
80
- $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'design-feed';
81
-
82
- $cache = get_transient( 'wprps_' . $active_tab );
83
-
84
- if ( false === $cache ) {
85
-
86
- // Feed URL
87
- if( $feed_type == 'plugins-feed' ) {
88
- $url = 'http://wponlinesupport.com/plugin-data-api/plugins-data.php';
89
- } else {
90
- $url = 'http://wponlinesupport.com/plugin-data-api/wp-responsive-recent-post-slider/wp-responsive-recent-post-slider.php';
91
- }
92
-
93
- $feed = wp_remote_get( esc_url_raw( $url ), array( 'timeout' => 120, 'sslverify' => false ) );
94
- $response_code = wp_remote_retrieve_response_code( $feed );
95
-
96
- if ( ! is_wp_error( $feed ) && $response_code == 200 ) {
97
- if ( isset( $feed['body'] ) && strlen( $feed['body'] ) > 0 ) {
98
- $cache = wp_remote_retrieve_body( $feed );
99
- set_transient( 'wprps_' . $active_tab, $cache, 172800 );
100
- }
101
- } else {
102
- $cache = '<div class="error"><p>' . __( 'There was an error retrieving the data from the server. Please try again later.', 'wp-responsive-recent-post-slider' ) . '</div>';
103
- }
104
- }
105
- return $cache;
106
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: wponlinesupport, anoopranawat
3
  Tags: wponlinesupport, post slider, posts slider, recent post slider, recent posts slider, slider, responsive post slider, responsive posts slider, responsive recent post slider, responsive recent posts slider, wordpress posts slider, post slideshow, posts slideshow, recent posts slideshow, shortcodes
4
  Requires at least: 3.1
5
- Tested up to: 4.6
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -113,6 +113,11 @@ post_type="post" hide_post="1,2,3" show_author="false" show_read_more="true"]</c
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
116
  = 1.2.5 =
117
  * Added 'show_read_more' shortcode parameter for read more button.
118
  * Updated plugin design page.
@@ -147,6 +152,10 @@ post_type="post" hide_post="1,2,3" show_author="false" show_read_more="true"]</c
147
 
148
  == Upgrade Notice ==
149
 
 
 
 
 
150
  = 1.2.5 =
151
  * Added 'show_read_more' shortcode parameter for read more button.
152
  * Updated plugin design page.
2
  Contributors: wponlinesupport, anoopranawat
3
  Tags: wponlinesupport, post slider, posts slider, recent post slider, recent posts slider, slider, responsive post slider, responsive posts slider, responsive recent post slider, responsive recent posts slider, wordpress posts slider, post slideshow, posts slideshow, recent posts slideshow, shortcodes
4
  Requires at least: 3.1
5
+ Tested up to: 4.7
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
113
 
114
  == Changelog ==
115
 
116
+ = 1.2.6 =
117
+ * [+] Added "Post Slider - How it work" tab.
118
+ * [-] Removed Por design tab.
119
+
120
+
121
  = 1.2.5 =
122
  * Added 'show_read_more' shortcode parameter for read more button.
123
  * Updated plugin design page.
152
 
153
  == Upgrade Notice ==
154
 
155
+ = 1.2.6 =
156
+ * [+] Added "Post Slider - How it work" tab.
157
+ * [-] Removed Por design tab.
158
+
159
  = 1.2.5 =
160
  * Added 'show_read_more' shortcode parameter for read more button.
161
  * Updated plugin design page.
wp-recent-post-slider.php CHANGED
@@ -6,7 +6,7 @@
6
  * Domain Path: /languages/
7
  * Description: Easy to add and display Recent Post Slider
8
  * Author: WP Online Support
9
- * Version: 1.2.5
10
  * Author URI: http://www.wponlinesupport.com/
11
  *
12
  * @package WordPress
@@ -20,7 +20,7 @@
20
  * @since 1.0.0
21
  */
22
  if( !defined( 'WPRPS_VERSION' ) ) {
23
- define( 'WPRPS_VERSION', '1.2.5' ); // Version of plugin
24
  }
25
  if( !defined( 'WPRPS_DIR' ) ) {
26
  define( 'WPRPS_DIR', dirname( __FILE__ ) ); // Plugin dir
@@ -28,6 +28,10 @@ if( !defined( 'WPRPS_DIR' ) ) {
28
  if( !defined( 'WPRPS_URL' ) ) {
29
  define( 'WPRPS_URL', plugin_dir_url( __FILE__ ) ); // Plugin url
30
  }
 
 
 
 
31
 
32
  register_activation_hook( __FILE__, 'install_postslider_free_version' );
33
  function install_postslider_free_version(){
@@ -70,4 +74,8 @@ function wprpsstyle_css() {
70
  }
71
 
72
  require_once( 'templates/wprps-template.php' );
73
- require_once( 'post_menu_function.php' );
 
 
 
 
6
  * Domain Path: /languages/
7
  * Description: Easy to add and display Recent Post Slider
8
  * Author: WP Online Support
9
+ * Version: 1.2.6
10
  * Author URI: http://www.wponlinesupport.com/
11
  *
12
  * @package WordPress
20
  * @since 1.0.0
21
  */
22
  if( !defined( 'WPRPS_VERSION' ) ) {
23
+ define( 'WPRPS_VERSION', '1.2.6' ); // Version of plugin
24
  }
25
  if( !defined( 'WPRPS_DIR' ) ) {
26
  define( 'WPRPS_DIR', dirname( __FILE__ ) ); // Plugin dir
28
  if( !defined( 'WPRPS_URL' ) ) {
29
  define( 'WPRPS_URL', plugin_dir_url( __FILE__ ) ); // Plugin url
30
  }
31
+ if( !defined( 'WPRPS_POST_TYPE' ) ) {
32
+ define( 'WPRPS_POST_TYPE', 'post' ); // Plugin post type
33
+ }
34
+
35
 
36
  register_activation_hook( __FILE__, 'install_postslider_free_version' );
37
  function install_postslider_free_version(){
74
  }
75
 
76
  require_once( 'templates/wprps-template.php' );
77
+
78
+ // How it work file, Load admin files
79
+ if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
80
+ require_once( WPRPS_DIR . '/includes/admin/wprps-how-it-work.php' );
81
+ }