Version Description
- FIX: Link not showing with auto height on
- FIX: Dots (.) in image filenames break images/slides
- FIX: Multiple loading/spinning images
Download this release
Release Info
Developer | contrid |
Plugin | Slideshow Gallery |
Version | 1.5.3 |
Comparing to | |
See all releases |
Code changes from version 1.5.2 to 1.5.3
- helpers/html.php +11 -3
- includes/checkinit.php +78 -0
- readme.txt +6 -1
- slideshow-gallery-plugin.php +6 -4
- slideshow-gallery.php +2 -1
- views/admin/slides/order.php +3 -0
- views/default/css.php +1 -1
- views/default/gallery.php +2 -6
helpers/html.php
CHANGED
@@ -290,7 +290,15 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
290 |
|
291 |
function strip_ext($filename = null, $return = 'ext') {
|
292 |
if (!empty($filename)) {
|
293 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
|
295 |
if ($return == 'ext') {
|
296 |
$p = count($extArray) - 1;
|
@@ -300,7 +308,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
300 |
$p = count($extArray) - 2;
|
301 |
$filename = $extArray[$p];
|
302 |
return $filename;
|
303 |
-
}
|
304 |
}
|
305 |
|
306 |
return false;
|
@@ -328,7 +336,7 @@ class GalleryHtmlHelper extends GalleryPlugin {
|
|
328 |
return (object) $array;
|
329 |
}
|
330 |
|
331 |
-
function sanitize($string =
|
332 |
if (!empty($string)) {
|
333 |
$string = preg_replace("/[^0-9a-z" . $sep . "]/si", "", strtolower(str_replace(" ", $sep, $string)));
|
334 |
$string = preg_replace("/" . $sep . "[" . $sep . "]*/i", $sep, $string);
|
290 |
|
291 |
function strip_ext($filename = null, $return = 'ext') {
|
292 |
if (!empty($filename)) {
|
293 |
+
$pathinfo = pathinfo($filename);
|
294 |
+
|
295 |
+
if ($return == "ext") {
|
296 |
+
return strtolower($pathinfo['extension']);
|
297 |
+
} else {
|
298 |
+
return $pathinfo['filename'];
|
299 |
+
}
|
300 |
+
|
301 |
+
/*$extArray = preg_split("/[\.]/", $filename);
|
302 |
|
303 |
if ($return == 'ext') {
|
304 |
$p = count($extArray) - 1;
|
308 |
$p = count($extArray) - 2;
|
309 |
$filename = $extArray[$p];
|
310 |
return $filename;
|
311 |
+
}*/
|
312 |
}
|
313 |
|
314 |
return false;
|
336 |
return (object) $array;
|
337 |
}
|
338 |
|
339 |
+
function sanitize($string = null, $sep = '-') {
|
340 |
if (!empty($string)) {
|
341 |
$string = preg_replace("/[^0-9a-z" . $sep . "]/si", "", strtolower(str_replace(" ", $sep, $string)));
|
342 |
$string = preg_replace("/" . $sep . "[" . $sep . "]*/i", $sep, $string);
|
includes/checkinit.php
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if (!class_exists('GalleryCheckinit')) {
|
4 |
+
class GalleryCheckinit {
|
5 |
+
|
6 |
+
function GalleryCheckinit() {
|
7 |
+
return true;
|
8 |
+
}
|
9 |
+
|
10 |
+
function ci_initialize() {
|
11 |
+
return true;
|
12 |
+
|
13 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
14 |
+
|
15 |
+
if (!is_plugin_active(plugin_basename($this -> plugin_file))) {
|
16 |
+
return;
|
17 |
+
}
|
18 |
+
|
19 |
+
add_action('wp_ajax_wpmlserialkey', array($this, 'ajax_serialkey'));
|
20 |
+
|
21 |
+
if (true || !is_admin() || (is_admin() && $this -> ci_serial_valid())) {
|
22 |
+
$this -> ci_initialization();
|
23 |
+
} else {
|
24 |
+
$this -> add_action('admin_print_styles', 'ci_print_styles', 10, 1);
|
25 |
+
$this -> add_action('admin_print_scripts', 'ci_print_scripts', 10, 1);
|
26 |
+
$this -> add_action('admin_notices');
|
27 |
+
$this -> add_action('init', 'init', 10, 1);
|
28 |
+
$this -> add_action('admin_menu', 'admin_menu');
|
29 |
+
}
|
30 |
+
|
31 |
+
return false;
|
32 |
+
}
|
33 |
+
|
34 |
+
function ci_initialization() {
|
35 |
+
|
36 |
+
return true;
|
37 |
+
}
|
38 |
+
|
39 |
+
function ci_get_serial() {
|
40 |
+
if ($serial = $this -> get_option('serialkey')) {
|
41 |
+
return $serial;
|
42 |
+
}
|
43 |
+
|
44 |
+
return false;
|
45 |
+
}
|
46 |
+
|
47 |
+
function ci_serial_valid() {
|
48 |
+
$host = $_SERVER['HTTP_HOST'];
|
49 |
+
$result = false;
|
50 |
+
|
51 |
+
if (preg_match("/^(www\.)(.*)/si", $host, $matches)) {
|
52 |
+
$wwwhost = $host;
|
53 |
+
$nonwwwhost = preg_replace("/^(www\.)?/si", "", $wwwhost);
|
54 |
+
} else {
|
55 |
+
$nonwwwhost = $host;
|
56 |
+
$wwwhost = "www." . $host;
|
57 |
+
}
|
58 |
+
|
59 |
+
if ($_SERVER['HTTP_HOST'] == "localhost" || $_SERVER['HTTP_HOST'] == "localhost:" . $_SERVER['SERVER_PORT']) {
|
60 |
+
$result = true;
|
61 |
+
} else {
|
62 |
+
if ($serial = $this -> ci_get_serial()) {
|
63 |
+
if ($serial == strtoupper(md5($_SERVER['HTTP_HOST'] . "wpml" . "mymasesoetkoekiesisfokkenlekker"))) {
|
64 |
+
$result = true;
|
65 |
+
} elseif (strtoupper(md5($wwwhost . "gallery" . "mymasesoetkoekiesisfokkenlekker")) == $serial ||
|
66 |
+
strtoupper(md5($nonwwwhost . "gallery" . "mymasesoetkoekiesisfokkenlekker")) == $serial) {
|
67 |
+
$result = true;
|
68 |
+
}
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
$result = apply_filters($this -> pre . '_serialkey_validation', $result);
|
73 |
+
return $result;
|
74 |
+
}
|
75 |
+
}
|
76 |
+
}
|
77 |
+
|
78 |
+
?>
|
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: 4.1
|
7 |
-
Stable tag: 1.5.
|
8 |
|
9 |
Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
|
10 |
|
@@ -175,6 +175,11 @@ There is an "Images Tester" utility under Slideshow > Configuration on the right
|
|
175 |
|
176 |
== Changelog ==
|
177 |
|
|
|
|
|
|
|
|
|
|
|
178 |
= 1.5.2 =
|
179 |
* ADD: Navigate between images in overlay
|
180 |
* IMPROVE: Ability to hide wp_head/wp_footer notifications in admin
|
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: 4.1
|
7 |
+
Stable tag: 1.5.3
|
8 |
|
9 |
Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
|
10 |
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= 1.5.3 =
|
179 |
+
* FIX: Link not showing with auto height on
|
180 |
+
* FIX: Dots (.) in image filenames break images/slides
|
181 |
+
* FIX: Multiple loading/spinning images
|
182 |
+
|
183 |
= 1.5.2 =
|
184 |
* ADD: Navigate between images in overlay
|
185 |
* IMPROVE: Ability to hide wp_head/wp_footer notifications in admin
|
slideshow-gallery-plugin.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class GalleryPlugin {
|
4 |
|
5 |
-
var $version = '1.5.
|
6 |
var $plugin_name;
|
7 |
var $plugin_base;
|
8 |
var $pre = 'Gallery';
|
@@ -45,6 +45,8 @@ class GalleryPlugin {
|
|
45 |
@ini_set('display_errors', 0);
|
46 |
}
|
47 |
|
|
|
|
|
48 |
return true;
|
49 |
}
|
50 |
|
@@ -150,13 +152,13 @@ class GalleryPlugin {
|
|
150 |
$version = "1.4.8";
|
151 |
}
|
152 |
|
153 |
-
if (version_compare($cur_version, "1.5.
|
154 |
$this -> initialize_options();
|
155 |
|
156 |
$query = "ALTER TABLE `" . $this -> Slide -> table . "` CHANGE `type` `type` ENUM('media','file','url') NOT NULL DEFAULT 'media'";
|
157 |
$wpdb -> query($query);
|
158 |
|
159 |
-
$version = "1.5.
|
160 |
}
|
161 |
|
162 |
//the current version is older.
|
1 |
<?php
|
2 |
|
3 |
+
class GalleryPlugin extends GalleryCheckinit {
|
4 |
|
5 |
+
var $version = '1.5.3';
|
6 |
var $plugin_name;
|
7 |
var $plugin_base;
|
8 |
var $pre = 'Gallery';
|
45 |
@ini_set('display_errors', 0);
|
46 |
}
|
47 |
|
48 |
+
$this -> ci_initialize();
|
49 |
+
|
50 |
return true;
|
51 |
}
|
52 |
|
152 |
$version = "1.4.8";
|
153 |
}
|
154 |
|
155 |
+
if (version_compare($cur_version, "1.5.3") < 0) {
|
156 |
$this -> initialize_options();
|
157 |
|
158 |
$query = "ALTER TABLE `" . $this -> Slide -> table . "` CHANGE `type` `type` ENUM('media','file','url') NOT NULL DEFAULT 'media'";
|
159 |
$wpdb -> query($query);
|
160 |
|
161 |
+
$version = "1.5.3";
|
162 |
}
|
163 |
|
164 |
//the current version is older.
|
slideshow-gallery.php
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://tribulant.com/plugins/view/13/wordpress-slideshow-gallery
|
|
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><?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?></code>.
|
9 |
-
Version: 1.5.
|
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
|
@@ -18,6 +18,7 @@ if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); }
|
|
18 |
|
19 |
$path = dirname(__FILE__) . DS . 'slideshow-gallery-plugin.php';
|
20 |
if (file_exists($path)) {
|
|
|
21 |
require_once($path);
|
22 |
}
|
23 |
|
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><?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?></code>.
|
9 |
+
Version: 1.5.3
|
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
|
18 |
|
19 |
$path = dirname(__FILE__) . DS . 'slideshow-gallery-plugin.php';
|
20 |
if (file_exists($path)) {
|
21 |
+
require_once(dirname(__FILE__) . DS . 'includes' . DS . 'checkinit.php');
|
22 |
require_once($path);
|
23 |
}
|
24 |
|
views/admin/slides/order.php
CHANGED
@@ -5,6 +5,9 @@
|
|
5 |
<a href="<?php echo $this -> url; ?>"><?php _e('← Manage All Slides', $this -> plugin_name); ?></a>
|
6 |
</div>
|
7 |
|
|
|
|
|
|
|
8 |
<?php if (!empty($slides)) : ?>
|
9 |
<div id="slidemessage" class="updated fade" style="display:none; width:31%;"><!-- message will go here --></div>
|
10 |
<div class="gallery_slides_list">
|
5 |
<a href="<?php echo $this -> url; ?>"><?php _e('← Manage All Slides', $this -> plugin_name); ?></a>
|
6 |
</div>
|
7 |
|
8 |
+
<p class="howto"><?php echo sprintf(__('This page lets you order all slides shown with %s.', $this -> plugin_name), '<code>[tribulant_slideshow]</code>'); ?><br/>
|
9 |
+
<?php echo __('To order slides per gallery, go to Slideshow > Manage Galleries and order for that specific gallery.', $this -> plugin_name); ?></p>
|
10 |
+
|
11 |
<?php if (!empty($slides)) : ?>
|
12 |
<div id="slidemessage" class="updated fade" style="display:none; width:31%;"><!-- message will go here --></div>
|
13 |
<div class="gallery_slides_list">
|
views/default/css.php
CHANGED
@@ -25,7 +25,7 @@ $unique = $styles['unique'];
|
|
25 |
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
26 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?> { -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; left:0; background:url('images/left.gif') left center no-repeat; text-indent:-9999px; }
|
27 |
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?> { -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; right:0; background:url('images/right.gif') right center no-repeat; text-indent:-9999px; }
|
28 |
-
#<?php echo $styles['wrapperid']; ?> #imglink<?php echo $unique; ?> { position:absolute; zoom:1; background-color:#ffffff; height
|
29 |
#<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent url('images/link.gif') center center no-repeat !important; text-indent:-9999px; opacity:.4 !important; filter:alpha(opacity=40) !important; }
|
30 |
#<?php echo $styles['wrapperid']; ?> #thumbnails<?php echo $unique; ?> { background:<?php echo $styles['background']; ?>; }
|
31 |
#<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
|
25 |
#<?php echo $styles['wrapperid']; ?> .imgnav { position:absolute; width:25%; height:100%; cursor:pointer; z-index:250; }
|
26 |
#<?php echo $styles['wrapperid']; ?> #imgprev<?php echo $unique; ?> { -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; left:0; background:url('images/left.gif') left center no-repeat; text-indent:-9999px; }
|
27 |
#<?php echo $styles['wrapperid']; ?> #imgnext<?php echo $unique; ?> { -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; right:0; background:url('images/right.gif') right center no-repeat; text-indent:-9999px; }
|
28 |
+
#<?php echo $styles['wrapperid']; ?> #imglink<?php echo $unique; ?> { position:absolute; zoom:1; background-color:#ffffff; height:100%; <?php if (!empty($styles['shownav']) && $styles['shownav'] == "true") : ?>width:50%; left:25%; right:20%;<?php else : ?>width:100%; left:0;<?php endif; ?> z-index:149; opacity:0; filter:alpha(opacity=0); }
|
29 |
#<?php echo $styles['wrapperid']; ?> .linkhover { background:transparent url('images/link.gif') center center no-repeat !important; text-indent:-9999px; opacity:.4 !important; filter:alpha(opacity=40) !important; }
|
30 |
#<?php echo $styles['wrapperid']; ?> #thumbnails<?php echo $unique; ?> { background:<?php echo $styles['background']; ?>; }
|
31 |
#<?php echo $styles['wrapperid']; ?> .thumbstop { margin-bottom:8px !important; }
|
views/default/gallery.php
CHANGED
@@ -258,15 +258,11 @@ $thumbopacity = $this -> get_option('thumbopacity');
|
|
258 |
$jsoutput = $this -> get_option('jsoutput');
|
259 |
if (empty($jsoutput) || $jsoutput == "perslideshow") {
|
260 |
echo '<!-- Slideshow Gallery Javascript BEG -->';
|
261 |
-
|
262 |
-
echo stripslashes($javascript);
|
263 |
-
}
|
264 |
echo '<!-- Slideshow Gallery Javascript END -->';
|
265 |
|
266 |
echo '<!-- Slideshow Gallery CSS BEG -->';
|
267 |
-
|
268 |
-
echo stripslashes($css);
|
269 |
-
}
|
270 |
echo '<!-- Slideshow Gallery CSS END -->';
|
271 |
}
|
272 |
|
258 |
$jsoutput = $this -> get_option('jsoutput');
|
259 |
if (empty($jsoutput) || $jsoutput == "perslideshow") {
|
260 |
echo '<!-- Slideshow Gallery Javascript BEG -->';
|
261 |
+
echo stripslashes($javascript);
|
|
|
|
|
262 |
echo '<!-- Slideshow Gallery Javascript END -->';
|
263 |
|
264 |
echo '<!-- Slideshow Gallery CSS BEG -->';
|
265 |
+
echo stripslashes($css);
|
|
|
|
|
266 |
echo '<!-- Slideshow Gallery CSS END -->';
|
267 |
}
|
268 |
|