Version Description
New: Facebook embed add-on.
Added: Add-ons page.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.2.59 |
Comparing to | |
See all releases |
Code changes from version 1.2.58 to 1.2.59
- addons/addons.php +89 -0
- addons/images/Add_Ons.jpg +0 -0
- addons/images/Add_Ons_hover.jpg +0 -0
- addons/images/add-ons-icon.png +0 -0
- addons/images/coming_soon.png +0 -0
- addons/images/facebook.png +0 -0
- addons/images/import_export.png +0 -0
- addons/images/nextgen_gallery.png +0 -0
- addons/style.css +168 -0
- photo-gallery.php +44 -26
- readme.txt +10 -1
- update/bwg_update.php +6 -0
addons/addons.php
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function bwg_addons_display() {
|
3 |
+
$addons = array(
|
4 |
+
'photo-gallery-facebook' => array(
|
5 |
+
'name' => __('Photo Gallery Facebook', 'bwg'),
|
6 |
+
'url' => 'https://web-dorado.com/products/wordpress-photo-gallery-plugin/add-ons/facebook.html',
|
7 |
+
'description' => __('Photo Gallery Facebook is an add-on, which helps to display Facebook photos and videos within Photo Gallery plugin. You can create Facebook-only galleries, embed individual images and videos or include Facebook albums within mixed type albums.', 'bwg'),
|
8 |
+
'icon' => '',
|
9 |
+
'image' => WD_BWG_URL . '/addons/images/facebook.png',
|
10 |
+
),
|
11 |
+
'ngitopg' => array(
|
12 |
+
'name' => __('NextGen Gallery Import to Photo Gallery', 'bwg'),
|
13 |
+
'url' => 'https://wordpress.org/plugins/import-to-photo-gallery-from-nextgen-gallery/',
|
14 |
+
'description' => __('This addon integrates NextGen with Photo Gallery allowing to import images and related data from NextGen to use with Photo Gallery', 'bwg'),
|
15 |
+
'icon' => '',
|
16 |
+
'image' => WD_BWG_URL . '/addons/images/nextgen_gallery.png',
|
17 |
+
),
|
18 |
+
'photo-gallery-export' => array(
|
19 |
+
'name' => __('Photo Gallery Export / Import', 'bwg'),
|
20 |
+
'url' => '#',
|
21 |
+
'description' => __('Photo Gallery Export/Import helps to move created galleries and albums from one site to another. This way you can save the gallery/album options and manual modifications.', 'bwg'),
|
22 |
+
'icon' => '',
|
23 |
+
'image' => WD_BWG_URL . '/addons/images/import_export.png',
|
24 |
+
),
|
25 |
+
);
|
26 |
+
?>
|
27 |
+
<div class="wrap">
|
28 |
+
<div id="settings">
|
29 |
+
<div id="settings-content" >
|
30 |
+
<h2 id="add_on_title"><?php _e('Photo Gallery Add-ons', 'bwg'); ?></h2>
|
31 |
+
<div>
|
32 |
+
<p>
|
33 |
+
<span style="color: #ba281e; font-size: 20px;"><?php _e('Attention', 'bwg'); ?>:</span>
|
34 |
+
<?php _e('Add-ons are supported by premium version of Photo Gallery', 'bwg'); ?>
|
35 |
+
</p>
|
36 |
+
</div>
|
37 |
+
<?php
|
38 |
+
if ($addons) {
|
39 |
+
foreach ($addons as $name => $addon) {
|
40 |
+
?>
|
41 |
+
<div class="add-on">
|
42 |
+
<h2><?php echo $addon['name']; ?></h2>
|
43 |
+
<figure class="figure">
|
44 |
+
<div class="figure-img">
|
45 |
+
<a href="<?php echo $addon['url']; ?>" target="_blank">
|
46 |
+
<?php
|
47 |
+
if ($addon['image']) {
|
48 |
+
?>
|
49 |
+
<img src="<?php echo $addon['image']; ?>" />
|
50 |
+
<?php
|
51 |
+
}
|
52 |
+
?>
|
53 |
+
</a>
|
54 |
+
</div>
|
55 |
+
<figcaption class="addon-descr figcaption">
|
56 |
+
<?php
|
57 |
+
if ($addon['icon']) {
|
58 |
+
?>
|
59 |
+
<img src="<?php echo $addon['icon']; ?>" />
|
60 |
+
<?php
|
61 |
+
}
|
62 |
+
?>
|
63 |
+
<?php echo $addon['description']; ?>
|
64 |
+
</figcaption>
|
65 |
+
</figure>
|
66 |
+
<?php
|
67 |
+
if ($addon['url'] !== '#') {
|
68 |
+
?>
|
69 |
+
<a href="<?php echo $addon['url']; ?>" target="_blank" class="addon"><span><?php _e('GET THIS ADD ON', 'bwg'); ?></span></a>
|
70 |
+
<?php
|
71 |
+
}
|
72 |
+
else {
|
73 |
+
?>
|
74 |
+
<div class="ecwd_coming_soon">
|
75 |
+
<img src="<?php echo WD_BWG_URL . '/addons/images/coming_soon.png'; ?>" />
|
76 |
+
</div>
|
77 |
+
<?php
|
78 |
+
}
|
79 |
+
?>
|
80 |
+
</div>
|
81 |
+
<?php
|
82 |
+
}
|
83 |
+
}
|
84 |
+
?>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<?php
|
89 |
+
}
|
addons/images/Add_Ons.jpg
ADDED
Binary file
|
addons/images/Add_Ons_hover.jpg
ADDED
Binary file
|
addons/images/add-ons-icon.png
ADDED
Binary file
|
addons/images/coming_soon.png
ADDED
Binary file
|
addons/images/facebook.png
ADDED
Binary file
|
addons/images/import_export.png
ADDED
Binary file
|
addons/images/nextgen_gallery.png
ADDED
Binary file
|
addons/style.css
ADDED
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#settings-content .addons_updates::after,
|
2 |
+
#settings-content .main-plugin::after,
|
3 |
+
#settings-content::after {
|
4 |
+
clear: both;
|
5 |
+
content: "";
|
6 |
+
display: table;
|
7 |
+
}
|
8 |
+
|
9 |
+
#settings {
|
10 |
+
background: #ffffff;
|
11 |
+
padding: 15px;
|
12 |
+
}
|
13 |
+
|
14 |
+
#settings-content #add_on_title {
|
15 |
+
margin-bottom: 20px;
|
16 |
+
}
|
17 |
+
|
18 |
+
#settings-content .ecwd_coming_soon {
|
19 |
+
position: absolute;
|
20 |
+
top: 44px;
|
21 |
+
left: 0;
|
22 |
+
height: 100%;
|
23 |
+
}
|
24 |
+
|
25 |
+
#settings-content .add-on a {
|
26 |
+
text-decoration: none;
|
27 |
+
}
|
28 |
+
|
29 |
+
#settings-content .add-on h2 {
|
30 |
+
color: #229DBF;
|
31 |
+
font-size: 16px;
|
32 |
+
margin-bottom: 9px;
|
33 |
+
padding: 0 0 7px;
|
34 |
+
line-height: 1.2;
|
35 |
+
}
|
36 |
+
|
37 |
+
#settings-content .addon-descr {
|
38 |
+
font-size: 13px;
|
39 |
+
line-height: 18px;
|
40 |
+
height: 100%;
|
41 |
+
width: 53%;
|
42 |
+
opacity: 0;
|
43 |
+
position: absolute;
|
44 |
+
top: 0;
|
45 |
+
left: 0;
|
46 |
+
padding: 8px 10px 10px;
|
47 |
+
background: #23282D;
|
48 |
+
color: #D1DDE0;
|
49 |
+
-webkit-backface-visibility: hidden;
|
50 |
+
-moz-backface-visibility: hidden;
|
51 |
+
backface-visibility: hidden;
|
52 |
+
-webkit-transform-origin: 0 0;
|
53 |
+
-moz-transform-origin: 0 0;
|
54 |
+
transform-origin: 0 0;
|
55 |
+
-webkit-transform: rotateY(-90deg);
|
56 |
+
-moz-transform: rotateY(-90deg);
|
57 |
+
transform: rotateY(-90deg);
|
58 |
+
-webkit-transition: -webkit-transform 0.4s, opacity 0.1s 0.3s;
|
59 |
+
-moz-transition: -moz-transform 0.4s, opacity 0.1s 0.3s;
|
60 |
+
transition: transform 0.4s, opacity 0.1s 0.3s;
|
61 |
+
box-sizing: border-box;
|
62 |
+
-webkit-box-sizing: border-box;
|
63 |
+
-moz-box-sizing: border-box;
|
64 |
+
}
|
65 |
+
|
66 |
+
#settings-content .addon,
|
67 |
+
#settings-content .addon-price {
|
68 |
+
display: inline-block;
|
69 |
+
margin-top: 15px;
|
70 |
+
font-size: 15px;
|
71 |
+
border: 1px solid #DCDCDC;
|
72 |
+
font-weight: bold;
|
73 |
+
}
|
74 |
+
|
75 |
+
#settings-content .addon {
|
76 |
+
background: #FFFFFF url('images/Add_Ons.jpg') no-repeat 6px center;
|
77 |
+
color: #66686B;
|
78 |
+
padding: 9px 12px 9px 45px;
|
79 |
+
width: 100%;
|
80 |
+
box-sizing: border-box;
|
81 |
+
-webkit-box-sizing: border-box;
|
82 |
+
-moz-box-sizing: border-box;
|
83 |
+
}
|
84 |
+
|
85 |
+
#settings-content .addon-price {
|
86 |
+
background: #FFFFFF;
|
87 |
+
color: #229CBF;
|
88 |
+
padding: 9px 12px;
|
89 |
+
}
|
90 |
+
|
91 |
+
#settings-content .add-on:hover .addon-price,
|
92 |
+
#settings-content .addon-price:hover {
|
93 |
+
background: #229CBF;
|
94 |
+
color: #DDECF1;
|
95 |
+
}
|
96 |
+
|
97 |
+
#settings-content .add-on:hover .addon,
|
98 |
+
#settings-content .addon:hover {
|
99 |
+
background: #23282D url('images/Add_Ons_hover.jpg') no-repeat 6px center;
|
100 |
+
color: #DDDEDE;
|
101 |
+
}
|
102 |
+
|
103 |
+
#settings-content .addon span {
|
104 |
+
border-left: 1px solid #A7A9AB;
|
105 |
+
padding: 4px 10px 4px 10px;
|
106 |
+
}
|
107 |
+
|
108 |
+
#settings-content .addon-descr span {
|
109 |
+
padding: 5px 0 5px 10px;
|
110 |
+
border-left: 1px solid #93CEE0;
|
111 |
+
}
|
112 |
+
|
113 |
+
#settings-content a:focus {
|
114 |
+
outline: none;
|
115 |
+
box-shadow: none;
|
116 |
+
}
|
117 |
+
|
118 |
+
#settings-content .add-on {
|
119 |
+
width: 310px;
|
120 |
+
height: 320px;
|
121 |
+
float: left;
|
122 |
+
margin-right: 40px;
|
123 |
+
margin-bottom: 40px;
|
124 |
+
-webkit-perspective: 1700px;
|
125 |
+
-moz-perspective: 1700px;
|
126 |
+
perspective: 1700px;
|
127 |
+
-webkit-perspective-origin: 0 50%;
|
128 |
+
-moz-perspective-origin: 0 50%;
|
129 |
+
perspective-origin: 0 50%;
|
130 |
+
position: relative;
|
131 |
+
}
|
132 |
+
|
133 |
+
#settings-content .figure {
|
134 |
+
-webkit-transform-style: preserve-3d;
|
135 |
+
-moz-transform-style: preserve-3d;
|
136 |
+
transform-style: preserve-3d;
|
137 |
+
position: relative;
|
138 |
+
width: 100%;
|
139 |
+
height: 232px;
|
140 |
+
margin: 0;
|
141 |
+
}
|
142 |
+
|
143 |
+
#settings-content .figure-img {
|
144 |
+
overflow: hidden;
|
145 |
+
}
|
146 |
+
|
147 |
+
#settings-content .figure-img img {
|
148 |
+
-webkit-transition: -webkit-transform 0.4s;
|
149 |
+
-moz-transition: -moz-transform 0.4s;
|
150 |
+
transition: transform 0.4s;
|
151 |
+
}
|
152 |
+
|
153 |
+
#settings-content .figure:hover img {
|
154 |
+
-webkit-transform: translateX(25%);
|
155 |
+
-moz-transform: translateX(25%);
|
156 |
+
-ms-transform: translateX(25%);
|
157 |
+
transform: translateX(25%);
|
158 |
+
}
|
159 |
+
|
160 |
+
#settings-content .figure:hover figcaption {
|
161 |
+
opacity: 1;
|
162 |
+
-webkit-transform: rotateY(0deg);
|
163 |
+
-moz-transform: rotateY(0deg);
|
164 |
+
transform: rotateY(0deg);
|
165 |
+
-webkit-transition: -webkit-transform 0.4s, opacity 0.1s;
|
166 |
+
-moz-transition: -moz-transform 0.4s, opacity 0.1s;
|
167 |
+
transition: transform 0.4s, opacity 0.1s;
|
168 |
+
}
|
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.2.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -86,6 +86,8 @@ function bwg_options_panel() {
|
|
86 |
$uninstall_page = add_submenu_page('galleries_bwg', 'Uninstall', 'Uninstall', 'manage_options', 'uninstall_bwg', 'bwg_gallery');
|
87 |
add_action('admin_print_styles-' . $uninstall_page, 'bwg_styles');
|
88 |
add_action('admin_print_scripts-' . $uninstall_page, 'bwg_options_scripts');
|
|
|
|
|
89 |
}
|
90 |
add_action('admin_menu', 'bwg_options_panel');
|
91 |
|
@@ -131,6 +133,21 @@ function bwg_featured_themes() {
|
|
131 |
spider_featured_themes();
|
132 |
}
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
function bwg_ajax_frontend() {
|
135 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
136 |
$page = WDWLibrary::get('action');
|
@@ -563,7 +580,7 @@ function bwg_activate() {
|
|
563 |
`author` bigint(20) NOT NULL,
|
564 |
`published` tinyint(1) NOT NULL,
|
565 |
`gallery_type` varchar(32) NOT NULL,
|
566 |
-
`gallery_source` varchar(
|
567 |
`autogallery_image_number` int(4) NOT NULL,
|
568 |
`update_flag` varchar(32) NOT NULL,
|
569 |
PRIMARY KEY (`id`)
|
@@ -749,24 +766,26 @@ function bwg_activate() {
|
|
749 |
`instagram_client_id` varchar(40) NOT NULL,
|
750 |
`description_tb` tinyint(1) NOT NULL,
|
751 |
`enable_seo` tinyint(1) NOT NULL,
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
|
|
|
|
770 |
PRIMARY KEY (`id`)
|
771 |
) DEFAULT CHARSET=utf8;";
|
772 |
$wpdb->query($bwg_option);
|
@@ -2311,7 +2330,7 @@ function bwg_activate() {
|
|
2311 |
));
|
2312 |
}
|
2313 |
$version = get_option("wd_bwg_version");
|
2314 |
-
$new_version = '1.2.
|
2315 |
if ($version && version_compare($version, $new_version, '<')) {
|
2316 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2317 |
bwg_update($version);
|
@@ -2359,7 +2378,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
2359 |
|
2360 |
function bwg_update_hook() {
|
2361 |
$version = get_option("wd_bwg_version");
|
2362 |
-
$new_version = '1.2.
|
2363 |
if ($version && version_compare($version, $new_version, '<')) {
|
2364 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2365 |
bwg_update($version);
|
@@ -2664,10 +2683,10 @@ function bwg_captcha() {
|
|
2664 |
}
|
2665 |
}
|
2666 |
|
2667 |
-
function wd_bwg_version(){
|
2668 |
$version = get_option("wd_bwg_version");
|
2669 |
-
if($version){
|
2670 |
-
if(WD_BWG_PRO){
|
2671 |
$version = substr_replace($version, '2', 0, 1);
|
2672 |
}
|
2673 |
}
|
@@ -2675,7 +2694,6 @@ function wd_bwg_version(){
|
|
2675 |
$version = '';
|
2676 |
}
|
2677 |
return $version;
|
2678 |
-
|
2679 |
}
|
2680 |
|
2681 |
if (is_admin() && (!defined('DOING_AJAX') || !DOING_AJAX)) {
|
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.2.59
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
86 |
$uninstall_page = add_submenu_page('galleries_bwg', 'Uninstall', 'Uninstall', 'manage_options', 'uninstall_bwg', 'bwg_gallery');
|
87 |
add_action('admin_print_styles-' . $uninstall_page, 'bwg_styles');
|
88 |
add_action('admin_print_scripts-' . $uninstall_page, 'bwg_options_scripts');
|
89 |
+
|
90 |
+
add_menu_page('Photo Gallery Add-ons', 'Photo Gallery Add-ons', 'manage_options', 'addons_bwg', 'bwg_addons', WD_BWG_URL . '/addons/images/add-ons-icon.png');
|
91 |
}
|
92 |
add_action('admin_menu', 'bwg_options_panel');
|
93 |
|
133 |
spider_featured_themes();
|
134 |
}
|
135 |
|
136 |
+
function bwg_addons() {
|
137 |
+
if (function_exists('current_user_can')) {
|
138 |
+
if (!current_user_can('manage_options')) {
|
139 |
+
die('Access Denied');
|
140 |
+
}
|
141 |
+
}
|
142 |
+
else {
|
143 |
+
die('Access Denied');
|
144 |
+
}
|
145 |
+
require_once(WD_BWG_DIR . '/addons/addons.php');
|
146 |
+
wp_register_style('bwg_addons', WD_BWG_URL . '/addons/style.css', array(), wd_bwg_version());
|
147 |
+
wp_print_styles('bwg_addons');
|
148 |
+
bwg_addons_display();
|
149 |
+
}
|
150 |
+
|
151 |
function bwg_ajax_frontend() {
|
152 |
require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
|
153 |
$page = WDWLibrary::get('action');
|
580 |
`author` bigint(20) NOT NULL,
|
581 |
`published` tinyint(1) NOT NULL,
|
582 |
`gallery_type` varchar(32) NOT NULL,
|
583 |
+
`gallery_source` varchar(256) NOT NULL,
|
584 |
`autogallery_image_number` int(4) NOT NULL,
|
585 |
`update_flag` varchar(32) NOT NULL,
|
586 |
PRIMARY KEY (`id`)
|
766 |
`instagram_client_id` varchar(40) NOT NULL,
|
767 |
`description_tb` tinyint(1) NOT NULL,
|
768 |
`enable_seo` tinyint(1) NOT NULL,
|
769 |
+
`autohide_lightbox_navigation` tinyint(1) NOT NULL,
|
770 |
+
`autohide_slideshow_navigation` tinyint(1) NOT NULL,
|
771 |
+
`read_metadata` tinyint(1) NOT NULL,
|
772 |
+
`enable_loop` tinyint(1) NOT NULL,
|
773 |
+
`enable_addthis` tinyint(1) NOT NULL,
|
774 |
+
`addthis_profile_id` varchar(66) NOT NULL,
|
775 |
+
`carousel_interval` int(4) NOT NULL,
|
776 |
+
`carousel_width` int(4) NOT NULL,
|
777 |
+
`carousel_height` int(4) NOT NULL,
|
778 |
+
`carousel_image_column_number` int(4) NOT NULL,
|
779 |
+
`carousel_image_par` varchar(32) NOT NULL,
|
780 |
+
`carousel_enable_title` tinyint(1) NOT NULL,
|
781 |
+
`carousel_enable_autoplay` tinyint(1) NOT NULL,
|
782 |
+
`carousel_r_width` int(4) NOT NULL,
|
783 |
+
`carousel_fit_containerWidth` tinyint(1) NOT NULL,
|
784 |
+
`carousel_prev_next_butt` tinyint(1) NOT NULL,
|
785 |
+
`carousel_play_pause_butt` tinyint(1) NOT NULL,
|
786 |
+
`permissions` varchar(20) NOT NULL,
|
787 |
+
`facebook_app_id` varchar(64) NOT NULL,
|
788 |
+
`facebook_app_secret` varchar(64) NOT NULL,
|
789 |
PRIMARY KEY (`id`)
|
790 |
) DEFAULT CHARSET=utf8;";
|
791 |
$wpdb->query($bwg_option);
|
2330 |
));
|
2331 |
}
|
2332 |
$version = get_option("wd_bwg_version");
|
2333 |
+
$new_version = '1.2.59';
|
2334 |
if ($version && version_compare($version, $new_version, '<')) {
|
2335 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2336 |
bwg_update($version);
|
2378 |
|
2379 |
function bwg_update_hook() {
|
2380 |
$version = get_option("wd_bwg_version");
|
2381 |
+
$new_version = '1.2.59';
|
2382 |
if ($version && version_compare($version, $new_version, '<')) {
|
2383 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
2384 |
bwg_update($version);
|
2683 |
}
|
2684 |
}
|
2685 |
|
2686 |
+
function wd_bwg_version() {
|
2687 |
$version = get_option("wd_bwg_version");
|
2688 |
+
if ($version) {
|
2689 |
+
if (WD_BWG_PRO) {
|
2690 |
$version = substr_replace($version, '2', 0, 1);
|
2691 |
}
|
2692 |
}
|
2694 |
$version = '';
|
2695 |
}
|
2696 |
return $version;
|
|
|
2697 |
}
|
2698 |
|
2699 |
if (is_admin() && (!defined('DOING_AJAX') || !DOING_AJAX)) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://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, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -21,6 +21,11 @@ https://www.youtube.com/watch?v=4Mxg0FsFZZE&index=5&list=PLnxWPiY5tLFUsFI67acGEP
|
|
21 |
[Photo Gallery User Manual](https://web-dorado.com/wordpress-gallery-guide-step-1.html)
|
22 |
[Photo Gallery Support Forum](https://web-dorado.com/forum/photo-gallery.html)
|
23 |
|
|
|
|
|
|
|
|
|
|
|
24 |
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.
|
25 |
|
26 |
The plugin allows displaying galleries/albums within the following views:
|
@@ -208,6 +213,10 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
|
|
208 |
|
209 |
== Changelog ==
|
210 |
|
|
|
|
|
|
|
|
|
211 |
= 1.2.58 =
|
212 |
* Added: Translation in Icelandic. Thanks to Eggert Johannesson.
|
213 |
* Fixed: Serbian translation.
|
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, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.2.59
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
21 |
[Photo Gallery User Manual](https://web-dorado.com/wordpress-gallery-guide-step-1.html)
|
22 |
[Photo Gallery Support Forum](https://web-dorado.com/forum/photo-gallery.html)
|
23 |
|
24 |
+
|
25 |
+
= Photo Gallery Add-ons: =
|
26 |
+
[Facebook Integration Add-on](https://web-dorado.com/products/wordpress-photo-gallery-plugin/add-ons/facebook.html)
|
27 |
+
|
28 |
+
|
29 |
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.
|
30 |
|
31 |
The plugin allows displaying galleries/albums within the following views:
|
213 |
|
214 |
== Changelog ==
|
215 |
|
216 |
+
= 1.2.59 =
|
217 |
+
New: Facebook embed add-on.
|
218 |
+
Added: Add-ons page.
|
219 |
+
|
220 |
= 1.2.58 =
|
221 |
* Added: Translation in Icelandic. Thanks to Eggert Johannesson.
|
222 |
* Fixed: Serbian translation.
|
update/bwg_update.php
CHANGED
@@ -308,6 +308,12 @@ function bwg_update($version) {
|
|
308 |
if (version_compare($version, '1.2.48') == -1) {
|
309 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_image CHANGE `slug` `slug` longtext NOT NULL");
|
310 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
return;
|
312 |
}
|
313 |
|
308 |
if (version_compare($version, '1.2.48') == -1) {
|
309 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_image CHANGE `slug` `slug` longtext NOT NULL");
|
310 |
}
|
311 |
+
if (version_compare($version, '1.2.59') == -1) {
|
312 |
+
// Add facebook params.
|
313 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `facebook_app_id` varchar(64) NOT NULL DEFAULT ''");
|
314 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `facebook_app_secret` varchar(64) NOT NULL DEFAULT ''");
|
315 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "bwg_gallery` CHANGE `gallery_source` `gallery_source` varchar(256) NOT NULL");
|
316 |
+
}
|
317 |
return;
|
318 |
}
|
319 |
|