Slideshow Gallery - Version 1.4.4.2

Version Description

  • IMPROVE: Replaced eregi() with preg_match()
  • IMPROVE: Replaced ereg_replace() with preg_replace()
  • FIX: Multiple rows of thumbnails issue
  • FIX: Info bar delay on hide
  • FIX: console.log() call left behind
  • FIX: Current image not showing when saving slide and it doesn't save
Download this release

Release Info

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

Code changes from version 1.4.4.1 to 1.4.4.2

helpers/html.php CHANGED
@@ -279,7 +279,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
279
 
280
  function sanitize($string = '', $sep = '-') {
281
  if (!empty($string)) {
282
- $string = ereg_replace("[^0-9a-z" . $sep . "]", "", strtolower(str_replace(" ", $sep, $string)));
283
  $string = preg_replace("/" . $sep . "[" . $sep . "]*/i", $sep, $string);
284
 
285
  return $string;
279
 
280
  function sanitize($string = '', $sep = '-') {
281
  if (!empty($string)) {
282
+ $string = preg_replace("/[^0-9a-z" . $sep . "]/si", "", strtolower(str_replace(" ", $sep, $string)));
283
  $string = preg_replace("/" . $sep . "[" . $sep . "]*/i", $sep, $string);
284
 
285
  return $string;
js/gallery.js CHANGED
@@ -85,7 +85,10 @@ TINY.slideshow.prototype={
85
  is:function(s,c){
86
  if(this.info && (this.a[s].t.length > 0 || this.a[s].d.length > 0)) {
87
  TINY.height.set(this.r,1,this.infoSpeed/2,-1)
 
 
88
  }
 
89
  var i=new Image();
90
  i.style.opacity=0;
91
  i.style.filter='alpha(opacity=0)';
@@ -137,9 +140,7 @@ TINY.slideshow.prototype={
137
  }
138
  },
139
  nf:function(s){
140
- if(this.info){
141
- console.log(this.a[s]);
142
-
143
  s=this.a[s];
144
  tag('h3',this.r)[0].innerHTML=s.t;
145
  tag('p',this.r)[0].innerHTML=s.d;
85
  is:function(s,c){
86
  if(this.info && (this.a[s].t.length > 0 || this.a[s].d.length > 0)) {
87
  TINY.height.set(this.r,1,this.infoSpeed/2,-1)
88
+ } else {
89
+ TINY.height.set(this.r,0,this.infoSpeed/2,-1);
90
  }
91
+
92
  var i=new Image();
93
  i.style.opacity=0;
94
  i.style.filter='alpha(opacity=0)';
140
  }
141
  },
142
  nf:function(s){
143
+ if(this.info){
 
 
144
  s=this.a[s];
145
  tag('h3',this.r)[0].innerHTML=s.t;
146
  tag('p',this.r)[0].innerHTML=s.d;
models/slide.php CHANGED
@@ -110,7 +110,7 @@ class GallerySlide extends GalleryDbHelper {
110
  } else {
111
  $this -> data -> image_path = rtrim($imagespath, DS) . DS . $imagename;
112
  }
113
- } else {
114
  if ($_FILES['image_file']['error'] <= 0) {
115
  $imagename = $_FILES['image_file']['name'];
116
  $imagepath = GalleryHtmlHelper::uploads_path() . DS . 'slideshow-gallery' . DS;
110
  } else {
111
  $this -> data -> image_path = rtrim($imagespath, DS) . DS . $imagename;
112
  }
113
+ } else {
114
  if ($_FILES['image_file']['error'] <= 0) {
115
  $imagename = $_FILES['image_file']['name'];
116
  $imagepath = GalleryHtmlHelper::uploads_path() . DS . 'slideshow-gallery' . DS;
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.9.1
7
- Stable tag: 1.4.4.1
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
@@ -122,6 +122,14 @@ There is an "Images Tester" utility under Slideshow > Configuration on the right
122
 
123
  == Changelog ==
124
 
 
 
 
 
 
 
 
 
125
  = 1.4.4.1 =
126
  * IMPROVE: Change admin-functions.php to includes/admin.php
127
  * FIX: Cannot order slides of a gallery "No slides available"
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.9.1
7
+ Stable tag: 1.4.4.2
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
122
 
123
  == Changelog ==
124
 
125
+ = 1.4.4.2 =
126
+ * IMPROVE: Replaced eregi() with preg_match()
127
+ * IMPROVE: Replaced ereg_replace() with preg_replace()
128
+ * FIX: Multiple rows of thumbnails issue
129
+ * FIX: Info bar delay on hide
130
+ * FIX: console.log() call left behind
131
+ * FIX: Current image not showing when saving slide and it doesn't save
132
+
133
  = 1.4.4.1 =
134
  * IMPROVE: Change admin-functions.php to includes/admin.php
135
  * FIX: Cannot order slides of a gallery "No slides available"
slideshow-gallery-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class GalleryPlugin {
4
 
5
- var $version = '1.4.4.1';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
2
 
3
  class GalleryPlugin {
4
 
5
+ var $version = '1.4.4.2';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
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>[tribulant_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.4.4.1
10
  License: GNU General Public License v2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
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>[tribulant_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.4.4.2
10
  License: GNU General Public License v2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
vendors/class.paginate.php CHANGED
@@ -93,7 +93,7 @@ class GalleryPaginate extends GalleryPlugin {
93
  $k = 1;
94
 
95
  foreach ($val as $vkey => $vval) {
96
- if (eregi("LIKE", $val)) {
97
  $query .= " `" . $key . "` " . $vval . "";
98
  $countquery .= " `" . $key . "` " . $vval . "";
99
  } elseif (preg_match("/SE (.*)/si", $vval, $vmatches)) {
93
  $k = 1;
94
 
95
  foreach ($val as $vkey => $vval) {
96
+ if (preg_match("/LIKE/si", $val)) {
97
  $query .= " `" . $key . "` " . $vval . "";
98
  $countquery .= " `" . $key . "` " . $vval . "";
99
  } elseif (preg_match("/SE (.*)/si", $vval, $vmatches)) {
views/admin/slides/save.php CHANGED
@@ -37,7 +37,7 @@ $showinfo = $this -> Slide -> data -> showinfo;
37
  <th><label for="showinfo_both"><?php _e('Show Information?', $this -> plugin_name); ?></label>
38
  <?php echo $this -> Html -> help(__('You can choose to show both title and description, only title, only description or not show the information bar at all. Please note that this setting is only effective when the information bar is turned on in configuration or via a parameter in shortcode or hardcode.', $this -> plugin_name)); ?></th>
39
  <td>
40
- <label><input onclick="jQuery('#showinfo_div').show();" <?php echo (!empty($showinfo) && $showinfo == "both") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[showinfo]" value="both" id="showinfo_both" /> <?php _e('Both title and description', $this -> plugin_name); ?></label><br/>
41
  <label><input onclick="jQuery('#showinfo_div').show();" <?php echo (!empty($showinfo) && $showinfo == "title") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[showinfo]" value="title" id="showinfo_title" /> <?php _e('Title only', $this -> plugin_name); ?></label><br/>
42
  <label><input onclick="jQuery('#showinfo_div').show();" <?php echo (!empty($showinfo) && $showinfo == "description") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[showinfo]" value="description" id="showinfo_description" /> <?php _e('Description only', $this -> plugin_name); ?></label><br/>
43
  <label><input onclick="jQuery('#showinfo_div').hide();" <?php echo (!empty($showinfo) && $showinfo == "none") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[showinfo]" value="none" id="showinfo_none" /> <?php _e('None, do not show', $this -> plugin_name); ?></label>
@@ -54,7 +54,7 @@ $showinfo = $this -> Slide -> data -> showinfo;
54
  <th><label for="iopacity"><?php _e('Info Opacity', $this -> plugin_name); ?></label>
55
  <?php echo $this -> Html -> help(__('The opacity of the information bar from 0 to 100 where 0 is transparent and 100 is opague.', $this -> plugin_name)); ?></th>
56
  <td>
57
- <input type="text" id="iopacity" class="widefat" style="width:45px;" name="Slide[iopacity]" value="<?php echo esc_attr(stripslashes($this -> Slide -> data -> iopacity)); ?>" />
58
  <span class="howto"><?php _e('A value between 0 and 100. Leave empty for default.', $this -> plugin_name); ?></span>
59
  </td>
60
  </tr>
@@ -111,7 +111,17 @@ $showinfo = $this -> Slide -> data -> showinfo;
111
 
112
  <input type="hidden" name="Slide[image_oldfile]" value="<?php echo esc_attr(stripslashes($this -> Slide -> data -> image)); ?>" />
113
  <p><small><?php _e('Current image. Leave the field above blank to keep this image.', $this -> plugin_name); ?></small></p>
114
- <p><a title="<?php echo esc_attr($this -> Slide -> data -> title); ?>" class="colorbox" href="<?php echo $this -> Html -> image_url($this -> Slide -> data -> image); ?>"><img src="<?php echo $this -> Html -> bfithumb_image_src($this -> Slide -> data -> image_path, 100, 100, 100); ?>" alt="" class="slideshow" /></a></p>
 
 
 
 
 
 
 
 
 
 
115
 
116
  <?php
117
  }
37
  <th><label for="showinfo_both"><?php _e('Show Information?', $this -> plugin_name); ?></label>
38
  <?php echo $this -> Html -> help(__('You can choose to show both title and description, only title, only description or not show the information bar at all. Please note that this setting is only effective when the information bar is turned on in configuration or via a parameter in shortcode or hardcode.', $this -> plugin_name)); ?></th>
39
  <td>
40
+ <label><input onclick="jQuery('#showinfo_div').show();" <?php echo ((empty($showinfo)) || (!empty($showinfo) && $showinfo == "both")) ? 'checked="checked"' : ''; ?> type="radio" name="Slide[showinfo]" value="both" id="showinfo_both" /> <?php _e('Both title and description', $this -> plugin_name); ?></label><br/>
41
  <label><input onclick="jQuery('#showinfo_div').show();" <?php echo (!empty($showinfo) && $showinfo == "title") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[showinfo]" value="title" id="showinfo_title" /> <?php _e('Title only', $this -> plugin_name); ?></label><br/>
42
  <label><input onclick="jQuery('#showinfo_div').show();" <?php echo (!empty($showinfo) && $showinfo == "description") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[showinfo]" value="description" id="showinfo_description" /> <?php _e('Description only', $this -> plugin_name); ?></label><br/>
43
  <label><input onclick="jQuery('#showinfo_div').hide();" <?php echo (!empty($showinfo) && $showinfo == "none") ? 'checked="checked"' : ''; ?> type="radio" name="Slide[showinfo]" value="none" id="showinfo_none" /> <?php _e('None, do not show', $this -> plugin_name); ?></label>
54
  <th><label for="iopacity"><?php _e('Info Opacity', $this -> plugin_name); ?></label>
55
  <?php echo $this -> Html -> help(__('The opacity of the information bar from 0 to 100 where 0 is transparent and 100 is opague.', $this -> plugin_name)); ?></th>
56
  <td>
57
+ <input type="text" id="iopacity" class="widefat" style="width:45px;" name="Slide[iopacity]" value="<?php echo empty($this -> Slide -> data -> iopacity) ? 70 : esc_attr(stripslashes($this -> Slide -> data -> iopacity)); ?>" />
58
  <span class="howto"><?php _e('A value between 0 and 100. Leave empty for default.', $this -> plugin_name); ?></span>
59
  </td>
60
  </tr>
111
 
112
  <input type="hidden" name="Slide[image_oldfile]" value="<?php echo esc_attr(stripslashes($this -> Slide -> data -> image)); ?>" />
113
  <p><small><?php _e('Current image. Leave the field above blank to keep this image.', $this -> plugin_name); ?></small></p>
114
+ <?php
115
+
116
+ $imagespath = $this -> get_option('imagespath');
117
+ if (empty($imagespath)) {
118
+ $image = GalleryHtmlHelper::uploads_path() . DS . 'slideshow-gallery' . DS . $this -> Slide -> data -> image;
119
+ } else {
120
+ $image = rtrim($imagespath, DS) . DS . $this -> Slide -> data -> image;
121
+ }
122
+
123
+ ?>
124
+ <p><a title="<?php echo esc_attr($this -> Slide -> data -> title); ?>" class="colorbox" href="<?php echo $this -> Html -> image_url($this -> Slide -> data -> image); ?>"><img src="<?php echo $this -> Html -> bfithumb_image_src($image, 100, 100, 100); ?>" alt="" class="slideshow" /></a></p>
125
 
126
  <?php
127
  }
views/default/gallery.php CHANGED
@@ -184,7 +184,7 @@ $thumbopacity = $this -> get_option('thumbopacity');
184
  $cssattr['height'] = $options['height'];
185
  $cssattr['thumbwidth'] = $this -> get_option('thumbwidth');
186
  $cssattr['thumbheight'] = $this -> get_option('thumbheight');
187
- $cssattr['sliderwidth'] = ((($cssattr['thumbwidth'] + ($options['thumbsspacing'] * 2) + 5) * count($slides)));
188
  $cssattr['infohideonmobile'] = $this -> get_option('infohideonmobile');
189
 
190
  ?>
184
  $cssattr['height'] = $options['height'];
185
  $cssattr['thumbwidth'] = $this -> get_option('thumbwidth');
186
  $cssattr['thumbheight'] = $this -> get_option('thumbheight');
187
+ $cssattr['sliderwidth'] = ((($cssattr['thumbwidth'] + ($options['thumbsspacing'] * 2) + 5) * count($slides)) + 50);
188
  $cssattr['infohideonmobile'] = $this -> get_option('infohideonmobile');
189
 
190
  ?>