WP Logo Showcase Responsive Slider - Version 1.2.1

Version Description

  • Fixed some css issues.
  • Resolved multiple slider jquery conflict issue.
Download this release

Release Info

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

Code changes from version 1.1 to 1.2.1

assets/css/logo-showcase.css CHANGED
@@ -4,11 +4,12 @@
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}
8
- .logo_showcase .slick-slide{ padding:0 15px; text-align:center !important; color: #fff; display: inline-block !important; float:none !important; vertical-align: middle !important; }
 
9
  .logo_showcase .slick-arrow{display: none; }
10
- .logo_showcase.center .slick-slide img{opacity: 0.5;transform: scale(0.5);transition: all 300ms ease 0s;}
11
- .logo_showcase.center .slick-center img{opacity: 1;transform: scale(1);}
12
 
13
  .logo_showcase .slick-prev::before, .logo_showcase .slick-next::before{display: none !important;}
14
 
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
 
includes/logo-showcase-functions.php CHANGED
@@ -134,6 +134,8 @@ function wplss_logoshowcase_shortcode( $atts) {
134
  "center_mode" => '',
135
  "loop" => '',
136
  "link_target" => '',
 
 
137
 
138
  ), $atts));
139
 
@@ -153,7 +155,9 @@ function wplss_logoshowcase_shortcode( $atts) {
153
 
154
  if( $cat_name ) {
155
  $showcase_cat_name = $cat_name;
156
- }
 
 
157
 
158
  if( $slides_column ) {
159
  $showcase_slides_column = $slides_column;
@@ -211,9 +215,19 @@ function wplss_logoshowcase_shortcode( $atts) {
211
  } else {
212
  $linkTarget = '';
213
  }
 
 
 
 
 
 
 
 
 
214
 
215
  ob_start();
216
 
 
217
  $post_type = 'logoshowcase';
218
  $orderby = 'post_date';
219
  $order = 'DESC';
@@ -226,25 +240,53 @@ function wplss_logoshowcase_shortcode( $atts) {
226
 
227
  );
228
  if($cat != ""){
229
- $args['tax_query'] = array( array( 'taxonomy' => 'wplss_logo_showcase_cat', 'field' => 'id', 'terms' => $cat) );
230
  }
231
  $query = new WP_Query($args);
232
- //Get post type count
233
  $post_count = $query->post_count;?>
234
 
235
  <?php if($showcase_cat_name != '') { ?>
236
  <h2><?php echo $showcase_cat_name; ?> </h2>
237
  <?php } ?>
238
- <ul class="logo_showcase showcase_<?php echo $cat; ?> <?php if($showcase_center_mode == "true") { echo 'center'; } else { echo 'nocenter'; } ?>">
239
  <?php
240
  while ($query->have_posts()) : $query->the_post();
241
- $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
242
  <li>
243
  <?php $logourl = get_post_meta( get_the_ID(),'wplss_slide_link', true );
244
  if ($logourl != '') { ?>
245
- <a href="<?php echo $logourl; ?>" <?php if($linkTarget == 'blank') { ?> target="_blank" <?php } ?>><?php the_post_thumbnail( 'url' ); ?> </a>
246
- <?php } else { the_post_thumbnail( 'url' );} ?>
247
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  </li>
249
  <?php endwhile; ?>
250
  </ul>
@@ -252,22 +294,17 @@ function wplss_logoshowcase_shortcode( $atts) {
252
  <?php wp_reset_query(); ?>
253
 
254
  <script>
255
- jQuery(document).ready(function(){
256
- <?php if($showcase_center_mode == "true") { ?>
257
- jQuery('.showcase_<?php echo $cat; ?>.center').slick({
258
- <?php } else { ?>
259
- jQuery('.showcase_<?php echo $cat; ?>.nocenter').slick({
260
- <?php } ?>
261
- centerMode: <?php echo $showcase_center_mode; ?>,
262
  dots: <?php echo $showcase_dots; ?>,
 
263
  infinite: <?php echo $showcase_loop; ?>,
264
  speed: <?php echo $showcase_speed; ?>,
265
  slidesToShow: <?php echo $showcase_slides_column; ?>,
266
  slidesToScroll: <?php echo $showcase_slides_scroll; ?>,
267
  autoplay: <?php echo $showcase_autoplay; ?>,
268
  autoplaySpeed: <?php echo $showcase_autoplayInterval; ?>,
269
-
270
-
271
  responsive: [
272
  {
273
  breakpoint: 1024,
134
  "center_mode" => '',
135
  "loop" => '',
136
  "link_target" => '',
137
+ "show_title" => '',
138
+ "image_size" => '',
139
 
140
  ), $atts));
141
 
155
 
156
  if( $cat_name ) {
157
  $showcase_cat_name = $cat_name;
158
+ } else {
159
+ $showcase_cat_name = '';
160
+ }
161
 
162
  if( $slides_column ) {
163
  $showcase_slides_column = $slides_column;
215
  } else {
216
  $linkTarget = '';
217
  }
218
+ if( $show_title ) {
219
+ $showTitle = $show_title;
220
+ } else {
221
+ $showTitle = 'false';
222
+ }
223
+ if( $image_size ) {
224
+ $sliderimage_size = $image_size;
225
+ } else {
226
+ $sliderimage_size = 'original';}
227
 
228
  ob_start();
229
 
230
+ $unique = wplss_get_unique();
231
  $post_type = 'logoshowcase';
232
  $orderby = 'post_date';
233
  $order = 'DESC';
240
 
241
  );
242
  if($cat != ""){
243
+ $args['tax_query'] = array( array( 'taxonomy' => 'wplss_logo_showcase_cat', 'field' => 'term_id', 'terms' => $cat) );
244
  }
245
  $query = new WP_Query($args);
246
+
247
  $post_count = $query->post_count;?>
248
 
249
  <?php if($showcase_cat_name != '') { ?>
250
  <h2><?php echo $showcase_cat_name; ?> </h2>
251
  <?php } ?>
252
+ <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'; } ?>">
253
  <?php
254
  while ($query->have_posts()) : $query->the_post();
255
+ ?>
256
  <li>
257
  <?php $logourl = get_post_meta( get_the_ID(),'wplss_slide_link', true );
258
  if ($logourl != '') { ?>
259
+ <a href="<?php echo $logourl; ?>" <?php if($linkTarget == 'blank') { ?> target="_blank" <?php } ?>>
260
+ <?php if($sliderimage_size == '' || $sliderimage_size == 'original') {
261
+ the_post_thumbnail('url');
262
+ } elseif ($sliderimage_size == 'large') {
263
+ the_post_thumbnail('large');
264
+ } elseif ( $sliderimage_size == 'medium') {
265
+ the_post_thumbnail('medium');
266
+ } elseif ( $sliderimage_size == 'thumbnail') {
267
+ the_post_thumbnail('thumbnail');
268
+ } else {
269
+ the_post_thumbnail('url');
270
+ } ?>
271
+ </a>
272
+ <?php }
273
+ else
274
+ {
275
+ if($sliderimage_size == '' || $sliderimage_size == 'original') {
276
+ the_post_thumbnail('url');
277
+ } elseif ($sliderimage_size == 'large') {
278
+ the_post_thumbnail('large');
279
+ } elseif ( $sliderimage_size == 'medium') {
280
+ the_post_thumbnail('medium');
281
+ } elseif ( $sliderimage_size == 'thumbnail') {
282
+ the_post_thumbnail('thumbnail');
283
+ } else {
284
+ the_post_thumbnail('url');
285
+ }
286
+ }
287
+ if($showTitle == "true") { ?>
288
+ <div class="logo-title"><?php the_title(); ?></div>
289
+ <?php } ?>
290
  </li>
291
  <?php endwhile; ?>
292
  </ul>
294
  <?php wp_reset_query(); ?>
295
 
296
  <script>
297
+ jQuery(document).ready(function(){
298
+ jQuery('.wplss-logo-showcase-<?php echo $unique; ?>').slick({
299
+ centerMode: <?php echo $showcase_center_mode; ?>,
 
 
 
 
300
  dots: <?php echo $showcase_dots; ?>,
301
+ arrows: <?php echo $showcase_arrows; ?>,
302
  infinite: <?php echo $showcase_loop; ?>,
303
  speed: <?php echo $showcase_speed; ?>,
304
  slidesToShow: <?php echo $showcase_slides_column; ?>,
305
  slidesToScroll: <?php echo $showcase_slides_scroll; ?>,
306
  autoplay: <?php echo $showcase_autoplay; ?>,
307
  autoplaySpeed: <?php echo $showcase_autoplayInterval; ?>,
 
 
308
  responsive: [
309
  {
310
  breakpoint: 1024,
logo-showcase.php CHANGED
@@ -4,21 +4,34 @@
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.1
8
  * Author URI: http://www.wponlinesupport.com/
9
  *
10
  * @package WordPress
11
  * @author SP Technolab
12
  */
13
- add_action( 'wp_enqueue_scripts','wplss_logoshowcase_style_css' );
14
- function wplss_logoshowcase_style_css() {
15
- wp_enqueue_script( 'logo_showcase_slick_jquery', plugin_dir_url( __FILE__ ) . 'assets/js/slick.min.js', array( 'jquery' ) );
16
- wp_enqueue_style( 'logo_showcase_slick_style', plugin_dir_url( __FILE__ ) . 'assets/css/slick.css');
17
- wp_enqueue_style( 'logo_showcase_style', plugin_dir_url( __FILE__ ) . 'assets/css/logo-showcase.css');
18
-
19
- }
20
- require_once( 'includes/logo-showcase-functions.php' );
21
 
 
 
 
22
 
 
 
 
 
 
 
 
 
 
23
 
 
 
24
 
 
 
 
 
 
 
 
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.1
8
  * Author URI: http://www.wponlinesupport.com/
9
  *
10
  * @package WordPress
11
  * @author SP Technolab
12
  */
 
 
 
 
 
 
 
 
13
 
14
+ if( !defined( 'WPLS_VERSION' ) ) {
15
+ define( 'WPLS_VERSION', '1.2.1' ); // Version of plugin
16
+ }
17
 
18
+ /**
19
+ * Function to get plugin image sizes array
20
+ *
21
+ * @package WP Logo Showcase Responsive Slider
22
+ * @since 1.2.1
23
+ */
24
+ function wplss_get_unique() {
25
+ static $unique = 0;
26
+ $unique++;
27
 
28
+ return $unique;
29
+ }
30
 
31
+ add_action( 'wp_enqueue_scripts','wplss_logoshowcase_style_css' );
32
+ function wplss_logoshowcase_style_css() {
33
+ wp_enqueue_script( 'logo_showcase_slick_jquery', plugin_dir_url( __FILE__ ) . 'assets/js/slick.min.js', array( 'jquery' ), WPLS_VERSION );
34
+ wp_enqueue_style( 'logo_showcase_slick_style', plugin_dir_url( __FILE__ ) . 'assets/css/slick.css', array(), WPLS_VERSION);
35
+ wp_enqueue_style( 'logo_showcase_style', plugin_dir_url( __FILE__ ) . 'assets/css/logo-showcase.css', array(), WPLS_VERSION);
36
+ }
37
+ require_once( 'includes/logo-showcase-functions.php' );
readme.txt CHANGED
@@ -1,31 +1,32 @@
1
  === WP Logo Showcase Responsive Slider ===
2
  Contributors: wponlinesupport, anoopranawat
3
- Tags: 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
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
9
 
10
- A quick, easy way to add and display a 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://demo.wponlinesupport.com/logo-slider-plugin-demo/) for additional information.
18
 
19
  = Here is the shortcode example =
20
  <code>[logoshowcase]</code>
21
 
22
  = If you want to display Logos by category then use this short code =
23
- <code>[logoshowcase limit ="-1" cat_id="category_ID"</code>
24
 
25
  = Complete shortcode with all parameters =
26
- <code>[logoshowcase limit ="-1" cat_id="15" cat_name="Support" dots="true" arrows="true"
27
- slides_column="3" slides_scroll="2" autoplay="true" autoplay_interval="300" speed="2000"
28
- loop="true" center_mode="true" link_target="blank"]</code>
 
29
 
30
 
31
  = Use Following parameters with shortcode =
@@ -52,19 +53,35 @@ loop="true" center_mode="true" link_target="blank"]</code>
52
  [logoshowcase center_mode="false"] ( Display slider in Center Mode OR not : You can use "true" OR "false")
53
  * **link_target:**
54
  [logoshowcase link_target="blank"] (Open link on the same Tab OR other Tab. Values are "blank" and "self")
 
 
 
 
55
 
56
  = Features include: =
57
  * Display Client logoshowcase in slider view.
58
- * Display Client logoshowcase categories wise.
59
  * Add Link for image.
60
- * Target "blank" OR "self" when user click on link
61
-
 
 
 
 
 
 
 
 
 
62
 
63
  == Installation ==
64
 
65
  1. Upload the 'WP Logo Showcase Responsive Slider' folder to the '/wp-content/plugins/' directory.
66
  2. Activate the "WP Logo Showcase Responsive Slider" list plugin through the 'Plugins' menu in WordPress.
67
- 3. Add a new page and add this short code <code>[logoshowcase]</code>
 
 
 
68
 
69
 
70
  == Screenshots ==
@@ -77,6 +94,14 @@ loop="true" center_mode="true" link_target="blank"]</code>
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
 
 
 
80
  = 1.1 =
81
  * Fixed some bugs
82
  * Add link for logo
@@ -89,6 +114,14 @@ loop="true" center_mode="true" link_target="blank"]</code>
89
 
90
  == Upgrade Notice ==
91
 
 
 
 
 
 
 
 
 
92
  = 1.1 =
93
  * Fixed some bugs
94
  * Add link for logo
1
  === WP Logo Showcase Responsive Slider ===
2
  Contributors: wponlinesupport, anoopranawat
3
+ Tags: 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.4.2
6
  Stable tag: trunk
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ A quick, easy way to add and display 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
  = Here is the shortcode example =
20
  <code>[logoshowcase]</code>
21
 
22
  = If you want to display Logos by category then use this short code =
23
+ <code>[logoshowcase limit ="-1" cat_id="category_ID"]</code>
24
 
25
  = Complete shortcode with all parameters =
26
+ <code>[logoshowcase limit="-1" cat_id="15" cat_name="Support"
27
+ dots="true" arrows="true" slides_column="3" slides_scroll="2" autoplay="true"
28
+ autoplay_interval="300" speed="2000" loop="true" center_mode="true"
29
+ link_target="blank" show_title="false" image_size="original"]</code>
30
 
31
 
32
  = Use Following parameters with shortcode =
53
  [logoshowcase center_mode="false"] ( Display slider in Center Mode OR not : You can use "true" OR "false")
54
  * **link_target:**
55
  [logoshowcase link_target="blank"] (Open link on the same Tab OR other Tab. Values are "blank" and "self")
56
+ * **show_title:**
57
+ [logoshowcase show_title="false"] (ie show logo title or not. By default value is "false" Values are "true" and "false")
58
+ * **image_size:**
59
+ [logoshowcase image_size="original"] (ie set image size of logo. By default value is "original" Values are "original, large, medium, thumbnail")
60
 
61
  = Features include: =
62
  * Display Client logoshowcase in slider view.
63
+ * Display Unlimited Client logoshowcase categories wise.
64
  * Add Link for image.
65
+ * Target "blank" OR "self" when user click on link (Specify target to load the Links)
66
+ * Set image size with image_size="original" parameter (Logo image size control).
67
+ * Display Logo including / excluding Title (Show or hide logo title)
68
+ * Multiple sliders can be shown from different Logo categories.
69
+ * Slider sliding speed, autoplay Intervel, navigation, pagination, Slide columns for Logo slider, Number of Logos slides at a time.
70
+ * Created with Slick Slider.
71
+ * Enable center mode (Shown in Demo)
72
+ * Display slider in Loop OR not
73
+
74
+ = Template code is =
75
+ <code><?php echo do_shortcode('[logoshowcase]'); ?></code>
76
 
77
  == Installation ==
78
 
79
  1. Upload the 'WP Logo Showcase Responsive Slider' folder to the '/wp-content/plugins/' directory.
80
  2. Activate the "WP Logo Showcase Responsive Slider" list plugin through the 'Plugins' menu in WordPress.
81
+ 3. Add a new page and add this short code
82
+ <code>[logoshowcase]</code>
83
+ 4. Template code is
84
+ <code><?php echo do_shortcode('[logoshowcase]'); ?></code>
85
 
86
 
87
  == Screenshots ==
94
 
95
  == Changelog ==
96
 
97
+ = 1.2.1 =
98
+ * Fixed some css issues.
99
+ * Resolved multiple slider jquery conflict issue.
100
+
101
+ = 1.2 =
102
+ * Fixed some bugs
103
+ * Added 2 new shortcode parameters ie show_title="false" image_size="original"
104
+
105
  = 1.1 =
106
  * Fixed some bugs
107
  * Add link for logo
114
 
115
  == Upgrade Notice ==
116
 
117
+ = 1.2.1 =
118
+ * Fixed some css issues.
119
+ * Resolved multiple slider jquery conflict issue.
120
+
121
+ = 1.2 =
122
+ * Fixed some bugs
123
+ * Added 2 new shortcode parameters ie show_title="false" image_size="original"
124
+
125
  = 1.1 =
126
  * Fixed some bugs
127
  * Add link for logo