Version Description
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.1.17 |
Comparing to | |
See all releases |
Code changes from version 1.1.16 to 1.1.17
- admin/controllers/BWGControllerAlbums_bwg.php +9 -9
- admin/controllers/BWGControllerTags_bwg.php +4 -4
- admin/controllers/BWGControllerThemes_bwg.php +5 -5
- framework/WDWLibrary.php +8 -1
- frontend/views/BWGViewAlbum_compact_preview.php +1 -0
- frontend/views/BWGViewAlbum_extended_preview.php +1 -0
- photo-gallery.php +2 -2
- readme.txt +5 -1
admin/controllers/BWGControllerAlbums_bwg.php
CHANGED
@@ -62,7 +62,7 @@ class BWGControllerAlbums_bwg {
|
|
62 |
public function save() {
|
63 |
$message = $this->save_db();
|
64 |
$page = WDWLibrary::get('page');
|
65 |
-
|
66 |
}
|
67 |
|
68 |
public function apply() {
|
@@ -71,7 +71,7 @@ class BWGControllerAlbums_bwg {
|
|
71 |
$id = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'bwg_album');
|
72 |
$current_id = WDWLibrary::get('current_id', $id);
|
73 |
$page = WDWLibrary::get('page');
|
74 |
-
|
75 |
}
|
76 |
|
77 |
// Return random image from gallery or album for album preview.
|
@@ -222,7 +222,7 @@ class BWGControllerAlbums_bwg {
|
|
222 |
$message = 2;
|
223 |
}
|
224 |
$page = WDWLibrary::get('page');
|
225 |
-
|
226 |
}
|
227 |
|
228 |
public function delete_all() {
|
@@ -245,7 +245,7 @@ class BWGControllerAlbums_bwg {
|
|
245 |
$message = 2;
|
246 |
}
|
247 |
$page = WDWLibrary::get('page');
|
248 |
-
|
249 |
}
|
250 |
|
251 |
public function publish($id) {
|
@@ -258,7 +258,7 @@ class BWGControllerAlbums_bwg {
|
|
258 |
$message = 2;
|
259 |
}
|
260 |
$page = WDWLibrary::get('page');
|
261 |
-
|
262 |
}
|
263 |
|
264 |
public function publish_all() {
|
@@ -284,7 +284,7 @@ class BWGControllerAlbums_bwg {
|
|
284 |
$message = 6;
|
285 |
}
|
286 |
$page = WDWLibrary::get('page');
|
287 |
-
|
288 |
}
|
289 |
|
290 |
public function unpublish($id) {
|
@@ -297,7 +297,7 @@ class BWGControllerAlbums_bwg {
|
|
297 |
$message = 2;
|
298 |
}
|
299 |
$page = WDWLibrary::get('page');
|
300 |
-
|
301 |
}
|
302 |
|
303 |
public function unpublish_all() {
|
@@ -323,7 +323,7 @@ class BWGControllerAlbums_bwg {
|
|
323 |
$message = 6;
|
324 |
}
|
325 |
$page = WDWLibrary::get('page');
|
326 |
-
|
327 |
}
|
328 |
|
329 |
public function save_order($flag = TRUE) {
|
@@ -349,7 +349,7 @@ class BWGControllerAlbums_bwg {
|
|
349 |
}
|
350 |
}
|
351 |
$page = WDWLibrary::get('page');
|
352 |
-
|
353 |
}
|
354 |
////////////////////////////////////////////////////////////////////////////////////////
|
355 |
// Getters & Setters //
|
62 |
public function save() {
|
63 |
$message = $this->save_db();
|
64 |
$page = WDWLibrary::get('page');
|
65 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
66 |
}
|
67 |
|
68 |
public function apply() {
|
71 |
$id = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'bwg_album');
|
72 |
$current_id = WDWLibrary::get('current_id', $id);
|
73 |
$page = WDWLibrary::get('page');
|
74 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message), admin_url('admin.php')));
|
75 |
}
|
76 |
|
77 |
// Return random image from gallery or album for album preview.
|
222 |
$message = 2;
|
223 |
}
|
224 |
$page = WDWLibrary::get('page');
|
225 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
226 |
}
|
227 |
|
228 |
public function delete_all() {
|
245 |
$message = 2;
|
246 |
}
|
247 |
$page = WDWLibrary::get('page');
|
248 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
249 |
}
|
250 |
|
251 |
public function publish($id) {
|
258 |
$message = 2;
|
259 |
}
|
260 |
$page = WDWLibrary::get('page');
|
261 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
262 |
}
|
263 |
|
264 |
public function publish_all() {
|
284 |
$message = 6;
|
285 |
}
|
286 |
$page = WDWLibrary::get('page');
|
287 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
288 |
}
|
289 |
|
290 |
public function unpublish($id) {
|
297 |
$message = 2;
|
298 |
}
|
299 |
$page = WDWLibrary::get('page');
|
300 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
301 |
}
|
302 |
|
303 |
public function unpublish_all() {
|
323 |
$message = 6;
|
324 |
}
|
325 |
$page = WDWLibrary::get('page');
|
326 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
327 |
}
|
328 |
|
329 |
public function save_order($flag = TRUE) {
|
349 |
}
|
350 |
}
|
351 |
$page = WDWLibrary::get('page');
|
352 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
353 |
}
|
354 |
////////////////////////////////////////////////////////////////////////////////////////
|
355 |
// Getters & Setters //
|
admin/controllers/BWGControllerTags_bwg.php
CHANGED
@@ -43,7 +43,7 @@ class BWGControllerTags_bwg {
|
|
43 |
public function save() {
|
44 |
$message = $this->save_tag();
|
45 |
$page = WDWLibrary::get('page');
|
46 |
-
|
47 |
}
|
48 |
|
49 |
public function bwg_get_unique_slug($slug, $id) {
|
@@ -187,7 +187,7 @@ class BWGControllerTags_bwg {
|
|
187 |
$message = '';
|
188 |
}
|
189 |
$page = WDWLibrary::get('page');
|
190 |
-
|
191 |
}
|
192 |
|
193 |
public function delete($id) {
|
@@ -202,7 +202,7 @@ class BWGControllerTags_bwg {
|
|
202 |
$message = 2;
|
203 |
}
|
204 |
$page = WDWLibrary::get('page');
|
205 |
-
|
206 |
}
|
207 |
|
208 |
public function delete_all() {
|
@@ -223,7 +223,7 @@ class BWGControllerTags_bwg {
|
|
223 |
$message = 6;
|
224 |
}
|
225 |
$page = WDWLibrary::get('page');
|
226 |
-
|
227 |
}
|
228 |
|
229 |
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
public function save() {
|
44 |
$message = $this->save_tag();
|
45 |
$page = WDWLibrary::get('page');
|
46 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
47 |
}
|
48 |
|
49 |
public function bwg_get_unique_slug($slug, $id) {
|
187 |
$message = '';
|
188 |
}
|
189 |
$page = WDWLibrary::get('page');
|
190 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
191 |
}
|
192 |
|
193 |
public function delete($id) {
|
202 |
$message = 2;
|
203 |
}
|
204 |
$page = WDWLibrary::get('page');
|
205 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
206 |
}
|
207 |
|
208 |
public function delete_all() {
|
223 |
$message = 6;
|
224 |
}
|
225 |
$page = WDWLibrary::get('page');
|
226 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
227 |
}
|
228 |
|
229 |
////////////////////////////////////////////////////////////////////////////////////////
|
admin/controllers/BWGControllerThemes_bwg.php
CHANGED
@@ -73,7 +73,7 @@ class BWGControllerThemes_bwg {
|
|
73 |
public function save() {
|
74 |
$message = $this->save_db();
|
75 |
$page = WDWLibrary::get('page');
|
76 |
-
|
77 |
}
|
78 |
|
79 |
public function apply() {
|
@@ -83,7 +83,7 @@ class BWGControllerThemes_bwg {
|
|
83 |
$current_id = WDWLibrary::get('current_id', $id);
|
84 |
$page = WDWLibrary::get('page');
|
85 |
$current_type = WDWLibrary::get('current_type', 'Thumbnail');
|
86 |
-
|
87 |
}
|
88 |
|
89 |
public function save_db() {
|
@@ -1506,7 +1506,7 @@ class BWGControllerThemes_bwg {
|
|
1506 |
}
|
1507 |
}
|
1508 |
$page = WDWLibrary::get('page');
|
1509 |
-
|
1510 |
}
|
1511 |
|
1512 |
public function delete_all() {
|
@@ -1534,7 +1534,7 @@ class BWGControllerThemes_bwg {
|
|
1534 |
$message = 6;
|
1535 |
}
|
1536 |
$page = WDWLibrary::get('page');
|
1537 |
-
|
1538 |
}
|
1539 |
|
1540 |
public function setdefault($id) {
|
@@ -1548,7 +1548,7 @@ class BWGControllerThemes_bwg {
|
|
1548 |
$message = 2;
|
1549 |
}
|
1550 |
$page = WDWLibrary::get('page');
|
1551 |
-
|
1552 |
}
|
1553 |
|
1554 |
////////////////////////////////////////////////////////////////////////////////////////
|
73 |
public function save() {
|
74 |
$message = $this->save_db();
|
75 |
$page = WDWLibrary::get('page');
|
76 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
77 |
}
|
78 |
|
79 |
public function apply() {
|
83 |
$current_id = WDWLibrary::get('current_id', $id);
|
84 |
$page = WDWLibrary::get('page');
|
85 |
$current_type = WDWLibrary::get('current_type', 'Thumbnail');
|
86 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'edit', 'current_id' => $current_id, 'message' => $message, 'current_type' => $current_type), admin_url('admin.php')));
|
87 |
}
|
88 |
|
89 |
public function save_db() {
|
1506 |
}
|
1507 |
}
|
1508 |
$page = WDWLibrary::get('page');
|
1509 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
1510 |
}
|
1511 |
|
1512 |
public function delete_all() {
|
1534 |
$message = 6;
|
1535 |
}
|
1536 |
$page = WDWLibrary::get('page');
|
1537 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
1538 |
}
|
1539 |
|
1540 |
public function setdefault($id) {
|
1548 |
$message = 2;
|
1549 |
}
|
1550 |
$page = WDWLibrary::get('page');
|
1551 |
+
WDWLibrary::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => $message), admin_url('admin.php')));
|
1552 |
}
|
1553 |
|
1554 |
////////////////////////////////////////////////////////////////////////////////////////
|
framework/WDWLibrary.php
CHANGED
@@ -16,7 +16,6 @@ class WDWLibrary {
|
|
16 |
public function __construct() {
|
17 |
}
|
18 |
|
19 |
-
|
20 |
////////////////////////////////////////////////////////////////////////////////////////
|
21 |
// Public Methods //
|
22 |
////////////////////////////////////////////////////////////////////////////////////////
|
@@ -637,6 +636,14 @@ class WDWLibrary {
|
|
637 |
return array('red' => $r, 'green' => $g, 'blue' => $b);
|
638 |
}
|
639 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
640 |
////////////////////////////////////////////////////////////////////////////////////////
|
641 |
// Private Methods //
|
642 |
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
public function __construct() {
|
17 |
}
|
18 |
|
|
|
19 |
////////////////////////////////////////////////////////////////////////////////////////
|
20 |
// Public Methods //
|
21 |
////////////////////////////////////////////////////////////////////////////////////////
|
636 |
return array('red' => $r, 'green' => $g, 'blue' => $b);
|
637 |
}
|
638 |
|
639 |
+
public static function spider_redirect($url) {
|
640 |
+
?>
|
641 |
+
<script>
|
642 |
+
window.location = "<?php echo $url; ?>";
|
643 |
+
</script>
|
644 |
+
<?php
|
645 |
+
exit();
|
646 |
+
}
|
647 |
////////////////////////////////////////////////////////////////////////////////////////
|
648 |
// Private Methods //
|
649 |
////////////////////////////////////////////////////////////////////////////////////////
|
frontend/views/BWGViewAlbum_compact_preview.php
CHANGED
@@ -585,6 +585,7 @@ class BWGViewAlbum_compact_preview {
|
|
585 |
'image_filmstrip_height' => $params['popup_filmstrip_height'],
|
586 |
'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
|
587 |
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
|
|
588 |
'slideshow_interval' => $params['popup_interval'],
|
589 |
'enable_comment_social' => $params['popup_enable_comment'],
|
590 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
585 |
'image_filmstrip_height' => $params['popup_filmstrip_height'],
|
586 |
'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
|
587 |
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
588 |
+
'popup_enable_info' => $params['popup_enable_info'],
|
589 |
'slideshow_interval' => $params['popup_interval'],
|
590 |
'enable_comment_social' => $params['popup_enable_comment'],
|
591 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
frontend/views/BWGViewAlbum_extended_preview.php
CHANGED
@@ -604,6 +604,7 @@ class BWGViewAlbum_extended_preview {
|
|
604 |
'image_filmstrip_height' => $params['popup_filmstrip_height'],
|
605 |
'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
|
606 |
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
|
|
607 |
'slideshow_interval' => $params['popup_interval'],
|
608 |
'enable_comment_social' => $params['popup_enable_comment'],
|
609 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
604 |
'image_filmstrip_height' => $params['popup_filmstrip_height'],
|
605 |
'enable_image_ctrl_btn' => $params['popup_enable_ctrl_btn'],
|
606 |
'enable_image_fullscreen' => $params['popup_enable_fullscreen'],
|
607 |
+
'popup_enable_info' => $params['popup_enable_info'],
|
608 |
'slideshow_interval' => $params['popup_interval'],
|
609 |
'enable_comment_social' => $params['popup_enable_comment'],
|
610 |
'enable_image_facebook' => $params['popup_enable_facebook'],
|
photo-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
-
* Version: 1.1.
|
8 |
* Author: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
@@ -2522,7 +2522,7 @@ function bwg_activate() {
|
|
2522 |
));
|
2523 |
}
|
2524 |
$version = get_option("wd_bwg_version");
|
2525 |
-
$new_version = '1.1.
|
2526 |
if ($version && version_compare($version, $new_version, '<')) {
|
2527 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2528 |
bwg_update($version);
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
+
* Version: 1.1.17
|
8 |
* Author: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
2522 |
));
|
2523 |
}
|
2524 |
$version = get_option("wd_bwg_version");
|
2525 |
+
$new_version = '1.1.17';
|
2526 |
if ($version && version_compare($version, $new_version, '<')) {
|
2527 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2528 |
bwg_update($version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, Simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, Fotogalerie, Galleria, galerie, galeri
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -15,6 +15,10 @@ Photo Gallery is an advanced plugin with a list of tools and options for adding
|
|
15 |
https://www.youtube.com/watch?v=4Mxg0FsFZZE&index=5&list=PLnxWPiY5tLFUsFI67acGEPAqoDMZqss5F
|
16 |
|
17 |
### [WordPress Photo Gallery](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html)
|
|
|
|
|
|
|
|
|
18 |
|
19 |
Photo Gallery is an advanced plugin with a list of tools and options for adding and editing images for different views. It is fully responsive. The product includes plugin for adding image galleries and albums to posts and pages, as well as multiple widgets. You can add images, providing detailed descriptions and tags, organize the galleries into different albums.
|
20 |
|
4 |
Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, Simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, Fotogalerie, Galleria, galerie, galeri
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.9
|
7 |
+
Stable tag: 1.1.17
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
15 |
https://www.youtube.com/watch?v=4Mxg0FsFZZE&index=5&list=PLnxWPiY5tLFUsFI67acGEPAqoDMZqss5F
|
16 |
|
17 |
### [WordPress Photo Gallery](http://web-dorado.com/products/wordpress-photo-gallery-plugin.html)
|
18 |
+
[Demo](http://wpdemo.web-dorado.com/gallery/)
|
19 |
+
[Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=galleries_bwg)
|
20 |
+
[User Manual](http://web-dorado.com/wordpress-gallery-guide-step-1.html)
|
21 |
+
[Support Forum](http://web-dorado.com/forum/photo-gallery.html)
|
22 |
|
23 |
Photo Gallery is an advanced plugin with a list of tools and options for adding and editing images for different views. It is fully responsive. The product includes plugin for adding image galleries and albums to posts and pages, as well as multiple widgets. You can add images, providing detailed descriptions and tags, organize the galleries into different albums.
|
24 |
|