Easing Slider - Version 1.1.7

Version Description

  • Added: Option to enable or disable jQuery.
  • Fixed: Issue with slider appearing above post content when using shortcode.
Download this release

Release Info

Developer MatthewRuddy
Plugin Icon 128x128 Easing Slider
Version 1.1.7
Comparing to
See all releases

Code changes from version 1.1.6 to 1.1.7

easingslider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Easing Slider
4
  Plugin URI: http://easingslider.matthewruddy.com
5
  Description: Easing Slider is an image slider which uses the jQuery Easing Plugin. It comes with many different transition and styling settings so you'll never have to edit any of the CSS files directly. Images are got from custom fields or Easing Slider's own 'custom images' panel where you can specify particular images via their URL.
6
- Version: 1.1.6
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com
9
  License: This plugin is licensed under the GNU General Public License.
@@ -79,16 +79,17 @@ jQuery(document).ready( function($){
79
  function add_scripts() {
80
  $scripturl = WP_PLUGIN_URL .'/easing-slider/js/';
81
 
 
82
  if ( !is_admin() ) {
83
  wp_deregister_script('jquery');
84
  wp_register_script('jquery', $scripturl.'jquery.js', '', '1.4.2');
85
  wp_enqueue_script('jquery');
86
-
87
  }
88
 
89
  wp_register_script('easing', $scripturl.'jquery.easing.js', '', '1.3');
90
  wp_enqueue_script('easing');
91
- wp_register_script('script', $scripturl.'script.js', '', '1.1.6');
92
  wp_enqueue_script('script');
93
 
94
  }
@@ -96,7 +97,7 @@ wp_enqueue_script('script');
96
  function add_styles() {
97
  $sliderstyle = WP_PLUGIN_URL .'/easing-slider/css/slider.css';
98
 
99
- wp_register_style('slider', $sliderstyle, '', '1.1.6');
100
  wp_enqueue_style('slider');
101
 
102
  }
@@ -165,6 +166,7 @@ function easing_slider() {
165
  $pageposition = get_option('pageposition');
166
  $pageside = get_option('pageside');
167
  $permalink = get_option('permalink');
 
168
 
169
  $padtop = $bwidth*2;
170
 
@@ -313,7 +315,18 @@ function easing_slider() {
313
  }
314
  }
315
 
316
- add_shortcode('easingslider', 'easing_slider');
 
 
 
 
 
 
 
 
 
 
 
317
 
318
  function set_easing_options() {
319
  add_option('sImg1','','');
@@ -365,6 +378,7 @@ function set_easing_options() {
365
  add_option('pageposition','outside','');
366
  add_option('pageside','left','');
367
  add_option('permalink','','');
 
368
  }
369
 
370
  function unset_easing_options() {
@@ -417,6 +431,7 @@ function unset_easing_options() {
417
  delete_option('pageposition');
418
  delete_option('pageside');
419
  delete_option('permalink');
 
420
  }
421
 
422
  register_activation_hook(__FILE__,'set_easing_options');
@@ -473,6 +488,7 @@ function admin_easing() {
473
  $pageposition = get_option('pageposition');
474
  $pageside = get_option('pageside');
475
  $permalink = get_option('permalink');
 
476
 
477
  if ('process' == $_POST['options']) {
478
  update_option('sImg1',$_REQUEST['sImg1']);
@@ -524,6 +540,7 @@ if ('process' == $_POST['options']) {
524
  update_option('pageposition',$_REQUEST['pageposition']);
525
  update_option('pageside',$_REQUEST['pageside']);
526
  update_option('permalink',$_REQUEST['permalink']);
 
527
  $sImg1 = get_option('sImg1');
528
  $sImg2 = get_option('sImg2');
529
  $sImg3 = get_option('sImg3');
@@ -573,6 +590,7 @@ if ('process' == $_POST['options']) {
573
  $pageposition = get_option('pageposition');
574
  $pageside = get_option('pageside');
575
  $permalink = get_option('permalink');
 
576
  }
577
 
578
 
@@ -657,6 +675,7 @@ function print_easing_form() {
657
  $pageposition = get_option('pageposition');
658
  $pageside = get_option('pageside');
659
  $permalink = get_option('permalink');
 
660
 
661
 
662
  ?>
@@ -890,6 +909,23 @@ function print_easing_form() {
890
  </p>
891
  </td>
892
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
893
 
894
  <tr valign="top" style="border-bottom:1px solid #ccc;">
895
  <td style="padding:5px 0;">
3
  Plugin Name: Easing Slider
4
  Plugin URI: http://easingslider.matthewruddy.com
5
  Description: Easing Slider is an image slider which uses the jQuery Easing Plugin. It comes with many different transition and styling settings so you'll never have to edit any of the CSS files directly. Images are got from custom fields or Easing Slider's own 'custom images' panel where you can specify particular images via their URL.
6
+ Version: 1.1.7
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com
9
  License: This plugin is licensed under the GNU General Public License.
79
  function add_scripts() {
80
  $scripturl = WP_PLUGIN_URL .'/easing-slider/js/';
81
 
82
+ if(get_option('jquery') == 'true') {
83
  if ( !is_admin() ) {
84
  wp_deregister_script('jquery');
85
  wp_register_script('jquery', $scripturl.'jquery.js', '', '1.4.2');
86
  wp_enqueue_script('jquery');
87
+ }
88
  }
89
 
90
  wp_register_script('easing', $scripturl.'jquery.easing.js', '', '1.3');
91
  wp_enqueue_script('easing');
92
+ wp_register_script('script', $scripturl.'script.js', '', '1.1.7');
93
  wp_enqueue_script('script');
94
 
95
  }
97
  function add_styles() {
98
  $sliderstyle = WP_PLUGIN_URL .'/easing-slider/css/slider.css';
99
 
100
+ wp_register_style('slider', $sliderstyle, '', '1.1.7');
101
  wp_enqueue_style('slider');
102
 
103
  }
166
  $pageposition = get_option('pageposition');
167
  $pageside = get_option('pageside');
168
  $permalink = get_option('permalink');
169
+ $jquery = get_option('jquery');
170
 
171
  $padtop = $bwidth*2;
172
 
315
  }
316
  }
317
 
318
+
319
+ function easing_slider_short() {
320
+ ob_start();
321
+ easing_slider();
322
+ $output_string=ob_get_contents();;
323
+ ob_end_clean();
324
+
325
+ return $output_string;
326
+ }
327
+
328
+
329
+ add_shortcode('easingslider', 'easing_slider_short');
330
 
331
  function set_easing_options() {
332
  add_option('sImg1','','');
378
  add_option('pageposition','outside','');
379
  add_option('pageside','left','');
380
  add_option('permalink','','');
381
+ add_option('jquery','true','');
382
  }
383
 
384
  function unset_easing_options() {
431
  delete_option('pageposition');
432
  delete_option('pageside');
433
  delete_option('permalink');
434
+ delete_option('jquery');
435
  }
436
 
437
  register_activation_hook(__FILE__,'set_easing_options');
488
  $pageposition = get_option('pageposition');
489
  $pageside = get_option('pageside');
490
  $permalink = get_option('permalink');
491
+ $jquery = get_option('jquery');
492
 
493
  if ('process' == $_POST['options']) {
494
  update_option('sImg1',$_REQUEST['sImg1']);
540
  update_option('pageposition',$_REQUEST['pageposition']);
541
  update_option('pageside',$_REQUEST['pageside']);
542
  update_option('permalink',$_REQUEST['permalink']);
543
+ update_option('jquery',$_REQUEST['jquery']);
544
  $sImg1 = get_option('sImg1');
545
  $sImg2 = get_option('sImg2');
546
  $sImg3 = get_option('sImg3');
590
  $pageposition = get_option('pageposition');
591
  $pageside = get_option('pageside');
592
  $permalink = get_option('permalink');
593
+ $jquery = get_option('jquery');
594
  }
595
 
596
 
675
  $pageposition = get_option('pageposition');
676
  $pageside = get_option('pageside');
677
  $permalink = get_option('permalink');
678
+ $jquery = get_option('jquery');
679
 
680
 
681
  ?>
909
  </p>
910
  </td>
911
  </tr>
912
+
913
+ <tr valign="top" style="border-bottom:1px solid #ccc;">
914
+ <td style="padding:5px 0;">
915
+ <label for="source" style="padding:10px;font-weight:bold;">Load jQuery?</label>
916
+ </td>
917
+ <td style="padding:5px 0;">
918
+ <select name="jquery" style="width:235px;">
919
+ <option value="true" <?php selected('true', get_option('jquery')); ?>>True</option>
920
+ <option value="false" <?php selected('false', get_option('jquery')); ?>>False</option>
921
+ </select>
922
+ </td>
923
+ <td style="padding:5px 0;">
924
+ <p style="margin:0 10px;font-style:italic;font-size:11px;">
925
+ Choose if the slider should load jQuery. Setting this to 'false' may fix jQuery conflict errors that are breaking the slider.
926
+ </p>
927
+ </td>
928
+ </tr>
929
 
930
  <tr valign="top" style="border-bottom:1px solid #ccc;">
931
  <td style="padding:5px 0;">
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=matth
5
  Tags: slider, easing, plugin, jquery, content, featured, images, wordpress
6
  Requires at least: 2.9.2
7
  Tested up to: 3.0.1
8
- Stable tag: 1.1.6
9
 
10
  The Easing Slider is an image slider plugin for WordPress which uses the jQuery Easing plugin.
11
 
@@ -102,6 +102,10 @@ This (most likely) is due to one of two potential problems:
102
 
103
  == Changelog ==
104
 
 
 
 
 
105
  = 1.1.6 =
106
  * Added: Premium Slider notice.
107
  * Added: Icon to heading on Admin options.
5
  Tags: slider, easing, plugin, jquery, content, featured, images, wordpress
6
  Requires at least: 2.9.2
7
  Tested up to: 3.0.1
8
+ Stable tag: 1.1.7
9
 
10
  The Easing Slider is an image slider plugin for WordPress which uses the jQuery Easing plugin.
11
 
102
 
103
  == Changelog ==
104
 
105
+ = 1.1.7 =
106
+ * Added: Option to enable or disable jQuery.
107
+ * Fixed: Issue with slider appearing above post content when using shortcode.
108
+
109
  = 1.1.6 =
110
  * Added: Premium Slider notice.
111
  * Added: Icon to heading on Admin options.
screenshot-1.jpg CHANGED
Binary file
screenshot-2.jpg CHANGED
Binary file
screenshot-4.jpg CHANGED
Binary file
screenshot-5.jpg CHANGED
Binary file