Version Description
- Fixed: Bug after last update.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.3.56 |
Comparing to | |
See all releases |
Code changes from version 1.3.55 to 1.3.56
- framework/WDWLibrary.php +13 -15
- frontend/controllers/BWGControllerAlbum_extended_preview.php +3 -28
- photo-gallery.php +7 -7
- readme.txt +4 -1
framework/WDWLibrary.php
CHANGED
@@ -1173,7 +1173,6 @@ class WDWLibrary {
|
|
1173 |
$row->permalink = WDWLibrary::get_custom_post_permalink(array( 'slug' => $row->slug, 'post_type' => 'album' ));
|
1174 |
}
|
1175 |
}
|
1176 |
-
|
1177 |
return $row;
|
1178 |
}
|
1179 |
|
@@ -1637,9 +1636,9 @@ class WDWLibrary {
|
|
1637 |
/**
|
1638 |
* Get shortcode defauls.
|
1639 |
*
|
1640 |
-
* @param array
|
1641 |
*
|
1642 |
-
* @return array
|
1643 |
*/
|
1644 |
public static function get_shortcode_option_params( $params ) {
|
1645 |
global $wd_bwg_options;
|
@@ -1710,7 +1709,7 @@ class WDWLibrary {
|
|
1710 |
break;
|
1711 |
case 'thumbnails_masonry': {
|
1712 |
$defaul = array(
|
1713 |
-
'gallery_id' =>
|
1714 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1715 |
'sort_by' => 'order',
|
1716 |
'order_by' => 'asc',
|
@@ -1733,7 +1732,7 @@ class WDWLibrary {
|
|
1733 |
break;
|
1734 |
case 'thumbnails_mosaic': {
|
1735 |
$defaul = array(
|
1736 |
-
'gallery_id' =>
|
1737 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1738 |
'sort_by' => 'order',
|
1739 |
'order_by' => 'asc',
|
@@ -1757,7 +1756,7 @@ class WDWLibrary {
|
|
1757 |
break;
|
1758 |
case 'slideshow': {
|
1759 |
$defaul = array(
|
1760 |
-
'gallery_id' =>
|
1761 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1762 |
'sort_by' => 'order',
|
1763 |
'order_by' => 'asc',
|
@@ -1784,7 +1783,7 @@ class WDWLibrary {
|
|
1784 |
break;
|
1785 |
case 'carousel': {
|
1786 |
$defaul = array(
|
1787 |
-
'gallery_id' =>
|
1788 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1789 |
'sort_by' => 'order',
|
1790 |
'order_by' => 'asc',
|
@@ -1805,7 +1804,7 @@ class WDWLibrary {
|
|
1805 |
break;
|
1806 |
case 'image_browser': {
|
1807 |
$defaul = array(
|
1808 |
-
'gallery_id' =>
|
1809 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1810 |
'sort_by' => 'order',
|
1811 |
'order_by' => 'asc',
|
@@ -1854,7 +1853,7 @@ class WDWLibrary {
|
|
1854 |
break;
|
1855 |
case 'album_masonry_preview': {
|
1856 |
$defaul = array(
|
1857 |
-
'album_id' =>
|
1858 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1859 |
'sort_by' => 'order',
|
1860 |
'show_search_box' => 0,
|
@@ -1880,7 +1879,7 @@ class WDWLibrary {
|
|
1880 |
break;
|
1881 |
case 'album_extended_preview': {
|
1882 |
$defaul = array(
|
1883 |
-
'album_id' =>
|
1884 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1885 |
'sort_by' => 'order',
|
1886 |
'show_search_box' => 0,
|
@@ -1904,10 +1903,10 @@ class WDWLibrary {
|
|
1904 |
'show_album_name' => 0,
|
1905 |
);
|
1906 |
}
|
1907 |
-
|
1908 |
case 'blog_style': {
|
1909 |
$defaul = array(
|
1910 |
-
'gallery_id' =>
|
1911 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1912 |
'sort_by' => 'order',
|
1913 |
'order_by' => 'asc',
|
@@ -1926,9 +1925,8 @@ class WDWLibrary {
|
|
1926 |
}
|
1927 |
break;
|
1928 |
}
|
1929 |
-
$
|
1930 |
-
|
1931 |
-
return $data;
|
1932 |
}
|
1933 |
}
|
1934 |
|
1173 |
$row->permalink = WDWLibrary::get_custom_post_permalink(array( 'slug' => $row->slug, 'post_type' => 'album' ));
|
1174 |
}
|
1175 |
}
|
|
|
1176 |
return $row;
|
1177 |
}
|
1178 |
|
1636 |
/**
|
1637 |
* Get shortcode defauls.
|
1638 |
*
|
1639 |
+
* @param array $params
|
1640 |
*
|
1641 |
+
* @return array $defauls
|
1642 |
*/
|
1643 |
public static function get_shortcode_option_params( $params ) {
|
1644 |
global $wd_bwg_options;
|
1709 |
break;
|
1710 |
case 'thumbnails_masonry': {
|
1711 |
$defaul = array(
|
1712 |
+
'gallery_id' => $params['gallery_id'],
|
1713 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1714 |
'sort_by' => 'order',
|
1715 |
'order_by' => 'asc',
|
1732 |
break;
|
1733 |
case 'thumbnails_mosaic': {
|
1734 |
$defaul = array(
|
1735 |
+
'gallery_id' => $params['gallery_id'],
|
1736 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1737 |
'sort_by' => 'order',
|
1738 |
'order_by' => 'asc',
|
1756 |
break;
|
1757 |
case 'slideshow': {
|
1758 |
$defaul = array(
|
1759 |
+
'gallery_id' => $params['gallery_id'],
|
1760 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1761 |
'sort_by' => 'order',
|
1762 |
'order_by' => 'asc',
|
1783 |
break;
|
1784 |
case 'carousel': {
|
1785 |
$defaul = array(
|
1786 |
+
'gallery_id' => $params['gallery_id'],
|
1787 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1788 |
'sort_by' => 'order',
|
1789 |
'order_by' => 'asc',
|
1804 |
break;
|
1805 |
case 'image_browser': {
|
1806 |
$defaul = array(
|
1807 |
+
'gallery_id' => $params['gallery_id'],
|
1808 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1809 |
'sort_by' => 'order',
|
1810 |
'order_by' => 'asc',
|
1853 |
break;
|
1854 |
case 'album_masonry_preview': {
|
1855 |
$defaul = array(
|
1856 |
+
'album_id' => $params['album_id'],
|
1857 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1858 |
'sort_by' => 'order',
|
1859 |
'show_search_box' => 0,
|
1879 |
break;
|
1880 |
case 'album_extended_preview': {
|
1881 |
$defaul = array(
|
1882 |
+
'album_id' => $params['album_id'],
|
1883 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1884 |
'sort_by' => 'order',
|
1885 |
'show_search_box' => 0,
|
1903 |
'show_album_name' => 0,
|
1904 |
);
|
1905 |
}
|
1906 |
+
break;
|
1907 |
case 'blog_style': {
|
1908 |
$defaul = array(
|
1909 |
+
'gallery_id' => $params['gallery_id'],
|
1910 |
'theme_id' => (!$use_option_defaults && isset($params['theme_id'])) ? $params['theme_id'] : $theme->id,
|
1911 |
'sort_by' => 'order',
|
1912 |
'order_by' => 'asc',
|
1925 |
}
|
1926 |
break;
|
1927 |
}
|
1928 |
+
$defauls = array_merge($defaul, $everyone_option);
|
1929 |
+
return $defauls;
|
|
|
1930 |
}
|
1931 |
}
|
1932 |
|
frontend/controllers/BWGControllerAlbum_extended_preview.php
CHANGED
@@ -1,23 +1,8 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
class BWGControllerAlbum_extended_preview {
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
8 |
-
// Constants //
|
9 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
10 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
11 |
-
// Variables //
|
12 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
13 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
14 |
-
// Constructor & Destructor //
|
15 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
16 |
-
public function __construct() {
|
17 |
-
}
|
18 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
19 |
-
// Public Methods //
|
20 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
21 |
public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
|
22 |
$this->display($params, $from_shortcode, $bwg);
|
23 |
}
|
@@ -28,16 +13,6 @@ class BWGControllerAlbum_extended_preview {
|
|
28 |
|
29 |
require_once WD_BWG_DIR . "/frontend/views/BWGViewAlbum_extended_preview.php";
|
30 |
$view = new BWGViewAlbum_extended_preview($model);
|
31 |
-
|
32 |
$view->display($params, $from_shortcode, $bwg);
|
33 |
}
|
34 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
35 |
-
// Getters & Setters //
|
36 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
37 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
38 |
-
// Private Methods //
|
39 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
40 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
41 |
-
// Listeners //
|
42 |
-
////////////////////////////////////////////////////////////////////////////////////////
|
43 |
}
|
1 |
<?php
|
|
|
2 |
class BWGControllerAlbum_extended_preview {
|
3 |
+
|
4 |
+
public function __construct() { }
|
5 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
public function execute($params = array(), $from_shortcode = 0, $bwg = 0) {
|
7 |
$this->display($params, $from_shortcode, $bwg);
|
8 |
}
|
13 |
|
14 |
require_once WD_BWG_DIR . "/frontend/views/BWGViewAlbum_extended_preview.php";
|
15 |
$view = new BWGViewAlbum_extended_preview($model);
|
|
|
16 |
$view->display($params, $from_shortcode, $bwg);
|
17 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
photo-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://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.3.
|
8 |
* Author: Photo Gallery Team
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -283,15 +283,15 @@ function bwg_shortcode($params) {
|
|
283 |
}
|
284 |
}
|
285 |
else {
|
286 |
-
|
287 |
}
|
288 |
}
|
289 |
$pairs = array();
|
290 |
$pairs = WDWLibrary::get_shortcode_option_params( $params );
|
291 |
ob_start();
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
}
|
296 |
add_shortcode('Best_Wordpress_Gallery', 'bwg_shortcode');
|
297 |
|
@@ -1504,7 +1504,7 @@ function bwg_activate() {
|
|
1504 |
}
|
1505 |
|
1506 |
$version = get_option('wd_bwg_version');
|
1507 |
-
$new_version = '1.3.
|
1508 |
if ($version && version_compare($version, $new_version, '<')) {
|
1509 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1510 |
bwg_update($version);
|
@@ -1556,7 +1556,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1556 |
|
1557 |
function bwg_update_hook() {
|
1558 |
$version = get_option('wd_bwg_version');
|
1559 |
-
$new_version = '1.3.
|
1560 |
if ($version && version_compare($version, $new_version, '<')) {
|
1561 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1562 |
bwg_update($version);
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://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.3.56
|
8 |
* Author: Photo Gallery Team
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
283 |
}
|
284 |
}
|
285 |
else {
|
286 |
+
return;
|
287 |
}
|
288 |
}
|
289 |
$pairs = array();
|
290 |
$pairs = WDWLibrary::get_shortcode_option_params( $params );
|
291 |
ob_start();
|
292 |
+
bwg_front_end( $pairs );
|
293 |
+
return str_replace(array("\r\n", "\n", "\r"), '', ob_get_clean());
|
294 |
+
// return ob_get_clean();
|
295 |
}
|
296 |
add_shortcode('Best_Wordpress_Gallery', 'bwg_shortcode');
|
297 |
|
1504 |
}
|
1505 |
|
1506 |
$version = get_option('wd_bwg_version');
|
1507 |
+
$new_version = '1.3.56';
|
1508 |
if ($version && version_compare($version, $new_version, '<')) {
|
1509 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1510 |
bwg_update($version);
|
1556 |
|
1557 |
function bwg_update_hook() {
|
1558 |
$version = get_option('wd_bwg_version');
|
1559 |
+
$new_version = '1.3.56';
|
1560 |
if ($version && version_compare($version, $new_version, '<')) {
|
1561 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1562 |
bwg_update($version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -187,6 +187,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
190 |
= 1.3.55 =
|
191 |
* Changed: Create custom post on album, gallery, tag save.
|
192 |
* Fixed: Carousel view.
|
4 |
Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 1.3.56
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
187 |
|
188 |
== Changelog ==
|
189 |
|
190 |
+
= 1.3.56 =
|
191 |
+
* Fixed: Bug after last update.
|
192 |
+
|
193 |
= 1.3.55 =
|
194 |
* Changed: Create custom post on album, gallery, tag save.
|
195 |
* Fixed: Carousel view.
|