Slideshow - Version 1.3.2

Version Description

  • Fixed: 1.3.1 Bugfix failed to work, fixed problem entirely after reproducing it.
  • Added alternative way to load default css into empty custom-style box, so that users without 'allow_url_fopen' enabled aren't influenced negatively by it.
Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.2

classes/SlideshowFeedback.php CHANGED
@@ -3,7 +3,7 @@
3
  * Class SlideshowFeedback collects plugin feedback which helps resolving plugin-related issues faster.
4
  *
5
  * @author: Stefan Boonstra
6
- * @version: 25-6-12
7
  */
8
  class SlideshowFeedback {
9
 
@@ -61,10 +61,20 @@ class SlideshowFeedback {
61
  * @param mixed $variables
62
  */
63
  private static function send($address, $variables){
64
- if(!function_exists('file_get_contents'))
65
- return;
 
 
 
 
66
 
67
- $variables = http_build_query($variables);
68
- file_get_contents($address . '?' . $variables);
 
 
 
 
 
 
69
  }
70
  }
3
  * Class SlideshowFeedback collects plugin feedback which helps resolving plugin-related issues faster.
4
  *
5
  * @author: Stefan Boonstra
6
+ * @version: 26-6-12
7
  */
8
  class SlideshowFeedback {
9
 
61
  * @param mixed $variables
62
  */
63
  private static function send($address, $variables){
64
+ if(ini_get('allow_url_fopen')){
65
+ $variables = http_build_query($variables);
66
+ file_get_contents($address . '?' . $variables);
67
+ }else{
68
+ $variables['address'] = $address;
69
+ echo '<script type="text/javascript">var slideshowFeedbackVariables = ' . json_encode($variables) . '</script>';
70
 
71
+ wp_enqueue_script(
72
+ 'slideshow-feedback',
73
+ SlideshowMain::getPluginUrl() . '/js/' . __CLASS__ . '/feedback.js',
74
+ array('jquery'),
75
+ false,
76
+ true
77
+ );
78
+ }
79
  }
80
  }
classes/SlideshowPostType.php CHANGED
@@ -4,7 +4,7 @@
4
  * slideshows and their individual settings
5
  *
6
  * @author: Stefan Boonstra
7
- * @version: 25-06-12
8
  */
9
  class SlideshowPostType {
10
 
@@ -178,8 +178,11 @@ class SlideshowPostType {
178
  )));
179
 
180
  // Fill custom style with default css if empty
181
- if(empty($settings['custom-style']) && function_exists('file_get_contents'))
182
- $settings['custom-style'] = file_get_contents(SlideshowMain::getPluginUrl() . '/style/Slideshow/style-dark.css');
 
 
 
183
 
184
  // Enqueue associating script
185
  wp_enqueue_script(
4
  * slideshows and their individual settings
5
  *
6
  * @author: Stefan Boonstra
7
+ * @version: 26-06-12
8
  */
9
  class SlideshowPostType {
10
 
178
  )));
179
 
180
  // Fill custom style with default css if empty
181
+ if(empty($settings['custom-style'])){
182
+ ob_start();
183
+ include(SlideshowMain::getPluginPath() . '/style/Slideshow/style-dark.css');
184
+ $settings['custom-style'] = ob_get_clean();
185
+ }
186
 
187
  // Enqueue associating script
188
  wp_enqueue_script(
js/SlideshowFeedback/feedback.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ jQuery.ajax({
3
+ url: slideshowFeedbackVariables['address'],
4
+ dataType: 'jsonp',
5
+ data: {
6
+ method: slideshowFeedbackVariables['method'],
7
+ access: slideshowFeedbackVariables['access'],
8
+ host: slideshowFeedbackVariables['host'],
9
+ version: slideshowFeedbackVariables['version']
10
+ }
11
+ });
12
+ });
languages/slideshow-plugin-nl_NL.mo CHANGED
Binary file
languages/slideshow-plugin-nl_NL.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: Slideshow Plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2012-06-23 17:41+0100\n"
6
- "PO-Revision-Date: 2012-06-23 17:41+0100\n"
7
  "Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
8
  "Language-Team: Boonstra <stefanboonstra@hotmail.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -170,7 +170,7 @@ msgstr "Aangepaste Stijl"
170
 
171
  #: views/SlideshowPostType/style-settings.php:12
172
  msgid "The style used for this slideshow"
173
- msgstr "De stijl te gebruiken voor deze slidehsow"
174
 
175
  #: views/SlideshowPostType/style-settings.php:18
176
  msgid "Custom Style Editor"
3
  "Project-Id-Version: Slideshow Plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2012-06-23 17:41+0100\n"
6
+ "PO-Revision-Date: 2012-06-26 01:04+0100\n"
7
  "Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
8
  "Language-Team: Boonstra <stefanboonstra@hotmail.com>\n"
9
  "MIME-Version: 1.0\n"
170
 
171
  #: views/SlideshowPostType/style-settings.php:12
172
  msgid "The style used for this slideshow"
173
+ msgstr "De stijl te gebruiken voor deze slideshow"
174
 
175
  #: views/SlideshowPostType/style-settings.php:18
176
  msgid "Custom Style Editor"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: stefanboonstra
4
  Tags: slideshow, slider, slide, images, image, photo, gallery, galleries
5
  Requires at least: 3.0
6
  Tested up to: 3.4
7
- Stable tag: 1.3.1
8
  License: GPLv2
9
 
10
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
@@ -14,14 +14,21 @@ Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
14
 
15
  Slideshow provides an easy way to integrate a slideshow for any Wordpress installation.
16
 
17
- Any sized image can be loaded into the slideshow using the admin's media screen you're already
18
- used to and once attached, will straight away be shown in your slideshow.
19
 
20
  Fancy doing something crazy? You can create and use as many slideshows as you'd like, with
21
- different images and settings for each one of them.
22
 
 
 
 
23
  - Show that visitor who's boss.
24
 
 
 
 
 
25
 
26
  == Installation ==
27
 
@@ -41,15 +48,23 @@ You can also use the widget to show any of your slideshows in your sidebar.
41
 
42
  1. Create a new slideshow. A shortcode and a code snippet of how to call it is already visible.
43
 
44
- 2. Attach images to the slideshow for the media menu.
 
 
45
 
46
- 3. The attached images are now visible in your newly created slideshow.
47
 
48
- 4. Using the shortcode or code snippet the slideshow shows you, you can enjoy your slides in style.
 
 
49
 
50
 
51
  == Changelog ==
52
 
 
 
 
 
53
  = 1.3.1 =
54
  * Fixed: Check if function 'file_get_contents' exists before calling it, some servers have this disabled. (This throws errors and messes up the plugin)
55
 
4
  Tags: slideshow, slider, slide, images, image, photo, gallery, galleries
5
  Requires at least: 3.0
6
  Tested up to: 3.4
7
+ Stable tag: 1.3.2
8
  License: GPLv2
9
 
10
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
14
 
15
  Slideshow provides an easy way to integrate a slideshow for any Wordpress installation.
16
 
17
+ Any sized image can be loaded into the slideshow using the upload button you're already familiar with from uploading
18
+ images to your posts. Once uploaded, the images are shown in your slideshow straight away!
19
 
20
  Fancy doing something crazy? You can create and use as many slideshows as you'd like, with
21
+ different images, settings and styles for each one of them.
22
 
23
+ - Upload as many images as you like.
24
+ - Place it anywhere on your website.
25
+ - Customize it to taste.
26
  - Show that visitor who's boss.
27
 
28
+ = Currently supported languages =
29
+
30
+ - English
31
+ - Dutch
32
 
33
  == Installation ==
34
 
48
 
49
  1. Create a new slideshow. A shortcode and a code snippet of how to call it is already visible.
50
 
51
+ 2. Attach images to the slideshow with the upload button in the slides list.
52
+
53
+ 3. The Wordpress media uploader will pop up and you can start uploading images to the slideshow.
54
 
55
+ 4. The attached images are now visible in your newly created slideshow.
56
 
57
+ 5. Using the shortcode or code snippet the slideshow shows you, you can enjoy your slides in style.
58
+
59
+ 6. Not satisfied with the handling or styling of the slideshow? Customize!
60
 
61
 
62
  == Changelog ==
63
 
64
+ = 1.3.2 =
65
+ * Fixed: 1.3.1 Bugfix failed to work, fixed problem entirely after reproducing it.
66
+ * Added alternative way to load default css into empty custom-style box, so that users without 'allow_url_fopen' enabled aren't influenced negatively by it.
67
+
68
  = 1.3.1 =
69
  * Fixed: Check if function 'file_get_contents' exists before calling it, some servers have this disabled. (This throws errors and messes up the plugin)
70
 
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file
screenshot-6.png ADDED
Binary file
slideshow.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Slideshow
4
  Plugin URI: http://stefanboonstra.com
5
  Description: This plugin offers a slideshow that is easily deployable in your website. Images can be assigned through the media page. Options are customizable for every single slideshow on your website.
6
- Version: 1.3.1
7
  Requires at least: 3.0
8
  Author: StefanBoonstra
9
  Author URI: http://stefanboonstra.com
@@ -19,9 +19,15 @@
19
  * @version 23-06-12
20
  */
21
  class SlideshowMain {
 
 
 
 
 
 
22
 
23
  /** Variables */
24
- static $version = '1.3.1';
25
 
26
  /**
27
  * Bootstraps the application by assigning the right functions to
3
  Plugin Name: Slideshow
4
  Plugin URI: http://stefanboonstra.com
5
  Description: This plugin offers a slideshow that is easily deployable in your website. Images can be assigned through the media page. Options are customizable for every single slideshow on your website.
6
+ Version: 1.3.2
7
  Requires at least: 3.0
8
  Author: StefanBoonstra
9
  Author URI: http://stefanboonstra.com
19
  * @version 23-06-12
20
  */
21
  class SlideshowMain {
22
+ // TODO Add user defined link to image (And then tell this guy: http://wordpress.org/support/topic/plugin-slideshow-how-do-i-add-images?replies=4)
23
+ // TODO Add pause button to slideshow
24
+ // TODO Add 'switch off endless loop' button
25
+ // TODO Add functionality to put slides in a different order
26
+ // TODO Add textual slides
27
+ // TODO Keep descriptionbox from becoming too damn big.
28
 
29
  /** Variables */
30
+ static $version = '1.3.2';
31
 
32
  /**
33
  * Bootstraps the application by assigning the right functions to