WP Logo Showcase Responsive Slider - Version 1.2.8

Version Description

Download this release

Release Info

Developer anoopranawat
Plugin Icon 128x128 WP Logo Showcase Responsive Slider
Version 1.2.8
Comparing to
See all releases

Code changes from version 1.2.4 to 1.2.8

assets/css/logo-showcase.css CHANGED
@@ -1,16 +1,24 @@
1
  .logo_showcase{padding:0 30px 20px 30px !important; margin:0 !important; text-align:center; clear:both;}
2
- .logo_showcase .slick-arrow { top:30% !important;}
3
  .logo_showcase .slick-next{right:0px !important;}
4
  .logo_showcase .slick-prev{ left:0px !important}
5
  .logo_showcase .slick-dots{left:15px !important; right:15px !important; text-align:center; bottom:-10px !important;}
6
 
7
  .logo_showcase .slick-slide img{display:inline-block !important; padding:10px; border:1px solid #f1f1f1;}
8
  .logo_showcase .slick-slide{ padding:0 10px; text-align:center !important; display: inline-block !important; float:none !important; vertical-align: middle !important; }
9
- .logo_showcase .slick-slide .logo-title{color:#444; padding:10px 0; font-size:18px;}
10
  .logo_showcase .slick-arrow{display: none; }
11
  .logo_showcase.center .slick-slide {opacity: 0.5;transform: scale(0.7);transition: all 300ms ease 0s;}
12
  .logo_showcase.center .slick-center{opacity: 1;transform: scale(1);}
13
 
14
  .logo_showcase .slick-prev::before, .logo_showcase .slick-next::before{display: none !important;}
 
 
 
 
 
 
 
 
15
 
16
 
1
  .logo_showcase{padding:0 30px 20px 30px !important; margin:0 !important; text-align:center; clear:both;}
2
+ .logo_showcase .slick-arrow { top: 42%;-webkit-transform: translateY(-50%);transform: translateY(-50%);cursor:pointer;}
3
  .logo_showcase .slick-next{right:0px !important;}
4
  .logo_showcase .slick-prev{ left:0px !important}
5
  .logo_showcase .slick-dots{left:15px !important; right:15px !important; text-align:center; bottom:-10px !important;}
6
 
7
  .logo_showcase .slick-slide img{display:inline-block !important; padding:10px; border:1px solid #f1f1f1;}
8
  .logo_showcase .slick-slide{ padding:0 10px; text-align:center !important; display: inline-block !important; float:none !important; vertical-align: middle !important; }
9
+ .logo_showcase .slick-slide .logo-title{color:#444; padding:10px 0; font-size:16px;}
10
  .logo_showcase .slick-arrow{display: none; }
11
  .logo_showcase.center .slick-slide {opacity: 0.5;transform: scale(0.7);transition: all 300ms ease 0s;}
12
  .logo_showcase.center .slick-center{opacity: 1;transform: scale(1);}
13
 
14
  .logo_showcase .slick-prev::before, .logo_showcase .slick-next::before{display: none !important;}
15
+ .logo_showcase .wplss-logo-slide::before, .logo_showcase .wplss-logo-slide::after{display: none !important;}
16
+ .sliderimage_hide_border .slick-slide img{padding:0px; border:0px solid #f1f1f1;}
17
+
18
+ @media screen and (max-width: 641px)
19
+ {
20
+ .logo_showcase.center .slick-slide {opacity: 1;transform: scale(1);transition: all 300ms ease 0s;}
21
+ .logo_showcase.center .slick-center{opacity: 1;transform: scale(1);}
22
+ }
23
 
24
 
includes/admin/wpls-how-it-work.php ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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', 'wpls_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 wpls_register_design_page() {
22
+ add_submenu_page( 'edit.php?post_type='.WPLS_POST_TYPE, __('How it works, our plugins and offers', 'wp-logo-showcase-responsive-slider-slider'), __('How It Works', 'wp-logo-showcase-responsive-slider-slider'), 'manage_options', 'wpls-designs', 'wpls_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 wpls_designs_page() {
32
+
33
+ $wpos_feed_tabs = wpls_help_tabs();
34
+ $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'how-it-work';
35
+ ?>
36
+
37
+ <div class="wrap wpls-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( 'post_type' => WPLS_POST_TYPE, 'page' => 'wpls-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="wpls-tab-cnt-wrp">
53
+ <?php
54
+ if( isset($active_tab) && $active_tab == 'how-it-work' ) {
55
+ wpls_howitwork_page();
56
+ }
57
+ else if( isset($active_tab) && $active_tab == 'plugins-feed' ) {
58
+ echo wpls_get_plugin_design( 'plugins-feed' );
59
+ } else {
60
+ echo wpls_get_plugin_design( 'offers-feed' );
61
+ }
62
+ ?>
63
+ </div><!-- end .wpls-tab-cnt-wrp -->
64
+
65
+ </div><!-- end .wpls-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 wpls_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 = wpls_help_tabs();
87
+ $transient_key = isset($wpos_feed_tabs[$active_tab]['transient_key']) ? $wpos_feed_tabs[$active_tab]['transient_key'] : 'wpls_' . $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-logo-showcase-responsive-slider-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 wpls_help_tabs() {
116
+ $wpos_feed_tabs = array(
117
+ 'how-it-work' => array(
118
+ 'name' => __('How It Works', 'wp-logo-showcase-responsive-slider-slider'),
119
+ ),
120
+ 'plugins-feed' => array(
121
+ 'name' => __('Our Plugins', 'wp-logo-showcase-responsive-slider-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-logo-showcase-responsive-slider-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 wpls_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
+ .wpls-wrap .wpos-button-full{display:block; text-align:center; box-shadow:none; border-radius:0;}
149
+ .wpls-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-logo-showcase-responsive-slider-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 Logo Showcase', 'wp-logo-showcase-responsive-slider-slider'); ?>:</label>
172
+ </th>
173
+ <td>
174
+ <ul>
175
+ <li><?php _e('Step-1. Go to "Logo Showcase --> Add New".', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
176
+ <li><?php _e('Step-2. Add Logo title, logo link to redirect(if need) and logo image under featured image section.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
177
+ <li><?php _e('Step-3. Display multiple logo showcase, create categories under "Logo Showcase --> category" and create categories.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
178
+ <li><?php _e('Step-4. Assign logo showcase post to respective categories and use the category shortcode under "Logo Showcase --> category"', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
179
+ </ul>
180
+ </td>
181
+ </tr>
182
+
183
+ <tr>
184
+ <th>
185
+ <label><?php _e('How Shortcode Works', 'wp-logo-showcase-responsive-slider-slider'); ?>:</label>
186
+ </th>
187
+ <td>
188
+ <ul>
189
+ <li><?php _e('Step-1. Create a page like Logoshose OR add the shortcode in any page.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
190
+ <li><?php _e('Step-2. Put below shortcode as per your need.', 'wp-logo-showcase-responsive-slider-slider'); ?></li>
191
+ </ul>
192
+ </td>
193
+ </tr>
194
+
195
+ <tr>
196
+ <th>
197
+ <label><?php _e('All Shortcodes', 'wp-logo-showcase-responsive-slider-slider'); ?>:</label>
198
+ </th>
199
+ <td>
200
+ <span class="wpls-shortcode-preview">[logoshowcase]</span> – <?php _e('Logo Showcase Slider Shortcode', 'wp-logo-showcase-responsive-slider-slider'); ?> <br />
201
+ <span class="wpls-shortcode-preview">[logoshowcase center_mode="true" slides_column="3"]</span> – <?php _e('Logo Showcase Slider with center mode Shortcode', 'wp-logo-showcase-responsive-slider-slider'); ?>
202
+
203
+ </td>
204
+ </tr>
205
+
206
+ <tr>
207
+ <th>
208
+ <label><?php _e('Need Support?', 'wp-logo-showcase-responsive-slider-slider'); ?></label>
209
+ </th>
210
+ <td>
211
+ <p><?php _e('Check plugin document for shortcode parameters and demo for designs.', 'wp-logo-showcase-responsive-slider-slider'); ?></p> <br/>
212
+ <a class="button button-primary" href="https://www.wponlinesupport.com/plugins-documentation/documentwp-logo-showcase-responsive-slider/?utm_source=hp&event=doc" target="_blank"><?php _e('Documentation', 'wp-logo-showcase-responsive-slider-slider'); ?></a>
213
+ <a class="button button-primary" href="http://demo.wponlinesupport.com/logo-slider-plugin-demo/?utm_source=hp&event=demo" target="_blank"><?php _e('Demo for Designs', 'wp-logo-showcase-responsive-slider-slider'); ?></a>
214
+ </td>
215
+ </tr>
216
+ </tbody>
217
+ </table>
218
+ </div><!-- .inside -->
219
+ </div><!-- #general -->
220
+ </div><!-- .meta-box-sortables ui-sortable -->
221
+ </div><!-- .metabox-holder -->
222
+ </div><!-- #post-body-content -->
223
+
224
+ <!--Upgrad to Pro HTML -->
225
+ <div id="postbox-container-1" class="postbox-container">
226
+ <div class="metabox-holder wpos-pro-box">
227
+ <div class="meta-box-sortables ui-sortable">
228
+ <div class="postbox" style="">
229
+
230
+ <h3 class="hndle">
231
+ <span><?php _e( 'Upgrate to Pro', 'wp-logo-showcase-responsive-slider-slider' ); ?></span>
232
+ </h3>
233
+ <div class="inside">
234
+ <ul class="wpos-list">
235
+ <li>15+ predefined template for logo showcase.</li>
236
+ <li>3 shortcodes [logoshowcase], [logo_grid] and [logo_filter]</li>
237
+ <li>Drag & Drop order change</li>
238
+ <li>Display logo showcase in a grid view.</li>
239
+ <li>Display logo with filtration.</li>
240
+ <li>Display logo showcase in slider view</li>
241
+ <li>Display logo showcase in center mode view</li>
242
+ <li>Logo Showcase With Ticker Mode</li>
243
+ <li>2 Widgets- Slider and Grid view.</li>
244
+ <li>Display Logo with title and description</li>
245
+ <li>Slider RTL support.</li>
246
+ <li>Display logo showcase categories wise.</li>
247
+ <li>Set image size for logo among WordPress image size.</li>
248
+ <li>Visual Composer support.</li>
249
+ <li>Logo Showcase with tool-tip with 5 tool-tip theme and various parameters.</li>
250
+ <li>Custom CSS option</li>
251
+ <li>Fully responsive</li>
252
+ <li>100% Multi language</li>
253
+ </ul>
254
+ <a class="button button-primary wpos-button-full" href="https://www.wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/?utm_source=hp&event=go_premium" target="_blank"><?php _e('Go Premium ', 'wp-logo-showcase-responsive-slider-slider'); ?></a>
255
+ <p><a class="button button-primary wpos-button-full" href="http://demo.wponlinesupport.com/prodemo/pro-logo-showcase-responsive-slider/?utm_source=hp&event=pro_demo" target="_blank"><?php _e('View PRO Demo ', 'wp-logo-showcase-responsive-slider-slider'); ?></a> </p>
256
+ </div><!-- .inside -->
257
+ </div><!-- #general -->
258
+ </div><!-- .meta-box-sortables ui-sortable -->
259
+ </div><!-- .metabox-holder -->
260
+
261
+ <!-- Help to improve this plugin! -->
262
+ <div class="metabox-holder">
263
+ <div class="meta-box-sortables ui-sortable">
264
+ <div class="postbox">
265
+ <h3 class="hndle">
266
+ <span><?php _e( 'Help to improve this plugin!', 'wp-logo-showcase-responsive-slider-slider' ); ?></span>
267
+ </h3>
268
+ <div class="inside">
269
+ <p>Enjoyed this plugin? You can help by rate this plugin <a href="https://wordpress.org/support/plugin/wp-logo-showcase-responsive-slider-slider/reviews/?filter=5" target="_blank">5 stars!</a></p>
270
+ </div><!-- .inside -->
271
+ </div><!-- #general -->
272
+ </div><!-- .meta-box-sortables ui-sortable -->
273
+ </div><!-- .metabox-holder -->
274
+ </div><!-- #post-container-1 -->
275
+
276
+ </div><!-- #post-body -->
277
+ </div><!-- #poststuff -->
278
+ </div><!-- #post-box-container -->
279
+ <?php }
includes/logo-showcase-functions.php CHANGED
@@ -132,8 +132,12 @@ function wplss_logoshowcase_shortcode( $atts) {
132
  "orderby" => '',
133
  "order" => '',
134
  'start_slide' => 0,
 
135
  ), $atts));
136
 
 
 
 
137
  $start_slide = !empty($start_slide) ? ((int)$start_slide - 1) : 0;
138
 
139
  // Define limit
@@ -228,7 +232,12 @@ function wplss_logoshowcase_shortcode( $atts) {
228
  if( $order ) {
229
  $sliderimage_order = $order;
230
  } else {
231
- $sliderimage_order = 'DESC';}
 
 
 
 
 
232
 
233
  ob_start();
234
 
@@ -255,11 +264,11 @@ function wplss_logoshowcase_shortcode( $atts) {
255
  if($showcase_cat_name != '') { ?>
256
  <h2><?php echo $showcase_cat_name; ?> </h2>
257
  <?php } ?>
258
- <ul class="wplss-logo-showcase-<?php echo $unique; ?> logo_showcase showcase_<?php echo $cat; ?> <?php if($showcase_center_mode == "true") { echo 'center'; } else { echo 'nocenter'; } ?>">
259
  <?php
260
  while ($query->have_posts()) : $query->the_post();
261
  ?>
262
- <li>
263
  <?php $logourl = get_post_meta( get_the_ID(),'wplss_slide_link', true );
264
  if ($logourl != '') { ?>
265
  <a href="<?php echo esc_url($logourl); ?>" <?php if($linkTarget == 'blank') { ?> target="_blank" <?php } ?>>
@@ -326,14 +335,16 @@ function wplss_logoshowcase_shortcode( $atts) {
326
  breakpoint: 640,
327
  settings: {
328
  slidesToShow: 2,
329
- slidesToScroll: 2
 
330
  }
331
  },
332
  {
333
  breakpoint: 480,
334
  settings: {
335
  slidesToShow: 1,
336
- slidesToScroll: 1
 
337
  }
338
  }
339
  ]
132
  "orderby" => '',
133
  "order" => '',
134
  'start_slide' => 0,
135
+ 'hide_border' => '',
136
  ), $atts));
137
 
138
+ // Required enqueue_script
139
+ wp_enqueue_script( 'wpos-slick-jquery' );
140
+
141
  $start_slide = !empty($start_slide) ? ((int)$start_slide - 1) : 0;
142
 
143
  // Define limit
232
  if( $order ) {
233
  $sliderimage_order = $order;
234
  } else {
235
+ $sliderimage_order = 'DESC';}
236
+
237
+ if( $hide_border ) {
238
+ $sliderimage_hide_border = $hide_border;
239
+ } else {
240
+ $sliderimage_hide_border = 'false';}
241
 
242
  ob_start();
243
 
264
  if($showcase_cat_name != '') { ?>
265
  <h2><?php echo $showcase_cat_name; ?> </h2>
266
  <?php } ?>
267
+ <ul class="wplss-logo-showcase-<?php echo $unique; ?> logo_showcase showcase_<?php echo $cat; ?> <?php if($showcase_center_mode == "true") { echo 'center'; } else { echo 'nocenter'; } ?> <?php if ($sliderimage_hide_border == "true") { echo 'sliderimage_hide_border';} ?>">
268
  <?php
269
  while ($query->have_posts()) : $query->the_post();
270
  ?>
271
+ <li class="wplss-logo-slide">
272
  <?php $logourl = get_post_meta( get_the_ID(),'wplss_slide_link', true );
273
  if ($logourl != '') { ?>
274
  <a href="<?php echo esc_url($logourl); ?>" <?php if($linkTarget == 'blank') { ?> target="_blank" <?php } ?>>
335
  breakpoint: 640,
336
  settings: {
337
  slidesToShow: 2,
338
+ slidesToScroll: 2,
339
+ centerMode:false
340
  }
341
  },
342
  {
343
  breakpoint: 480,
344
  settings: {
345
  slidesToShow: 1,
346
+ slidesToScroll: 1,
347
+ centerMode:false
348
  }
349
  }
350
  ]
includes/wpls-plugin-designs.php DELETED
@@ -1,108 +0,0 @@
1
- <?php
2
- /**
3
- * Pro Designs and Plugins Feed
4
- *
5
- * @package WP Logo Showcase Responsive Slider
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', 'wpls_register_design_page');
14
-
15
- /**
16
- * Register plugin design page in admin menu
17
- *
18
- * @package WP Logo Showcase Responsive Slider
19
- * @since 1.0.0
20
- */
21
- function wpls_register_design_page() {
22
- add_submenu_page( 'edit.php?post_type='.WPLS_POST_TYPE, __('Logo Showcase Pro Designs', 'logoshowcase'), __('Pro Designs', 'logoshowcase'), 'manage_options', 'wpls-designs', 'wpls_designs_page' );
23
- }
24
-
25
- /**
26
- * Function to display plugin design HTML
27
- *
28
- * @package WP Logo Showcase Responsive Slider
29
- * @since 1.0.0
30
- */
31
- function wpls_designs_page() {
32
-
33
- $wpsisac_feed_tabs = array(
34
- 'design-feed' => __('Plugin Designs', 'logoshowcase'),
35
- 'plugins-feed' => __('Our Plugins', 'logoshowcase')
36
- );
37
-
38
-
39
- $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'design-feed';
40
- ?>
41
-
42
- <div class="wrap wpls-wrap">
43
-
44
- <h2 class="nav-tab-wrapper">
45
- <?php
46
- foreach ($wpsisac_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( 'post_type' => WPLS_POST_TYPE, 'page' => 'wpls-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="wpls-tab-cnt-wrp">
58
- <?php
59
- if( isset($_GET['tab']) && $_GET['tab'] == 'plugins-feed' ) {
60
- echo wpls_get_plugin_design( 'plugins-feed' );
61
- } else {
62
- echo wpls_get_plugin_design();
63
- }
64
- ?>
65
- </div><!-- end .wpls-tab-cnt-wrp -->
66
-
67
- </div><!-- end .wpls-wrap -->
68
-
69
- <?php
70
- }
71
-
72
- /**
73
- * Gets the plugin design part feed
74
- *
75
- * @package WP Logo Showcase Responsive Slider
76
- * @since 1.0.0
77
- */
78
- function wpls_get_plugin_design( $feed_type = '' ) {
79
-
80
- $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'design-feed';
81
- $transient_key = 'wpls_' . $active_tab;
82
-
83
- // Feed URL
84
- if( $feed_type == 'plugins-feed' ) {
85
- $url = 'http://wponlinesupport.com/plugin-data-api/plugins-data.php';
86
- $transient_key = 'wpos_plugins_feed';
87
- } else {
88
- $url = 'http://wponlinesupport.com/plugin-data-api/wp-logo-showcase-responsive-slider/wp-logo-showcase-responsive-slider.php';
89
- }
90
-
91
- $cache = get_transient( $transient_key );
92
-
93
- if ( false === $cache ) {
94
-
95
- $feed = wp_remote_get( esc_url_raw( $url ), array( 'timeout' => 120, 'sslverify' => false ) );
96
- $response_code = wp_remote_retrieve_response_code( $feed );
97
-
98
- if ( ! is_wp_error( $feed ) && $response_code == 200 ) {
99
- if ( isset( $feed['body'] ) && strlen( $feed['body'] ) > 0 ) {
100
- $cache = wp_remote_retrieve_body( $feed );
101
- set_transient( $transient_key, $cache, 172800 );
102
- }
103
- } else {
104
- $cache = '<div class="error"><p>' . __( 'There was an error retrieving the data from the server. Please try again later.', 'logoshowcase' ) . '</div>';
105
- }
106
- }
107
- return $cache;
108
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
logo-showcase.php CHANGED
@@ -4,7 +4,9 @@
4
  * Plugin URI: http://www.wponlinesupport.com/
5
  * Description: Easy to add and display Logo Showcase Responsive Slider on your website.
6
  * Author: WP Online Support
7
- * Version: 1.2.4
 
 
8
  * Author URI: http://www.wponlinesupport.com/
9
  *
10
  * @package WordPress
@@ -12,7 +14,7 @@
12
  */
13
 
14
  if( !defined( 'WPLS_VERSION' ) ) {
15
- define( 'WPLS_VERSION', '1.2.4' ); // Version of plugin
16
  }
17
  if( !defined( 'WPLS_DIR' ) ) {
18
  define( 'WPLS_DIR', dirname( __FILE__ ) ); // Plugin dir
@@ -113,6 +115,18 @@ function wpls_admin_notice() {
113
  // Action to display notice
114
  add_action( 'admin_notices', 'wpls_admin_notice');
115
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  /**
117
  * Function to get plugin image sizes array
118
  *
@@ -131,8 +145,7 @@ function wplss_logoshowcase_style_css() {
131
 
132
  // Registring slick slider script
133
  if( !wp_script_is( 'wpos-slick-jquery', 'registered' ) ) {
134
- wp_register_script( 'wpos-slick-jquery', WPLS_URL.'assets/js/slick.min.js', array('jquery'), WPLS_VERSION, true );
135
- wp_enqueue_script( 'wpos-slick-jquery' );
136
  }
137
 
138
  wp_enqueue_style( 'logo_showcase_slick_style', WPLS_URL . 'assets/css/slick.css', array(), WPLS_VERSION);
@@ -142,5 +155,5 @@ require_once( 'includes/logo-showcase-functions.php' );
142
 
143
  // Load admin files
144
  if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
145
- require_once( WPLS_DIR . '/includes/wpls-plugin-designs.php' );
146
  }
4
  * Plugin URI: http://www.wponlinesupport.com/
5
  * Description: Easy to add and display Logo Showcase Responsive Slider on your website.
6
  * Author: WP Online Support
7
+ * Text Domain: wp-logo-showcase-responsive-slider-slider
8
+ * Domain Path: /languages/
9
+ * Version: 1.2.8
10
  * Author URI: http://www.wponlinesupport.com/
11
  *
12
  * @package WordPress
14
  */
15
 
16
  if( !defined( 'WPLS_VERSION' ) ) {
17
+ define( 'WPLS_VERSION', '1.2.8' ); // Version of plugin
18
  }
19
  if( !defined( 'WPLS_DIR' ) ) {
20
  define( 'WPLS_DIR', dirname( __FILE__ ) ); // Plugin dir
115
  // Action to display notice
116
  add_action( 'admin_notices', 'wpls_admin_notice');
117
 
118
+ /**
119
+ * Load Text Domain
120
+ * This gets the plugin ready for translation
121
+ *
122
+ * @package WP Logo Showcase Responsive Slider
123
+ * @since 1.0.0
124
+ */
125
+ function wpls_load_textdomain() {
126
+ load_plugin_textdomain( 'wp-logo-showcase-responsive-slider-slider', false, dirname( plugin_basename(__FILE__) ) . '/languages/' );
127
+ }
128
+ add_action('plugins_loaded', 'wpls_load_textdomain');
129
+
130
  /**
131
  * Function to get plugin image sizes array
132
  *
145
 
146
  // Registring slick slider script
147
  if( !wp_script_is( 'wpos-slick-jquery', 'registered' ) ) {
148
+ wp_register_script( 'wpos-slick-jquery', WPLS_URL.'assets/js/slick.min.js', array('jquery'), WPLS_VERSION, true );
 
149
  }
150
 
151
  wp_enqueue_style( 'logo_showcase_slick_style', WPLS_URL . 'assets/css/slick.css', array(), WPLS_VERSION);
155
 
156
  // Load admin files
157
  if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
158
+ require_once( WPLS_DIR . '/includes/admin/wpls-how-it-work.php' );
159
  }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: wponlinesupport, anoopranawat
3
  Tags: wponlinesupport, wponlinesupport logo slider, logo slider, widget , client logo carousel, client logo slider, client, customer, image carousel, carousel, logo showcase, Responsive logo slider, Responsive logo carousel, WordPress logo slider, WordPress logo carousel, slick carousel, Best logo showcase, easy logo slider, logo carousel wordpress, logo slider wordpress, sponsors, sponsors slider, sponsors carousel
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
@@ -10,13 +10,13 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  A quick, easy way to add and display Multiple reponsive logo slideshow carousel to your site quickly and easily.
11
 
12
  == Description ==
13
- Many CMS site needs to display logo slideshow responsive slider/carousel on their website. WP Logo Showcase Responsive Slider help to display partners,
14
- clients or sponsor's Logo in your WordPress site quickly and easily. Using WP Logo Showcase Responsive slider/carousel plugin creating a carousel
15
- slider of logos like client logo slider, partners logo slider, sponsor logo slider is super easy.
16
 
17
- View [DEMO](http://wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/) for additional information.
18
 
19
- View [PRO DEMO and Features](http://wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/) for additional information.
 
 
20
 
21
  = Here is the shortcode example =
22
  <code>[logoshowcase]</code>
@@ -25,15 +25,14 @@ View [PRO DEMO and Features](http://wponlinesupport.com/wp-plugin/wp-logo-showca
25
  <code>[logoshowcase limit ="-1" cat_id="category_ID"]</code>
26
 
27
  = Complete shortcode with all parameters =
28
- <code>[logoshowcase limit="-1" cat_id="15" cat_name="Support"
29
- dots="true" arrows="true" slides_column="3" slides_scroll="2" autoplay="true"
30
- autoplay_interval="300" speed="2000" loop="true" center_mode="true"
31
- link_target="blank" show_title="false" image_size="original"
32
  order="DESC" orderby="post_date" start_slide="2"]</code>
33
 
34
 
35
  = Use Following parameters with shortcode =
36
  <code>[logoshowcase]</code>
 
37
  * **limit:**
38
  [logoshowcase limit="5"] ( ie Display 5 Logo on your website )
39
  * **Display by category**
@@ -66,7 +65,8 @@ order="DESC" orderby="post_date" start_slide="2"]</code>
66
  [logoshowcase order="original"] (Designates the ascending or descending order of the 'orderby' parameter. Defaults to 'DESC'. Values are "DESC" and "ASC")
67
  * **orderby :**
68
  [logoshowcase orderby="post_date"] (Sort retrieved posts by parameter. Defaults to 'date (post_date)'. One or more options can be passed. 'none',ID','author','title','name',rand',date')
69
-
 
70
 
71
  = Features include: =
72
  * Added two new shortcode parameters "order and orderby"
@@ -132,6 +132,22 @@ order="DESC" orderby="post_date" start_slide="2"]</code>
132
 
133
  == Changelog ==
134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  = 1.2.4 =
136
  * Added PRO plugin design page.
137
  * Updated some plugin post type parameters.
@@ -164,6 +180,23 @@ order="DESC" orderby="post_date" start_slide="2"]</code>
164
 
165
  == Upgrade Notice ==
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  = 1.2.4 =
168
  * Added PRO plugin design page.
169
  * Updated some plugin post type parameters.
2
  Contributors: wponlinesupport, anoopranawat
3
  Tags: wponlinesupport, wponlinesupport logo slider, logo slider, widget , client logo carousel, client logo slider, client, customer, image carousel, carousel, logo showcase, Responsive logo slider, Responsive logo carousel, WordPress logo slider, WordPress logo carousel, slick carousel, Best logo showcase, easy logo slider, logo carousel wordpress, logo slider wordpress, sponsors, sponsors slider, sponsors carousel
4
  Requires at least: 3.1
5
+ Tested up to: 4.8.1
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  A quick, easy way to add and display Multiple reponsive logo slideshow carousel to your site quickly and easily.
11
 
12
  == Description ==
13
+ Many CMS site needs to display logo slideshow responsive slider/carousel on their website. WP Logo Showcase Responsive Slider help to display partners, clients or sponsor's Logo in your WordPress site quickly and easily.
 
 
14
 
15
+ Using WP Logo Showcase Responsive slider/carousel plugin creating a carousel slider of logos like client logo slider, partners logo slider, sponsor logo slider is super easy.
16
 
17
+ View [DEMO](http://wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/) | [PRO DEMO and Features](http://wponlinesupport.com/wp-plugin/wp-logo-showcase-responsive-slider/) for additional information.
18
+
19
+ Checkout our new plugin - [PowerPack - Need of Every Website](http://powerpack.wponlinesupport.com/?utm_source=wp)
20
 
21
  = Here is the shortcode example =
22
  <code>[logoshowcase]</code>
25
  <code>[logoshowcase limit ="-1" cat_id="category_ID"]</code>
26
 
27
  = Complete shortcode with all parameters =
28
+ <code>[logoshowcase limit="-1" cat_id="15" cat_name="Support" dots="true" arrows="true" slides_column="3" slides_scroll="2" autoplay="true"
29
+ autoplay_interval="300" speed="2000" loop="true" center_mode="true" link_target="blank" show_title="false" image_size="original"
 
 
30
  order="DESC" orderby="post_date" start_slide="2"]</code>
31
 
32
 
33
  = Use Following parameters with shortcode =
34
  <code>[logoshowcase]</code>
35
+
36
  * **limit:**
37
  [logoshowcase limit="5"] ( ie Display 5 Logo on your website )
38
  * **Display by category**
65
  [logoshowcase order="original"] (Designates the ascending or descending order of the 'orderby' parameter. Defaults to 'DESC'. Values are "DESC" and "ASC")
66
  * **orderby :**
67
  [logoshowcase orderby="post_date"] (Sort retrieved posts by parameter. Defaults to 'date (post_date)'. One or more options can be passed. 'none',ID','author','title','name',rand',date')
68
+ * **hide_border :**
69
+ [logoshowcase hide_border="true"] (Option to remove the border of logo. )
70
 
71
  = Features include: =
72
  * Added two new shortcode parameters "order and orderby"
132
 
133
  == Changelog ==
134
 
135
+ = 1.2.8(16-8-2017) =
136
+ * [*] Fixed .wplss-logo-slide::before, .wplss-logo-slide::after issue. Becouse of this a design(design given for LI tag in theme) was showing before logo.
137
+
138
+ = 1.2.7(10-8-2017) =
139
+ * [+] Added new shortcode parameter ie hide_border="true"
140
+
141
+ = 1.2.6 =
142
+ * Fixed Arrow position and pointer effect.
143
+ * [+] Added new class wplss-logo-slide for slider
144
+ * Fixed center display issue on mobile device
145
+
146
+ = 1.2.5 =
147
+ * [+] Added "How it work" tab.
148
+ * [+] Added text domain for translation.
149
+ * [-] Removed Pro design tab.
150
+
151
  = 1.2.4 =
152
  * Added PRO plugin design page.
153
  * Updated some plugin post type parameters.
180
 
181
  == Upgrade Notice ==
182
 
183
+ = 1.2.8(16-8-2017) =
184
+ * [*] Fixed .wplss-logo-slide::before, .wplss-logo-slide::after issue. Becouse of this a design(design given for LI tag in theme) was showing before logo.
185
+
186
+ = 1.2.7(10-8-2017) =
187
+ * [+] Added new shortcode parameter ie hide_border="true"
188
+
189
+ = 1.2.6 =
190
+ * Fixed Arrow position and pointer effect.
191
+ * [+] Added new class wplss-logo-slide for slider
192
+ * Fixed center display issue on mobile device
193
+
194
+
195
+ = 1.2.5 =
196
+ * [+] Added "How it work" tab.
197
+ * [+] Added text domain for translation.
198
+ * [-] Removed Pro design tab.
199
+
200
  = 1.2.4 =
201
  * Added PRO plugin design page.
202
  * Updated some plugin post type parameters.