Slideshow - Version 2.0.0

Version Description

  • Complete sideshow script revision to support new features.
  • The script now supports two kinds of animations: 'Slide' and 'Fade'.
  • Multiple images can be shown in one slide, instead of one.
  • Text slides are available.
  • Descriptions are more cooperative, they don't overlap the entire image anymore. (Instead they hide or have a user-defined fixed height)
  • Multiple slideshows can now be shown on one page.
  • Play and pause buttons are now available, as is the option not to auto-play and/or loop the slideshow.
  • Stylesheets no longer partially depend on the website's stylesheet, except for the fonts.
  • The script and its functional stylesheet are now compressed to save loading time.
  • Added jQuery sortables script to sort slides
  • Images you've already uploaded and attached to other posts can now be loaded into the slideshow, saving disk space (and time).
Download this release

Release Info

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

Code changes from version 2.0.1 to 2.0.0

classes/SlideshowPluginPostType.php CHANGED
@@ -355,7 +355,7 @@ class SlideshowPluginPostType {
355
  * @param boolean $fullDefinition (optional, defaults to true)
356
  * @return mixed $defaultData
357
  */
358
- static function getDefaultData($fullDefinition = true){
359
  $data = array(
360
  'style_style' => 'light',
361
  'style_custom' => '',
355
  * @param boolean $fullDefinition (optional, defaults to true)
356
  * @return mixed $defaultData
357
  */
358
+ private static function getDefaultData($fullDefinition = true){
359
  $data = array(
360
  'style_style' => 'light',
361
  'style_custom' => '',
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: stefanboonstra
4
  Tags: slideshow, slider, slide, show, images, image, photo, gallery, galleries, jquery, javascript,
5
  Requires at least: 3.0
6
  Tested up to: 3.4.1
7
- Stable tag: 2.0.1
8
  License: GPLv2
9
 
10
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
@@ -88,10 +88,6 @@ slideshow is not styled.
88
 
89
  == Changelog ==
90
 
91
- = 2.0.1 =
92
- * IMPORTANT: This update is only for those people who want their old slides from version 1.x.x back.
93
- * IMPORTANT: If you are satisfied with version 2.0.0, please ignore this update as it might fiddle with the settings you just set.
94
-
95
  = 2.0.0 =
96
  * Complete sideshow script revision to support new features.
97
  * The script now supports two kinds of animations: 'Slide' and 'Fade'.
4
  Tags: slideshow, slider, slide, show, images, image, photo, gallery, galleries, jquery, javascript,
5
  Requires at least: 3.0
6
  Tested up to: 3.4.1
7
+ Stable tag: 2.0.0
8
  License: GPLv2
9
 
10
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  = 2.0.0 =
92
  * Complete sideshow script revision to support new features.
93
  * The script now supports two kinds of animations: 'Slide' and 'Fade'.
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png CHANGED
Binary file
screenshot-5.png CHANGED
Binary file
screenshot-6.png CHANGED
Binary file
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.0.1
7
  Requires at least: 3.0
8
  Author: StefanBoonstra
9
  Author URI: http://stefanboonstra.com
@@ -48,89 +48,11 @@ class SlideshowPluginMain {
48
  // Register slideshow post type
49
  SlideshowPluginPostType::initialize();
50
 
51
- // Transfers v1.x.x slides to the new slide format
52
- register_activation_hook(__FILE__, array(__CLASS__, 'transferV1toV2'));
53
-
54
  // Plugin feedback
55
  add_action('admin_head', array('SlideshowPluginFeedback', 'adminInitialize'));
56
  register_deactivation_hook(__FILE__, array('SlideshowPluginFeedback', 'deactivation'));
57
  }
58
 
59
- /**
60
- * Transfers v1.x.x slides to the new slide format
61
- */
62
- static function transferV1toV2(){
63
- // Check if this has already been done
64
- if(get_option('slideshow-plugin-updated-from-v1-x-x-to-v2-0-1') !== false)
65
- return;
66
-
67
- // Get posts
68
- $posts = get_posts(array(
69
- 'numberposts' => -1,
70
- 'offset' => 0,
71
- 'post_type' => SlideshowPluginPostType::$postType
72
- ));
73
-
74
- // Loop through posts
75
- foreach($posts as $post){
76
-
77
- // Stores highest slide id.
78
- $highestSlideId = -1;
79
-
80
- // Get stored slide settings and convert them to array([slide-key] => array([setting-name] => [value]));
81
- $slidesPreOrder = array();
82
- $settings = SlideshowPluginPostType::getSettings($post->ID, SlideshowPluginPostType::$prefixes['slide-list'], true);
83
- foreach($settings as $key => $value){
84
- $key = explode('_', $key);
85
- if(is_numeric($key[1]))
86
- $slidesPreOrder[$key[1]][$key[2]] = $value;
87
- }
88
-
89
- // Save slide keys from the $slidePreOrder array in the array itself for later use
90
- foreach($slidesPreOrder as $key => $value){
91
- // Save highest slide id
92
- if($key > $highestSlideId)
93
- $highestSlideId = $key;
94
- }
95
-
96
- // Get defaults
97
- $defaultData = SlideshowPluginPostType::getDefaultData(false);
98
-
99
- // Get old data
100
- $oldData = get_post_meta($post->ID, SlideshowPluginPostType::$settingsMetaKey, true);
101
- if(!is_array(($oldData)))
102
- $oldData = array();
103
-
104
- // Get attachments
105
- $attachments = get_posts(array(
106
- 'numberposts' => -1,
107
- 'offset' => 0,
108
- 'post_type' => 'attachment',
109
- 'post_parent' => $post->ID
110
- ));
111
-
112
- // Get data from attachments
113
- $newData = array();
114
- foreach($attachments as $attachment){
115
- $highestSlideId++;
116
- $newData['slide_' . $highestSlideId . '_postId'] = $attachment->ID;
117
- $newData['slide_' . $highestSlideId . '_type'] = 'attachment';
118
- }
119
-
120
- // Save settings
121
- update_post_meta(
122
- $post->ID,
123
- SlideshowPluginPostType::$settingsMetaKey,
124
- array_merge(
125
- $defaultData,
126
- $oldData,
127
- $newData
128
- ));
129
- }
130
-
131
- update_option('slideshow-plugin-updated-from-v1-x-x-to-v2-0-1', 'updated');
132
- }
133
-
134
  /**
135
  * Translates the plugin
136
  */
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.0.0
7
  Requires at least: 3.0
8
  Author: StefanBoonstra
9
  Author URI: http://stefanboonstra.com
48
  // Register slideshow post type
49
  SlideshowPluginPostType::initialize();
50
 
 
 
 
51
  // Plugin feedback
52
  add_action('admin_head', array('SlideshowPluginFeedback', 'adminInitialize'));
53
  register_deactivation_hook(__FILE__, array('SlideshowPluginFeedback', 'deactivation'));
54
  }
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  /**
57
  * Translates the plugin
58
  */