Slideshow Gallery - Version 1.2.3.2

Version Description

  • ADD: List/grid switching for ordering of slides
  • ADD: Permission/role settings for sections
  • ADD: 'imagesoverlay' parameter to turn On/Off the Colorbox overlay per slideshow
  • ADD: "Resize Images" setting TimThumb test case for debugging
  • ADD: Order slides per gallery
  • ADD: Order slides randomly
  • IMPROVE: Change WP_PLUGIN_DIR to plugins_url() for styles/scripts
  • IMPROVE: Change mysql_list_fields() to a compatible function
  • IMPROVE: Remove previous image to prevent overlapping
  • IMPROVE: Max width/height for Colorbox overlay for images
  • FIX: Null ID value on insert of slide
  • FIX: Validation errors
  • FIX: Slide current/new window problem
Download this release

Release Info

Developer contrid
Plugin Icon 128x128 Slideshow Gallery
Version 1.2.3.2
Comparing to
See all releases

Code changes from version 1.2.3 to 1.2.3.2

helpers/db.php CHANGED
@@ -291,19 +291,17 @@ class GalleryDbHelper extends GalleryPlugin {
291
  unset($this -> fields['created']);
292
 
293
  foreach (array_keys($this -> fields) as $field) {
294
- //if (!empty($this -> data -> {$field}) || $this -> data -> {$field} == "0") {
295
- if (is_array($this -> data -> {$field}) || is_object($this -> data -> {$field})) {
296
- $value = serialize($this -> data -> {$field});
297
- } else {
298
- $value = mysql_escape_string($this -> data -> {$field});
299
- }
 
300
 
301
- $query .= "`" . $field . "` = '" . $value . "'";
302
-
303
- if ($c < count($this -> fields)) {
304
- $query .= ", ";
305
- }
306
- //}
307
 
308
  $c++;
309
  }
291
  unset($this -> fields['created']);
292
 
293
  foreach (array_keys($this -> fields) as $field) {
294
+ if (is_array($this -> data -> {$field}) || is_object($this -> data -> {$field})) {
295
+ $value = serialize($this -> data -> {$field});
296
+ } else {
297
+ $value = mysql_escape_string($this -> data -> {$field});
298
+ }
299
+
300
+ $query .= "`" . $field . "` = '" . $value . "'";
301
 
302
+ if ($c < count($this -> fields)) {
303
+ $query .= ", ";
304
+ }
 
 
 
305
 
306
  $c++;
307
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://tribulant.com/
4
  Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
5
  Requires at least: 3.1
6
  Tested up to: 3.4.2
7
- Stable tag: 1.2.3
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
@@ -97,7 +97,7 @@ Yes, you can use the `exclude` parameter to exclude post images by their order i
97
 
98
  == Changelog ==
99
 
100
- = 1.2.3 =
101
  * ADD: List/grid switching for ordering of slides
102
  * ADD: Permission/role settings for sections
103
  * ADD: 'imagesoverlay' parameter to turn On/Off the Colorbox overlay per slideshow
4
  Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
5
  Requires at least: 3.1
6
  Tested up to: 3.4.2
7
+ Stable tag: 1.2.3.2
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 1.2.3.2 =
101
  * ADD: List/grid switching for ordering of slides
102
  * ADD: Permission/role settings for sections
103
  * ADD: 'imagesoverlay' parameter to turn On/Off the Colorbox overlay per slideshow
slideshow-gallery-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class GalleryPlugin {
4
 
5
- var $version = '1.2.2.1';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
@@ -484,6 +484,8 @@ class GalleryPlugin {
484
  foreach ($fields as $field) {
485
  $field_array[] = $field -> Field;
486
  }
 
 
487
  }
488
  }
489
 
2
 
3
  class GalleryPlugin {
4
 
5
+ var $version = '1.2.3.2';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
484
  foreach ($fields as $field) {
485
  $field_array[] = $field -> Field;
486
  }
487
+
488
+ return $field_array;
489
  }
490
  }
491
 
slideshow-gallery.php CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://wpgallery.tribulant.net
6
  Author: Tribulant Software
7
  Author URI: http://tribulant.com
8
  Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. To embed into a post/page, simply insert <code>[slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code>&lt;?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?&gt;</code>.
9
- Version: 1.2.3
10
  */
11
 
12
  define('DS', DIRECTORY_SEPARATOR);
@@ -20,6 +20,7 @@ if (!class_exists('Gallery')) {
20
  $this -> url = $url[0];
21
  $this -> referer = (empty($_SERVER['HTTP_REFERER'])) ? $this -> url : $_SERVER['HTTP_REFERER'];
22
  $this -> register_plugin('slideshow-gallery', __FILE__);
 
23
 
24
  //WordPress action hooks
25
  $this -> add_action('wp_head');
@@ -46,15 +47,7 @@ if (!class_exists('Gallery')) {
46
  }
47
 
48
  function wp_head() {
49
- ?>
50
-
51
- <script type="text/javascript">
52
- jQuery(document).ready(function() {
53
- jQuery('.colorbox').colorbox({maxWidth:'90%', maxHeight:'90%'});
54
- });
55
- </script>
56
-
57
- <?php
58
  }
59
 
60
  function admin_menu() {
6
  Author: Tribulant Software
7
  Author URI: http://tribulant.com
8
  Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. To embed into a post/page, simply insert <code>[slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code>&lt;?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?&gt;</code>.
9
+ Version: 1.2.3.2
10
  */
11
 
12
  define('DS', DIRECTORY_SEPARATOR);
20
  $this -> url = $url[0];
21
  $this -> referer = (empty($_SERVER['HTTP_REFERER'])) ? $this -> url : $_SERVER['HTTP_REFERER'];
22
  $this -> register_plugin('slideshow-gallery', __FILE__);
23
+ $this -> initialize_options();
24
 
25
  //WordPress action hooks
26
  $this -> add_action('wp_head');
47
  }
48
 
49
  function wp_head() {
50
+
 
 
 
 
 
 
 
 
51
  }
52
 
53
  function admin_menu() {
views/default/gallery.php CHANGED
@@ -26,7 +26,7 @@ $slides = stripslashes_deep($slides);
26
  <?php if (!empty($slide -> guid)) : ?>
27
  <a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr($slide -> post_title); ?>"><img src="<?php echo $this -> Html -> timthumb_image_src($full_image_href[0], $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> post_title); ?>" /></a>
28
  <?php else : ?>
29
- <img src="<?php echo $this -> Html -> timthumb_image_src($full_image_href[0], $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> post_title); ?>" />
30
  <?php endif; ?>
31
  <?php else : ?>
32
  <a href="<?php echo $slide -> guid; ?>" title="<?php echo $slide -> post_title; ?>"></a>
@@ -48,7 +48,7 @@ $slides = stripslashes_deep($slides);
48
  <?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
49
  <a href="<?php echo $slide -> link; ?>" title="<?php echo esc_attr($slide -> title); ?>" target="_<?php echo $slide -> linktarget; ?>"><img src="<?php echo $this -> Html -> timthumb_image_src($slide -> image_path, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> title); ?>" /></a>
50
  <?php else : ?>
51
- <img src="<?php echo $this -> Html -> timthumb_image_src($slide -> image_path, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> title); ?>" />
52
  <?php endif; ?>
53
  <?php else : ?>
54
  <?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
@@ -136,7 +136,6 @@ $slides = stripslashes_deep($slides);
136
  slideshow.spacing = <?php echo $options['thumbsspacing']; ?>;
137
  slideshow.active = "<?php echo $options['thumbsborder']; ?>";
138
  slideshow.imagesthickbox = "<?php echo $options['imagesoverlay']; ?>";
139
- console.log(slideshow.imagesthickbox);
140
  jQuery("#spinner").remove();
141
  slideshow.init("slideshow","image","<?php echo $navb; ?>","<?php echo $navf; ?>","imglink");
142
  tid('<?php echo $wrapperid; ?>').style.visibility = 'visible';
26
  <?php if (!empty($slide -> guid)) : ?>
27
  <a href="<?php echo $slide -> guid; ?>" target="_self" title="<?php echo esc_attr($slide -> post_title); ?>"><img src="<?php echo $this -> Html -> timthumb_image_src($full_image_href[0], $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> post_title); ?>" /></a>
28
  <?php else : ?>
29
+ <a><img src="<?php echo $this -> Html -> timthumb_image_src($full_image_href[0], $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> post_title); ?>" /></a>
30
  <?php endif; ?>
31
  <?php else : ?>
32
  <a href="<?php echo $slide -> guid; ?>" title="<?php echo $slide -> post_title; ?>"></a>
48
  <?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
49
  <a href="<?php echo $slide -> link; ?>" title="<?php echo esc_attr($slide -> title); ?>" target="_<?php echo $slide -> linktarget; ?>"><img src="<?php echo $this -> Html -> timthumb_image_src($slide -> image_path, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> title); ?>" /></a>
50
  <?php else : ?>
51
+ <a><img src="<?php echo $this -> Html -> timthumb_image_src($slide -> image_path, $this -> get_option('thumbwidth'), $this -> get_option('thumbheight'), 100); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> title); ?>" /></a>
52
  <?php endif; ?>
53
  <?php else : ?>
54
  <?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
136
  slideshow.spacing = <?php echo $options['thumbsspacing']; ?>;
137
  slideshow.active = "<?php echo $options['thumbsborder']; ?>";
138
  slideshow.imagesthickbox = "<?php echo $options['imagesoverlay']; ?>";
 
139
  jQuery("#spinner").remove();
140
  slideshow.init("slideshow","image","<?php echo $navb; ?>","<?php echo $navf; ?>","imglink");
141
  tid('<?php echo $wrapperid; ?>').style.visibility = 'visible';