Logo Slider - Version 1.1

Version Description

  • Added auto-slide options
Download this release

Release Info

Developer EnigmaWeb
Plugin Icon 128x128 Logo Slider
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

{trunk/arrows → arrows}/arrow1-prev.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow1.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow2-prev.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow2.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow3-prev.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow3.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow4-prev.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow4.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow5-prev.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow5.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow6-prev.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow6.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow7-prev.png RENAMED
File without changes
{trunk/arrows → arrows}/arrow7.png RENAMED
File without changes
assets/banner-772x250.jpg DELETED
Binary file
trunk/icon.png → icon.png RENAMED
File without changes
trunk/jquery.cycle.all.min.js → jquery.cycle.all.min.js RENAMED
File without changes
trunk/logo-slider.php → logo-slider.php RENAMED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: Logo Slider
4
  Plugin URI: http://www.wordpress.org/extend/plugins/logo-slider
5
- Description: Add a logo slideshow carousel to your site quicky and easily. Embedd in any post/page using shortcode <code>[logo-slider]</code> or to your theme with <code>logo_slider();</code>
6
- Version: 1.0
7
  Author: Enigma Digital
8
  Author URI: http://www.enigmaweb.com.au/
9
  */
@@ -24,6 +24,8 @@ $wp_logo_defaults = apply_filters('wp_logo_defaults', array(
24
  'slider_width' => 450,
25
  'slider_height' => 198,
26
  'num_img' => 2,
 
 
27
 
28
  ));
29
 
@@ -309,14 +311,26 @@ function wp_logo_settings_admin() { ?>
309
  <?php global $wp_logo_slider_settings; $options = $wp_logo_slider_settings; ?>
310
  <table class="form-table">
311
  <tr><th scope="row">Size</th>
312
- <td>Width: <input type="text" name="wp_logo_slider_settings[slider_width]" value="<?php echo $options['slider_width'] ?>" size="4" /> Height: <input type="text" name="wp_logo_slider_settings[slider_height]" value="<?php echo $options['slider_height'] ?>" size="4" />
313
 
314
  <tr><th scope="row">Images Per Slide</th>
315
- <td><input type="text" name="wp_logo_slider_settings[num_img]" value="<?php echo $options['num_img'] ?>" size="4" /> <small>How many logos to slide through when user clicks an arrow</small></td>
316
  </tr>
 
317
  <tr><th scope="row">Background Colour</th>
318
  <td><input type="text" name="wp_logo_slider_settings[bgcolour]" value="<?php echo $options['bgcolour'] ?>" /> <small>Format: #FFFFFF</small></td>
319
  </tr>
 
 
 
 
 
 
 
 
 
 
 
320
  <tr><th scope="row">Arrow Style</th>
321
  <td id="arrow-style">
322
 
@@ -371,6 +385,8 @@ function wp_logo_settings_validate($input) {
371
  $input['arrow'] = intval($input['arrow']);
372
  $input['custom_css'] = wp_filter_nohtml_kses($input['custom_css']);
373
  $input['bgcolour'] = wp_filter_nohtml_kses($input['bgcolour']);
 
 
374
 
375
  return $input;
376
  }
@@ -451,7 +467,7 @@ function wp_slider_args() {
451
  <script type="text/javascript">
452
  jQuery(document).ready(function($) {
453
  $('#logo-slider').before('<div class="slider-controls"><a href="#" id="prev">&lt;</a> <a href="#" id="next">&gt;</a></div>').cycle({
454
- timeout: 0,
455
  fx: 'scrollHorz',
456
  next: '#prev',
457
  prev: '#next',
@@ -519,4 +535,5 @@ function admin_styles(){ ?>
519
  <style type="text/css" media="screen">
520
  #arrow-style p{ float:left; height:60px; width:40px; text-align:center; margin-right:16px;}
521
  </style>
522
- <?php }
 
2
  /*
3
  Plugin Name: Logo Slider
4
  Plugin URI: http://www.wordpress.org/extend/plugins/logo-slider
5
+ Description: Add a logo slideshow carousel to your site quicky and easily. Embedd in any post/page using shortcode <code>[logo-slider]</code> or to your theme with <code><?php logo_slider(); ?></code>
6
+ Version: 1.1
7
  Author: Enigma Digital
8
  Author URI: http://www.enigmaweb.com.au/
9
  */
24
  'slider_width' => 450,
25
  'slider_height' => 198,
26
  'num_img' => 2,
27
+ 'auto_slide' => 1,
28
+ 'auto_slide_time' => '',
29
 
30
  ));
31
 
311
  <?php global $wp_logo_slider_settings; $options = $wp_logo_slider_settings; ?>
312
  <table class="form-table">
313
  <tr><th scope="row">Size</th>
314
+ <td>Width: <input type="text" name="wp_logo_slider_settings[slider_width]" value="<?php echo $options['slider_width'] ?>" size="4" /> Height: <input type="text" name="wp_logo_slider_settings[slider_height]" value="<?php echo $options['slider_height'] ?>" size="4" /></td></tr>
315
 
316
  <tr><th scope="row">Images Per Slide</th>
317
+ <td><input type="text" name="wp_logo_slider_settings[num_img]" value="<?php echo $options['num_img'] ?>" size="4" /> <small>Number of logos per slide</small></td>
318
  </tr>
319
+
320
  <tr><th scope="row">Background Colour</th>
321
  <td><input type="text" name="wp_logo_slider_settings[bgcolour]" value="<?php echo $options['bgcolour'] ?>" /> <small>Format: #FFFFFF</small></td>
322
  </tr>
323
+ <tr><th scope="row">Auto Slide</th>
324
+ <td id="arrow-style">
325
+
326
+ ON <input type="radio" name="wp_logo_slider_settings[auto_slide]" value="1" <?php if($options['auto_slide']==1){echo 'checked="checked"';}?> />&nbsp; &nbsp;
327
+ OFF <input type="radio" name="wp_logo_slider_settings[auto_slide]" value="2" <?php if($options['auto_slide']==2){echo 'checked="checked"';}?>/>
328
+ </td>
329
+ </tr>
330
+ <tr><th scope="row">Auto Slide Time</th>
331
+ <td><input type="text" name="wp_logo_slider_settings[auto_slide_time]" value="<?php echo $options['auto_slide_time'] ?>" size="4" /> <small>Set auto slide duration in seconds</small></td>
332
+ </tr>
333
+
334
  <tr><th scope="row">Arrow Style</th>
335
  <td id="arrow-style">
336
 
385
  $input['arrow'] = intval($input['arrow']);
386
  $input['custom_css'] = wp_filter_nohtml_kses($input['custom_css']);
387
  $input['bgcolour'] = wp_filter_nohtml_kses($input['bgcolour']);
388
+ $input['auto_slide'] = intval($input['auto_slide']);
389
+ $input['auto_slide_time'] = intval($input['auto_slide_time']);
390
 
391
  return $input;
392
  }
467
  <script type="text/javascript">
468
  jQuery(document).ready(function($) {
469
  $('#logo-slider').before('<div class="slider-controls"><a href="#" id="prev">&lt;</a> <a href="#" id="next">&gt;</a></div>').cycle({
470
+ timeout: <?php if($wp_logo_slider_settings['auto_slide'] == 1) {echo $wp_logo_slider_settings['auto_slide_time'] * 1000;} else { echo 0;} ?>,
471
  fx: 'scrollHorz',
472
  next: '#prev',
473
  prev: '#next',
535
  <style type="text/css" media="screen">
536
  #arrow-style p{ float:left; height:60px; width:40px; text-align:center; margin-right:16px;}
537
  </style>
538
+ <?php }
539
+
trunk/readme.txt → readme.txt RENAMED
@@ -12,7 +12,7 @@ Showcase logos in stylish slideshow carousel.
12
 
13
  == Description ==
14
 
15
- Add a logo slideshow carousel to your site quickly and easily. Embed in any post/page using shortcode `[logo-slider]` or in your theme with `logo_slider();`
16
 
17
  Perfect for displaying a list of sponsor or client logos.
18
 
@@ -22,6 +22,7 @@ Perfect for displaying a list of sponsor or client logos.
22
  * Easy to customise (height, width, number of images before slide etc)
23
  * Easy image uploader
24
  * Ability to add links to each logo if you want
 
25
 
26
  = Demo =
27
 
@@ -32,7 +33,7 @@ Perfect for displaying a list of sponsor or client logos.
32
  1. Upload the `logo-slider` folder to the `/wp-content/plugins/` directory
33
  1. Activate Logo Slider plugin through the 'Plugins' menu in WordPress
34
  1. Configure the plugin by going to the `Logo Slider` tab that appears in your admin menu.
35
- 1. Add to any page using shortcode `[logo-slider]` or to your theme using `logo_slider();`
36
 
37
  == Frequently Asked Questions ==
38
 
@@ -55,11 +56,17 @@ If you've tried all the obvious stuff and it's still not working please request
55
 
56
  == Changelog ==
57
 
 
 
 
58
  = 1.0 =
59
  * Initial release
60
 
61
  == Upgrade Notice ==
62
 
 
 
 
63
  = 1.0 =
64
  * Initial release
65
 
12
 
13
  == Description ==
14
 
15
+ Add a logo slideshow carousel to your site quickly and easily. Embed in any post/page using shortcode `[logo-slider]` or in your theme with `<?php logo_slider(); ?>`
16
 
17
  Perfect for displaying a list of sponsor or client logos.
18
 
22
  * Easy to customise (height, width, number of images before slide etc)
23
  * Easy image uploader
24
  * Ability to add links to each logo if you want
25
+ * Auto-slide option
26
 
27
  = Demo =
28
 
33
  1. Upload the `logo-slider` folder to the `/wp-content/plugins/` directory
34
  1. Activate Logo Slider plugin through the 'Plugins' menu in WordPress
35
  1. Configure the plugin by going to the `Logo Slider` tab that appears in your admin menu.
36
+ 1. Add to any page using shortcode `[logo-slider]` or to your theme using `<?php logo_slider(); ?>`
37
 
38
  == Frequently Asked Questions ==
39
 
56
 
57
  == Changelog ==
58
 
59
+ = 1.1 =
60
+ * Added auto-slide options
61
+
62
  = 1.0 =
63
  * Initial release
64
 
65
  == Upgrade Notice ==
66
 
67
+ = 1.1 =
68
+ * Added auto-slide options
69
+
70
  = 1.0 =
71
  * Initial release
72
 
assets/screenshot-1.jpg → screenshot-1.jpg RENAMED
File without changes
assets/screenshot-2.jpg → screenshot-2.jpg RENAMED
File without changes
trunk/screenshot-1.jpg DELETED
Binary file
trunk/screenshot-2.jpg DELETED
Binary file