Slideshow - Version 2.1.8

Version Description

  • Option added to be able to control whether to use a filter, or to directly output on shortcode.
Download this release

Release Info

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

Code changes from version 2.1.7 to 2.1.8

classes/SlideshowPluginPostType.php CHANGED
@@ -4,7 +4,7 @@
4
  * slideshows and their individual settings
5
  *
6
  * @author: Stefan Boonstra
7
- * @version: 24-09-12
8
  */
9
  class SlideshowPluginPostType {
10
 
@@ -375,7 +375,8 @@ class SlideshowPluginPostType {
375
  'setting_showDescription' => 'true',
376
  'setting_hideDescription' => 'true',
377
  'setting_random' => 'false',
378
- //'setting_cssInHeader' => 'false'
 
379
  );
380
 
381
  if($fullDefinition){
@@ -400,7 +401,8 @@ class SlideshowPluginPostType {
400
  'setting_controllable' => array('radio', '', $data['setting_controllable'], __('Activate buttons (so the user can scroll through the slides)', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
401
  'setting_controlPanel' => array('radio', '', $data['setting_controlPanel'], __('Show control panel (play and pause button)', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
402
  'setting_random' => array('radio', '', $data['setting_random'], __('Randomize slides', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Miscellaneous', 'slideshow-plugin')),
403
- //'setting_cssInHeader' => array('radio', '', $data['setting_cssInHeader'], __('Load all CSS in the \'<head>\' area', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Miscellaneous', 'slideshow-plugin'))
 
404
  );
405
  }
406
 
4
  * slideshows and their individual settings
5
  *
6
  * @author: Stefan Boonstra
7
+ * @version: 25-09-12
8
  */
9
  class SlideshowPluginPostType {
10
 
375
  'setting_showDescription' => 'true',
376
  'setting_hideDescription' => 'true',
377
  'setting_random' => 'false',
378
+ //'setting_cssInHeader' => 'false',
379
+ 'setting_avoidFilter' => 'true'
380
  );
381
 
382
  if($fullDefinition){
401
  'setting_controllable' => array('radio', '', $data['setting_controllable'], __('Activate buttons (so the user can scroll through the slides)', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
402
  'setting_controlPanel' => array('radio', '', $data['setting_controlPanel'], __('Show control panel (play and pause button)', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
403
  'setting_random' => array('radio', '', $data['setting_random'], __('Randomize slides', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Miscellaneous', 'slideshow-plugin')),
404
+ //'setting_cssInHeader' => array('radio', '', $data['setting_cssInHeader'], __('Load all CSS in the \'<head>\' area', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Miscellaneous', 'slideshow-plugin')),
405
+ 'setting_avoidFilter' => array('radio', '', $data['setting_avoidFilter'], sprintf(__('Avoid content filter (disable if \'%s\' is shown)', 'slideshow-plugin'), SlideshowPluginShortcode::$bookmark), array('true' => $yes, 'false' => $no), 'group' => __('Miscellaneous', 'slideshow-plugin'))
406
  );
407
  }
408
 
classes/SlideshowPluginShortcode.php CHANGED
@@ -3,13 +3,13 @@
3
  * Class SlideshowPluginShortcode is called on use of shortcode anywhere on the website.
4
  *
5
  * @author: Stefan Boonstra
6
- * @version: 21-09-12
7
  */
8
  class SlideshowPluginShortcode {
9
 
10
  /** Variables */
11
  static $shortCode = 'slideshow_deploy';
12
- private static $bookmark = '!slideshow_deploy!';
13
  private static $postIds = array();
14
 
15
  /**
@@ -25,15 +25,25 @@ class SlideshowPluginShortcode {
25
  if(isset($atts['id']))
26
  $postId = $atts['id'];
27
 
28
- // Filter content after all Wordpress HTML parsers are done, then replace bookmarks with raw HTML
29
- add_filter('the_content', array(__CLASS__, 'insertSlideshow'), 999);
30
- add_filter('the_excerpt', array(__CLASS__, 'insertSlideshow'), 999);
 
 
 
31
 
32
- // Save post id
33
- self::$postIds[] = $postId;
34
 
35
- // Return bookmark
36
- return self::$bookmark;
 
 
 
 
 
 
 
37
  }
38
 
39
  /**
3
  * Class SlideshowPluginShortcode is called on use of shortcode anywhere on the website.
4
  *
5
  * @author: Stefan Boonstra
6
+ * @version: 25-09-12
7
  */
8
  class SlideshowPluginShortcode {
9
 
10
  /** Variables */
11
  static $shortCode = 'slideshow_deploy';
12
+ public static $bookmark = '!slideshow_deploy!';
13
  private static $postIds = array();
14
 
15
  /**
25
  if(isset($atts['id']))
26
  $postId = $atts['id'];
27
 
28
+ $output = '';
29
+ $settings = SlideshowPluginPostType::getSimpleSettings($postId, null, false);
30
+ if($settings['setting_avoidFilter'] == 'true'){
31
+ // Filter content after all Wordpress HTML parsers are done, then replace bookmarks with raw HTML
32
+ add_filter('the_content', array(__CLASS__, 'insertSlideshow'), 999);
33
+ add_filter('the_excerpt', array(__CLASS__, 'insertSlideshow'), 999);
34
 
35
+ // Save post id
36
+ self::$postIds[] = $postId;
37
 
38
+ // Set output
39
+ $output = self::$bookmark;
40
+ }else{
41
+ // Just output the slideshow, without filtering
42
+ $output = SlideshowPlugin::prepare($postId);
43
+ }
44
+
45
+ // Return output
46
+ return $output;
47
  }
48
 
49
  /**
readme.txt CHANGED
@@ -1,10 +1,11 @@
1
  === Slideshow ===
2
 
3
  Contributors: stefanboonstra
 
4
  Tags: slideshow, slider, slide, slides, show, images, image, photo, gallery, galleries, jquery, javascript, video, text
5
  Requires at least: 3.3
6
  Tested up to: 3.4.2
7
- Stable tag: 2.1.7
8
  License: GPLv2
9
 
10
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
@@ -37,6 +38,10 @@ different images, settings and styles for each one of them.
37
  - English
38
  - Dutch
39
 
 
 
 
 
40
 
41
  == Installation ==
42
 
@@ -101,6 +106,9 @@ slideshow may not be styled.
101
  * Multiple slideshows can now be shown with each its separate styling.
102
  * Users can now search insertable images by post id.
103
 
 
 
 
104
  = 2.1.7 =
105
  * Fixed: Slideshow in some cases unable to show next slide in fade animation.
106
 
@@ -206,4 +214,5 @@ slideshow may not be styled.
206
 
207
  == Links ==
208
 
209
- * [Stefan Boonstra](http://stefanboonstra.com/)
 
1
  === Slideshow ===
2
 
3
  Contributors: stefanboonstra
4
+ 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.8
9
  License: GPLv2
10
 
11
  Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
38
  - English
39
  - Dutch
40
 
41
+ = Project board =
42
+
43
+ [Slideshow project board - Trello.com](https://trello.com/board/slideshow-plugin-wordpress/506311260cc04591010463c2)
44
+
45
 
46
  == Installation ==
47
 
106
  * Multiple slideshows can now be shown with each its separate styling.
107
  * Users can now search insertable images by post id.
108
 
109
+ = 2.1.8 =
110
+ * Option added to be able to control whether to use a filter, or to directly output on shortcode.
111
+
112
  = 2.1.7 =
113
  * Fixed: Slideshow in some cases unable to show next slide in fade animation.
114
 
214
 
215
  == Links ==
216
 
217
+ * [Stefan Boonstra](http://stefanboonstra.com/)
218
+ * [Slideshow project board](https://trello.com/board/slideshow-plugin-wordpress/506311260cc04591010463c2)
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.7
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 24-09-12
20
  */
21
  class SlideshowPluginMain {
22
 
23
  /** Variables */
24
- static $version = '2.1.7';
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.8
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 25-09-12
20
  */
21
  class SlideshowPluginMain {
22
 
23
  /** Variables */
24
+ static $version = '2.1.8';
25
 
26
  /**
27
  * Bootstraps the application by assigning the right functions to