Slideshow - Version 2.1.11

Version Description

  • Fixed: Conflict with the Gravity Forms plugin.
Download this release

Release Info

Developer stefanboonstra
Plugin Icon 128x128 Slideshow
Version 2.1.11
Comparing to
See all releases

Code changes from version 2.1.10 to 2.1.11

classes/SlideshowPluginPostType.php CHANGED
@@ -4,7 +4,7 @@
4
  * slideshows and their individual settings
5
  *
6
  * @author: Stefan Boonstra
7
- * @version: 03-10-12
8
  */
9
  class SlideshowPluginPostType {
10
 
@@ -25,6 +25,7 @@ class SlideshowPluginPostType {
25
  */
26
  static function initialize(){
27
  add_action('init', array(__CLASS__, 'registerSlideshowPostType'));
 
28
  add_action('save_post', array(__CLASS__, 'save'));
29
  }
30
 
@@ -64,28 +65,35 @@ class SlideshowPluginPostType {
64
 
65
  // jQuery
66
  wp_enqueue_script('jquery');
 
67
 
68
- // If on the admin page
69
- if(is_admin()){
70
- // Enqueue associating script
71
- wp_enqueue_script(
72
- 'post-type-handler',
73
- SlideshowPluginMain::getPluginUrl() . '/js/' . __CLASS__ . '/post-type-handler.js',
74
- array('jquery')
75
- );
 
 
 
 
 
 
 
76
 
77
- // TODO: These scripts have been moved here from the footer. They need to be always printed in the header
78
- // TODO: a solution for this needs to be found.
79
- // Enqueue scripts required for sorting the slides list
80
- wp_enqueue_script('jquery');
81
- wp_enqueue_script('jquery-ui-sortable');
82
 
83
- // Enqueue JSColor
84
- wp_enqueue_script('jscolor-colorpicker', SlideshowPluginMain::getPluginUrl() . '/js/SlideshowPluginPostType/jscolor/jscolor.js');
85
 
86
- // Enqueue slide insert script and style
87
- SlideshowPluginSlideInserter::enqueueFiles();
88
- }
89
  }
90
 
91
  /**
4
  * slideshows and their individual settings
5
  *
6
  * @author: Stefan Boonstra
7
+ * @version: 13-10-12
8
  */
9
  class SlideshowPluginPostType {
10
 
25
  */
26
  static function initialize(){
27
  add_action('init', array(__CLASS__, 'registerSlideshowPostType'));
28
+ add_action('admin_enqueue_scripts', array(__CLASS__, 'enqueue'));
29
  add_action('save_post', array(__CLASS__, 'save'));
30
  }
31
 
65
 
66
  // jQuery
67
  wp_enqueue_script('jquery');
68
+ }
69
 
70
+ /**
71
+ * Enqueues scripts and stylesheets for when the admin page
72
+ * is a slideshow edit page.
73
+ */
74
+ static function enqueue(){
75
+ $currentScreen = get_current_screen();
76
+ if($currentScreen->post_type != self::$postType)
77
+ return;
78
+
79
+ // Enqueue associating script
80
+ wp_enqueue_script(
81
+ 'post-type-handler',
82
+ SlideshowPluginMain::getPluginUrl() . '/js/' . __CLASS__ . '/post-type-handler.js',
83
+ array('jquery')
84
+ );
85
 
86
+ // TODO: These scripts have been moved here from the footer. They need to be always printed in the header
87
+ // TODO: a solution for this needs to be found.
88
+ // Enqueue scripts required for sorting the slides list
89
+ wp_enqueue_script('jquery');
90
+ wp_enqueue_script('jquery-ui-sortable');
91
 
92
+ // Enqueue JSColor
93
+ wp_enqueue_script('jscolor-colorpicker', SlideshowPluginMain::getPluginUrl() . '/js/SlideshowPluginPostType/jscolor/jscolor.js');
94
 
95
+ // Enqueue slide insert script and style
96
+ SlideshowPluginSlideInserter::enqueueFiles();
 
97
  }
98
 
99
  /**
classes/SlideshowPluginWidget.php CHANGED
@@ -83,7 +83,7 @@ class SlideshowPluginWidget extends WP_Widget {
83
  // Get slideshows
84
  $slideshows = get_posts(array(
85
  'numberposts' => -1,
86
- 'offset',
87
  'post_type' => SlideshowPluginPostType::$postType
88
  ));
89
 
83
  // Get slideshows
84
  $slideshows = get_posts(array(
85
  'numberposts' => -1,
86
+ 'offset' => 0,
87
  'post_type' => SlideshowPluginPostType::$postType
88
  ));
89
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://stefanboonstra.com/donate-to-slideshow/
5
  Tags: slideshow, slider, slide, slides, show, images, image, photo, gallery, galleries, jquery, javascript, video, text
6
  Requires at least: 3.3
7
  Tested up to: 3.4.2
8
- Stable tag: 2.1.10
9
  License: GPLv2
10
 
11
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
@@ -107,6 +107,9 @@ slideshow may not be styled.
107
  * Multiple slideshows can now be shown with each its separate styling.
108
  * Users can now search insertable images by post id.
109
 
 
 
 
110
  = 2.1.10 =
111
  * Fixed: Slideshow widget form now is compatible with older versions of PHP, that didn't recognize a null value as a set value.
112
 
5
  Tags: slideshow, slider, slide, slides, show, images, image, photo, gallery, galleries, jquery, javascript, video, text
6
  Requires at least: 3.3
7
  Tested up to: 3.4.2
8
+ Stable tag: 2.1.11
9
  License: GPLv2
10
 
11
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
107
  * Multiple slideshows can now be shown with each its separate styling.
108
  * Users can now search insertable images by post id.
109
 
110
+ = 2.1.11 =
111
+ * Fixed: Conflict with the Gravity Forms plugin.
112
+
113
  = 2.1.10 =
114
  * Fixed: Slideshow widget form now is compatible with older versions of PHP, that didn't recognize a null value as a set value.
115
 
slideshow.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Slideshow
4
  Plugin URI: http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/
5
  Description: This plugin offers a slideshow that is easily deployable in your website. Add any image that has already been uploaded to add to your slideshow. Options and styles are customizable for every single slideshow on your website.
6
- Version: 2.1.10
7
  Requires at least: 3.3
8
  Author: StefanBoonstra
9
  Author URI: http://stefanboonstra.com
@@ -16,12 +16,12 @@
16
  * base path/url returning method.
17
  *
18
  * @author Stefan Boonstra
19
- * @version 25-09-12
20
  */
21
  class SlideshowPluginMain {
22
 
23
  /** Variables */
24
- static $version = '2.1.10';
25
 
26
  /**
27
  * Bootstraps the application by assigning the right functions to
3
  Plugin Name: Slideshow
4
  Plugin URI: http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/
5
  Description: This plugin offers a slideshow that is easily deployable in your website. Add any image that has already been uploaded to add to your slideshow. Options and styles are customizable for every single slideshow on your website.
6
+ Version: 2.1.11
7
  Requires at least: 3.3
8
  Author: StefanBoonstra
9
  Author URI: http://stefanboonstra.com
16
  * base path/url returning method.
17
  *
18
  * @author Stefan Boonstra
19
+ * @version 13-10-12
20
  */
21
  class SlideshowPluginMain {
22
 
23
  /** Variables */
24
+ static $version = '2.1.11';
25
 
26
  /**
27
  * Bootstraps the application by assigning the right functions to