Version Description
- FIX: Obsolete Code Removed
- FIX: Major Bugs Fixed
- FIX: Install Script Code Optimized
- FIX: Wizard Page Error Fixed
- FIX: Code Optimized
Download this release
Release Info
Developer | contact-banker |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 4.0.1 |
Comparing to | |
See all releases |
Code changes from version 4.0.0 to 4.0.1
- assets/admin/layout/css/gallery-bank-custom.css +2 -2
- assets/admin/layout/css/tech-banker-custom-rtl.css +1 -1
- assets/admin/layout/css/tech-banker-custom.css +1 -1
- assets/global/img/icon.png +0 -0
- assets/global/plugins/jqueryFileTree/jqueryFileTree.css +15 -15
- assets/global/plugins/jqueryFileTree/jqueryFileTree.js +78 -67
- fonts/arial.ttf +0 -0
- gallery-bank.php +816 -867
- includes/footer.php +2153 -2153
- includes/translations.php +7 -8
- lib/action-library.php +1 -1
- lib/ftp-directories.php +25 -28
- lib/helper.php +18 -25
- lib/install-script.php +1179 -1147
- lib/sidebar-menu.php +46 -47
- license.txt +674 -0
- readme.txt +1782 -0
- uninstall.php +1 -2
- user-views/assets/lightboxes/foobox/js/foobox.free.min.js +1352 -1299
- user-views/includes/albums/queries.php +50 -61
- user-views/includes/galleries/queries.php +20 -23
- user-views/includes/galleries/scripts-before.php +16 -16
- user-views/includes/galleries/style-sheet.php +7 -7
- user-views/layouts/compact-album-layout/compact-album-layout.php +4 -4
- user-views/layouts/masonry-layout/masonry-layout.php +41 -42
- user-views/layouts/thumbnail-layout/thumbnail-layout.php +43 -44
- views/albums/add-album.php +6 -6
- views/albums/manage-albums.php +4 -4
- views/albums/sort-albums.php +3 -3
- views/feature-requests/feature-requests.php +104 -104
- views/galleries/add-gallery.php +43 -43
- views/galleries/manage-galleries.php +7 -7
- views/galleries/sort-galleries.php +3 -3
- views/general-settings/advertisement.php +254 -254
- views/general-settings/filters-settings.php +118 -274
assets/admin/layout/css/gallery-bank-custom.css
CHANGED
@@ -511,7 +511,7 @@
|
|
511 |
margin-top: 10px !important;
|
512 |
}
|
513 |
.custom-margin-top{
|
514 |
-
|
515 |
}
|
516 |
.custom-button-gallery
|
517 |
{
|
@@ -528,7 +528,7 @@
|
|
528 |
}
|
529 |
.custom-selected-folder
|
530 |
{
|
531 |
-
|
532 |
}
|
533 |
.premium-editions
|
534 |
{
|
511 |
margin-top: 10px !important;
|
512 |
}
|
513 |
.custom-margin-top{
|
514 |
+
margin-top: 14px;
|
515 |
}
|
516 |
.custom-button-gallery
|
517 |
{
|
528 |
}
|
529 |
.custom-selected-folder
|
530 |
{
|
531 |
+
background: #BDF none repeat scroll 0% 0% !important;
|
532 |
}
|
533 |
.premium-editions
|
534 |
{
|
assets/admin/layout/css/tech-banker-custom-rtl.css
CHANGED
@@ -724,5 +724,5 @@ div.dataTables_wrapper div.dataTables_length label
|
|
724 |
}
|
725 |
.custom-gallery-type
|
726 |
{
|
727 |
-
|
728 |
}
|
724 |
}
|
725 |
.custom-gallery-type
|
726 |
{
|
727 |
+
width: 60%;
|
728 |
}
|
assets/admin/layout/css/tech-banker-custom.css
CHANGED
@@ -702,5 +702,5 @@ div.dataTables_wrapper div.dataTables_length label
|
|
702 |
}
|
703 |
.custom-gallery-type
|
704 |
{
|
705 |
-
|
706 |
}
|
702 |
}
|
703 |
.custom-gallery-type
|
704 |
{
|
705 |
+
width: 60%;
|
706 |
}
|
assets/global/img/icon.png
CHANGED
Binary file
|
assets/global/plugins/jqueryFileTree/jqueryFileTree.css
CHANGED
@@ -1,28 +1,28 @@
|
|
1 |
UL.jqueryFileTree {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
}
|
8 |
|
9 |
UL.jqueryFileTree LI {
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
}
|
16 |
|
17 |
UL.jqueryFileTree A {
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
}
|
23 |
|
24 |
UL.jqueryFileTree A:hover {
|
25 |
-
|
26 |
}
|
27 |
|
28 |
/* Core Styles */
|
1 |
UL.jqueryFileTree {
|
2 |
+
font-family: Verdana, sans-serif;
|
3 |
+
font-size: 11px;
|
4 |
+
line-height: 18px;
|
5 |
+
padding: 0px;
|
6 |
+
margin: 0px;
|
7 |
}
|
8 |
|
9 |
UL.jqueryFileTree LI {
|
10 |
+
list-style: none;
|
11 |
+
padding: 0px;
|
12 |
+
padding-left: 20px;
|
13 |
+
margin: 0px;
|
14 |
+
white-space: nowrap;
|
15 |
}
|
16 |
|
17 |
UL.jqueryFileTree A {
|
18 |
+
color: #333;
|
19 |
+
text-decoration: none;
|
20 |
+
display: block;
|
21 |
+
padding: 0px 2px;
|
22 |
}
|
23 |
|
24 |
UL.jqueryFileTree A:hover {
|
25 |
+
background: #BDF;
|
26 |
}
|
27 |
|
28 |
/* Core Styles */
|
assets/global/plugins/jqueryFileTree/jqueryFileTree.js
CHANGED
@@ -30,75 +30,86 @@
|
|
30 |
// This plugin is dual-licensed under the GNU General Public License and the MIT License and
|
31 |
// is copyright 2008 A Beautiful Site, LLC.
|
32 |
//
|
33 |
-
if(jQuery)
|
|
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
-
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
|
104 |
-
})(jQuery);
|
30 |
// This plugin is dual-licensed under the GNU General Public License and the MIT License and
|
31 |
// is copyright 2008 A Beautiful Site, LLC.
|
32 |
//
|
33 |
+
if (jQuery)
|
34 |
+
(function ($) {
|
35 |
|
36 |
+
$.extend($.fn, {
|
37 |
+
fileTree: function (o, h) {
|
38 |
+
// Defaults
|
39 |
+
if (!o)
|
40 |
+
var o = {};
|
41 |
+
if (o.root == undefined)
|
42 |
+
o.root = '/';
|
43 |
+
if (o.script == undefined)
|
44 |
+
o.script = 'jqueryFileTree.php';
|
45 |
+
if (o.folderEvent == undefined)
|
46 |
+
o.folderEvent = 'click';
|
47 |
+
if (o.expandSpeed == undefined)
|
48 |
+
o.expandSpeed = -1;
|
49 |
+
if (o.collapseSpeed == undefined)
|
50 |
+
o.collapseSpeed = -1;
|
51 |
+
if (o.expandEasing == undefined)
|
52 |
+
o.expandEasing = null;
|
53 |
+
if (o.collapseEasing == undefined)
|
54 |
+
o.collapseEasing = null;
|
55 |
+
if (o.multiFolder == undefined)
|
56 |
+
o.multiFolder = true;
|
57 |
+
if (o.loadMessage == undefined)
|
58 |
+
o.loadMessage = 'Loading...';
|
59 |
|
60 |
+
$(this).each(function () {
|
61 |
|
62 |
+
function showTree(c, t) {
|
63 |
+
$(c).addClass('wait');
|
64 |
+
$(".jqueryFileTree.start").remove();
|
65 |
+
$.post(o.script, {dir: t}, function (data) {
|
66 |
+
$(c).find('.start').html('');
|
67 |
+
$(c).removeClass('wait').append(data);
|
68 |
+
if (o.root == t)
|
69 |
+
$(c).find('UL:hidden').show();
|
70 |
+
else
|
71 |
+
$(c).find('UL:hidden').slideDown({duration: o.expandSpeed, easing: o.expandEasing});
|
72 |
+
bindTree(c);
|
73 |
+
});
|
74 |
+
}
|
75 |
|
76 |
+
function bindTree(t) {
|
77 |
+
$(t).find('LI A').bind(o.folderEvent, function () {
|
78 |
+
if ($(this).parent().hasClass('directory')) {
|
79 |
+
if ($(this).parent().hasClass('collapsed')) {
|
80 |
+
// Expand
|
81 |
+
if (!o.multiFolder) {
|
82 |
+
$(this).parent().parent().find('UL').slideUp({duration: o.collapseSpeed, easing: o.collapseEasing});
|
83 |
+
$(this).parent().parent().find('LI.directory').removeClass('expanded').addClass('collapsed');
|
84 |
+
}
|
85 |
+
$(this).parent().find('UL').remove(); // cleanup
|
86 |
+
showTree($(this).parent(), escape($(this).attr('rel').match(/.*\//)));
|
87 |
+
$(this).parent().removeClass('collapsed').addClass('expanded');
|
88 |
+
} else {
|
89 |
+
// Collapse
|
90 |
+
$(this).parent().find('UL').slideUp({duration: o.collapseSpeed, easing: o.collapseEasing});
|
91 |
+
$(this).parent().removeClass('expanded').addClass('collapsed');
|
92 |
+
}
|
93 |
+
} else {
|
94 |
+
h($(this).attr('rel'));
|
95 |
+
}
|
96 |
+
return false;
|
97 |
+
});
|
98 |
+
// Prevent A from triggering the # on non-click events
|
99 |
+
if (o.folderEvent.toLowerCase != 'click')
|
100 |
+
$(t).find('LI A').bind('click', function () {
|
101 |
+
h($(this).attr('rel'));
|
102 |
+
//$(this).parents('#ux_wp_dir_browser').find('.active').removeClass('active');
|
103 |
+
//$(this).parent().addClass('active');
|
104 |
+
return false;
|
105 |
+
});
|
106 |
+
}
|
107 |
+
// Loading message
|
108 |
+
$(this).html('<ul class="jqueryFileTree start"><li class="wait">' + o.loadMessage + '<li></ul>');
|
109 |
+
// Get the initial file list
|
110 |
+
showTree($(this), escape(o.root));
|
111 |
+
});
|
112 |
+
}
|
113 |
+
});
|
114 |
|
115 |
+
})(jQuery);
|
fonts/arial.ttf
DELETED
Binary file
|
gallery-bank.php
CHANGED
@@ -1,118 +1,116 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*
|
4 |
* Plugin Name: Image Gallery by Gallery Bank - Responsive WordPress Photo Gallery Plugin
|
5 |
* Plugin URI: http://gallery-bank.tech-banker.com
|
6 |
* Description: Gallery Bank is an interactive WordPress gallery plugin, best fit for creative and corporate portfolio websites.
|
7 |
* Author: Tech Banker
|
8 |
* Author URI: http://gallery-bank.tech-banker.com
|
9 |
-
* Version: 4.0.
|
10 |
* License: GPLv3
|
11 |
* Text Domain: gallery-bank
|
12 |
* Domain Path: /languages
|
13 |
*/
|
14 |
if (!defined("ABSPATH")) {
|
15 |
-
|
16 |
} // Exit if accessed directly
|
17 |
|
18 |
/* Constant Declaration */
|
19 |
|
20 |
if (!defined("GALLERY_BANK_PLUGIN_DIR_PATH")) {
|
21 |
-
|
22 |
}
|
23 |
|
24 |
if (!defined("GALLERY_BANK_PLUGIN_DIRNAME")) {
|
25 |
-
|
26 |
}
|
27 |
|
28 |
if (!defined("GALLERY_BANK_MAIN_DIR")) {
|
29 |
-
|
30 |
}
|
31 |
|
32 |
if (!defined("GALLERY_BANK_UPLOAD_DIR")) {
|
33 |
-
|
34 |
}
|
35 |
|
36 |
if (!defined("GALLERY_BANK_THUMBS_CROPPED_DIR")) {
|
37 |
-
|
38 |
}
|
39 |
|
40 |
if (!defined("GALLERY_BANK_THUMBS_NON_CROPPED_DIR")) {
|
41 |
-
|
42 |
}
|
43 |
|
44 |
if (!defined("GALLERY_BANK_ORIGINAL_DIR")) {
|
45 |
-
|
46 |
}
|
47 |
|
48 |
if (!defined("GALLERY_BANK_ALBUMS_ORIGINAL_DIR")) {
|
49 |
-
|
50 |
}
|
51 |
if (!defined("GALLERY_BANK_USER_VIEWS_PATH")) {
|
52 |
-
|
53 |
}
|
54 |
|
55 |
if (!defined("GALLERY_BANK_PLUGIN_DIR_URL")) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
if (!defined("GALLERY_BANK_MAIN_URL")) {
|
60 |
-
|
61 |
}
|
62 |
|
63 |
if (!defined("GALLERY_BANK_ORIGINAL_URL")) {
|
64 |
-
|
65 |
}
|
66 |
|
67 |
if (!defined("GALLERY_BANK_THUMBS_CROPPED_URL")) {
|
68 |
-
|
69 |
}
|
70 |
|
71 |
if (!defined("GALLERY_BANK_THUMBS_NON_CROPPED_URL")) {
|
72 |
-
|
73 |
}
|
74 |
if (is_ssl()) {
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
} else {
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
}
|
90 |
if (!defined("tech_banker_stats_url")) {
|
91 |
-
|
92 |
}
|
93 |
if (!defined("gallery_bank_wizard_version_number")) {
|
94 |
-
|
95 |
}
|
96 |
|
97 |
if (!is_dir(GALLERY_BANK_MAIN_DIR)) {
|
98 |
-
|
99 |
}
|
100 |
if (!is_dir(GALLERY_BANK_UPLOAD_DIR)) {
|
101 |
-
|
102 |
}
|
103 |
if (!is_dir(GALLERY_BANK_THUMBS_NON_CROPPED_DIR)) {
|
104 |
-
|
105 |
}
|
106 |
if (!is_dir(GALLERY_BANK_THUMBS_CROPPED_DIR)) {
|
107 |
-
|
108 |
}
|
109 |
if (!is_dir(GALLERY_BANK_ORIGINAL_DIR)) {
|
110 |
-
|
111 |
}
|
112 |
|
113 |
$memory_limit_gallery_bank = intval(ini_get("memory_limit"));
|
114 |
if (!extension_loaded('suhosin') && $memory_limit_gallery_bank < 512) {
|
115 |
-
|
116 |
}
|
117 |
@ini_set("max_execution_time", 6000);
|
118 |
|
@@ -123,31 +121,29 @@ if (!extension_loaded('suhosin') && $memory_limit_gallery_bank < 512) {
|
|
123 |
Created On: 01-06-2017 09:00
|
124 |
Created By: Tech Banker Team
|
125 |
*/
|
126 |
-
|
127 |
function install_script_for_gallery_bank() {
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/install-script.php")) {
|
136 |
-
include GALLERY_BANK_PLUGIN_DIR_PATH . "lib/install-script.php";
|
137 |
-
}
|
138 |
-
}
|
139 |
-
restore_current_blog();
|
140 |
-
}
|
141 |
-
} else {
|
142 |
-
$version = get_option("gallery-bank-pro-edition");
|
143 |
-
if ($version < "4.0") {
|
144 |
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/install-script.php")) {
|
145 |
-
|
146 |
}
|
147 |
-
|
148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
}
|
150 |
-
|
151 |
/*
|
152 |
Function Name: gallery_bank
|
153 |
Parameter: no
|
@@ -155,12 +151,10 @@ function install_script_for_gallery_bank() {
|
|
155 |
Created On: 01-06-2017 09:00
|
156 |
Created By: Tech Banker Team
|
157 |
*/
|
158 |
-
|
159 |
function gallery_bank_parent() {
|
160 |
-
|
161 |
-
|
162 |
}
|
163 |
-
|
164 |
/*
|
165 |
Function Name: gallery_bank_meta
|
166 |
Parameter: no
|
@@ -168,12 +162,10 @@ function gallery_bank_parent() {
|
|
168 |
Created On: 01-06-2017 09:00
|
169 |
Created By: Tech Banker Team
|
170 |
*/
|
171 |
-
|
172 |
function gallery_bank_meta() {
|
173 |
-
|
174 |
-
|
175 |
}
|
176 |
-
|
177 |
/*
|
178 |
Function Name: check_user_roles_gallery_bank
|
179 |
Parameters: Yes($user)
|
@@ -181,12 +173,10 @@ function gallery_bank_meta() {
|
|
181 |
Created On: 01-06-2017 09:00
|
182 |
Created By: Tech Banker Team
|
183 |
*/
|
184 |
-
|
185 |
function check_user_roles_gallery_bank($user = null) {
|
186 |
-
|
187 |
-
|
188 |
}
|
189 |
-
|
190 |
/*
|
191 |
Function Name: get_others_capabilities_gallery_bank
|
192 |
Parameters: No
|
@@ -194,806 +184,769 @@ function check_user_roles_gallery_bank($user = null) {
|
|
194 |
Created On: 01-06-2017 09:00
|
195 |
Created By: Tech Banker Team
|
196 |
*/
|
197 |
-
|
198 |
function get_others_capabilities_gallery_bank() {
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
}
|
206 |
}
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
|
|
220 |
}
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
}
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
wp_enqueue_style("jqueryFileTree.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/jqueryFileTree/jqueryFileTree.css");
|
335 |
-
wp_enqueue_style("simple-line-icons.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/icons/icons.css");
|
336 |
-
wp_enqueue_style("components.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/css/components.css");
|
337 |
-
wp_enqueue_style("gallery-bank-custom.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/gallery-bank-custom.css");
|
338 |
-
wp_enqueue_style("gallery-bank-premium-edition.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/premium-edition.css");
|
339 |
-
if (is_rtl()) {
|
340 |
-
wp_enqueue_style("gallery-bank-bootstrap.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/css/custom-rtl.css");
|
341 |
-
wp_enqueue_style("gallery-bank-layout-rtl.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/layout-rtl.css");
|
342 |
-
wp_enqueue_style("tech-banker-custom-rtl.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/tech-banker-custom-rtl.css");
|
343 |
-
} else {
|
344 |
-
wp_enqueue_style("gallery-bank-bootstrap.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/css/custom.css");
|
345 |
-
wp_enqueue_style("gallery-bank-layout.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/layout.css");
|
346 |
-
wp_enqueue_style("tech-banker-custom.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/tech-banker-custom.css");
|
347 |
-
}
|
348 |
-
wp_enqueue_script("jquery.clipboard.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/clipboard/clipboard.js");
|
349 |
-
wp_enqueue_style("gallery-bank-plugins.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/css/plugins.css");
|
350 |
-
wp_enqueue_style("gallery-bank-default.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/themes/default.css");
|
351 |
-
wp_enqueue_style("gallery-bank-toastr.min.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/toastr/toastr.css");
|
352 |
-
if (in_array($page_url, $datatable_pages_gallery_bank)) {
|
353 |
-
wp_enqueue_script("jquery.datatables.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/datatables/media/js/jquery.datatables.js");
|
354 |
-
wp_enqueue_script("jquery.fngetfilterednodes.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/datatables/media/js/fngetfilterednodes.js");
|
355 |
-
wp_enqueue_style("gallery-bank-datatables.foundation.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/datatables/media/css/datatables.foundation.css");
|
356 |
-
}
|
357 |
-
if (in_array($page_url, $layout_pages_gallery_bank)) {
|
358 |
-
wp_enqueue_script("colpick.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/colorpicker/colpick.js");
|
359 |
-
wp_enqueue_style("colpick.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/colorpicker/colpick.css");
|
360 |
-
}
|
361 |
-
if ($page_url == "gb_sort_galleries" || $page_url == "gb_sort_albums") {
|
362 |
-
wp_enqueue_script("plupload.full.min.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/pluploader/js/plupload.full.min.js", array("jquery-ui-draggable", "jquery-ui-sortable", "jquery-ui-dialog", "jquery-ui-widget"), false);
|
363 |
-
}
|
364 |
-
}
|
365 |
}
|
366 |
-
if (
|
367 |
-
|
368 |
-
|
369 |
-
wp_enqueue_style("jquery.ui.plupload.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/pluploader/css/jquery.ui.plupload.css");
|
370 |
-
wp_enqueue_style("jquery-ui.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/pluploader/css/jquery-ui.css");
|
371 |
-
wp_enqueue_script("bootstrap-hover-dropdown.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/js/bootstrap-hover-dropdown.js");
|
372 |
-
wp_enqueue_script("bootstrap-modal.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/modal/js/bootstrap-modal.js");
|
373 |
-
wp_enqueue_script("bootstrap-modalmanager.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/modal/js/bootstrap-modalmanager.js");
|
374 |
-
wp_enqueue_style("bootstrap-modal.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/modal/css/bootstrap-modal.css");
|
375 |
-
wp_enqueue_style("bootstrap-modal-bs3patch.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/modal/css/bootstrap-modal-bs3patch.css");
|
376 |
}
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
WHERE meta_key = %s", "roles_and_capabilities_settings"
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
function top_bar_menu_for_gallery_bank() {
|
473 |
-
global $wpdb, $current_user, $wp_admin_bar;
|
474 |
-
$user_role_permission = get_users_capabilities_gallery_bank();
|
475 |
-
$role_capabilities = $wpdb->get_var
|
476 |
-
(
|
477 |
-
$wpdb->prepare
|
478 |
-
(
|
479 |
-
"SELECT meta_value from " . gallery_bank_meta() . "
|
480 |
WHERE " . gallery_bank_meta() . " . meta_key = %s", "roles_and_capabilities_settings"
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
"row_height" => "",
|
643 |
-
), $atts));
|
644 |
-
if (!is_feed()) {
|
645 |
-
if (isset($type) && $type != "") {
|
646 |
-
switch ($type) {
|
647 |
-
case "images":
|
648 |
-
$source_type = "gallery";
|
649 |
-
$id = isset($album_id) ? $album_id : 0;
|
650 |
-
break;
|
651 |
-
default:
|
652 |
-
$source_type = "album";
|
653 |
-
$album_type = "compact_album";
|
654 |
-
$id = isset($show_albums) && $show_albums != "" ? $show_albums : $album_id;
|
655 |
-
break;
|
656 |
-
}
|
657 |
-
$gallery_title = $album_title == "true" ? "show" : "hide";
|
658 |
-
$thumbnail_title = $title == "true" ? "show" : "hide";
|
659 |
-
$thumbnail_description = $desc == "true" ? "show" : "hide";
|
660 |
-
$lightbox_type = "foo_box_free_edition";
|
661 |
-
switch ($format) {
|
662 |
-
case "thumbnail":
|
663 |
-
$layout_type = "thumbnail_layout";
|
664 |
-
break;
|
665 |
-
case "masonry":
|
666 |
-
$layout_type = "masonry_layout";
|
667 |
-
break;
|
668 |
-
}
|
669 |
-
switch ($sort_by) {
|
670 |
-
case "title":
|
671 |
-
$sort_images_by = "image_title";
|
672 |
-
break;
|
673 |
-
case "date":
|
674 |
-
$sort_images_by = "upload_date";
|
675 |
-
break;
|
676 |
-
case "pic_name":
|
677 |
-
$sort_images_by = "image_name";
|
678 |
-
break;
|
679 |
-
case "sort_order":
|
680 |
-
$sort_images_by = "sort_order";
|
681 |
-
break;
|
682 |
-
case "random":
|
683 |
-
$sort_images_by = "random_order";
|
684 |
-
break;
|
685 |
-
case "pic_id":
|
686 |
-
$sort_images_by = "image_name";
|
687 |
-
break;
|
688 |
-
}
|
689 |
-
$animation_effects = $animation_effect == "" ? "fadeIn" : $animation_effect;
|
690 |
-
}
|
691 |
-
if (isset($_REQUEST["gallery_id"])) {
|
692 |
-
$source_type = "gallery";
|
693 |
-
$id = intval($_REQUEST["gallery_id"]);
|
694 |
-
}
|
695 |
-
|
696 |
-
if (isset($source_type)) {
|
697 |
-
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/common-variables.php")) {
|
698 |
-
require GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/common-variables.php";
|
699 |
-
}
|
700 |
-
switch (esc_attr($source_type)) {
|
701 |
-
case "gallery" :
|
702 |
-
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/galleries/structure.php")) {
|
703 |
-
require GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/galleries/structure.php";
|
704 |
-
}
|
705 |
-
break;
|
706 |
-
case "album" :
|
707 |
-
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/albums/structure.php")) {
|
708 |
-
require GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/albums/structure.php";
|
709 |
-
}
|
710 |
-
break;
|
711 |
-
}
|
712 |
-
}
|
713 |
-
$content = parse_shortcode_content_gallery_bank($content);
|
714 |
-
return $content;
|
715 |
-
}
|
716 |
-
}
|
717 |
-
|
718 |
-
/*
|
719 |
-
Function Name: helper_file_for_gallery_bank_frontend
|
720 |
-
Parameter: no
|
721 |
-
Description: This function is used to call helper file for gallery bank frontend
|
722 |
-
Created On: 01-06-2017 09:00
|
723 |
-
Created By: Tech Banker Team
|
724 |
-
*/
|
725 |
-
|
726 |
-
function helper_file_for_gallery_bank_frontend() {
|
727 |
-
global $wpdb;
|
728 |
-
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/lib/helper.php")) {
|
729 |
-
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/lib/helper.php";
|
730 |
-
}
|
731 |
-
}
|
732 |
-
|
733 |
-
/*
|
734 |
-
Function Name: user_functions_gallery_bank
|
735 |
-
Parameter: No
|
736 |
-
Description: This function is used to call user_functions_gallery_bank
|
737 |
-
Created On: 01-06-2017 09:00
|
738 |
-
Created By: Tech Banker Team
|
739 |
-
*/
|
740 |
-
|
741 |
-
function user_functions_gallery_bank() {
|
742 |
-
helper_file_for_gallery_bank_frontend();
|
743 |
-
plugin_load_textdomain_gallery_bank();
|
744 |
-
}
|
745 |
-
|
746 |
-
/*
|
747 |
-
Function Name: add_gallery_bank_shortcode_button
|
748 |
-
Parameter: No
|
749 |
-
Description: This function is used to create the button in pages and posts.
|
750 |
-
Created On: 05-06-2017 10:29
|
751 |
-
Created By: Tech Banker Team
|
752 |
-
*/
|
753 |
-
|
754 |
-
function add_gallery_bank_shortcode_button() {
|
755 |
-
echo '<a href="admin.php?page=gb_thumbnail_layout_shortcode" target="_blank" id="insert-gallery-bank-shortcode" class="button" >' . '<img style="width:16px; height:16px; vertical-align:middle; margin-right:3px; margin-top:5px; float:left;" src=' . GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/img/icon.png" . '>' . __("Add Gallery Bank Shortcode", "gallery-bank") . '</a>';
|
756 |
-
}
|
757 |
-
|
758 |
-
/*
|
759 |
-
Class Name: gallery_bank_widget
|
760 |
-
Parameter: No
|
761 |
-
Description: This class is used to add widget.
|
762 |
-
Created On: 05-06-2017 11:14
|
763 |
-
Created By: Tech Banker Team
|
764 |
-
*/
|
765 |
-
|
766 |
-
class gallery_bank_widget extends WP_Widget {
|
767 |
-
|
768 |
-
function __construct() {
|
769 |
-
parent::__construct(
|
770 |
-
"gallery_bank_widget", __("Gallery Bank", "gallery-bank"), array("description" => __("Display Gallery Bank", "gallery-bank"),)
|
771 |
-
);
|
772 |
-
}
|
773 |
-
|
774 |
-
/*
|
775 |
-
Function Name: form
|
776 |
-
Parameters: Yes($instance)
|
777 |
-
Description: This function is used to add widget form.
|
778 |
-
Created On: 05-06-2017 11:14
|
779 |
-
Created By: Tech Banker Team
|
780 |
-
*/
|
781 |
-
|
782 |
-
public function form($instance) {
|
783 |
-
global $wpdb;
|
784 |
-
$user_role_permission = get_users_capabilities_gallery_bank();
|
785 |
-
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/galleries/translations.php")) {
|
786 |
-
include GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/galleries/translations.php";
|
787 |
}
|
788 |
-
|
789 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
790 |
}
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
|
|
|
|
|
|
807 |
}
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
*/
|
819 |
-
|
820 |
-
public function update($new_instance, $old_instance) {
|
821 |
-
$instance = $old_instance;
|
822 |
-
$instance["shortcode"] = $new_instance["ux_txt_gallery_bank_shortcode"];
|
823 |
-
return $instance;
|
824 |
-
}
|
825 |
-
|
826 |
-
}
|
827 |
-
|
828 |
-
/*
|
829 |
-
Function Name: deactivation_function_for_gallery_bank
|
830 |
-
Parameters: No
|
831 |
-
Description: This function is used for executing the code on deactivation.
|
832 |
-
Created On: 13-06-2017 11:00
|
833 |
-
Created by: Tech Banker Team
|
834 |
-
*/
|
835 |
-
|
836 |
-
function deactivation_function_for_gallery_bank() {
|
837 |
-
$type = get_option("gallery-bank-wizard-set-up");
|
838 |
-
if ($type == "opt_in") {
|
839 |
-
$plugin_info_gallery_bank = new plugin_info_gallery_bank();
|
840 |
-
global $wp_version, $wpdb;
|
841 |
-
$url = tech_banker_stats_url . "/wp-admin/admin-ajax.php";
|
842 |
-
$theme_details = array();
|
843 |
-
|
844 |
-
if ($wp_version >= 3.4) {
|
845 |
-
$active_theme = wp_get_theme();
|
846 |
-
$theme_details["theme_name"] = strip_tags($active_theme->Name);
|
847 |
-
$theme_details["theme_version"] = strip_tags($active_theme->Version);
|
848 |
-
$theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
|
849 |
}
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
$plugin_stat_data["php_version"] = esc_html(phpversion());
|
862 |
-
$plugin_stat_data["mysql_version"] = $wpdb->db_version();
|
863 |
-
$plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
|
864 |
-
$plugin_stat_data["operating_system"] = PHP_OS . " (" . PHP_INT_SIZE * 8 . ") BIT";
|
865 |
-
$plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
|
866 |
-
$plugin_stat_data["extensions"] = get_loaded_extensions();
|
867 |
-
$plugin_stat_data["plugins"] = $plugin_info_gallery_bank->get_plugin_info_gallery_bank();
|
868 |
-
$plugin_stat_data["themes"] = $theme_details;
|
869 |
-
|
870 |
-
$response = wp_safe_remote_post($url, array
|
871 |
-
(
|
872 |
-
"method" => "POST",
|
873 |
-
"timeout" => 45,
|
874 |
-
"redirection" => 5,
|
875 |
-
"httpversion" => "1.0",
|
876 |
-
"blocking" => true,
|
877 |
-
"headers" => array(),
|
878 |
-
"body" => array("data" => serialize($plugin_stat_data), "site_id" => get_option("gb_tech_banker_site_id") != "" ? get_option("gb_tech_banker_site_id") : "", "action" => "plugin_analysis_data")
|
879 |
-
));
|
880 |
-
if (!is_wp_error($response)) {
|
881 |
-
$response["body"] != "" ? update_option("gb_tech_banker_site_id", $response["body"]) : "";
|
882 |
}
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
997 |
}
|
998 |
// Hooks
|
999 |
|
@@ -1019,26 +972,22 @@ add_action("admin_init", "install_script_for_gallery_bank");
|
|
1019 |
Created On: 01-06-2017 09:00
|
1020 |
Created By: Tech Banker Team
|
1021 |
*/
|
1022 |
-
|
1023 |
function plugin_activate_gallery_bank() {
|
1024 |
-
|
1025 |
}
|
1026 |
-
|
1027 |
/*
|
1028 |
Class Name: gallery_bank_redirect
|
1029 |
Description: This function is used to redirect to manage maps menu.
|
1030 |
Created On: 01-06-2017 09:00
|
1031 |
Created By: Tech Banker Team
|
1032 |
*/
|
1033 |
-
|
1034 |
function gallery_bank_redirect() {
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
}
|
1041 |
-
|
1042 |
/* deactivation_function_for_gallery_bank
|
1043 |
Description: This hook is used to sets the deactivation hook for a plugin.
|
1044 |
Created On: 13-06-2017 11:08
|
1 |
<?php
|
|
|
2 |
/*
|
3 |
* Plugin Name: Image Gallery by Gallery Bank - Responsive WordPress Photo Gallery Plugin
|
4 |
* Plugin URI: http://gallery-bank.tech-banker.com
|
5 |
* Description: Gallery Bank is an interactive WordPress gallery plugin, best fit for creative and corporate portfolio websites.
|
6 |
* Author: Tech Banker
|
7 |
* Author URI: http://gallery-bank.tech-banker.com
|
8 |
+
* Version: 4.0.1
|
9 |
* License: GPLv3
|
10 |
* Text Domain: gallery-bank
|
11 |
* Domain Path: /languages
|
12 |
*/
|
13 |
if (!defined("ABSPATH")) {
|
14 |
+
exit;
|
15 |
} // Exit if accessed directly
|
16 |
|
17 |
/* Constant Declaration */
|
18 |
|
19 |
if (!defined("GALLERY_BANK_PLUGIN_DIR_PATH")) {
|
20 |
+
define("GALLERY_BANK_PLUGIN_DIR_PATH", plugin_dir_path(__FILE__));
|
21 |
}
|
22 |
|
23 |
if (!defined("GALLERY_BANK_PLUGIN_DIRNAME")) {
|
24 |
+
define("GALLERY_BANK_PLUGIN_DIRNAME", plugin_basename(dirname(__FILE__)));
|
25 |
}
|
26 |
|
27 |
if (!defined("GALLERY_BANK_MAIN_DIR")) {
|
28 |
+
define("GALLERY_BANK_MAIN_DIR", dirname(dirname(dirname(__FILE__))) . "/gallery-bank/");
|
29 |
}
|
30 |
|
31 |
if (!defined("GALLERY_BANK_UPLOAD_DIR")) {
|
32 |
+
define("GALLERY_BANK_UPLOAD_DIR", GALLERY_BANK_MAIN_DIR . "original-uploads/");
|
33 |
}
|
34 |
|
35 |
if (!defined("GALLERY_BANK_THUMBS_CROPPED_DIR")) {
|
36 |
+
define("GALLERY_BANK_THUMBS_CROPPED_DIR", GALLERY_BANK_MAIN_DIR . "thumbs-cropped/");
|
37 |
}
|
38 |
|
39 |
if (!defined("GALLERY_BANK_THUMBS_NON_CROPPED_DIR")) {
|
40 |
+
define("GALLERY_BANK_THUMBS_NON_CROPPED_DIR", GALLERY_BANK_MAIN_DIR . "thumbs-non-cropped/");
|
41 |
}
|
42 |
|
43 |
if (!defined("GALLERY_BANK_ORIGINAL_DIR")) {
|
44 |
+
define("GALLERY_BANK_ORIGINAL_DIR", GALLERY_BANK_MAIN_DIR . "original-images/");
|
45 |
}
|
46 |
|
47 |
if (!defined("GALLERY_BANK_ALBUMS_ORIGINAL_DIR")) {
|
48 |
+
define("GALLERY_BANK_ALBUMS_ORIGINAL_DIR", GALLERY_BANK_MAIN_DIR . "albums-original-images/");
|
49 |
}
|
50 |
if (!defined("GALLERY_BANK_USER_VIEWS_PATH")) {
|
51 |
+
define("GALLERY_BANK_USER_VIEWS_PATH", GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/");
|
52 |
}
|
53 |
|
54 |
if (!defined("GALLERY_BANK_PLUGIN_DIR_URL")) {
|
55 |
+
define("GALLERY_BANK_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
|
56 |
}
|
57 |
|
58 |
if (!defined("GALLERY_BANK_MAIN_URL")) {
|
59 |
+
define("GALLERY_BANK_MAIN_URL", content_url() . "/gallery-bank/");
|
60 |
}
|
61 |
|
62 |
if (!defined("GALLERY_BANK_ORIGINAL_URL")) {
|
63 |
+
define("GALLERY_BANK_ORIGINAL_URL", content_url() . "/gallery-bank/original-images/");
|
64 |
}
|
65 |
|
66 |
if (!defined("GALLERY_BANK_THUMBS_CROPPED_URL")) {
|
67 |
+
define("GALLERY_BANK_THUMBS_CROPPED_URL", content_url() . "/gallery-bank/thumbs-cropped/");
|
68 |
}
|
69 |
|
70 |
if (!defined("GALLERY_BANK_THUMBS_NON_CROPPED_URL")) {
|
71 |
+
define("GALLERY_BANK_THUMBS_NON_CROPPED_URL", content_url() . "/gallery-bank/thumbs-non-cropped/");
|
72 |
}
|
73 |
if (is_ssl()) {
|
74 |
+
if (!defined("tech_banker_url")) {
|
75 |
+
define("tech_banker_url", "https://tech-banker.com");
|
76 |
+
}
|
77 |
+
if (!defined("tech_banker_gallery_url")) {
|
78 |
+
define("tech_banker_gallery_url", "https://gallery-bank.tech-banker.com/");
|
79 |
+
}
|
|
|
80 |
} else {
|
81 |
+
if (!defined("tech_banker_url")) {
|
82 |
+
define("tech_banker_url", "http://tech-banker.com");
|
83 |
+
}
|
84 |
+
if (!defined("tech_banker_gallery_url")) {
|
85 |
+
define("tech_banker_gallery_url", "http://gallery-bank.tech-banker.com/");
|
86 |
+
}
|
87 |
}
|
88 |
if (!defined("tech_banker_stats_url")) {
|
89 |
+
define("tech_banker_stats_url", "http://stats.tech-banker-services.org");
|
90 |
}
|
91 |
if (!defined("gallery_bank_wizard_version_number")) {
|
92 |
+
define("gallery_bank_wizard_version_number", "4.0.1");
|
93 |
}
|
94 |
|
95 |
if (!is_dir(GALLERY_BANK_MAIN_DIR)) {
|
96 |
+
wp_mkdir_p(GALLERY_BANK_MAIN_DIR);
|
97 |
}
|
98 |
if (!is_dir(GALLERY_BANK_UPLOAD_DIR)) {
|
99 |
+
wp_mkdir_p(GALLERY_BANK_UPLOAD_DIR);
|
100 |
}
|
101 |
if (!is_dir(GALLERY_BANK_THUMBS_NON_CROPPED_DIR)) {
|
102 |
+
wp_mkdir_p(GALLERY_BANK_THUMBS_NON_CROPPED_DIR);
|
103 |
}
|
104 |
if (!is_dir(GALLERY_BANK_THUMBS_CROPPED_DIR)) {
|
105 |
+
wp_mkdir_p(GALLERY_BANK_THUMBS_CROPPED_DIR);
|
106 |
}
|
107 |
if (!is_dir(GALLERY_BANK_ORIGINAL_DIR)) {
|
108 |
+
wp_mkdir_p(GALLERY_BANK_ORIGINAL_DIR);
|
109 |
}
|
110 |
|
111 |
$memory_limit_gallery_bank = intval(ini_get("memory_limit"));
|
112 |
if (!extension_loaded('suhosin') && $memory_limit_gallery_bank < 512) {
|
113 |
+
@ini_set("memory_limit", "1024M");
|
114 |
}
|
115 |
@ini_set("max_execution_time", 6000);
|
116 |
|
121 |
Created On: 01-06-2017 09:00
|
122 |
Created By: Tech Banker Team
|
123 |
*/
|
|
|
124 |
function install_script_for_gallery_bank() {
|
125 |
+
global $wpdb;
|
126 |
+
if (is_multisite()) {
|
127 |
+
$blog_ids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
|
128 |
+
foreach ($blog_ids as $blog_id) {
|
129 |
+
switch_to_blog($blog_id);
|
130 |
+
$version = get_option("gallery-bank-pro-edition");
|
131 |
+
if ($version < "4.0") {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/install-script.php")) {
|
133 |
+
include GALLERY_BANK_PLUGIN_DIR_PATH . "lib/install-script.php";
|
134 |
}
|
135 |
+
}
|
136 |
+
restore_current_blog();
|
137 |
+
}
|
138 |
+
} else {
|
139 |
+
$version = get_option("gallery-bank-pro-edition");
|
140 |
+
if ($version < "4.0") {
|
141 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/install-script.php")) {
|
142 |
+
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "lib/install-script.php";
|
143 |
+
}
|
144 |
+
}
|
145 |
+
}
|
146 |
}
|
|
|
147 |
/*
|
148 |
Function Name: gallery_bank
|
149 |
Parameter: no
|
151 |
Created On: 01-06-2017 09:00
|
152 |
Created By: Tech Banker Team
|
153 |
*/
|
|
|
154 |
function gallery_bank_parent() {
|
155 |
+
global $wpdb;
|
156 |
+
return $wpdb->prefix . "gallery_bank";
|
157 |
}
|
|
|
158 |
/*
|
159 |
Function Name: gallery_bank_meta
|
160 |
Parameter: no
|
162 |
Created On: 01-06-2017 09:00
|
163 |
Created By: Tech Banker Team
|
164 |
*/
|
|
|
165 |
function gallery_bank_meta() {
|
166 |
+
global $wpdb;
|
167 |
+
return $wpdb->prefix . "gallery_bank_meta";
|
168 |
}
|
|
|
169 |
/*
|
170 |
Function Name: check_user_roles_gallery_bank
|
171 |
Parameters: Yes($user)
|
173 |
Created On: 01-06-2017 09:00
|
174 |
Created By: Tech Banker Team
|
175 |
*/
|
|
|
176 |
function check_user_roles_gallery_bank($user = null) {
|
177 |
+
$user = $user ? new WP_User($user) : wp_get_current_user();
|
178 |
+
return $user->roles ? $user->roles[0] : false;
|
179 |
}
|
|
|
180 |
/*
|
181 |
Function Name: get_others_capabilities_gallery_bank
|
182 |
Parameters: No
|
184 |
Created On: 01-06-2017 09:00
|
185 |
Created By: Tech Banker Team
|
186 |
*/
|
|
|
187 |
function get_others_capabilities_gallery_bank() {
|
188 |
+
$user_capabilities = array();
|
189 |
+
if (function_exists("get_editable_roles")) {
|
190 |
+
foreach (get_editable_roles() as $role_name => $role_info) {
|
191 |
+
foreach ($role_info["capabilities"] as $capability => $values) {
|
192 |
+
if (!in_array($capability, $user_capabilities)) {
|
193 |
+
array_push($user_capabilities, $capability);
|
|
|
194 |
}
|
195 |
+
}
|
196 |
+
}
|
197 |
+
} else {
|
198 |
+
$user_capabilities = array(
|
199 |
+
"manage_options",
|
200 |
+
"edit_plugins",
|
201 |
+
"edit_posts",
|
202 |
+
"publish_posts",
|
203 |
+
"publish_pages",
|
204 |
+
"edit_pages",
|
205 |
+
"read"
|
206 |
+
);
|
207 |
+
}
|
208 |
+
return $user_capabilities;
|
209 |
}
|
210 |
+
if (is_admin()) {
|
211 |
+
|
212 |
+
/*
|
213 |
+
Function Name: backend_js_css_for_gallery_bank
|
214 |
+
Parameter: no
|
215 |
+
Description: This is used for calling a js and css backend function.
|
216 |
+
Created On: 01-06-2017 09:00
|
217 |
+
Created By: Tech Banker Team
|
218 |
+
*/
|
219 |
+
function backend_js_css_for_gallery_bank($hook) {
|
220 |
+
$pages_gallery_bank = array(
|
221 |
+
"gb_wizard_gallery_bank",
|
222 |
+
"gallery_bank",
|
223 |
+
"gb_other_settings",
|
224 |
+
"gb_add_gallery",
|
225 |
+
"gb_sort_galleries",
|
226 |
+
"gb_manage_albums",
|
227 |
+
"gb_add_album",
|
228 |
+
"gb_sort_albums",
|
229 |
+
"gb_add_tag",
|
230 |
+
"gb_manage_tags",
|
231 |
+
"gb_thumbnail_layout",
|
232 |
+
"gb_masonry_layout",
|
233 |
+
"gb_slideshow_layout",
|
234 |
+
"gb_image_browser_layout",
|
235 |
+
"gb_justified_grid_layout",
|
236 |
+
"gb_blog_style_layout",
|
237 |
+
"gb_compact_album_layout",
|
238 |
+
"gb_extended_album_layout",
|
239 |
+
"gb_custom_css",
|
240 |
+
"gb_fancy_box",
|
241 |
+
"gb_color_box",
|
242 |
+
"gb_foo_box_free_edition",
|
243 |
+
"gb_nivo_lightbox",
|
244 |
+
"gb_lightcase",
|
245 |
+
"gb_global_options",
|
246 |
+
"gb_filter_settings",
|
247 |
+
"gb_lazy_load_settings",
|
248 |
+
"gb_search_box_settings",
|
249 |
+
"gb_order_by_settings",
|
250 |
+
"gb_page_navigation",
|
251 |
+
"gb_watermark_settings",
|
252 |
+
"gb_advertisement",
|
253 |
+
"gb_thumbnail_layout_shortcode",
|
254 |
+
"gb_masonry_layout_shortcode",
|
255 |
+
"gb_slideshow_layout_shortcode",
|
256 |
+
"gb_image_browser_layout_shortcode",
|
257 |
+
"gb_justified_grid_layout_shortcode",
|
258 |
+
"gb_blog_style_layout_shortcode",
|
259 |
+
"gb_roles_and_capabilities",
|
260 |
+
"gb_feature_requests",
|
261 |
+
"gb_system_information",
|
262 |
+
"post",
|
263 |
+
"gb_upgrade"
|
264 |
+
);
|
265 |
+
$datatable_pages_gallery_bank = array(
|
266 |
+
"gallery_bank",
|
267 |
+
"gb_manage_albums",
|
268 |
+
"gb_add_gallery",
|
269 |
+
"gb_manage_tags",
|
270 |
+
"gb_roles_and_capabilities"
|
271 |
+
);
|
272 |
+
$layout_pages_gallery_bank = array(
|
273 |
+
"gb_thumbnail_layout",
|
274 |
+
"gb_masonry_layout",
|
275 |
+
"gb_slideshow_layout",
|
276 |
+
"gb_image_browser_layout",
|
277 |
+
"gb_justified_grid_layout",
|
278 |
+
"gb_blog_style_layout",
|
279 |
+
"gb_compact_album_layout",
|
280 |
+
"gb_extended_album_layout",
|
281 |
+
"gb_custom_css",
|
282 |
+
"gb_fancy_box",
|
283 |
+
"gb_color_box",
|
284 |
+
"gb_foo_box_free_edition",
|
285 |
+
"gb_nivo_lightbox",
|
286 |
+
"gb_lightcase",
|
287 |
+
"gb_global_options",
|
288 |
+
"gb_filter_settings",
|
289 |
+
"gb_lazy_load_settings",
|
290 |
+
"gb_search_box_settings",
|
291 |
+
"gb_order_by_settings",
|
292 |
+
"gb_page_navigation",
|
293 |
+
"gb_watermark_settings",
|
294 |
+
"gb_advertisement"
|
295 |
+
);
|
296 |
+
if (strpos($hook, "post") !== false) {
|
297 |
+
wp_enqueue_script("jquery");
|
298 |
+
wp_enqueue_script("custom.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/js/custom.js");
|
299 |
+
wp_enqueue_script("toastr.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/toastr/toastr.js");
|
300 |
+
wp_enqueue_style("gallery-bank-custom.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/gallery-bank-custom.css");
|
301 |
+
if (is_rtl()) {
|
302 |
+
wp_enqueue_style("gallery-bank-bootstrap.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/css/custom-rtl.css");
|
303 |
+
wp_enqueue_style("tech-banker-custom-rtl.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/tech-banker-custom-rtl.css");
|
304 |
+
} else {
|
305 |
+
wp_enqueue_style("gallery-bank-bootstrap.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/css/custom.css");
|
306 |
+
wp_enqueue_style("tech-banker-custom.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/tech-banker-custom.css");
|
307 |
+
}
|
308 |
+
wp_enqueue_style("gallery-bank-toastr.min.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/toastr/toastr.css");
|
309 |
+
}
|
310 |
+
if (isset($_REQUEST["page"])) {
|
311 |
+
$page_url = $_REQUEST["page"];
|
312 |
+
if (in_array($page_url, $pages_gallery_bank)) {
|
313 |
+
wp_enqueue_script("jquery");
|
314 |
+
wp_enqueue_script("custom.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/js/custom.js");
|
315 |
+
wp_enqueue_script("jquery.validate.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/validation/jquery.validate.js");
|
316 |
+
wp_enqueue_script("toastr.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/toastr/toastr.js");
|
317 |
+
wp_enqueue_script("jqueryFileTree.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/jqueryFileTree/jqueryFileTree.js");
|
318 |
+
wp_enqueue_style("jqueryFileTree.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/jqueryFileTree/jqueryFileTree.css");
|
319 |
+
wp_enqueue_style("simple-line-icons.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/icons/icons.css");
|
320 |
+
wp_enqueue_style("components.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/css/components.css");
|
321 |
+
wp_enqueue_style("gallery-bank-custom.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/gallery-bank-custom.css");
|
322 |
+
wp_enqueue_style("gallery-bank-premium-edition.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/premium-edition.css");
|
323 |
+
if (is_rtl()) {
|
324 |
+
wp_enqueue_style("gallery-bank-bootstrap.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/css/custom-rtl.css");
|
325 |
+
wp_enqueue_style("gallery-bank-layout-rtl.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/layout-rtl.css");
|
326 |
+
wp_enqueue_style("tech-banker-custom-rtl.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/tech-banker-custom-rtl.css");
|
327 |
+
} else {
|
328 |
+
wp_enqueue_style("gallery-bank-bootstrap.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/css/custom.css");
|
329 |
+
wp_enqueue_style("gallery-bank-layout.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/layout.css");
|
330 |
+
wp_enqueue_style("tech-banker-custom.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/tech-banker-custom.css");
|
331 |
}
|
332 |
+
wp_enqueue_script("jquery.clipboard.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/clipboard/clipboard.js");
|
333 |
+
wp_enqueue_style("gallery-bank-plugins.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/css/plugins.css");
|
334 |
+
wp_enqueue_style("gallery-bank-default.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/admin/layout/css/themes/default.css");
|
335 |
+
wp_enqueue_style("gallery-bank-toastr.min.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/toastr/toastr.css");
|
336 |
+
if (in_array($page_url, $datatable_pages_gallery_bank)) {
|
337 |
+
wp_enqueue_script("jquery.datatables.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/datatables/media/js/jquery.datatables.js");
|
338 |
+
wp_enqueue_script("jquery.fngetfilterednodes.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/datatables/media/js/fngetfilterednodes.js");
|
339 |
+
wp_enqueue_style("gallery-bank-datatables.foundation.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/datatables/media/css/datatables.foundation.css");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
}
|
341 |
+
if (in_array($page_url, $layout_pages_gallery_bank)) {
|
342 |
+
wp_enqueue_script("colpick.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/colorpicker/colpick.js");
|
343 |
+
wp_enqueue_style("colpick.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/colorpicker/colpick.css");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
}
|
345 |
+
if ($page_url == "gb_sort_galleries" || $page_url == "gb_sort_albums") {
|
346 |
+
wp_enqueue_script("plupload.full.min.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/pluploader/js/plupload.full.min.js", array("jquery-ui-draggable", "jquery-ui-sortable", "jquery-ui-dialog", "jquery-ui-widget"), false);
|
347 |
+
}
|
348 |
+
}
|
349 |
+
}
|
350 |
+
if (strpos($hook, "gb_add_gallery") !== false) {
|
351 |
+
wp_enqueue_script("plupload.full.min.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/pluploader/js/plupload.full.min.js", array("jquery-ui-draggable", "jquery-ui-sortable", "jquery-ui-dialog", "jquery-ui-widget", "jquery-ui-progressbar"), false);
|
352 |
+
wp_enqueue_script("jquery.ui.plupload.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/pluploader/js/jquery.ui.plupload.js");
|
353 |
+
wp_enqueue_style("jquery.ui.plupload.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/pluploader/css/jquery.ui.plupload.css");
|
354 |
+
wp_enqueue_style("jquery-ui.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/pluploader/css/jquery-ui.css");
|
355 |
+
wp_enqueue_script("bootstrap-hover-dropdown.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/custom/js/bootstrap-hover-dropdown.js");
|
356 |
+
wp_enqueue_script("bootstrap-modal.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/modal/js/bootstrap-modal.js");
|
357 |
+
wp_enqueue_script("bootstrap-modalmanager.js", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/modal/js/bootstrap-modalmanager.js");
|
358 |
+
wp_enqueue_style("bootstrap-modal.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/modal/css/bootstrap-modal.css");
|
359 |
+
wp_enqueue_style("bootstrap-modal-bs3patch.css", GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/modal/css/bootstrap-modal-bs3patch.css");
|
360 |
+
}
|
361 |
+
}
|
362 |
+
add_action("admin_enqueue_scripts", "backend_js_css_for_gallery_bank");
|
363 |
+
}
|
364 |
+
$version = get_option("gallery-bank-pro-edition");
|
365 |
+
if ($version == "4.0") {
|
366 |
|
367 |
+
/*
|
368 |
+
Function Name: get_users_capabilities_gallery_bank
|
369 |
+
Parameters: No
|
370 |
+
Description: This function is used to get users capabilities.
|
371 |
+
Created On: 01-06-2017 09:00
|
372 |
+
Created By: Tech Banker Team
|
373 |
+
*/
|
374 |
+
function get_users_capabilities_gallery_bank() {
|
375 |
+
global $wpdb;
|
376 |
+
$capabilities = $wpdb->get_var
|
377 |
+
(
|
378 |
+
$wpdb->prepare
|
379 |
+
(
|
380 |
+
"SELECT meta_value FROM " . gallery_bank_meta() . "
|
381 |
WHERE meta_key = %s", "roles_and_capabilities_settings"
|
382 |
+
)
|
383 |
+
);
|
384 |
+
$core_roles = array(
|
385 |
+
"manage_options",
|
386 |
+
"edit_plugins",
|
387 |
+
"edit_posts",
|
388 |
+
"publish_posts",
|
389 |
+
"publish_pages",
|
390 |
+
"edit_pages"
|
391 |
+
);
|
392 |
+
$unserialized_capabilities = unserialize($capabilities);
|
393 |
+
return isset($unserialized_capabilities["capabilities"]) ? $unserialized_capabilities["capabilities"] : $core_roles;
|
394 |
+
}
|
395 |
+
/*
|
396 |
+
Function Name: sidebar_menu_for_gallery_bank
|
397 |
+
Parameter: no
|
398 |
+
Description: This is used for calling a sidebar menu function.
|
399 |
+
Created On: 01-06-2017 09:00
|
400 |
+
Created By: Tech Banker Team
|
401 |
+
*/
|
402 |
+
function sidebar_menu_for_gallery_bank() {
|
403 |
+
global $wpdb, $current_user;
|
404 |
+
$user_role_permission = get_users_capabilities_gallery_bank();
|
405 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "includes/translations.php")) {
|
406 |
+
include GALLERY_BANK_PLUGIN_DIR_PATH . "includes/translations.php";
|
407 |
+
}
|
408 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/sidebar-menu.php")) {
|
409 |
+
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "lib/sidebar-menu.php";
|
410 |
+
}
|
411 |
+
}
|
412 |
+
/*
|
413 |
+
Function Name: helper_file_for_gallery_bank
|
414 |
+
Parameter: no
|
415 |
+
Description: This function is used to call helper file for gallery bank
|
416 |
+
Created On: 01-06-2017 09:00
|
417 |
+
Created By: Tech Banker Team
|
418 |
+
*/
|
419 |
+
function helper_file_for_gallery_bank() {
|
420 |
+
global $wpdb, $current_user;
|
421 |
+
$user_role_permission = get_users_capabilities_gallery_bank();
|
422 |
+
|
423 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/helper.php")) {
|
424 |
+
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "lib/helper.php";
|
425 |
+
}
|
426 |
+
}
|
427 |
+
/*
|
428 |
+
Function Name: main_ajax_file_for_gallery_bank
|
429 |
+
Parameter: no
|
430 |
+
Description: This function is used to register ajax for gallery bank
|
431 |
+
Created On: 01-06-2017 09:00
|
432 |
+
Created By: Tech Banker Team
|
433 |
+
*/
|
434 |
+
function main_ajax_file_for_gallery_bank() {
|
435 |
+
global $wpdb, $current_user;
|
436 |
+
$user_role_permission = get_users_capabilities_gallery_bank();
|
437 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/action-library.php")) {
|
438 |
+
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "lib/action-library.php";
|
439 |
+
}
|
440 |
+
}
|
441 |
+
/*
|
442 |
+
Function Name: top_bar_menu_for_gallery_bank
|
443 |
+
Parameter: no
|
444 |
+
Description: This is used for calling a top bar menu function.
|
445 |
+
Created On: 01-06-2017 09:00
|
446 |
+
Created By: Tech Banker Team
|
447 |
+
*/
|
448 |
+
function top_bar_menu_for_gallery_bank() {
|
449 |
+
global $wpdb, $current_user, $wp_admin_bar;
|
450 |
+
$user_role_permission = get_users_capabilities_gallery_bank();
|
451 |
+
$role_capabilities = $wpdb->get_var
|
452 |
+
(
|
453 |
+
$wpdb->prepare
|
454 |
+
(
|
455 |
+
"SELECT meta_value from " . gallery_bank_meta() . "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
456 |
WHERE " . gallery_bank_meta() . " . meta_key = %s", "roles_and_capabilities_settings"
|
457 |
+
)
|
458 |
+
);
|
459 |
+
$role_capabilities_serialized = unserialize($role_capabilities);
|
460 |
+
if ($role_capabilities_serialized["show_gallery_bank_top_bar_menu"] == "enable") {
|
461 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "includes/translations.php")) {
|
462 |
+
include GALLERY_BANK_PLUGIN_DIR_PATH . "includes/translations.php";
|
463 |
+
}
|
464 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/admin-bar-menu.php")) {
|
465 |
+
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "lib/admin-bar-menu.php";
|
466 |
+
}
|
467 |
+
}
|
468 |
+
}
|
469 |
+
/*
|
470 |
+
Function Name: plugin_load_textdomain_gallery_bank
|
471 |
+
Parameters: No
|
472 |
+
Description: This function is used to load languages.
|
473 |
+
Created On: 01-06-2017 09:00
|
474 |
+
Created By: Tech Banker Team
|
475 |
+
*/
|
476 |
+
function plugin_load_textdomain_gallery_bank() {
|
477 |
+
if (function_exists("load_plugin_textdomain")) {
|
478 |
+
load_plugin_textdomain("gallery-bank", false, GALLERY_BANK_PLUGIN_DIRNAME . "/languages");
|
479 |
+
}
|
480 |
+
}
|
481 |
+
/*
|
482 |
+
Function Name: admin_functions_gallery_bank
|
483 |
+
Parameter: no
|
484 |
+
Description: This function used for calling admin function fired on admin_init hook.
|
485 |
+
Created On: 01-06-2017 09:00
|
486 |
+
Created By: Tech Banker Team
|
487 |
+
*/
|
488 |
+
function admin_functions_gallery_bank() {
|
489 |
+
helper_file_for_gallery_bank();
|
490 |
+
}
|
491 |
+
/*
|
492 |
+
Function Name: gallery_bank_UrlEncode
|
493 |
+
Argument:yes ($string)
|
494 |
+
Description: decode url symbols into original form.
|
495 |
+
Created On: 01-06-2017 09:00
|
496 |
+
Created By: Tech Banker Team
|
497 |
+
*/
|
498 |
+
function gallery_bank_UrlEncode($string) {
|
499 |
+
$entities = array("%21", "%2A", "%27", "%28", "%29", "%3B", "%3A", "%40", "%26", "%3D", "%2B", "%24", "%2C", "%2F", "%3F", "%25", "%23", "%5B", "%5D");
|
500 |
+
$replacements = array("!", "*", "'", "(", ")", ";", ":", "@", "&", "=", "+", "$", ",", "/", "?", "%", "#", "[", "]");
|
501 |
+
return str_replace($entities, $replacements, urlencode($string));
|
502 |
+
}
|
503 |
+
/*
|
504 |
+
Function Name: upload_ajax_file_for_gallery_bank
|
505 |
+
Parameter: no
|
506 |
+
Description: This function is used to register ajax for gallery bank
|
507 |
+
Created On: 01-06-2017 09:00
|
508 |
+
Created By: Tech Banker Team
|
509 |
+
*/
|
510 |
+
function upload_ajax_file_for_gallery_bank() {
|
511 |
+
global $wpdb, $current_user;
|
512 |
+
$user_role_permission = get_users_capabilities_gallery_bank();
|
513 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/upload.php")) {
|
514 |
+
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "lib/upload.php";
|
515 |
+
}
|
516 |
+
}
|
517 |
+
/*
|
518 |
+
Function Name: ftp_directory_ajax_file_for_gallery_bank
|
519 |
+
Parameter: no
|
520 |
+
Description: This function is used to register ajax for gallery bank
|
521 |
+
Created On: 01-06-2017 09:00
|
522 |
+
Created By: Tech Banker Team
|
523 |
+
*/
|
524 |
+
function ftp_directory_ajax_file_for_gallery_bank() {
|
525 |
+
global $wpdb, $current_user;
|
526 |
+
$user_role_permission = get_users_capabilities_gallery_bank();
|
527 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "lib/ftp-directories.php")) {
|
528 |
+
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "lib/ftp-directories.php";
|
529 |
+
}
|
530 |
+
}
|
531 |
+
function parse_shortcode_content_gallery_bank($content) {
|
532 |
+
|
533 |
+
/* Parse nested shortcodes and add formatting. */
|
534 |
+
$content = trim(do_shortcode(shortcode_unautop($content)));
|
535 |
+
|
536 |
+
/* Remove '' from the start of the string. */
|
537 |
+
if (substr($content, 0, 4) == '')
|
538 |
+
$content = substr($content, 4);
|
539 |
+
|
540 |
+
/* Remove '' from the end of the string. */
|
541 |
+
if (substr($content, -3, 3) == '')
|
542 |
+
$content = substr($content, 0, -3);
|
543 |
+
|
544 |
+
/* Remove any instances of ''. */
|
545 |
+
$content = str_replace(array('<p></p>'), '', $content);
|
546 |
+
$content = str_replace(array('<p> </p>'), '', $content);
|
547 |
+
|
548 |
+
return $content;
|
549 |
+
}
|
550 |
+
/*
|
551 |
+
Function Name: gallery_bank_shortcode
|
552 |
+
Parameter: Yes
|
553 |
+
Description: It is used for a creating shortcode for gallery bank.
|
554 |
+
Created On: 01-06-2017 09:00
|
555 |
+
Created by: Tech Banker Team
|
556 |
+
*/
|
557 |
+
function gallery_bank_shortcode($atts, $content) {
|
558 |
+
extract(shortcode_atts(array(
|
559 |
+
"show_albums" => "",
|
560 |
+
"album_id" => "",
|
561 |
+
"type" => "",
|
562 |
+
"format" => "",
|
563 |
+
"title" => "",
|
564 |
+
"desc" => "",
|
565 |
+
"display" => "",
|
566 |
+
"no_of_images" => "",
|
567 |
+
"sort_by" => "",
|
568 |
+
"animation_effect" => "",
|
569 |
+
"albums_in_row" => "",
|
570 |
+
"layout_type" => "",
|
571 |
+
"source_type" => "",
|
572 |
+
"id" => "",
|
573 |
+
"album_type" => "",
|
574 |
+
"sort_images_by" => "",
|
575 |
+
"album_title" => "",
|
576 |
+
"album_description" => "",
|
577 |
+
"order_images_by" => "",
|
578 |
+
"alignment" => "",
|
579 |
+
"lightbox_type" => "",
|
580 |
+
"columns" => "",
|
581 |
+
"filters" => "",
|
582 |
+
"lazy_load" => "",
|
583 |
+
"search_box" => "",
|
584 |
+
"order_by" => "",
|
585 |
+
"page_navigation" => "",
|
586 |
+
"images_per_page" => "",
|
587 |
+
"gallery_title" => "",
|
588 |
+
"gallery_description" => "",
|
589 |
+
"thumbnail_title" => "",
|
590 |
+
"thumbnail_description" => "",
|
591 |
+
"animation_effects" => "",
|
592 |
+
"special_effects" => "",
|
593 |
+
"auto_play" => "",
|
594 |
+
"time_interval" => "",
|
595 |
+
"next_previous_button" => "",
|
596 |
+
"play_pause_button" => "",
|
597 |
+
"slideshow_width" => "",
|
598 |
+
"control_buttons" => "",
|
599 |
+
"buttons_type" => "",
|
600 |
+
"slideshow_filmstrips" => "",
|
601 |
+
"image_browser_height" => "",
|
602 |
+
"image_browser_width" => "",
|
603 |
+
"blog_image_width" => "",
|
604 |
+
"row_height" => "",
|
605 |
+
), $atts));
|
606 |
+
if (!is_feed()) {
|
607 |
+
if (isset($type) && $type != "") {
|
608 |
+
switch ($type) {
|
609 |
+
case "images":
|
610 |
+
$source_type = "gallery";
|
611 |
+
$id = isset($album_id) ? $album_id : 0;
|
612 |
+
break;
|
613 |
+
default:
|
614 |
+
$source_type = "album";
|
615 |
+
$album_type = "compact_album";
|
616 |
+
$id = isset($show_albums) && $show_albums != "" ? $show_albums : $album_id;
|
617 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
618 |
}
|
619 |
+
$gallery_title = $album_title == "true" ? "show" : "hide";
|
620 |
+
$thumbnail_title = $title == "true" ? "show" : "hide";
|
621 |
+
$thumbnail_description = $desc == "true" ? "show" : "hide";
|
622 |
+
$lightbox_type = "foo_box_free_edition";
|
623 |
+
switch ($format) {
|
624 |
+
case "thumbnail":
|
625 |
+
$layout_type = "thumbnail_layout";
|
626 |
+
break;
|
627 |
+
case "masonry":
|
628 |
+
$layout_type = "masonry_layout";
|
629 |
+
break;
|
630 |
}
|
631 |
+
switch ($sort_by) {
|
632 |
+
case "title":
|
633 |
+
$sort_images_by = "image_title";
|
634 |
+
break;
|
635 |
+
case "date":
|
636 |
+
$sort_images_by = "upload_date";
|
637 |
+
break;
|
638 |
+
case "pic_name":
|
639 |
+
$sort_images_by = "image_name";
|
640 |
+
break;
|
641 |
+
case "sort_order":
|
642 |
+
$sort_images_by = "sort_order";
|
643 |
+
break;
|
644 |
+
case "random":
|
645 |
+
$sort_images_by = "random_order";
|
646 |
+
break;
|
647 |
+
case "pic_id":
|
648 |
+
$sort_images_by = "image_name";
|
649 |
+
break;
|
650 |
}
|
651 |
+
$animation_effects = $animation_effect == "" ? "fadeIn" : $animation_effect;
|
652 |
+
}
|
653 |
+
if (isset($_REQUEST["gallery_id"])) {
|
654 |
+
$source_type = "gallery";
|
655 |
+
$id = intval($_REQUEST["gallery_id"]);
|
656 |
+
}
|
657 |
+
|
658 |
+
if (isset($source_type)) {
|
659 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/common-variables.php")) {
|
660 |
+
require GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/common-variables.php";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
661 |
}
|
662 |
+
switch (esc_attr($source_type)) {
|
663 |
+
case "gallery" :
|
664 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/galleries/structure.php")) {
|
665 |
+
require GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/galleries/structure.php";
|
666 |
+
}
|
667 |
+
break;
|
668 |
+
case "album" :
|
669 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/albums/structure.php")) {
|
670 |
+
require GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/albums/structure.php";
|
671 |
+
}
|
672 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
673 |
}
|
674 |
+
}
|
675 |
+
$content = parse_shortcode_content_gallery_bank($content);
|
676 |
+
return $content;
|
677 |
+
}
|
678 |
+
}
|
679 |
+
/*
|
680 |
+
Function Name: helper_file_for_gallery_bank_frontend
|
681 |
+
Parameter: no
|
682 |
+
Description: This function is used to call helper file for gallery bank frontend
|
683 |
+
Created On: 01-06-2017 09:00
|
684 |
+
Created By: Tech Banker Team
|
685 |
+
*/
|
686 |
+
function helper_file_for_gallery_bank_frontend() {
|
687 |
+
global $wpdb;
|
688 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/lib/helper.php")) {
|
689 |
+
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/lib/helper.php";
|
690 |
+
}
|
691 |
+
}
|
692 |
+
/*
|
693 |
+
Function Name: user_functions_gallery_bank
|
694 |
+
Parameter: No
|
695 |
+
Description: This function is used to call user_functions_gallery_bank
|
696 |
+
Created On: 01-06-2017 09:00
|
697 |
+
Created By: Tech Banker Team
|
698 |
+
*/
|
699 |
+
function user_functions_gallery_bank() {
|
700 |
+
helper_file_for_gallery_bank_frontend();
|
701 |
+
plugin_load_textdomain_gallery_bank();
|
702 |
+
}
|
703 |
+
/*
|
704 |
+
Function Name: add_gallery_bank_shortcode_button
|
705 |
+
Parameter: No
|
706 |
+
Description: This function is used to create the button in pages and posts.
|
707 |
+
Created On: 05-06-2017 10:29
|
708 |
+
Created By: Tech Banker Team
|
709 |
+
*/
|
710 |
+
function add_gallery_bank_shortcode_button() {
|
711 |
+
echo '<a href="admin.php?page=gb_thumbnail_layout_shortcode" target="_blank" id="insert-gallery-bank-shortcode" class="button" >' . '<img style="width:16px; height:16px; vertical-align:middle; margin-right:3px; margin-top:5px; float:left;" src=' . GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/img/icon.png" . '>' . __("Add Gallery Bank Shortcode", "gallery-bank") . '</a>';
|
712 |
+
}
|
713 |
+
/*
|
714 |
+
Class Name: gallery_bank_widget
|
715 |
+
Parameter: No
|
716 |
+
Description: This class is used to add widget.
|
717 |
+
Created On: 05-06-2017 11:14
|
718 |
+
Created By: Tech Banker Team
|
719 |
+
*/
|
720 |
+
class gallery_bank_widget extends WP_Widget {
|
721 |
+
function __construct() {
|
722 |
+
parent::__construct(
|
723 |
+
"gallery_bank_widget", __("Gallery Bank", "gallery-bank"), array("description" => __("Display Gallery Bank", "gallery-bank"),)
|
724 |
+
);
|
725 |
+
}
|
726 |
+
/*
|
727 |
+
Function Name: form
|
728 |
+
Parameters: Yes($instance)
|
729 |
+
Description: This function is used to add widget form.
|
730 |
+
Created On: 05-06-2017 11:14
|
731 |
+
Created By: Tech Banker Team
|
732 |
+
*/
|
733 |
+
public function form($instance) {
|
734 |
+
global $wpdb;
|
735 |
+
$user_role_permission = get_users_capabilities_gallery_bank();
|
736 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/galleries/translations.php")) {
|
737 |
+
include GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/galleries/translations.php";
|
738 |
+
}
|
739 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/widget-form.php")) {
|
740 |
+
include GALLERY_BANK_PLUGIN_DIR_PATH . "user-views/includes/widget-form.php";
|
741 |
+
}
|
742 |
+
}
|
743 |
+
/*
|
744 |
+
Function Name: widget
|
745 |
+
Parameters: Yes($args, $instance)
|
746 |
+
Description: This function is used to display widget.
|
747 |
+
Created On: 05-06-2017 11:14
|
748 |
+
Created By: Tech Banker Team
|
749 |
+
*/
|
750 |
+
public function widget($args, $instance) {
|
751 |
+
extract($args, EXTR_SKIP);
|
752 |
+
echo $before_widget;
|
753 |
+
$shortcode_data = empty($instance["shortcode"]) ? " " : apply_filters("widget_gallery_bank_shortcode", $instance["shortcode"]);
|
754 |
+
if (!empty($shortcode_data)) {
|
755 |
+
$shortcode = $shortcode_data;
|
756 |
+
}
|
757 |
+
echo do_shortcode($shortcode);
|
758 |
+
echo $after_widget;
|
759 |
+
}
|
760 |
+
/*
|
761 |
+
Function Name: update
|
762 |
+
Parameters: Yes($new_instance, $old_instance)
|
763 |
+
Description: This function is used to update widget.
|
764 |
+
Created On: 05-06-2017 11:14
|
765 |
+
Created By: Tech Banker Team
|
766 |
+
*/
|
767 |
+
public function update($new_instance, $old_instance) {
|
768 |
+
$instance = $old_instance;
|
769 |
+
$instance["shortcode"] = $new_instance["ux_txt_gallery_bank_shortcode"];
|
770 |
+
return $instance;
|
771 |
+
}
|
772 |
+
}
|
773 |
+
/*
|
774 |
+
Function Name: deactivation_function_for_gallery_bank
|
775 |
+
Parameters: No
|
776 |
+
Description: This function is used for executing the code on deactivation.
|
777 |
+
Created On: 13-06-2017 11:00
|
778 |
+
Created by: Tech Banker Team
|
779 |
+
*/
|
780 |
+
function deactivation_function_for_gallery_bank() {
|
781 |
+
$type = get_option("gallery-bank-wizard-set-up");
|
782 |
+
if ($type == "opt_in") {
|
783 |
+
$plugin_info_gallery_bank = new plugin_info_gallery_bank();
|
784 |
+
global $wp_version, $wpdb;
|
785 |
+
$url = tech_banker_stats_url . "/wp-admin/admin-ajax.php";
|
786 |
+
$theme_details = array();
|
787 |
+
|
788 |
+
if ($wp_version >= 3.4) {
|
789 |
+
$active_theme = wp_get_theme();
|
790 |
+
$theme_details["theme_name"] = strip_tags($active_theme->Name);
|
791 |
+
$theme_details["theme_version"] = strip_tags($active_theme->Version);
|
792 |
+
$theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
|
793 |
+
}
|
794 |
+
|
795 |
+
$plugin_stat_data = array();
|
796 |
+
$plugin_stat_data["plugin_slug"] = "gallery-bank";
|
797 |
+
$plugin_stat_data["type"] = "standard_edition";
|
798 |
+
$plugin_stat_data["version_number"] = gallery_bank_wizard_version_number;
|
799 |
+
$plugin_stat_data["status"] = $type;
|
800 |
+
$plugin_stat_data["event"] = "de-activate";
|
801 |
+
$plugin_stat_data["domain_url"] = site_url();
|
802 |
+
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
803 |
+
$plugin_stat_data["email"] = get_option("admin_email");
|
804 |
+
$plugin_stat_data["wp_version"] = $wp_version;
|
805 |
+
$plugin_stat_data["php_version"] = esc_html(phpversion());
|
806 |
+
$plugin_stat_data["mysql_version"] = $wpdb->db_version();
|
807 |
+
$plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
|
808 |
+
$plugin_stat_data["operating_system"] = PHP_OS . " (" . PHP_INT_SIZE * 8 . ") BIT";
|
809 |
+
$plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
|
810 |
+
$plugin_stat_data["extensions"] = get_loaded_extensions();
|
811 |
+
$plugin_stat_data["plugins"] = $plugin_info_gallery_bank->get_plugin_info_gallery_bank();
|
812 |
+
$plugin_stat_data["themes"] = $theme_details;
|
813 |
+
|
814 |
+
$response = wp_safe_remote_post($url, array
|
815 |
+
(
|
816 |
+
"method" => "POST",
|
817 |
+
"timeout" => 45,
|
818 |
+
"redirection" => 5,
|
819 |
+
"httpversion" => "1.0",
|
820 |
+
"blocking" => true,
|
821 |
+
"headers" => array(),
|
822 |
+
"body" => array("data" => serialize($plugin_stat_data), "site_id" => get_option("gb_tech_banker_site_id") != "" ? get_option("gb_tech_banker_site_id") : "", "action" => "plugin_analysis_data")
|
823 |
+
));
|
824 |
+
if (!is_wp_error($response)) {
|
825 |
+
$response["body"] != "" ? update_option("gb_tech_banker_site_id", $response["body"]) : "";
|
826 |
+
}
|
827 |
+
}
|
828 |
+
}
|
829 |
+
/*
|
830 |
+
Function Name: gallery_bank_action_links
|
831 |
+
Parameters: Yes
|
832 |
+
Description: This function is used to create link for Pro Editions.
|
833 |
+
Created On: 12-06-2017 17:35
|
834 |
+
Created By: Tech Banker Team
|
835 |
+
*/
|
836 |
+
function gallery_bank_action_links($plugin_link) {
|
837 |
+
$plugin_link[] = "<a href=" . tech_banker_gallery_url . " style=\"color: red; font-weight: bold;\" target=\"_blank\">Go Pro!</a>";
|
838 |
+
return $plugin_link;
|
839 |
+
}
|
840 |
+
//Hooks
|
841 |
+
|
842 |
+
/* add_action for admin_functions_gallery_bank
|
843 |
+
Description: This hook is used for calling all the Backend Functions
|
844 |
+
Created On: 01-06-2017 09:00
|
845 |
+
Created by: Tech Banker Team
|
846 |
+
*/
|
847 |
+
|
848 |
+
add_action("admin_init", "admin_functions_gallery_bank");
|
849 |
+
|
850 |
+
/* add_action for main_ajax_file_for_gallery_bank
|
851 |
+
Description: This hook is used for calling backend ajax function
|
852 |
+
Created On: 01-06-2017 09:00
|
853 |
+
Created by: Tech Banker Team
|
854 |
+
*/
|
855 |
+
|
856 |
+
add_action("wp_ajax_gallery_bank_action_module", "main_ajax_file_for_gallery_bank");
|
857 |
+
|
858 |
+
/* add_action for upload_ajax_file_for_gallery_bank
|
859 |
+
Description: This hook is used for calling upload ajax function
|
860 |
+
Created On: 01-06-2017 09:00
|
861 |
+
Created by: Tech Banker Team
|
862 |
+
*/
|
863 |
+
|
864 |
+
add_action("wp_ajax_gallery_bank_image_upload", "upload_ajax_file_for_gallery_bank");
|
865 |
+
|
866 |
+
/* add_action for ftp_directory_ajax_file_for_gallery_bank
|
867 |
+
Description: This hook is used for calling upload ajax function
|
868 |
+
Created On: 23-06-2017 11:13
|
869 |
+
Created by: Tech Banker Team
|
870 |
+
*/
|
871 |
+
|
872 |
+
add_action("wp_ajax_gallery_bank_ftp_directory", "ftp_directory_ajax_file_for_gallery_bank");
|
873 |
+
|
874 |
+
/* add_action
|
875 |
+
Description: This hook is used for calling a function of sidebar menu
|
876 |
+
Created On: 01-06-2017 09:00
|
877 |
+
Created By: Tech Banker Team
|
878 |
+
*/
|
879 |
+
add_action("admin_menu", "sidebar_menu_for_gallery_bank");
|
880 |
+
add_action("network_admin_menu", "sidebar_menu_for_gallery_bank");
|
881 |
+
|
882 |
+
/* add_action
|
883 |
+
Description: This hook is used for calling a function of top bar menu.
|
884 |
+
Created On: 01-06-2017 09:00
|
885 |
+
Created By: Tech Banker Team
|
886 |
+
*/
|
887 |
+
add_action("admin_bar_menu", "top_bar_menu_for_gallery_bank", 100);
|
888 |
+
|
889 |
+
/*
|
890 |
+
add_action for user_functions_gallery_bank
|
891 |
+
Description: This hook is used for calling all the frontend Functions
|
892 |
+
Created On: 01-06-2017 09:00
|
893 |
+
Created by: Tech Banker Team
|
894 |
+
*/
|
895 |
+
add_action("init", "user_functions_gallery_bank");
|
896 |
+
|
897 |
+
/*
|
898 |
+
add_shortcode
|
899 |
+
Description: function for shortcode.
|
900 |
+
Created On: 01-06-2017 09:00
|
901 |
+
Created by: Tech Banker Team
|
902 |
+
*/
|
903 |
+
add_shortcode("gallery_bank", "gallery_bank_shortcode");
|
904 |
+
|
905 |
+
/* add_filter create Go Pro link for Gallery Bank
|
906 |
+
Description: This hook is used for create link for premium Editions.
|
907 |
+
Created On: 17-06-2017 17:38
|
908 |
+
Created by: Tech Banker Team
|
909 |
+
*/
|
910 |
+
add_filter("plugin_action_links_" . plugin_basename(__FILE__), "gallery_bank_action_links");
|
911 |
+
|
912 |
+
/*
|
913 |
+
add_action for add_gallery_bank_shortcode_button
|
914 |
+
Description: This hook is used for add gallery bank button.
|
915 |
+
Created On: 05-06-2017 10:29
|
916 |
+
Created by: Tech Banker Team
|
917 |
+
*/
|
918 |
+
|
919 |
+
add_action("media_buttons", "add_gallery_bank_shortcode_button");
|
920 |
+
|
921 |
+
/*
|
922 |
+
add_action for MapWidget class
|
923 |
+
Description: This hook is used for initiate Widget
|
924 |
+
Created On: 05-06-2017 10:29
|
925 |
+
Created by: Tech Banker Team
|
926 |
+
*/
|
927 |
+
|
928 |
+
add_action("widgets_init", create_function("", "return register_widget(\"gallery_bank_widget\");"));
|
929 |
+
|
930 |
+
/*
|
931 |
+
add_action for Widget.
|
932 |
+
Description: This hook is used for apply the shortcode for Widget.
|
933 |
+
Created On: 05-06-2017 10:29
|
934 |
+
Created by: Tech Banker Team
|
935 |
+
*/
|
936 |
+
|
937 |
+
add_filter("widget_text", "do_shortcode");
|
938 |
+
} else {
|
939 |
+
function sidebar_menu_gallery_bank_temp() {
|
940 |
+
add_menu_page("Gallery Bank", "Gallery Bank", "read", "gallery_bank", "", plugins_url("assets/global/img/icon.png", __FILE__));
|
941 |
+
add_submenu_page("Gallery Bank", "Gallery Bank", "", "read", "gallery_bank", "gallery_bank");
|
942 |
+
}
|
943 |
+
function gallery_bank() {
|
944 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "views/wizard/wizard.php")) {
|
945 |
+
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "views/wizard/wizard.php";
|
946 |
+
}
|
947 |
+
}
|
948 |
+
add_action("admin_menu", "sidebar_menu_gallery_bank_temp");
|
949 |
+
add_action("network_admin_menu", "sidebar_menu_gallery_bank_temp");
|
950 |
}
|
951 |
// Hooks
|
952 |
|
972 |
Created On: 01-06-2017 09:00
|
973 |
Created By: Tech Banker Team
|
974 |
*/
|
|
|
975 |
function plugin_activate_gallery_bank() {
|
976 |
+
add_option("gallery_bank_do_activation_redirect", true);
|
977 |
}
|
|
|
978 |
/*
|
979 |
Class Name: gallery_bank_redirect
|
980 |
Description: This function is used to redirect to manage maps menu.
|
981 |
Created On: 01-06-2017 09:00
|
982 |
Created By: Tech Banker Team
|
983 |
*/
|
|
|
984 |
function gallery_bank_redirect() {
|
985 |
+
if (get_option('gallery_bank_do_activation_redirect', false)) {
|
986 |
+
delete_option("gallery_bank_do_activation_redirect");
|
987 |
+
wp_redirect(admin_url("admin.php?page=gallery_bank"));
|
988 |
+
exit;
|
989 |
+
}
|
990 |
}
|
|
|
991 |
/* deactivation_function_for_gallery_bank
|
992 |
Description: This hook is used to sets the deactivation hook for a plugin.
|
993 |
Created On: 13-06-2017 11:08
|
includes/footer.php
CHANGED
@@ -7,27 +7,27 @@
|
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
-
|
11 |
} // Exit if accessed directly
|
12 |
if (!is_user_logged_in()) {
|
13 |
-
|
14 |
} else {
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
<div class="popup-inner">
|
32 |
<div class="portlet box vivid-green" style="margin-bottom:0px;">
|
33 |
<div class="portlet-title">
|
@@ -92,427 +92,427 @@ if (!is_user_logged_in()) {
|
|
92 |
</div>
|
93 |
</div>
|
94 |
</div>
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
}
|
103 |
-
});
|
104 |
-
jQuery(".tooltips").tooltip_tip({placement: "right"});
|
105 |
-
jQuery(".page-sidebar-tech-banker").on("click", "li > a", function (e) {
|
106 |
-
var hasSubMenu = jQuery(this).next().hasClass("sub-menu");
|
107 |
-
var parent = jQuery(this).parent().parent();
|
108 |
-
var sidebar_menu = jQuery(".page-sidebar-menu-tech-banker");
|
109 |
-
var sub = jQuery(this).next();
|
110 |
-
var slideSpeed = parseInt(sidebar_menu.data("slide-speed"));
|
111 |
-
parent.children("li.open").children(".sub-menu:not(.always-open)").slideUp(slideSpeed);
|
112 |
-
parent.children("li.open").removeClass("open");
|
113 |
-
var sidebar_close = parent.children("li.open").removeClass("open");
|
114 |
-
if (sidebar_close) {
|
115 |
-
setInterval(load_sidebar_content_gallery_bank, 100);
|
116 |
-
}
|
117 |
-
if (sub.is(":visible")) {
|
118 |
-
jQuery(this).parent().removeClass("open");
|
119 |
-
sub.slideUp(slideSpeed);
|
120 |
-
} else if (hasSubMenu) {
|
121 |
-
jQuery(this).parent().addClass("open");
|
122 |
-
sub.slideDown(slideSpeed);
|
123 |
-
}
|
124 |
-
});
|
125 |
-
function load_sidebar_content_gallery_bank() {
|
126 |
-
var menus_height = jQuery(".page-sidebar-menu-tech-banker").height();
|
127 |
-
var content_height = jQuery(".page-content").height() + 30;
|
128 |
-
if (parseInt(menus_height) > parseInt(content_height)) {
|
129 |
-
jQuery(".page-content").attr("style", "min-height:" + menus_height + "px");
|
130 |
-
} else {
|
131 |
-
jQuery(".page-sidebar-menu-tech-banker").attr("style", "min-height:" + content_height + "px");
|
132 |
-
}
|
133 |
}
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
"search": "Search:",
|
148 |
-
"zeroRecords": "No matching records found"
|
149 |
-
},
|
150 |
-
"bSort": true,
|
151 |
-
"pageLength": 10,
|
152 |
-
"aoColumnDefs": [{"bSortable": false, "aTargets": [0]}]
|
153 |
-
});
|
154 |
-
return oTable;
|
155 |
}
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
jQuery("#ux_spn_hover_value").text("");
|
163 |
-
break;
|
164 |
-
case "rotate":
|
165 |
-
jQuery("#ux_txt_hover_effect_value").removeAttr("readonly").show();
|
166 |
-
jQuery("#ux_txt_hover_scale_value_x,#ux_txt_hover_scale_value_y").hide();
|
167 |
-
jQuery("#ux_spn_hover_value").text("(In Degree)");
|
168 |
-
break;
|
169 |
-
case "scale":
|
170 |
-
jQuery("#ux_txt_hover_effect_value").removeAttr("readonly").hide();
|
171 |
-
jQuery("#ux_txt_hover_scale_value_x,#ux_txt_hover_scale_value_y").show();
|
172 |
-
jQuery("#ux_spn_hover_value").text("(Multiple of Width & Height)");
|
173 |
-
break;
|
174 |
-
case "skew":
|
175 |
-
jQuery("#ux_txt_hover_effect_value").removeAttr("readonly").show();
|
176 |
-
jQuery("#ux_txt_hover_scale_value_x,#ux_txt_hover_scale_value_y").hide();
|
177 |
-
jQuery("#ux_spn_hover_value").text("(In Degree)");
|
178 |
-
break;
|
179 |
-
}
|
180 |
}
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
|
|
|
|
|
|
|
|
185 |
}
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
}
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
event.preventDefault();
|
196 |
-
}
|
197 |
}
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
}
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
if (!bySetColor)
|
210 |
-
jQuery(el).val("#" + hex);
|
211 |
-
}
|
212 |
-
}).keyup(function () {
|
213 |
-
jQuery(this).colpickSetColor("#" + this.value);
|
214 |
-
}).focus(function () {
|
215 |
-
jQuery(id).colpickSetColor(color_value);
|
216 |
-
});
|
217 |
}
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
}
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
}
|
242 |
-
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
243 |
-
setTimeout(function () {
|
244 |
-
clearInterval(sidebar_load_interval);
|
245 |
-
}, 3000);
|
246 |
}
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
}
|
261 |
-
|
262 |
-
|
263 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
}
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
o1 = data.charCodeAt(i++);
|
276 |
-
o2 = data.charCodeAt(i++);
|
277 |
-
o3 = data.charCodeAt(i++);
|
278 |
-
bits = o1 << 16 | o2 << 8 | o3;
|
279 |
-
h1 = bits >> 18 & 0x3f;
|
280 |
-
h2 = bits >> 12 & 0x3f;
|
281 |
-
h3 = bits >> 6 & 0x3f;
|
282 |
-
h4 = bits & 0x3f;
|
283 |
-
tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4);
|
284 |
-
} while (i < data.length);
|
285 |
-
enc = tmp_arr.join("");
|
286 |
-
var r = data.length % 3;
|
287 |
-
return(r ? enc.slice(0, r - 3) : enc) + "===".slice(r || 3);
|
288 |
}
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
}
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
remove_overlay_gallery_bank();
|
315 |
-
window.location.href =
|
316 |
-
|
317 |
-
|
|
|
318 |
}
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
344 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_shortcode_thumbnail_dimension_exceed_msg); ?>);
|
345 |
-
jQuery(control).val("1600");
|
346 |
-
}
|
347 |
-
break;
|
348 |
-
case "ux_txt_height":
|
349 |
-
jQuery(control).val() === "" || jQuery(control).val() === 0 ? jQuery(control).val("900") : "";
|
350 |
-
if (parseInt(jQuery(image_id).val()) >= parseInt(jQuery(control).val())) {
|
351 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
352 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_shortcode_thumbnail_dimension_exceed_msg); ?>);
|
353 |
-
jQuery(control).val("900");
|
354 |
-
}
|
355 |
-
break;
|
356 |
-
case "ux_txt_thumbnail_width":
|
357 |
-
jQuery(control).val() === "" || jQuery(control).val() === 0 ? jQuery(control).val("250") : "";
|
358 |
-
if (parseInt(jQuery(control).val()) >= parseInt(jQuery(image_id).val())) {
|
359 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
360 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_shortcode_thumbnail_dimension_exceed_msg); ?>);
|
361 |
-
jQuery(control).val("200");
|
362 |
-
}
|
363 |
-
break;
|
364 |
-
case "ux_txt_thumbnail_height":
|
365 |
-
jQuery(control).val() === "" || jQuery(control).val() === 0 ? jQuery(control).val("200") : "";
|
366 |
-
if (parseInt(jQuery(control).val()) >= parseInt(jQuery(image_id).val())) {
|
367 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
368 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_shortcode_thumbnail_dimension_exceed_msg); ?>);
|
369 |
-
jQuery(control).val("200");
|
370 |
-
}
|
371 |
-
break;
|
372 |
-
}
|
373 |
-
}
|
374 |
-
function confirm_delete_gallery_bank(meta_id, overlay_message, page_url, param, nonce) {
|
375 |
-
var checkstr = confirm(<?php echo json_encode($gb_delete_data); ?>);
|
376 |
-
if (checkstr === true) {
|
377 |
-
jQuery.post(ajaxurl, {
|
378 |
-
meta_id: meta_id,
|
379 |
param: param,
|
380 |
action: "gallery_bank_action_module",
|
381 |
_wp_nonce: nonce
|
382 |
-
|
383 |
-
|
384 |
if (jQuery.trim(data) !== "0" && jQuery.trim(data) !== "") {
|
385 |
-
|
386 |
-
|
387 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
388 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_selected_gallery_in_album_delete_data); ?>);
|
389 |
-
} else
|
390 |
-
{
|
391 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
392 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_delete_tag_exists); ?>);
|
393 |
-
}
|
394 |
} else {
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
}
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
function confirm_delete_bulk_action_gallery_bank(check_id, bulk_id, overlay_message, page_url, param, nonce) {
|
405 |
-
var bulk_delete = jQuery("#" + bulk_id).val();
|
406 |
-
if (bulk_delete === "") {
|
407 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
408 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_bulk_delete_data); ?>);
|
409 |
-
} else {
|
410 |
-
var chkBoxArray = [];
|
411 |
-
jQuery("input[type=checkbox][name*=" + check_id + "]", oTable.fnGetFilteredNodes()).each(function () {
|
412 |
-
if (jQuery(this).val() !== "") {
|
413 |
-
var Checked = jQuery(this).attr("checked");
|
414 |
-
if (Checked === "checked") {
|
415 |
-
chkBoxArray.push(jQuery(this).val());
|
416 |
-
}
|
417 |
-
}
|
418 |
-
});
|
419 |
-
if (chkBoxArray.length < 1) {
|
420 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
421 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_bulk_delete_data_message); ?>);
|
422 |
-
} else {
|
423 |
-
var confirm_delete = confirm(<?php echo json_encode($gb_delete_data); ?>);
|
424 |
-
if (confirm_delete === true) {
|
425 |
-
jQuery.post(ajaxurl, {
|
426 |
-
data: encodeURIComponent(chkBoxArray),
|
427 |
-
param: param,
|
428 |
-
action: "gallery_bank_action_module",
|
429 |
-
_wp_nonce: nonce
|
430 |
-
},
|
431 |
-
function (data) {
|
432 |
-
if (jQuery.trim(data) !== "0" && jQuery.trim(data) !== "") {
|
433 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
434 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_delete_tag_exists); ?>);
|
435 |
-
} else {
|
436 |
-
overlay_loading_gallery_bank(overlay_message);
|
437 |
-
setTimeout(function () {
|
438 |
-
remove_overlay_gallery_bank();
|
439 |
-
window.location.href = page_url;
|
440 |
-
}, 3000);
|
441 |
-
}
|
442 |
-
});
|
443 |
-
}
|
444 |
-
}
|
445 |
-
}
|
446 |
}
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
}
|
454 |
-
|
|
|
|
|
|
|
|
|
455 |
{
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
};
|
463 |
-
}).get();
|
464 |
-
arr.sort(function (o1, o2)
|
465 |
-
{
|
466 |
-
return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0;
|
467 |
-
});
|
468 |
-
options.each(function (i, o)
|
469 |
-
{
|
470 |
-
o.value = arr[i].v;
|
471 |
-
jQuery(o).text(arr[i].t);
|
472 |
-
});
|
473 |
-
}
|
474 |
-
function shortcode_source_type_control_gallery_bank(control_id, gallery_id, album_id, album_control_id)
|
475 |
{
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
jQuery("#" + gallery_id).css("display", "block");
|
480 |
-
jQuery("#" + album_id).css("display", "none");
|
481 |
-
jQuery("#" + album_control_id).css("display", "none");
|
482 |
-
jQuery("#ux_div_album_type").css("display", "none");
|
483 |
-
break;
|
484 |
-
case "album":
|
485 |
-
jQuery("#" + album_id).css("display", "block");
|
486 |
-
jQuery("#" + gallery_id).css("display", "none");
|
487 |
-
jQuery("#" + album_control_id).css("display", "block");
|
488 |
-
jQuery("#ux_div_album_type").css("display", "block");
|
489 |
-
break;
|
490 |
-
default:
|
491 |
-
jQuery("#" + gallery_id).css("display", "none");
|
492 |
-
jQuery("#" + album_id).css("display", "none");
|
493 |
-
jQuery("#" + album_control_id).css("display", "none");
|
494 |
-
jQuery("#ux_div_album_type").css("display", "none");
|
495 |
-
break;
|
496 |
-
}
|
497 |
-
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
498 |
-
setTimeout(function ()
|
499 |
-
{
|
500 |
-
clearInterval(sidebar_load_interval);
|
501 |
-
}, 3000);
|
502 |
-
}
|
503 |
-
function premium_edition_notification_gallery_bank()
|
504 |
{
|
505 |
-
|
506 |
-
|
507 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
}
|
509 |
-
var
|
510 |
-
|
511 |
{
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
516 |
jQuery("[data-popup-close-translator]").on("click", function (e)
|
517 |
{
|
518 |
var confirm_close = confirm(<?php echo json_encode($gb_confirm_close); ?>);
|
@@ -603,1795 +603,1795 @@ if (!is_user_logged_in()) {
|
|
603 |
});
|
604 |
}
|
605 |
});
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
{
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
jQuery("#ux_div_wizard_set_up").css("display", "block");
|
622 |
-
jQuery("#ux_div_wizard_set_up").addClass("wizard-set-up");
|
623 |
-
}
|
624 |
-
}
|
625 |
-
function plugin_stats_gallery_bank(type)
|
626 |
{
|
627 |
-
|
628 |
-
jQuery.post(ajaxurl,
|
629 |
-
{
|
630 |
-
type: type,
|
631 |
-
param: "wizard_gallery_bank",
|
632 |
-
action: "gallery_bank_action_module",
|
633 |
-
_wp_nonce: "<?php echo $gallery_bank_check_status; ?>"
|
634 |
-
},
|
635 |
-
function ()
|
636 |
-
{
|
637 |
-
remove_overlay_gallery_bank();
|
638 |
-
window.location.href = "admin.php?page=gallery_bank";
|
639 |
-
});
|
640 |
}
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
jQuery("#ux_li_galleries").addClass("active");
|
646 |
-
jQuery("#ux_li_manage_galleries").addClass("active");
|
647 |
-
<?php
|
648 |
-
if (galleries_gallery_bank === "1") {
|
649 |
-
?>
|
650 |
-
var oTable = gallery_bank_manage_datatable("#ux_tbl_manage_gallery");
|
651 |
-
jQuery("#ux_chk_all_galleries").click(function () {
|
652 |
-
jQuery("input[type=checkbox]", oTable.fnGetFilteredNodes()).not("[disabled]").attr("checked", this.checked);
|
653 |
-
});
|
654 |
-
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
655 |
-
setTimeout(function ()
|
656 |
-
{
|
657 |
-
clearInterval(sidebar_load_interval);
|
658 |
-
}, 3000);
|
659 |
-
<?php
|
660 |
-
}
|
661 |
-
break;
|
662 |
-
case "gb_add_gallery":
|
663 |
-
?>
|
664 |
-
jQuery("#ux_li_galleries").addClass("active");
|
665 |
-
jQuery("#ux_li_add_galleries").addClass("active");
|
666 |
-
<?php
|
667 |
-
if (galleries_gallery_bank === "1") {
|
668 |
-
?>
|
669 |
-
var oTable = gallery_bank_manage_datatable("#ux_tbl_add_gallery");
|
670 |
-
function remove_selected_attr_gallery_bank(id)
|
671 |
-
{
|
672 |
-
if (jQuery("#" + id).hasClass("tag"))
|
673 |
-
{
|
674 |
-
if (jQuery("#" + id).prop("selected") == true)
|
675 |
-
{
|
676 |
-
jQuery("#" + id).prop("selected", false);
|
677 |
-
}
|
678 |
-
jQuery("#" + id).removeClass("tag");
|
679 |
-
} else
|
680 |
-
{
|
681 |
-
jQuery("#" + id).addClass("tag");
|
682 |
-
}
|
683 |
-
}
|
684 |
-
array_delete_images = [];
|
685 |
-
array_gallery_images_data = [];
|
686 |
-
array_image_timestrap = "";
|
687 |
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
{
|
693 |
-
ux_txt_gallery_title:
|
694 |
-
{
|
695 |
-
required: true
|
696 |
-
}
|
697 |
-
},
|
698 |
-
errorPlacement: function ()
|
699 |
-
{
|
700 |
-
},
|
701 |
-
highlight: function (element)
|
702 |
-
{
|
703 |
-
jQuery(element).closest(".form-group").removeClass("has-success").addClass("has-error");
|
704 |
-
},
|
705 |
-
success: function (label, element)
|
706 |
{
|
707 |
-
|
|
|
|
|
|
|
708 |
},
|
709 |
-
|
710 |
-
{
|
711 |
-
if (window.CKEDITOR)
|
712 |
-
{
|
713 |
-
var gallery_description = jQuery("#ux_txtarea_gallery_heading_content").val(CKEDITOR.instances["ux_heading_content"].getData());
|
714 |
-
} else if (jQuery("#wp-ux_heading_content-wrap").hasClass("tmce-active"))
|
715 |
-
{
|
716 |
-
var gallery_description = jQuery("#ux_txtarea_gallery_heading_content").val(tinyMCE.get("ux_heading_content").getContent());
|
717 |
-
} else
|
718 |
-
{
|
719 |
-
var gallery_description = jQuery("#ux_txtarea_gallery_heading_content").val(jQuery("#ux_heading_content").val());
|
720 |
-
}
|
721 |
-
if (array_delete_images.length > 0)
|
722 |
-
{
|
723 |
-
jQuery.post(ajaxurl,
|
724 |
-
{
|
725 |
-
delete_image_data: JSON.stringify(array_delete_images),
|
726 |
-
param: "delete_gallery_images",
|
727 |
-
action: "gallery_bank_action_module",
|
728 |
-
_wp_nonce: "<?php echo isset($gallery_images_delete_nonce) ? $gallery_images_delete_nonce : ""; ?>"
|
729 |
-
});
|
730 |
-
}
|
731 |
-
var image_meta = [];
|
732 |
-
jQuery.each(oTable.fnGetNodes(), function (index, value)
|
733 |
-
{
|
734 |
-
image_meta.push(jQuery(value.cells[0]).find("input:checkbox").val());
|
735 |
-
});
|
736 |
-
overlay_loading_gallery_bank(<?php echo isset($_REQUEST["mode"]) && esc_attr($_REQUEST["mode"]) == "edit" ? json_encode($gb_update_gallery_data) : json_encode($gb_save_gallery_data); ?>);
|
737 |
-
jQuery.post(ajaxurl,
|
738 |
-
{
|
739 |
-
gallery_id: <?php echo isset($_REQUEST["gallery_id"]) ? intval($_REQUEST["gallery_id"]) : 0; ?>,
|
740 |
-
gallery_title: base64_encode_gallery_bank(jQuery("#ux_txt_gallery_title").serialize()),
|
741 |
-
gallery_description: base64_encode_gallery_bank(jQuery("#ux_txtarea_gallery_heading_content").serialize()),
|
742 |
-
gallery_cover_image: parseInt(gallery_cover_image),
|
743 |
-
data: base64_encode_gallery_bank(jQuery("input,textarea,select", oTable.fnGetNodes()).serialize()),
|
744 |
-
array_gallery_images_data: encodeURIComponent(JSON.stringify(image_meta)),
|
745 |
-
param: "update_gallery_data",
|
746 |
-
action: "gallery_bank_action_module",
|
747 |
-
_wp_nonce: "<?php echo isset($gallery_update_data_nonce) ? $gallery_update_data_nonce : ""; ?>"
|
748 |
-
},
|
749 |
-
function ()
|
750 |
-
{
|
751 |
-
setTimeout(function ()
|
752 |
-
{
|
753 |
-
remove_overlay_gallery_bank();
|
754 |
-
window.location.href = "admin.php?page=gallery_bank";
|
755 |
-
}, 3000);
|
756 |
-
});
|
757 |
-
}
|
758 |
-
});
|
759 |
-
function upload_type_gallery_bank()
|
760 |
-
{
|
761 |
-
jQuery("#ux_basic_details").on("click", function ()
|
762 |
-
{
|
763 |
-
jQuery("#ux_div_bind_data").css("display", "none");
|
764 |
-
jQuery("#ux_div_seperator").css("display", "none");
|
765 |
-
});
|
766 |
-
jQuery("#ux_upload_media").on("click", function ()
|
767 |
-
{
|
768 |
-
jQuery("#ux_div_bind_data").css("display", "block");
|
769 |
-
jQuery("#ux_div_seperator").css("display", "block");
|
770 |
-
});
|
771 |
-
jQuery("#ux_online_upload_media").on("click", function ()
|
772 |
{
|
773 |
-
|
774 |
-
|
775 |
-
});
|
776 |
-
}
|
777 |
-
jQuery(document).ready(function ()
|
778 |
-
{
|
779 |
-
jQuery("#ux_div_bind_data").css("display", "none");
|
780 |
-
jQuery("#ux_div_seperator").css("display", "none");
|
781 |
-
jQuery("#cboxTitle").remove();
|
782 |
-
upload_type_gallery_bank();
|
783 |
-
jQuery("#brightness").on("input change", function ()
|
784 |
{
|
785 |
-
|
786 |
-
}
|
787 |
-
|
788 |
{
|
789 |
-
|
790 |
-
}
|
791 |
-
|
792 |
{
|
793 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
794 |
}
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
817 |
}
|
|
|
|
|
|
|
|
|
|
|
818 |
?>
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
854 |
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
});
|
882 |
-
});
|
883 |
-
// Render file browser
|
884 |
-
jQuery("#ux_wp_dir_browser").fileTree(
|
885 |
-
{
|
886 |
-
root: "/",
|
887 |
-
script: ajaxurl + "?param=get_ftp_directories&action=gallery_bank_ftp_directory&_wp_nonce=<?php echo $ftp_upload; ?>"
|
888 |
-
}, function (file)
|
889 |
-
{
|
890 |
-
jQuery("#ux_wp_dir_browser a").each(function ()
|
891 |
-
{
|
892 |
-
jQuery(this).removeClass("custom-selected-folder");
|
893 |
-
})
|
894 |
-
jQuery("#ux_wp_dir_browser a[rel=\"" + file + "\"]").addClass("custom-selected-folder");
|
895 |
-
jQuery("#ux_txt_ftp_path").val(file);
|
896 |
-
});
|
897 |
-
function set_cover_image_dynamically_gallery_bank(image_id)
|
898 |
-
{
|
899 |
-
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
900 |
-
jQuery("input[type=radio][name=ux_rdl_set_cover_image]:checked", oTable.fnGetNodes()).each(function ()
|
901 |
-
{
|
902 |
-
jQuery(this).removeAttr("checked");
|
903 |
-
});
|
904 |
-
jQuery("#ux_rdl_set_cover_image_" + image_id).attr("checked", "checked");
|
905 |
-
gallery_cover_image = image_id;
|
906 |
-
}
|
907 |
-
function isUrlValid_gallery_bank(url)
|
908 |
-
{
|
909 |
-
var value = jQuery("#" + url.id).val();
|
910 |
-
var condition = /^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);
|
911 |
-
if (condition === false)
|
912 |
-
{
|
913 |
-
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
914 |
-
toastr[shortCutFunction](<?php echo json_encode($gb_validate_url); ?>);
|
915 |
-
}
|
916 |
-
}
|
917 |
-
function check_value_checkbox_gallery_bank()
|
918 |
-
{
|
919 |
-
if (jQuery("input[type=checkbox][name*=ux_chk_select_items_]:checked", oTable.fnGetFilteredNodes()).length === jQuery("input[type=checkbox][name*=ux_chk_select_items_]", oTable.fnGetFilteredNodes()).length)
|
920 |
-
{
|
921 |
-
jQuery("#ux_chk_all_gallery").attr("checked", "checked");
|
922 |
-
} else
|
923 |
-
{
|
924 |
-
jQuery("#ux_chk_all_gallery").removeAttr("checked");
|
925 |
-
}
|
926 |
-
}
|
927 |
-
function bind_rows_to_table_gallery_bank(image_data, image_title, image_alt_text, image_description)
|
928 |
-
{
|
929 |
-
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
930 |
-
var col1 = jQuery("#ux_dynamic_tr_0 td:first-child").clone();
|
931 |
-
var col2 = jQuery("#ux_dynamic_tr_0 td:nth-child(2)").clone();
|
932 |
-
var col3 = jQuery("#ux_dynamic_tr_0 td:nth-child(3)").clone();
|
933 |
-
var rowIdxes = oTable.fnAddData([col1.html(), col2.html(), col3.html()]);
|
934 |
-
var rowTr = oTable.fnGetNodes(rowIdxes[0]);
|
935 |
-
jQuery(rowTr).find("td:first-child").attr("style", "text-align:center");
|
936 |
-
jQuery(rowTr).find("td:first-child input[type=checkbox]").attr("value", image_data[0]);
|
937 |
-
jQuery(rowTr).find("td:first-child input[type=checkbox]").attr("name", "ux_chk_select_items_" + image_data[0]);
|
938 |
-
jQuery(rowTr).find("td:first-child input[type=checkbox]").attr("id", "ux_chk_select_items_" + image_data[0]);
|
939 |
-
jQuery(rowTr).find("td:first-child input[type=checkbox]").attr("onclick", "check_value_checkbox_gallery_bank()");
|
940 |
-
jQuery(rowTr).find("td:nth-child(2)").attr("width", "20%");
|
941 |
-
jQuery(rowTr).find("td:nth-child(2) img").attr("src", "<?php echo GALLERY_BANK_THUMBS_NON_CROPPED_URL; ?>" + image_data[1]);
|
942 |
-
jQuery(rowTr).find("td:nth-child(2) img").attr("style", "width:100%;display:block;");
|
943 |
-
jQuery(rowTr).find("td:nth-child(2) img").attr("id", "ux_gb_file_" + image_data[0]);
|
944 |
-
jQuery(rowTr).find("td:nth-child(2) img").attr("name", "ux_gb_file_" + image_data[0]);
|
945 |
-
jQuery(rowTr).find("td:nth-child(2) img").attr("file_type", "image");
|
946 |
-
jQuery(rowTr).find("td:nth-child(2) img").attr("img_name", image_data[1]);
|
947 |
-
jQuery(rowTr).find("td:nth-child(2) input[type=radio]").attr("id", "ux_rdl_set_cover_image_" + image_data[0]);
|
948 |
-
jQuery(rowTr).find("td:nth-child(2) input[type=radio]").attr("image_data", image_data[0]);
|
949 |
-
if (oTable.fnGetNodes().length === 1)
|
950 |
-
{
|
951 |
-
jQuery(rowTr).find("td:nth-child(2) input[type=radio]").attr("checked", "checked");
|
952 |
-
set_gallery_cover_image();
|
953 |
-
}
|
954 |
-
jQuery(rowTr).find("td:nth-child(2) input[type=radio]").attr("onclick", "set_cover_image_dynamically_gallery_bank(" + image_data[0] + ");");
|
955 |
-
jQuery(rowTr).find("td:nth-child(2) input[type=checkbox]").attr("id", "ux_exclude_image_" + image_data[0]);
|
956 |
-
jQuery(rowTr).find("td:nth-child(2) input[type=checkbox]").attr("name", "ux_exclude_image_" + image_data[0]);
|
957 |
-
jQuery(rowTr).find("td:nth-child(2) a:eq(0)").attr("id", "ux_rdl_edit_" + image_data[0]);
|
958 |
-
jQuery(rowTr).find("td:nth-child(2) a:eq(0)").attr("control_id", image_data[0]);
|
959 |
-
jQuery(rowTr).find("td:nth-child(2) a:eq(1)").attr("id", "ux_rdl_delete_" + image_data[0]);
|
960 |
-
jQuery(rowTr).find("td:nth-child(2) a:eq(1)").attr("control_id", image_data[0]);
|
961 |
-
jQuery(rowTr).find("td:nth-child(3) input:text:eq(0)").attr("id", "ux_txt_img_title_" + image_data[0]);
|
962 |
-
jQuery(rowTr).find("td:nth-child(3) input:text:eq(0)").attr("name", "ux_txt_img_title_" + image_data[0]);
|
963 |
-
jQuery(rowTr).find("td:nth-child(3) input:text:eq(0)").val(image_title);
|
964 |
-
jQuery(rowTr).find("td:nth-child(3) input:text:eq(1)").attr("id", "ux_img_alt_text_" + image_data[0]);
|
965 |
-
jQuery(rowTr).find("td:nth-child(3) input:text:eq(1)").attr("name", "ux_img_alt_text_" + image_data[0]);
|
966 |
-
jQuery(rowTr).find("td:nth-child(3) input:text:eq(1)").val(image_alt_text);
|
967 |
-
jQuery(rowTr).find("td:nth-child(3) textarea").attr("id", "ux_txt_img_desc_" + image_data[0]);
|
968 |
-
jQuery(rowTr).find("td:nth-child(3) textarea").attr("name", "ux_txt_img_desc_" + image_data[0]);
|
969 |
-
jQuery(rowTr).find("td:nth-child(3) textarea").val(image_description);
|
970 |
-
jQuery(rowTr).find("td:nth-child(3) input[type=radio][id*=ux_rdl_enable_redirect_]").attr("id", "ux_rdl_enable_redirect_" + image_data[0]);
|
971 |
-
jQuery(rowTr).find("td:nth-child(3) input[type=radio][id*=ux_rdl_disable_redirect_]").attr("id", "ux_rdl_disable_redirect_" + image_data[0]);
|
972 |
-
jQuery(rowTr).find("td:nth-child(3) input[type=radio]").attr("name", "ux_rdl_redirect_" + image_data[0]);
|
973 |
-
jQuery(rowTr).find("td:nth-child(3) input[type=radio]").attr("onclick", "show_image_url_redirect_gallery_bank(" + image_data[0] + ")");
|
974 |
-
jQuery(rowTr).find("td:nth-child(3) div[id=ux_div_url_redirect_]").attr("id", "ux_div_url_redirect_" + image_data[0]);
|
975 |
-
jQuery(rowTr).find("td:nth-child(3) input[id=ux_txt_img_url_]").attr("id", "ux_txt_img_url_" + image_data[0]);
|
976 |
-
jQuery(rowTr).find("td:nth-child(3) input[name=ux_txt_img_url_]").attr("name", "ux_txt_img_url_" + image_data[0]);
|
977 |
-
jQuery(rowTr).find("td:nth-child(3) input[name=ux_txt_img_url_" + image_data[0] + "]").attr("onblur", "isUrlValid_gallery_bank(this);");
|
978 |
-
jQuery(rowTr).find("td:nth-child(3) select").attr("id", "ux_ddl_tags_" + image_data[0]);
|
979 |
-
jQuery(rowTr).find("td:nth-child(3) select").attr("name", "ux_ddl_tags_" + image_data[0] + "[]");
|
980 |
-
jQuery(rowTr).find("td:nth-child(3) i").tooltip_tip({placement: "right"});
|
981 |
-
}
|
982 |
-
jQuery("#ux_chk_all_gallery").click(function ()
|
983 |
-
{
|
984 |
-
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
985 |
-
var checkProp = jQuery("#ux_chk_all_gallery").prop("checked");
|
986 |
-
jQuery("input[type=checkbox][name*=ux_chk_select_items_]", oTable.fnGetNodes()).each(function ()
|
987 |
-
{
|
988 |
-
checkProp === true ? jQuery(this).attr("checked", "checked") : jQuery(this).removeAttr("checked");
|
989 |
});
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1018 |
|
1019 |
-
|
1020 |
-
|
1021 |
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
|
1034 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1035 |
}
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1045 |
{
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1053 |
{
|
1054 |
-
|
1055 |
-
if (option === "edit")
|
1056 |
-
{
|
1057 |
-
array_delete_images.push(image_id);
|
1058 |
-
oTable.fnDeleteRow(oTable.fnGetNodes(row_position));
|
1059 |
-
jQuery("#gallery-bank-edit-image").addClass("hidden");
|
1060 |
-
} else
|
1061 |
-
{
|
1062 |
-
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
1063 |
-
array_delete_images.push(image_id);
|
1064 |
-
var row = jQuery(control).closest("tr");
|
1065 |
-
oTable.fnDeleteRow(row);
|
1066 |
-
var checked = jQuery("#ux_rdl_set_cover_image_" + image_id).prop("checked");
|
1067 |
-
if (checked)
|
1068 |
-
{
|
1069 |
-
var next_tr_id = jQuery(row[0]).closest("tr").next("tr").children().find("input").attr("value");
|
1070 |
-
jQuery("#ux_rdl_set_cover_image_" + next_tr_id).attr("checked", "checked");
|
1071 |
-
}
|
1072 |
-
}
|
1073 |
-
set_gallery_cover_image();
|
1074 |
}
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
|
|
|
|
|
|
|
|
1101 |
}
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
jQuery("#ux_li_album").addClass("active");
|
1139 |
-
jQuery("#ux_li_manage_albums").addClass("active");
|
1140 |
-
<?php
|
1141 |
-
if (albums_gallery_bank === "1") {
|
1142 |
-
?>
|
1143 |
-
var oTable = gallery_bank_manage_datatable("#ux_tbl_manage_album");
|
1144 |
-
jQuery("#ux_chk_all_albums").click(function () {
|
1145 |
-
jQuery("input[type=checkbox]", oTable.fnGetFilteredNodes()).attr("checked", this.checked);
|
1146 |
-
});
|
1147 |
-
<?php
|
1148 |
-
}
|
1149 |
-
break;
|
1150 |
-
case "gb_add_album" :
|
1151 |
-
?>
|
1152 |
-
jQuery("#ux_li_album").addClass("active");
|
1153 |
-
jQuery("#ux_li_add_album").addClass("active");
|
1154 |
-
<?php
|
1155 |
-
if (albums_gallery_bank === "1") {
|
1156 |
-
?>
|
1157 |
-
jQuery(document).ready(function ()
|
1158 |
-
{
|
1159 |
-
if (window.CKEDITOR)
|
1160 |
-
{
|
1161 |
-
CKEDITOR.replace("ux_heading_content");
|
1162 |
-
}
|
1163 |
-
});
|
1164 |
-
function add_gallery_gallery_bank()
|
1165 |
-
{
|
1166 |
-
var selected_galleries = [];
|
1167 |
-
jQuery.each(jQuery("#ux_ddl_available_galleries_duplicate option:selected"), function ()
|
1168 |
-
{
|
1169 |
-
selected_galleries.push(jQuery(this));
|
1170 |
-
jQuery(this).remove();
|
1171 |
-
});
|
1172 |
-
var value = "";
|
1173 |
-
for (var flag = 0; flag < selected_galleries.length; flag++)
|
1174 |
{
|
1175 |
-
|
1176 |
}
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1184 |
{
|
1185 |
-
|
1186 |
-
|
1187 |
});
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
jQuery("#ux_li_sort_albums").addClass("active");
|
1210 |
-
<?php
|
1211 |
-
if (albums_gallery_bank == "1") {
|
1212 |
-
?>
|
1213 |
-
jQuery(document).ready(function ()
|
1214 |
-
{
|
1215 |
-
jQuery("#ux_div_images_row").css("display", "none");
|
1216 |
-
jQuery("#ux_ul_sort_images").sortable(
|
1217 |
-
{
|
1218 |
-
opacity: 0.6,
|
1219 |
-
cursor: "move"
|
1220 |
-
});
|
1221 |
-
jQuery("#ux_ul_sort_images").disableSelection();
|
1222 |
-
});
|
1223 |
-
function choose_album_gallery_bank(id)
|
1224 |
-
{
|
1225 |
-
var albums_data = jQuery("#ux_ddl_sort_albums").val();
|
1226 |
-
overlay_loading_gallery_bank();
|
1227 |
-
setTimeout(function ()
|
1228 |
{
|
1229 |
-
|
1230 |
-
if (albums_data !== "")
|
1231 |
-
{
|
1232 |
-
window.location.href = "admin.php?page=gb_sort_albums&album_id=" + id;
|
1233 |
-
} else
|
1234 |
-
{
|
1235 |
-
window.location.href = "admin.php?page=gb_sort_albums";
|
1236 |
-
}
|
1237 |
-
}, 1000);
|
1238 |
-
}
|
1239 |
-
jQuery("#ux_frm_sort_album").validate
|
1240 |
-
({
|
1241 |
-
submitHandler: function (form)
|
1242 |
-
{
|
1243 |
-
premium_edition_notification_gallery_bank();
|
1244 |
-
}
|
1245 |
-
});
|
1246 |
-
<?php
|
1247 |
-
}
|
1248 |
-
break;
|
1249 |
-
case "gb_manage_tags":
|
1250 |
-
?>
|
1251 |
-
jQuery("#ux_li_tags").addClass("active");
|
1252 |
-
jQuery("#ux_li_manage_tags").addClass("active");
|
1253 |
-
<?php
|
1254 |
-
if (tags_gallery_bank == "1") {
|
1255 |
-
?>
|
1256 |
-
var oTable = gallery_bank_manage_datatable("#ux_tbl_manage_tags");
|
1257 |
-
jQuery("#ux_chk_all").click(function () {
|
1258 |
-
jQuery("input[type=checkbox]", oTable.fnGetFilteredNodes()).not("[disabled]").attr("checked", this.checked);
|
1259 |
-
});
|
1260 |
-
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1261 |
-
setTimeout(function () {
|
1262 |
-
clearInterval(sidebar_load_interval);
|
1263 |
-
}, 5000);
|
1264 |
-
<?php
|
1265 |
-
}
|
1266 |
-
break;
|
1267 |
-
case "gb_add_tag":
|
1268 |
-
?>
|
1269 |
-
jQuery("#ux_li_tags").addClass("active");
|
1270 |
-
"<?php echo isset($_REQUEST["id "]); ?>" ? jQuery("#ux_li_manage_tags").addClass("active") : jQuery("#ux_li_add_tag").addClass("active");
|
1271 |
-
<?php
|
1272 |
-
if (tags_gallery_bank == "1") {
|
1273 |
-
?>
|
1274 |
-
jQuery("#ux_frm_add_tag").validate({
|
1275 |
-
submitHandler: function () {
|
1276 |
-
premium_edition_notification_gallery_bank();
|
1277 |
}
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1321 |
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
1823 |
-
|
1824 |
-
|
1825 |
-
|
1826 |
-
|
1827 |
-
|
1828 |
-
|
1829 |
-
|
1830 |
-
|
1831 |
-
|
1832 |
-
|
1833 |
-
|
1834 |
-
|
1835 |
-
|
1836 |
-
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
1842 |
-
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
-
|
1847 |
-
|
1848 |
-
|
1849 |
-
|
1850 |
-
|
1851 |
-
|
1852 |
-
|
1853 |
-
|
1854 |
-
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
1858 |
-
|
1859 |
-
|
1860 |
-
|
1861 |
-
|
1862 |
-
|
1863 |
-
|
1864 |
-
|
1865 |
-
|
1866 |
-
|
1867 |
-
|
1868 |
-
|
1869 |
-
|
1870 |
-
|
1871 |
-
|
1872 |
-
|
1873 |
-
|
1874 |
-
|
1875 |
-
|
1876 |
-
|
1877 |
-
|
1878 |
-
|
1879 |
-
|
1880 |
-
|
1881 |
-
|
1882 |
-
|
1883 |
-
|
1884 |
-
|
1885 |
-
|
1886 |
-
|
1887 |
-
|
1888 |
-
|
1889 |
-
|
1890 |
-
|
1891 |
-
|
1892 |
-
|
1893 |
-
|
1894 |
-
|
1895 |
|
1896 |
-
|
1897 |
-
|
1898 |
-
|
1899 |
-
|
1900 |
-
|
1901 |
-
|
1902 |
-
|
1903 |
-
|
1904 |
-
|
1905 |
-
|
1906 |
-
|
1907 |
-
|
1908 |
-
|
1909 |
|
1910 |
-
|
1911 |
-
|
1912 |
-
|
1913 |
-
|
1914 |
-
|
1915 |
-
|
1916 |
-
|
1917 |
-
|
1918 |
-
|
1919 |
-
|
1920 |
-
|
1921 |
-
|
1922 |
-
|
1923 |
-
|
1924 |
-
|
1925 |
-
|
1926 |
-
|
1927 |
-
|
1928 |
-
|
1929 |
-
|
1930 |
-
|
1931 |
-
|
1932 |
-
|
1933 |
-
|
1934 |
-
|
1935 |
-
|
1936 |
|
1937 |
-
|
1938 |
-
|
1939 |
-
|
1940 |
-
|
1941 |
-
|
1942 |
-
|
1943 |
-
|
1944 |
-
|
1945 |
-
|
1946 |
-
|
1947 |
-
|
1948 |
-
|
1949 |
-
|
1950 |
-
|
1951 |
-
}
|
1952 |
-
}
|
1953 |
-
jQuery(document).ready(function () {
|
1954 |
-
jQuery("#ux_ddl_watermark_settings").val("<?php echo isset($watermark_settings_get_data["watermark_settings_type"]) ? esc_attr($watermark_settings_get_data["watermark_settings_type"]) : "none"; ?>");
|
1955 |
-
jQuery("#ux_ddl_watermark_position").val("<?php echo isset($watermark_settings_get_data["watermark_settings_position"]) ? esc_attr($watermark_settings_get_data["watermark_settings_position"]) : "top_left"; ?>");
|
1956 |
-
<?php
|
1957 |
-
global $wp_version;
|
1958 |
-
if ($wp_version <= 3.5) {
|
1959 |
-
?>
|
1960 |
-
jQuery("#wp_media_upload_error_message").css("display", "block");
|
1961 |
-
jQuery("#wp_upload_button").css("display", "none");
|
1962 |
-
<?php
|
1963 |
-
} else {
|
1964 |
-
wp_enqueue_media();
|
1965 |
}
|
1966 |
-
|
1967 |
-
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
-
|
1972 |
-
|
1973 |
-
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
1987 |
-
|
1988 |
-
|
1989 |
-
|
1990 |
-
|
1991 |
-
|
1992 |
-
|
1993 |
-
|
1994 |
-
|
1995 |
-
|
1996 |
-
|
1997 |
-
|
1998 |
-
|
1999 |
-
|
2000 |
-
|
2001 |
-
|
2002 |
-
|
2003 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004 |
|
2005 |
-
|
2006 |
-
|
2007 |
-
|
2008 |
-
|
2009 |
-
|
2010 |
-
|
2011 |
-
|
2012 |
-
|
2013 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014 |
}
|
2015 |
-
|
2016 |
-
|
2017 |
-
|
2018 |
-
|
2019 |
-
|
2020 |
-
|
2021 |
-
|
2022 |
-
|
2023 |
-
|
2024 |
-
|
2025 |
-
|
2026 |
-
|
2027 |
-
|
2028 |
-
|
2029 |
-
|
2030 |
-
|
2031 |
-
|
2032 |
-
jQuery("#
|
2033 |
-
|
2034 |
-
|
2035 |
-
|
2036 |
-
|
2037 |
-
|
2038 |
-
|
2039 |
-
|
2040 |
-
|
2041 |
-
|
2042 |
-
|
2043 |
-
|
2044 |
-
|
2045 |
-
|
2046 |
-
|
2047 |
-
|
2048 |
-
|
2049 |
-
|
2050 |
-
|
2051 |
-
|
2052 |
-
|
2053 |
-
|
2054 |
-
|
2055 |
-
|
2056 |
-
|
2057 |
-
|
2058 |
-
|
2059 |
-
|
2060 |
-
|
2061 |
-
|
2062 |
-
|
2063 |
-
|
2064 |
-
|
2065 |
-
|
2066 |
-
|
2067 |
-
|
2068 |
-
|
2069 |
-
|
2070 |
-
|
2071 |
-
|
2072 |
-
|
2073 |
-
|
2074 |
-
|
2075 |
-
|
2076 |
-
|
2077 |
-
|
2078 |
-
|
2079 |
-
|
2080 |
-
|
2081 |
-
|
2082 |
-
|
2083 |
-
|
2084 |
-
|
2085 |
-
jQuery("#
|
2086 |
-
|
2087 |
-
|
2088 |
-
|
2089 |
-
|
2090 |
-
|
2091 |
-
|
2092 |
-
|
2093 |
-
|
2094 |
-
|
2095 |
-
|
2096 |
-
|
2097 |
-
|
2098 |
-
|
2099 |
-
|
2100 |
-
|
2101 |
-
|
2102 |
-
|
2103 |
-
|
2104 |
-
|
2105 |
-
|
2106 |
-
|
2107 |
-
|
2108 |
-
|
2109 |
-
|
2110 |
-
|
2111 |
-
|
2112 |
-
|
2113 |
-
|
2114 |
-
|
2115 |
-
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
|
2120 |
-
|
2121 |
-
|
2122 |
-
|
2123 |
-
|
2124 |
-
|
2125 |
-
|
2126 |
-
|
2127 |
-
|
2128 |
-
|
2129 |
-
|
2130 |
-
|
2131 |
-
|
2132 |
-
|
2133 |
-
|
2134 |
-
|
2135 |
-
|
2136 |
-
<?php
|
2137 |
-
}
|
2138 |
-
break;
|
2139 |
-
case "gb_slideshow_layout_shortcode" :
|
2140 |
-
?>
|
2141 |
-
jQuery("#ux_li_shortcode_generator").addClass("active");
|
2142 |
-
jQuery("#ux_li_slideshow_layout_shortcode").addClass("active");
|
2143 |
|
2144 |
-
|
2145 |
-
|
2146 |
-
|
2147 |
-
|
2148 |
-
|
2149 |
-
|
2150 |
-
|
2151 |
-
|
2152 |
-
|
2153 |
-
|
2154 |
-
|
2155 |
-
|
2156 |
-
|
2157 |
-
|
2158 |
-
|
2159 |
-
|
2160 |
-
|
2161 |
-
|
2162 |
-
|
2163 |
-
|
2164 |
-
|
2165 |
-
|
2166 |
-
|
2167 |
-
|
2168 |
-
|
2169 |
-
|
2170 |
-
|
2171 |
-
|
2172 |
-
|
2173 |
-
|
2174 |
-
|
2175 |
-
|
2176 |
-
|
2177 |
-
|
2178 |
-
|
2179 |
-
|
2180 |
-
|
2181 |
-
|
2182 |
-
|
2183 |
-
|
2184 |
-
|
2185 |
-
|
2186 |
-
|
2187 |
-
|
2188 |
-
|
2189 |
-
|
2190 |
-
|
2191 |
-
|
2192 |
-
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
|
2198 |
-
|
2199 |
-
|
2200 |
-
|
2201 |
-
|
2202 |
-
|
2203 |
-
|
2204 |
-
|
2205 |
-
|
2206 |
-
|
2207 |
-
|
2208 |
-
|
2209 |
-
|
2210 |
-
|
2211 |
-
|
2212 |
-
|
2213 |
-
|
2214 |
-
|
2215 |
-
|
2216 |
-
|
2217 |
-
|
2218 |
|
2219 |
-
|
2220 |
-
|
2221 |
-
|
2222 |
-
|
2223 |
-
|
2224 |
-
|
2225 |
-
|
2226 |
-
|
2227 |
-
|
2228 |
-
|
2229 |
-
|
2230 |
-
|
2231 |
-
|
2232 |
-
|
2233 |
-
|
2234 |
-
|
2235 |
-
|
2236 |
-
|
2237 |
-
|
2238 |
-
|
2239 |
-
|
2240 |
-
|
2241 |
-
|
2242 |
-
|
2243 |
-
|
2244 |
-
|
2245 |
-
|
2246 |
-
});
|
2247 |
-
}
|
2248 |
-
jQuery(document).ready(function () {
|
2249 |
-
jQuery("#ux_ddl_gallery_bank_menu").val("<?php echo isset($details_roles_capabilities["show_gallery_bank_top_bar_menu"]) ? $details_roles_capabilities["show_gallery_bank_top_bar_menu"] : "enable"; ?>");
|
2250 |
-
full_control_function_gallery_bank("#ux_chk_full_control_administrator", "ux_div_administrator_roles");
|
2251 |
-
show_roles_capabilities_gallery_bank("#ux_chk_author", "ux_div_author_roles");
|
2252 |
-
full_control_function_gallery_bank("#ux_chk_full_control_author", "ux_div_author_roles");
|
2253 |
-
show_roles_capabilities_gallery_bank("#ux_chk_editor", "ux_div_editor_roles");
|
2254 |
-
full_control_function_gallery_bank("#ux_chk_full_control_editor", "ux_div_editor_roles");
|
2255 |
-
show_roles_capabilities_gallery_bank("#ux_chk_contributor", "ux_div_contributor_roles");
|
2256 |
-
full_control_function_gallery_bank("#ux_chk_full_control_contributor", "ux_div_contributor_roles");
|
2257 |
-
show_roles_capabilities_gallery_bank("#ux_chk_subscriber", "ux_div_subscriber_roles");
|
2258 |
-
full_control_function_gallery_bank("#ux_chk_full_control_subscriber", "ux_div_subscriber_roles");
|
2259 |
-
show_roles_capabilities_gallery_bank("#ux_chk_others_privileges", "ux_div_other_privileges_roles");
|
2260 |
-
full_control_function_gallery_bank("#ux_chk_full_control_others", "ux_div_other_privileges_roles");
|
2261 |
-
});
|
2262 |
-
jQuery("#ux_frm_roles_and_capabilities").validate({
|
2263 |
-
submitHandler: function () {
|
2264 |
-
premium_edition_notification_gallery_bank();
|
2265 |
-
}
|
2266 |
-
});
|
2267 |
-
<?php
|
2268 |
-
}
|
2269 |
-
break;
|
2270 |
-
case "gb_feature_requests" :
|
2271 |
-
?>
|
2272 |
-
jQuery("#ux_li_feature_requests").addClass("active");
|
2273 |
-
jQuery("#ux_li_feature_requests").addClass("active");
|
2274 |
-
var feature_request_array = [];
|
2275 |
-
var frm_feature_request = jQuery("#ux_frm_feature_requests");
|
2276 |
-
var url = "<?php echo tech_banker_url . "/feedbacks.php"; ?>";
|
2277 |
-
var domain_url = "<?php echo site_url(); ?>";
|
2278 |
-
frm_feature_request.validate({
|
2279 |
-
rules: {
|
2280 |
-
ux_txt_your_name: {
|
2281 |
-
required: true
|
2282 |
-
},
|
2283 |
-
ux_txt_email_address: {
|
2284 |
-
required: true,
|
2285 |
-
email: true
|
2286 |
-
},
|
2287 |
-
ux_txtarea_feature_request: {
|
2288 |
-
required: true
|
2289 |
-
}
|
2290 |
-
},
|
2291 |
-
errorPlacement: function (error, element) {
|
2292 |
-
},
|
2293 |
-
highlight: function (element) {
|
2294 |
-
jQuery(element).closest(".form-group").removeClass("has-success").addClass("has-error");
|
2295 |
-
},
|
2296 |
-
success: function (label, element) {
|
2297 |
-
jQuery(element).closest(".form-group").removeClass("has-error").addClass("has-success");
|
2298 |
-
},
|
2299 |
-
submitHandler: function () {
|
2300 |
-
feature_request_array.push(jQuery("#ux_txt_your_name").val(), jQuery("#ux_txt_email_address").val(), domain_url, jQuery("#ux_txtarea_feature_request").val());
|
2301 |
-
overlay_loading_gallery_bank(<?php echo json_encode($gb_feature_requests_update); ?>);
|
2302 |
-
jQuery.post(url, {
|
2303 |
-
data: JSON.stringify(feature_request_array),
|
2304 |
-
param: "gb_feature_requests"
|
2305 |
-
},
|
2306 |
-
function () {
|
2307 |
-
setTimeout(function () {
|
2308 |
-
remove_overlay_gallery_bank();
|
2309 |
-
window.location.reload();
|
2310 |
-
}, 3000);
|
2311 |
-
});
|
2312 |
-
}
|
2313 |
});
|
2314 |
-
|
2315 |
-
|
2316 |
-
|
2317 |
-
|
2318 |
-
|
2319 |
-
|
2320 |
-
|
2321 |
-
|
2322 |
-
|
2323 |
-
|
2324 |
-
|
2325 |
-
|
2326 |
-
|
2327 |
-
|
2328 |
-
|
2329 |
-
|
2330 |
-
|
2331 |
-
|
2332 |
-
|
2333 |
-
|
2334 |
-
|
2335 |
-
|
2336 |
-
|
2337 |
-
|
2338 |
-
|
2339 |
-
|
2340 |
-
|
2341 |
-
|
2342 |
-
|
2343 |
-
|
2344 |
-
|
2345 |
-
|
2346 |
-
|
2347 |
-
|
2348 |
-
|
2349 |
-
|
2350 |
-
|
2351 |
-
|
2352 |
-
|
2353 |
-
|
2354 |
-
|
2355 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2356 |
});
|
2357 |
-
|
2358 |
-
|
2359 |
-
|
2360 |
-
|
2361 |
-
|
2362 |
-
|
2363 |
-
|
2364 |
-
|
2365 |
-
|
2366 |
-
|
2367 |
-
|
2368 |
-
|
2369 |
-
|
2370 |
-
|
2371 |
-
|
2372 |
-
|
2373 |
-
|
2374 |
-
|
2375 |
-
|
2376 |
-
|
2377 |
-
|
2378 |
-
|
2379 |
-
|
2380 |
-
|
2381 |
-
|
2382 |
-
|
2383 |
-
|
2384 |
-
|
2385 |
-
|
2386 |
-
|
2387 |
-
|
2388 |
-
|
2389 |
-
|
2390 |
-
|
2391 |
-
|
2392 |
-
|
2393 |
-
|
2394 |
-
|
2395 |
-
|
2396 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2397 |
}
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
+
exit;
|
11 |
} // Exit if accessed directly
|
12 |
if (!is_user_logged_in()) {
|
13 |
+
return;
|
14 |
} else {
|
15 |
+
$access_granted = false;
|
16 |
+
foreach ($user_role_permission as $permission) {
|
17 |
+
if (current_user_can($permission)) {
|
18 |
+
$access_granted = true;
|
19 |
+
break;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
if (!$access_granted) {
|
23 |
+
return;
|
24 |
+
} else {
|
25 |
+
$get_gallery_id_gallery_bank = wp_create_nonce("get_gallery_id_gallery_bank");
|
26 |
+
?>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
+
<div class="popup" data-popup="ux_open_popup_translator">
|
31 |
<div class="popup-inner">
|
32 |
<div class="portlet box vivid-green" style="margin-bottom:0px;">
|
33 |
<div class="portlet-title">
|
92 |
</div>
|
93 |
</div>
|
94 |
</div>
|
95 |
+
<script type="text/javascript">
|
96 |
+
var original_path = "<?php echo GALLERY_BANK_ORIGINAL_URL; ?>";
|
97 |
+
var thumbnail_path = "<?php echo GALLERY_BANK_THUMBS_CROPPED_URL; ?>";
|
98 |
+
var gallery_cover_image = 0;
|
99 |
+
jQuery("li > a").parents("li").each(function () {
|
100 |
+
if (jQuery(this).parent("ul.page-sidebar-menu-tech-banker").size() === 1) {
|
101 |
+
jQuery(this).find("> a").append("<span class=\"selected\"></span>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
+
});
|
104 |
+
jQuery(".tooltips").tooltip_tip({placement: "right"});
|
105 |
+
jQuery(".page-sidebar-tech-banker").on("click", "li > a", function (e) {
|
106 |
+
var hasSubMenu = jQuery(this).next().hasClass("sub-menu");
|
107 |
+
var parent = jQuery(this).parent().parent();
|
108 |
+
var sidebar_menu = jQuery(".page-sidebar-menu-tech-banker");
|
109 |
+
var sub = jQuery(this).next();
|
110 |
+
var slideSpeed = parseInt(sidebar_menu.data("slide-speed"));
|
111 |
+
parent.children("li.open").children(".sub-menu:not(.always-open)").slideUp(slideSpeed);
|
112 |
+
parent.children("li.open").removeClass("open");
|
113 |
+
var sidebar_close = parent.children("li.open").removeClass("open");
|
114 |
+
if (sidebar_close) {
|
115 |
+
setInterval(load_sidebar_content_gallery_bank, 100);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
+
if (sub.is(":visible")) {
|
118 |
+
jQuery(this).parent().removeClass("open");
|
119 |
+
sub.slideUp(slideSpeed);
|
120 |
+
} else if (hasSubMenu) {
|
121 |
+
jQuery(this).parent().addClass("open");
|
122 |
+
sub.slideDown(slideSpeed);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
}
|
124 |
+
});
|
125 |
+
function load_sidebar_content_gallery_bank() {
|
126 |
+
var menus_height = jQuery(".page-sidebar-menu-tech-banker").height();
|
127 |
+
var content_height = jQuery(".page-content").height() + 30;
|
128 |
+
if (parseInt(menus_height) > parseInt(content_height)) {
|
129 |
+
jQuery(".page-content").attr("style", "min-height:" + menus_height + "px");
|
130 |
+
} else {
|
131 |
+
jQuery(".page-sidebar-menu-tech-banker").attr("style", "min-height:" + content_height + "px");
|
132 |
}
|
133 |
+
}
|
134 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
135 |
+
setTimeout(function () {
|
136 |
+
clearInterval(sidebar_load_interval);
|
137 |
+
}, 5000);
|
138 |
+
function gallery_bank_manage_datatable(id) {
|
139 |
+
var oTable = jQuery(id).dataTable({
|
140 |
+
"pagingType": "full_numbers",
|
141 |
+
"language": {
|
142 |
+
"emptyTable": "No data available in table",
|
143 |
+
"info": "Showing _START_ to _END_ of _TOTAL_ entries",
|
144 |
+
"infoEmpty": "No entries found",
|
145 |
+
"infoFiltered": "(filtered1 from _MAX_ total entries)",
|
146 |
+
"lengthMenu": "Show _MENU_ entries",
|
147 |
+
"search": "Search:",
|
148 |
+
"zeroRecords": "No matching records found"
|
149 |
+
},
|
150 |
+
"bSort": true,
|
151 |
+
"pageLength": 10,
|
152 |
+
"aoColumnDefs": [{"bSortable": false, "aTargets": [0]}]
|
153 |
+
});
|
154 |
+
return oTable;
|
155 |
+
}
|
156 |
+
function hover_effect_value_gallery_bank() {
|
157 |
+
var hover_effect = jQuery("#ux_ddl_hover_effect").val();
|
158 |
+
switch (hover_effect) {
|
159 |
+
case "none":
|
160 |
+
jQuery("#ux_txt_hover_effect_value").attr("readonly", "readonly").show();
|
161 |
+
jQuery("#ux_txt_hover_scale_value_x,#ux_txt_hover_scale_value_y").hide();
|
162 |
+
jQuery("#ux_spn_hover_value").text("");
|
163 |
+
break;
|
164 |
+
case "rotate":
|
165 |
+
jQuery("#ux_txt_hover_effect_value").removeAttr("readonly").show();
|
166 |
+
jQuery("#ux_txt_hover_scale_value_x,#ux_txt_hover_scale_value_y").hide();
|
167 |
+
jQuery("#ux_spn_hover_value").text("(In Degree)");
|
168 |
+
break;
|
169 |
+
case "scale":
|
170 |
+
jQuery("#ux_txt_hover_effect_value").removeAttr("readonly").hide();
|
171 |
+
jQuery("#ux_txt_hover_scale_value_x,#ux_txt_hover_scale_value_y").show();
|
172 |
+
jQuery("#ux_spn_hover_value").text("(Multiple of Width & Height)");
|
173 |
+
break;
|
174 |
+
case "skew":
|
175 |
+
jQuery("#ux_txt_hover_effect_value").removeAttr("readonly").show();
|
176 |
+
jQuery("#ux_txt_hover_scale_value_x,#ux_txt_hover_scale_value_y").hide();
|
177 |
+
jQuery("#ux_spn_hover_value").text("(In Degree)");
|
178 |
+
break;
|
179 |
}
|
180 |
+
}
|
181 |
+
function default_value_gallery_bank(id, value) {
|
182 |
+
if (jQuery(id).val() === "") {
|
183 |
+
jQuery(id).val(value);
|
|
|
|
|
184 |
}
|
185 |
+
}
|
186 |
+
function only_digits_gallery_bank(event) {
|
187 |
+
if (event.which !== 8 && event.which !== 0 && (event.which < 48 || event.which > 57)) {
|
188 |
+
event.preventDefault();
|
189 |
}
|
190 |
+
}
|
191 |
+
function digits_with_dot_gallery_bank(event) {
|
192 |
+
if (event.which === 8 || event.keyCode === 37 || event.keyCode === 39 || event.keyCode === 46 || event.keyCode === 9 || event.keyCode === 110) {
|
193 |
+
return true;
|
194 |
+
} else if (event.which !== 46 && (event.which < 48 || event.which > 57)) {
|
195 |
+
event.preventDefault();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
}
|
197 |
+
}
|
198 |
+
function paste_prevent_gallery_bank(control_id) {
|
199 |
+
jQuery("#" + control_id).on("paste", function (e) {
|
200 |
+
e.preventDefault();
|
201 |
+
});
|
202 |
+
}
|
203 |
+
function color_picker_gallery_bank(id, color_value) {
|
204 |
+
jQuery(id).colpick({
|
205 |
+
layout: "hex",
|
206 |
+
colorScheme: "dark",
|
207 |
+
color: color_value,
|
208 |
+
onChange: function (hsb, hex, rgb, el, bySetColor) {
|
209 |
+
if (!bySetColor)
|
210 |
+
jQuery(el).val("#" + hex);
|
211 |
+
}
|
212 |
+
}).keyup(function () {
|
213 |
+
jQuery(this).colpickSetColor("#" + this.value);
|
214 |
+
}).focus(function () {
|
215 |
+
jQuery(id).colpickSetColor(color_value);
|
216 |
+
});
|
217 |
+
}
|
218 |
+
function check_opacity_gallery_bank(input) {
|
219 |
+
if (input.value < 0)
|
220 |
+
input.value = 0;
|
221 |
+
if (input.value > 100)
|
222 |
+
input.value = 100;
|
223 |
+
}
|
224 |
+
function show_hide_control_gallery_bank(control_id, div_id) {
|
225 |
+
var title = jQuery("#" + control_id).val();
|
226 |
+
switch (title) {
|
227 |
+
case "true":
|
228 |
+
jQuery("#" + div_id).css("display", "block");
|
229 |
+
break;
|
230 |
+
case "show":
|
231 |
+
case "enable":
|
232 |
+
jQuery("#" + div_id).css("display", "block");
|
233 |
+
break;
|
234 |
+
case "hide":
|
235 |
+
case "disable":
|
236 |
+
jQuery("#" + div_id).css("display", "none");
|
237 |
+
break;
|
238 |
+
default:
|
239 |
+
jQuery("#" + div_id).css("display", "none");
|
240 |
+
break;
|
241 |
}
|
242 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
243 |
+
setTimeout(function () {
|
244 |
+
clearInterval(sidebar_load_interval);
|
245 |
+
}, 3000);
|
246 |
+
}
|
247 |
+
function overlay_loading_gallery_bank(message) {
|
248 |
+
var overlay_opacity = jQuery("<div class=\"opacity_overlay\"></div>");
|
249 |
+
jQuery("body").append(overlay_opacity);
|
250 |
+
var overlay = jQuery("<div class=\"loader_opacity\"><div class=\"processing_overlay\"></div></div>");
|
251 |
+
jQuery("body").append(overlay);
|
252 |
+
var success = <?php echo json_encode($gb_success); ?>;
|
253 |
+
if (message !== undefined) {
|
254 |
+
var issuccessmessage = jQuery("#toast-container").exists();
|
255 |
+
if (issuccessmessage !== true) {
|
256 |
+
var shortCutFunction = jQuery("#manage_messages input:checked").val();
|
257 |
+
toastr[shortCutFunction](message, success);
|
258 |
+
}
|
|
|
|
|
|
|
|
|
|
|
259 |
}
|
260 |
+
}
|
261 |
+
function remove_overlay_gallery_bank() {
|
262 |
+
jQuery(".loader_opacity").remove();
|
263 |
+
jQuery(".opacity_overlay").remove();
|
264 |
+
}
|
265 |
+
function base64_encode_gallery_bank(data) {
|
266 |
+
var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
267 |
+
var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,
|
268 |
+
ac = 0,
|
269 |
+
enc = "",
|
270 |
+
tmp_arr = [];
|
271 |
+
if (!data) {
|
272 |
+
return data;
|
273 |
}
|
274 |
+
do {
|
275 |
+
o1 = data.charCodeAt(i++);
|
276 |
+
o2 = data.charCodeAt(i++);
|
277 |
+
o3 = data.charCodeAt(i++);
|
278 |
+
bits = o1 << 16 | o2 << 8 | o3;
|
279 |
+
h1 = bits >> 18 & 0x3f;
|
280 |
+
h2 = bits >> 12 & 0x3f;
|
281 |
+
h3 = bits >> 6 & 0x3f;
|
282 |
+
h4 = bits & 0x3f;
|
283 |
+
tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4);
|
284 |
+
} while (i < data.length);
|
285 |
+
enc = tmp_arr.join("");
|
286 |
+
var r = data.length % 3;
|
287 |
+
return(r ? enc.slice(0, r - 3) : enc) + "===".slice(r || 3);
|
288 |
+
}
|
289 |
+
function get_gallery_id_gallery_bank()
|
290 |
+
{
|
291 |
+
jQuery.post(ajaxurl,
|
292 |
+
{
|
293 |
+
data: "<?php echo isset($_REQUEST["gallery_id"]) ? intval($_REQUEST["gallery_id"]) : 0; ?>",
|
294 |
+
param: "gb_get_gallery_id_gallery_bank",
|
295 |
+
action: "gallery_bank_action_module",
|
296 |
+
_wp_nonce: "<?php echo $get_gallery_id_gallery_bank; ?>"
|
297 |
+
},
|
298 |
+
function (data)
|
299 |
+
{
|
300 |
+
window.location.href = "admin.php?page=gb_add_gallery&gallery_id=" + data + "&mode=add";
|
301 |
+
});
|
302 |
+
}
|
303 |
+
function submit_handler_common_gallery_bank(form_id, meta_id, param, nonce, overlay_loading, window_location) {
|
304 |
+
overlay_loading_gallery_bank(overlay_loading);
|
305 |
+
jQuery.post(ajaxurl, {
|
306 |
+
data: base64_encode_gallery_bank(jQuery(form_id).serialize()),
|
307 |
+
id: meta_id,
|
308 |
+
param: param,
|
309 |
+
action: "gallery_bank_action_module",
|
310 |
+
_wp_nonce: nonce
|
311 |
+
},
|
312 |
+
function () {
|
313 |
+
setTimeout(function () {
|
314 |
+
remove_overlay_gallery_bank();
|
315 |
+
window.location.href = "admin.php?page=" + window_location;
|
316 |
+
}, 3000);
|
317 |
+
});
|
318 |
+
}
|
319 |
+
function set_thumbnail_dimension_in_shortcode(control, image_dimension, message) {
|
320 |
+
jQuery(control).val() === "" || jQuery(control).val() === 0 ? jQuery(control).val(image_dimension) : "";
|
321 |
+
if (parseInt(jQuery(control).val()) > parseInt(image_dimension)) {
|
322 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
323 |
+
$toast = toastr[shortCutFunction](message);
|
324 |
+
jQuery(control).val(image_dimension);
|
325 |
}
|
326 |
+
}
|
327 |
+
jQuery(".reset-page").click(function () {
|
328 |
+
window.location.href = self.location['href'];
|
329 |
+
});
|
330 |
+
function set_thumbnail_dimension_in_shortcode_gallery_bank(control, image_dimension, message) {
|
331 |
+
jQuery(control).val() === "" || jQuery(control).val() === 0 ? jQuery(control).val(image_dimension) : "";
|
332 |
+
if (parseInt(jQuery(control).val()) > parseInt(image_dimension)) {
|
333 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
334 |
+
toastr[shortCutFunction](message);
|
335 |
+
jQuery(control).val(image_dimension);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
}
|
337 |
+
}
|
338 |
+
function check_thumbnail_dimension_gallery_bank(control, image_id) {
|
339 |
+
switch (jQuery(control).attr("id")) {
|
340 |
+
case "ux_txt_width":
|
341 |
+
jQuery(control).val() === "" || jQuery(control).val() === 0 ? jQuery(control).val("1600") : "";
|
342 |
+
if (parseInt(jQuery(image_id).val()) >= parseInt(jQuery(control).val())) {
|
343 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
344 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_shortcode_thumbnail_dimension_exceed_msg); ?>);
|
345 |
+
jQuery(control).val("1600");
|
346 |
+
}
|
347 |
+
break;
|
348 |
+
case "ux_txt_height":
|
349 |
+
jQuery(control).val() === "" || jQuery(control).val() === 0 ? jQuery(control).val("900") : "";
|
350 |
+
if (parseInt(jQuery(image_id).val()) >= parseInt(jQuery(control).val())) {
|
351 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
352 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_shortcode_thumbnail_dimension_exceed_msg); ?>);
|
353 |
+
jQuery(control).val("900");
|
354 |
+
}
|
355 |
+
break;
|
356 |
+
case "ux_txt_thumbnail_width":
|
357 |
+
jQuery(control).val() === "" || jQuery(control).val() === 0 ? jQuery(control).val("250") : "";
|
358 |
+
if (parseInt(jQuery(control).val()) >= parseInt(jQuery(image_id).val())) {
|
359 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
360 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_shortcode_thumbnail_dimension_exceed_msg); ?>);
|
361 |
+
jQuery(control).val("200");
|
362 |
+
}
|
363 |
+
break;
|
364 |
+
case "ux_txt_thumbnail_height":
|
365 |
+
jQuery(control).val() === "" || jQuery(control).val() === 0 ? jQuery(control).val("200") : "";
|
366 |
+
if (parseInt(jQuery(control).val()) >= parseInt(jQuery(image_id).val())) {
|
367 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
368 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_shortcode_thumbnail_dimension_exceed_msg); ?>);
|
369 |
+
jQuery(control).val("200");
|
370 |
+
}
|
371 |
+
break;
|
372 |
}
|
373 |
+
}
|
374 |
+
function confirm_delete_gallery_bank(meta_id, overlay_message, page_url, param, nonce) {
|
375 |
+
var checkstr = confirm(<?php echo json_encode($gb_delete_data); ?>);
|
376 |
+
if (checkstr === true) {
|
377 |
+
jQuery.post(ajaxurl, {
|
378 |
+
meta_id: meta_id,
|
379 |
+
param: param,
|
380 |
+
action: "gallery_bank_action_module",
|
381 |
+
_wp_nonce: nonce
|
382 |
+
},
|
383 |
+
function (data) {
|
384 |
+
if (jQuery.trim(data) !== "0" && jQuery.trim(data) !== "") {
|
385 |
+
if (param === "manage_gallery_module")
|
386 |
+
{
|
387 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
388 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_selected_gallery_in_album_delete_data); ?>);
|
389 |
+
} else
|
390 |
+
{
|
391 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
392 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_delete_tag_exists); ?>);
|
393 |
+
}
|
394 |
+
} else {
|
395 |
+
overlay_loading_gallery_bank(overlay_message);
|
396 |
+
setTimeout(function () {
|
397 |
remove_overlay_gallery_bank();
|
398 |
+
window.location.href = page_url;
|
399 |
+
}, 3000);
|
400 |
+
}
|
401 |
+
});
|
402 |
}
|
403 |
+
}
|
404 |
+
function confirm_delete_bulk_action_gallery_bank(check_id, bulk_id, overlay_message, page_url, param, nonce) {
|
405 |
+
var bulk_delete = jQuery("#" + bulk_id).val();
|
406 |
+
if (bulk_delete === "") {
|
407 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
408 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_bulk_delete_data); ?>);
|
409 |
+
} else {
|
410 |
+
var chkBoxArray = [];
|
411 |
+
jQuery("input[type=checkbox][name*=" + check_id + "]", oTable.fnGetFilteredNodes()).each(function () {
|
412 |
+
if (jQuery(this).val() !== "") {
|
413 |
+
var Checked = jQuery(this).attr("checked");
|
414 |
+
if (Checked === "checked") {
|
415 |
+
chkBoxArray.push(jQuery(this).val());
|
416 |
+
}
|
417 |
+
}
|
418 |
+
});
|
419 |
+
if (chkBoxArray.length < 1) {
|
420 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
421 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_bulk_delete_data_message); ?>);
|
422 |
+
} else {
|
423 |
+
var confirm_delete = confirm(<?php echo json_encode($gb_delete_data); ?>);
|
424 |
+
if (confirm_delete === true) {
|
425 |
+
jQuery.post(ajaxurl, {
|
426 |
+
data: encodeURIComponent(chkBoxArray),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
param: param,
|
428 |
action: "gallery_bank_action_module",
|
429 |
_wp_nonce: nonce
|
430 |
+
},
|
431 |
+
function (data) {
|
432 |
if (jQuery.trim(data) !== "0" && jQuery.trim(data) !== "") {
|
433 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
434 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_delete_tag_exists); ?>);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
} else {
|
436 |
+
overlay_loading_gallery_bank(overlay_message);
|
437 |
+
setTimeout(function () {
|
438 |
+
remove_overlay_gallery_bank();
|
439 |
+
window.location.href = page_url;
|
440 |
+
}, 3000);
|
441 |
}
|
442 |
+
});
|
443 |
+
}
|
444 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
445 |
}
|
446 |
+
}
|
447 |
+
function check_all_gallery_bank(id) {
|
448 |
+
if (jQuery("input:checked", oTable.fnGetFilteredNodes()).length === jQuery("input[type=checkbox]", oTable.fnGetFilteredNodes()).not("[disabled]").length) {
|
449 |
+
jQuery(id).attr("checked", "checked");
|
450 |
+
} else {
|
451 |
+
jQuery(id).removeAttr("checked");
|
452 |
}
|
453 |
+
}
|
454 |
+
function sort_function_gallery_bank(control_id)
|
455 |
+
{
|
456 |
+
var options = jQuery("#" + control_id + " option");
|
457 |
+
var arr = options.map(function (_, o)
|
458 |
{
|
459 |
+
return{
|
460 |
+
t: jQuery(o).text(),
|
461 |
+
v: o.value
|
462 |
+
};
|
463 |
+
}).get();
|
464 |
+
arr.sort(function (o1, o2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
465 |
{
|
466 |
+
return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0;
|
467 |
+
});
|
468 |
+
options.each(function (i, o)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
469 |
{
|
470 |
+
o.value = arr[i].v;
|
471 |
+
jQuery(o).text(arr[i].t);
|
472 |
+
});
|
473 |
+
}
|
474 |
+
function shortcode_source_type_control_gallery_bank(control_id, gallery_id, album_id, album_control_id)
|
475 |
+
{
|
476 |
+
var title = jQuery("#" + control_id).val();
|
477 |
+
switch (title) {
|
478 |
+
case "gallery":
|
479 |
+
jQuery("#" + gallery_id).css("display", "block");
|
480 |
+
jQuery("#" + album_id).css("display", "none");
|
481 |
+
jQuery("#" + album_control_id).css("display", "none");
|
482 |
+
jQuery("#ux_div_album_type").css("display", "none");
|
483 |
+
break;
|
484 |
+
case "album":
|
485 |
+
jQuery("#" + album_id).css("display", "block");
|
486 |
+
jQuery("#" + gallery_id).css("display", "none");
|
487 |
+
jQuery("#" + album_control_id).css("display", "block");
|
488 |
+
jQuery("#ux_div_album_type").css("display", "block");
|
489 |
+
break;
|
490 |
+
default:
|
491 |
+
jQuery("#" + gallery_id).css("display", "none");
|
492 |
+
jQuery("#" + album_id).css("display", "none");
|
493 |
+
jQuery("#" + album_control_id).css("display", "none");
|
494 |
+
jQuery("#ux_div_album_type").css("display", "none");
|
495 |
+
break;
|
496 |
}
|
497 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
498 |
+
setTimeout(function ()
|
499 |
{
|
500 |
+
clearInterval(sidebar_load_interval);
|
501 |
+
}, 3000);
|
502 |
+
}
|
503 |
+
function premium_edition_notification_gallery_bank()
|
504 |
+
{
|
505 |
+
var premium_edition = <?php echo json_encode($gb_message_premium_edition); ?>;
|
506 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
507 |
+
toastr[shortCutFunction](premium_edition);
|
508 |
+
}
|
509 |
+
var clipboard = new Clipboard(".icon-custom-docs");
|
510 |
+
clipboard.on("success", function (e)
|
511 |
+
{
|
512 |
+
var shortCutFunction = jQuery("#manage_messages input:checked").val();
|
513 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_copied_successfully) ?>);
|
514 |
+
});
|
515 |
+
// Close popup
|
516 |
jQuery("[data-popup-close-translator]").on("click", function (e)
|
517 |
{
|
518 |
var confirm_close = confirm(<?php echo json_encode($gb_confirm_close); ?>);
|
603 |
});
|
604 |
}
|
605 |
});
|
606 |
+
<?php
|
607 |
+
$check_gallery_bank_wizard = get_option("gallery-bank-wizard-set-up");
|
608 |
+
$page_url = $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : esc_attr($_GET["page"]);
|
609 |
+
if (isset($_GET["page"])) {
|
610 |
+
switch ($page_url) {
|
611 |
+
case "gb_wizard_gallery_bank":
|
612 |
+
?>
|
613 |
+
function show_hide_details_gallery_bank()
|
614 |
+
{
|
615 |
+
if (jQuery("#ux_div_wizard_set_up").hasClass("wizard-set-up"))
|
616 |
+
{
|
617 |
+
jQuery("#ux_div_wizard_set_up").css("display", "none");
|
618 |
+
jQuery("#ux_div_wizard_set_up").removeClass("wizard-set-up");
|
619 |
+
} else
|
620 |
+
{
|
621 |
+
jQuery("#ux_div_wizard_set_up").css("display", "block");
|
622 |
+
jQuery("#ux_div_wizard_set_up").addClass("wizard-set-up");
|
623 |
+
}
|
624 |
+
}
|
625 |
+
function plugin_stats_gallery_bank(type)
|
626 |
+
{
|
627 |
+
overlay_loading_gallery_bank();
|
628 |
+
jQuery.post(ajaxurl,
|
629 |
+
{
|
630 |
+
type: type,
|
631 |
+
param: "wizard_gallery_bank",
|
632 |
+
action: "gallery_bank_action_module",
|
633 |
+
_wp_nonce: "<?php echo $gallery_bank_check_status; ?>"
|
634 |
+
},
|
635 |
+
function ()
|
636 |
+
{
|
637 |
+
remove_overlay_gallery_bank();
|
638 |
+
window.location.href = "admin.php?page=gallery_bank";
|
639 |
+
});
|
640 |
+
}
|
641 |
+
<?php
|
642 |
+
break;
|
643 |
+
case "gallery_bank" :
|
644 |
+
?>
|
645 |
+
jQuery("#ux_li_galleries").addClass("active");
|
646 |
+
jQuery("#ux_li_manage_galleries").addClass("active");
|
647 |
+
<?php
|
648 |
+
if (galleries_gallery_bank === "1") {
|
649 |
+
?>
|
650 |
+
var oTable = gallery_bank_manage_datatable("#ux_tbl_manage_gallery");
|
651 |
+
jQuery("#ux_chk_all_galleries").click(function () {
|
652 |
+
jQuery("input[type=checkbox]", oTable.fnGetFilteredNodes()).not("[disabled]").attr("checked", this.checked);
|
653 |
+
});
|
654 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
655 |
+
setTimeout(function ()
|
656 |
+
{
|
657 |
+
clearInterval(sidebar_load_interval);
|
658 |
+
}, 3000);
|
659 |
+
<?php
|
660 |
+
}
|
661 |
+
break;
|
662 |
+
case "gb_add_gallery":
|
663 |
+
?>
|
664 |
+
jQuery("#ux_li_galleries").addClass("active");
|
665 |
+
jQuery("#ux_li_add_galleries").addClass("active");
|
666 |
+
<?php
|
667 |
+
if (galleries_gallery_bank === "1") {
|
668 |
+
?>
|
669 |
+
var oTable = gallery_bank_manage_datatable("#ux_tbl_add_gallery");
|
670 |
+
function remove_selected_attr_gallery_bank(id)
|
671 |
+
{
|
672 |
+
if (jQuery("#" + id).hasClass("tag"))
|
673 |
{
|
674 |
+
if (jQuery("#" + id).prop("selected") == true)
|
675 |
+
{
|
676 |
+
jQuery("#" + id).prop("selected", false);
|
677 |
+
}
|
678 |
+
jQuery("#" + id).removeClass("tag");
|
679 |
+
} else
|
|
|
|
|
|
|
|
|
|
|
680 |
{
|
681 |
+
jQuery("#" + id).addClass("tag");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
}
|
683 |
+
}
|
684 |
+
array_delete_images = [];
|
685 |
+
array_gallery_images_data = [];
|
686 |
+
array_image_timestrap = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
687 |
|
688 |
+
var pl_upload_url = "<?php echo GALLERY_BANK_PLUGIN_DIR_URL . "assets/global/plugins/pluploader/" ?>";
|
689 |
+
jQuery("#ux_frm_add_gallery").validate
|
690 |
+
({
|
691 |
+
rules:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
692 |
{
|
693 |
+
ux_txt_gallery_title:
|
694 |
+
{
|
695 |
+
required: true
|
696 |
+
}
|
697 |
},
|
698 |
+
errorPlacement: function ()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
699 |
{
|
700 |
+
},
|
701 |
+
highlight: function (element)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
702 |
{
|
703 |
+
jQuery(element).closest(".form-group").removeClass("has-success").addClass("has-error");
|
704 |
+
},
|
705 |
+
success: function (label, element)
|
706 |
{
|
707 |
+
jQuery(element).closest(".form-group").removeClass("has-error").addClass("has-success");
|
708 |
+
},
|
709 |
+
submitHandler: function ()
|
710 |
{
|
711 |
+
if (window.CKEDITOR)
|
712 |
+
{
|
713 |
+
var gallery_description = jQuery("#ux_txtarea_gallery_heading_content").val(CKEDITOR.instances["ux_heading_content"].getData());
|
714 |
+
} else if (jQuery("#wp-ux_heading_content-wrap").hasClass("tmce-active"))
|
715 |
+
{
|
716 |
+
var gallery_description = jQuery("#ux_txtarea_gallery_heading_content").val(tinyMCE.get("ux_heading_content").getContent());
|
717 |
+
} else
|
718 |
+
{
|
719 |
+
var gallery_description = jQuery("#ux_txtarea_gallery_heading_content").val(jQuery("#ux_heading_content").val());
|
720 |
+
}
|
721 |
+
if (array_delete_images.length > 0)
|
722 |
+
{
|
723 |
+
jQuery.post(ajaxurl,
|
724 |
+
{
|
725 |
+
delete_image_data: JSON.stringify(array_delete_images),
|
726 |
+
param: "delete_gallery_images",
|
727 |
+
action: "gallery_bank_action_module",
|
728 |
+
_wp_nonce: "<?php echo isset($gallery_images_delete_nonce) ? $gallery_images_delete_nonce : ""; ?>"
|
729 |
+
});
|
730 |
+
}
|
731 |
+
var image_meta = [];
|
732 |
+
jQuery.each(oTable.fnGetNodes(), function (index, value)
|
733 |
+
{
|
734 |
+
image_meta.push(jQuery(value.cells[0]).find("input:checkbox").val());
|
735 |
+
});
|
736 |
+
overlay_loading_gallery_bank(<?php echo isset($_REQUEST["mode"]) && esc_attr($_REQUEST["mode"]) == "edit" ? json_encode($gb_update_gallery_data) : json_encode($gb_save_gallery_data); ?>);
|
737 |
+
jQuery.post(ajaxurl,
|
738 |
+
{
|
739 |
+
gallery_id: <?php echo isset($_REQUEST["gallery_id"]) ? intval($_REQUEST["gallery_id"]) : 0; ?>,
|
740 |
+
gallery_title: base64_encode_gallery_bank(jQuery("#ux_txt_gallery_title").serialize()),
|
741 |
+
gallery_description: base64_encode_gallery_bank(jQuery("#ux_txtarea_gallery_heading_content").serialize()),
|
742 |
+
gallery_cover_image: parseInt(gallery_cover_image),
|
743 |
+
data: base64_encode_gallery_bank(jQuery("input,textarea,select", oTable.fnGetNodes()).serialize()),
|
744 |
+
array_gallery_images_data: encodeURIComponent(JSON.stringify(image_meta)),
|
745 |
+
param: "update_gallery_data",
|
746 |
+
action: "gallery_bank_action_module",
|
747 |
+
_wp_nonce: "<?php echo isset($gallery_update_data_nonce) ? $gallery_update_data_nonce : ""; ?>"
|
748 |
+
},
|
749 |
+
function ()
|
750 |
+
{
|
751 |
+
setTimeout(function ()
|
752 |
+
{
|
753 |
+
remove_overlay_gallery_bank();
|
754 |
+
window.location.href = "admin.php?page=gallery_bank";
|
755 |
+
}, 3000);
|
756 |
+
});
|
757 |
}
|
758 |
+
});
|
759 |
+
function upload_type_gallery_bank()
|
760 |
+
{
|
761 |
+
jQuery("#ux_basic_details").on("click", function ()
|
762 |
+
{
|
763 |
+
jQuery("#ux_div_bind_data").css("display", "none");
|
764 |
+
jQuery("#ux_div_seperator").css("display", "none");
|
765 |
+
});
|
766 |
+
jQuery("#ux_upload_media").on("click", function ()
|
767 |
+
{
|
768 |
+
jQuery("#ux_div_bind_data").css("display", "block");
|
769 |
+
jQuery("#ux_div_seperator").css("display", "block");
|
770 |
+
});
|
771 |
+
jQuery("#ux_online_upload_media").on("click", function ()
|
772 |
+
{
|
773 |
+
jQuery("#ux_div_bind_data").css("display", "block");
|
774 |
+
jQuery("#ux_div_seperator").css("display", "block");
|
775 |
+
});
|
776 |
+
}
|
777 |
+
jQuery(document).ready(function ()
|
778 |
+
{
|
779 |
+
jQuery("#ux_div_bind_data").css("display", "none");
|
780 |
+
jQuery("#ux_div_seperator").css("display", "none");
|
781 |
+
jQuery("#cboxTitle").remove();
|
782 |
+
upload_type_gallery_bank();
|
783 |
+
jQuery("#brightness").on("input change", function ()
|
784 |
+
{
|
785 |
+
jQuery("#brightness_value").val(jQuery("#brightness").val());
|
786 |
+
});
|
787 |
+
jQuery("#contrast").on("input change", function ()
|
788 |
+
{
|
789 |
+
jQuery("#contrast_value").val(jQuery("#contrast").val());
|
790 |
+
});
|
791 |
+
if (window.CKEDITOR)
|
792 |
+
{
|
793 |
+
CKEDITOR.replace("ux_heading_content");
|
794 |
}
|
795 |
+
set_gallery_cover_image();
|
796 |
+
<?php
|
797 |
+
global $wp_version;
|
798 |
+
if (isset($get_gallery_image_meta_data_unserialize) && count($get_gallery_image_meta_data_unserialize) > 0) {
|
799 |
+
foreach ($get_gallery_image_meta_data_unserialize as $value) {
|
800 |
?>
|
801 |
+
show_image_url_redirect_gallery_bank(<?php echo $value["id"] ?>);
|
802 |
+
<?php
|
803 |
+
}
|
804 |
+
}
|
805 |
+
if ($wp_version <= 3.5) {
|
806 |
+
?>
|
807 |
+
jQuery("#wp_media_upload_error_message").css("display", "block");
|
808 |
+
jQuery("#wp_media_upload_button").css("display", "none");
|
809 |
+
<?php
|
810 |
+
} else {
|
811 |
+
wp_enqueue_media();
|
812 |
+
?>
|
813 |
+
var vid_thumb_file_frame;
|
814 |
+
var count_upload_images = [];
|
815 |
+
var total_images_upload = "";
|
816 |
+
<?php
|
817 |
+
}
|
818 |
+
?>
|
819 |
+
var overlay_loader = "0";
|
820 |
+
jQuery("#local_file_upload").plupload
|
821 |
+
({
|
822 |
+
runtimes: "html5,html4,flash,silverlight",
|
823 |
+
url: ajaxurl + "?param=upload_gallery_pics&action=gallery_bank_image_upload&_wp_nonce=<?php echo $upload_local_system_files_nonce; ?>",
|
824 |
+
chunk_size: "2mb",
|
825 |
+
filters:
|
826 |
+
{
|
827 |
+
max_file_size: "100mb",
|
828 |
+
mime_types: [
|
829 |
+
{title: "Image files", extensions: "jpg,jpeg,gif,png"}
|
830 |
+
]
|
831 |
+
},
|
832 |
+
rename: true,
|
833 |
+
sortable: true,
|
834 |
+
dragdrop: true,
|
835 |
+
unique_names: false,
|
836 |
+
views: {
|
837 |
+
list: true,
|
838 |
+
thumbs: true,
|
839 |
+
active: "thumbs"
|
840 |
+
},
|
841 |
+
flash_swf_url: pl_upload_url + "moxie.swf",
|
842 |
+
silverlight_xap_url: pl_upload_url + "moxie.xap",
|
843 |
+
init:
|
844 |
+
{
|
845 |
+
FileUploaded: function (up, file, response)
|
846 |
+
{
|
847 |
+
if (overlay_loader === "0")
|
848 |
+
{
|
849 |
+
overlay_loading_gallery_bank();
|
850 |
+
overlay_loader = "1";
|
851 |
+
}
|
852 |
+
var obj = jQuery.parseJSON(response.response);
|
853 |
+
var gallery_image_name = obj.result;
|
854 |
|
855 |
+
jQuery.post(ajaxurl,
|
856 |
+
{
|
857 |
+
gallery_id: "<?php echo isset($_REQUEST["gallery_id"]) ? intval($_REQUEST["gallery_id"]) : 0; ?>",
|
858 |
+
image_name: gallery_image_name,
|
859 |
+
action: "gallery_bank_action_module",
|
860 |
+
param: "gallery_bank_upload_images",
|
861 |
+
file_type: "image",
|
862 |
+
_wp_nonce: "<?php echo isset($gallery_upload_images_nonce) ? $gallery_upload_images_nonce : ""; ?>"
|
863 |
+
},
|
864 |
+
function (data)
|
865 |
+
{
|
866 |
+
var image_data = jQuery.parseJSON(data);
|
867 |
+
bind_rows_to_table_gallery_bank(image_data, image_data[2], image_data[2], "");
|
868 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
869 |
+
setTimeout(function ()
|
870 |
+
{
|
871 |
+
clearInterval(sidebar_load_interval);
|
872 |
+
}, 3000);
|
873 |
+
});
|
874 |
+
},
|
875 |
+
UploadComplete: function () {
|
876 |
+
set_gallery_cover_image();
|
877 |
+
remove_overlay_gallery_bank();
|
878 |
+
overlay_loader = "0";
|
879 |
+
}
|
880 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
881 |
});
|
882 |
+
});
|
883 |
+
// Render file browser
|
884 |
+
jQuery("#ux_wp_dir_browser").fileTree(
|
885 |
+
{
|
886 |
+
root: "/",
|
887 |
+
script: ajaxurl + "?param=get_ftp_directories&action=gallery_bank_ftp_directory&_wp_nonce=<?php echo $ftp_upload; ?>"
|
888 |
+
}, function (file)
|
889 |
+
{
|
890 |
+
jQuery("#ux_wp_dir_browser a").each(function ()
|
891 |
+
{
|
892 |
+
jQuery(this).removeClass("custom-selected-folder");
|
893 |
+
})
|
894 |
+
jQuery("#ux_wp_dir_browser a[rel=\"" + file + "\"]").addClass("custom-selected-folder");
|
895 |
+
jQuery("#ux_txt_ftp_path").val(file);
|
896 |
+
});
|
897 |
+
function set_cover_image_dynamically_gallery_bank(image_id)
|
898 |
+
{
|
899 |
+
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
900 |
+
jQuery("input[type=radio][name=ux_rdl_set_cover_image]:checked", oTable.fnGetNodes()).each(function ()
|
901 |
+
{
|
902 |
+
jQuery(this).removeAttr("checked");
|
903 |
+
});
|
904 |
+
jQuery("#ux_rdl_set_cover_image_" + image_id).attr("checked", "checked");
|
905 |
+
gallery_cover_image = image_id;
|
906 |
+
}
|
907 |
+
function isUrlValid_gallery_bank(url)
|
908 |
+
{
|
909 |
+
var value = jQuery("#" + url.id).val();
|
910 |
+
var condition = /^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);
|
911 |
+
if (condition === false)
|
912 |
+
{
|
913 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
914 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_validate_url); ?>);
|
915 |
+
}
|
916 |
+
}
|
917 |
+
function check_value_checkbox_gallery_bank()
|
918 |
+
{
|
919 |
+
if (jQuery("input[type=checkbox][name*=ux_chk_select_items_]:checked", oTable.fnGetFilteredNodes()).length === jQuery("input[type=checkbox][name*=ux_chk_select_items_]", oTable.fnGetFilteredNodes()).length)
|
920 |
+
{
|
921 |
+
jQuery("#ux_chk_all_gallery").attr("checked", "checked");
|
922 |
+
} else
|
923 |
+
{
|
924 |
+
jQuery("#ux_chk_all_gallery").removeAttr("checked");
|
925 |
+
}
|
926 |
+
}
|
927 |
+
function bind_rows_to_table_gallery_bank(image_data, image_title, image_alt_text, image_description)
|
928 |
+
{
|
929 |
+
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
930 |
+
var col1 = jQuery("#ux_dynamic_tr_0 td:first-child").clone();
|
931 |
+
var col2 = jQuery("#ux_dynamic_tr_0 td:nth-child(2)").clone();
|
932 |
+
var col3 = jQuery("#ux_dynamic_tr_0 td:nth-child(3)").clone();
|
933 |
+
var rowIdxes = oTable.fnAddData([col1.html(), col2.html(), col3.html()]);
|
934 |
+
var rowTr = oTable.fnGetNodes(rowIdxes[0]);
|
935 |
+
jQuery(rowTr).find("td:first-child").attr("style", "text-align:center");
|
936 |
+
jQuery(rowTr).find("td:first-child input[type=checkbox]").attr("value", image_data[0]);
|
937 |
+
jQuery(rowTr).find("td:first-child input[type=checkbox]").attr("name", "ux_chk_select_items_" + image_data[0]);
|
938 |
+
jQuery(rowTr).find("td:first-child input[type=checkbox]").attr("id", "ux_chk_select_items_" + image_data[0]);
|
939 |
+
jQuery(rowTr).find("td:first-child input[type=checkbox]").attr("onclick", "check_value_checkbox_gallery_bank()");
|
940 |
+
jQuery(rowTr).find("td:nth-child(2)").attr("width", "20%");
|
941 |
+
jQuery(rowTr).find("td:nth-child(2) img").attr("src", "<?php echo GALLERY_BANK_THUMBS_NON_CROPPED_URL; ?>" + image_data[1]);
|
942 |
+
jQuery(rowTr).find("td:nth-child(2) img").attr("style", "width:100%;display:block;");
|
943 |
+
jQuery(rowTr).find("td:nth-child(2) img").attr("id", "ux_gb_file_" + image_data[0]);
|
944 |
+
jQuery(rowTr).find("td:nth-child(2) img").attr("name", "ux_gb_file_" + image_data[0]);
|
945 |
+
jQuery(rowTr).find("td:nth-child(2) img").attr("file_type", "image");
|
946 |
+
jQuery(rowTr).find("td:nth-child(2) img").attr("img_name", image_data[1]);
|
947 |
+
jQuery(rowTr).find("td:nth-child(2) input[type=radio]").attr("id", "ux_rdl_set_cover_image_" + image_data[0]);
|
948 |
+
jQuery(rowTr).find("td:nth-child(2) input[type=radio]").attr("image_data", image_data[0]);
|
949 |
+
if (oTable.fnGetNodes().length === 1)
|
950 |
+
{
|
951 |
+
jQuery(rowTr).find("td:nth-child(2) input[type=radio]").attr("checked", "checked");
|
952 |
+
set_gallery_cover_image();
|
953 |
+
}
|
954 |
+
jQuery(rowTr).find("td:nth-child(2) input[type=radio]").attr("onclick", "set_cover_image_dynamically_gallery_bank(" + image_data[0] + ");");
|
955 |
+
jQuery(rowTr).find("td:nth-child(2) input[type=checkbox]").attr("id", "ux_exclude_image_" + image_data[0]);
|
956 |
+
jQuery(rowTr).find("td:nth-child(2) input[type=checkbox]").attr("name", "ux_exclude_image_" + image_data[0]);
|
957 |
+
jQuery(rowTr).find("td:nth-child(2) a:eq(0)").attr("id", "ux_rdl_edit_" + image_data[0]);
|
958 |
+
jQuery(rowTr).find("td:nth-child(2) a:eq(0)").attr("control_id", image_data[0]);
|
959 |
+
jQuery(rowTr).find("td:nth-child(2) a:eq(1)").attr("id", "ux_rdl_delete_" + image_data[0]);
|
960 |
+
jQuery(rowTr).find("td:nth-child(2) a:eq(1)").attr("control_id", image_data[0]);
|
961 |
+
jQuery(rowTr).find("td:nth-child(3) input:text:eq(0)").attr("id", "ux_txt_img_title_" + image_data[0]);
|
962 |
+
jQuery(rowTr).find("td:nth-child(3) input:text:eq(0)").attr("name", "ux_txt_img_title_" + image_data[0]);
|
963 |
+
jQuery(rowTr).find("td:nth-child(3) input:text:eq(0)").val(image_title);
|
964 |
+
jQuery(rowTr).find("td:nth-child(3) input:text:eq(1)").attr("id", "ux_img_alt_text_" + image_data[0]);
|
965 |
+
jQuery(rowTr).find("td:nth-child(3) input:text:eq(1)").attr("name", "ux_img_alt_text_" + image_data[0]);
|
966 |
+
jQuery(rowTr).find("td:nth-child(3) input:text:eq(1)").val(image_alt_text);
|
967 |
+
jQuery(rowTr).find("td:nth-child(3) textarea").attr("id", "ux_txt_img_desc_" + image_data[0]);
|
968 |
+
jQuery(rowTr).find("td:nth-child(3) textarea").attr("name", "ux_txt_img_desc_" + image_data[0]);
|
969 |
+
jQuery(rowTr).find("td:nth-child(3) textarea").val(image_description);
|
970 |
+
jQuery(rowTr).find("td:nth-child(3) input[type=radio][id*=ux_rdl_enable_redirect_]").attr("id", "ux_rdl_enable_redirect_" + image_data[0]);
|
971 |
+
jQuery(rowTr).find("td:nth-child(3) input[type=radio][id*=ux_rdl_disable_redirect_]").attr("id", "ux_rdl_disable_redirect_" + image_data[0]);
|
972 |
+
jQuery(rowTr).find("td:nth-child(3) input[type=radio]").attr("name", "ux_rdl_redirect_" + image_data[0]);
|
973 |
+
jQuery(rowTr).find("td:nth-child(3) input[type=radio]").attr("onclick", "show_image_url_redirect_gallery_bank(" + image_data[0] + ")");
|
974 |
+
jQuery(rowTr).find("td:nth-child(3) div[id=ux_div_url_redirect_]").attr("id", "ux_div_url_redirect_" + image_data[0]);
|
975 |
+
jQuery(rowTr).find("td:nth-child(3) input[id=ux_txt_img_url_]").attr("id", "ux_txt_img_url_" + image_data[0]);
|
976 |
+
jQuery(rowTr).find("td:nth-child(3) input[name=ux_txt_img_url_]").attr("name", "ux_txt_img_url_" + image_data[0]);
|
977 |
+
jQuery(rowTr).find("td:nth-child(3) input[name=ux_txt_img_url_" + image_data[0] + "]").attr("onblur", "isUrlValid_gallery_bank(this);");
|
978 |
+
jQuery(rowTr).find("td:nth-child(3) select").attr("id", "ux_ddl_tags_" + image_data[0]);
|
979 |
+
jQuery(rowTr).find("td:nth-child(3) select").attr("name", "ux_ddl_tags_" + image_data[0] + "[]");
|
980 |
+
jQuery(rowTr).find("td:nth-child(3) i").tooltip_tip({placement: "right"});
|
981 |
+
}
|
982 |
+
jQuery("#ux_chk_all_gallery").click(function ()
|
983 |
+
{
|
984 |
+
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
985 |
+
var checkProp = jQuery("#ux_chk_all_gallery").prop("checked");
|
986 |
+
jQuery("input[type=checkbox][name*=ux_chk_select_items_]", oTable.fnGetNodes()).each(function ()
|
987 |
+
{
|
988 |
+
checkProp === true ? jQuery(this).attr("checked", "checked") : jQuery(this).removeAttr("checked");
|
989 |
+
});
|
990 |
+
});
|
991 |
+
function image_loader_gallery_bank()
|
992 |
+
{
|
993 |
+
jQuery(".imgedit-wait").css("display", "block");
|
994 |
+
setTimeout(function ()
|
995 |
+
{
|
996 |
+
jQuery(".imgedit-wait").css("display", "none");
|
997 |
+
remove_overlay_gallery_bank();
|
998 |
+
}, 2000);
|
999 |
+
}
|
1000 |
+
var count = 0;
|
1001 |
+
function set_gallery_cover_image()
|
1002 |
+
{
|
1003 |
+
<?php
|
1004 |
+
$mode = isset($_REQUEST["mode"]) ? esc_attr($_REQUEST["mode"]) : "";
|
1005 |
+
if ($mode === "add") {
|
1006 |
+
?>
|
1007 |
+
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
1008 |
+
var row = oTable.fnGetNodes([0]);
|
1009 |
+
jQuery(row).find("input[type=radio][name=ux_rdl_set_cover_image]").attr("checked", "checked");
|
1010 |
+
gallery_cover_image = jQuery(row).find("input[type=radio][name=ux_rdl_set_cover_image]").attr("image_data");
|
1011 |
+
<?php
|
1012 |
+
} else {
|
1013 |
+
?>
|
1014 |
+
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
1015 |
+
var count = 0;
|
1016 |
+
jQuery("input[type=radio][name=ux_rdl_set_cover_image]", oTable.fnGetNodes()).each(function ()
|
1017 |
+
{
|
1018 |
|
1019 |
+
if (jQuery(this).is(":checked") === true)
|
1020 |
+
{
|
1021 |
|
1022 |
+
gallery_cover_image = jQuery(this).attr("image_data");
|
1023 |
+
count++;
|
1024 |
+
return;
|
1025 |
+
}
|
1026 |
+
});
|
1027 |
+
if (count === 0)
|
1028 |
+
{
|
1029 |
+
var row = oTable.fnGetNodes([0]);
|
1030 |
+
jQuery(row).find("input[type=radio][name=ux_rdl_set_cover_image]").attr("checked", "checked");
|
1031 |
+
gallery_cover_image = jQuery(row).find("input[type=radio][name=ux_rdl_set_cover_image]").attr("image_data");
|
1032 |
+
}
|
1033 |
|
1034 |
+
<?php
|
1035 |
+
}
|
1036 |
+
?>
|
1037 |
+
}
|
1038 |
+
function show_image_url_redirect_gallery_bank(image_id)
|
1039 |
+
{
|
1040 |
+
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
1041 |
+
var url_value = jQuery("input[name=ux_rdl_redirect_" + image_id + "]:checked", oTable.fnGetNodes()).val();
|
1042 |
+
url_value === "1" ? jQuery("#ux_div_url_redirect_" + image_id, oTable.fnGetNodes()).css("display", "block") : jQuery("#ux_div_url_redirect_" + image_id, oTable.fnGetNodes()).css("display", "none");
|
1043 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1044 |
+
setTimeout(function ()
|
1045 |
+
{
|
1046 |
+
clearInterval(sidebar_load_interval);
|
1047 |
+
}, 3000);
|
1048 |
+
}
|
1049 |
+
function delete_upload_image_gallery_bank(control, row_position, option)
|
1050 |
+
{
|
1051 |
+
var confirm_value = confirm(<?php echo json_encode($gb_delete_data); ?>);
|
1052 |
+
if (confirm_value === true)
|
1053 |
+
{
|
1054 |
+
var image_id = jQuery(control).attr("control_id");
|
1055 |
+
if (option === "edit")
|
1056 |
+
{
|
1057 |
+
array_delete_images.push(image_id);
|
1058 |
+
oTable.fnDeleteRow(oTable.fnGetNodes(row_position));
|
1059 |
+
jQuery("#gallery-bank-edit-image").addClass("hidden");
|
1060 |
+
} else
|
1061 |
+
{
|
1062 |
+
var oTable = jQuery("#ux_tbl_add_gallery").dataTable();
|
1063 |
+
array_delete_images.push(image_id);
|
1064 |
+
var row = jQuery(control).closest("tr");
|
1065 |
+
oTable.fnDeleteRow(row);
|
1066 |
+
var checked = jQuery("#ux_rdl_set_cover_image_" + image_id).prop("checked");
|
1067 |
+
if (checked)
|
1068 |
+
{
|
1069 |
+
var next_tr_id = jQuery(row[0]).closest("tr").next("tr").children().find("input").attr("value");
|
1070 |
+
jQuery("#ux_rdl_set_cover_image_" + next_tr_id).attr("checked", "checked");
|
1071 |
+
}
|
1072 |
+
}
|
1073 |
+
set_gallery_cover_image();
|
1074 |
}
|
1075 |
+
}
|
1076 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1077 |
+
setTimeout(function ()
|
1078 |
+
{
|
1079 |
+
clearInterval(sidebar_load_interval);
|
1080 |
+
}, 5000);
|
1081 |
+
<?php
|
1082 |
+
}
|
1083 |
+
break;
|
1084 |
+
case "gb_sort_galleries" :
|
1085 |
+
?>
|
1086 |
+
jQuery("#ux_li_galleries").addClass("active");
|
1087 |
+
jQuery("#ux_li_sort_galleries").addClass("active");
|
1088 |
+
<?php
|
1089 |
+
if (galleries_gallery_bank == "1") {
|
1090 |
+
?>
|
1091 |
+
jQuery(document).ready(function ()
|
1092 |
+
{
|
1093 |
+
jQuery(".thumbnail_dimensions").css("width", "<?php echo intval($thumbnail_dimensions_gallery_bank[0]); ?>");
|
1094 |
+
jQuery("#ux_div_images_row").css("display", "none");
|
1095 |
+
<?php
|
1096 |
+
if (isset($_REQUEST["gallery_id"])) {
|
1097 |
+
?>
|
1098 |
+
jQuery("#ux_div_images_row").css("display", "block");
|
1099 |
+
jQuery("#ux_ddl_sort_galleries").val("<?php echo intval($_REQUEST["gallery_id"]); ?>");
|
1100 |
+
<?php
|
1101 |
+
}
|
1102 |
+
?>
|
1103 |
+
jQuery("#ux_ul_sort_images").sortable(
|
1104 |
{
|
1105 |
+
opacity: 0.6,
|
1106 |
+
cursor: "move"
|
1107 |
+
});
|
1108 |
+
jQuery("#ux_ul_sort_images").disableSelection();
|
1109 |
+
});
|
1110 |
+
function choose_gallery_gallery_bank(id)
|
1111 |
+
{
|
1112 |
+
var gallery_data = jQuery("#ux_ddl_sort_galleries").val();
|
1113 |
+
overlay_loading_gallery_bank();
|
1114 |
+
setTimeout(function ()
|
1115 |
+
{
|
1116 |
+
remove_overlay_gallery_bank();
|
1117 |
+
if (gallery_data !== "")
|
1118 |
+
{
|
1119 |
+
window.location.href = "admin.php?page=gb_sort_galleries&gallery_id=" + id;
|
1120 |
+
} else
|
1121 |
+
{
|
1122 |
+
window.location.href = "admin.php?page=gb_sort_galleries";
|
1123 |
+
}
|
1124 |
+
}, 1000);
|
1125 |
+
}
|
1126 |
+
jQuery("#ux_frm_sort_galleries").validate
|
1127 |
+
({
|
1128 |
+
submitHandler: function ()
|
1129 |
{
|
1130 |
+
premium_edition_notification_gallery_bank();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1131 |
}
|
1132 |
+
});
|
1133 |
+
<?php
|
1134 |
+
}
|
1135 |
+
break;
|
1136 |
+
case "gb_manage_albums" :
|
1137 |
+
?>
|
1138 |
+
jQuery("#ux_li_album").addClass("active");
|
1139 |
+
jQuery("#ux_li_manage_albums").addClass("active");
|
1140 |
+
<?php
|
1141 |
+
if (albums_gallery_bank === "1") {
|
1142 |
+
?>
|
1143 |
+
var oTable = gallery_bank_manage_datatable("#ux_tbl_manage_album");
|
1144 |
+
jQuery("#ux_chk_all_albums").click(function () {
|
1145 |
+
jQuery("input[type=checkbox]", oTable.fnGetFilteredNodes()).attr("checked", this.checked);
|
1146 |
+
});
|
1147 |
+
<?php
|
1148 |
+
}
|
1149 |
+
break;
|
1150 |
+
case "gb_add_album" :
|
1151 |
+
?>
|
1152 |
+
jQuery("#ux_li_album").addClass("active");
|
1153 |
+
jQuery("#ux_li_add_album").addClass("active");
|
1154 |
+
<?php
|
1155 |
+
if (albums_gallery_bank === "1") {
|
1156 |
+
?>
|
1157 |
+
jQuery(document).ready(function ()
|
1158 |
+
{
|
1159 |
+
if (window.CKEDITOR)
|
1160 |
+
{
|
1161 |
+
CKEDITOR.replace("ux_heading_content");
|
1162 |
}
|
1163 |
+
});
|
1164 |
+
function add_gallery_gallery_bank()
|
1165 |
+
{
|
1166 |
+
var selected_galleries = [];
|
1167 |
+
jQuery.each(jQuery("#ux_ddl_available_galleries_duplicate option:selected"), function ()
|
1168 |
+
{
|
1169 |
+
selected_galleries.push(jQuery(this));
|
1170 |
+
jQuery(this).remove();
|
1171 |
+
});
|
1172 |
+
var value = "";
|
1173 |
+
for (var flag = 0; flag < selected_galleries.length; flag++)
|
1174 |
+
{
|
1175 |
+
value += '<option value="' + jQuery(selected_galleries[flag]).val() + '">' + jQuery(selected_galleries[flag]).text() + '</option>';
|
1176 |
+
}
|
1177 |
+
jQuery("#ux_ddl_selected_galleries").append(value);
|
1178 |
+
sort_function_gallery_bank("ux_ddl_selected_galleries");
|
1179 |
+
}
|
1180 |
+
function remove_gallery_gallery_bank()
|
1181 |
+
{
|
1182 |
+
var remove_selected_galleries = [];
|
1183 |
+
jQuery.each(jQuery("#ux_ddl_selected_galleries option:selected"), function ()
|
1184 |
+
{
|
1185 |
+
remove_selected_galleries.push(jQuery(this));
|
1186 |
+
jQuery(this).remove();
|
1187 |
+
});
|
1188 |
+
var value = "";
|
1189 |
+
for (var flag = 0; flag < remove_selected_galleries.length; flag++)
|
1190 |
+
{
|
1191 |
+
value += '<option value="' + jQuery(remove_selected_galleries[flag]).val() + '">' + jQuery(remove_selected_galleries[flag]).text() + '</option>';
|
1192 |
+
}
|
1193 |
+
jQuery("#ux_ddl_available_galleries_duplicate").append(value);
|
1194 |
+
sort_function_gallery_bank("ux_ddl_available_galleries_duplicate");
|
1195 |
+
}
|
1196 |
+
jQuery("#ux_frm_add_album").validate
|
1197 |
+
({
|
1198 |
+
submitHandler: function ()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1199 |
{
|
1200 |
+
premium_edition_notification_gallery_bank();
|
1201 |
}
|
1202 |
+
});
|
1203 |
+
<?php
|
1204 |
+
}
|
1205 |
+
break;
|
1206 |
+
case "gb_sort_albums" :
|
1207 |
+
?>
|
1208 |
+
jQuery("#ux_li_album").addClass("active");
|
1209 |
+
jQuery("#ux_li_sort_albums").addClass("active");
|
1210 |
+
<?php
|
1211 |
+
if (albums_gallery_bank == "1") {
|
1212 |
+
?>
|
1213 |
+
jQuery(document).ready(function ()
|
1214 |
+
{
|
1215 |
+
jQuery("#ux_div_images_row").css("display", "none");
|
1216 |
+
jQuery("#ux_ul_sort_images").sortable(
|
1217 |
{
|
1218 |
+
opacity: 0.6,
|
1219 |
+
cursor: "move"
|
1220 |
});
|
1221 |
+
jQuery("#ux_ul_sort_images").disableSelection();
|
1222 |
+
});
|
1223 |
+
function choose_album_gallery_bank(id)
|
1224 |
+
{
|
1225 |
+
var albums_data = jQuery("#ux_ddl_sort_albums").val();
|
1226 |
+
overlay_loading_gallery_bank();
|
1227 |
+
setTimeout(function ()
|
1228 |
+
{
|
1229 |
+
remove_overlay_gallery_bank();
|
1230 |
+
if (albums_data !== "")
|
1231 |
+
{
|
1232 |
+
window.location.href = "admin.php?page=gb_sort_albums&album_id=" + id;
|
1233 |
+
} else
|
1234 |
+
{
|
1235 |
+
window.location.href = "admin.php?page=gb_sort_albums";
|
1236 |
+
}
|
1237 |
+
}, 1000);
|
1238 |
+
}
|
1239 |
+
jQuery("#ux_frm_sort_album").validate
|
1240 |
+
({
|
1241 |
+
submitHandler: function (form)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1242 |
{
|
1243 |
+
premium_edition_notification_gallery_bank();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1244 |
}
|
1245 |
+
});
|
1246 |
+
<?php
|
1247 |
+
}
|
1248 |
+
break;
|
1249 |
+
case "gb_manage_tags":
|
1250 |
+
?>
|
1251 |
+
jQuery("#ux_li_tags").addClass("active");
|
1252 |
+
jQuery("#ux_li_manage_tags").addClass("active");
|
1253 |
+
<?php
|
1254 |
+
if (tags_gallery_bank == "1") {
|
1255 |
+
?>
|
1256 |
+
var oTable = gallery_bank_manage_datatable("#ux_tbl_manage_tags");
|
1257 |
+
jQuery("#ux_chk_all").click(function () {
|
1258 |
+
jQuery("input[type=checkbox]", oTable.fnGetFilteredNodes()).not("[disabled]").attr("checked", this.checked);
|
1259 |
+
});
|
1260 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1261 |
+
setTimeout(function () {
|
1262 |
+
clearInterval(sidebar_load_interval);
|
1263 |
+
}, 5000);
|
1264 |
+
<?php
|
1265 |
+
}
|
1266 |
+
break;
|
1267 |
+
case "gb_add_tag":
|
1268 |
+
?>
|
1269 |
+
jQuery("#ux_li_tags").addClass("active");
|
1270 |
+
"<?php echo isset($_REQUEST["id "]); ?>" ? jQuery("#ux_li_manage_tags").addClass("active") : jQuery("#ux_li_add_tag").addClass("active");
|
1271 |
+
<?php
|
1272 |
+
if (tags_gallery_bank == "1") {
|
1273 |
+
?>
|
1274 |
+
jQuery("#ux_frm_add_tag").validate({
|
1275 |
+
submitHandler: function () {
|
1276 |
+
premium_edition_notification_gallery_bank();
|
1277 |
+
}
|
1278 |
+
});
|
1279 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1280 |
+
setTimeout(function () {
|
1281 |
+
clearInterval(sidebar_load_interval);
|
1282 |
+
}, 5000);
|
1283 |
+
<?php
|
1284 |
+
}
|
1285 |
+
break;
|
1286 |
+
case "gb_thumbnail_layout" :
|
1287 |
+
?>
|
1288 |
+
jQuery("#ux_li_layout_settings").addClass("active");
|
1289 |
+
jQuery("#ux_li_thumbnail_layout").addClass("active");
|
1290 |
+
<?php
|
1291 |
+
if (layout_settings_gallery_bank == "1") {
|
1292 |
+
?>
|
1293 |
+
jQuery(document).ready(function () {
|
1294 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo esc_attr($thumbnail_layout_general_border_style[1]); ?>");
|
1295 |
+
jQuery("#ux_ddl_hover_effect").val("<?php echo esc_attr($thumbnail_layout_general_hover_effect_value[0]); ?>");
|
1296 |
+
jQuery("#ux_ddl_gallery_title_html_tag").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_gallery_title_html_tag"]) ? htmlspecialchars_decode($manage_thumbnail_data["thumbnail_layout_gallery_title_html_tag"]) : "h2"; ?>");
|
1297 |
+
jQuery("#ux_ddl_gallery_title_alignment").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_gallery_title_text_alignment"]) ? esc_attr($manage_thumbnail_data["thumbnail_layout_gallery_title_text_alignment"]) : "left"; ?>");
|
1298 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_gallery_title_font_family"]) ? htmlspecialchars_decode($manage_thumbnail_data["thumbnail_layout_gallery_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1299 |
+
jQuery("#ux_ddl_gallery_description_html_tag").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_gallery_description_html_tag"]) ? esc_attr($manage_thumbnail_data["thumbnail_layout_gallery_description_html_tag"]) : "h3"; ?>");
|
1300 |
+
jQuery("#ux_ddl_gallery_description_alignment").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_gallery_description_text_alignment"]) ? esc_attr($manage_thumbnail_data["thumbnail_layout_gallery_description_text_alignment"]) : "left"; ?>");
|
1301 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_gallery_description_font_family"]) ? htmlspecialchars_decode($manage_thumbnail_data["thumbnail_layout_gallery_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1302 |
+
jQuery("#ux_ddl_thumbnail_title_html_tag").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_thumbnail_title_html_tag"]) ? esc_attr($manage_thumbnail_data["thumbnail_layout_thumbnail_title_html_tag"]) : "h3"; ?>");
|
1303 |
+
jQuery("#ux_ddl_title_alignment").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_thumbnail_title_text_alignment"]) ? esc_attr($manage_thumbnail_data["thumbnail_layout_thumbnail_title_text_alignment"]) : "left"; ?>");
|
1304 |
+
jQuery("#ux_ddl_title_font_family").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_thumbnail_title_font_family"]) ? htmlspecialchars_decode($manage_thumbnail_data["thumbnail_layout_thumbnail_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1305 |
+
jQuery("#ux_ddl_thumbnail_description_html_tag").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_thumbnail_description_html_tag"]) ? esc_attr($manage_thumbnail_data["thumbnail_layout_thumbnail_description_html_tag"]) : "p"; ?>");
|
1306 |
+
jQuery("#ux_ddl_description_alignment").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_thumbnail_description_text_alignment"]) ? esc_attr($manage_thumbnail_data["thumbnail_layout_thumbnail_description_text_alignment"]) : "left"; ?>");
|
1307 |
+
jQuery("#ux_ddl_description_font_family").val("<?php echo isset($manage_thumbnail_data["thumbnail_layout_thumbnail_description_font_family"]) ? htmlspecialchars_decode($manage_thumbnail_data["thumbnail_layout_thumbnail_description_font_family"]) : "Roboto Slab: 300"; ?>");
|
1308 |
+
jQuery("#ux_txt_thumbnail_position_x").val("<?php echo esc_attr($thumbnail_layout_thumbnail_position[0]); ?>");
|
1309 |
+
jQuery("#ux_txt_thumbnail_position_y").val("<?php echo esc_attr($thumbnail_layout_thumbnail_position[1]); ?>");
|
1310 |
+
hover_effect_value_gallery_bank();
|
1311 |
+
});
|
1312 |
+
jQuery("#ux_frm_thumbnail_layout").validate({
|
1313 |
+
submitHandler: function () {
|
1314 |
+
premium_edition_notification_gallery_bank();
|
1315 |
+
}
|
1316 |
+
});
|
1317 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1318 |
+
setTimeout(function () {
|
1319 |
+
clearInterval(sidebar_load_interval);
|
1320 |
+
}, 5000);
|
1321 |
|
1322 |
+
<?php
|
1323 |
+
}
|
1324 |
+
break;
|
1325 |
+
case "gb_masonry_layout" :
|
1326 |
+
?>
|
1327 |
+
jQuery("#ux_li_layout_settings").addClass("active");
|
1328 |
+
jQuery("#ux_li_masonry_layout").addClass("active");
|
1329 |
+
<?php
|
1330 |
+
if (layout_settings_gallery_bank == "1") {
|
1331 |
+
?>
|
1332 |
+
jQuery(document).ready(function () {
|
1333 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo esc_attr($masonry_layout_general_border_style[1]); ?>");
|
1334 |
+
jQuery("#ux_ddl_hover_effect").val("<?php echo esc_attr($masonry_layout_general_hover_effect_value[0]); ?>");
|
1335 |
+
jQuery("#ux_ddl_gallery_title_html_tag").val("<?php echo isset($manage_masonry_data["masonry_layout_gallery_title_html_tag"]) ? esc_attr($manage_masonry_data["masonry_layout_gallery_title_html_tag"]) : "h2"; ?>");
|
1336 |
+
jQuery("#ux_ddl_gallery_title_alignment").val("<?php echo isset($manage_masonry_data["masonry_layout_gallery_title_text_alignment"]) ? esc_attr($manage_masonry_data["masonry_layout_gallery_title_text_alignment"]) : "left"; ?>");
|
1337 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($manage_masonry_data["masonry_layout_gallery_title_font_family"]) ? htmlspecialchars_decode($manage_masonry_data["masonry_layout_gallery_title_font_family"]) : "Roboto Slab: 700"; ?>");
|
1338 |
+
jQuery("#ux_ddl_gallery_description_html_tag").val("<?php echo isset($manage_masonry_data["masonry_layout_gallery_description_html_tag"]) ? esc_attr($manage_masonry_data["masonry_layout_gallery_description_html_tag"]) : "h3"; ?>");
|
1339 |
+
jQuery("#ux_ddl_gallery_description_alignment").val("<?php echo isset($manage_masonry_data["masonry_layout_gallery_description_text_alignment"]) ? esc_attr($manage_masonry_data["masonry_layout_gallery_description_text_alignment"]) : "left"; ?>");
|
1340 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($manage_masonry_data["masonry_layout_gallery_description_font_family"]) ? htmlspecialchars_decode($manage_masonry_data["masonry_layout_gallery_description_font_family"]) : "Roboto Slab: 300"; ?>");
|
1341 |
+
jQuery("#ux_ddl_thumbnail_title_html_tag").val("<?php echo isset($manage_masonry_data["masonry_layout_thumbnail_title_html_tag"]) ? esc_attr($manage_masonry_data["masonry_layout_thumbnail_title_html_tag"]) : "h3"; ?>");
|
1342 |
+
jQuery("#ux_ddl_title_alignment").val("<?php echo isset($manage_masonry_data["masonry_layout_thumbnail_title_text_alignment"]) ? esc_attr($manage_masonry_data["masonry_layout_thumbnail_title_text_alignment"]) : "left"; ?>");
|
1343 |
+
jQuery("#ux_ddl_title_font_family").val("<?php echo isset($manage_masonry_data["masonry_layout_thumbnail_title_font_family"]) ? htmlspecialchars_decode($manage_masonry_data["masonry_layout_thumbnail_title_font_family"]) : "Roboto Slab: 700"; ?>");
|
1344 |
+
jQuery("#ux_ddl_thumbnail_description_html_tag").val("<?php echo isset($manage_masonry_data["masonry_layout_thumbnail_description_html_tag"]) ? esc_attr($manage_masonry_data["masonry_layout_thumbnail_description_html_tag"]) : "p"; ?>");
|
1345 |
+
jQuery("#ux_ddl_description_alignment").val("<?php echo isset($manage_masonry_data["masonry_layout_thumbnail_description_text_alignment"]) ? esc_attr($manage_masonry_data["masonry_layout_thumbnail_description_text_alignment"]) : "left"; ?>");
|
1346 |
+
jQuery("#ux_ddl_description_font_family").val("<?php echo isset($manage_masonry_data["masonry_layout_thumbnail_description_font_family"]) ? htmlspecialchars_decode($manage_masonry_data["masonry_layout_thumbnail_description_font_family"]) : "Roboto Slab: 300"; ?>");
|
1347 |
+
hover_effect_value_gallery_bank();
|
1348 |
+
});
|
1349 |
+
jQuery("#ux_frm_masonry_layout").validate({
|
1350 |
+
submitHandler: function () {
|
1351 |
+
premium_edition_notification_gallery_bank();
|
1352 |
+
}
|
1353 |
+
});
|
1354 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1355 |
+
setTimeout(function () {
|
1356 |
+
clearInterval(sidebar_load_interval);
|
1357 |
+
}, 5000);
|
1358 |
+
<?php
|
1359 |
+
}
|
1360 |
+
break;
|
1361 |
+
case "gb_slideshow_layout":
|
1362 |
+
?>
|
1363 |
+
jQuery("#ux_li_layout_settings").addClass("active");
|
1364 |
+
jQuery("#ux_li_slideshow_layout").addClass("active");
|
1365 |
+
<?php
|
1366 |
+
if (layout_settings_gallery_bank === "1") {
|
1367 |
+
?>
|
1368 |
+
jQuery(document).ready(function () {
|
1369 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo esc_attr($slideshow_layout_general_border_style[1]) ?>");
|
1370 |
+
jQuery("#ux_ddl_buttons_border_style_thickness").val("<?php echo esc_attr($slideshow_layout_general_buttons_border_style[1]) ?>");
|
1371 |
+
jQuery("#ux_ddl_filmstrip_border_style_thickness").val("<?php echo esc_attr($slideshow_layout_general_filmstrip_border_style[1]) ?>");
|
1372 |
+
jQuery("#ux_ddl_active_filmstrip_border_style_thickness").val("<?php echo esc_attr($slideshow_layout_general_filmstrip_active_border_style[1]) ?>");
|
1373 |
+
jQuery("#ux_ddl_gallery_title_html_tag").val("<?php echo isset($manage_slideshow_data["slideshow_layout_gallery_title_html_tag"]) ? esc_attr($manage_slideshow_data["slideshow_layout_gallery_title_html_tag"]) : "h2"; ?>");
|
1374 |
+
jQuery("#ux_ddl_gallery_title_alignment").val("<?php echo isset($manage_slideshow_data["slideshow_layout_gallery_title_text_alignment"]) ? esc_attr($manage_slideshow_data["slideshow_layout_gallery_title_text_alignment"]) : "left"; ?>");
|
1375 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($manage_slideshow_data["slideshow_layout_gallery_title_font_family"]) ? htmlspecialchars_decode($manage_slideshow_data["slideshow_layout_gallery_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1376 |
+
jQuery("#ux_ddl_gallery_description_html_tag").val("<?php echo isset($manage_slideshow_data["slideshow_layout_gallery_description_html_tag"]) ? esc_attr($manage_slideshow_data["slideshow_layout_gallery_description_html_tag"]) : "h3"; ?>");
|
1377 |
+
jQuery("#ux_ddl_gallery_description_alignment").val("<?php echo isset($manage_slideshow_data["slideshow_layout_gallery_description_text_alignment"]) ? esc_attr($manage_slideshow_data["slideshow_layout_gallery_description_text_alignment"]) : "left"; ?>");
|
1378 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($manage_slideshow_data["slideshow_layout_gallery_description_font_family"]) ? htmlspecialchars_decode($manage_slideshow_data["slideshow_layout_gallery_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1379 |
+
jQuery("#ux_ddl_thumbnail_title_html_tag").val("<?php echo isset($manage_slideshow_data["slideshow_layout_thumbnail_title_html_tag"]) ? esc_attr($manage_slideshow_data["slideshow_layout_thumbnail_title_html_tag"]) : "h3"; ?>");
|
1380 |
+
jQuery("#ux_ddl_title_alignment").val("<?php echo isset($manage_slideshow_data["slideshow_layout_thumbnail_title_text_alignment"]) ? esc_attr($manage_slideshow_data["slideshow_layout_thumbnail_title_text_alignment"]) : "left"; ?>");
|
1381 |
+
jQuery("#ux_ddl_title_font_family").val("<?php echo isset($manage_slideshow_data["slideshow_layout_thumbnail_title_font_family"]) ? htmlspecialchars_decode($manage_slideshow_data["slideshow_layout_thumbnail_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1382 |
+
jQuery("#ux_ddl_thumbnail_description_html_tag").val("<?php echo isset($manage_slideshow_data["slideshow_layout_thumbnail_description_html_tag"]) ? esc_attr($manage_slideshow_data["slideshow_layout_thumbnail_description_html_tag"]) : "p"; ?>");
|
1383 |
+
jQuery("#ux_ddl_description_alignment").val("<?php echo isset($manage_slideshow_data["slideshow_layout_thumbnail_description_text_alignment"]) ? esc_attr($manage_slideshow_data["slideshow_layout_thumbnail_description_text_alignment"]) : "left"; ?>");
|
1384 |
+
jQuery("#ux_ddl_description_font_family").val("<?php echo isset($manage_slideshow_data["slideshow_layout_thumbnail_description_font_family"]) ? htmlspecialchars_decode($manage_slideshow_data["slideshow_layout_thumbnail_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1385 |
+
});
|
1386 |
+
jQuery("#ux_frm_slide_show_layout").validate({
|
1387 |
+
submitHandler: function () {
|
1388 |
+
premium_edition_notification_gallery_bank();
|
1389 |
+
}
|
1390 |
+
});
|
1391 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1392 |
+
setTimeout(function () {
|
1393 |
+
clearInterval(sidebar_load_interval);
|
1394 |
+
}, 5000);
|
1395 |
+
<?php
|
1396 |
+
}
|
1397 |
+
break;
|
1398 |
+
case "gb_image_browser_layout":
|
1399 |
+
?>
|
1400 |
+
jQuery("#ux_li_layout_settings").addClass("active");
|
1401 |
+
jQuery("#ux_li_image_browser_layout").addClass("active");
|
1402 |
+
<?php
|
1403 |
+
if (layout_settings_gallery_bank === "1") {
|
1404 |
+
?>
|
1405 |
+
jQuery(document).ready(function () {
|
1406 |
+
jQuery("#ux_ddl_border_style_thickness_image").val("<?php echo esc_attr($image_browser_layout_general_border_style[1]); ?>");
|
1407 |
+
jQuery("#ux_ddl_buttons_border_style_thickness").val("<?php echo esc_attr($image_browser_layout_general_buttons_border_style[1]); ?>");
|
1408 |
+
jQuery("#ux_ddl_buttons_font_family").val("<?php echo isset($image_browser_layout_data["image_browser_layout_general_buttons_font_family"]) ? htmlspecialchars_decode($image_browser_layout_data["image_browser_layout_general_buttons_font_family"]) : "Roboto Slab:700"; ?>");
|
1409 |
+
jQuery("#ux_ddl_gallery_title_html_tag").val("<?php echo isset($image_browser_layout_data["image_browser_layout_gallery_title_html_tag"]) ? esc_attr($image_browser_layout_data["image_browser_layout_gallery_title_html_tag"]) : "h2"; ?>");
|
1410 |
+
jQuery("#ux_ddl_gallery_title_alignment").val("<?php echo isset($image_browser_layout_data["image_browser_layout_gallery_title_text_alignment"]) ? esc_attr($image_browser_layout_data["image_browser_layout_gallery_title_text_alignment"]) : "left"; ?>");
|
1411 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($image_browser_layout_data["image_browser_layout_gallery_title_font_family"]) ? htmlspecialchars_decode($image_browser_layout_data["image_browser_layout_gallery_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1412 |
+
jQuery("#ux_ddl_gallery_description_html_tag").val("<?php echo isset($image_browser_layout_data["image_browser_layout_gallery_description_html_tag"]) ? esc_attr($image_browser_layout_data["image_browser_layout_gallery_description_html_tag"]) : "h3"; ?>");
|
1413 |
+
jQuery("#ux_ddl_gallery_description_alignment").val("<?php echo isset($image_browser_layout_data["image_browser_layout_gallery_description_text_alignment"]) ? esc_attr($image_browser_layout_data["image_browser_layout_gallery_description_text_alignment"]) : "left"; ?>");
|
1414 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($image_browser_layout_data["image_browser_layout_gallery_description_font_family"]) ? htmlspecialchars_decode($image_browser_layout_data["image_browser_layout_gallery_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1415 |
+
jQuery("#ux_ddl_thumbnail_title_html_tag").val("<?php echo isset($image_browser_layout_data["image_browser_layout_thumbnail_title_html_tag"]) ? esc_attr($image_browser_layout_data["image_browser_layout_thumbnail_title_html_tag"]) : "h3"; ?>");
|
1416 |
+
jQuery("#ux_ddl_title_alignment_image").val("<?php echo isset($image_browser_layout_data["image_browser_layout_thumbnail_title_text_alignment"]) ? esc_attr($image_browser_layout_data["image_browser_layout_thumbnail_title_text_alignment"]) : "left"; ?>");
|
1417 |
+
jQuery("#ux_ddl_title_font_family").val("<?php echo isset($image_browser_layout_data["image_browser_layout_thumbnail_title_font_family"]) ? htmlspecialchars_decode($image_browser_layout_data["image_browser_layout_thumbnail_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1418 |
+
jQuery("#ux_ddl_thumbnail_description_html_tag").val("<?php echo isset($image_browser_layout_data["image_browser_layout_thumbnail_description_html_tag"]) ? esc_attr($image_browser_layout_data["image_browser_layout_thumbnail_description_html_tag"]) : "p"; ?>");
|
1419 |
+
jQuery("#ux_ddl_description_alignment_image").val("<?php echo isset($image_browser_layout_data["image_browser_layout_thumbnail_description_text_alignment"]) ? esc_attr($image_browser_layout_data["image_browser_layout_thumbnail_description_text_alignment"]) : "left"; ?>");
|
1420 |
+
jQuery("#ux_ddl_description_font_family").val("<?php echo isset($image_browser_layout_data["image_browser_layout_thumbnail_description_font_family"]) ? htmlspecialchars_decode($image_browser_layout_data["image_browser_layout_thumbnail_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1421 |
+
});
|
1422 |
+
jQuery("#ux_frm_image_browser").validate({
|
1423 |
+
submitHandler: function () {
|
1424 |
+
premium_edition_notification_gallery_bank();
|
1425 |
+
}
|
1426 |
+
});
|
1427 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1428 |
+
setTimeout(function () {
|
1429 |
+
clearInterval(sidebar_load_interval);
|
1430 |
+
}, 5000);
|
1431 |
+
<?php
|
1432 |
+
}
|
1433 |
+
break;
|
1434 |
+
case "gb_justified_grid_layout":
|
1435 |
+
?>
|
1436 |
+
jQuery("#ux_li_layout_settings").addClass("active");
|
1437 |
+
jQuery("#ux_li_justified_grid_layout").addClass("active");
|
1438 |
+
<?php
|
1439 |
+
if (layout_settings_gallery_bank === "1") {
|
1440 |
+
?>
|
1441 |
+
jQuery(document).ready(function () {
|
1442 |
+
jQuery("#ux_ddl_justified_border_style_thickness").val("<?php echo esc_attr($justified_grid_layout_general_border_style[1]); ?>");
|
1443 |
+
jQuery("#ux_ddl_hover_effect").val("<?php echo esc_attr($justified_grid_layout_general_hover_effect_value[0]); ?>");
|
1444 |
+
jQuery("#ux_ddl_gallery_title_html_tag").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_gallery_title_html_tag"]) ? esc_attr($manage_justified_grid_data["justified_grid_layout_gallery_title_html_tag"]) : "h2"; ?>");
|
1445 |
+
jQuery("#ux_ddl_justified_gallery_title_alignment").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_gallery_title_text_alignment"]) ? esc_attr($manage_justified_grid_data["justified_grid_layout_gallery_title_text_alignment"]) : "left"; ?>");
|
1446 |
+
jQuery("#ux_ddl_justified_gallery_title_font_family").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_gallery_title_font_family"]) ? htmlspecialchars_decode($manage_justified_grid_data["justified_grid_layout_gallery_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1447 |
+
jQuery("#ux_ddl_gallery_description_html_tag").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_gallery_description_html_tag"]) ? esc_attr($manage_justified_grid_data["justified_grid_layout_gallery_description_html_tag"]) : "h3"; ?>");
|
1448 |
+
jQuery("#ux_ddl_justified_gallery_description_alignment").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_gallery_description_text_alignment"]) ? esc_attr($manage_justified_grid_data["justified_grid_layout_gallery_description_text_alignment"]) : "left"; ?>");
|
1449 |
+
jQuery("#ux_ddl_justified_gallery_description_font_family").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_gallery_description_font_family"]) ? htmlspecialchars_decode($manage_justified_grid_data["justified_grid_layout_gallery_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1450 |
+
jQuery("#ux_ddl_thumbnail_title_html_tag").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_thumbnail_title_html_tag"]) ? esc_attr($manage_justified_grid_data["justified_grid_layout_thumbnail_title_html_tag"]) : "h3"; ?>");
|
1451 |
+
jQuery("#ux_ddl_justified_title_alignment").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_thumbnail_title_text_alignment"]) ? esc_attr($manage_justified_grid_data["justified_grid_layout_thumbnail_title_text_alignment"]) : "center"; ?>");
|
1452 |
+
jQuery("#ux_ddl_justified_title_font_family").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_thumbnail_title_font_family"]) ? htmlspecialchars_decode($manage_justified_grid_data["justified_grid_layout_thumbnail_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1453 |
+
jQuery("#ux_ddl_thumbnail_description_html_tag").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_thumbnail_description_html_tag"]) ? esc_attr($manage_justified_grid_data["justified_grid_layout_thumbnail_description_html_tag"]) : "p"; ?>");
|
1454 |
+
jQuery("#ux_ddl_justified_description_alignment").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_thumbnail_description_text_alignment"]) ? esc_attr($manage_justified_grid_data["justified_grid_layout_thumbnail_description_text_alignment"]) : "left"; ?>");
|
1455 |
+
jQuery("#ux_ddl_justified_description_font_family").val("<?php echo isset($manage_justified_grid_data["justified_grid_layout_thumbnail_description_font_family"]) ? htmlspecialchars_decode($manage_justified_grid_data["justified_grid_layout_thumbnail_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1456 |
+
hover_effect_value_gallery_bank();
|
1457 |
+
});
|
1458 |
+
jQuery("#ux_frm_justified_grid_layout").validate({
|
1459 |
+
submitHandler: function () {
|
1460 |
+
premium_edition_notification_gallery_bank();
|
1461 |
+
}
|
1462 |
+
});
|
1463 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1464 |
+
setTimeout(function () {
|
1465 |
+
clearInterval(sidebar_load_interval);
|
1466 |
+
}, 5000);
|
1467 |
+
<?php
|
1468 |
+
}
|
1469 |
+
break;
|
1470 |
+
case "gb_blog_style_layout":
|
1471 |
+
?>
|
1472 |
+
jQuery("#ux_li_layout_settings").addClass("active");
|
1473 |
+
jQuery("#ux_li_blog_style_layout").addClass("active");
|
1474 |
+
<?php
|
1475 |
+
if (layout_settings_gallery_bank === "1") {
|
1476 |
+
?>
|
1477 |
+
jQuery(document).ready(function () {
|
1478 |
+
jQuery("#ux_ddl_blog_border_style_thickness").val("<?php echo esc_attr($blog_style_layout_general_border_style[1]); ?>");
|
1479 |
+
jQuery("#ux_ddl_hover_effect").val("<?php echo esc_attr($blog_style_layout_general_hover_effect_value[0]); ?>");
|
1480 |
+
jQuery("#ux_ddl_gallery_title_html_tag").val("<?php echo isset($blog_style_layout_data["blog_style_layout_gallery_title_html_tag"]) ? esc_attr($blog_style_layout_data["blog_style_layout_gallery_title_html_tag"]) : "h2"; ?>");
|
1481 |
+
jQuery("#ux_ddl_blog_title_alignment_gallery").val("<?php echo isset($blog_style_layout_data["blog_style_layout_gallery_title_text_alignment"]) ? esc_attr($blog_style_layout_data["blog_style_layout_gallery_title_text_alignment"]) : "left"; ?>");
|
1482 |
+
jQuery("#ux_ddl_blog_title_font_family_gallery").val("<?php echo isset($blog_style_layout_data["blog_style_layout_gallery_title_font_family"]) ? htmlspecialchars_decode($blog_style_layout_data["blog_style_layout_gallery_title_font_family"]) : "Roboto Slab: 700"; ?>");
|
1483 |
+
jQuery("#ux_ddl_gallery_description_html_tag").val("<?php echo isset($blog_style_layout_data["blog_style_layout_gallery_description_html_tag"]) ? esc_attr($blog_style_layout_data["blog_style_layout_gallery_description_html_tag"]) : "h3"; ?>");
|
1484 |
+
jQuery("#ux_ddl_blog_description_alignment_gallery").val("<?php echo isset($blog_style_layout_data["blog_style_layout_gallery_description_text_alignment"]) ? esc_attr($blog_style_layout_data["blog_style_layout_gallery_description_text_alignment"]) : "left"; ?>");
|
1485 |
+
jQuery("#ux_ddl_blog_description_font_family_gallery").val("<?php echo isset($blog_style_layout_data["blog_style_layout_gallery_description_font_family"]) ? htmlspecialchars_decode($blog_style_layout_data["blog_style_layout_gallery_description_font_family"]) : "Roboto Slab: 300"; ?>");
|
1486 |
+
jQuery("#ux_ddl_thumbnail_title_html_tag").val("<?php echo isset($blog_style_layout_data["blog_style_layout_thumbnail_title_html_tag"]) ? esc_attr($blog_style_layout_data["blog_style_layout_thumbnail_title_html_tag"]) : "h3"; ?>");
|
1487 |
+
jQuery("#ux_ddl_blog_title_alignment_thumbnail").val("<?php echo isset($blog_style_layout_data["blog_style_layout_thumbnail_title_text_alignment"]) ? esc_attr($blog_style_layout_data["blog_style_layout_thumbnail_title_text_alignment"]) : "left"; ?>");
|
1488 |
+
jQuery("#ux_ddl_blog_title_font_family_thumbnail").val("<?php echo isset($blog_style_layout_data["blog_style_layout_thumbnail_title_font_family"]) ? htmlspecialchars_decode($blog_style_layout_data["blog_style_layout_thumbnail_title_font_family"]) : "Roboto Slab: 700"; ?>");
|
1489 |
+
jQuery("#ux_ddl_thumbnail_description_html_tag").val("<?php echo isset($blog_style_layout_data["blog_style_layout_thumbnail_description_html_tag"]) ? esc_attr($blog_style_layout_data["blog_style_layout_thumbnail_description_html_tag"]) : "p"; ?>");
|
1490 |
+
jQuery("#ux_ddl_blog_description_alignment_thumbnail").val("<?php echo isset($blog_style_layout_data["blog_style_layout_thumbnail_description_text_alignment"]) ? esc_attr($blog_style_layout_data["blog_style_layout_thumbnail_description_text_alignment"]) : "left"; ?>");
|
1491 |
+
jQuery("#ux_ddl_blog_description_font_family_thumbnail").val("<?php echo isset($blog_style_layout_data["blog_style_layout_thumbnail_description_font_family"]) ? htmlspecialchars_decode($blog_style_layout_data["blog_style_layout_thumbnail_description_font_family"]) : "Roboto Slab: 300"; ?>");
|
1492 |
+
hover_effect_value_gallery_bank();
|
1493 |
+
});
|
1494 |
+
jQuery("#ux_frm_blog_style_layout").validate({
|
1495 |
+
submitHandler: function () {
|
1496 |
+
premium_edition_notification_gallery_bank();
|
1497 |
+
}
|
1498 |
+
});
|
1499 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1500 |
+
setTimeout(function () {
|
1501 |
+
clearInterval(sidebar_load_interval);
|
1502 |
+
}, 5000);
|
1503 |
+
<?php
|
1504 |
+
}
|
1505 |
+
break;
|
1506 |
|
1507 |
+
case "gb_compact_album_layout":
|
1508 |
+
?>
|
1509 |
+
jQuery("#ux_li_layout_settings").addClass("active");
|
1510 |
+
jQuery("#ux_li_compact_album_layout").addClass("active");
|
1511 |
+
<?php
|
1512 |
+
if (layout_settings_gallery_bank === "1") {
|
1513 |
+
?>
|
1514 |
+
jQuery(document).ready(function () {
|
1515 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo esc_attr($compact_album_layout_cover_border_style[1]); ?>");
|
1516 |
+
jQuery("#ux_ddl_hover_effect").val("<?php echo esc_attr($compact_album_layout_cover_hover_effect_value[0]); ?>");
|
1517 |
+
jQuery("#ux_ddl_album_title_html_tag").val("<?php echo isset($compact_album_layout_data["compact_album_layout_title_html_tag"]) ? htmlspecialchars_decode($compact_album_layout_data["compact_album_layout_title_html_tag"]) : "h2"; ?>");
|
1518 |
+
jQuery("#ux_ddl_album_title_alignment").val("<?php echo isset($compact_album_layout_data["compact_album_layout_title_text_alignment"]) ? esc_attr($compact_album_layout_data["compact_album_layout_title_text_alignment"]) : "left"; ?>");
|
1519 |
+
jQuery("#ux_ddl_album_title_font_family").val("<?php echo isset($compact_album_layout_data["compact_album_layout_title_font_family"]) ? htmlspecialchars_decode($compact_album_layout_data["compact_album_layout_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1520 |
+
jQuery("#ux_ddl_album_description_html_tag").val("<?php echo isset($compact_album_layout_data["compact_album_layout_description_html_tag"]) ? esc_attr($compact_album_layout_data["compact_album_layout_description_html_tag"]) : "h3"; ?>");
|
1521 |
+
jQuery("#ux_ddl_album_description_alignment").val("<?php echo isset($compact_album_layout_data["compact_album_layout_description_text_alignment"]) ? esc_attr($compact_album_layout_data["compact_album_layout_description_text_alignment"]) : "left"; ?>");
|
1522 |
+
jQuery("#ux_ddl_album_description_font_family").val("<?php echo isset($compact_album_layout_data["compact_album_layout_description_font_family"]) ? htmlspecialchars_decode($compact_album_layout_data["compact_album_layout_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1523 |
+
jQuery("#ux_ddl_gallery_title_html_tag").val("<?php echo isset($compact_album_layout_data["compact_album_layout_gallery_title_html_tag"]) ? htmlspecialchars_decode($compact_album_layout_data["compact_album_layout_gallery_title_html_tag"]) : "h3"; ?>");
|
1524 |
+
jQuery("#ux_ddl_gallery_title_alignment").val("<?php echo isset($compact_album_layout_data["compact_album_layout_gallery_title_text_alignment"]) ? esc_attr($compact_album_layout_data["compact_album_layout_gallery_title_text_alignment"]) : "left"; ?>");
|
1525 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($compact_album_layout_data["compact_album_layout_gallery_title_font_family"]) ? htmlspecialchars_decode($compact_album_layout_data["compact_album_layout_gallery_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1526 |
+
jQuery("#ux_ddl_gallery_description_html_tag").val("<?php echo isset($compact_album_layout_data["compact_album_layout_gallery_description_html_tag"]) ? esc_attr($compact_album_layout_data["compact_album_layout_gallery_description_html_tag"]) : "p"; ?>");
|
1527 |
+
jQuery("#ux_ddl_gallery_description_alignment").val("<?php echo isset($compact_album_layout_data["compact_album_layout_gallery_description_text_alignment"]) ? esc_attr($compact_album_layout_data["compact_album_layout_gallery_description_text_alignment"]) : "left"; ?>");
|
1528 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($compact_album_layout_data["compact_album_layout_gallery_description_font_family"]) ? htmlspecialchars_decode($compact_album_layout_data["compact_album_layout_gallery_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1529 |
+
jQuery("#ux_ddl_compact_album_button_text_alignment").val("<?php echo isset($compact_album_layout_data["compact_album_layout_button_text_alignment"]) ? esc_attr($compact_album_layout_data["compact_album_layout_button_text_alignment"]) : "left"; ?>");
|
1530 |
+
jQuery("#ux_ddl_compact_album_button_font_family").val("<?php echo isset($compact_album_layout_data["compact_album_layout_button_text_font_family"]) ? htmlspecialchars_decode($compact_album_layout_data["compact_album_layout_button_text_font_family"]) : "Roboto Slab:700"; ?>");
|
1531 |
+
jQuery("#ux_ddl_compact_album_button_border_thickness").val("<?php echo esc_attr($compact_album_layout_button_border_style[1]); ?>");
|
1532 |
+
hover_effect_value_gallery_bank();
|
1533 |
+
});
|
1534 |
+
jQuery("#ux_frm_compact_album_layout").validate({
|
1535 |
+
submitHandler: function () {
|
1536 |
+
premium_edition_notification_gallery_bank();
|
1537 |
+
}
|
1538 |
+
});
|
1539 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1540 |
+
setTimeout(function () {
|
1541 |
+
clearInterval(sidebar_load_interval);
|
1542 |
+
}, 5000);
|
1543 |
+
<?php
|
1544 |
+
}
|
1545 |
+
break;
|
1546 |
|
1547 |
+
case "gb_extended_album_layout":
|
1548 |
+
?>
|
1549 |
+
jQuery("#ux_li_layout_settings").addClass("active");
|
1550 |
+
jQuery("#ux_li_extended_album_layout").addClass("active");
|
1551 |
+
<?php
|
1552 |
+
if (layout_settings_gallery_bank === "1") {
|
1553 |
+
?>
|
1554 |
+
jQuery(document).ready(function () {
|
1555 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo esc_attr($extended_album_layout_cover_border_style[1]); ?>");
|
1556 |
+
jQuery("#ux_ddl_hover_effect").val("<?php echo esc_attr($extended_album_layout_cover_hover_effect_value[0]); ?>");
|
1557 |
+
jQuery("#ux_ddl_album_title_html_tag").val("<?php echo isset($extended_album_layout_data["extended_album_layout_title_html_tag"]) ? htmlspecialchars_decode($extended_album_layout_data["extended_album_layout_title_html_tag"]) : "h2"; ?>");
|
1558 |
+
jQuery("#ux_ddl_album_title_alignment").val("<?php echo isset($extended_album_layout_data["extended_album_layout_title_text_alignment"]) ? esc_attr($extended_album_layout_data["extended_album_layout_title_text_alignment"]) : "left"; ?>");
|
1559 |
+
jQuery("#ux_ddl_album_title_font_family").val("<?php echo isset($extended_album_layout_data["extended_album_layout_title_font_family"]) ? htmlspecialchars_decode($extended_album_layout_data["extended_album_layout_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1560 |
+
jQuery("#ux_ddl_album_description_html_tag").val("<?php echo isset($extended_album_layout_data["extended_album_layout_description_html_tag"]) ? esc_attr($extended_album_layout_data["extended_album_layout_description_html_tag"]) : "h3"; ?>");
|
1561 |
+
jQuery("#ux_ddl_album_description_alignment").val("<?php echo isset($extended_album_layout_data["extended_album_layout_description_text_alignment"]) ? esc_attr($extended_album_layout_data["extended_album_layout_description_text_alignment"]) : "left"; ?>");
|
1562 |
+
jQuery("#ux_ddl_album_description_font_family").val("<?php echo isset($extended_album_layout_data["extended_album_layout_description_font_family"]) ? htmlspecialchars_decode($extended_album_layout_data["extended_album_layout_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1563 |
+
jQuery("#ux_ddl_gallery_title_html_tag").val("<?php echo isset($extended_album_layout_data["extended_album_layout_gallery_title_html_tag"]) ? htmlspecialchars_decode($extended_album_layout_data["extended_album_layout_gallery_title_html_tag"]) : "h3"; ?>");
|
1564 |
+
jQuery("#ux_ddl_gallery_title_alignment").val("<?php echo isset($extended_album_layout_data["extended_album_layout_gallery_title_text_alignment"]) ? esc_attr($extended_album_layout_data["extended_album_layout_gallery_title_text_alignment"]) : "left"; ?>");
|
1565 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($extended_album_layout_data["extended_album_layout_gallery_title_font_family"]) ? htmlspecialchars_decode($extended_album_layout_data["extended_album_layout_gallery_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1566 |
+
jQuery("#ux_ddl_gallery_description_html_tag").val("<?php echo isset($extended_album_layout_data["extended_album_layout_gallery_description_html_tag"]) ? esc_attr($extended_album_layout_data["extended_album_layout_gallery_description_html_tag"]) : "p"; ?>");
|
1567 |
+
jQuery("#ux_ddl_gallery_description_alignment").val("<?php echo isset($extended_album_layout_data["extended_album_layout_gallery_description_text_alignment"]) ? esc_attr($extended_album_layout_data["extended_album_layout_gallery_description_text_alignment"]) : "left"; ?>");
|
1568 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($extended_album_layout_data["extended_album_layout_gallery_description_font_family"]) ? htmlspecialchars_decode($extended_album_layout_data["extended_album_layout_gallery_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1569 |
+
jQuery("#ux_ddl_extended_album_button_text_alignment").val("<?php echo isset($extended_album_layout_data["extended_album_layout_button_text_alignment"]) ? esc_attr($extended_album_layout_data["extended_album_layout_button_text_alignment"]) : "left"; ?>");
|
1570 |
+
jQuery("#ux_ddl_extended_album_button_font_family").val("<?php echo isset($extended_album_layout_data["extended_album_layout_button_text_font_family"]) ? htmlspecialchars_decode($extended_album_layout_data["extended_album_layout_button_text_font_family"]) : "Roboto Slab:700"; ?>");
|
1571 |
+
jQuery("#ux_ddl_extended_album_button_border_thickness").val("<?php echo esc_attr($extended_album_layout_button_border_style[1]); ?>");
|
1572 |
+
hover_effect_value_gallery_bank();
|
1573 |
+
});
|
1574 |
+
jQuery("#ux_frm_extended_album_layout").validate({
|
1575 |
+
submitHandler: function () {
|
1576 |
+
premium_edition_notification_gallery_bank();
|
1577 |
+
}
|
1578 |
+
});
|
1579 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1580 |
+
setTimeout(function () {
|
1581 |
+
clearInterval(sidebar_load_interval);
|
1582 |
+
}, 5000);
|
1583 |
+
<?php
|
1584 |
+
}
|
1585 |
+
break;
|
1586 |
+
case "gb_custom_css":
|
1587 |
+
?>
|
1588 |
+
jQuery("#ux_li_layout_settings").addClass("active");
|
1589 |
+
jQuery("#ux_li_custom_css").addClass("active");
|
1590 |
+
<?php
|
1591 |
+
if (layout_settings_gallery_bank === "1") {
|
1592 |
+
?>
|
1593 |
+
jQuery("#ux_frm_custom_css").validate({
|
1594 |
+
submitHandler: function () {
|
1595 |
+
submit_handler_common_gallery_bank("#ux_frm_custom_css", "", "custom_css_module", "<?php echo $custom_css_nonce; ?>", <?php echo json_encode($gb_custom_css_message); ?>, "gb_custom_css");
|
1596 |
+
}
|
1597 |
+
});
|
1598 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1599 |
+
setTimeout(function () {
|
1600 |
+
clearInterval(sidebar_load_interval);
|
1601 |
+
}, 5000);
|
1602 |
+
<?php
|
1603 |
+
}
|
1604 |
+
break;
|
1605 |
+
case "gb_lightcase" :
|
1606 |
+
?>
|
1607 |
+
jQuery("#ux_li_lightboxes").addClass("active");
|
1608 |
+
jQuery("#ux_li_gb_lightcase").addClass("active");
|
1609 |
+
<?php
|
1610 |
+
if (lightboxes_gallery_bank === "1") {
|
1611 |
+
?>
|
1612 |
+
jQuery(document).ready(function () {
|
1613 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo $gb_lightcase_border[1] ?>");
|
1614 |
+
jQuery("#ux_ddl_image_transition").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_transition"]) ? esc_attr($gb_lightcase_meta_data["lightcase_image_transition"]) : "fade" ?>");
|
1615 |
+
jQuery("#ux_ddl_image_title_html_tag").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_title_html_tag"]) ? esc_attr($gb_lightcase_meta_data["lightcase_image_title_html_tag"]) : "h2"; ?>");
|
1616 |
+
jQuery("#ux_ddl_image_title_alignment").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_title_text_alignment"]) ? esc_attr($gb_lightcase_meta_data["lightcase_image_title_text_alignment"]) : "left"; ?>");
|
1617 |
+
jQuery("#ux_ddl_image_title_font_family").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_title_font_family"]) ? htmlspecialchars_decode($gb_lightcase_meta_data["lightcase_image_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1618 |
+
jQuery("#ux_ddl_image_description_html_tag").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_description_html_tag"]) ? esc_attr($gb_lightcase_meta_data["lightcase_image_description_html_tag"]) : "h3"; ?>");
|
1619 |
+
jQuery("#ux_ddl_image_description_alignment").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_description_text_alignment"]) ? esc_attr($gb_lightcase_meta_data["lightcase_image_description_text_alignment"]) : "left"; ?>");
|
1620 |
+
jQuery("#ux_ddl_image_description_font_family").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_description_font_family"]) ? htmlspecialchars_decode($gb_lightcase_meta_data["lightcase_image_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1621 |
+
jQuery("#ux_ddl_autoplay_slideshow").val("<?php echo isset($gb_lightcase_meta_data["lightcase_autoplay_slideshow"]) ? esc_attr($gb_lightcase_meta_data["lightcase_autoplay_slideshow"]) : "true" ?>");
|
1622 |
+
jQuery("#ux_ddl_close_button").val("<?php echo isset($gb_lightcase_meta_data["lightcase_close_button"]) ? esc_attr($gb_lightcase_meta_data["lightcase_close_button"]) : "show"; ?>");
|
1623 |
+
jQuery("#ux_ddl_lightbox_lightbox2_title").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_title"]) ? esc_attr($gb_lightcase_meta_data["lightcase_image_title"]) : "true" ?>");
|
1624 |
+
jQuery("#ux_ddl_lightbox_lightbox2_description").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_description"]) ? esc_attr($gb_lightcase_meta_data["lightcase_image_description"]) : "true" ?>");
|
1625 |
+
jQuery("#ux_ddl_image_counter").val("<?php echo isset($gb_lightcase_meta_data["lightcase_image_counter"]) ? esc_attr($gb_lightcase_meta_data["lightcase_image_counter"]) : "show"; ?>");
|
1626 |
+
jQuery("#ux_ddl_image_counter_font_family").val("<?php echo isset($gb_lightcase_meta_data["lightcase_counter_font_family"]) ? htmlspecialchars_decode($gb_lightcase_meta_data["lightcase_counter_font_family"]) : "Roboto Slab:700"; ?>");
|
1627 |
+
show_hide_control_gallery_bank("ux_ddl_autoplay_slideshow", "ux_div_lightcase_slideshow");
|
1628 |
+
show_hide_control_gallery_bank('ux_ddl_image_counter', 'ux_div_image_counter_style');
|
1629 |
+
show_hide_control_gallery_bank('ux_ddl_lightbox_lightbox2_title', 'ux_div_title_lightbox_lightbox2');
|
1630 |
+
show_hide_control_gallery_bank('ux_ddl_lightbox_lightbox2_description', 'ux_div_lightbox_lightbox2_description');
|
1631 |
+
});
|
1632 |
+
jQuery("#ux_frm_lightcase_lightbox_settings").validate({
|
1633 |
+
submitHandler: function () {
|
1634 |
+
premium_edition_notification_gallery_bank();
|
1635 |
+
}
|
1636 |
+
});
|
1637 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1638 |
+
setTimeout(function () {
|
1639 |
+
clearInterval(sidebar_load_interval);
|
1640 |
+
}, 5000);
|
1641 |
+
<?php
|
1642 |
+
}
|
1643 |
+
break;
|
1644 |
|
1645 |
+
case "gb_fancy_box" :
|
1646 |
+
?>
|
1647 |
+
jQuery("#ux_li_lightboxes").addClass("active");
|
1648 |
+
jQuery("#ux_li_fancy_box").addClass("active");
|
1649 |
+
<?php
|
1650 |
+
if (lightboxes_gallery_bank === "1") {
|
1651 |
+
?>
|
1652 |
+
jQuery(document).ready(function () {
|
1653 |
+
jQuery("#ux_ddl_open_effect").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_open_effect"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_open_effect"]) : "fade"; ?>");
|
1654 |
+
jQuery("#ux_ddl_close_effect").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_close_effect"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_close_effect"]) : "fade"; ?>");
|
1655 |
+
jQuery("#ux_ddl_fancy_box_title").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_title"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_title"]) : "true "; ?>");
|
1656 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_title_font_family"]) ? htmlspecialchars_decode($gb_fancy_box_get_data["fancy_box_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1657 |
+
jQuery("#ux_ddl_fancy_box_description").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_description"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_description"]) : "true"; ?>");
|
1658 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_description_font_family"]) ? htmlspecialchars_decode($gb_fancy_box_get_data["fancy_box_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1659 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo esc_attr($fancy_box_border_style[1]); ?>");
|
1660 |
+
jQuery("#ux_ddl_cyclic").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_cyclic"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_cyclic"]) : "false"; ?>");
|
1661 |
+
jQuery("#ux_ddl_arrows").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_arrows"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_arrows"]) : "true"; ?>");
|
1662 |
+
jQuery("#ux_ddl_mouse_wheel").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_mouse_wheel"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_mouse_wheel"]) : "true"; ?>");
|
1663 |
+
jQuery("#ux_ddl_button_position").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_button_position"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_button_position"]) : "bottom"; ?>");
|
1664 |
+
jQuery("#ux_ddl_enable_escape_button").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_enable_escape_button"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_enable_escape_button"]) : "false"; ?>");
|
1665 |
+
jQuery("#ux_ddl_title_position").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_title_position"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_title_position"]) : "inside"; ?>");
|
1666 |
+
jQuery("#ux_ddl_show_close_button").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_show_close_button"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_show_close_button"]) : "true"; ?>");
|
1667 |
+
jQuery("#ux_ddl_image_title_html_tag").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_title_html_tag"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_title_html_tag"]) : "h2"; ?>");
|
1668 |
+
jQuery("#ux_ddl_image_title_alignment").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_title_text_alignment"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_title_text_alignment"]) : "left"; ?>");
|
1669 |
+
jQuery("#ux_ddl_image_description_html_tag").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_description_html_tag"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_description_html_tag"]) : "h3"; ?>");
|
1670 |
+
jQuery("#ux_ddl_image_description_alignment").val("<?php echo isset($gb_fancy_box_get_data["fancy_box_description_text_alignment"]) ? esc_attr($gb_fancy_box_get_data["fancy_box_description_text_alignment"]) : "left"; ?>");
|
1671 |
+
show_hide_control_gallery_bank("ux_ddl_fancy_box_title", "fancy_box_title_div");
|
1672 |
+
show_hide_control_gallery_bank("ux_ddl_fancy_box_description", "fancy_box_description_div");
|
1673 |
+
});
|
1674 |
+
jQuery("#ux_frm_fancy_box").validate({
|
1675 |
+
submitHandler: function () {
|
1676 |
+
premium_edition_notification_gallery_bank();
|
1677 |
+
}
|
1678 |
+
});
|
1679 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1680 |
+
setTimeout(function () {
|
1681 |
+
clearInterval(sidebar_load_interval);
|
1682 |
+
}, 5000);
|
1683 |
+
<?php
|
1684 |
+
}
|
1685 |
+
break;
|
1686 |
|
1687 |
+
case "gb_color_box" :
|
1688 |
+
?>
|
1689 |
+
jQuery("#ux_li_lightboxes").addClass("active");
|
1690 |
+
jQuery("#ux_li_color_box").addClass("active");
|
1691 |
+
<?php
|
1692 |
+
if (lightboxes_gallery_bank === "1") {
|
1693 |
+
?>
|
1694 |
|
1695 |
+
function position_setting_gallery_bank(control) {
|
1696 |
+
var position_value = jQuery(control).val();
|
1697 |
+
position_value !== "reposition" ? jQuery("#positioning_setting").attr("style", "display:block") : jQuery("#positioning_setting").attr("style", "display:none");
|
1698 |
+
}
|
1699 |
+
jQuery(document).ready(function () {
|
1700 |
+
jQuery("#ux_ddl_colorbox_type").val("<?php echo isset($color_box_get_data["lightbox_color_box_type"]) ? esc_attr($color_box_get_data["lightbox_color_box_type"]) : "type1"; ?>");
|
1701 |
+
jQuery("#ux_ddl_colorbox_effect").val("<?php echo isset($color_box_get_data["lightbox_color_box_transition_effect"]) ? esc_attr($color_box_get_data["lightbox_color_box_transition_effect"]) : "elastic"; ?>");
|
1702 |
+
jQuery("#ux_ddl_colorbox_open").val("<?php echo isset($color_box_get_data["lightbox_color_box_open_page_load"]) ? esc_attr($color_box_get_data["lightbox_color_box_open_page_load"]) : "false"; ?>");
|
1703 |
+
jQuery("#ux_ddl_show_close_button").val("<?php echo isset($color_box_get_data["lightbox_color_box_show_close_button"]) ? esc_attr($color_box_get_data["lightbox_color_box_show_close_button"]) : "true"; ?>");
|
1704 |
+
jQuery("#ux_ddl_color_box_title").val("<?php echo isset($color_box_get_data["lightbox_color_box_title"]) ? esc_attr($color_box_get_data["lightbox_color_box_title"]) : "true"; ?>");
|
1705 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($color_box_get_data["lightbox_color_box_title_font_family"]) ? htmlspecialchars_decode($color_box_get_data["lightbox_color_box_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1706 |
+
jQuery("#ux_ddl_color_box_description").val("<?php echo isset($color_box_get_data["lightbox_color_box_description"]) ? esc_attr($color_box_get_data["lightbox_color_box_description"]) : "true"; ?>");
|
1707 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($color_box_get_data["lightbox_color_box_description_font_family"]) ? htmlspecialchars_decode($color_box_get_data["lightbox_color_box_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1708 |
+
jQuery("#ux_ddl_slide_show").val("<?php echo isset($color_box_get_data["lightbox_color_box_sideshow"]) ? esc_attr($color_box_get_data["lightbox_color_box_sideshow"]) : "true"; ?>");
|
1709 |
+
jQuery("#ux_ddl_auto_slide_show").val("<?php echo isset($color_box_get_data["lightbox_color_box_auto_slideshow"]) ? esc_attr($color_box_get_data["lightbox_color_box_auto_slideshow"]) : "true"; ?>");
|
1710 |
+
jQuery("#ux_ddl_positioning").val("<?php echo isset($color_box_get_data["lightbox_color_box_postioning"]) ? esc_attr($color_box_get_data["lightbox_color_box_postioning"]) : "reposition"; ?>");
|
1711 |
+
jQuery("#ux_ddl_fixed_positioning").val("<?php echo isset($color_box_get_data["lightbox_color_box_fixed_position"]) ? esc_attr($color_box_get_data["lightbox_color_box_fixed_position"]) : "false"; ?>");
|
1712 |
+
jQuery("#ux_ddl_image_title_html_tag").val("<?php echo isset($color_box_get_data["lightbox_color_box_title_html_tag"]) ? esc_attr($color_box_get_data["lightbox_color_box_title_html_tag"]) : "h2"; ?>");
|
1713 |
+
jQuery("#ux_ddl_image_title_alignment").val("<?php echo isset($color_box_get_data["lightbox_color_box_title_text_alignment"]) ? esc_attr($color_box_get_data["lightbox_color_box_title_text_alignment"]) : "left"; ?>");
|
1714 |
+
jQuery("#ux_ddl_image_description_html_tag").val("<?php echo isset($color_box_get_data["lightbox_color_box_description_html_tag"]) ? esc_attr($color_box_get_data["lightbox_color_box_description_html_tag"]) : "h3"; ?>");
|
1715 |
+
jQuery("#ux_ddl_image_description_alignment").val("<?php echo isset($color_box_get_data["lightbox_color_box_description_text_alignment"]) ? esc_attr($color_box_get_data["lightbox_color_box_description_text_alignment"]) : "left"; ?>");
|
1716 |
+
show_hide_control_gallery_bank("ux_ddl_slide_show", "slideshow_settings");
|
1717 |
+
position_setting_gallery_bank("#ux_ddl_positioning");
|
1718 |
+
show_hide_control_gallery_bank("ux_ddl_color_box_title", "color_box_title_div");
|
1719 |
+
show_hide_control_gallery_bank("ux_ddl_color_box_description", "color_box_description_div");
|
1720 |
+
});
|
1721 |
+
jQuery("#ux_frm_color_box").validate({
|
1722 |
+
submitHandler: function () {
|
1723 |
+
premium_edition_notification_gallery_bank();
|
1724 |
+
}
|
1725 |
+
});
|
1726 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1727 |
+
setTimeout(function () {
|
1728 |
+
clearInterval(sidebar_load_interval);
|
1729 |
+
}, 5000);
|
1730 |
+
<?php
|
1731 |
+
}
|
1732 |
+
break;
|
1733 |
|
1734 |
+
case "gb_foo_box_free_edition" :
|
1735 |
+
?>
|
1736 |
+
jQuery("#ux_li_lightboxes").addClass("active");
|
1737 |
+
jQuery("#ux_li_foo_box_free_edition").addClass("active");
|
1738 |
|
1739 |
+
<?php
|
1740 |
+
if (lightboxes_gallery_bank === "1") {
|
1741 |
+
?>
|
1742 |
|
1743 |
+
jQuery(document).ready(function () {
|
1744 |
+
jQuery("#ux_ddl_show_count").val("<?php echo isset($foo_box["foo_box_show_count"]) ? esc_attr($foo_box["foo_box_show_count"]) : "true"; ?>");
|
1745 |
+
jQuery("#ux_ddl_close_overlay_click").val("<?php echo isset($foo_box["foo_box_close_overlay_click"]) ? esc_attr($foo_box["foo_box_close_overlay_click"]) : "false"; ?>");
|
1746 |
+
jQuery("#ux_ddl_hide_page_scrollbar").val("<?php echo isset($foo_box["foo_box_hide_page_scrollbar"]) ? esc_attr($foo_box["foo_box_hide_page_scrollbar"]) : "false"; ?>");
|
1747 |
+
jQuery("#ux_ddl_show_on_hover").val("<?php echo isset($foo_box["foo_box_show_on_hover"]) ? esc_attr($foo_box["foo_box_show_on_hover"]) : "false"; ?>");
|
1748 |
+
jQuery("#ux_ddl_foo_box_title").val("<?php echo isset($foo_box["foo_box_title"]) ? esc_attr($foo_box["foo_box_title"]) : "true"; ?>");
|
1749 |
+
jQuery("#ux_ddl_image_title_html_tag").val("<?php echo isset($foo_box["foo_box_image_title_html_tag"]) ? esc_attr($foo_box["foo_box_image_title_html_tag"]) : "h2"; ?>");
|
1750 |
+
jQuery("#ux_ddl_image_title_alignment").val("<?php echo isset($foo_box["foo_box_image_title_text_alignment"]) ? esc_attr($foo_box["foo_box_image_title_text_alignment"]) : "left"; ?>");
|
1751 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($foo_box["foo_box_title_font_family"]) ? htmlspecialchars_decode($foo_box["foo_box_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1752 |
+
jQuery("#ux_ddl_foo_box_description").val("<?php echo isset($foo_box["foo_box_description"]) ? esc_attr($foo_box["foo_box_description"]) : "true"; ?>");
|
1753 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($foo_box["foo_box_description_font_family"]) ? htmlspecialchars_decode($foo_box["foo_box_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1754 |
+
jQuery("#ux_ddl_image_description_html_tag").val("<?php echo isset($foo_box["foo_box_image_description_html_tag"]) ? esc_attr($foo_box["foo_box_image_description_html_tag"]) : "h3"; ?>");
|
1755 |
+
jQuery("#ux_ddl_image_description_alignment").val("<?php echo isset($foo_box["foo_box_image_description_text_alignment"]) ? esc_attr($foo_box["foo_box_image_description_text_alignment"]) : "left"; ?>");
|
1756 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo esc_attr($foo_box_border_style[1]); ?>");
|
1757 |
+
show_hide_control_gallery_bank("ux_ddl_foo_box_title", "foo_box_title_div");
|
1758 |
+
show_hide_control_gallery_bank("ux_ddl_foo_box_description", "foo_box_description_div");
|
1759 |
+
});
|
1760 |
+
jQuery("#ux_frm_foo_box_free_edition").validate({
|
1761 |
+
submitHandler: function () {
|
1762 |
+
premium_edition_notification_gallery_bank();
|
1763 |
+
}
|
1764 |
+
});
|
1765 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1766 |
+
setTimeout(function () {
|
1767 |
+
clearInterval(sidebar_load_interval);
|
1768 |
+
}, 5000);
|
1769 |
+
<?php
|
1770 |
+
}
|
1771 |
+
break;
|
1772 |
+
case "gb_nivo_lightbox" :
|
1773 |
+
?>
|
1774 |
+
jQuery("#ux_li_lightboxes").addClass("active");
|
1775 |
+
jQuery("#ux_li_nivo_light_box").addClass("active");
|
1776 |
+
<?php
|
1777 |
+
if (lightboxes_gallery_bank === "1") {
|
1778 |
+
?>
|
1779 |
+
jQuery(document).ready(function () {
|
1780 |
+
jQuery("#ux_ddl_choose_effect").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_choose_effect"]) ? esc_html($gb_nivo_lightbox_meta_data["lightbox_nivo_choose_effect"]) : "fade"; ?>");
|
1781 |
+
jQuery("#ux_ddl_keyboard_navigation").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_keyboard_navigation"]) ? esc_html($gb_nivo_lightbox_meta_data["lightbox_nivo_keyboard_navigation"]) : "false"; ?>");
|
1782 |
+
jQuery("#ux_ddl_click_image_to_close").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_click_image_to_close"]) ? esc_html($gb_nivo_lightbox_meta_data["lightbox_nivo_click_image_to_close"]) : "true"; ?>");
|
1783 |
+
jQuery("#ux_ddl_click_overlay_to_close").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_click_overlay_to_close"]) ? esc_html($gb_nivo_lightbox_meta_data["lightbox_nivo_click_overlay_to_close"]) : "true"; ?>");
|
1784 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo esc_html($lightbox_nivo_border_style[1]); ?>");
|
1785 |
+
jQuery("#ux_ddl_nivo_title").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_title"]) ? $gb_nivo_lightbox_meta_data["lightbox_nivo_title"] : "true"; ?>");
|
1786 |
+
jQuery("#ux_ddl_gallery_title_font_family").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_title_font_family"]) ? htmlspecialchars_decode($gb_nivo_lightbox_meta_data["lightbox_nivo_title_font_family"]) : "Roboto Slab:700"; ?>");
|
1787 |
+
jQuery("#ux_ddl_image_title_html_tag").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_title_html_tag"]) ? esc_attr($gb_nivo_lightbox_meta_data["lightbox_nivo_title_html_tag"]) : "h2"; ?>");
|
1788 |
+
jQuery("#ux_ddl_image_title_alignment").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_title_text_alignment"]) ? esc_attr($gb_nivo_lightbox_meta_data["lightbox_nivo_title_text_alignment"]) : "center"; ?>");
|
1789 |
+
jQuery("#ux_ddl_nivo_description").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_description"]) ? $gb_nivo_lightbox_meta_data["lightbox_nivo_description"] : "false"; ?>");
|
1790 |
+
jQuery("#ux_ddl_gallery_description_font_family").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_description_font_family"]) ? htmlspecialchars_decode($gb_nivo_lightbox_meta_data["lightbox_nivo_description_font_family"]) : "Roboto Slab:300"; ?>");
|
1791 |
+
jQuery("#ux_ddl_image_description_html_tag").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_description_html_tag"]) ? esc_attr($gb_nivo_lightbox_meta_data["lightbox_nivo_description_html_tag"]) : "h3"; ?>");
|
1792 |
+
jQuery("#ux_ddl_image_description_alignment").val("<?php echo isset($gb_nivo_lightbox_meta_data["lightbox_nivo_description_text_alignment"]) ? esc_attr($gb_nivo_lightbox_meta_data["lightbox_nivo_description_text_alignment"]) : "center"; ?>");
|
1793 |
+
show_hide_control_gallery_bank("ux_ddl_nivo_title", "nivo_lightbox_title_div");
|
1794 |
+
show_hide_control_gallery_bank("ux_ddl_nivo_description", "nivo_lightbox_description_div");
|
1795 |
+
});
|
1796 |
+
jQuery("#ux_frm_nivo_lightbox_settings").validate({
|
1797 |
+
submitHandler: function () {
|
1798 |
+
premium_edition_notification_gallery_bank();
|
1799 |
+
}
|
1800 |
+
});
|
1801 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
1802 |
+
setTimeout(function () {
|
1803 |
+
clearInterval(sidebar_load_interval);
|
1804 |
+
}, 5000);
|
1805 |
+
<?php
|
1806 |
+
}
|
1807 |
+
break;
|
1808 |
+
case "gb_global_options" :
|
1809 |
+
?>
|
1810 |
+
jQuery("#ux_li_general_settings").addClass("active");
|
1811 |
+
jQuery("#ux_li_global_options").addClass("active");
|
1812 |
+
<?php
|
1813 |
+
if (general_settings_gallery_bank === "1") {
|
1814 |
+
?>
|
1815 |
+
jQuery(document).ready(function () {
|
1816 |
+
jQuery("#ux_ddl_language_direction").val("<?php echo isset($global_options_get_data["global_options_language_direction"]) ? esc_attr($global_options_get_data["global_options_language_direction"]) : "left_to_right"; ?>");
|
1817 |
+
jQuery("#ux_ddl_right_click").val("<?php echo isset($global_options_get_data["global_options_right_click_protection"]) ? esc_attr($global_options_get_data["global_options_right_click_protection"]) : "disable"; ?>");
|
1818 |
+
});
|
1819 |
+
jQuery("#ux_frm_global_options").validate({
|
1820 |
+
submitHandler: function () {
|
1821 |
+
submit_handler_common_gallery_bank("#ux_frm_global_options", "", "global_options_module", "<?php echo $global_options_nonce; ?>", <?php echo json_encode($gb_update_global_options_data); ?>, "gb_global_options");
|
1822 |
+
}
|
1823 |
+
});
|
1824 |
+
<?php
|
1825 |
+
}
|
1826 |
+
break;
|
1827 |
+
case "gb_filter_settings" :
|
1828 |
+
?>
|
1829 |
+
jQuery("#ux_li_general_settings").addClass("active");
|
1830 |
+
jQuery("#ux_li_filter_settings").addClass("active");
|
1831 |
+
<?php
|
1832 |
+
if (general_settings_gallery_bank === "1") {
|
1833 |
+
?>
|
1834 |
+
jQuery("document").ready(function () {
|
1835 |
+
jQuery("#ux_ddl_font_family").val("<?php echo isset($filter_settings_get_data["filters_font_family"]) ? htmlspecialchars_decode($filter_settings_get_data["filters_font_family"]) : "Roboto Slab:700"; ?>");
|
1836 |
+
jQuery("#ux_ddl_filters_border_style_thickness").val("<?php echo esc_attr($filter_border_color[1]); ?>");
|
1837 |
+
});
|
1838 |
+
jQuery("#ux_frm_filter_settings").validate({
|
1839 |
+
submitHandler: function () {
|
1840 |
+
premium_edition_notification_gallery_bank();
|
1841 |
+
}
|
1842 |
+
});
|
1843 |
+
<?php
|
1844 |
+
}
|
1845 |
+
break;
|
1846 |
+
case "gb_lazy_load_settings" :
|
1847 |
+
?>
|
1848 |
+
jQuery("#ux_li_general_settings").addClass("active");
|
1849 |
+
jQuery("#ux_li_lazyload_settings").addClass("active");
|
1850 |
+
<?php
|
1851 |
+
if (general_settings_gallery_bank === "1") {
|
1852 |
+
?>
|
1853 |
+
jQuery("document").ready(function () {
|
1854 |
+
jQuery("#ux_ddl_loader_font_family").val("<?php echo isset($lazyload_settings_get_data["loader_font_family"]) ? htmlspecialchars_decode($lazyload_settings_get_data["loader_font_family"]) : "Roboto Slab:700"; ?>");
|
1855 |
+
jQuery("#ux_ddl_loader_text").val("<?php echo isset($lazyload_settings_get_data["loader_text"]) ? esc_attr($lazyload_settings_get_data["loader_text"]) : "show"; ?>");
|
1856 |
+
show_hide_control_gallery_bank("ux_ddl_loader_text", "ux_div_loader_title");
|
1857 |
+
});
|
1858 |
+
jQuery("#ux_frm_lazyload_settings").validate({
|
1859 |
+
submitHandler: function () {
|
1860 |
+
premium_edition_notification_gallery_bank();
|
1861 |
+
}
|
1862 |
+
});
|
1863 |
+
<?php
|
1864 |
+
}
|
1865 |
+
break;
|
1866 |
+
case "gb_search_box_settings" :
|
1867 |
+
?>
|
1868 |
+
jQuery("#ux_li_general_settings").addClass("active");
|
1869 |
+
jQuery("#ux_li_searchbox_settings").addClass("active");
|
1870 |
+
<?php
|
1871 |
+
if (general_settings_gallery_bank === "1") {
|
1872 |
+
?>
|
1873 |
+
jQuery("document").ready(function () {
|
1874 |
+
jQuery("#ux_ddl_search_font_family").val("<?php echo isset($searchbox_settings_get_data["search_box_font_family"]) ? htmlspecialchars_decode($searchbox_settings_get_data["search_box_font_family"]) : "Roboto Slab:700"; ?>");
|
1875 |
+
jQuery("#ux_ddl_search_by_border_style_thickness").val("<?php echo esc_attr($search_box_border_color[1]); ?>");
|
1876 |
+
});
|
1877 |
+
jQuery("#ux_frm_searchbox_settings").validate({
|
1878 |
+
submitHandler: function () {
|
1879 |
+
premium_edition_notification_gallery_bank();
|
1880 |
+
}
|
1881 |
+
});
|
1882 |
+
<?php
|
1883 |
+
}
|
1884 |
+
break;
|
1885 |
+
case "gb_order_by_settings" :
|
1886 |
+
?>
|
1887 |
+
jQuery("#ux_li_general_settings").addClass("active");
|
1888 |
+
jQuery("#ux_li_orderby_settings").addClass("active");
|
1889 |
+
<?php
|
1890 |
+
if (general_settings_gallery_bank === "1") {
|
1891 |
+
?>
|
1892 |
+
jQuery("document").ready(function () {
|
1893 |
+
jQuery("#ux_ddl_order_font_family").val("<?php echo isset($orderby_settings_get_data["order_by_font_family"]) ? htmlspecialchars_decode($orderby_settings_get_data["order_by_font_family"]) : "Roboto Slab:700"; ?>");
|
1894 |
+
jQuery("#ux_ddl_order_by_border_style_thickness").val("<?php echo esc_attr($order_by_border_color[1]); ?>");
|
1895 |
|
1896 |
+
});
|
1897 |
+
jQuery("#ux_frm_orderby_settings").validate({
|
1898 |
+
submitHandler: function () {
|
1899 |
+
premium_edition_notification_gallery_bank();
|
1900 |
+
}
|
1901 |
+
});
|
1902 |
+
<?php
|
1903 |
+
}
|
1904 |
+
break;
|
1905 |
+
case "gb_page_navigation" :
|
1906 |
+
?>
|
1907 |
+
jQuery("#ux_li_general_settings").addClass("active");
|
1908 |
+
jQuery("#ux_li_page_navigation").addClass("active");
|
1909 |
|
1910 |
+
<?php
|
1911 |
+
if (general_settings_gallery_bank === "1") {
|
1912 |
+
?>
|
1913 |
+
jQuery("document").ready(function () {
|
1914 |
+
jQuery("#ux_ddl_border_style_thickness").val("<?php echo esc_attr($page_navigation_border_style[1]); ?>");
|
1915 |
+
jQuery("#ux_ddl_alignment_page").val("<?php echo isset($page_navigation_get_data["page_navigation_alignment"]) ? esc_attr($page_navigation_get_data["page_navigation_alignment"]) : "center"; ?>");
|
1916 |
+
jQuery("#ux_ddl_position").val("<?php echo isset($page_navigation_get_data["page_navigation_position"]) ? esc_attr($page_navigation_get_data["page_navigation_position"]) : "bottom"; ?>");
|
1917 |
+
jQuery("#ux_ddl_numbering").val("<?php echo isset($page_navigation_get_data["page_navigation_numbering"]) ? esc_attr($page_navigation_get_data["page_navigation_numbering"]) : "yes"; ?>");
|
1918 |
+
jQuery("#ux_ddl_button_text").val("<?php echo isset($page_navigation_get_data["page_navigation_button_text"]) ? esc_attr($page_navigation_get_data["page_navigation_button_text"]) : "text"; ?>");
|
1919 |
+
jQuery("#ux_ddl_title_font_family").val("<?php echo isset($page_navigation_get_data["page_navigation_font_family"]) ? htmlspecialchars_decode($page_navigation_get_data["page_navigation_font_family"]) : "Roboto Slab:700"; ?>");
|
1920 |
+
});
|
1921 |
+
jQuery("#ux_frm_page_navigation").validate({
|
1922 |
+
submitHandler: function () {
|
1923 |
+
premium_edition_notification_gallery_bank();
|
1924 |
+
}
|
1925 |
+
});
|
1926 |
+
<?php
|
1927 |
+
}
|
1928 |
+
break;
|
1929 |
+
case "gb_watermark_settings":
|
1930 |
+
?>
|
1931 |
+
jQuery("#ux_li_general_settings").addClass("active");
|
1932 |
+
jQuery("#ux_li_watermark_settings").addClass("active");
|
1933 |
+
<?php
|
1934 |
+
if (general_settings_gallery_bank === "1") {
|
1935 |
+
?>
|
1936 |
|
1937 |
+
function watermark_settings_gallery_bank() {
|
1938 |
+
var settings = jQuery("#ux_ddl_watermark_settings").val();
|
1939 |
+
switch (settings) {
|
1940 |
+
case "none":
|
1941 |
+
jQuery("#ux_div_watermark_text,#ux_div_settings,#ux_div_font_style,#ux_div_watermark_image").css("display", "none");
|
1942 |
+
break;
|
1943 |
+
case "text":
|
1944 |
+
jQuery("#ux_div_watermark_text,#ux_div_settings,#ux_div_font_style").css("display", "block");
|
1945 |
+
jQuery("#ux_div_watermark_image").css("display", "none");
|
1946 |
+
break;
|
1947 |
+
case "image":
|
1948 |
+
jQuery("#ux_div_watermark_text,#ux_div_font_style").css("display", "none");
|
1949 |
+
jQuery("#ux_div_settings,#ux_div_watermark_image").css("display", "block");
|
1950 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1951 |
}
|
1952 |
+
}
|
1953 |
+
jQuery(document).ready(function () {
|
1954 |
+
jQuery("#ux_ddl_watermark_settings").val("<?php echo isset($watermark_settings_get_data["watermark_settings_type"]) ? esc_attr($watermark_settings_get_data["watermark_settings_type"]) : "none"; ?>");
|
1955 |
+
jQuery("#ux_ddl_watermark_position").val("<?php echo isset($watermark_settings_get_data["watermark_settings_position"]) ? esc_attr($watermark_settings_get_data["watermark_settings_position"]) : "top_left"; ?>");
|
1956 |
+
<?php
|
1957 |
+
global $wp_version;
|
1958 |
+
if ($wp_version <= 3.5) {
|
1959 |
+
?>
|
1960 |
+
jQuery("#wp_media_upload_error_message").css("display", "block");
|
1961 |
+
jQuery("#wp_upload_button").css("display", "none");
|
1962 |
+
<?php
|
1963 |
+
} else {
|
1964 |
+
wp_enqueue_media();
|
1965 |
+
}
|
1966 |
+
?>
|
1967 |
+
watermark_settings_gallery_bank();
|
1968 |
+
});
|
1969 |
+
jQuery("#ux_watermark_setting").validate({
|
1970 |
+
submitHandler: function () {
|
1971 |
+
premium_edition_notification_gallery_bank();
|
1972 |
+
}
|
1973 |
+
});
|
1974 |
+
<?php
|
1975 |
+
}
|
1976 |
+
break;
|
1977 |
+
case "gb_advertisement":
|
1978 |
+
?>
|
1979 |
+
jQuery("#ux_li_general_settings").addClass("active");
|
1980 |
+
jQuery("#ux_li_advertisement").addClass("active");
|
1981 |
+
<?php
|
1982 |
+
if (general_settings_gallery_bank === "1") {
|
1983 |
+
?>
|
1984 |
+
function advertisment_settings_gallery_bank() {
|
1985 |
+
var advertise = jQuery("#ux_ddl_advertisement").val();
|
1986 |
+
switch (advertise) {
|
1987 |
+
case "none":
|
1988 |
+
jQuery("#ux_div_advertisement_text,#ux_div_font,#ux_div_style,#ux_div_advertisement_image,#ux_div_advertisement_url,#ux_div_advertisement_opacity").css("display", "none");
|
1989 |
+
break;
|
1990 |
+
case "text":
|
1991 |
+
jQuery("#ux_div_advertisement_text,#ux_div_font,#ux_div_style,#ux_div_advertisement_url,#ux_div_advertisement_opacity").css("display", "block");
|
1992 |
+
jQuery("#ux_div_advertisement_image").css("display", "none");
|
1993 |
+
break;
|
1994 |
+
case "image":
|
1995 |
+
jQuery("#ux_div_advertisement_text,#ux_div_style").css("display", "none");
|
1996 |
+
jQuery("#ux_div_font,#ux_div_advertisement_image,#ux_div_advertisement_url,#ux_div_advertisement_opacity").css("display", "block");
|
1997 |
+
break;
|
1998 |
+
}
|
1999 |
+
}
|
2000 |
+
jQuery(document).ready(function () {
|
2001 |
+
jQuery("#ux_ddl_advertisement").val("<?php echo isset($advertisement_get_data["advertisement_type"]) ? esc_attr($advertisement_get_data["advertisement_type"]) : "none"; ?>");
|
2002 |
+
jQuery("#ux_ddl_font").val("<?php echo isset($advertisement_get_data["advertisement_font_family"]) ? htmlspecialchars_decode($advertisement_get_data["advertisement_font_family"]) : "Roboto Slab:300"; ?>");
|
2003 |
+
jQuery("#ux_ddl_advertisement_position").val("<?php echo isset($advertisement_get_data["advertisement_position"]) ? esc_attr($advertisement_get_data["advertisement_position"]) : "top_left"; ?>");
|
2004 |
|
2005 |
+
<?php
|
2006 |
+
global $wp_version;
|
2007 |
+
if ($wp_version <= 3.5) {
|
2008 |
+
?>
|
2009 |
+
jQuery("#wp_media_upload_error_message").css("display", "block");
|
2010 |
+
jQuery("#wp_upload_button").css("display", "none");
|
2011 |
+
<?php
|
2012 |
+
} else {
|
2013 |
+
wp_enqueue_media();
|
2014 |
+
}
|
2015 |
+
?>
|
2016 |
+
advertisment_settings_gallery_bank();
|
2017 |
+
});
|
2018 |
+
jQuery("#ux_frm_advertisement").validate({
|
2019 |
+
submitHandler: function () {
|
2020 |
+
premium_edition_notification_gallery_bank();
|
2021 |
}
|
2022 |
+
});
|
2023 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
2024 |
+
setTimeout(function () {
|
2025 |
+
clearInterval(sidebar_load_interval);
|
2026 |
+
}, 5000);
|
2027 |
+
<?php
|
2028 |
+
}
|
2029 |
+
break;
|
2030 |
+
case "gb_thumbnail_layout_shortcode" :
|
2031 |
+
?>
|
2032 |
+
jQuery("#ux_li_shortcode_generator").addClass("active");
|
2033 |
+
jQuery("#ux_li_thumbnail_layout_shortcode").addClass("active");
|
2034 |
+
<?php
|
2035 |
+
if (shortcode_generator_gallery_bank === "1") {
|
2036 |
+
?>
|
2037 |
+
function generate_shortcode_thumbnail_layout_gallery_bank()
|
2038 |
+
{
|
2039 |
+
var choose_gallery = jQuery("#ux_ddl_choose_gallery").val();
|
2040 |
+
if (choose_gallery === "")
|
2041 |
+
{
|
2042 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
2043 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_choose_gallery_message); ?>);
|
2044 |
+
jQuery(".ux_div_shortcode").css("display", "none");
|
2045 |
+
} else
|
2046 |
+
{
|
2047 |
+
var source_id = choose_gallery;
|
2048 |
+
var thumbnail_alignment = jQuery("#ux_ddl_alignment").val();
|
2049 |
+
var sort_images_by = jQuery("#ux_ddl_sort_image_by").val();
|
2050 |
+
var order_images_by = jQuery("#ux_ddl_order_images").val();
|
2051 |
+
var lightbox_type = jQuery("#ux_ddl_lightbox_type").val();
|
2052 |
+
var columns = jQuery("#ux_txt_columns").val();
|
2053 |
+
var images_per_page = jQuery("#ux_txt_images_per_page").val();
|
2054 |
+
var gallery_title = jQuery("#ux_ddl_gallery_title").val();
|
2055 |
+
var gallery_description = jQuery("#ux_ddl_gallery_description").val();
|
2056 |
+
var thumbnail_title = jQuery("#ux_ddl_thumbnail_title").val();
|
2057 |
+
var thumbnail_description = jQuery("#ux_ddl_thumbnail_description").val();
|
2058 |
+
var animation_effects = jQuery("#ux_ddl_animation_effect").val();
|
2059 |
+
var special_effects = jQuery("#ux_ddl_special_effects").val();
|
2060 |
+
var filters = jQuery("#ux_ddl_filters").val();
|
2061 |
+
var lazy_load = jQuery("#ux_ddl_lazy_load").val();
|
2062 |
+
var search_box = jQuery("#ux_ddl_search_box").val();
|
2063 |
+
var order_by = jQuery("#ux_ddl_order_by").val();
|
2064 |
+
var page_navigation = jQuery("#ux_ddl_page_navigation").val();
|
2065 |
+
var images_per_page_layout = jQuery("#ux_ddl_page_navigation").val() === "enable" ? "images_per_page=\"" + images_per_page + "\" " : "";
|
2066 |
+
var album_type = "";
|
2067 |
+
var album_title = "";
|
2068 |
+
var album_description = "";
|
2069 |
+
var thumbnail_shortcode = "[gallery_bank source_type=\"gallery\" id=\"" + source_id + "\" layout_type=\"thumbnail_layout\" " + album_type + "alignment=\"" + thumbnail_alignment +
|
2070 |
+
"\" lightbox_type=\"" + lightbox_type + "\" order_images_by=\"" + order_images_by + "\" sort_images_by=\"" + sort_images_by + "\" " + album_title + album_description + "gallery_title=\"" + gallery_title +
|
2071 |
+
"\" gallery_description=\"" + gallery_description + "\" thumbnail_title=\"" + thumbnail_title +
|
2072 |
+
"\" thumbnail_description=\"" + thumbnail_description + "\" filters=\"" + filters + "\" lazy_load=\"" + lazy_load +
|
2073 |
+
"\" search_box=\"" + search_box + "\" order_by=\"" + order_by + "\" columns=\"" + columns +
|
2074 |
+
"\" page_navigation=\"" + page_navigation + "\" " + images_per_page_layout + "animation_effects=\"" + animation_effects + "\" " + "special_effects=\"" + special_effects + "\"][/gallery_bank]";
|
2075 |
+
jQuery(".ux_div_shortcode").css("display", "block");
|
2076 |
+
jQuery(".ux_txtarea_generate_shortcode").html(thumbnail_shortcode);
|
2077 |
+
load_sidebar_content_gallery_bank();
|
2078 |
+
}
|
2079 |
+
}
|
2080 |
+
<?php
|
2081 |
+
}
|
2082 |
+
break;
|
2083 |
+
case "gb_masonry_layout_shortcode" :
|
2084 |
+
?>
|
2085 |
+
jQuery("#ux_li_shortcode_generator").addClass("active");
|
2086 |
+
jQuery("#ux_li_masonry_layout_shortcode").addClass("active");
|
2087 |
+
<?php
|
2088 |
+
if (shortcode_generator_gallery_bank === "1") {
|
2089 |
+
?>
|
2090 |
+
function generate_shortcode_masonry_layout_gallery_bank()
|
2091 |
+
{
|
2092 |
+
var choose_gallery = jQuery("#ux_ddl_choose_gallery").val();
|
2093 |
+
if (choose_gallery === "")
|
2094 |
+
{
|
2095 |
+
var shortCutFunction = jQuery("#toastTypeGroup_error input:checked").val();
|
2096 |
+
toastr[shortCutFunction](<?php echo json_encode($gb_choose_gallery_message); ?>);
|
2097 |
+
jQuery(".ux_div_shortcode").css("display", "none");
|
2098 |
+
} else
|
2099 |
+
{
|
2100 |
+
var source_id = choose_gallery;
|
2101 |
+
var thumbnail_alignment = jQuery("#ux_ddl_alignment").val();
|
2102 |
+
var sort_images_by = jQuery("#ux_ddl_sort_image_by").val();
|
2103 |
+
var order_images_by = jQuery("#ux_ddl_order_images").val();
|
2104 |
+
var lightbox_type = jQuery("#ux_ddl_lightbox_type").val();
|
2105 |
+
var columns = jQuery("#ux_txt_columns").val();
|
2106 |
+
var images_per_page = jQuery("#ux_txt_images_per_page").val();
|
2107 |
+
var gallery_title = jQuery("#ux_ddl_gallery_title").val();
|
2108 |
+
var gallery_description = jQuery("#ux_ddl_gallery_description").val();
|
2109 |
+
var thumbnail_title = jQuery("#ux_ddl_thumbnail_title").val();
|
2110 |
+
var thumbnail_description = jQuery("#ux_ddl_thumbnail_description").val();
|
2111 |
+
var filters = jQuery("#ux_ddl_filters").val();
|
2112 |
+
var lazy_load = jQuery("#ux_ddl_lazy_load").val();
|
2113 |
+
var search_box = jQuery("#ux_ddl_search_box").val();
|
2114 |
+
var order_by = jQuery("#ux_ddl_order_by").val();
|
2115 |
+
var page_navigation = jQuery("#ux_ddl_page_navigation").val();
|
2116 |
+
var animation_effects = jQuery("#ux_ddl_animation_effect").val();
|
2117 |
+
var special_effects = jQuery("#ux_ddl_special_effects").val();
|
2118 |
+
var images_per_page_layout = jQuery("#ux_ddl_page_navigation").val() === "enable" ? "images_per_page=\"" + images_per_page + "\" " : "";
|
2119 |
+
var album_type = "";
|
2120 |
+
var album_title = "";
|
2121 |
+
var album_description = "";
|
2122 |
+
var masonry_shortcode = "[gallery_bank source_type=\"gallery\" id=\"" + source_id + "\" layout_type=\"masonry_layout\" " + album_type +
|
2123 |
+
" alignment=\"" + thumbnail_alignment + "\" lightbox_type=\"" + lightbox_type +
|
2124 |
+
"\" order_images_by=\"" + order_images_by + "\" sort_images_by=\"" + sort_images_by +
|
2125 |
+
"\" " + album_title + album_description + "gallery_title=\"" + gallery_title +
|
2126 |
+
"\" gallery_description=\"" + gallery_description + "\" thumbnail_title=\"" + thumbnail_title +
|
2127 |
+
"\" thumbnail_description=\"" + thumbnail_description + "\" filters=\"" + filters +
|
2128 |
+
"\" lazy_load=\"" + lazy_load + "\" search_box=\"" + search_box +
|
2129 |
+
"\" order_by=\"" + order_by + "\" columns=\"" + columns + "\" page_navigation=\"" + page_navigation +
|
2130 |
+
"\" " + images_per_page_layout + " animation_effects=\"" + animation_effects + "\" " + "special_effects=\"" + special_effects + "\"][/gallery_bank]";
|
2131 |
+
jQuery(".ux_div_shortcode").css("display", "block");
|
2132 |
+
jQuery(".ux_txtarea_generate_shortcode").html(masonry_shortcode);
|
2133 |
+
load_sidebar_content_gallery_bank();
|
2134 |
+
}
|
2135 |
+
}
|
2136 |
+
<?php
|
2137 |
+
}
|
2138 |
+
break;
|
2139 |
+
case "gb_slideshow_layout_shortcode" :
|
2140 |
+
?>
|
2141 |
+
jQuery("#ux_li_shortcode_generator").addClass("active");
|
2142 |
+
jQuery("#ux_li_slideshow_layout_shortcode").addClass("active");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2143 |
|
2144 |
+
<?php
|
2145 |
+
if (shortcode_generator_gallery_bank === "1") {
|
2146 |
+
?>
|
2147 |
+
jQuery(document).ready(function ()
|
2148 |
+
{
|
2149 |
+
shortcode_source_type_control_gallery_bank("ux_ddl_choose_type", "ux_div_gallery", "ux_div_album", "ux_div_album_control");
|
2150 |
+
});
|
2151 |
+
jQuery("#ux_ddl_autoplay").change(function () {
|
2152 |
+
var auto_play = jQuery("#ux_ddl_autoplay").val();
|
2153 |
+
if (auto_play === "no") {
|
2154 |
+
jQuery("#ux_div_time_interval").css("display", "none");
|
2155 |
+
} else {
|
2156 |
+
jQuery("#ux_div_time_interval").css("display", "block");
|
2157 |
+
}
|
2158 |
+
});
|
2159 |
+
<?php
|
2160 |
+
}
|
2161 |
+
break;
|
2162 |
+
case "gb_image_browser_layout_shortcode" :
|
2163 |
+
?>
|
2164 |
+
jQuery("#ux_li_shortcode_generator").addClass("active");
|
2165 |
+
jQuery("#ux_li_image_browser_layout_shortcode").addClass("active");
|
2166 |
+
<?php
|
2167 |
+
if (shortcode_generator_gallery_bank === "1") {
|
2168 |
+
?>
|
2169 |
+
jQuery(document).ready(function ()
|
2170 |
+
{
|
2171 |
+
shortcode_source_type_control_gallery_bank("ux_ddl_choose_type", "ux_div_gallery", "ux_div_album", "ux_div_album_control");
|
2172 |
+
});
|
2173 |
+
<?php
|
2174 |
+
}
|
2175 |
+
break;
|
2176 |
+
case "gb_justified_grid_layout_shortcode" :
|
2177 |
+
?>
|
2178 |
+
jQuery("#ux_li_shortcode_generator").addClass("active");
|
2179 |
+
jQuery("#ux_li_justified_grid_layout_shortcode").addClass("active");
|
2180 |
+
<?php
|
2181 |
+
if (shortcode_generator_gallery_bank === "1") {
|
2182 |
+
?>
|
2183 |
+
jQuery(document).ready(function ()
|
2184 |
+
{
|
2185 |
+
shortcode_source_type_control_gallery_bank("ux_ddl_choose_type", "ux_div_gallery", "ux_div_album", "ux_div_show_hide_album");
|
2186 |
+
});
|
2187 |
+
<?php
|
2188 |
+
}
|
2189 |
+
break;
|
2190 |
+
case "gb_blog_style_layout_shortcode" :
|
2191 |
+
?>
|
2192 |
+
jQuery("#ux_li_shortcode_generator").addClass("active");
|
2193 |
+
jQuery("#ux_li_blog_style_layout_shortcode").addClass("active");
|
2194 |
+
<?php
|
2195 |
+
if (shortcode_generator_gallery_bank === "1") {
|
2196 |
+
?>
|
2197 |
+
jQuery(document).ready(function ()
|
2198 |
+
{
|
2199 |
+
shortcode_source_type_control_gallery_bank("ux_ddl_choose_type", "ux_div_gallery", "ux_div_album", "ux_div_show_hide_album");
|
2200 |
+
});
|
2201 |
+
<?php
|
2202 |
+
}
|
2203 |
+
break;
|
2204 |
+
case "gb_other_settings" :
|
2205 |
+
?>
|
2206 |
+
jQuery("#ux_li_other_setting").addClass("active");
|
2207 |
+
<?php
|
2208 |
+
if (other_settings_gallery_bank === "1") {
|
2209 |
+
?>
|
2210 |
+
jQuery(document).ready(function () {
|
2211 |
+
jQuery("#ux_ddl_remove_table").val("<?php echo isset($details_other_setting["remove_table_at_uninstall"]) ? $details_other_setting["remove_table_at_uninstall"] : "disable"; ?>");
|
2212 |
+
});
|
2213 |
+
jQuery("#ux_frm_other_setting").validate({
|
2214 |
+
submitHandler: function () {
|
2215 |
+
submit_handler_common_gallery_bank("#ux_frm_other_setting", "", "other_settings_module", "<?php echo $other_settings_nonce; ?>", <?php echo json_encode($gb_update_other_settings_data); ?>, "gb_other_settings");
|
2216 |
+
}
|
2217 |
+
});
|
2218 |
|
2219 |
+
<?php
|
2220 |
+
}
|
2221 |
+
break;
|
2222 |
+
case "gb_roles_and_capabilities":
|
2223 |
+
?>
|
2224 |
+
jQuery("#ux_li_roles_capabilities").addClass("active");
|
2225 |
+
<?php
|
2226 |
+
if (roles_and_capabilities_gallery_bank === "1") {
|
2227 |
+
?>
|
2228 |
+
function show_roles_capabilities_gallery_bank(id, div_id) {
|
2229 |
+
jQuery(id).prop("checked") ? jQuery("#" + div_id).css("display", "block") : jQuery("#" + div_id).css("display", "none");
|
2230 |
+
load_sidebar_content_gallery_bank();
|
2231 |
+
}
|
2232 |
+
function full_control_function_gallery_bank(id, div_id) {
|
2233 |
+
var checkbox_id = jQuery(id).prop("checked");
|
2234 |
+
jQuery("#" + div_id + " input[type=checkbox]").each(function () {
|
2235 |
+
if (checkbox_id) {
|
2236 |
+
jQuery(this).attr("checked", "checked");
|
2237 |
+
if (jQuery(id).attr("id") !== jQuery(this).attr("id")) {
|
2238 |
+
jQuery(this).attr("disabled", "disabled");
|
2239 |
+
}
|
2240 |
+
} else {
|
2241 |
+
if (jQuery(id).attr("id") !== jQuery(this).attr("id")) {
|
2242 |
+
jQuery(this).removeAttr("disabled");
|
2243 |
+
jQuery("#ux_chk_other_capabilities_manage_options,#ux_chk_other_capabilities_read").attr("disabled", "disabled");
|
2244 |
+
}
|
2245 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2246 |
});
|
2247 |
+
}
|
2248 |
+
jQuery(document).ready(function () {
|
2249 |
+
jQuery("#ux_ddl_gallery_bank_menu").val("<?php echo isset($details_roles_capabilities["show_gallery_bank_top_bar_menu"]) ? $details_roles_capabilities["show_gallery_bank_top_bar_menu"] : "enable"; ?>");
|
2250 |
+
full_control_function_gallery_bank("#ux_chk_full_control_administrator", "ux_div_administrator_roles");
|
2251 |
+
show_roles_capabilities_gallery_bank("#ux_chk_author", "ux_div_author_roles");
|
2252 |
+
full_control_function_gallery_bank("#ux_chk_full_control_author", "ux_div_author_roles");
|
2253 |
+
show_roles_capabilities_gallery_bank("#ux_chk_editor", "ux_div_editor_roles");
|
2254 |
+
full_control_function_gallery_bank("#ux_chk_full_control_editor", "ux_div_editor_roles");
|
2255 |
+
show_roles_capabilities_gallery_bank("#ux_chk_contributor", "ux_div_contributor_roles");
|
2256 |
+
full_control_function_gallery_bank("#ux_chk_full_control_contributor", "ux_div_contributor_roles");
|
2257 |
+
show_roles_capabilities_gallery_bank("#ux_chk_subscriber", "ux_div_subscriber_roles");
|
2258 |
+
full_control_function_gallery_bank("#ux_chk_full_control_subscriber", "ux_div_subscriber_roles");
|
2259 |
+
show_roles_capabilities_gallery_bank("#ux_chk_others_privileges", "ux_div_other_privileges_roles");
|
2260 |
+
full_control_function_gallery_bank("#ux_chk_full_control_others", "ux_div_other_privileges_roles");
|
2261 |
+
});
|
2262 |
+
jQuery("#ux_frm_roles_and_capabilities").validate({
|
2263 |
+
submitHandler: function () {
|
2264 |
+
premium_edition_notification_gallery_bank();
|
2265 |
+
}
|
2266 |
+
});
|
2267 |
+
<?php
|
2268 |
+
}
|
2269 |
+
break;
|
2270 |
+
case "gb_feature_requests" :
|
2271 |
+
?>
|
2272 |
+
jQuery("#ux_li_feature_requests").addClass("active");
|
2273 |
+
jQuery("#ux_li_feature_requests").addClass("active");
|
2274 |
+
var feature_request_array = [];
|
2275 |
+
var frm_feature_request = jQuery("#ux_frm_feature_requests");
|
2276 |
+
var url = "<?php echo tech_banker_url . "/feedbacks.php"; ?>";
|
2277 |
+
var domain_url = "<?php echo site_url(); ?>";
|
2278 |
+
frm_feature_request.validate({
|
2279 |
+
rules: {
|
2280 |
+
ux_txt_your_name: {
|
2281 |
+
required: true
|
2282 |
+
},
|
2283 |
+
ux_txt_email_address: {
|
2284 |
+
required: true,
|
2285 |
+
email: true
|
2286 |
+
},
|
2287 |
+
ux_txtarea_feature_request: {
|
2288 |
+
required: true
|
2289 |
+
}
|
2290 |
+
},
|
2291 |
+
errorPlacement: function (error, element) {
|
2292 |
+
},
|
2293 |
+
highlight: function (element) {
|
2294 |
+
jQuery(element).closest(".form-group").removeClass("has-success").addClass("has-error");
|
2295 |
+
},
|
2296 |
+
success: function (label, element) {
|
2297 |
+
jQuery(element).closest(".form-group").removeClass("has-error").addClass("has-success");
|
2298 |
+
},
|
2299 |
+
submitHandler: function () {
|
2300 |
+
feature_request_array.push(jQuery("#ux_txt_your_name").val(), jQuery("#ux_txt_email_address").val(), domain_url, jQuery("#ux_txtarea_feature_request").val());
|
2301 |
+
overlay_loading_gallery_bank(<?php echo json_encode($gb_feature_requests_update); ?>);
|
2302 |
+
jQuery.post(url, {
|
2303 |
+
data: JSON.stringify(feature_request_array),
|
2304 |
+
param: "gb_feature_requests"
|
2305 |
+
},
|
2306 |
+
function () {
|
2307 |
+
setTimeout(function () {
|
2308 |
+
remove_overlay_gallery_bank();
|
2309 |
+
window.location.reload();
|
2310 |
+
}, 3000);
|
2311 |
});
|
2312 |
+
}
|
2313 |
+
});
|
2314 |
+
<?php
|
2315 |
+
break;
|
2316 |
+
case "gb_system_information" :
|
2317 |
+
?>
|
2318 |
+
jQuery("#ux_li_system_information").addClass("active");
|
2319 |
+
<?php
|
2320 |
+
if (system_information_gallery_bank === "1") {
|
2321 |
+
?>
|
2322 |
+
jQuery.getSystemReport = function (strDefault, stringCount, string, location) {
|
2323 |
+
var o = strDefault.toString();
|
2324 |
+
if (!string) {
|
2325 |
+
string = "0";
|
2326 |
+
}
|
2327 |
+
while (o.length < stringCount) {
|
2328 |
+
if (location === "undefined") {
|
2329 |
+
o = string + o;
|
2330 |
+
} else {
|
2331 |
+
o = o + string;
|
2332 |
+
}
|
2333 |
+
}
|
2334 |
+
return o;
|
2335 |
+
};
|
2336 |
+
jQuery(".system-report").click(function () {
|
2337 |
+
var report = "";
|
2338 |
+
jQuery(".custom-form-body").each(function () {
|
2339 |
+
jQuery("h3.form-section", jQuery(this)).each(function () {
|
2340 |
+
report = report + "\n### " + jQuery.trim(jQuery(this).text()) + " ###\n\n";
|
2341 |
+
});
|
2342 |
+
jQuery("tbody > tr", jQuery(this)).each(function () {
|
2343 |
+
var the_name = jQuery.getSystemReport(jQuery.trim(jQuery(this).find("strong").text()), 25, " ");
|
2344 |
+
var the_value = jQuery.trim(jQuery(this).find("span").text());
|
2345 |
+
var value_array = the_value.split(", ");
|
2346 |
+
if (value_array.length > 1) {
|
2347 |
+
var temp_line = "";
|
2348 |
+
jQuery.each(value_array, function (key, line) {
|
2349 |
+
var tab = (key === 0) ? 0 : 25;
|
2350 |
+
temp_line = temp_line + jQuery.getSystemReport("", tab, " ", "f") + line + "\n";
|
2351 |
+
});
|
2352 |
+
the_value = temp_line;
|
2353 |
+
}
|
2354 |
+
report = report + "" + the_name + the_value + "\n";
|
2355 |
+
});
|
2356 |
+
});
|
2357 |
+
try {
|
2358 |
+
jQuery("#ux_system_information").slideDown();
|
2359 |
+
jQuery("#ux_system_information textarea").val(report).focus().select();
|
2360 |
+
return false;
|
2361 |
+
} catch (e) {
|
2362 |
+
}
|
2363 |
+
return false;
|
2364 |
+
});
|
2365 |
+
jQuery("#ux_btn_system_information").click(function () {
|
2366 |
+
if (jQuery("#ux_btn_system_information").text() === "Close System Information!") {
|
2367 |
+
jQuery("#ux_system_information").slideUp();
|
2368 |
+
jQuery("#ux_btn_system_information").html("Get System Information!");
|
2369 |
+
} else {
|
2370 |
+
jQuery("#ux_btn_system_information").html("Close System Information!");
|
2371 |
+
jQuery("#ux_btn_system_information").removeClass("system-information");
|
2372 |
+
jQuery("#ux_btn_system_information").addClass("close-information");
|
2373 |
+
}
|
2374 |
+
});
|
2375 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
2376 |
+
setTimeout(function () {
|
2377 |
+
clearInterval(sidebar_load_interval);
|
2378 |
+
}, 5000);
|
2379 |
+
<?php
|
2380 |
+
}
|
2381 |
+
break;
|
2382 |
+
case "gb_upgrade" :
|
2383 |
+
?>
|
2384 |
+
jQuery("#ux_li_upgrade").addClass("active");
|
2385 |
+
var sidebar_load_interval = setInterval(load_sidebar_content_gallery_bank, 1000);
|
2386 |
+
setTimeout(function () {
|
2387 |
+
clearInterval(sidebar_load_interval);
|
2388 |
+
}, 5000);
|
2389 |
+
<?php
|
2390 |
+
break;
|
2391 |
+
}
|
2392 |
+
}
|
2393 |
+
?>
|
2394 |
+
</script>
|
2395 |
+
<?php
|
2396 |
+
}
|
2397 |
}
|
includes/translations.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?php
|
2 |
/**
|
3 |
* This file is used for translating strings.
|
4 |
*
|
@@ -22,7 +22,7 @@ if (!is_user_logged_in()) {
|
|
22 |
if (!$access_granted) {
|
23 |
return;
|
24 |
} else {
|
25 |
-
|
26 |
$wp_langs["af"] = "Afrikaans";
|
27 |
$wp_langs["ak"] = "Akan";
|
28 |
$wp_langs["sq"] = "Shqip";
|
@@ -266,12 +266,12 @@ if (!is_user_logged_in()) {
|
|
266 |
$gb_premium_label = __(" Premium ", "gallery-bank");
|
267 |
$gb_documentation = __("Documentation", "gallery-bank");
|
268 |
$gb_read_and_check = __(" or check our ", "gallery-bank");
|
269 |
-
$gb_demos_section = __("Demos
|
270 |
$gb_role_capabilities_upgrade_message = __("By upgrading to Gallery Bank Pro, you can set Roles and Capabilities for your plugin. You can restrict access to selected roles only", "gallery-bank");
|
271 |
$gb_take_lightbox_further = __("Want even more fine tuned control over your Lightbox display?", "gallery-bank");
|
272 |
$gb_lightbox_upgrade_message = __("By upgrading to Gallery Bank Pro, you can get access to numerous other lightbox features, including: custom lightbox titles, enable/disable lightbox controls (arrow, keyboard and mousehweel navigation), custom lightbox transition effects, native fullscreen support, gallery deeplinking, image protection, lightbox slideshows and so much more!", "gallery-bank");
|
273 |
$gb_take_galleries_further = __("Want to take your galleries further?", "gallery-bank");
|
274 |
-
$gb_galleries_upgrade_message = __("By upgrading to Gallery Bank
|
275 |
$gb_tags_upgrade_message = __("By upgrading to Gallery Bank Pro, you can add Tags to your Gallery images, allow users to filter your Gallery by tag and so much more!", "gallery-bank");
|
276 |
$gb_albums_upgrade_message = __("By upgrading to Gallery Bank Pro, you can add multiple galleries to an album and then display the album using a shortcode on your page/post", "gallery-bank");
|
277 |
$gb_layouts_upgrade_message = __("By upgrading to Gallery Bank Pro, you can customize your layouts as per your website needs. Create stunning and beautiful galleries using Layout Settings.", "gallery-bank");
|
@@ -539,7 +539,7 @@ if (!is_user_logged_in()) {
|
|
539 |
$gb_album_button_color_placeholder = __("Please provide Button Background Color ", "gallery-bank");
|
540 |
$gb_album_button_hover_color_placeholder = __("Please provide Button Hover Color ", "gallery-bank");
|
541 |
$gb_layout_settings_alignment_tooltip = __("In this field, you would need to choose Alignment. It could be either Left, Center, Right or Justify", "gallery-bank");
|
542 |
-
|
543 |
// Manage Galleries
|
544 |
$gb_manage_galleries_delete_gallery = __("Delete Galleries", "gallery-bank");
|
545 |
$gb_manage_galleries_duplicate_gallery = __("Duplicate Galleries", "gallery-bank");
|
@@ -659,10 +659,10 @@ if (!is_user_logged_in()) {
|
|
659 |
$gb_purge_galleries_data = __("Galleries have been Purged Successfully", "gallery-bank");
|
660 |
$gb_gallery_delete_data = __("Gallery has been deleted Successfully", "gallery-bank");
|
661 |
$gb_update_gallery = __("Edit Gallery", "gallery-bank");
|
662 |
-
|
663 |
$gb_add_gallery_upload_from_ftp = __("Upload From FTP", "gallery-bank");
|
664 |
$gb_add_gallery_select_folder_import = __("Select a folder to Import", "gallery-bank");
|
665 |
-
$gb_add_gallery_directory_path_placeholder= __("Enter the directory path to import images", "gallery-bank");
|
666 |
$gb_add_gallery_import_images = __("Import Images", "gallery-bank");
|
667 |
$gb_add_gallery_choose_folder = __("Please choose a Folder !", "gallery-bank");
|
668 |
|
@@ -1233,6 +1233,5 @@ if (!is_user_logged_in()) {
|
|
1233 |
$gb_feature_requests_placeholder = __("Please provide your Feature Request", "gallery-bank");
|
1234 |
$gb_feature_requests_send_request = __("Send Request", "gallery-bank");
|
1235 |
$gb_feature_requests_update = __("Your request Email has been sent Successfully", "gallery-bank");
|
1236 |
-
|
1237 |
}
|
1238 |
}
|
1 |
+
<?php
|
2 |
/**
|
3 |
* This file is used for translating strings.
|
4 |
*
|
22 |
if (!$access_granted) {
|
23 |
return;
|
24 |
} else {
|
25 |
+
$wp_langs = array();
|
26 |
$wp_langs["af"] = "Afrikaans";
|
27 |
$wp_langs["ak"] = "Akan";
|
28 |
$wp_langs["sq"] = "Shqip";
|
266 |
$gb_premium_label = __(" Premium ", "gallery-bank");
|
267 |
$gb_documentation = __("Documentation", "gallery-bank");
|
268 |
$gb_read_and_check = __(" or check our ", "gallery-bank");
|
269 |
+
$gb_demos_section = __("Online Demos", "gallery-bank");
|
270 |
$gb_role_capabilities_upgrade_message = __("By upgrading to Gallery Bank Pro, you can set Roles and Capabilities for your plugin. You can restrict access to selected roles only", "gallery-bank");
|
271 |
$gb_take_lightbox_further = __("Want even more fine tuned control over your Lightbox display?", "gallery-bank");
|
272 |
$gb_lightbox_upgrade_message = __("By upgrading to Gallery Bank Pro, you can get access to numerous other lightbox features, including: custom lightbox titles, enable/disable lightbox controls (arrow, keyboard and mousehweel navigation), custom lightbox transition effects, native fullscreen support, gallery deeplinking, image protection, lightbox slideshows and so much more!", "gallery-bank");
|
273 |
$gb_take_galleries_further = __("Want to take your galleries further?", "gallery-bank");
|
274 |
+
$gb_galleries_upgrade_message = __("By upgrading to Gallery Bank Pro, you can edit your images, rotate, flip, restore, copy, move, crop and provide special effects, watermarks and make them SEO friendly.", "gallery-bank");
|
275 |
$gb_tags_upgrade_message = __("By upgrading to Gallery Bank Pro, you can add Tags to your Gallery images, allow users to filter your Gallery by tag and so much more!", "gallery-bank");
|
276 |
$gb_albums_upgrade_message = __("By upgrading to Gallery Bank Pro, you can add multiple galleries to an album and then display the album using a shortcode on your page/post", "gallery-bank");
|
277 |
$gb_layouts_upgrade_message = __("By upgrading to Gallery Bank Pro, you can customize your layouts as per your website needs. Create stunning and beautiful galleries using Layout Settings.", "gallery-bank");
|
539 |
$gb_album_button_color_placeholder = __("Please provide Button Background Color ", "gallery-bank");
|
540 |
$gb_album_button_hover_color_placeholder = __("Please provide Button Hover Color ", "gallery-bank");
|
541 |
$gb_layout_settings_alignment_tooltip = __("In this field, you would need to choose Alignment. It could be either Left, Center, Right or Justify", "gallery-bank");
|
542 |
+
|
543 |
// Manage Galleries
|
544 |
$gb_manage_galleries_delete_gallery = __("Delete Galleries", "gallery-bank");
|
545 |
$gb_manage_galleries_duplicate_gallery = __("Duplicate Galleries", "gallery-bank");
|
659 |
$gb_purge_galleries_data = __("Galleries have been Purged Successfully", "gallery-bank");
|
660 |
$gb_gallery_delete_data = __("Gallery has been deleted Successfully", "gallery-bank");
|
661 |
$gb_update_gallery = __("Edit Gallery", "gallery-bank");
|
662 |
+
|
663 |
$gb_add_gallery_upload_from_ftp = __("Upload From FTP", "gallery-bank");
|
664 |
$gb_add_gallery_select_folder_import = __("Select a folder to Import", "gallery-bank");
|
665 |
+
$gb_add_gallery_directory_path_placeholder = __("Enter the directory path to import images", "gallery-bank");
|
666 |
$gb_add_gallery_import_images = __("Import Images", "gallery-bank");
|
667 |
$gb_add_gallery_choose_folder = __("Please choose a Folder !", "gallery-bank");
|
668 |
|
1233 |
$gb_feature_requests_placeholder = __("Please provide your Feature Request", "gallery-bank");
|
1234 |
$gb_feature_requests_send_request = __("Send Request", "gallery-bank");
|
1235 |
$gb_feature_requests_update = __("Your request Email has been sent Successfully", "gallery-bank");
|
|
|
1236 |
}
|
1237 |
}
|
lib/action-library.php
CHANGED
@@ -347,7 +347,7 @@ if (!is_user_logged_in()) {
|
|
347 |
case "manage_gallery_module":
|
348 |
if (wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "gb_manage_gallery_nonce")) {
|
349 |
$gallery_id = isset($_REQUEST["meta_id"]) ? intval($_REQUEST["meta_id"]) : "";
|
350 |
-
|
351 |
$delete_gallery = array();
|
352 |
$delete_gallery_parent = array();
|
353 |
$delete_gallery["meta_id"] = $gallery_id;
|
347 |
case "manage_gallery_module":
|
348 |
if (wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "gb_manage_gallery_nonce")) {
|
349 |
$gallery_id = isset($_REQUEST["meta_id"]) ? intval($_REQUEST["meta_id"]) : "";
|
350 |
+
|
351 |
$delete_gallery = array();
|
352 |
$delete_gallery_parent = array();
|
353 |
$delete_gallery["meta_id"] = $gallery_id;
|
lib/ftp-directories.php
CHANGED
@@ -21,37 +21,34 @@ if (!is_user_logged_in()) {
|
|
21 |
}
|
22 |
if (!$access_granted) {
|
23 |
return;
|
24 |
-
}
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
if( file_exists($root . $dir) ) {
|
32 |
-
$files = scandir($root . $dir);
|
33 |
-
natcasesort($files);
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
|
39 |
-
|
40 |
-
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
}
|
57 |
|
21 |
}
|
22 |
if (!$access_granted) {
|
23 |
return;
|
24 |
+
} else {
|
25 |
+
if ((wp_verify_nonce($_REQUEST["_wp_nonce"], "ftp_upload")) && ($_REQUEST["param"] == "get_ftp_directories")) {
|
26 |
+
$root = rtrim(ABSPATH . "wp-content", "\\/");
|
27 |
+
$dir = urldecode($_POST['dir']);
|
28 |
+
if (file_exists($root . $dir)) {
|
29 |
+
$files = scandir($root . $dir);
|
30 |
+
natcasesort($files);
|
|
|
|
|
|
|
31 |
|
32 |
+
// The 2 counts for . and ..
|
33 |
+
if (count($files) > 2) {
|
34 |
+
echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">";
|
35 |
|
36 |
+
// return only directories
|
37 |
+
foreach ($files as $file) {
|
38 |
|
39 |
+
//reserved name for the thumnbnails, don't use it as folder name
|
40 |
+
if ($file == 'thumbs')
|
41 |
+
continue;
|
42 |
|
43 |
+
if (file_exists($root . $dir . $file) && $file != '.' && $file != '..' && is_dir($root . $dir . $file)) {
|
44 |
+
echo "<li class=\"directory collapsed\"><a href=\"#\" rel=\"" . esc_html($dir . $file) . "/\">" . esc_html($file) . "</a></li>";
|
45 |
+
}
|
46 |
+
}
|
47 |
+
echo "</ul>";
|
48 |
+
}
|
49 |
+
}
|
50 |
+
die();
|
51 |
+
}
|
52 |
+
}
|
53 |
}
|
54 |
|
lib/helper.php
CHANGED
@@ -86,7 +86,7 @@ if (!is_user_logged_in()) {
|
|
86 |
Created On: 13-06-2017 10:07
|
87 |
Created By: Tech Banker Team
|
88 |
*/
|
89 |
-
class plugin_info_gallery_bank {
|
90 |
/*
|
91 |
Function Name: get_plugin_info_gallery_bank
|
92 |
Parameters: No
|
@@ -118,34 +118,28 @@ if (!is_user_logged_in()) {
|
|
118 |
$uploaded_images = array();
|
119 |
class image_process_gallery_bank {
|
120 |
/*
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
function fetch_folder_files($dir)
|
128 |
-
{
|
129 |
global $uploaded_images;
|
130 |
$folder_files = scandir($dir);
|
131 |
-
foreach($folder_files as $folder_file)
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
$path = $dir."/".$folder_file;
|
142 |
-
array_push($uploaded_images,$path);
|
143 |
-
}
|
144 |
-
}
|
145 |
}
|
146 |
return $uploaded_images;
|
147 |
}
|
148 |
-
|
149 |
function copy_images_gallery_bank($src, $destination) {
|
150 |
$ch = curl_init();
|
151 |
curl_setopt($ch, CURLOPT_URL, $src);
|
@@ -202,7 +196,6 @@ if (!is_user_logged_in()) {
|
|
202 |
}
|
203 |
return $meta_data_array;
|
204 |
}
|
205 |
-
|
206 |
function generate_thumbs_edited_image_gallery_bank($fileName, $thumb_dimension) {
|
207 |
if (function_exists("wp_get_image_editor")) {
|
208 |
$image = wp_get_image_editor(GALLERY_BANK_ORIGINAL_DIR . $fileName);
|
86 |
Created On: 13-06-2017 10:07
|
87 |
Created By: Tech Banker Team
|
88 |
*/
|
89 |
+
class plugin_info_gallery_bank {
|
90 |
/*
|
91 |
Function Name: get_plugin_info_gallery_bank
|
92 |
Parameters: No
|
118 |
$uploaded_images = array();
|
119 |
class image_process_gallery_bank {
|
120 |
/*
|
121 |
+
Function Name: fetch_folder_files
|
122 |
+
Parameters: Yes($dir)
|
123 |
+
Decription: This function is being used to fetch images in the Directory.
|
124 |
+
Created On: 23-06-2017 10:07
|
125 |
+
Created By: Tech Banker Team
|
126 |
+
*/
|
127 |
+
function fetch_folder_files($dir) {
|
|
|
128 |
global $uploaded_images;
|
129 |
$folder_files = scandir($dir);
|
130 |
+
foreach ($folder_files as $folder_file) {
|
131 |
+
if ($folder_file != "." && $folder_file != "..") {
|
132 |
+
if (is_dir($dir . "/" . $folder_file)) {
|
133 |
+
$this->fetch_folder_files($dir . "/" . $folder_file);
|
134 |
+
}
|
135 |
+
if (is_file($dir . "/" . $folder_file)) {
|
136 |
+
$path = $dir . "/" . $folder_file;
|
137 |
+
array_push($uploaded_images, $path);
|
138 |
+
}
|
139 |
+
}
|
|
|
|
|
|
|
|
|
140 |
}
|
141 |
return $uploaded_images;
|
142 |
}
|
|
|
143 |
function copy_images_gallery_bank($src, $destination) {
|
144 |
$ch = curl_init();
|
145 |
curl_setopt($ch, CURLOPT_URL, $src);
|
196 |
}
|
197 |
return $meta_data_array;
|
198 |
}
|
|
|
199 |
function generate_thumbs_edited_image_gallery_bank($fileName, $thumb_dimension) {
|
200 |
if (function_exists("wp_get_image_editor")) {
|
201 |
$image = wp_get_image_editor(GALLERY_BANK_ORIGINAL_DIR . $fileName);
|
lib/install-script.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* This file is used for creating table.
|
4 |
*
|
@@ -7,125 +8,147 @@
|
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
-
|
11 |
} // Exit if accessed directly
|
12 |
if (!is_user_logged_in()) {
|
13 |
-
|
14 |
} else {
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
94 |
WHERE " . gallery_bank_meta() . ".meta_key = %s", "global_options_settings"
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
(
|
130 |
`id` int(10) NOT NULL AUTO_INCREMENT,
|
131 |
`type` longtext NOT NULL,
|
@@ -133,9 +156,9 @@ if (!is_user_logged_in()) {
|
|
133 |
PRIMARY KEY (`id`)
|
134 |
)
|
135 |
ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1";
|
136 |
-
|
137 |
|
138 |
-
|
139 |
('galleries', 0),
|
140 |
('albums',0),
|
141 |
('tags', 0),
|
@@ -144,19 +167,25 @@ if (!is_user_logged_in()) {
|
|
144 |
('general_settings', 0),
|
145 |
('other_settings', 0),
|
146 |
('roles_and_capabilities_settings', 0)";
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
(
|
161 |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
162 |
`meta_id` int(10) NOT NULL,
|
@@ -166,975 +195,883 @@ if (!is_user_logged_in()) {
|
|
166 |
PRIMARY KEY (`id`)
|
167 |
)
|
168 |
ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1";
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
}
|
1028 |
-
$obj_dbHelper_gallery_bank = new dbHelper_install_script_gallery_bank();
|
1029 |
-
switch ($gallery_bank_version_number) {
|
1030 |
-
case "":
|
1031 |
-
table_gallery_bank();
|
1032 |
-
table_gallery_bank_meta();
|
1033 |
-
|
1034 |
-
global $wpdb, $current_user;
|
1035 |
-
$count_gallery = $wpdb->get_var
|
1036 |
-
(
|
1037 |
-
$wpdb->prepare
|
1038 |
-
(
|
1039 |
-
"SELECT count(id) FROM " . gallery_bank_parent() . " WHERE " . gallery_bank_parent() . ". type = %s", "gallery"
|
1040 |
-
)
|
1041 |
-
);
|
1042 |
-
if ($count_gallery == 0) {
|
1043 |
-
$gallery_parent_id = get_parent_id_gallery_bank("galleries");
|
1044 |
-
$insert_gallery = array();
|
1045 |
-
$insert_gallery["type"] = "gallery";
|
1046 |
-
$insert_gallery["parent_id"] = $gallery_parent_id;
|
1047 |
-
$gallery_id = $obj_dbHelper_gallery_bank->insertCommand(gallery_bank_parent(), $insert_gallery);
|
1048 |
-
|
1049 |
-
$insert_gallery_meta = array();
|
1050 |
-
$insert_gallery_meta["gallery_title"] = "Be happy for this moment. This moment is your life.";
|
1051 |
-
$insert_gallery_meta["gallery_description"] = "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.</p>";
|
1052 |
-
$insert_gallery_meta["created_date"] = time();
|
1053 |
-
$insert_gallery_meta["edited_on"] = time();
|
1054 |
-
$insert_gallery_meta["gallery_cover_image"] = "demo2.jpg";
|
1055 |
-
$insert_gallery_meta["edited_by"] = $current_user->display_name;
|
1056 |
-
$insert_gallery_meta["author"] = $current_user->display_name;
|
1057 |
-
|
1058 |
-
$insert_gallery_data = array();
|
1059 |
-
$insert_gallery_data["meta_id"] = $gallery_id;
|
1060 |
-
$insert_gallery_data["meta_key"] = "gallery_data";
|
1061 |
-
$insert_gallery_data["meta_value"] = serialize($insert_gallery_meta);
|
1062 |
-
$obj_dbHelper_gallery_bank->insertCommand(gallery_bank_meta(), $insert_gallery_data);
|
1063 |
-
|
1064 |
-
|
1065 |
-
$image_meta_data = array();
|
1066 |
-
|
1067 |
-
$images = array("demo1.jpg", "demo2.jpg", "demo3.jpg", "after.jpg", "bg-app.jpg", "demo1.jpg", "demo2.jpg", "demo3.jpg", "after.jpg", "bg-app.jpg", "demo1.jpg", "demo2.jpg", "demo3.jpg", "after.jpg", "bg-app.jpg", "demo1.jpg", "demo2.jpg", "demo3.jpg", "after.jpg", "bg-app.jpg");
|
1068 |
-
for ($flag = 0; $flag < count($images); $flag++) {
|
1069 |
-
$image_name = $images[$flag];
|
1070 |
-
|
1071 |
-
$image_data = get_thumbnail_dimension_gallery_bank();
|
1072 |
-
$fileName = wp_unique_filename(GALLERY_BANK_ORIGINAL_DIR, $image_name);
|
1073 |
-
|
1074 |
-
$src_file = GALLERY_BANK_PLUGIN_DIR_URL . "/assets/admin/images/" . $image_name;
|
1075 |
-
copy($src_file, GALLERY_BANK_ORIGINAL_DIR . $fileName);
|
1076 |
-
copy($src_file, GALLERY_BANK_UPLOAD_DIR . $fileName);
|
1077 |
-
|
1078 |
-
$thumbnail_image_name = $obj_dbHelper_gallery_bank->createThumbs_gallery_bank($image_name, $image_data);
|
1079 |
-
$image_exif_detail = $obj_dbHelper_gallery_bank->file_exif_information_gallery_bank(GALLERY_BANK_UPLOAD_DIR . $image_name, "FILE");
|
1080 |
-
|
1081 |
-
$image_meta_data["image_title"] = "Demo Image";
|
1082 |
-
$image_meta_data["image_name"] = $fileName;
|
1083 |
-
|
1084 |
-
$image_meta_data["enable_redirect"] = "";
|
1085 |
-
$image_meta_data["redirect_url"] = "http://";
|
1086 |
-
if ($flag === 1) {
|
1087 |
-
$image_meta_data["gallery_cover_image"] = "1";
|
1088 |
-
} else {
|
1089 |
-
$image_meta_data["gallery_cover_image"] = "";
|
1090 |
-
}
|
1091 |
-
$image_meta_data["width"] = intval($image_exif_detail["width"]);
|
1092 |
-
$image_meta_data["height"] = intval($image_exif_detail["height"]);
|
1093 |
-
$image_meta_data["mime_type"] = esc_attr($image_exif_detail["mime_type"]);
|
1094 |
-
$image_meta_data["aperture"] = esc_attr($image_exif_detail["exif_information"]["aperture"]);
|
1095 |
-
$image_meta_data["upload_type"] = "";
|
1096 |
-
|
1097 |
-
$image_meta_data["image_description"] = "";
|
1098 |
-
$image_meta_data["alt_text"] = "";
|
1099 |
-
$image_meta_data["sort_order"] = "";
|
1100 |
-
$image_meta_data["tags"] = array();
|
1101 |
-
$image_meta_data["upload_date"] = time();
|
1102 |
-
$image_meta_data["file_type"] = "image";
|
1103 |
-
$image_meta_data["exclude_image"] = "";
|
1104 |
-
$image_meta_data_insert = array();
|
1105 |
-
$image_meta_data_insert["meta_id"] = $gallery_id;
|
1106 |
-
$image_meta_data_insert["meta_key"] = "image_data";
|
1107 |
-
$image_meta_data_insert["meta_value"] = serialize($image_meta_data);
|
1108 |
-
$image_id = $obj_dbHelper_gallery_bank->insertCommand(gallery_bank_meta(), $image_meta_data_insert);
|
1109 |
-
}
|
1110 |
}
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
|
|
1116 |
table_gallery_bank();
|
1117 |
table_gallery_bank_meta();
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
|
|
1125 |
);
|
1126 |
-
|
1127 |
-
$gallery_meta_data_unserialized_data = array();
|
1128 |
-
foreach ($array as $key => $val) {
|
1129 |
-
if ($val->album_id == $id) {
|
1130 |
-
array_push($gallery_meta_data_unserialized_data, $val);
|
1131 |
-
}
|
1132 |
-
}
|
1133 |
-
return $gallery_meta_data_unserialized_data;
|
1134 |
-
}
|
1135 |
-
foreach($get_albums_table_data as $value)
|
1136 |
-
{
|
1137 |
-
// insert gallery data
|
1138 |
$gallery_parent_id = get_parent_id_gallery_bank("galleries");
|
1139 |
$insert_gallery = array();
|
1140 |
$insert_gallery["type"] = "gallery";
|
@@ -1142,94 +1079,189 @@ if (!is_user_logged_in()) {
|
|
1142 |
$gallery_id = $obj_dbHelper_gallery_bank->insertCommand(gallery_bank_parent(), $insert_gallery);
|
1143 |
|
1144 |
$insert_gallery_meta = array();
|
1145 |
-
$insert_gallery_meta["gallery_title"] =
|
1146 |
-
$insert_gallery_meta["gallery_description"] =
|
1147 |
-
$insert_gallery_meta["created_date"] =
|
1148 |
$insert_gallery_meta["edited_on"] = time();
|
1149 |
-
$insert_gallery_meta["gallery_cover_image"] = "";
|
1150 |
-
$insert_gallery_meta["edited_by"] =
|
1151 |
-
$insert_gallery_meta["author"] =
|
1152 |
|
1153 |
$insert_gallery_data = array();
|
1154 |
$insert_gallery_data["meta_id"] = $gallery_id;
|
1155 |
-
$insert_gallery_data["old_gallery_id"] = $value->album_id;
|
1156 |
$insert_gallery_data["meta_key"] = "gallery_data";
|
1157 |
$insert_gallery_data["meta_value"] = serialize($insert_gallery_meta);
|
1158 |
$obj_dbHelper_gallery_bank->insertCommand(gallery_bank_meta(), $insert_gallery_data);
|
1159 |
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
$
|
1164 |
-
|
1165 |
-
|
1166 |
-
// insert pic data
|
1167 |
-
$image_name = isset($data->thumbnail_url) ? $data->thumbnail_url : "";
|
1168 |
|
1169 |
$image_data = get_thumbnail_dimension_gallery_bank();
|
1170 |
$fileName = wp_unique_filename(GALLERY_BANK_ORIGINAL_DIR, $image_name);
|
1171 |
|
1172 |
-
$src_file =
|
1173 |
copy($src_file, GALLERY_BANK_ORIGINAL_DIR . $fileName);
|
1174 |
copy($src_file, GALLERY_BANK_UPLOAD_DIR . $fileName);
|
1175 |
|
1176 |
$thumbnail_image_name = $obj_dbHelper_gallery_bank->createThumbs_gallery_bank($image_name, $image_data);
|
1177 |
$image_exif_detail = $obj_dbHelper_gallery_bank->file_exif_information_gallery_bank(GALLERY_BANK_UPLOAD_DIR . $image_name, "FILE");
|
1178 |
-
|
1179 |
-
|
1180 |
-
$gallery_cover_image = $fileName;
|
1181 |
-
}
|
1182 |
-
$image_meta_data["image_title"] = isset($data->title) ? $data->title : "";
|
1183 |
$image_meta_data["image_name"] = $fileName;
|
1184 |
|
1185 |
$image_meta_data["enable_redirect"] = "";
|
1186 |
-
$image_meta_data["redirect_url"] =
|
1187 |
-
|
|
|
|
|
|
|
|
|
1188 |
$image_meta_data["width"] = intval($image_exif_detail["width"]);
|
1189 |
$image_meta_data["height"] = intval($image_exif_detail["height"]);
|
1190 |
$image_meta_data["mime_type"] = esc_attr($image_exif_detail["mime_type"]);
|
1191 |
$image_meta_data["aperture"] = esc_attr($image_exif_detail["exif_information"]["aperture"]);
|
1192 |
$image_meta_data["upload_type"] = "";
|
1193 |
|
1194 |
-
$image_meta_data["image_description"] =
|
1195 |
$image_meta_data["alt_text"] = "";
|
1196 |
-
$image_meta_data["sort_order"] =
|
1197 |
$image_meta_data["tags"] = array();
|
1198 |
-
$image_meta_data["upload_date"] =
|
1199 |
$image_meta_data["file_type"] = "image";
|
1200 |
$image_meta_data["exclude_image"] = "";
|
1201 |
$image_meta_data_insert = array();
|
1202 |
$image_meta_data_insert["meta_id"] = $gallery_id;
|
1203 |
-
$image_meta_data_insert["old_gallery_id"] = $data->album_id;
|
1204 |
$image_meta_data_insert["meta_key"] = "image_data";
|
1205 |
$image_meta_data_insert["meta_value"] = serialize($image_meta_data);
|
1206 |
-
$obj_dbHelper_gallery_bank->insertCommand(gallery_bank_meta(), $image_meta_data_insert);
|
1207 |
}
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
|
|
|
|
|
|
1215 |
);
|
1216 |
-
$
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1225 |
}
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
}
|
1231 |
-
break;
|
1232 |
-
}
|
1233 |
-
update_option("gallery-bank-pro-edition", "4.0");
|
1234 |
-
}
|
1235 |
}
|
1 |
<?php
|
2 |
+
|
3 |
/**
|
4 |
* This file is used for creating table.
|
5 |
*
|
8 |
* @version 4.0.0
|
9 |
*/
|
10 |
if (!defined("ABSPATH")) {
|
11 |
+
exit;
|
12 |
} // Exit if accessed directly
|
13 |
if (!is_user_logged_in()) {
|
14 |
+
return;
|
15 |
} else {
|
16 |
+
if (!current_user_can("manage_options")) {
|
17 |
+
return;
|
18 |
+
} else {
|
19 |
+
/*
|
20 |
+
Class Name: dbHelper_install_script_gallery_bank
|
21 |
+
Parameter: No
|
22 |
+
Description: This Class is used for Insert,Update and Delete operations.
|
23 |
+
Created On: 01-06-2017 09:00
|
24 |
+
Created By: Tech Banker Team
|
25 |
+
*/
|
26 |
+
if (!class_exists("dbHelper_install_script_gallery_bank")) {
|
27 |
+
|
28 |
+
class dbHelper_install_script_gallery_bank {
|
29 |
+
/*
|
30 |
+
Function Name: insertCommand
|
31 |
+
Parameter: Yes($table_name,$data)
|
32 |
+
Description: It is used for insert data in database.
|
33 |
+
Created On: 01-06-2017 09:00
|
34 |
+
Created By: Tech Banker Team
|
35 |
+
*/
|
36 |
+
|
37 |
+
function insertCommand($table_name, $data) {
|
38 |
+
global $wpdb;
|
39 |
+
$wpdb->insert($table_name, $data);
|
40 |
+
return $wpdb->insert_id;
|
41 |
+
}
|
42 |
+
|
43 |
+
/*
|
44 |
+
Function Name: updateCommand
|
45 |
+
Parameter: Yes($table_name,$data,$where)
|
46 |
+
Description: It is used for update data in database.
|
47 |
+
Created On: 01-06-2017 09:00
|
48 |
+
Created By: Tech Banker Team
|
49 |
+
*/
|
50 |
+
|
51 |
+
function updateCommand($table_name, $data, $where) {
|
52 |
+
global $wpdb;
|
53 |
+
$wpdb->update($table_name, $data, $where);
|
54 |
+
}
|
55 |
+
|
56 |
+
function createThumbs_gallery_bank($fname, $image_data) {
|
57 |
+
$fileName = wp_unique_filename(GALLERY_BANK_THUMBS_CROPPED_DIR, $fname);
|
58 |
+
if (function_exists("wp_get_image_editor")) {
|
59 |
+
$image_original = wp_get_image_editor(GALLERY_BANK_ORIGINAL_DIR . $fname);
|
60 |
+
$image_thumbnail_cropped = wp_get_image_editor(GALLERY_BANK_ORIGINAL_DIR . $fname);
|
61 |
+
$image_thumbnail_non_cropped = wp_get_image_editor(GALLERY_BANK_ORIGINAL_DIR . $fname);
|
62 |
+
if (!is_wp_error($image_original) || !is_wp_error($image_thumbnail_cropped) || !is_wp_error($image_thumbnail_non_cropped)) {
|
63 |
+
$image_original->resize($image_data[0], $image_data[1], false);
|
64 |
+
$image_original->save(GALLERY_BANK_ORIGINAL_DIR . $fileName);
|
65 |
+
|
66 |
+
$image_thumbnail_cropped->resize($image_data[2], $image_data[3], true);
|
67 |
+
$image_thumbnail_cropped->save(GALLERY_BANK_THUMBS_CROPPED_DIR . $fileName);
|
68 |
+
|
69 |
+
$image_thumbnail_non_cropped->resize($image_data[2], $image_data[3], false);
|
70 |
+
$image_thumbnail_non_cropped->save(GALLERY_BANK_THUMBS_NON_CROPPED_DIR . $fileName);
|
71 |
+
}
|
72 |
+
} else {
|
73 |
+
image_resize(GALLERY_BANK_ORIGINAL_DIR . $fname, $image_data[0], $image_data[1], false);
|
74 |
+
image_resize(GALLERY_BANK_THUMBS_CROPPED_DIR . $fname, $image_data[2], $image_data[3], true);
|
75 |
+
image_resize(GALLERY_BANK_THUMBS_NON_CROPPED_DIR . $fname, $image_data[2], $image_data[3], false);
|
76 |
+
}
|
77 |
+
return $fileName;
|
78 |
+
}
|
79 |
+
|
80 |
+
function file_exif_information_gallery_bank($file) {
|
81 |
+
$meta_data_array = array();
|
82 |
+
$image_data = getimagesize($file);
|
83 |
+
$meta_data_array["width"] = $image_data[0];
|
84 |
+
$meta_data_array["height"] = $image_data[1];
|
85 |
+
if (preg_match("!^image/!", $image_data["mime"]) && file_is_displayable_image($file)) {
|
86 |
+
$meta_data_array["mime_type"] = $image_data["mime"];
|
87 |
+
$meta_data_array["file"] = _wp_relative_upload_path($file);
|
88 |
+
$meta_data_array["exif_information"] = wp_read_image_metadata($file);
|
89 |
+
}
|
90 |
+
return $meta_data_array;
|
91 |
+
}
|
92 |
+
|
93 |
}
|
94 |
+
|
95 |
+
}
|
96 |
+
|
97 |
+
if (!function_exists("get_thumbnail_dimension_gallery_bank")) {
|
98 |
+
|
99 |
+
function get_thumbnail_dimension_gallery_bank() {
|
100 |
+
global $wpdb;
|
101 |
+
$thumbnail_data = $wpdb->get_var
|
102 |
+
(
|
103 |
+
$wpdb->prepare
|
104 |
+
(
|
105 |
+
"SELECT meta_value FROM " . gallery_bank_meta() . "
|
106 |
WHERE " . gallery_bank_meta() . ".meta_key = %s", "global_options_settings"
|
107 |
+
)
|
108 |
+
);
|
109 |
+
|
110 |
+
$thumbnail_data_unserialize = maybe_unserialize($thumbnail_data);
|
111 |
+
$image_dimension = explode(",", $thumbnail_data_unserialize["global_options_generated_image_dimensions"]);
|
112 |
+
$thumbnail_dimensions = explode(",", $thumbnail_data_unserialize["global_options_thumbnail_dimensions"]);
|
113 |
+
$image_data = array_merge($image_dimension, $thumbnail_dimensions);
|
114 |
+
return $image_data;
|
115 |
+
}
|
116 |
+
|
117 |
+
}
|
118 |
+
|
119 |
+
if (!function_exists("get_parent_id_gallery_bank")) {
|
120 |
+
|
121 |
+
function get_parent_id_gallery_bank($type) {
|
122 |
+
global $wpdb;
|
123 |
+
$parent_id = $wpdb->get_var
|
124 |
+
(
|
125 |
+
$wpdb->prepare
|
126 |
+
(
|
127 |
+
"SELECT id FROM " . gallery_bank_parent() . " WHERE " . gallery_bank_parent() . ". type = %s", $type
|
128 |
+
)
|
129 |
+
);
|
130 |
+
return $parent_id;
|
131 |
+
}
|
132 |
+
|
133 |
+
}
|
134 |
+
|
135 |
+
require_once(ABSPATH . "wp-admin/includes/upgrade.php");
|
136 |
+
$gallery_bank_version_number = get_option("gallery-bank-pro-edition");
|
137 |
+
|
138 |
+
/*
|
139 |
+
Function Name: table_gallery_bank
|
140 |
+
Parameter: No
|
141 |
+
Description: It is used for creating a parent table.
|
142 |
+
Created On: 01-06-2017 09:00
|
143 |
+
Created By: Tech Banker Team
|
144 |
+
*/
|
145 |
+
|
146 |
+
if (!function_exists("table_gallery_bank")) {
|
147 |
+
|
148 |
+
function table_gallery_bank() {
|
149 |
+
global $wpdb;
|
150 |
+
$obj_dbHelper_gallery_bank_parent = new dbHelper_install_script_gallery_bank();
|
151 |
+
$sql = "CREATE TABLE IF NOT EXISTS " . gallery_bank_parent() . "
|
152 |
(
|
153 |
`id` int(10) NOT NULL AUTO_INCREMENT,
|
154 |
`type` longtext NOT NULL,
|
156 |
PRIMARY KEY (`id`)
|
157 |
)
|
158 |
ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1";
|
159 |
+
dbDelta($sql);
|
160 |
|
161 |
+
$data = "INSERT INTO " . gallery_bank_parent() . " (`type`, `parent_id`) VALUES
|
162 |
('galleries', 0),
|
163 |
('albums',0),
|
164 |
('tags', 0),
|
167 |
('general_settings', 0),
|
168 |
('other_settings', 0),
|
169 |
('roles_and_capabilities_settings', 0)";
|
170 |
+
dbDelta($data);
|
171 |
+
}
|
172 |
+
|
173 |
+
}
|
174 |
+
|
175 |
+
/*
|
176 |
+
Function Name: table_gallery_bank_meta
|
177 |
+
Parameter: No
|
178 |
+
Description: It is used for creating a meta table.
|
179 |
+
Created On: 01-06-2017 09:00
|
180 |
+
Created By: Tech Banker Team
|
181 |
+
*/
|
182 |
+
|
183 |
+
if (!function_exists("table_gallery_bank_meta")) {
|
184 |
+
|
185 |
+
function table_gallery_bank_meta() {
|
186 |
+
global $wpdb;
|
187 |
+
$obj_dbHelper_gallery_bank_meta_table = new dbHelper_install_script_gallery_bank();
|
188 |
+
$sql = "CREATE TABLE IF NOT EXISTS " . gallery_bank_meta() . "
|
189 |
(
|
190 |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
191 |
`meta_id` int(10) NOT NULL,
|
195 |
PRIMARY KEY (`id`)
|
196 |
)
|
197 |
ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1";
|
198 |
+
dbDelta($sql);
|
199 |
+
|
200 |
+
$parent_table_data = $wpdb->get_results
|
201 |
+
(
|
202 |
+
"SELECT id,type FROM " . gallery_bank_parent()
|
203 |
+
);
|
204 |
+
|
205 |
+
foreach ($parent_table_data as $row) {
|
206 |
+
switch ($row->type) {
|
207 |
+
case "layout_settings":
|
208 |
+
$thumbnail_layout_data = array();
|
209 |
+
$thumbnail_layout_data["thumbnail_layout_general_margin"] = "10,10,0,0";
|
210 |
+
$thumbnail_layout_data["thumbnail_layout_general_padding"] = "0,0,0,0";
|
211 |
+
$thumbnail_layout_data["thumbnail_layout_general_border_style"] = "0,none,#000000";
|
212 |
+
$thumbnail_layout_data["thumbnail_layout_general_border_radius"] = "0";
|
213 |
+
$thumbnail_layout_data["thumbnail_layout_general_shadow"] = "0,0,0,0";
|
214 |
+
$thumbnail_layout_data["thumbnail_layout_general_shadow_color"] = "#000000";
|
215 |
+
$thumbnail_layout_data["thumbnail_layout_general_hover_effect_value"] = "none,0,0,0";
|
216 |
+
$thumbnail_layout_data["thumbnail_layout_general_transition_time"] = "1";
|
217 |
+
$thumbnail_layout_data["thumbnail_layout_general_background_color_transparency"] = "#ebe8eb,50";
|
218 |
+
$thumbnail_layout_data["thumbnail_layout_general_thumbnail_opacity"] = "100";
|
219 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_dimensions"] = "250,200";
|
220 |
+
$thumbnail_layout_data["thumbnail_layout_container_width"] = "100";
|
221 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_position"] = "center,center";
|
222 |
+
|
223 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_title_html_tag"] = "h2";
|
224 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_title_text_alignment"] = "left";
|
225 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_title_font_style"] = "20,#000000";
|
226 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_title_line_height"] = "1.7em";
|
227 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_title_font_family"] = "Roboto Slab:700";
|
228 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_title_margin"] = "10,0,10,0";
|
229 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_title_padding"] = "10,0,10,0";
|
230 |
+
|
231 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_description_html_tag"] = "h3";
|
232 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_description_text_alignment"] = "left";
|
233 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_description_font_style"] = "16,#787D85";
|
234 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_description_line_height"] = "1.7em";
|
235 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_description_font_family"] = "Roboto Slab:300";
|
236 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_description_margin"] = "10,0,10,0";
|
237 |
+
$thumbnail_layout_data["thumbnail_layout_gallery_description_padding"] = "0,0,10,0";
|
238 |
+
|
239 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_title_html_tag"] = "h3";
|
240 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_title_text_alignment"] = "left";
|
241 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_title_font_style"] = "14,#787D85";
|
242 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_title_line_height"] = "1.7em";
|
243 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_title_font_family"] = "Roboto Slab:700";
|
244 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_title_margin"] = "0,5,0,5";
|
245 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_title_padding"] = "10,10,10,10";
|
246 |
+
|
247 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_description_html_tag"] = "p";
|
248 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_description_text_alignment"] = "left";
|
249 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_description_font_style"] = "12,#787D85";
|
250 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_description_line_height"] = "1.7em";
|
251 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_description_font_family"] = "Roboto Slab:300";
|
252 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_description_margin"] = "0,5,0,5";
|
253 |
+
$thumbnail_layout_data["thumbnail_layout_thumbnail_description_padding"] = "5,10,10,5";
|
254 |
+
$thumbnail_layout_data_serialize = array();
|
255 |
+
$thumbnail_layout_data_serialize["meta_id"] = $row->id;
|
256 |
+
$thumbnail_layout_data_serialize["old_gallery_id"] = $row->id;
|
257 |
+
$thumbnail_layout_data_serialize["meta_key"] = "thumbnail_layout_settings";
|
258 |
+
$thumbnail_layout_data_serialize["meta_value"] = serialize($thumbnail_layout_data);
|
259 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $thumbnail_layout_data_serialize);
|
260 |
+
|
261 |
+
$masonry_layout_data = array();
|
262 |
+
$masonry_layout_data["masonry_layout_general_margin"] = "10,10,0,0";
|
263 |
+
$masonry_layout_data["masonry_layout_general_padding"] = "0,0,0,0";
|
264 |
+
$masonry_layout_data["masonry_layout_general_border_style"] = "0,solid,#cccccc";
|
265 |
+
$masonry_layout_data["masonry_layout_general_border_radius"] = "0";
|
266 |
+
$masonry_layout_data["masonry_layout_general_shadow"] = "0,0,0,0";
|
267 |
+
$masonry_layout_data["masonry_layout_general_shadow_color"] = "#000000";
|
268 |
+
$masonry_layout_data["masonry_layout_general_hover_effect_value"] = "none,0,0,0";
|
269 |
+
$masonry_layout_data["masonry_layout_general_transition_time"] = "1";
|
270 |
+
$masonry_layout_data["masonry_layout_general_background_color_transparency"] = "#ebe8eb,50";
|
271 |
+
$masonry_layout_data["masonry_layout_general_masonry_opacity"] = "100";
|
272 |
+
$masonry_layout_data["masonry_layout_general_thumbnail_width"] = "250";
|
273 |
+
|
274 |
+
$masonry_layout_data["masonry_layout_gallery_title_html_tag"] = "h2";
|
275 |
+
$masonry_layout_data["masonry_layout_gallery_title_text_alignment"] = "left";
|
276 |
+
$masonry_layout_data["masonry_layout_gallery_title_font_style"] = "20,#000000";
|
277 |
+
$masonry_layout_data["masonry_layout_gallery_title_line_height"] = "1.7em";
|
278 |
+
$masonry_layout_data["masonry_layout_gallery_title_font_family"] = "Roboto Slab:700";
|
279 |
+
$masonry_layout_data["masonry_layout_gallery_title_margin"] = "10,0,10,0";
|
280 |
+
$masonry_layout_data["masonry_layout_gallery_title_padding"] = "10,0,10,0";
|
281 |
+
|
282 |
+
$masonry_layout_data["masonry_layout_gallery_description_html_tag"] = "h3";
|
283 |
+
$masonry_layout_data["masonry_layout_gallery_description_text_alignment"] = "left";
|
284 |
+
$masonry_layout_data["masonry_layout_gallery_description_font_style"] = "16,#787D85";
|
285 |
+
$masonry_layout_data["masonry_layout_gallery_description_line_height"] = "1.7em";
|
286 |
+
$masonry_layout_data["masonry_layout_gallery_description_font_family"] = "Roboto Slab:300";
|
287 |
+
$masonry_layout_data["masonry_layout_gallery_description_margin"] = "10,0,10,0";
|
288 |
+
$masonry_layout_data["masonry_layout_gallery_description_padding"] = "0,0,10,0";
|
289 |
+
|
290 |
+
$masonry_layout_data["masonry_layout_thumbnail_title_html_tag"] = "h3";
|
291 |
+
$masonry_layout_data["masonry_layout_thumbnail_title_text_alignment"] = "left";
|
292 |
+
$masonry_layout_data["masonry_layout_thumbnail_title_font_style"] = "14,#787D85";
|
293 |
+
$masonry_layout_data["masonry_layout_thumbnail_title_line_height"] = "1.7em";
|
294 |
+
$masonry_layout_data["masonry_layout_thumbnail_title_font_family"] = "Roboto Slab:700";
|
295 |
+
$masonry_layout_data["masonry_layout_thumbnail_title_margin"] = "0,5,0,5";
|
296 |
+
$masonry_layout_data["masonry_layout_thumbnail_title_padding"] = "10,10,10,10";
|
297 |
+
|
298 |
+
$masonry_layout_data["masonry_layout_thumbnail_description_html_tag"] = "p";
|
299 |
+
$masonry_layout_data["masonry_layout_thumbnail_description_text_alignment"] = "left";
|
300 |
+
$masonry_layout_data["masonry_layout_thumbnail_description_font_style"] = "12,#787D85";
|
301 |
+
$masonry_layout_data["masonry_layout_thumbnail_description_line_height"] = "1.7em";
|
302 |
+
$masonry_layout_data["masonry_layout_thumbnail_description_font_family"] = "Roboto Slab:300";
|
303 |
+
$masonry_layout_data["masonry_layout_thumbnail_description_margin"] = "0,5,0,5";
|
304 |
+
$masonry_layout_data["masonry_layout_thumbnail_description_padding"] = "5,10,10,5";
|
305 |
+
$masonry_layout_data_serialize = array();
|
306 |
+
$masonry_layout_data_serialize["meta_id"] = $row->id;
|
307 |
+
$masonry_layout_data_serialize["old_gallery_id"] = $row->id;
|
308 |
+
$masonry_layout_data_serialize["meta_key"] = "masonry_layout_settings";
|
309 |
+
$masonry_layout_data_serialize["meta_value"] = serialize($masonry_layout_data);
|
310 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $masonry_layout_data_serialize);
|
311 |
+
|
312 |
+
$slideshow_layout_data = array();
|
313 |
+
$slideshow_layout_data["slideshow_layout_general_background_color"] = "#ebe8eb";
|
314 |
+
$slideshow_layout_data["slideshow_layout_general_border_style"] = "0,none,#cccccc";
|
315 |
+
$slideshow_layout_data["slideshow_layout_general_border_radius"] = "0";
|
316 |
+
$slideshow_layout_data["slideshow_layout_general_buttons_hover_color"] = "#105278";
|
317 |
+
$slideshow_layout_data["slideshow_layout_general_buttons_color"] = "#000000";
|
318 |
+
$slideshow_layout_data["slideshow_layout_general_buttons_border_style"] = "0,none,#cccccc";
|
319 |
+
$slideshow_layout_data["slideshow_layout_general_buttons_border_radius"] = "0";
|
320 |
+
$slideshow_layout_data["slideshow_layout_general_shadow"] = "0,0,0,0";
|
321 |
+
$slideshow_layout_data["slideshow_layout_general_shadow_color"] = "#000000";
|
322 |
+
$slideshow_layout_data["slideshow_layout_general_buttons_transparency"] = "75";
|
323 |
+
$slideshow_layout_data["slideshow_layout_general_filmstrip_margin"] = "5,5,5,0";
|
324 |
+
$slideshow_layout_data["slideshow_layout_general_filmstrip_padding"] = "5,5,5,0";
|
325 |
+
$slideshow_layout_data["slideshow_layout_general_filmstrip_border_style"] = "1,solid,#555";
|
326 |
+
$slideshow_layout_data["slideshow_layout_general_filmstrip_border_radius"] = "0";
|
327 |
+
$slideshow_layout_data["slideshow_layout_general_filmstrip_active_border_style"] = "2,solid,#fff";
|
328 |
+
$slideshow_layout_data["slideshow_layout_general_filmstrip_deactive_transparency"] = "75";
|
329 |
+
|
330 |
+
$slideshow_layout_data["slideshow_layout_gallery_title_html_tag"] = "h2";
|
331 |
+
$slideshow_layout_data["slideshow_layout_gallery_title_text_alignment"] = "left";
|
332 |
+
$slideshow_layout_data["slideshow_layout_gallery_title_font_style"] = "20,#000000";
|
333 |
+
$slideshow_layout_data["slideshow_layout_gallery_title_line_height"] = "1.7em";
|
334 |
+
$slideshow_layout_data["slideshow_layout_gallery_title_font_family"] = "Roboto Slab:700";
|
335 |
+
$slideshow_layout_data["slideshow_layout_gallery_title_margin"] = "10,0,10,0";
|
336 |
+
$slideshow_layout_data["slideshow_layout_gallery_title_padding"] = "10,0,10,0";
|
337 |
+
|
338 |
+
$slideshow_layout_data["slideshow_layout_gallery_description_html_tag"] = "h3";
|
339 |
+
$slideshow_layout_data["slideshow_layout_gallery_description_text_alignment"] = "left";
|
340 |
+
$slideshow_layout_data["slideshow_layout_gallery_description_font_style"] = "16,#787D85";
|
341 |
+
$slideshow_layout_data["slideshow_layout_gallery_description_line_height"] = "1.7em";
|
342 |
+
$slideshow_layout_data["slideshow_layout_gallery_description_font_family"] = "Roboto Slab:300";
|
343 |
+
$slideshow_layout_data["slideshow_layout_gallery_description_margin"] = "10,0,10,0";
|
344 |
+
$slideshow_layout_data["slideshow_layout_gallery_description_padding"] = "0,0,10,0";
|
345 |
+
|
346 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_title_html_tag"] = "h3";
|
347 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_title_text_alignment"] = "left";
|
348 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_title_font_style"] = "14,#efefef";
|
349 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_title_line_height"] = "1.7em";
|
350 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_title_font_family"] = "Roboto Slab:700";
|
351 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_title_margin"] = "0,5,0,5";
|
352 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_title_padding"] = "5,10,0,0";
|
353 |
+
|
354 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_description_html_tag"] = "p";
|
355 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_description_text_alignment"] = "left";
|
356 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_description_font_style"] = "12,#dfdfdf";
|
357 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_description_line_height"] = "1.7em";
|
358 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_description_font_family"] = "Roboto Slab:300";
|
359 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_description_margin"] = "0,5,0,5";
|
360 |
+
$slideshow_layout_data["slideshow_layout_thumbnail_description_padding"] = "5,10,0,0";
|
361 |
+
|
362 |
+
$slideshow_layout_data_serialize = array();
|
363 |
+
$slideshow_layout_data_serialize["meta_id"] = $row->id;
|
364 |
+
$slideshow_layout_data_serialize["old_gallery_id"] = $row->id;
|
365 |
+
$slideshow_layout_data_serialize["meta_key"] = "slideshow_layout_settings";
|
366 |
+
$slideshow_layout_data_serialize["meta_value"] = serialize($slideshow_layout_data);
|
367 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $slideshow_layout_data_serialize);
|
368 |
+
|
369 |
+
$image_browser_layout_data = array();
|
370 |
+
$image_browser_layout_data["image_browser_layout_container_width"] = "100";
|
371 |
+
$image_browser_layout_data["image_browser_layout_general_border_style"] = "0,none,#000000";
|
372 |
+
$image_browser_layout_data["image_browser_layout_general_border_radius"] = "0";
|
373 |
+
$image_browser_layout_data["image_browser_layout_general_shadow"] = "0,0,0,0";
|
374 |
+
$image_browser_layout_data["image_browser_layout_general_shadow_color"] = "#000000";
|
375 |
+
$image_browser_layout_data["image_browser_layout_general_buttons_font_style"] = "14,#ffffff";
|
376 |
+
$image_browser_layout_data["image_browser_layout_general_buttons_font_family"] = "Roboto Slab:700";
|
377 |
+
$image_browser_layout_data["image_browser_layout_general_buttons_hover_color"] = "#105278";
|
378 |
+
$image_browser_layout_data["image_browser_layout_general_buttons_color"] = "#000000";
|
379 |
+
$image_browser_layout_data["image_browser_layout_general_buttons_border_style"] = "0,none,#ffffff";
|
380 |
+
$image_browser_layout_data["image_browser_layout_general_buttons_border_radius"] = "0";
|
381 |
+
$image_browser_layout_data["image_browser_layout_general_image_browser_background_color"] = "#ebe8eb";
|
382 |
+
$image_browser_layout_data["image_browser_layout_general_image_browser_opacity"] = "100";
|
383 |
+
$image_browser_layout_data["image_browser_layout_general_button_margin"] = "10,5,0,5";
|
384 |
+
$image_browser_layout_data["image_browser_layout_general_button_padding"] = "5,10,5,10";
|
385 |
+
|
386 |
+
$image_browser_layout_data["image_browser_layout_gallery_title_html_tag"] = "h2";
|
387 |
+
$image_browser_layout_data["image_browser_layout_gallery_title_text_alignment"] = "left";
|
388 |
+
$image_browser_layout_data["image_browser_layout_gallery_title_font_style"] = "20,#000000";
|
389 |
+
$image_browser_layout_data["image_browser_layout_gallery_title_line_height"] = "1.7em";
|
390 |
+
$image_browser_layout_data["image_browser_layout_gallery_title_font_family"] = "Roboto Slab:700";
|
391 |
+
$image_browser_layout_data["image_browser_layout_gallery_title_margin"] = "10,0,10,0";
|
392 |
+
$image_browser_layout_data["image_browser_layout_gallery_title_padding"] = "10,0,10,0";
|
393 |
+
|
394 |
+
$image_browser_layout_data["image_browser_layout_gallery_description_html_tag"] = "h3";
|
395 |
+
$image_browser_layout_data["image_browser_layout_gallery_description_text_alignment"] = "left";
|
396 |
+
$image_browser_layout_data["image_browser_layout_gallery_description_font_style"] = "16,#787D85";
|
397 |
+
$image_browser_layout_data["image_browser_layout_gallery_description_line_height"] = "1.7em";
|
398 |
+
$image_browser_layout_data["image_browser_layout_gallery_description_font_family"] = "Roboto Slab:300";
|
399 |
+
$image_browser_layout_data["image_browser_layout_gallery_description_margin"] = "10,0,10,0";
|
400 |
+
$image_browser_layout_data["image_browser_layout_gallery_description_padding"] = "0,0,10,0";
|
401 |
+
|
402 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_title_html_tag"] = "h3";
|
403 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_title_text_alignment"] = "left";
|
404 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_title_font_style"] = "14,#efefef";
|
405 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_title_line_height"] = "1.7em";
|
406 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_title_font_family"] = "Roboto Slab:700";
|
407 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_title_margin"] = "0,5,0,5";
|
408 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_title_padding"] = "5,10,0,0";
|
409 |
+
|
410 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_description_html_tag"] = "p";
|
411 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_description_text_alignment"] = "left";
|
412 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_description_font_style"] = "12,#dfdfdf";
|
413 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_description_line_height"] = "1.7em";
|
414 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_description_font_family"] = "Roboto Slab:300";
|
415 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_description_margin"] = "0,5,0,5";
|
416 |
+
$image_browser_layout_data["image_browser_layout_thumbnail_description_padding"] = "5,10,0,0";
|
417 |
+
$image_browser_layout_data_serialize = array();
|
418 |
+
$image_browser_layout_data_serialize["meta_id"] = $row->id;
|
419 |
+
$image_browser_layout_data_serialize["old_gallery_id"] = $row->id;
|
420 |
+
$image_browser_layout_data_serialize["meta_key"] = "image_browser_layout_settings";
|
421 |
+
$image_browser_layout_data_serialize["meta_value"] = serialize($image_browser_layout_data);
|
422 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $image_browser_layout_data_serialize);
|
423 |
+
|
424 |
+
$justified_grid_layout_data = array();
|
425 |
+
$justified_grid_layout_data["justified_grid_layout_general_padding"] = "0,0,0,0";
|
426 |
+
$justified_grid_layout_data["justified_grid_layout_general_border_style"] = "0,none,#000000";
|
427 |
+
$justified_grid_layout_data["justified_grid_layout_general_border_radius"] = "0";
|
428 |
+
$justified_grid_layout_data["justified_grid_layout_general_shadow"] = "0,0,0,0";
|
429 |
+
$justified_grid_layout_data["justified_grid_layout_general_shadow_color"] = "#000000";
|
430 |
+
$justified_grid_layout_data["justified_grid_layout_general_hover_effect_value"] = "none,0,0,0";
|
431 |
+
$justified_grid_layout_data["justified_grid_layout_general_trasition"] = "1";
|
432 |
+
$justified_grid_layout_data["justified_grid_layout_general_background_transparency"] = "#ebe8eb,50";
|
433 |
+
$justified_grid_layout_data["justified_grid_layout_general_justified_grid_opacity"] = "100";
|
434 |
+
|
435 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_title_html_tag"] = "h2";
|
436 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_title_text_alignment"] = "left";
|
437 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_title_font_style"] = "20,#000000";
|
438 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_title_line_height"] = "1.7em";
|
439 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_title_font_family"] = "Roboto Slab:700";
|
440 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_title_margin"] = "10,0,10,0";
|
441 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_title_padding"] = "10,0,10,0";
|
442 |
+
|
443 |
+
|
444 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_description_html_tag"] = "h3";
|
445 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_description_text_alignment"] = "left";
|
446 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_description_font_style"] = "16,#787D85";
|
447 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_description_line_height"] = "1.7em";
|
448 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_description_font_family"] = "Roboto Slab:300";
|
449 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_description_margin"] = "10,0,10,0";
|
450 |
+
$justified_grid_layout_data["justified_grid_layout_gallery_description_padding"] = "0,0,10,0";
|
451 |
+
|
452 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_title_html_tag"] = "h3";
|
453 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_title_text_alignment"] = "center";
|
454 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_title_font_style"] = "14,#efefef";
|
455 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_title_line_height"] = "1.7em";
|
456 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_title_font_family"] = "Roboto Slab:700";
|
457 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_title_margin"] = "0,5,0,0";
|
458 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_title_padding"] = "5,10,10,5";
|
459 |
+
|
460 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_description_html_tag"] = "p";
|
461 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_description_text_alignment"] = "left";
|
462 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_description_font_style"] = "12,#dfdfdf";
|
463 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_description_line_height"] = "1.7em";
|
464 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_description_font_family"] = "Roboto Slab:300";
|
465 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_description_margin"] = "0,5,0,0";
|
466 |
+
$justified_grid_layout_data["justified_grid_layout_thumbnail_description_padding"] = "5,10,10,5";
|
467 |
+
$justified_grid_layout_data_serialize = array();
|
468 |
+
$justified_grid_layout_data_serialize["meta_id"] = $row->id;
|
469 |
+
$justified_grid_layout_data_serialize["old_gallery_id"] = $row->id;
|
470 |
+
$justified_grid_layout_data_serialize["meta_key"] = "justified_grid_layout_settings";
|
471 |
+
$justified_grid_layout_data_serialize["meta_value"] = serialize($justified_grid_layout_data);
|
472 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $justified_grid_layout_data_serialize);
|
473 |
+
|
474 |
+
$blog_style_layout_data = array();
|
475 |
+
$blog_style_layout_data["blog_style_layout_general_margin"] = "0,0,15,0";
|
476 |
+
$blog_style_layout_data["blog_style_layout_general_padding"] = "0,0,0,0";
|
477 |
+
$blog_style_layout_data["blog_style_layout_general_border_style"] = "2,solid,#cccccc";
|
478 |
+
$blog_style_layout_data["blog_style_layout_general_border_radius"] = "0";
|
479 |
+
$blog_style_layout_data["blog_style_layout_general_shadow"] = "0,0,0,0";
|
480 |
+
$blog_style_layout_data["blog_style_layout_general_shadow_color"] = "#000000";
|
481 |
+
$blog_style_layout_data["blog_style_layout_general_hover_effect_value"] = "none,0,0,0";
|
482 |
+
$blog_style_layout_data["blog_style_layout_general_trasition"] = "2";
|
483 |
+
$blog_style_layout_data["blog_style_layout_general_background_color"] = "#ebe8eb";
|
484 |
+
$blog_style_layout_data["blog_style_layout_general_blog_style_opacity"] = "100";
|
485 |
+
$blog_style_layout_data["blog_style_layout_general_background_transparency"] = "100";
|
486 |
+
|
487 |
+
$blog_style_layout_data["blog_style_layout_gallery_title_html_tag"] = "h2";
|
488 |
+
$blog_style_layout_data["blog_style_layout_gallery_title_text_alignment"] = "left";
|
489 |
+
$blog_style_layout_data["blog_style_layout_gallery_title_font_style"] = "20,#000000";
|
490 |
+
$blog_style_layout_data["blog_style_layout_gallery_title_line_height"] = "1.7em";
|
491 |
+
$blog_style_layout_data["blog_style_layout_gallery_title_font_family"] = "Roboto Slab:700";
|
492 |
+
$blog_style_layout_data["blog_style_layout_gallery_title_margin"] = "10,0,10,0";
|
493 |
+
$blog_style_layout_data["blog_style_layout_gallery_title_padding"] = "10,0,10,0";
|
494 |
+
|
495 |
+
$blog_style_layout_data["blog_style_layout_gallery_description_html_tag"] = "h3";
|
496 |
+
$blog_style_layout_data["blog_style_layout_gallery_description_text_alignment"] = "left";
|
497 |
+
$blog_style_layout_data["blog_style_layout_gallery_description_font_style"] = "16,#787D85";
|
498 |
+
$blog_style_layout_data["blog_style_layout_gallery_description_line_height"] = "1.7em";
|
499 |
+
$blog_style_layout_data["blog_style_layout_gallery_description_font_family"] = "Roboto Slab:300";
|
500 |
+
$blog_style_layout_data["blog_style_layout_gallery_description_margin"] = "10,0,10,0";
|
501 |
+
$blog_style_layout_data["blog_style_layout_gallery_description_padding"] = "0,0,10,0";
|
502 |
+
|
503 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_title_html_tag"] = "h3";
|
504 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_title_text_alignment"] = "left";
|
505 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_title_font_style"] = "14,#787D85";
|
506 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_title_line_height"] = "1.7em";
|
507 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_title_font_family"] = "Roboto Slab:700";
|
508 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_title_margin"] = "0,5,0,5";
|
509 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_title_padding"] = "10,10,10,10";
|
510 |
+
|
511 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_description_html_tag"] = "p";
|
512 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_description_text_alignment"] = "left";
|
513 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_description_font_style"] = "12,#787D85";
|
514 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_description_line_height"] = "1.7em";
|
515 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_description_font_family"] = "Roboto Slab:300";
|
516 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_description_margin"] = "0,5,0,5";
|
517 |
+
$blog_style_layout_data["blog_style_layout_thumbnail_description_padding"] = "5,10,10,5";
|
518 |
+
$blog_style_layout_data_serialize = array();
|
519 |
+
$blog_style_layout_data_serialize["meta_id"] = $row->id;
|
520 |
+
$blog_style_layout_data_serialize["old_gallery_id"] = $row->id;
|
521 |
+
$blog_style_layout_data_serialize["meta_key"] = "blog_style_layout_settings";
|
522 |
+
$blog_style_layout_data_serialize["meta_value"] = serialize($blog_style_layout_data);
|
523 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $blog_style_layout_data_serialize);
|
524 |
+
|
525 |
+
$compact_album_layout_data = array();
|
526 |
+
$compact_album_layout_data["compact_album_layout_cover_margin"] = "10,10,0,0";
|
527 |
+
$compact_album_layout_data["compact_album_layout_cover_padding"] = "0,0,0,0";
|
528 |
+
$compact_album_layout_data["compact_album_layout_cover_border_style"] = "0,none,#000000";
|
529 |
+
$compact_album_layout_data["compact_album_layout_cover_border_radius"] = "0";
|
530 |
+
$compact_album_layout_data["compact_album_layout_cover_shadow"] = "0,0,0,0";
|
531 |
+
$compact_album_layout_data["compact_album_layout_cover_shadow_color"] = "#000000";
|
532 |
+
$compact_album_layout_data["compact_album_layout_cover_hover_effect_value"] = "none,0,0,0";
|
533 |
+
$compact_album_layout_data["compact_album_layout_cover_transition_time"] = "1";
|
534 |
+
$compact_album_layout_data["compact_album_layout_cover_background_color_transparency"] = "#ebe8eb,50";
|
535 |
+
$compact_album_layout_data["compact_album_layout_cover_thumbnail_opacity"] = "100";
|
536 |
+
$compact_album_layout_data["compact_album_layout_cover_thumbnail_dimensions"] = "250,200";
|
537 |
+
|
538 |
+
$compact_album_layout_data["compact_album_layout_title_html_tag"] = "h2";
|
539 |
+
$compact_album_layout_data["compact_album_layout_title_text_alignment"] = "left";
|
540 |
+
$compact_album_layout_data["compact_album_layout_title_font_style"] = "20,#000000";
|
541 |
+
$compact_album_layout_data["compact_album_layout_title_line_height"] = "1.7em";
|
542 |
+
$compact_album_layout_data["compact_album_layout_title_font_family"] = "Roboto Slab:700";
|
543 |
+
$compact_album_layout_data["compact_album_layout_title_margin"] = "10,0,10,0";
|
544 |
+
$compact_album_layout_data["compact_album_layout_title_padding"] = "10,0,10,0";
|
545 |
+
|
546 |
+
$compact_album_layout_data["compact_album_layout_description_html_tag"] = "h3";
|
547 |
+
$compact_album_layout_data["compact_album_layout_description_text_alignment"] = "left";
|
548 |
+
$compact_album_layout_data["compact_album_layout_description_font_style"] = "16,#787D85";
|
549 |
+
$compact_album_layout_data["compact_album_layout_description_line_height"] = "1.7em";
|
550 |
+
$compact_album_layout_data["compact_album_layout_description_font_family"] = "Roboto Slab:300";
|
551 |
+
$compact_album_layout_data["compact_album_layout_description_margin"] = "10,0,10,0";
|
552 |
+
$compact_album_layout_data["compact_album_layout_description_padding"] = "0,0,10,0";
|
553 |
+
|
554 |
+
$compact_album_layout_data["compact_album_layout_gallery_title_html_tag"] = "h3";
|
555 |
+
$compact_album_layout_data["compact_album_layout_gallery_title_text_alignment"] = "left";
|
556 |
+
$compact_album_layout_data["compact_album_layout_gallery_title_font_style"] = "14,#787D85";
|
557 |
+
$compact_album_layout_data["compact_album_layout_gallery_title_line_height"] = "1.7em";
|
558 |
+
$compact_album_layout_data["compact_album_layout_gallery_title_font_family"] = "Roboto Slab:700";
|
559 |
+
$compact_album_layout_data["compact_album_layout_gallery_title_margin"] = "0,5,0,5";
|
560 |
+
$compact_album_layout_data["compact_album_layout_gallery_title_padding"] = "10,10,10,10";
|
561 |
+
|
562 |
+
$compact_album_layout_data["compact_album_layout_gallery_description_html_tag"] = "p";
|
563 |
+
$compact_album_layout_data["compact_album_layout_gallery_description_text_alignment"] = "left";
|
564 |
+
$compact_album_layout_data["compact_album_layout_gallery_description_font_style"] = "12,#787D85";
|
565 |
+
$compact_album_layout_data["compact_album_layout_gallery_description_line_height"] = "1.7em";
|
566 |
+
$compact_album_layout_data["compact_album_layout_gallery_description_font_family"] = "Roboto Slab:300";
|
567 |
+
$compact_album_layout_data["compact_album_layout_gallery_description_margin"] = "0,5,0,5";
|
568 |
+
$compact_album_layout_data["compact_album_layout_gallery_description_padding"] = "5,10,10,10";
|
569 |
+
|
570 |
+
$compact_album_layout_data["compact_album_layout_button_text"] = "Back To Album";
|
571 |
+
$compact_album_layout_data["compact_album_layout_button_color"] = "#a4cd39";
|
572 |
+
$compact_album_layout_data["compact_album_layout_button_hover_color"] = "#a4cd39";
|
573 |
+
$compact_album_layout_data["compact_album_layout_button_font_style"] = "14,#ffffff";
|
574 |
+
$compact_album_layout_data["compact_album_layout_button_font_hover_color"] = "#ffffff";
|
575 |
+
$compact_album_layout_data["compact_album_layout_button_text_alignment"] = "left";
|
576 |
+
$compact_album_layout_data["compact_album_layout_button_border_style"] = "0,none,#a4cd39";
|
577 |
+
$compact_album_layout_data["compact_album_layout_button_border_hover_color"] = "#a4cd39";
|
578 |
+
$compact_album_layout_data["compact_album_layout_button_border_radius"] = "4";
|
579 |
+
$compact_album_layout_data["compact_album_layout_button_text_font_family"] = "Roboto Slab:700";
|
580 |
+
$compact_album_layout_data["compact_album_layout_button_margin"] = "10,0,0,0";
|
581 |
+
$compact_album_layout_data["compact_album_layout_button_padding"] = "8,12,8,12";
|
582 |
+
|
583 |
+
|
584 |
+
$compact_album_data_serialize = array();
|
585 |
+
$compact_album_data_serialize["meta_id"] = $row->id;
|
586 |
+
$compact_album_data_serialize["old_gallery_id"] = $row->id;
|
587 |
+
$compact_album_data_serialize["meta_key"] = "compact_album_layout_settings";
|
588 |
+
$compact_album_data_serialize["meta_value"] = serialize($compact_album_layout_data);
|
589 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $compact_album_data_serialize);
|
590 |
+
|
591 |
+
$extended_album_layout_data = array();
|
592 |
+
$extended_album_layout_data["extended_album_layout_cover_margin"] = "10,10,10,10";
|
593 |
+
$extended_album_layout_data["extended_album_layout_cover_padding"] = "0,0,0,0";
|
594 |
+
$extended_album_layout_data["extended_album_layout_cover_border_style"] = "0,none,#000000";
|
595 |
+
$extended_album_layout_data["extended_album_layout_cover_border_radius"] = "0";
|
596 |
+
$extended_album_layout_data["extended_album_layout_cover_shadow"] = "0,0,0,0";
|
597 |
+
$extended_album_layout_data["extended_album_layout_cover_shadow_color"] = "#000000";
|
598 |
+
$extended_album_layout_data["extended_album_layout_cover_hover_effect_value"] = "none,0,0,0";
|
599 |
+
$extended_album_layout_data["extended_album_layout_cover_transition_time"] = "1";
|
600 |
+
$extended_album_layout_data["extended_album_layout_cover_background_color_transparency"] = "#ebe8eb,50";
|
601 |
+
$extended_album_layout_data["extended_album_layout_cover_thumbnail_opacity"] = "100";
|
602 |
+
$extended_album_layout_data["extended_album_layout_cover_thumbnail_dimensions"] = "250,200";
|
603 |
+
|
604 |
+
$extended_album_layout_data["extended_album_layout_title_html_tag"] = "h2";
|
605 |
+
$extended_album_layout_data["extended_album_layout_title_text_alignment"] = "left";
|
606 |
+
$extended_album_layout_data["extended_album_layout_title_font_style"] = "20,#000000";
|
607 |
+
$extended_album_layout_data["extended_album_layout_title_line_height"] = "1.7em";
|
608 |
+
$extended_album_layout_data["extended_album_layout_title_font_family"] = "Roboto Slab:700";
|
609 |
+
$extended_album_layout_data["extended_album_layout_title_margin"] = "10,0,10,0";
|
610 |
+
$extended_album_layout_data["extended_album_layout_title_padding"] = "10,0,10,0";
|
611 |
+
|
612 |
+
$extended_album_layout_data["extended_album_layout_description_html_tag"] = "h3";
|
613 |
+
$extended_album_layout_data["extended_album_layout_description_text_alignment"] = "left";
|
614 |
+
$extended_album_layout_data["extended_album_layout_description_font_style"] = "16,#787D85";
|
615 |
+
$extended_album_layout_data["extended_album_layout_description_line_height"] = "1.7em";
|
616 |
+
$extended_album_layout_data["extended_album_layout_description_font_family"] = "Roboto Slab:300";
|
617 |
+
$extended_album_layout_data["extended_album_layout_description_margin"] = "10,0,10,0";
|
618 |
+
$extended_album_layout_data["extended_album_layout_description_padding"] = "0,0,10,0";
|
619 |
+
|
620 |
+
$extended_album_layout_data["extended_album_layout_gallery_title_html_tag"] = "h3";
|
621 |
+
$extended_album_layout_data["extended_album_layout_gallery_title_text_alignment"] = "left";
|
622 |
+
$extended_album_layout_data["extended_album_layout_gallery_title_font_style"] = "16,#000000";
|
623 |
+
$extended_album_layout_data["extended_album_layout_gallery_title_line_height"] = "1.7em";
|
624 |
+
$extended_album_layout_data["extended_album_layout_gallery_title_font_family"] = "Roboto Slab:700";
|
625 |
+
$extended_album_layout_data["extended_album_layout_gallery_title_margin"] = "0,5,0,5";
|
626 |
+
$extended_album_layout_data["extended_album_layout_gallery_title_padding"] = "10,10,10,10";
|
627 |
+
|
628 |
+
$extended_album_layout_data["extended_album_layout_gallery_description_html_tag"] = "p";
|
629 |
+
$extended_album_layout_data["extended_album_layout_gallery_description_text_alignment"] = "left";
|
630 |
+
$extended_album_layout_data["extended_album_layout_gallery_description_font_style"] = "12,#787D85";
|
631 |
+
$extended_album_layout_data["extended_album_layout_gallery_description_line_height"] = "1.7em";
|
632 |
+
$extended_album_layout_data["extended_album_layout_gallery_description_font_family"] = "Roboto Slab:300";
|
633 |
+
$extended_album_layout_data["extended_album_layout_gallery_description_margin"] = "0,5,0,5";
|
634 |
+
$extended_album_layout_data["extended_album_layout_gallery_description_padding"] = "5,10,10,10";
|
635 |
+
|
636 |
+
$extended_album_layout_data["extended_album_layout_button_text"] = "Back To Album";
|
637 |
+
$extended_album_layout_data["extended_album_layout_button_color"] = "#a4cd39";
|
638 |
+
$extended_album_layout_data["extended_album_layout_button_hover_color"] = "#a4cd39";
|
639 |
+
$extended_album_layout_data["extended_album_layout_button_font_style"] = "14,#ffffff";
|
640 |
+
$extended_album_layout_data["extended_album_layout_button_font_hover_color"] = "#ffffff";
|
641 |
+
$extended_album_layout_data["extended_album_layout_button_text_alignment"] = "left";
|
642 |
+
$extended_album_layout_data["extended_album_layout_button_border_style"] = "0,none,#a4cd39";
|
643 |
+
$extended_album_layout_data["extended_album_layout_button_border_hover_color"] = "#a4cd39";
|
644 |
+
$extended_album_layout_data["extended_album_layout_button_border_radius"] = "4";
|
645 |
+
$extended_album_layout_data["extended_album_layout_button_text_font_family"] = "Roboto Slab:700";
|
646 |
+
$extended_album_layout_data["extended_album_layout_button_margin"] = "10,0,0,0";
|
647 |
+
$extended_album_layout_data["extended_album_layout_button_padding"] = "8,12,8,12";
|
648 |
+
|
649 |
+
$extended_album_data_serialize = array();
|
650 |
+
$extended_album_data_serialize["meta_id"] = $row->id;
|
651 |
+
$extended_album_data_serialize["old_gallery_id"] = $row->id;
|
652 |
+
$extended_album_data_serialize["meta_key"] = "extended_album_layout_settings";
|
653 |
+
$extended_album_data_serialize["meta_value"] = serialize($extended_album_layout_data);
|
654 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $extended_album_data_serialize);
|
655 |
+
|
656 |
+
$custom_css_data = array();
|
657 |
+
$custom_css_data["custom_css"] = "";
|
658 |
+
|
659 |
+
$custom_css_data_serialize = array();
|
660 |
+
$custom_css_data_serialize["meta_id"] = $row->id;
|
661 |
+
$custom_css_data_serialize["old_gallery_id"] = $row->id;
|
662 |
+
$custom_css_data_serialize["meta_key"] = "custom_css";
|
663 |
+
$custom_css_data_serialize["meta_value"] = serialize($custom_css_data);
|
664 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $custom_css_data_serialize);
|
665 |
+
break;
|
666 |
+
|
667 |
+
case "lightboxes_settings":
|
668 |
+
$fancy_box_setting = array();
|
669 |
+
$fancy_box_setting["fancy_box_margin"] = "100";
|
670 |
+
$fancy_box_setting["fancy_box_padding"] = "20";
|
671 |
+
$fancy_box_setting["fancy_box_open_effect"] = "fade";
|
672 |
+
$fancy_box_setting["fancy_box_close_effect"] = "fade";
|
673 |
+
$fancy_box_setting["fancy_box_open_speed"] = "300";
|
674 |
+
$fancy_box_setting["fancy_box_close_speed"] = "300";
|
675 |
+
$fancy_box_setting["fancy_box_overlay_color"] = "#000000";
|
676 |
+
$fancy_box_setting["fancy_box_overlay_opacity"] = "75";
|
677 |
+
$fancy_box_setting["fancy_box_border_style"] = "2,solid,#cccccc";
|
678 |
+
$fancy_box_setting["fancy_box_border_radius"] = "2";
|
679 |
+
$fancy_box_setting["fancy_box_background_color"] = "#ffffff";
|
680 |
+
$fancy_box_setting["fancy_box_background_opacity"] = "100";
|
681 |
+
$fancy_box_setting["fancy_box_title"] = "true";
|
682 |
+
$fancy_box_setting["fancy_box_title_font_style"] = "14,#000000";
|
683 |
+
$fancy_box_setting["fancy_box_title_font_family"] = "Roboto Slab:700";
|
684 |
+
$fancy_box_setting["fancy_box_description"] = "true";
|
685 |
+
$fancy_box_setting["fancy_box_description_font_style"] = "12,#000000";
|
686 |
+
$fancy_box_setting["fancy_box_description_font_family"] = "Roboto Slab:300";
|
687 |
+
$fancy_box_setting["fancy_box_cyclic"] = "false";
|
688 |
+
$fancy_box_setting["fancy_box_arrows"] = "true";
|
689 |
+
$fancy_box_setting["fancy_box_mouse_wheel"] = "true";
|
690 |
+
$fancy_box_setting["fancy_box_button_position"] = "bottom";
|
691 |
+
$fancy_box_setting["fancy_box_enable_escape_button"] = "false";
|
692 |
+
$fancy_box_setting["fancy_box_title_position"] = "inside";
|
693 |
+
$fancy_box_setting["fancy_box_show_close_button"] = "true";
|
694 |
+
$fancy_box_setting["fancy_box_change_speed"] = "3000";
|
695 |
+
$fancy_box_setting["fancy_box_title_html_tag"] = "h2";
|
696 |
+
$fancy_box_setting["fancy_box_title_text_alignment"] = "left";
|
697 |
+
$fancy_box_setting["fancy_box_title_margin"] = "5,0,5,0";
|
698 |
+
$fancy_box_setting["fancy_box_title_padding"] = "0,0,0,0";
|
699 |
+
$fancy_box_setting["fancy_box_description_html_tag"] = "h3";
|
700 |
+
$fancy_box_setting["fancy_box_description_text_alignment"] = "left";
|
701 |
+
$fancy_box_setting["fancy_box_description_margin"] = "5,0,5,0";
|
702 |
+
$fancy_box_setting["fancy_box_description_padding"] = "0,0,0,0";
|
703 |
+
|
704 |
+
$fancy_box_data_serialize = array();
|
705 |
+
$fancy_box_data_serialize["meta_id"] = $row->id;
|
706 |
+
$fancy_box_data_serialize["old_gallery_id"] = $row->id;
|
707 |
+
$fancy_box_data_serialize["meta_key"] = "fancy_box_settings";
|
708 |
+
$fancy_box_data_serialize["meta_value"] = serialize($fancy_box_setting);
|
709 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $fancy_box_data_serialize);
|
710 |
+
|
711 |
+
$color_box_settings = array();
|
712 |
+
$color_box_settings["lightbox_color_box_type"] = "type1";
|
713 |
+
$color_box_settings["lightbox_color_box_transition_effect"] = "elastic";
|
714 |
+
$color_box_settings["lightbox_color_box_transition_speed"] = "350";
|
715 |
+
$color_box_settings["lightbox_color_box_fadeout"] = "300";
|
716 |
+
$color_box_settings["lightbox_color_box_opacity"] = "75";
|
717 |
+
$color_box_settings["lightbox_color_box_title"] = "true";
|
718 |
+
|
719 |
+
$color_box_settings["lightbox_color_box_title_html_tag"] = "h2";
|
720 |
+
$color_box_settings["lightbox_color_box_title_text_alignment"] = "left";
|
721 |
+
$color_box_settings["lightbox_color_box_title_font_style"] = "16,#ffffff";
|
722 |
+
$color_box_settings["lightbox_color_box_title_font_family"] = "Roboto Slab:700";
|
723 |
+
$color_box_settings["lightbox_color_box_title_margin"] = "5,0,5,0";
|
724 |
+
$color_box_settings["lightbox_color_box_title_padding"] = "0,0,0,10";
|
725 |
+
|
726 |
+
$color_box_settings["lightbox_color_box_description"] = "true";
|
727 |
+
$color_box_settings["lightbox_color_box_description_html_tag"] = "h3";
|
728 |
+
$color_box_settings["lightbox_color_box_description_text_alignment"] = "left";
|
729 |
+
$color_box_settings["lightbox_color_box_description_font_style"] = "14,#ffffff";
|
730 |
+
$color_box_settings["lightbox_color_box_description_font_family"] = "Roboto Slab:300";
|
731 |
+
$color_box_settings["lightbox_color_box_description_margin"] = "5,0,5,0";
|
732 |
+
$color_box_settings["lightbox_color_box_description_padding"] = "0,0,0,10";
|
733 |
+
|
734 |
+
$color_box_settings["lightbox_color_box_open_page_load"] = "false";
|
735 |
+
$color_box_settings["lightbox_color_box_show_close_button"] = "true";
|
736 |
+
$color_box_settings["lightbox_color_box_sideshow"] = "true";
|
737 |
+
$color_box_settings["lightbox_color_box_slideshow_speed"] = "10000";
|
738 |
+
$color_box_settings["lightbox_color_box_auto_slideshow"] = "true";
|
739 |
+
$color_box_settings["lightbox_color_box_fixed_position"] = "false";
|
740 |
+
$color_box_settings["lightbox_color_box_postioning"] = "reposition";
|
741 |
+
$color_box_settings["lightbox_color_box_postioning_value"] = "50";
|
742 |
+
$color_box_settings["lightbox_color_box_background"] = "#000000";
|
743 |
+
|
744 |
+
$color_box_setting_serialize = array();
|
745 |
+
$color_box_setting_serialize["meta_id"] = $row->id;
|
746 |
+
$color_box_setting_serialize["old_gallery_id"] = $row->id;
|
747 |
+
$color_box_setting_serialize["meta_key"] = "color_box_settings";
|
748 |
+
$color_box_setting_serialize["meta_value"] = serialize($color_box_settings);
|
749 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $color_box_setting_serialize);
|
750 |
+
|
751 |
+
$foo_box_settings = array();
|
752 |
+
$foo_box_settings["foo_box_overlay_color"] = "#000000";
|
753 |
+
$foo_box_settings["foo_box_overlay_opacity"] = "75";
|
754 |
+
$foo_box_settings["foo_box_border_style"] = "5,solid,#ffffff";
|
755 |
+
$foo_box_settings["foo_box_border_radius"] = "5";
|
756 |
+
|
757 |
+
$foo_box_settings["foo_box_image_title_html_tag"] = "h2";
|
758 |
+
$foo_box_settings["foo_box_image_title_text_alignment"] = "left";
|
759 |
+
$foo_box_settings["foo_box_title"] = "true";
|
760 |
+
$foo_box_settings["foo_box_title_font_style"] = "16,#ffffff";
|
761 |
+
$foo_box_settings["foo_box_title_font_family"] = "Roboto Slab:700";
|
762 |
+
$foo_box_settings["foo_box_image_title_margin"] = "5,0,5,0";
|
763 |
+
$foo_box_settings["foo_box_image_title_padding"] = "0,0,0,0";
|
764 |
+
|
765 |
+
$foo_box_settings["foo_box_image_description_html_tag"] = "h3";
|
766 |
+
$foo_box_settings["foo_box_image_description_text_alignment"] = "left";
|
767 |
+
$foo_box_settings["foo_box_description"] = "true";
|
768 |
+
$foo_box_settings["foo_box_description_font_style"] = "14,#ffffff";
|
769 |
+
$foo_box_settings["foo_box_description_font_family"] = "Roboto Slab:300";
|
770 |
+
$foo_box_settings["foo_box_image_description_margin"] = "5,0,5,0";
|
771 |
+
$foo_box_settings["foo_box_image_description_padding"] = "0,0,0,0";
|
772 |
+
|
773 |
+
$foo_box_settings["foo_box_show_count"] = "true";
|
774 |
+
$foo_box_settings["foo_box_close_overlay_click"] = "false";
|
775 |
+
$foo_box_settings["foo_box_hide_page_scrollbar"] = "false";
|
776 |
+
$foo_box_settings["foo_box_show_on_hover"] = "false";
|
777 |
+
|
778 |
+
$foo_box_settings_serialize = array();
|
779 |
+
$foo_box_settings_serialize["meta_id"] = $row->id;
|
780 |
+
$foo_box_settings_serialize["old_gallery_id"] = $row->id;
|
781 |
+
$foo_box_settings_serialize["meta_key"] = "foo_box_settings";
|
782 |
+
$foo_box_settings_serialize["meta_value"] = serialize($foo_box_settings);
|
783 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $foo_box_settings_serialize);
|
784 |
+
|
785 |
+
$nivo_lightbox_settings = array();
|
786 |
+
$nivo_lightbox_settings["lightbox_nivo_choose_effect"] = "fade";
|
787 |
+
$nivo_lightbox_settings["lightbox_nivo_keyboard_navigation"] = "false";
|
788 |
+
$nivo_lightbox_settings["lightbox_nivo_click_image_to_close"] = "true";
|
789 |
+
$nivo_lightbox_settings["lightbox_nivo_click_overlay_to_close"] = "true";
|
790 |
+
$nivo_lightbox_settings["lightbox_nivo_overlay_color"] = "#000000";
|
791 |
+
$nivo_lightbox_settings["lightbox_nivo_overlay_opacity"] = "75";
|
792 |
+
$nivo_lightbox_settings["lightbox_nivo_border_style"] = "5,solid,#ffffff";
|
793 |
+
$nivo_lightbox_settings["lightbox_nivo_border_radius"] = "5";
|
794 |
+
$nivo_lightbox_settings["lightbox_nivo_title"] = "true";
|
795 |
+
|
796 |
+
$nivo_lightbox_settings["lightbox_nivo_title_html_tag"] = "h2";
|
797 |
+
$nivo_lightbox_settings["lightbox_nivo_title_text_alignment"] = "center";
|
798 |
+
$nivo_lightbox_settings["lightbox_nivo_title_font_style"] = "16,#ffffff";
|
799 |
+
$nivo_lightbox_settings["lightbox_nivo_title_font_family"] = "Roboto Slab:700";
|
800 |
+
$nivo_lightbox_settings["lightbox_nivo_title_margin"] = "10,0,0,0";
|
801 |
+
$nivo_lightbox_settings["lightbox_nivo_title_padding"] = "10,10,0,10";
|
802 |
+
|
803 |
+
$nivo_lightbox_settings["lightbox_nivo_description"] = "true";
|
804 |
+
$nivo_lightbox_settings["lightbox_nivo_description_html_tag"] = "h3";
|
805 |
+
$nivo_lightbox_settings["lightbox_nivo_description_text_alignment"] = "center";
|
806 |
+
$nivo_lightbox_settings["lightbox_nivo_description_font_style"] = "14,#ffffff";
|
807 |
+
$nivo_lightbox_settings["lightbox_nivo_description_font_family"] = "Roboto Slab:300";
|
808 |
+
$nivo_lightbox_settings["lightbox_nivo_description_margin"] = "0,0,0,0";
|
809 |
+
$nivo_lightbox_settings["lightbox_nivo_description_padding"] = "0,10,10,10";
|
810 |
+
|
811 |
+
$nivo_lightbox_serialize = array();
|
812 |
+
$nivo_lightbox_serialize["meta_id"] = $row->id;
|
813 |
+
$nivo_lightbox_serialize["old_gallery_id"] = $row->id;
|
814 |
+
$nivo_lightbox_serialize["meta_key"] = "nivo_lightbox_settings";
|
815 |
+
$nivo_lightbox_serialize["meta_value"] = serialize($nivo_lightbox_settings);
|
816 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $nivo_lightbox_serialize);
|
817 |
+
|
818 |
+
$lightcase_settings = array();
|
819 |
+
$lightcase_settings["lightcase_image_transition"] = "fade";
|
820 |
+
$lightcase_settings["lightcase_animation_speed_starting_transition"] = 350;
|
821 |
+
$lightcase_settings["lightcase_animation_speed_ending_transition"] = 250;
|
822 |
+
$lightcase_settings["lightcase_onoverlay_color"] = "#000000";
|
823 |
+
$lightcase_settings["lightcase_onoverlay_opacity"] = 75;
|
824 |
+
$lightcase_settings["lightcase_button_font_style"] = "30,#ffffff";
|
825 |
+
$lightcase_settings["lightcase_close_button"] = "show";
|
826 |
+
$lightcase_settings["lightcase_image_counter"] = "show";
|
827 |
+
$lightcase_settings["lightcase_counter_font_style"] = "10,#ffffff";
|
828 |
+
$lightcase_settings["lightcase_counter_font_family"] = "Roboto Slab:700";
|
829 |
+
$lightcase_settings["lightcase_border"] = "0,none,#ffffff";
|
830 |
+
$lightcase_settings["lightcase_border_radius"] = 0;
|
831 |
+
$lightcase_settings["lightcase_autoplay_slideshow"] = "true";
|
832 |
+
$lightcase_settings["lightcase_slideshow_interval"] = "10";
|
833 |
+
|
834 |
+
$lightcase_settings["lightcase_image_title_html_tag"] = "h2";
|
835 |
+
$lightcase_settings["lightcase_image_title_text_alignment"] = "left";
|
836 |
+
$lightcase_settings["lightcase_image_title_font_style"] = "16,#ffffff";
|
837 |
+
$lightcase_settings["lightcase_image_title_font_family"] = "Roboto Slab:700";
|
838 |
+
$lightcase_settings["lightcase_image_title_margin"] = "5,0,5,0";
|
839 |
+
$lightcase_settings["lightcase_image_title_padding"] = "0,0,0,0";
|
840 |
+
$lightcase_settings["lightcase_image_title"] = "true";
|
841 |
+
$lightcase_settings["lightcase_image_description"] = "true";
|
842 |
+
|
843 |
+
$lightcase_settings["lightcase_image_description_html_tag"] = "h3";
|
844 |
+
$lightcase_settings["lightcase_image_description_text_alignment"] = "left";
|
845 |
+
$lightcase_settings["lightcase_image_description_font_style"] = "14,#ffffff";
|
846 |
+
$lightcase_settings["lightcase_image_description_font_family"] = "Roboto Slab:300";
|
847 |
+
$lightcase_settings["lightcase_image_description_margin"] = "5,0,5,0";
|
848 |
+
$lightcase_settings["lightcase_image_description_padding"] = "0,0,0,0";
|
849 |
+
|
850 |
+
$lightcase_settings_serialize = array();
|
851 |
+
$lightcase_settings_serialize["meta_id"] = $row->id;
|
852 |
+
$lightcase_settings_serialize["old_gallery_id"] = $row->id;
|
853 |
+
$lightcase_settings_serialize["meta_key"] = "lightcase_settings";
|
854 |
+
$lightcase_settings_serialize["meta_value"] = serialize($lightcase_settings);
|
855 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $lightcase_settings_serialize);
|
856 |
+
break;
|
857 |
+
|
858 |
+
case "general_settings":
|
859 |
+
|
860 |
+
$global_options = array();
|
861 |
+
$global_options["global_options_generated_image_dimensions"] = "1600,900";
|
862 |
+
$global_options["global_options_thumbnail_dimensions"] = "250,200";
|
863 |
+
$global_options["global_options_language_direction"] = "left_to_right";
|
864 |
+
$global_options["global_options_right_click_protection"] = "disable";
|
865 |
+
|
866 |
+
$global_options_serialize = array();
|
867 |
+
$global_options_serialize["meta_id"] = $row->id;
|
868 |
+
$global_options_serialize["old_gallery_id"] = $row->id;
|
869 |
+
$global_options_serialize["meta_key"] = "global_options_settings";
|
870 |
+
$global_options_serialize["meta_value"] = serialize($global_options);
|
871 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $global_options_serialize);
|
872 |
+
|
873 |
+
$lazyload_settings = array();
|
874 |
+
$lazyload_settings["loader_text"] = "show";
|
875 |
+
$lazyload_settings["lazy_loader_title"] = "Loading. Please Wait...";
|
876 |
+
$lazyload_settings["lazy_loader_background_color"] = "#ffffff";
|
877 |
+
$lazyload_settings["lazy_loader_color"] = "#080808";
|
878 |
+
$lazyload_settings["lazy_loader_font_style"] = "15,#000000";
|
879 |
+
$lazyload_settings["loader_font_family"] = "Roboto Slab:700";
|
880 |
+
|
881 |
+
$lazyload_settings_serialize = array();
|
882 |
+
$lazyload_settings_serialize["meta_id"] = $row->id;
|
883 |
+
$lazyload_settings_serialize["old_gallery_id"] = $row->id;
|
884 |
+
$lazyload_settings_serialize["meta_key"] = "lazy_load_settings";
|
885 |
+
$lazyload_settings_serialize["meta_value"] = serialize($lazyload_settings);
|
886 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $lazyload_settings_serialize);
|
887 |
+
|
888 |
+
$searchbox_settings = array();
|
889 |
+
$searchbox_settings["search_box_font_style"] = "14,#000000";
|
890 |
+
$searchbox_settings["search_box_font_family"] = "Roboto Slab:700";
|
891 |
+
$searchbox_settings["search_box_placeholder_text"] = "Search ...";
|
892 |
+
$searchbox_settings["search_box_background_color_and_background_transparency"] = ",100";
|
893 |
+
$searchbox_settings["search_box_border_style"] = "2,solid,#9e9e9e";
|
894 |
+
$searchbox_settings["search_box_border_radius"] = "0";
|
895 |
+
$searchbox_settings["search_box_margin"] = "0,5,20,0";
|
896 |
+
$searchbox_settings["search_box_padding"] = "5,10,5,10";
|
897 |
+
|
898 |
+
$searchbox_settings_serialize = array();
|
899 |
+
$searchbox_settings_serialize["meta_id"] = $row->id;
|
900 |
+
$searchbox_settings_serialize["old_gallery_id"] = $row->id;
|
901 |
+
$searchbox_settings_serialize["meta_key"] = "search_box_settings";
|
902 |
+
$searchbox_settings_serialize["meta_value"] = serialize($searchbox_settings);
|
903 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $searchbox_settings_serialize);
|
904 |
+
|
905 |
+
$orderby_settings = array();
|
906 |
+
$orderby_settings["order_by_font_style"] = "14,#000000";
|
907 |
+
$orderby_settings["order_by_font_family"] = "Roboto Slab:700";
|
908 |
+
$orderby_settings["order_by_background_color_and_background_transparency"] = ",100";
|
909 |
+
$orderby_settings["order_by_background_hover_color"] = "";
|
910 |
+
$orderby_settings["order_by_active_font_color"] = "#2fbfc1";
|
911 |
+
$orderby_settings["order_by_active_font_hover_color"] = "#2fbfc1";
|
912 |
+
$orderby_settings["order_by_border_style"] = "2,solid,#9e9e9e";
|
913 |
+
$orderby_settings["order_by_border_radius"] = "0";
|
914 |
+
$orderby_settings["order_by_border_hover_color"] = "#2fbfc1";
|
915 |
+
$orderby_settings["order_by_margin"] = "0,5,20,0";
|
916 |
+
$orderby_settings["order_by_padding"] = "5,10,5,10";
|
917 |
+
|
918 |
+
$orderby_settings_serialize = array();
|
919 |
+
$orderby_settings_serialize["meta_id"] = $row->id;
|
920 |
+
$orderby_settings_serialize["old_gallery_id"] = $row->id;
|
921 |
+
$orderby_settings_serialize["meta_key"] = "order_by_settings";
|
922 |
+
$orderby_settings_serialize["meta_value"] = serialize($orderby_settings);
|
923 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $orderby_settings_serialize);
|
924 |
+
|
925 |
+
$filter_settings = array();
|
926 |
+
$filter_settings["filters_font_style"] = "14,#000000";
|
927 |
+
$filter_settings["filters_font_family"] = "Roboto Slab:700";
|
928 |
+
$filter_settings["filters_margin"] = "0,5,20,0";
|
929 |
+
$filter_settings["filters_padding"] = "5,10,5,10";
|
930 |
+
$filter_settings["filters_background_color_and_background_transparency"] = ",100";
|
931 |
+
$filter_settings["filters_background_hover_color"] = "";
|
932 |
+
$filter_settings["filters_border_style"] = "2,solid,#9e9e9e";
|
933 |
+
$filter_settings["filters_border_radius"] = "0";
|
934 |
+
$filter_settings["filters_border_hover_color"] = "#2fbfc1";
|
935 |
+
$filter_settings["filters_active_font_color"] = "#2fbfc1";
|
936 |
+
$filter_settings["filters_active_font_hover_color"] = "#2fbfc1";
|
937 |
+
|
938 |
+
$filter_settings_serialize = array();
|
939 |
+
$filter_settings_serialize["meta_id"] = $row->id;
|
940 |
+
$filter_settings_serialize["old_gallery_id"] = $row->id;
|
941 |
+
$filter_settings_serialize["meta_key"] = "filter_settings";
|
942 |
+
$filter_settings_serialize["meta_value"] = serialize($filter_settings);
|
943 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $filter_settings_serialize);
|
944 |
+
|
945 |
+
$page_navigation = array();
|
946 |
+
$page_navigation["page_navigation_margin"] = "20,2,20,2";
|
947 |
+
$page_navigation["page_navigation_padding"] = "5,10,5,10";
|
948 |
+
$page_navigation["page_navigation_border_style"] = "1,solid,#000000";
|
949 |
+
$page_navigation["page_navigation_border_radius"] = "0";
|
950 |
+
$page_navigation["page_navigation_alignment"] = "center";
|
951 |
+
$page_navigation["page_navigation_position"] = "bottom";
|
952 |
+
$page_navigation["page_navigation_numbering"] = "yes";
|
953 |
+
$page_navigation["page_navigation_button_text"] = "text";
|
954 |
+
$page_navigation["page_navigation_font_style"] = "14,#ffffff";
|
955 |
+
$page_navigation["page_navigation_font_family"] = "Roboto Slab:700";
|
956 |
+
$page_navigation["page_navigation_background_color"] = "#000000";
|
957 |
+
$page_navigation["page_navigation_background_transparency"] = "100";
|
958 |
+
|
959 |
+
$page_navigation_serialize = array();
|
960 |
+
$page_navigation_serialize["meta_id"] = $row->id;
|
961 |
+
$page_navigation_serialize["old_gallery_id"] = $row->id;
|
962 |
+
$page_navigation_serialize["meta_key"] = "page_navigation_settings";
|
963 |
+
$page_navigation_serialize["meta_value"] = serialize($page_navigation);
|
964 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $page_navigation_serialize);
|
965 |
+
|
966 |
+
$watermark_settings = array();
|
967 |
+
$watermark_settings["watermark_settings_type"] = "none";
|
968 |
+
$watermark_settings["watermark_settings_text"] = "";
|
969 |
+
$watermark_settings["watermark_settings_font_style"] = "20,#cccccc";
|
970 |
+
$watermark_settings["watermark_settings_position"] = "top_left";
|
971 |
+
$watermark_settings["watermark_settings_url"] = "";
|
972 |
+
$watermark_settings["watermark_settings_size"] = "";
|
973 |
+
$watermark_settings["watermark_setting_angle"] = "0";
|
974 |
+
$watermark_settings["watermark_setting_offset"] = "0,0";
|
975 |
+
$watermark_settings["watermark_setting_opacity"] = "100";
|
976 |
+
|
977 |
+
$watermark_settings_serialize = array();
|
978 |
+
$watermark_settings_serialize["meta_id"] = $row->id;
|
979 |
+
$watermark_settings_serialize["old_gallery_id"] = $row->id;
|
980 |
+
$watermark_settings_serialize["meta_key"] = "watermark_settings";
|
981 |
+
$watermark_settings_serialize["meta_value"] = serialize($watermark_settings);
|
982 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $watermark_settings_serialize);
|
983 |
+
|
984 |
+
$advertisement = array();
|
985 |
+
$advertisement["advertisement_type"] = "none";
|
986 |
+
$advertisement["advertisement_text"] = "";
|
987 |
+
$advertisement["advertisement_link"] = "";
|
988 |
+
$advertisement["advertisement_font_style"] = "20,#cccccc";
|
989 |
+
$advertisement["advertisement_text_angle"] = "";
|
990 |
+
$advertisement["advertisement_font_family"] = "Roboto Slab:300";
|
991 |
+
$advertisement["advertisement_position"] = "top_left";
|
992 |
+
$advertisement["advertisement_url"] = "";
|
993 |
+
$advertisement["advertisement_width"] = "100";
|
994 |
+
$advertisement["advertisement_height"] = "100";
|
995 |
+
$advertisement["advertisement_opacity"] = "100";
|
996 |
+
|
997 |
+
$advertisement_serialize = array();
|
998 |
+
$advertisement_serialize["meta_id"] = $row->id;
|
999 |
+
$advertisement_serialize["old_gallery_id"] = $row->id;
|
1000 |
+
$advertisement_serialize["meta_key"] = "advertisement_settings";
|
1001 |
+
$advertisement_serialize["meta_value"] = serialize($advertisement);
|
1002 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $advertisement_serialize);
|
1003 |
+
break;
|
1004 |
+
|
1005 |
+
case "roles_and_capabilities_settings":
|
1006 |
+
$roles_data = array();
|
1007 |
+
$roles_data["roles_and_capabilities"] = "1,1,1,0,0,0";
|
1008 |
+
$roles_data["show_gallery_bank_top_bar_menu"] = "enable";
|
1009 |
+
$roles_data["others_full_control_capability"] = "0";
|
1010 |
+
$roles_data["administrator_privileges"] = "1,1,1,1,1,1,1,1,1,1,1,1";
|
1011 |
+
$roles_data["author_privileges"] = "0,1,1,0,0,0,1,0,0,0,1,0";
|
1012 |
+
$roles_data["editor_privileges"] = "0,0,0,0,0,0,1,0,1,0,0,0";
|
1013 |
+
$roles_data["contributor_privileges"] = "0,0,0,1,0,0,1,0,0,0,0,0";
|
1014 |
+
$roles_data["subscriber_privileges"] = "0,0,0,0,0,0,0,0,0,0,0,0";
|
1015 |
+
$roles_data["other_privileges"] = "0,0,0,0,0,0,0,0,0,0,0,0";
|
1016 |
+
$user_capabilities = get_others_capabilities_gallery_bank();
|
1017 |
+
$other_roles_array = array();
|
1018 |
+
$other_roles_access_array = array(
|
1019 |
+
"manage_options",
|
1020 |
+
"edit_plugins",
|
1021 |
+
"edit_posts",
|
1022 |
+
"publish_posts",
|
1023 |
+
"publish_pages",
|
1024 |
+
"edit_pages",
|
1025 |
+
"read"
|
1026 |
+
);
|
1027 |
+
foreach ($other_roles_access_array as $role) {
|
1028 |
+
if (in_array($role, $user_capabilities)) {
|
1029 |
+
array_push($other_roles_array, $role);
|
1030 |
+
}
|
1031 |
+
}
|
1032 |
+
$roles_data["capabilities"] = $other_roles_array;
|
1033 |
+
|
1034 |
+
$roles_data_serialize = array();
|
1035 |
+
$roles_data_serialize["meta_id"] = $row->id;
|
1036 |
+
$roles_data_serialize["old_gallery_id"] = $row->id;
|
1037 |
+
$roles_data_serialize["meta_key"] = "roles_and_capabilities_settings";
|
1038 |
+
$roles_data_serialize["meta_value"] = serialize($roles_data);
|
1039 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $roles_data_serialize);
|
1040 |
+
break;
|
1041 |
+
|
1042 |
+
case "other_settings":
|
1043 |
+
$other_settings = array();
|
1044 |
+
$other_settings["remove_table_at_uninstall"] = "disable";
|
1045 |
+
$other_settings["automatic_updates"] = "disable";
|
1046 |
+
|
1047 |
+
$other_settings_serialize = array();
|
1048 |
+
$other_settings_serialize["meta_id"] = $row->id;
|
1049 |
+
$other_settings_serialize["old_gallery_id"] = $row->id;
|
1050 |
+
$other_settings_serialize["meta_key"] = "other_settings";
|
1051 |
+
$other_settings_serialize["meta_value"] = serialize($other_settings);
|
1052 |
+
$obj_dbHelper_gallery_bank_meta_table->insertCommand(gallery_bank_meta(), $other_settings_serialize);
|
1053 |
+
break;
|
1054 |
+
}
|
1055 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1056 |
}
|
1057 |
+
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
$obj_dbHelper_gallery_bank = new dbHelper_install_script_gallery_bank();
|
1061 |
+
switch ($gallery_bank_version_number) {
|
1062 |
+
case "":
|
1063 |
table_gallery_bank();
|
1064 |
table_gallery_bank_meta();
|
1065 |
+
|
1066 |
+
global $wpdb, $current_user;
|
1067 |
+
$count_gallery = $wpdb->get_var
|
1068 |
+
(
|
1069 |
+
$wpdb->prepare
|
1070 |
+
(
|
1071 |
+
"SELECT count(id) FROM " . gallery_bank_parent() . " WHERE " . gallery_bank_parent() . ". type = %s", "gallery"
|
1072 |
+
)
|
1073 |
);
|
1074 |
+
if ($count_gallery == 0) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1075 |
$gallery_parent_id = get_parent_id_gallery_bank("galleries");
|
1076 |
$insert_gallery = array();
|
1077 |
$insert_gallery["type"] = "gallery";
|
1079 |
$gallery_id = $obj_dbHelper_gallery_bank->insertCommand(gallery_bank_parent(), $insert_gallery);
|
1080 |
|
1081 |
$insert_gallery_meta = array();
|
1082 |
+
$insert_gallery_meta["gallery_title"] = "Be happy for this moment. This moment is your life.";
|
1083 |
+
$insert_gallery_meta["gallery_description"] = "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.</p>";
|
1084 |
+
$insert_gallery_meta["created_date"] = time();
|
1085 |
$insert_gallery_meta["edited_on"] = time();
|
1086 |
+
$insert_gallery_meta["gallery_cover_image"] = "demo2.jpg";
|
1087 |
+
$insert_gallery_meta["edited_by"] = $current_user->display_name;
|
1088 |
+
$insert_gallery_meta["author"] = $current_user->display_name;
|
1089 |
|
1090 |
$insert_gallery_data = array();
|
1091 |
$insert_gallery_data["meta_id"] = $gallery_id;
|
|
|
1092 |
$insert_gallery_data["meta_key"] = "gallery_data";
|
1093 |
$insert_gallery_data["meta_value"] = serialize($insert_gallery_meta);
|
1094 |
$obj_dbHelper_gallery_bank->insertCommand(gallery_bank_meta(), $insert_gallery_data);
|
1095 |
|
1096 |
+
|
1097 |
+
$image_meta_data = array();
|
1098 |
+
|
1099 |
+
$images = array("demo1.jpg", "demo2.jpg", "demo3.jpg", "after.jpg", "bg-app.jpg", "demo1.jpg", "demo2.jpg", "demo3.jpg", "after.jpg", "bg-app.jpg", "demo1.jpg", "demo2.jpg", "demo3.jpg", "after.jpg", "bg-app.jpg", "demo1.jpg", "demo2.jpg", "demo3.jpg", "after.jpg", "bg-app.jpg");
|
1100 |
+
for ($flag = 0; $flag < count($images); $flag++) {
|
1101 |
+
$image_name = $images[$flag];
|
|
|
|
|
1102 |
|
1103 |
$image_data = get_thumbnail_dimension_gallery_bank();
|
1104 |
$fileName = wp_unique_filename(GALLERY_BANK_ORIGINAL_DIR, $image_name);
|
1105 |
|
1106 |
+
$src_file = GALLERY_BANK_PLUGIN_DIR_URL . "/assets/admin/images/" . $image_name;
|
1107 |
copy($src_file, GALLERY_BANK_ORIGINAL_DIR . $fileName);
|
1108 |
copy($src_file, GALLERY_BANK_UPLOAD_DIR . $fileName);
|
1109 |
|
1110 |
$thumbnail_image_name = $obj_dbHelper_gallery_bank->createThumbs_gallery_bank($image_name, $image_data);
|
1111 |
$image_exif_detail = $obj_dbHelper_gallery_bank->file_exif_information_gallery_bank(GALLERY_BANK_UPLOAD_DIR . $image_name, "FILE");
|
1112 |
+
|
1113 |
+
$image_meta_data["image_title"] = "Demo Image";
|
|
|
|
|
|
|
1114 |
$image_meta_data["image_name"] = $fileName;
|
1115 |
|
1116 |
$image_meta_data["enable_redirect"] = "";
|
1117 |
+
$image_meta_data["redirect_url"] = "http://";
|
1118 |
+
if ($flag === 1) {
|
1119 |
+
$image_meta_data["gallery_cover_image"] = "1";
|
1120 |
+
} else {
|
1121 |
+
$image_meta_data["gallery_cover_image"] = "";
|
1122 |
+
}
|
1123 |
$image_meta_data["width"] = intval($image_exif_detail["width"]);
|
1124 |
$image_meta_data["height"] = intval($image_exif_detail["height"]);
|
1125 |
$image_meta_data["mime_type"] = esc_attr($image_exif_detail["mime_type"]);
|
1126 |
$image_meta_data["aperture"] = esc_attr($image_exif_detail["exif_information"]["aperture"]);
|
1127 |
$image_meta_data["upload_type"] = "";
|
1128 |
|
1129 |
+
$image_meta_data["image_description"] = "";
|
1130 |
$image_meta_data["alt_text"] = "";
|
1131 |
+
$image_meta_data["sort_order"] = "";
|
1132 |
$image_meta_data["tags"] = array();
|
1133 |
+
$image_meta_data["upload_date"] = time();
|
1134 |
$image_meta_data["file_type"] = "image";
|
1135 |
$image_meta_data["exclude_image"] = "";
|
1136 |
$image_meta_data_insert = array();
|
1137 |
$image_meta_data_insert["meta_id"] = $gallery_id;
|
|
|
1138 |
$image_meta_data_insert["meta_key"] = "image_data";
|
1139 |
$image_meta_data_insert["meta_value"] = serialize($image_meta_data);
|
1140 |
+
$image_id = $obj_dbHelper_gallery_bank->insertCommand(gallery_bank_meta(), $image_meta_data_insert);
|
1141 |
}
|
1142 |
+
}
|
1143 |
+
break;
|
1144 |
+
default:
|
1145 |
+
global $wpdb;
|
1146 |
+
if (count($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "gallery_albums'")) != 0 && count($wpdb->get_var("SHOW TABLES LIKE '" . $wpdb->prefix . "gallery_pics'")) != 0) {
|
1147 |
+
table_gallery_bank();
|
1148 |
+
table_gallery_bank_meta();
|
1149 |
+
$get_albums_table_data = $wpdb->get_results
|
1150 |
+
(
|
1151 |
+
"SELECT * FROM " . $wpdb->prefix . "gallery_albums"
|
1152 |
);
|
1153 |
+
$get_albums_pics_table_data = $wpdb->get_results
|
1154 |
+
(
|
1155 |
+
"SELECT * FROM " . $wpdb->prefix . "gallery_pics"
|
1156 |
+
);
|
1157 |
+
|
1158 |
+
if (!function_exists("get_array_data_gallery_bank")) {
|
1159 |
+
function get_array_data_gallery_bank($id, $array) {
|
1160 |
+
$gallery_meta_data_unserialized_data = array();
|
1161 |
+
foreach ($array as $key => $val) {
|
1162 |
+
if ($val->album_id == $id) {
|
1163 |
+
array_push($gallery_meta_data_unserialized_data, $val);
|
1164 |
+
}
|
1165 |
+
}
|
1166 |
+
return $gallery_meta_data_unserialized_data;
|
1167 |
+
}
|
1168 |
+
}
|
1169 |
+
|
1170 |
+
foreach ($get_albums_table_data as $value) {
|
1171 |
+
// insert gallery data
|
1172 |
+
$gallery_parent_id = get_parent_id_gallery_bank("galleries");
|
1173 |
+
$insert_gallery = array();
|
1174 |
+
$insert_gallery["type"] = "gallery";
|
1175 |
+
$insert_gallery["parent_id"] = $gallery_parent_id;
|
1176 |
+
$gallery_id = $obj_dbHelper_gallery_bank->insertCommand(gallery_bank_parent(), $insert_gallery);
|
1177 |
+
|
1178 |
+
$insert_gallery_meta = array();
|
1179 |
+
$insert_gallery_meta["gallery_title"] = isset($value->album_name) ? $value->album_name : "";
|
1180 |
+
$insert_gallery_meta["gallery_description"] = isset($value->description) ? $value->description : "";
|
1181 |
+
$insert_gallery_meta["created_date"] = isset($value->album_date) ? strtotime($value->album_date) : 0;
|
1182 |
+
$insert_gallery_meta["edited_on"] = time();
|
1183 |
+
$insert_gallery_meta["gallery_cover_image"] = "";
|
1184 |
+
$insert_gallery_meta["edited_by"] = isset($value->author) ? $value->author : "";
|
1185 |
+
$insert_gallery_meta["author"] = isset($value->author) ? $value->author : "";
|
1186 |
+
|
1187 |
+
$insert_gallery_data = array();
|
1188 |
+
$insert_gallery_data["meta_id"] = $gallery_id;
|
1189 |
+
$insert_gallery_data["old_gallery_id"] = $value->album_id;
|
1190 |
+
$insert_gallery_data["meta_key"] = "gallery_data";
|
1191 |
+
$insert_gallery_data["meta_value"] = serialize($insert_gallery_meta);
|
1192 |
+
$obj_dbHelper_gallery_bank->insertCommand(gallery_bank_meta(), $insert_gallery_data);
|
1193 |
+
|
1194 |
+
$album_data_values = array();
|
1195 |
+
|
1196 |
+
$album_pics_data = get_array_data_gallery_bank($value->album_id, $get_albums_pics_table_data);
|
1197 |
+
$gallery_cover_image = "";
|
1198 |
+
foreach ($album_pics_data as $data) {
|
1199 |
+
// insert pic data
|
1200 |
+
$image_name = isset($data->thumbnail_url) ? $data->thumbnail_url : "";
|
1201 |
+
|
1202 |
+
$image_data = get_thumbnail_dimension_gallery_bank();
|
1203 |
+
$fileName = wp_unique_filename(GALLERY_BANK_ORIGINAL_DIR, $image_name);
|
1204 |
+
|
1205 |
+
$src_file = GALLERY_BANK_MAIN_URL . "gallery-uploads/" . $image_name;
|
1206 |
+
copy($src_file, GALLERY_BANK_ORIGINAL_DIR . $fileName);
|
1207 |
+
copy($src_file, GALLERY_BANK_UPLOAD_DIR . $fileName);
|
1208 |
+
|
1209 |
+
$thumbnail_image_name = $obj_dbHelper_gallery_bank->createThumbs_gallery_bank($image_name, $image_data);
|
1210 |
+
$image_exif_detail = $obj_dbHelper_gallery_bank->file_exif_information_gallery_bank(GALLERY_BANK_UPLOAD_DIR . $image_name, "FILE");
|
1211 |
+
if ($data->album_cover == 1) {
|
1212 |
+
$gallery_cover_image = $fileName;
|
1213 |
+
}
|
1214 |
+
$image_meta_data["image_title"] = isset($data->title) ? $data->title : "";
|
1215 |
+
$image_meta_data["image_name"] = $fileName;
|
1216 |
+
|
1217 |
+
$image_meta_data["enable_redirect"] = "";
|
1218 |
+
$image_meta_data["redirect_url"] = isset($data->url) ? $data->url : "http://";
|
1219 |
+
$image_meta_data["gallery_cover_image"] = isset($data->album_cover) && $data->album_cover == 1 ? 1 : "";
|
1220 |
+
$image_meta_data["width"] = intval($image_exif_detail["width"]);
|
1221 |
+
$image_meta_data["height"] = intval($image_exif_detail["height"]);
|
1222 |
+
$image_meta_data["mime_type"] = esc_attr($image_exif_detail["mime_type"]);
|
1223 |
+
$image_meta_data["aperture"] = esc_attr($image_exif_detail["exif_information"]["aperture"]);
|
1224 |
+
$image_meta_data["upload_type"] = "";
|
1225 |
+
|
1226 |
+
$image_meta_data["image_description"] = isset($data->description) ? $data->description : "";
|
1227 |
+
$image_meta_data["alt_text"] = "";
|
1228 |
+
$image_meta_data["sort_order"] = isset($data->sorting_order) ? $data->sorting_order : "";
|
1229 |
+
$image_meta_data["tags"] = array();
|
1230 |
+
$image_meta_data["upload_date"] = isset($data->date) ? strtotime($data->date) : 0;
|
1231 |
+
$image_meta_data["file_type"] = "image";
|
1232 |
+
$image_meta_data["exclude_image"] = "";
|
1233 |
+
$image_meta_data_insert = array();
|
1234 |
+
$image_meta_data_insert["meta_id"] = $gallery_id;
|
1235 |
+
$image_meta_data_insert["old_gallery_id"] = $data->album_id;
|
1236 |
+
$image_meta_data_insert["meta_key"] = "image_data";
|
1237 |
+
$image_meta_data_insert["meta_value"] = serialize($image_meta_data);
|
1238 |
+
$obj_dbHelper_gallery_bank->insertCommand(gallery_bank_meta(), $image_meta_data_insert);
|
1239 |
+
}
|
1240 |
+
// update gallery data
|
1241 |
+
$gallery_unserialized_data = $wpdb->get_var
|
1242 |
+
(
|
1243 |
+
$wpdb->prepare
|
1244 |
+
(
|
1245 |
+
"SELECT meta_value FROM " . gallery_bank_meta() . " WHERE meta_id = %d and meta_key = %s", $gallery_id, "gallery_data"
|
1246 |
+
)
|
1247 |
+
);
|
1248 |
+
$gallery_serialized_data = maybe_unserialize($gallery_unserialized_data);
|
1249 |
+
$gallery_serialized_data["gallery_cover_image"] = $gallery_cover_image;
|
1250 |
+
|
1251 |
+
$where = array();
|
1252 |
+
$update_gallery_data = array();
|
1253 |
+
$where["meta_key"] = "gallery_data";
|
1254 |
+
$where["meta_id"] = $gallery_id;
|
1255 |
+
$update_gallery_data["meta_value"] = serialize($gallery_serialized_data);
|
1256 |
+
$obj_dbHelper_gallery_bank->updateCommand(gallery_bank_meta(), $update_gallery_data, $where);
|
1257 |
+
}
|
1258 |
+
// Drop Tables
|
1259 |
+
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "gallery_albums");
|
1260 |
+
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "gallery_pics");
|
1261 |
+
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "gallery_settings");
|
1262 |
}
|
1263 |
+
break;
|
1264 |
+
}
|
1265 |
+
update_option("gallery-bank-pro-edition", "4.0");
|
1266 |
+
}
|
|
|
|
|
|
|
|
|
|
|
1267 |
}
|
lib/sidebar-menu.php
CHANGED
@@ -119,59 +119,59 @@ if (!is_user_logged_in()) {
|
|
119 |
add_menu_page($gallery_bank, $gallery_bank, "read", "gb_wizard_gallery_bank", "", plugins_url("assets/global/img/icon.png", dirName(__FILE__)));
|
120 |
add_submenu_page($gallery_bank, $gallery_bank, "", "read", "gb_wizard_gallery_bank", "gb_wizard_gallery_bank");
|
121 |
}
|
122 |
-
add_submenu_page("gallery_bank", $gb_galleries, $gb_galleries, "read", "gallery_bank", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
123 |
-
add_submenu_page("gallery_bank", $gb_albums, $gb_albums, "read", "gb_manage_albums", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
124 |
-
add_submenu_page("gallery_bank", $gb_tags, $gb_tags, "read", "gb_manage_tags", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
125 |
-
add_submenu_page("gallery_bank", $gb_layout_settings, $gb_layout_settings, "read", "gb_thumbnail_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
126 |
-
add_submenu_page("gallery_bank", $gb_lightboxes, $gb_lightboxes, "read", "gb_lightcase", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
127 |
-
add_submenu_page("gallery_bank", $gb_general_settings, $gb_general_settings, "read", "gb_global_options", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
128 |
-
add_submenu_page("gallery_bank", $gb_shortcode_generator, $gb_shortcode_generator, "read", "gb_thumbnail_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
129 |
-
add_submenu_page("gallery_bank", $gb_other_setting, $gb_other_setting, "read", "gb_other_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
130 |
-
add_submenu_page("gallery_bank", $gb_roles_and_capabilities, $gb_roles_and_capabilities, "read", "gb_roles_and_capabilities", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
131 |
-
add_submenu_page("gallery_bank", $gb_feature_requests, $gb_feature_requests, "read", "gb_feature_requests", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
132 |
-
add_submenu_page("gallery_bank", $gb_system_information, $gb_system_information, "read", "gb_system_information", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
133 |
-
add_submenu_page("gallery_bank", $gb_upgrade, $gb_upgrade, "read", "gb_upgrade", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
134 |
|
135 |
-
add_submenu_page($gb_galleries, $gb_add_gallery, "", "read", "gb_add_gallery", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
136 |
-
add_submenu_page($gb_galleries, $gb_sort_galleries, "", "read", "gb_sort_galleries", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
137 |
|
138 |
-
add_submenu_page($gb_albums, $gb_add_album, "", "read", "gb_add_album", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
139 |
-
add_submenu_page($gb_albums, $gb_sort_albums, "", "read", "gb_sort_albums", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
140 |
|
141 |
-
add_submenu_page($gb_tags, $gb_add_tag, "", "read", "gb_add_tag", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
142 |
-
add_submenu_page($gb_tags, $gb_manage_tags, "", "read", "gb_manage_tags", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
143 |
|
144 |
-
add_submenu_page($gb_layout_settings, $gb_thumbnail_layout, "", "read", "gb_thumbnail_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
145 |
-
add_submenu_page($gb_layout_settings, $gb_masonry_layout, "", "read", "gb_masonry_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
146 |
-
add_submenu_page($gb_layout_settings, $gb_slideshow_layout, "", "read", "gb_slideshow_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
147 |
-
add_submenu_page($gb_layout_settings, $gb_image_browser_layout, "", "read", "gb_image_browser_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
148 |
-
add_submenu_page($gb_layout_settings, $gb_justified_grid_layout, "", "read", "gb_justified_grid_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
149 |
-
add_submenu_page($gb_layout_settings, $gb_blog_style_layout, "", "read", "gb_blog_style_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
150 |
-
add_submenu_page($gb_layout_settings, $gb_compact_album_layout, "", "read", "gb_compact_album_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
151 |
-
add_submenu_page($gb_layout_settings, $gb_extended_album_layout, "", "read", "gb_extended_album_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
152 |
-
add_submenu_page($gb_layout_settings, $gb_custom_css, "", "read", "gb_custom_css", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
153 |
|
154 |
-
add_submenu_page($gb_lightboxes, $gb_fancy_box, "", "read", "gb_fancy_box", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
155 |
-
add_submenu_page($gb_lightboxes, $gb_color_box, "", "read", "gb_color_box", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
156 |
-
add_submenu_page($gb_lightboxes, $gb_foo_box_free_edition, "", "read", "gb_foo_box_free_edition", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
157 |
add_submenu_page($gb_lightboxes, $gb_nivo_lightbox, "", "read", "gb_nivo_lightbox", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_nivo_lightbox");
|
158 |
-
add_submenu_page($gb_lightboxes, $gb_lightcase, "", "read", "gb_lightcase", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
159 |
|
160 |
-
add_submenu_page($gb_general_settings, $gb_global_options, "", "read", "gb_global_options", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
161 |
-
add_submenu_page($gb_general_settings, $gb_lazy_load_settings, "", "read", "gb_lazy_load_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
162 |
-
add_submenu_page($gb_general_settings, $gb_filter_settings, "", "read", "gb_filter_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
163 |
-
add_submenu_page($gb_general_settings, $gb_order_by_settings, "", "read", "gb_order_by_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
164 |
-
add_submenu_page($gb_general_settings, $gb_search_box_settings, "", "read", "gb_search_box_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
165 |
-
add_submenu_page($gb_general_settings, $gb_page_navigation, "", "read", "gb_page_navigation", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
166 |
-
add_submenu_page($gb_general_settings, $gb_watermark_settings, "", "read", "gb_watermark_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
167 |
-
add_submenu_page($gb_general_settings, $gb_advertisement, "", "read", "gb_advertisement", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
168 |
|
169 |
-
add_submenu_page($gb_shortcode_generator, $gb_thumbnail_layout, "", "read", "gb_thumbnail_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
170 |
-
add_submenu_page($gb_shortcode_generator, $gb_masonry_layout, "", "read", "gb_masonry_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
171 |
-
add_submenu_page($gb_shortcode_generator, $gb_slideshow_layout, "", "read", "gb_slideshow_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
172 |
-
add_submenu_page($gb_shortcode_generator, $gb_image_browser_layout, "", "read", "gb_image_browser_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
173 |
-
add_submenu_page($gb_shortcode_generator, $gb_justified_grid_layout, "", "read", "gb_justified_grid_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
174 |
-
add_submenu_page($gb_shortcode_generator, $gb_blog_style_layout, "", "read", "gb_blog_style_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" :
|
175 |
}
|
176 |
|
177 |
/*
|
@@ -1355,8 +1355,7 @@ if (!is_user_logged_in()) {
|
|
1355 |
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "includes/footer.php";
|
1356 |
}
|
1357 |
}
|
1358 |
-
|
1359 |
-
/*
|
1360 |
Function Name: gb_upgrade
|
1361 |
Parameter: No
|
1362 |
Description: This function is used for upgrade menu.
|
119 |
add_menu_page($gallery_bank, $gallery_bank, "read", "gb_wizard_gallery_bank", "", plugins_url("assets/global/img/icon.png", dirName(__FILE__)));
|
120 |
add_submenu_page($gallery_bank, $gallery_bank, "", "read", "gb_wizard_gallery_bank", "gb_wizard_gallery_bank");
|
121 |
}
|
122 |
+
add_submenu_page("gallery_bank", $gb_galleries, $gb_galleries, "read", "gallery_bank", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gallery_bank");
|
123 |
+
add_submenu_page("gallery_bank", $gb_albums, $gb_albums, "read", "gb_manage_albums", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_manage_albums");
|
124 |
+
add_submenu_page("gallery_bank", $gb_tags, $gb_tags, "read", "gb_manage_tags", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_manage_tags");
|
125 |
+
add_submenu_page("gallery_bank", $gb_layout_settings, $gb_layout_settings, "read", "gb_thumbnail_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_thumbnail_layout");
|
126 |
+
add_submenu_page("gallery_bank", $gb_lightboxes, $gb_lightboxes, "read", "gb_lightcase", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_lightcase");
|
127 |
+
add_submenu_page("gallery_bank", $gb_general_settings, $gb_general_settings, "read", "gb_global_options", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_global_options");
|
128 |
+
add_submenu_page("gallery_bank", $gb_shortcode_generator, $gb_shortcode_generator, "read", "gb_thumbnail_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_thumbnail_layout_shortcode");
|
129 |
+
add_submenu_page("gallery_bank", $gb_other_setting, $gb_other_setting, "read", "gb_other_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_other_settings");
|
130 |
+
add_submenu_page("gallery_bank", $gb_roles_and_capabilities, $gb_roles_and_capabilities, "read", "gb_roles_and_capabilities", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_roles_and_capabilities");
|
131 |
+
add_submenu_page("gallery_bank", $gb_feature_requests, $gb_feature_requests, "read", "gb_feature_requests", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_feature_requests");
|
132 |
+
add_submenu_page("gallery_bank", $gb_system_information, $gb_system_information, "read", "gb_system_information", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_system_information");
|
133 |
+
add_submenu_page("gallery_bank", $gb_upgrade, $gb_upgrade, "read", "gb_upgrade", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_upgrade");
|
134 |
|
135 |
+
add_submenu_page($gb_galleries, $gb_add_gallery, "", "read", "gb_add_gallery", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_add_gallery");
|
136 |
+
add_submenu_page($gb_galleries, $gb_sort_galleries, "", "read", "gb_sort_galleries", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_sort_galleries");
|
137 |
|
138 |
+
add_submenu_page($gb_albums, $gb_add_album, "", "read", "gb_add_album", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_add_album");
|
139 |
+
add_submenu_page($gb_albums, $gb_sort_albums, "", "read", "gb_sort_albums", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_sort_albums");
|
140 |
|
141 |
+
add_submenu_page($gb_tags, $gb_add_tag, "", "read", "gb_add_tag", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_add_tag");
|
142 |
+
add_submenu_page($gb_tags, $gb_manage_tags, "", "read", "gb_manage_tags", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_manage_tags");
|
143 |
|
144 |
+
add_submenu_page($gb_layout_settings, $gb_thumbnail_layout, "", "read", "gb_thumbnail_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_thumbnail_layout");
|
145 |
+
add_submenu_page($gb_layout_settings, $gb_masonry_layout, "", "read", "gb_masonry_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_masonry_layout");
|
146 |
+
add_submenu_page($gb_layout_settings, $gb_slideshow_layout, "", "read", "gb_slideshow_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_slideshow_layout");
|
147 |
+
add_submenu_page($gb_layout_settings, $gb_image_browser_layout, "", "read", "gb_image_browser_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_image_browser_layout");
|
148 |
+
add_submenu_page($gb_layout_settings, $gb_justified_grid_layout, "", "read", "gb_justified_grid_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_justified_grid_layout");
|
149 |
+
add_submenu_page($gb_layout_settings, $gb_blog_style_layout, "", "read", "gb_blog_style_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_blog_style_layout");
|
150 |
+
add_submenu_page($gb_layout_settings, $gb_compact_album_layout, "", "read", "gb_compact_album_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_compact_album_layout");
|
151 |
+
add_submenu_page($gb_layout_settings, $gb_extended_album_layout, "", "read", "gb_extended_album_layout", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_extended_album_layout");
|
152 |
+
add_submenu_page($gb_layout_settings, $gb_custom_css, "", "read", "gb_custom_css", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_custom_css");
|
153 |
|
154 |
+
add_submenu_page($gb_lightboxes, $gb_fancy_box, "", "read", "gb_fancy_box", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_fancy_box");
|
155 |
+
add_submenu_page($gb_lightboxes, $gb_color_box, "", "read", "gb_color_box", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_color_box");
|
156 |
+
add_submenu_page($gb_lightboxes, $gb_foo_box_free_edition, "", "read", "gb_foo_box_free_edition", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_foo_box_free_edition");
|
157 |
add_submenu_page($gb_lightboxes, $gb_nivo_lightbox, "", "read", "gb_nivo_lightbox", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_nivo_lightbox");
|
158 |
+
add_submenu_page($gb_lightboxes, $gb_lightcase, "", "read", "gb_lightcase", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_lightcase");
|
159 |
|
160 |
+
add_submenu_page($gb_general_settings, $gb_global_options, "", "read", "gb_global_options", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_global_options");
|
161 |
+
add_submenu_page($gb_general_settings, $gb_lazy_load_settings, "", "read", "gb_lazy_load_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_lazy_load_settings");
|
162 |
+
add_submenu_page($gb_general_settings, $gb_filter_settings, "", "read", "gb_filter_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_filter_settings");
|
163 |
+
add_submenu_page($gb_general_settings, $gb_order_by_settings, "", "read", "gb_order_by_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_order_by_settings");
|
164 |
+
add_submenu_page($gb_general_settings, $gb_search_box_settings, "", "read", "gb_search_box_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_search_box_settings");
|
165 |
+
add_submenu_page($gb_general_settings, $gb_page_navigation, "", "read", "gb_page_navigation", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_page_navigation");
|
166 |
+
add_submenu_page($gb_general_settings, $gb_watermark_settings, "", "read", "gb_watermark_settings", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_watermark_settings");
|
167 |
+
add_submenu_page($gb_general_settings, $gb_advertisement, "", "read", "gb_advertisement", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_advertisement");
|
168 |
|
169 |
+
add_submenu_page($gb_shortcode_generator, $gb_thumbnail_layout, "", "read", "gb_thumbnail_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_thumbnail_layout_shortcode");
|
170 |
+
add_submenu_page($gb_shortcode_generator, $gb_masonry_layout, "", "read", "gb_masonry_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_masonry_layout_shortcode");
|
171 |
+
add_submenu_page($gb_shortcode_generator, $gb_slideshow_layout, "", "read", "gb_slideshow_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_slideshow_layout_shortcode");
|
172 |
+
add_submenu_page($gb_shortcode_generator, $gb_image_browser_layout, "", "read", "gb_image_browser_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_image_browser_layout_shortcode");
|
173 |
+
add_submenu_page($gb_shortcode_generator, $gb_justified_grid_layout, "", "read", "gb_justified_grid_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_justified_grid_layout_shortcode");
|
174 |
+
add_submenu_page($gb_shortcode_generator, $gb_blog_style_layout, "", "read", "gb_blog_style_layout_shortcode", $check_gallery_bank_wizard == "" ? "gb_wizard_gallery_bank" : "gb_blog_style_layout_shortcode");
|
175 |
}
|
176 |
|
177 |
/*
|
1355 |
include_once GALLERY_BANK_PLUGIN_DIR_PATH . "includes/footer.php";
|
1356 |
}
|
1357 |
}
|
1358 |
+
/*
|
|
|
1359 |
Function Name: gb_upgrade
|
1360 |
Parameter: No
|
1361 |
Description: This function is used for upgrade menu.
|
license.txt
ADDED
@@ -0,0 +1,674 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 3, 29 June 2007
|
3 |
+
|
4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
6 |
+
of this license document, but changing it is not allowed.
|
7 |
+
|
8 |
+
Preamble
|
9 |
+
|
10 |
+
The GNU General Public License is a free, copyleft license for
|
11 |
+
software and other kinds of works.
|
12 |
+
|
13 |
+
The licenses for most software and other practical works are designed
|
14 |
+
to take away your freedom to share and change the works. By contrast,
|
15 |
+
the GNU General Public License is intended to guarantee your freedom to
|
16 |
+
share and change all versions of a program--to make sure it remains free
|
17 |
+
software for all its users. We, the Free Software Foundation, use the
|
18 |
+
GNU General Public License for most of our software; it applies also to
|
19 |
+
any other work released this way by its authors. You can apply it to
|
20 |
+
your programs, too.
|
21 |
+
|
22 |
+
When we speak of free software, we are referring to freedom, not
|
23 |
+
price. Our General Public Licenses are designed to make sure that you
|
24 |
+
have the freedom to distribute copies of free software (and charge for
|
25 |
+
them if you wish), that you receive source code or can get it if you
|
26 |
+
want it, that you can change the software or use pieces of it in new
|
27 |
+
free programs, and that you know you can do these things.
|
28 |
+
|
29 |
+
To protect your rights, we need to prevent others from denying you
|
30 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
31 |
+
certain responsibilities if you distribute copies of the software, or if
|
32 |
+
you modify it: responsibilities to respect the freedom of others.
|
33 |
+
|
34 |
+
For example, if you distribute copies of such a program, whether
|
35 |
+
gratis or for a fee, you must pass on to the recipients the same
|
36 |
+
freedoms that you received. You must make sure that they, too, receive
|
37 |
+
or can get the source code. And you must show them these terms so they
|
38 |
+
know their rights.
|
39 |
+
|
40 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
41 |
+
(1) assert copyright on the software, and (2) offer you this License
|
42 |
+
giving you legal permission to copy, distribute and/or modify it.
|
43 |
+
|
44 |
+
For the developers' and authors' protection, the GPL clearly explains
|
45 |
+
that there is no warranty for this free software. For both users' and
|
46 |
+
authors' sake, the GPL requires that modified versions be marked as
|
47 |
+
changed, so that their problems will not be attributed erroneously to
|
48 |
+
authors of previous versions.
|
49 |
+
|
50 |
+
Some devices are designed to deny users access to install or run
|
51 |
+
modified versions of the software inside them, although the manufacturer
|
52 |
+
can do so. This is fundamentally incompatible with the aim of
|
53 |
+
protecting users' freedom to change the software. The systematic
|
54 |
+
pattern of such abuse occurs in the area of products for individuals to
|
55 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
56 |
+
have designed this version of the GPL to prohibit the practice for those
|
57 |
+
products. If such problems arise substantially in other domains, we
|
58 |
+
stand ready to extend this provision to those domains in future versions
|
59 |
+
of the GPL, as needed to protect the freedom of users.
|
60 |
+
|
61 |
+
Finally, every program is threatened constantly by software patents.
|
62 |
+
States should not allow patents to restrict development and use of
|
63 |
+
software on general-purpose computers, but in those that do, we wish to
|
64 |
+
avoid the special danger that patents applied to a free program could
|
65 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
66 |
+
patents cannot be used to render the program non-free.
|
67 |
+
|
68 |
+
The precise terms and conditions for copying, distribution and
|
69 |
+
modification follow.
|
70 |
+
|
71 |
+
TERMS AND CONDITIONS
|
72 |
+
|
73 |
+
0. Definitions.
|
74 |
+
|
75 |
+
"This License" refers to version 3 of the GNU General Public License.
|
76 |
+
|
77 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
78 |
+
works, such as semiconductor masks.
|
79 |
+
|
80 |
+
"The Program" refers to any copyrightable work licensed under this
|
81 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
82 |
+
"recipients" may be individuals or organizations.
|
83 |
+
|
84 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
85 |
+
in a fashion requiring copyright permission, other than the making of an
|
86 |
+
exact copy. The resulting work is called a "modified version" of the
|
87 |
+
earlier work or a work "based on" the earlier work.
|
88 |
+
|
89 |
+
A "covered work" means either the unmodified Program or a work based
|
90 |
+
on the Program.
|
91 |
+
|
92 |
+
To "propagate" a work means to do anything with it that, without
|
93 |
+
permission, would make you directly or secondarily liable for
|
94 |
+
infringement under applicable copyright law, except executing it on a
|
95 |
+
computer or modifying a private copy. Propagation includes copying,
|
96 |
+
distribution (with or without modification), making available to the
|
97 |
+
public, and in some countries other activities as well.
|
98 |
+
|
99 |
+
To "convey" a work means any kind of propagation that enables other
|
100 |
+
parties to make or receive copies. Mere interaction with a user through
|
101 |
+
a computer network, with no transfer of a copy, is not conveying.
|
102 |
+
|
103 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
104 |
+
to the extent that it includes a convenient and prominently visible
|
105 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
106 |
+
tells the user that there is no warranty for the work (except to the
|
107 |
+
extent that warranties are provided), that licensees may convey the
|
108 |
+
work under this License, and how to view a copy of this License. If
|
109 |
+
the interface presents a list of user commands or options, such as a
|
110 |
+
menu, a prominent item in the list meets this criterion.
|
111 |
+
|
112 |
+
1. Source Code.
|
113 |
+
|
114 |
+
The "source code" for a work means the preferred form of the work
|
115 |
+
for making modifications to it. "Object code" means any non-source
|
116 |
+
form of a work.
|
117 |
+
|
118 |
+
A "Standard Interface" means an interface that either is an official
|
119 |
+
standard defined by a recognized standards body, or, in the case of
|
120 |
+
interfaces specified for a particular programming language, one that
|
121 |
+
is widely used among developers working in that language.
|
122 |
+
|
123 |
+
The "System Libraries" of an executable work include anything, other
|
124 |
+
than the work as a whole, that (a) is included in the normal form of
|
125 |
+
packaging a Major Component, but which is not part of that Major
|
126 |
+
Component, and (b) serves only to enable use of the work with that
|
127 |
+
Major Component, or to implement a Standard Interface for which an
|
128 |
+
implementation is available to the public in source code form. A
|
129 |
+
"Major Component", in this context, means a major essential component
|
130 |
+
(kernel, window system, and so on) of the specific operating system
|
131 |
+
(if any) on which the executable work runs, or a compiler used to
|
132 |
+
produce the work, or an object code interpreter used to run it.
|
133 |
+
|
134 |
+
The "Corresponding Source" for a work in object code form means all
|
135 |
+
the source code needed to generate, install, and (for an executable
|
136 |
+
work) run the object code and to modify the work, including scripts to
|
137 |
+
control those activities. However, it does not include the work's
|
138 |
+
System Libraries, or general-purpose tools or generally available free
|
139 |
+
programs which are used unmodified in performing those activities but
|
140 |
+
which are not part of the work. For example, Corresponding Source
|
141 |
+
includes interface definition files associated with source files for
|
142 |
+
the work, and the source code for shared libraries and dynamically
|
143 |
+
linked subprograms that the work is specifically designed to require,
|
144 |
+
such as by intimate data communication or control flow between those
|
145 |
+
subprograms and other parts of the work.
|
146 |
+
|
147 |
+
The Corresponding Source need not include anything that users
|
148 |
+
can regenerate automatically from other parts of the Corresponding
|
149 |
+
Source.
|
150 |
+
|
151 |
+
The Corresponding Source for a work in source code form is that
|
152 |
+
same work.
|
153 |
+
|
154 |
+
2. Basic Permissions.
|
155 |
+
|
156 |
+
All rights granted under this License are granted for the term of
|
157 |
+
copyright on the Program, and are irrevocable provided the stated
|
158 |
+
conditions are met. This License explicitly affirms your unlimited
|
159 |
+
permission to run the unmodified Program. The output from running a
|
160 |
+
covered work is covered by this License only if the output, given its
|
161 |
+
content, constitutes a covered work. This License acknowledges your
|
162 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
163 |
+
|
164 |
+
You may make, run and propagate covered works that you do not
|
165 |
+
convey, without conditions so long as your license otherwise remains
|
166 |
+
in force. You may convey covered works to others for the sole purpose
|
167 |
+
of having them make modifications exclusively for you, or provide you
|
168 |
+
with facilities for running those works, provided that you comply with
|
169 |
+
the terms of this License in conveying all material for which you do
|
170 |
+
not control copyright. Those thus making or running the covered works
|
171 |
+
for you must do so exclusively on your behalf, under your direction
|
172 |
+
and control, on terms that prohibit them from making any copies of
|
173 |
+
your copyrighted material outside their relationship with you.
|
174 |
+
|
175 |
+
Conveying under any other circumstances is permitted solely under
|
176 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
177 |
+
makes it unnecessary.
|
178 |
+
|
179 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
180 |
+
|
181 |
+
No covered work shall be deemed part of an effective technological
|
182 |
+
measure under any applicable law fulfilling obligations under article
|
183 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
184 |
+
similar laws prohibiting or restricting circumvention of such
|
185 |
+
measures.
|
186 |
+
|
187 |
+
When you convey a covered work, you waive any legal power to forbid
|
188 |
+
circumvention of technological measures to the extent such circumvention
|
189 |
+
is effected by exercising rights under this License with respect to
|
190 |
+
the covered work, and you disclaim any intention to limit operation or
|
191 |
+
modification of the work as a means of enforcing, against the work's
|
192 |
+
users, your or third parties' legal rights to forbid circumvention of
|
193 |
+
technological measures.
|
194 |
+
|
195 |
+
4. Conveying Verbatim Copies.
|
196 |
+
|
197 |
+
You may convey verbatim copies of the Program's source code as you
|
198 |
+
receive it, in any medium, provided that you conspicuously and
|
199 |
+
appropriately publish on each copy an appropriate copyright notice;
|
200 |
+
keep intact all notices stating that this License and any
|
201 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
202 |
+
keep intact all notices of the absence of any warranty; and give all
|
203 |
+
recipients a copy of this License along with the Program.
|
204 |
+
|
205 |
+
You may charge any price or no price for each copy that you convey,
|
206 |
+
and you may offer support or warranty protection for a fee.
|
207 |
+
|
208 |
+
5. Conveying Modified Source Versions.
|
209 |
+
|
210 |
+
You may convey a work based on the Program, or the modifications to
|
211 |
+
produce it from the Program, in the form of source code under the
|
212 |
+
terms of section 4, provided that you also meet all of these conditions:
|
213 |
+
|
214 |
+
a) The work must carry prominent notices stating that you modified
|
215 |
+
it, and giving a relevant date.
|
216 |
+
|
217 |
+
b) The work must carry prominent notices stating that it is
|
218 |
+
released under this License and any conditions added under section
|
219 |
+
7. This requirement modifies the requirement in section 4 to
|
220 |
+
"keep intact all notices".
|
221 |
+
|
222 |
+
c) You must license the entire work, as a whole, under this
|
223 |
+
License to anyone who comes into possession of a copy. This
|
224 |
+
License will therefore apply, along with any applicable section 7
|
225 |
+
additional terms, to the whole of the work, and all its parts,
|
226 |
+
regardless of how they are packaged. This License gives no
|
227 |
+
permission to license the work in any other way, but it does not
|
228 |
+
invalidate such permission if you have separately received it.
|
229 |
+
|
230 |
+
d) If the work has interactive user interfaces, each must display
|
231 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
232 |
+
interfaces that do not display Appropriate Legal Notices, your
|
233 |
+
work need not make them do so.
|
234 |
+
|
235 |
+
A compilation of a covered work with other separate and independent
|
236 |
+
works, which are not by their nature extensions of the covered work,
|
237 |
+
and which are not combined with it such as to form a larger program,
|
238 |
+
in or on a volume of a storage or distribution medium, is called an
|
239 |
+
"aggregate" if the compilation and its resulting copyright are not
|
240 |
+
used to limit the access or legal rights of the compilation's users
|
241 |
+
beyond what the individual works permit. Inclusion of a covered work
|
242 |
+
in an aggregate does not cause this License to apply to the other
|
243 |
+
parts of the aggregate.
|
244 |
+
|
245 |
+
6. Conveying Non-Source Forms.
|
246 |
+
|
247 |
+
You may convey a covered work in object code form under the terms
|
248 |
+
of sections 4 and 5, provided that you also convey the
|
249 |
+
machine-readable Corresponding Source under the terms of this License,
|
250 |
+
in one of these ways:
|
251 |
+
|
252 |
+
a) Convey the object code in, or embodied in, a physical product
|
253 |
+
(including a physical distribution medium), accompanied by the
|
254 |
+
Corresponding Source fixed on a durable physical medium
|
255 |
+
customarily used for software interchange.
|
256 |
+
|
257 |
+
b) Convey the object code in, or embodied in, a physical product
|
258 |
+
(including a physical distribution medium), accompanied by a
|
259 |
+
written offer, valid for at least three years and valid for as
|
260 |
+
long as you offer spare parts or customer support for that product
|
261 |
+
model, to give anyone who possesses the object code either (1) a
|
262 |
+
copy of the Corresponding Source for all the software in the
|
263 |
+
product that is covered by this License, on a durable physical
|
264 |
+
medium customarily used for software interchange, for a price no
|
265 |
+
more than your reasonable cost of physically performing this
|
266 |
+
conveying of source, or (2) access to copy the
|
267 |
+
Corresponding Source from a network server at no charge.
|
268 |
+
|
269 |
+
c) Convey individual copies of the object code with a copy of the
|
270 |
+
written offer to provide the Corresponding Source. This
|
271 |
+
alternative is allowed only occasionally and noncommercially, and
|
272 |
+
only if you received the object code with such an offer, in accord
|
273 |
+
with subsection 6b.
|
274 |
+
|
275 |
+
d) Convey the object code by offering access from a designated
|
276 |
+
place (gratis or for a charge), and offer equivalent access to the
|
277 |
+
Corresponding Source in the same way through the same place at no
|
278 |
+
further charge. You need not require recipients to copy the
|
279 |
+
Corresponding Source along with the object code. If the place to
|
280 |
+
copy the object code is a network server, the Corresponding Source
|
281 |
+
may be on a different server (operated by you or a third party)
|
282 |
+
that supports equivalent copying facilities, provided you maintain
|
283 |
+
clear directions next to the object code saying where to find the
|
284 |
+
Corresponding Source. Regardless of what server hosts the
|
285 |
+
Corresponding Source, you remain obligated to ensure that it is
|
286 |
+
available for as long as needed to satisfy these requirements.
|
287 |
+
|
288 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
289 |
+
you inform other peers where the object code and Corresponding
|
290 |
+
Source of the work are being offered to the general public at no
|
291 |
+
charge under subsection 6d.
|
292 |
+
|
293 |
+
A separable portion of the object code, whose source code is excluded
|
294 |
+
from the Corresponding Source as a System Library, need not be
|
295 |
+
included in conveying the object code work.
|
296 |
+
|
297 |
+
A "User Product" is either (1) a "consumer product", which means any
|
298 |
+
tangible personal property which is normally used for personal, family,
|
299 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
300 |
+
into a dwelling. In determining whether a product is a consumer product,
|
301 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
302 |
+
product received by a particular user, "normally used" refers to a
|
303 |
+
typical or common use of that class of product, regardless of the status
|
304 |
+
of the particular user or of the way in which the particular user
|
305 |
+
actually uses, or expects or is expected to use, the product. A product
|
306 |
+
is a consumer product regardless of whether the product has substantial
|
307 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
308 |
+
the only significant mode of use of the product.
|
309 |
+
|
310 |
+
"Installation Information" for a User Product means any methods,
|
311 |
+
procedures, authorization keys, or other information required to install
|
312 |
+
and execute modified versions of a covered work in that User Product from
|
313 |
+
a modified version of its Corresponding Source. The information must
|
314 |
+
suffice to ensure that the continued functioning of the modified object
|
315 |
+
code is in no case prevented or interfered with solely because
|
316 |
+
modification has been made.
|
317 |
+
|
318 |
+
If you convey an object code work under this section in, or with, or
|
319 |
+
specifically for use in, a User Product, and the conveying occurs as
|
320 |
+
part of a transaction in which the right of possession and use of the
|
321 |
+
User Product is transferred to the recipient in perpetuity or for a
|
322 |
+
fixed term (regardless of how the transaction is characterized), the
|
323 |
+
Corresponding Source conveyed under this section must be accompanied
|
324 |
+
by the Installation Information. But this requirement does not apply
|
325 |
+
if neither you nor any third party retains the ability to install
|
326 |
+
modified object code on the User Product (for example, the work has
|
327 |
+
been installed in ROM).
|
328 |
+
|
329 |
+
The requirement to provide Installation Information does not include a
|
330 |
+
requirement to continue to provide support service, warranty, or updates
|
331 |
+
for a work that has been modified or installed by the recipient, or for
|
332 |
+
the User Product in which it has been modified or installed. Access to a
|
333 |
+
network may be denied when the modification itself materially and
|
334 |
+
adversely affects the operation of the network or violates the rules and
|
335 |
+
protocols for communication across the network.
|
336 |
+
|
337 |
+
Corresponding Source conveyed, and Installation Information provided,
|
338 |
+
in accord with this section must be in a format that is publicly
|
339 |
+
documented (and with an implementation available to the public in
|
340 |
+
source code form), and must require no special password or key for
|
341 |
+
unpacking, reading or copying.
|
342 |
+
|
343 |
+
7. Additional Terms.
|
344 |
+
|
345 |
+
"Additional permissions" are terms that supplement the terms of this
|
346 |
+
License by making exceptions from one or more of its conditions.
|
347 |
+
Additional permissions that are applicable to the entire Program shall
|
348 |
+
be treated as though they were included in this License, to the extent
|
349 |
+
that they are valid under applicable law. If additional permissions
|
350 |
+
apply only to part of the Program, that part may be used separately
|
351 |
+
under those permissions, but the entire Program remains governed by
|
352 |
+
this License without regard to the additional permissions.
|
353 |
+
|
354 |
+
When you convey a copy of a covered work, you may at your option
|
355 |
+
remove any additional permissions from that copy, or from any part of
|
356 |
+
it. (Additional permissions may be written to require their own
|
357 |
+
removal in certain cases when you modify the work.) You may place
|
358 |
+
additional permissions on material, added by you to a covered work,
|
359 |
+
for which you have or can give appropriate copyright permission.
|
360 |
+
|
361 |
+
Notwithstanding any other provision of this License, for material you
|
362 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
363 |
+
that material) supplement the terms of this License with terms:
|
364 |
+
|
365 |
+
a) Disclaiming warranty or limiting liability differently from the
|
366 |
+
terms of sections 15 and 16 of this License; or
|
367 |
+
|
368 |
+
b) Requiring preservation of specified reasonable legal notices or
|
369 |
+
author attributions in that material or in the Appropriate Legal
|
370 |
+
Notices displayed by works containing it; or
|
371 |
+
|
372 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
373 |
+
requiring that modified versions of such material be marked in
|
374 |
+
reasonable ways as different from the original version; or
|
375 |
+
|
376 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
377 |
+
authors of the material; or
|
378 |
+
|
379 |
+
e) Declining to grant rights under trademark law for use of some
|
380 |
+
trade names, trademarks, or service marks; or
|
381 |
+
|
382 |
+
f) Requiring indemnification of licensors and authors of that
|
383 |
+
material by anyone who conveys the material (or modified versions of
|
384 |
+
it) with contractual assumptions of liability to the recipient, for
|
385 |
+
any liability that these contractual assumptions directly impose on
|
386 |
+
those licensors and authors.
|
387 |
+
|
388 |
+
All other non-permissive additional terms are considered "further
|
389 |
+
restrictions" within the meaning of section 10. If the Program as you
|
390 |
+
received it, or any part of it, contains a notice stating that it is
|
391 |
+
governed by this License along with a term that is a further
|
392 |
+
restriction, you may remove that term. If a license document contains
|
393 |
+
a further restriction but permits relicensing or conveying under this
|
394 |
+
License, you may add to a covered work material governed by the terms
|
395 |
+
of that license document, provided that the further restriction does
|
396 |
+
not survive such relicensing or conveying.
|
397 |
+
|
398 |
+
If you add terms to a covered work in accord with this section, you
|
399 |
+
must place, in the relevant source files, a statement of the
|
400 |
+
additional terms that apply to those files, or a notice indicating
|
401 |
+
where to find the applicable terms.
|
402 |
+
|
403 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
404 |
+
form of a separately written license, or stated as exceptions;
|
405 |
+
the above requirements apply either way.
|
406 |
+
|
407 |
+
8. Termination.
|
408 |
+
|
409 |
+
You may not propagate or modify a covered work except as expressly
|
410 |
+
provided under this License. Any attempt otherwise to propagate or
|
411 |
+
modify it is void, and will automatically terminate your rights under
|
412 |
+
this License (including any patent licenses granted under the third
|
413 |
+
paragraph of section 11).
|
414 |
+
|
415 |
+
However, if you cease all violation of this License, then your
|
416 |
+
license from a particular copyright holder is reinstated (a)
|
417 |
+
provisionally, unless and until the copyright holder explicitly and
|
418 |
+
finally terminates your license, and (b) permanently, if the copyright
|
419 |
+
holder fails to notify you of the violation by some reasonable means
|
420 |
+
prior to 60 days after the cessation.
|
421 |
+
|
422 |
+
Moreover, your license from a particular copyright holder is
|
423 |
+
reinstated permanently if the copyright holder notifies you of the
|
424 |
+
violation by some reasonable means, this is the first time you have
|
425 |
+
received notice of violation of this License (for any work) from that
|
426 |
+
copyright holder, and you cure the violation prior to 30 days after
|
427 |
+
your receipt of the notice.
|
428 |
+
|
429 |
+
Termination of your rights under this section does not terminate the
|
430 |
+
licenses of parties who have received copies or rights from you under
|
431 |
+
this License. If your rights have been terminated and not permanently
|
432 |
+
reinstated, you do not qualify to receive new licenses for the same
|
433 |
+
material under section 10.
|
434 |
+
|
435 |
+
9. Acceptance Not Required for Having Copies.
|
436 |
+
|
437 |
+
You are not required to accept this License in order to receive or
|
438 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
439 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
440 |
+
to receive a copy likewise does not require acceptance. However,
|
441 |
+
nothing other than this License grants you permission to propagate or
|
442 |
+
modify any covered work. These actions infringe copyright if you do
|
443 |
+
not accept this License. Therefore, by modifying or propagating a
|
444 |
+
covered work, you indicate your acceptance of this License to do so.
|
445 |
+
|
446 |
+
10. Automatic Licensing of Downstream Recipients.
|
447 |
+
|
448 |
+
Each time you convey a covered work, the recipient automatically
|
449 |
+
receives a license from the original licensors, to run, modify and
|
450 |
+
propagate that work, subject to this License. You are not responsible
|
451 |
+
for enforcing compliance by third parties with this License.
|
452 |
+
|
453 |
+
An "entity transaction" is a transaction transferring control of an
|
454 |
+
organization, or substantially all assets of one, or subdividing an
|
455 |
+
organization, or merging organizations. If propagation of a covered
|
456 |
+
work results from an entity transaction, each party to that
|
457 |
+
transaction who receives a copy of the work also receives whatever
|
458 |
+
licenses to the work the party's predecessor in interest had or could
|
459 |
+
give under the previous paragraph, plus a right to possession of the
|
460 |
+
Corresponding Source of the work from the predecessor in interest, if
|
461 |
+
the predecessor has it or can get it with reasonable efforts.
|
462 |
+
|
463 |
+
You may not impose any further restrictions on the exercise of the
|
464 |
+
rights granted or affirmed under this License. For example, you may
|
465 |
+
not impose a license fee, royalty, or other charge for exercise of
|
466 |
+
rights granted under this License, and you may not initiate litigation
|
467 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
468 |
+
any patent claim is infringed by making, using, selling, offering for
|
469 |
+
sale, or importing the Program or any portion of it.
|
470 |
+
|
471 |
+
11. Patents.
|
472 |
+
|
473 |
+
A "contributor" is a copyright holder who authorizes use under this
|
474 |
+
License of the Program or a work on which the Program is based. The
|
475 |
+
work thus licensed is called the contributor's "contributor version".
|
476 |
+
|
477 |
+
A contributor's "essential patent claims" are all patent claims
|
478 |
+
owned or controlled by the contributor, whether already acquired or
|
479 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
480 |
+
by this License, of making, using, or selling its contributor version,
|
481 |
+
but do not include claims that would be infringed only as a
|
482 |
+
consequence of further modification of the contributor version. For
|
483 |
+
purposes of this definition, "control" includes the right to grant
|
484 |
+
patent sublicenses in a manner consistent with the requirements of
|
485 |
+
this License.
|
486 |
+
|
487 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
488 |
+
patent license under the contributor's essential patent claims, to
|
489 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
490 |
+
propagate the contents of its contributor version.
|
491 |
+
|
492 |
+
In the following three paragraphs, a "patent license" is any express
|
493 |
+
agreement or commitment, however denominated, not to enforce a patent
|
494 |
+
(such as an express permission to practice a patent or covenant not to
|
495 |
+
sue for patent infringement). To "grant" such a patent license to a
|
496 |
+
party means to make such an agreement or commitment not to enforce a
|
497 |
+
patent against the party.
|
498 |
+
|
499 |
+
If you convey a covered work, knowingly relying on a patent license,
|
500 |
+
and the Corresponding Source of the work is not available for anyone
|
501 |
+
to copy, free of charge and under the terms of this License, through a
|
502 |
+
publicly available network server or other readily accessible means,
|
503 |
+
then you must either (1) cause the Corresponding Source to be so
|
504 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
505 |
+
patent license for this particular work, or (3) arrange, in a manner
|
506 |
+
consistent with the requirements of this License, to extend the patent
|
507 |
+
license to downstream recipients. "Knowingly relying" means you have
|
508 |
+
actual knowledge that, but for the patent license, your conveying the
|
509 |
+
covered work in a country, or your recipient's use of the covered work
|
510 |
+
in a country, would infringe one or more identifiable patents in that
|
511 |
+
country that you have reason to believe are valid.
|
512 |
+
|
513 |
+
If, pursuant to or in connection with a single transaction or
|
514 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
515 |
+
covered work, and grant a patent license to some of the parties
|
516 |
+
receiving the covered work authorizing them to use, propagate, modify
|
517 |
+
or convey a specific copy of the covered work, then the patent license
|
518 |
+
you grant is automatically extended to all recipients of the covered
|
519 |
+
work and works based on it.
|
520 |
+
|
521 |
+
A patent license is "discriminatory" if it does not include within
|
522 |
+
the scope of its coverage, prohibits the exercise of, or is
|
523 |
+
conditioned on the non-exercise of one or more of the rights that are
|
524 |
+
specifically granted under this License. You may not convey a covered
|
525 |
+
work if you are a party to an arrangement with a third party that is
|
526 |
+
in the business of distributing software, under which you make payment
|
527 |
+
to the third party based on the extent of your activity of conveying
|
528 |
+
the work, and under which the third party grants, to any of the
|
529 |
+
parties who would receive the covered work from you, a discriminatory
|
530 |
+
patent license (a) in connection with copies of the covered work
|
531 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
532 |
+
for and in connection with specific products or compilations that
|
533 |
+
contain the covered work, unless you entered into that arrangement,
|
534 |
+
or that patent license was granted, prior to 28 March 2007.
|
535 |
+
|
536 |
+
Nothing in this License shall be construed as excluding or limiting
|
537 |
+
any implied license or other defenses to infringement that may
|
538 |
+
otherwise be available to you under applicable patent law.
|
539 |
+
|
540 |
+
12. No Surrender of Others' Freedom.
|
541 |
+
|
542 |
+
If conditions are imposed on you (whether by court order, agreement or
|
543 |
+
otherwise) that contradict the conditions of this License, they do not
|
544 |
+
excuse you from the conditions of this License. If you cannot convey a
|
545 |
+
covered work so as to satisfy simultaneously your obligations under this
|
546 |
+
License and any other pertinent obligations, then as a consequence you may
|
547 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
548 |
+
to collect a royalty for further conveying from those to whom you convey
|
549 |
+
the Program, the only way you could satisfy both those terms and this
|
550 |
+
License would be to refrain entirely from conveying the Program.
|
551 |
+
|
552 |
+
13. Use with the GNU Affero General Public License.
|
553 |
+
|
554 |
+
Notwithstanding any other provision of this License, you have
|
555 |
+
permission to link or combine any covered work with a work licensed
|
556 |
+
under version 3 of the GNU Affero General Public License into a single
|
557 |
+
combined work, and to convey the resulting work. The terms of this
|
558 |
+
License will continue to apply to the part which is the covered work,
|
559 |
+
but the special requirements of the GNU Affero General Public License,
|
560 |
+
section 13, concerning interaction through a network will apply to the
|
561 |
+
combination as such.
|
562 |
+
|
563 |
+
14. Revised Versions of this License.
|
564 |
+
|
565 |
+
The Free Software Foundation may publish revised and/or new versions of
|
566 |
+
the GNU General Public License from time to time. Such new versions will
|
567 |
+
be similar in spirit to the present version, but may differ in detail to
|
568 |
+
address new problems or concerns.
|
569 |
+
|
570 |
+
Each version is given a distinguishing version number. If the
|
571 |
+
Program specifies that a certain numbered version of the GNU General
|
572 |
+
Public License "or any later version" applies to it, you have the
|
573 |
+
option of following the terms and conditions either of that numbered
|
574 |
+
version or of any later version published by the Free Software
|
575 |
+
Foundation. If the Program does not specify a version number of the
|
576 |
+
GNU General Public License, you may choose any version ever published
|
577 |
+
by the Free Software Foundation.
|
578 |
+
|
579 |
+
If the Program specifies that a proxy can decide which future
|
580 |
+
versions of the GNU General Public License can be used, that proxy's
|
581 |
+
public statement of acceptance of a version permanently authorizes you
|
582 |
+
to choose that version for the Program.
|
583 |
+
|
584 |
+
Later license versions may give you additional or different
|
585 |
+
permissions. However, no additional obligations are imposed on any
|
586 |
+
author or copyright holder as a result of your choosing to follow a
|
587 |
+
later version.
|
588 |
+
|
589 |
+
15. Disclaimer of Warranty.
|
590 |
+
|
591 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
592 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
593 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
594 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
595 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
596 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
597 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
598 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
599 |
+
|
600 |
+
16. Limitation of Liability.
|
601 |
+
|
602 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
603 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
604 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
605 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
606 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
607 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
608 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
609 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
610 |
+
SUCH DAMAGES.
|
611 |
+
|
612 |
+
17. Interpretation of Sections 15 and 16.
|
613 |
+
|
614 |
+
If the disclaimer of warranty and limitation of liability provided
|
615 |
+
above cannot be given local legal effect according to their terms,
|
616 |
+
reviewing courts shall apply local law that most closely approximates
|
617 |
+
an absolute waiver of all civil liability in connection with the
|
618 |
+
Program, unless a warranty or assumption of liability accompanies a
|
619 |
+
copy of the Program in return for a fee.
|
620 |
+
|
621 |
+
END OF TERMS AND CONDITIONS
|
622 |
+
|
623 |
+
How to Apply These Terms to Your New Programs
|
624 |
+
|
625 |
+
If you develop a new program, and you want it to be of the greatest
|
626 |
+
possible use to the public, the best way to achieve this is to make it
|
627 |
+
free software which everyone can redistribute and change under these terms.
|
628 |
+
|
629 |
+
To do so, attach the following notices to the program. It is safest
|
630 |
+
to attach them to the start of each source file to most effectively
|
631 |
+
state the exclusion of warranty; and each file should have at least
|
632 |
+
the "copyright" line and a pointer to where the full notice is found.
|
633 |
+
|
634 |
+
<one line to give the program's name and a brief idea of what it does.>
|
635 |
+
Copyright (C) <year> <name of author>
|
636 |
+
|
637 |
+
This program is free software: you can redistribute it and/or modify
|
638 |
+
it under the terms of the GNU General Public License as published by
|
639 |
+
the Free Software Foundation, either version 3 of the License, or
|
640 |
+
(at your option) any later version.
|
641 |
+
|
642 |
+
This program is distributed in the hope that it will be useful,
|
643 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
644 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
645 |
+
GNU General Public License for more details.
|
646 |
+
|
647 |
+
You should have received a copy of the GNU General Public License
|
648 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
649 |
+
|
650 |
+
Also add information on how to contact you by electronic and paper mail.
|
651 |
+
|
652 |
+
If the program does terminal interaction, make it output a short
|
653 |
+
notice like this when it starts in an interactive mode:
|
654 |
+
|
655 |
+
<program> Copyright (C) <year> <name of author>
|
656 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
657 |
+
This is free software, and you are welcome to redistribute it
|
658 |
+
under certain conditions; type `show c' for details.
|
659 |
+
|
660 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
661 |
+
parts of the General Public License. Of course, your program's commands
|
662 |
+
might be different; for a GUI interface, you would use an "about box".
|
663 |
+
|
664 |
+
You should also get your employer (if you work as a programmer) or school,
|
665 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
666 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
667 |
+
<http://www.gnu.org/licenses/>.
|
668 |
+
|
669 |
+
The GNU General Public License does not permit incorporating your program
|
670 |
+
into proprietary programs. If your program is a subroutine library, you
|
671 |
+
may consider it more useful to permit linking proprietary applications with
|
672 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
673 |
+
Public License instead of this License. But first, please read
|
674 |
+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
readme.txt
ADDED
@@ -0,0 +1,1782 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Photo Gallery - Image Gallery - Photo Albums - All in One WordPress Gallery Plugin ===
|
2 |
+
Contributors: Gallery-Bank, contact-banker
|
3 |
+
Tags: album, gallery, gallery plugin, gallery widget, image gallery, masonry gallery, media gallery, photo album, photo gallery, wordpress gallery, wordpress gallery plugin, responsive gallery, photo albums, gallery lightbox, wordpress photo gallery plugin
|
4 |
+
Requires at least: 3.4
|
5 |
+
Tested up to: 4.8
|
6 |
+
Stable Tag: trunk
|
7 |
+
License: GPLv3 or later
|
8 |
+
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
+
|
10 |
+
Photo Gallery by Gallery Bank can be used to create a gallery widget, media gallery, image gallery, portfolio gallery and photo albums.
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
= WordPress Photo Gallery Plugin =
|
15 |
+
|
16 |
+
[**WordPress Photo Gallery Plugin by Gallery Bank**](https://gallery-bank.tech-banker.com/) is a WordPress Gallery Plugin designed to create elegant and beautiful **photo gallery** and **albums** along with Images and videos using Grid Albums, List Albums, Individual Albums, Masonry Layouts and Thumbnail Layouts along with Special Effects and Animation Effects.
|
17 |
+
|
18 |
+
**WordPress Photo Gallery Plugin by Gallery Bank** is the only available WordPress Plugin in the market with extra-ordinary features. It is loaded with 200+ features and creates stunning Photo Galleries on any WordPress site.
|
19 |
+
|
20 |
+
**WordPress Photo Gallery Plugin by Gallery Bank** provides a powerful engine for uploading and managing photo galleries of images & videos, with the ability to batch upload, delete, rearrange, sort images.
|
21 |
+
|
22 |
+
Gallery Bank Regularly updates and simplicity of usage along with efficient functionality makes it a perfect choice for your wordpress site to have stunning look. There are also Premium Editions of the plugin with more useful features available.
|
23 |
+
|
24 |
+
> #### **Live Demos - WordPress Photo Gallery Plugin by Gallery Bank**
|
25 |
+
|
26 |
+
* [Gallery Bank Demos](https://gallery-bank.tech-banker.com/frontend-demos/)
|
27 |
+
* [Image Gallery in Thumbnail Layout](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-title-description-thumbnail-layout/)
|
28 |
+
* [Image Gallery in Thumbnail Layout with Lightboxes](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lightboxes-thumbnail-layout/)
|
29 |
+
* [Image Gallery in Thumbnail Layout with Pagination](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-pagination-thumbnail-layout/)
|
30 |
+
* [Image Gallery in Thumbnail Layout with Lazy Load](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lazy-load-thumbnail-layout/)
|
31 |
+
* [Image Gallery in Thumbnail Layout with Filters](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-filters-thumbnail-layout/)
|
32 |
+
* [Image Gallery in Thumbnail Layout with Order By](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-order-by-thumbnail-layout/)
|
33 |
+
* [Image Gallery in Thumbnail Layout with Search Box](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-search-box-thumbnail-layout/)
|
34 |
+
* [Image Gallery in Thumbnail Layout with Watermark](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-watermark-thumbnail-layout/)
|
35 |
+
* [Image Gallery in Thumbnail Layout with Animation Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-animation-thumbnail-layout/)
|
36 |
+
* [Image Gallery in Thumbnail Layout with Special Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-special-effects-thumbnail-layout/)
|
37 |
+
* [Image Gallery in Masonry Layout](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-title-description-masonry-layout/)
|
38 |
+
* [Image Gallery in Masonry Layout with Lightboxes](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lightboxes-masonry-layout/)
|
39 |
+
* [Image Gallery in Masonry Layout with Pagination](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-pagination-masonry-layout/)
|
40 |
+
* [Image Gallery in Masonry Layout with Lazy Load](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lazy-load-masonry-layout/)
|
41 |
+
* [Image Gallery in Masonry Layout with Filters](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-filters-masonry-layout/)
|
42 |
+
* [Image Gallery in Masonry Layout with Order By](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-order-by-masonry-layout/)
|
43 |
+
* [Image Gallery in Masonry Layout with Search Box](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-search-box-masonry-layout/)
|
44 |
+
* [Image Gallery in Masonry Layout with Watermark](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-watermark-masonry-layout/)
|
45 |
+
* [Image Gallery in Masonry Layout with Animation Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-animation-masonry-layout/)
|
46 |
+
* [Image Gallery in Masonry Layout with Special Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-special-effects-masonry-layout/)
|
47 |
+
* [Image Gallery in Slide Show Layout](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-title-description-slideshow-layout/)
|
48 |
+
* [Image Gallery in Slide Show Layout with Lazy Load](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lazy-load-slideshow-layout/)
|
49 |
+
* [Image Gallery in Slide Show Layout with Filters](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-filters-slideshow-layout/)
|
50 |
+
* [Image Gallery in Slide Show Layout with Order By](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-order-by-slideshow-layout/)
|
51 |
+
* [Image Gallery in Slide Show Layout with Search Box](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-search-box-slideshow-layout/)
|
52 |
+
* [Image Gallery in Slide Show Layout with Watermark](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-watermark-slideshow-layout/)
|
53 |
+
* [Image Gallery in Slide Show Layout with Animation Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-animation-slideshow-layout/)
|
54 |
+
* [Image Gallery in Slide Show Layout with Special Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-special-effects-slideshow-layout/)
|
55 |
+
* [Image Gallery in Image Browser Layout](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-title-description-image-browser-layout/)
|
56 |
+
* [Image Gallery in Image Browser Layout with Lazy Load](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lazy-load-image-browser-layout/)
|
57 |
+
* [Image Gallery in Image Browser Layout with Filters](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-filters-image-browser-layout/)
|
58 |
+
* [Image Gallery in Image Browser Layout with Order By](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-order-by-image-browser-layout/)
|
59 |
+
* [Image Gallery in Image Browser Layout with Search Box](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-search-box-image-browser-layout/)
|
60 |
+
* [Image Gallery in Image Browser Layout with Watermark](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-watermark-image-browser-layout/)
|
61 |
+
* [Image Gallery in Image Browser Layout with Animation Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-animation-image-browser-layout/)
|
62 |
+
* [Image Gallery in Image Browser Layout with Special Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-special-effects-image-browser-layout/)
|
63 |
+
* [Image Gallery in Justified Grid Layout](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-title-description-justified-grid-layout/)
|
64 |
+
* [Image Gallery in Justified Grid Layout with Lightboxes](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lightboxes-justified-grid-layout/)
|
65 |
+
* [Image Gallery in Justified Grid Layout with Pagination](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-pagination-justified-grid-layout/)
|
66 |
+
* [Image Gallery in Justified Grid with Lazy Load](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lazy-load-justified-grid-layout/)
|
67 |
+
* [Image Gallery in Justified Grid with Filters](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-filters-justified-grid-layout/)
|
68 |
+
* [Image Gallery in Justified Grid with Order By](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-order-by-justified-grid-layout/)
|
69 |
+
* [Image Gallery in Justified Grid with Search Box](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-search-box-justified-grid-layout/)
|
70 |
+
* [Image Gallery in Justified Grid Layout with Watermark](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-watermark-justified-grid-layout/)
|
71 |
+
* [Image Gallery in Justified Grid Layout with Animation Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-animation-justified-grid-layout/)
|
72 |
+
* [Image Gallery in Justified Grid Layout with Special Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-special-effects-justified-grid-layout/)
|
73 |
+
* [Image Gallery in Blog Style Layout](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-title-description-blog-style-layout/)
|
74 |
+
* [Image Gallery in Blog Style Layout with Lightboxes](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lightboxes-blog-style-layout/)
|
75 |
+
* [Image Gallery in Blog Style Layout with Pagination](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-pagination-blog-style-layout/)
|
76 |
+
* [Image Gallery in Blog Style with Lazy Load](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-lazy-load-blog-style-layout/)
|
77 |
+
* [Image Gallery in Blog Style with Filters](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-filters-blog-style-layout/)
|
78 |
+
* [Image Gallery in Blog Style with Order By](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-order-by-blog-style-layout/)
|
79 |
+
* [Image Gallery in Blog Style with Search Box](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-search-box-blog-style-layout/)
|
80 |
+
* [Image Gallery in Blog Style Layout with Watermark](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-watermark-blog-style-layout/)
|
81 |
+
* [Image Gallery in Blog Style Layout with Animation Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-animation-blog-style-layout/)
|
82 |
+
* [Image Gallery in Blog Style Layout with Special Effects](https://gallery-bank.tech-banker.com/frontend-demos/individual-images-with-special-effects-blog-style-layout/)
|
83 |
+
* [Image Gallery in Compact Album Layout](https://gallery-bank.tech-banker.com/frontend-demos/compact-album-with-title-description-thumbnail-layout/)
|
84 |
+
* [Image Gallery in Extended Album Layout](https://gallery-bank.tech-banker.com/frontend-demos/extended-album-with-title-description-thumbnail-layout/)
|
85 |
+
|
86 |
+
|
87 |
+
**[Upgrade to Pro Version](https://gallery-bank.tech-banker.com/)**
|
88 |
+
|
89 |
+
**[Like & Support Us on Facebook](https://www.facebook.com/TechBanker/)**
|
90 |
+
|
91 |
+
= **Key Features in Gallery Bank Lite Edition** =
|
92 |
+
|
93 |
+
* 100% Responsive Photo Gallery Plugin.
|
94 |
+
* Create & Manage unlimited amount of image galleries on your wordpress site.
|
95 |
+
* Upload unlimited amount of photos/images in your gallery.
|
96 |
+
* Images uploaded are stored in a separate directory to avoid mess up with wp-uploads.
|
97 |
+
* Photo Metadata is fetched from each image and populates to Title, Description, Alt Text Fields too.
|
98 |
+
* Photo Metadata is retrieved as per IPTC Standard mentioned [here](https://iptc.org/standards/photo-metadata/photo-metadata/)
|
99 |
+
* Add Gallery Title and Gallery Description to each of your galleries.
|
100 |
+
* Add Image Title, Image Description, Alt Text to each of your images in your photo gallery.
|
101 |
+
* Possibility to exclude images from displaying in a particular gallery.
|
102 |
+
* Add Single Gallery to your page or post using a shortcode.
|
103 |
+
* Add a caption to each photo in the album.
|
104 |
+
* Change the size of album cover thumbnails and photos in the album.
|
105 |
+
* Choose a number of pictures to display in one row in the gallery album.
|
106 |
+
* View pictures as a slide show and in a full size.
|
107 |
+
* 3 different Widgets: Display a single album, create a list of album links, display latest/random media
|
108 |
+
* User-friendly AJAX admin
|
109 |
+
* Upload different types of media
|
110 |
+
|
111 |
+
= **Key Features in Gallery Bank Premium Editions** =
|
112 |
+
|
113 |
+
Take your media to the next level with [Gallery Bank Premium Editions](https://gallery-bank.tech-banker.com/), which gives you 200+ features such as:
|
114 |
+
|
115 |
+
* Unlimited Albums Creation
|
116 |
+
* Filmstrip Gallery Format
|
117 |
+
* Slideshow Gallery
|
118 |
+
* Special Effects on Images & Albums
|
119 |
+
* Animation Effects on Images & Albums
|
120 |
+
* Bulk Deletion of Images
|
121 |
+
* Fully CSS3 compliant with text shadowing, box shadowing, gradients, etc
|
122 |
+
* Sorting of Images
|
123 |
+
* Sorting of Albums
|
124 |
+
* Social Sharing
|
125 |
+
* Commenting on Images
|
126 |
+
* Widgets
|
127 |
+
* Tags for each Image to make Filerable Gallery Album
|
128 |
+
* Bulk Deletion of Albums
|
129 |
+
* Purging Albums and Images
|
130 |
+
* Restore Factory Settings
|
131 |
+
* Global Settings
|
132 |
+
* Thumbnail Settings
|
133 |
+
* Album Settings
|
134 |
+
* Lightbox Settings
|
135 |
+
* Different Lightboxes like FooBox, ColorBox, FancyBox2, Lightbox2, Custom GB Lightbox, Pretty Photo
|
136 |
+
* Pagination
|
137 |
+
* Filter Settings
|
138 |
+
* Roles & Capabilities
|
139 |
+
* Front End Layout Settings
|
140 |
+
* See your media on different theme and more.
|
141 |
+
* Powerfull control panel and Shortcode Manager make getting started super easy
|
142 |
+
* 24/7 Technical Support
|
143 |
+
|
144 |
+
Visit [here](https://gallery-bank.tech-banker.com/) to upgrade to Pro Editions now.
|
145 |
+
|
146 |
+
= Add New Albums using Gallery Bank =
|
147 |
+
|
148 |
+
You can add upto 3 albums with unlimited images in your Gallery Bank. After that you need to upgrade to one of the Premium Editions for unlimited access with different features available according to different packages of Gallery Bank.
|
149 |
+
|
150 |
+
= Editing Albums using Gallery Bank =
|
151 |
+
|
152 |
+
In albums, editing can be done easily. You can edit or add more images/ pictures in your albums. You can change title/description of an album as well as title/description of each image uploaded in a particular album.
|
153 |
+
|
154 |
+
= Sorting of Images in an Album using Gallery Bank =
|
155 |
+
|
156 |
+
Sorting of Images can be done in your albums. With this feature, you can change the order of pictures according to your requirement/choice.
|
157 |
+
|
158 |
+
= Sorting of Albums using Gallery Bank =
|
159 |
+
|
160 |
+
Sorting of Albums can be done in your albums. With this feature, you can re-arrange your order of albums to display on your website.
|
161 |
+
|
162 |
+
= Album Preview using Gallery Bank =
|
163 |
+
|
164 |
+
In album preview you can view the pictures/images on your back-end before implementing the shortcodes on your Pages/Posts.
|
165 |
+
|
166 |
+
= Cover Image using Gallery Bank =
|
167 |
+
|
168 |
+
You can easily set the cover image in your album. This cover image would be used to display on your Pages/Post when using the Album shortcodes.
|
169 |
+
|
170 |
+
= Short Codes using Gallery Bank =
|
171 |
+
|
172 |
+
There is a Shortcode Editor availble in your Page/Post where you want to implement the Gallery Bank Shortcode. You just need to go to your Page/Post where you want to implement it and then above your Text Editor/ WP Editor, there would be a button called Gallery Bank. Once you click on it, you can generate your shortcode easily and quickly.
|
173 |
+
|
174 |
+
= Global Settings using Gallery Bank =
|
175 |
+
|
176 |
+
With Global Settings, you can define different settings for Thumbnails, Albums, Lightboxes, Filters, Pagination and Slideshows.
|
177 |
+
|
178 |
+
= Technical Support =
|
179 |
+
|
180 |
+
If any problem occurs, please contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
|
181 |
+
|
182 |
+
== Installation ==
|
183 |
+
|
184 |
+
### Performing a new installation for Gallery Bank.
|
185 |
+
|
186 |
+
= Minimum requirements. =
|
187 |
+
* Wordpress 3.1+
|
188 |
+
* PHP 5.x
|
189 |
+
* MySQL 5.x
|
190 |
+
|
191 |
+
= Using The WordPress Dashboard =
|
192 |
+
|
193 |
+
1. Navigate to the 'Add New' in the Plugins Dashboard
|
194 |
+
2. Search for 'Gallery Bank'
|
195 |
+
3. Click 'Install Now'
|
196 |
+
4. Activate the Plugin on the Plugin dashboard
|
197 |
+
|
198 |
+
= Uploading in WordPress Dashboard =
|
199 |
+
|
200 |
+
1. Navigate to the 'Add New' in the Plugins Dashboard
|
201 |
+
2. Navigate to the 'Upload' area
|
202 |
+
3. Select `gallery-bank.zip` from your computer
|
203 |
+
4. Click 'Install Now'
|
204 |
+
5. Activate the Plugin in the Plugin dashboard
|
205 |
+
|
206 |
+
= Using FTP =
|
207 |
+
|
208 |
+
1. Download `gallery-bank.zip`
|
209 |
+
2. Extract the `gallery-bank` directory to your computer
|
210 |
+
3. Upload the `gallery-bank` directory to the `/wp-content/plugins/` directory
|
211 |
+
4. Activate the Plugin in the Plugin's dashboard
|
212 |
+
|
213 |
+
** For Mac Users
|
214 |
+
|
215 |
+
1. Go to your Downloads folder and locate the folder with the Plugin.
|
216 |
+
2. Right-click on the folder and select Compress.
|
217 |
+
3. Now you have a newly created .zip file which can be installed as described here.
|
218 |
+
|
219 |
+
== Other Notes ==
|
220 |
+
|
221 |
+
= Minimum requirements for Gallery Bank. =
|
222 |
+
* Wordpress 3.3+
|
223 |
+
* PHP 5.x
|
224 |
+
* MySQL 5.x
|
225 |
+
|
226 |
+
If any problem occurs, please contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
|
227 |
+
|
228 |
+
== Frequently Asked Questions ==
|
229 |
+
|
230 |
+
= How to add New Album in Gallery Bank? =
|
231 |
+
|
232 |
+
In order to Add New Album in your Gallery Bank, locate Gallery Bank Menu on the left side of WordPress Dashboard Menus and then click on Add New Album link.
|
233 |
+
|
234 |
+
Alternatively, you can also Add New Album from your Gallery Bank Dashboard Page.
|
235 |
+
|
236 |
+
There is a button at the top of the Gallery Bank Dashboard Page which says Add New Album.
|
237 |
+
|
238 |
+
First Method:
|
239 |
+
|
240 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/gallery-bank-left-menu.png)
|
241 |
+
|
242 |
+
Alternate Method:
|
243 |
+
|
244 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/gallery-bank-left-menu2.png)
|
245 |
+
|
246 |
+
Once you click on the button from any of the above mentioned methods, this page would open.
|
247 |
+
|
248 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/add-new-album-explanation.png)
|
249 |
+
|
250 |
+
|
251 |
+
= How to Edit an Album in Gallery Bank? =
|
252 |
+
|
253 |
+
In order to Edit an Album, you need to go to your Gallery Bank Dashboard Page and then click on Edit Album Button located at the right side of each album which you wish to edit.
|
254 |
+
|
255 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/Edit.png)
|
256 |
+
|
257 |
+
Once you Click on the button, this page will open.
|
258 |
+
|
259 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/Edit_img-938x1024.png)
|
260 |
+
|
261 |
+
|
262 |
+
= How to Preview an Album in Gallery Bank? =
|
263 |
+
|
264 |
+
In order to Preview your Album, you need to go to your Gallery Bank Dashboard Page
|
265 |
+
and then click on Preview Album button at the right side of each album.
|
266 |
+
|
267 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/preview11-1024x408.png)
|
268 |
+
|
269 |
+
Once you click on the button, this page will open
|
270 |
+
|
271 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/preview21-1024x487.png)
|
272 |
+
|
273 |
+
|
274 |
+
= How to Delete an Album in Gallery Bank? =
|
275 |
+
|
276 |
+
You can Delete an Album if you wish to. In order to perform this action, you need to go to your Gallery Bank Dashboard Page and then click on Delete Album button at the right side of each album.
|
277 |
+
|
278 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/delete11-1024x409.png)
|
279 |
+
|
280 |
+
Once you click on the button, a confirmation message will appear stating "Are you sure you want to delete this Album?"
|
281 |
+
|
282 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/delete2-1024x406.png)
|
283 |
+
|
284 |
+
Click on "OK" to proceed and your Album would be deleted.
|
285 |
+
|
286 |
+
|
287 |
+
= How to set Short code for Masonry Gallery? =
|
288 |
+
|
289 |
+
In order to set Shortcode for Masonry Gallery, you need to follow these steps :
|
290 |
+
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
291 |
+
|
292 |
+
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
293 |
+
|
294 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/add_new_page.png)
|
295 |
+
|
296 |
+
2) When you click on Add New button, this page will open.
|
297 |
+
|
298 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry2-1024x511.png)
|
299 |
+
|
300 |
+
3) After clicking on Gallery Bank button, this Popup will open.
|
301 |
+
|
302 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry3-1024x451.png)
|
303 |
+
|
304 |
+
NOTE: You can set Images in Row for Masonry Gallery only if Show Responsive Gallery
|
305 |
+
option is False in shortcode.
|
306 |
+
|
307 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry4-1024x657.png)
|
308 |
+
|
309 |
+
|
310 |
+
= How to set Short code for Thumbnail Gallery? =
|
311 |
+
|
312 |
+
In order to set Shortcode for Thumbnail Gallery, you need to follow these steps :
|
313 |
+
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
314 |
+
|
315 |
+
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
316 |
+
|
317 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/add_new_page.png)
|
318 |
+
|
319 |
+
2) When you click on Add New button, this page will open.
|
320 |
+
|
321 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry2-1024x511.png)
|
322 |
+
|
323 |
+
3) After clicking on Gallery Bank button, this Popup will open.
|
324 |
+
|
325 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thumbnail1-1024x493.png)
|
326 |
+
|
327 |
+
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery option
|
328 |
+
is False in shortcode.
|
329 |
+
|
330 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thmbnail2-1024x450.png)
|
331 |
+
|
332 |
+
|
333 |
+
= How to set Short code for Grid Album using Masonry Gallery? =
|
334 |
+
|
335 |
+
In order to set Shortcode for Grid Album with Masonry Gallery, you need to follow these steps :
|
336 |
+
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
337 |
+
|
338 |
+
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
339 |
+
|
340 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/add_new_page.png)
|
341 |
+
|
342 |
+
2) When you click on Add New button, this page will open.
|
343 |
+
|
344 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry2-1024x511.png)
|
345 |
+
|
346 |
+
3) After clicking on Gallery Bank button, this Popup will open.
|
347 |
+
|
348 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_masonry1-1024x541.png)
|
349 |
+
|
350 |
+
Note: You can set Images in Row for Masonry Gallery only if Show Responsive Gallery option
|
351 |
+
is False in shortcode.
|
352 |
+
|
353 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_masonry2-1024x573.png)
|
354 |
+
|
355 |
+
|
356 |
+
= How to set Short code for Grid Album using Thumbnail Gallery? =
|
357 |
+
|
358 |
+
In order to set Shortcode for Grid Album with Thumbnail Gallery, you need to follow these steps :
|
359 |
+
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
360 |
+
|
361 |
+
Once you click on the Pages, this page would open. Click on Add New button to add a new page.
|
362 |
+
|
363 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/add_new_page.png)
|
364 |
+
|
365 |
+
2) When you click on Add New button, this page will open.
|
366 |
+
|
367 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry2-1024x511.png)
|
368 |
+
|
369 |
+
3) When you click on Gallery Bank button, this Popup will open.
|
370 |
+
|
371 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_thumbnail2-1024x574.png)
|
372 |
+
|
373 |
+
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery
|
374 |
+
option is False in shortcode.
|
375 |
+
|
376 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_thumbnail2-1024x574.png)
|
377 |
+
|
378 |
+
|
379 |
+
= How to set Short code for List Album using Masonry Gallery? =
|
380 |
+
|
381 |
+
In order to set Shortcode for List Album with Masonry Gallery, you need to follow these steps :
|
382 |
+
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
383 |
+
|
384 |
+
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
385 |
+
|
386 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/add_new_page.png)
|
387 |
+
|
388 |
+
2) When you click on Add New button, this page will open.
|
389 |
+
|
390 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry2-1024x511.png)
|
391 |
+
|
392 |
+
3) After clicking on Gallery Bank button, this Popup will open.
|
393 |
+
|
394 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry_list_1.png)
|
395 |
+
|
396 |
+
|
397 |
+
= How to set Short code for List Album using Thumbnail Gallery? =
|
398 |
+
|
399 |
+
In order to set Shortcode for List Album with Thumbnail Gallery, you need to follow these steps :
|
400 |
+
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
401 |
+
|
402 |
+
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
403 |
+
|
404 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/add_new_page.png)
|
405 |
+
|
406 |
+
2) When you click on Add New button, this page will open.
|
407 |
+
|
408 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry2-1024x511.png)
|
409 |
+
|
410 |
+
3) After clicking on Gallery Bank button, this Popup will open.
|
411 |
+
|
412 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thumbnail_list_1-1024x467.png)
|
413 |
+
|
414 |
+
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery option
|
415 |
+
is False in shortcode.
|
416 |
+
|
417 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thumbnail_list_2-1024x462.png)
|
418 |
+
|
419 |
+
|
420 |
+
= How to set Short code for Individual Album using Masonry Gallery? =
|
421 |
+
|
422 |
+
In order to set Shortcode for Individual Album with Masonry Gallery, you need to follow these steps :
|
423 |
+
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
424 |
+
|
425 |
+
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
426 |
+
|
427 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/add_new_page.png)
|
428 |
+
|
429 |
+
2) When you click on Add New button, this page will open.
|
430 |
+
|
431 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry2-1024x511.png)
|
432 |
+
|
433 |
+
3) After clicking on Gallery Bank button, this Popup will open.
|
434 |
+
|
435 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/individual_masonry1-1024x495.png)
|
436 |
+
|
437 |
+
NOTE: You can set Images in Row for Masonry Gallery only if Show Responsive Gallery option
|
438 |
+
is False in shortcode.
|
439 |
+
|
440 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/individual_masonry_2-1024x559.png)
|
441 |
+
|
442 |
+
|
443 |
+
= How to set Short code for Individual Album using Thumbnail Gallery? =
|
444 |
+
|
445 |
+
In order to set Shortcode for Individual Album with Thumbnail Gallery, you need to follow these steps :
|
446 |
+
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
447 |
+
|
448 |
+
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
449 |
+
|
450 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/422x105xadd_new_page1.png.pagespeed.ic.0XLpT7oDfn.png)
|
451 |
+
|
452 |
+
2) When you click on Add New button, this page will open.
|
453 |
+
|
454 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/800xNxmasonry2-1024x511.png.pagespeed.ic.cYyWvoC3qL.jpg)
|
455 |
+
|
456 |
+
3) After clicking on Gallery Bank button, this Popup will open.
|
457 |
+
|
458 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/individual-_thumbnail1-1024x512.png)
|
459 |
+
|
460 |
+
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery option
|
461 |
+
is False in shortcode.
|
462 |
+
|
463 |
+
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/individual-_thumbnail2-1024x574.png)
|
464 |
+
|
465 |
+
== Screenshots ==
|
466 |
+
|
467 |
+
1. Manage Galleries
|
468 |
+
2. Add Gallery - Gallery Title & Description
|
469 |
+
3. Add Gallery - Upload Images
|
470 |
+
4. Add Gallery - Upload Images - WP Media Manager
|
471 |
+
5. Add Gallery - Upload Images - Upload From FTP
|
472 |
+
6. Sort Galleries
|
473 |
+
7. Manage Albums
|
474 |
+
8. Add Album - Album Title & Description
|
475 |
+
9. Add Album - Upload Albums
|
476 |
+
10. Sort Albums
|
477 |
+
11. Manage Tags
|
478 |
+
12. Add Tag
|
479 |
+
13. Layout Settings - Thumbnail Gallery Layout - Thumbnails
|
480 |
+
14. Layout Settings - Thumbnail Gallery Layout - Gallery Title
|
481 |
+
15. Layout Settings - Thumbnail Gallery Layout - Gallery Description
|
482 |
+
16. Layout Settings - Thumbnail Gallery Layout - Thumbnail Title
|
483 |
+
17. Layout Settings - Thumbnail Gallery Layout - Thumbnail Description
|
484 |
+
18. Layout Settings - Masonry Gallery Layout - Thumbnails
|
485 |
+
19. Layout Settings - Masonry Gallery Layout - Gallery Title
|
486 |
+
20. Layout Settings - Masonry Gallery Layout - Gallery Description
|
487 |
+
21. Layout Settings - Masonry Gallery Layout - Thumbnail Title
|
488 |
+
22. Layout Settings - Masonry Gallery Layout - Thumbnail Description
|
489 |
+
23. Layout Settings - Slideshow Gallery Layout - Thumbnails
|
490 |
+
24. Layout Settings - Slideshow Gallery Layout - Gallery Title
|
491 |
+
25. Layout Settings - Slideshow Gallery Layout - Gallery Description
|
492 |
+
26. Layout Settings - Slideshow Gallery Layout - Thumbnail Title
|
493 |
+
27. Layout Settings - Slideshow Gallery Layout - Thumbnail Description
|
494 |
+
28. Layout Settings - Image Browser Gallery Layout - Thumbnails
|
495 |
+
29. Layout Settings - Image Browser Gallery Layout - Gallery Title
|
496 |
+
30. Layout Settings - Image Browser Gallery Layout - Gallery Description
|
497 |
+
31. Layout Settings - Image Browser Gallery Layout - Thumbnail Title
|
498 |
+
32. Layout Settings - Image Browser Gallery Layout - Thumbnail Description
|
499 |
+
33. Layout Settings - Justified Grid Gallery Layout - Thumbnails
|
500 |
+
34. Layout Settings - Justified Grid Gallery Layout - Gallery Title
|
501 |
+
35. Layout Settings - Justified Grid Gallery Layout - Gallery Description
|
502 |
+
36. Layout Settings - Justified Grid Gallery Layout - Thumbnail Title
|
503 |
+
37. Layout Settings - Justified Grid Gallery Layout - Thumbnail Description
|
504 |
+
38. Layout Settings - Blog Style Gallery Layout - Thumbnails
|
505 |
+
39. Layout Settings - Blog Style Gallery Layout - Gallery Title
|
506 |
+
40. Layout Settings - Blog Style Gallery Layout - Gallery Description
|
507 |
+
41. Layout Settings - Blog Style Gallery Layout - Thumbnail Title
|
508 |
+
42. Layout Settings - Blog Style Gallery Layout - Thumbnail Description
|
509 |
+
43. Layout Settings - Compact Album Layout - Thumbnails
|
510 |
+
44. Layout Settings - Compact Album Layout - Album Title
|
511 |
+
45. Layout Settings - Compact Album Layout - Album Description
|
512 |
+
46. Layout Settings - Compact Album Layout - Gallery Title
|
513 |
+
47. Layout Settings - Compact Album Layout - Gallery Description
|
514 |
+
48. Layout Settings - Compact Album Layout - Buttons
|
515 |
+
49. Layout Settings - Extended Album Layout - Thumbnails
|
516 |
+
50. Layout Settings - Extended Album Layout - Album Title
|
517 |
+
51. Layout Settings - Extended Album Layout - Album Description
|
518 |
+
52. Layout Settings - Extended Album Layout - Gallery Title
|
519 |
+
53. Layout Settings - Extended Album Layout - Gallery Description
|
520 |
+
54. Layout Settings - Extended Album Layout - Buttons
|
521 |
+
55. Layout Settings - Custom CSS
|
522 |
+
56. Lightboxes - Lightcase - Settings
|
523 |
+
57. Lightboxes - Lightcase - Image Title
|
524 |
+
58. Lightboxes - Lightcase - Image Description
|
525 |
+
59. Lightboxes - Fancy Box - Settings
|
526 |
+
60. Lightboxes - Fancy Box - Image Title
|
527 |
+
61. Lightboxes - Fancy Box - Image Description
|
528 |
+
62. Lightboxes - Color Box - Settings
|
529 |
+
63. Lightboxes - Color Box - Image Title
|
530 |
+
64. Lightboxes - Color Box - Image Description
|
531 |
+
65. Lightboxes - Foo Box Free Edition - Settings
|
532 |
+
66. Lightboxes - Foo Box Free Edition - Image Title
|
533 |
+
67. Lightboxes - Foo Box Free Edition - Image Description
|
534 |
+
68. Lightboxes - Nivo Lightbox - Settings
|
535 |
+
69. Lightboxes - Nivo Lightbox - Image Title
|
536 |
+
70. Lightboxes - Nivo Lightbox - Image Description
|
537 |
+
71. General Settings - Global Options
|
538 |
+
72. General Settings - Lazy Load Settings
|
539 |
+
73. General Settings - Filter Settings
|
540 |
+
74. General Settings - Order By Settings
|
541 |
+
75. General Settings - Search Box Settings
|
542 |
+
76. General Settings - Page Navigation
|
543 |
+
77. General Settings - Watermark Settings - Text
|
544 |
+
78. General Settings - Watermark Settings - Image
|
545 |
+
79. General Settings - Advertisement - Text
|
546 |
+
80. General Settings - Advertisement - Image
|
547 |
+
81. Shortcodes - Thumbnail Gallery Layout
|
548 |
+
82. Shortcodes - Masonry Gallery Layout
|
549 |
+
83. Shortcodes - Slideshow Gallery Layout
|
550 |
+
84. Shortcodes - Image Browser Gallery Layout
|
551 |
+
85. Shortcodes - Justified Grid Gallery Layout
|
552 |
+
86. Shortcodes - Blog Style Gallery Layout
|
553 |
+
87. Other Settings
|
554 |
+
88. Roles & Capabilities
|
555 |
+
89. Feature Requests
|
556 |
+
90. System Information
|
557 |
+
|
558 |
+
== Changelog ==
|
559 |
+
|
560 |
+
= 4.0.1 =
|
561 |
+
|
562 |
+
* FIX: Obsolete Code Removed
|
563 |
+
* FIX: Major Bugs Fixed
|
564 |
+
* FIX: Install Script Code Optimized
|
565 |
+
* FIX: Wizard Page Error Fixed
|
566 |
+
* FIX: Code Optimized
|
567 |
+
|
568 |
+
= 4.0.0 =
|
569 |
+
|
570 |
+
* TWEAK: Major Version Release
|
571 |
+
* TWEAK: Layouts Changed
|
572 |
+
* TWEAK: Layouts Changed
|
573 |
+
* TWEAK: Front End Complete Revamped
|
574 |
+
* TWEAK: Database Optimized
|
575 |
+
* TWEAK: Security Patch Added
|
576 |
+
* TWEAK: Modified JS & CSS Functions to only call on own Plugin Page
|
577 |
+
* TWEAK: Layouts Changed
|
578 |
+
* TWEAK: Obsolete Code Deleted
|
579 |
+
* TWEAK: CSS Improved
|
580 |
+
|
581 |
+
= 3.1.40 =
|
582 |
+
|
583 |
+
* FIX: Obsolete Code Removed
|
584 |
+
* FIX: Proper Sanitization, Escaping, Validation of all Post Calls
|
585 |
+
* FIX: Obsolete Code Removed
|
586 |
+
* FIX: Code Optimized
|
587 |
+
|
588 |
+
= 3.1.39 =
|
589 |
+
|
590 |
+
* FIX: Obsolete Code Removed
|
591 |
+
* FIX: Code Optimized
|
592 |
+
|
593 |
+
= 3.1.37 =
|
594 |
+
|
595 |
+
* FIX: Proper Sanitization, Escaping, Validation of all Post Calls
|
596 |
+
* FIX: Removal of all function_exists, class_exists, typeof from all the files.
|
597 |
+
* FIX: Uninstall File moved to root folder and changes done as per wordpress guidelines.
|
598 |
+
* FIX: Error Reporting in file Removed
|
599 |
+
* FIX: Auto Updates Removed
|
600 |
+
* FIX: Curl Calls Removed
|
601 |
+
|
602 |
+
= 3.1.36 =
|
603 |
+
|
604 |
+
* Error Reporting Added
|
605 |
+
* Responsive Layouts Fixed
|
606 |
+
|
607 |
+
= 3.1.35 =
|
608 |
+
|
609 |
+
* Major Bugs Fixed
|
610 |
+
* Wizard Page Added
|
611 |
+
|
612 |
+
= 3.1.34 =
|
613 |
+
|
614 |
+
* Major Bugs Fixed
|
615 |
+
* Responsive Layouts Fixed
|
616 |
+
|
617 |
+
= 3.1.33 =
|
618 |
+
|
619 |
+
* Major Bugs Fixed
|
620 |
+
* Ini Default Values Set
|
621 |
+
* Compatibility with 4.7.3
|
622 |
+
|
623 |
+
= 3.1.32 =
|
624 |
+
|
625 |
+
* Translation Files Updated
|
626 |
+
* Translation Constant Bug Fixed
|
627 |
+
|
628 |
+
= 3.1.31 =
|
629 |
+
|
630 |
+
* Obsolete Code removed
|
631 |
+
* Unused Files removed
|
632 |
+
* Code Optimized
|
633 |
+
* Translation File Updated
|
634 |
+
|
635 |
+
= 3.1.30 =
|
636 |
+
|
637 |
+
* Major Bug Fixed Related to Re-generate of Thumbnails on Edit Album
|
638 |
+
|
639 |
+
= 3.1.29 =
|
640 |
+
|
641 |
+
* Major Bug Fixed Related to Function Undefined in Header File.
|
642 |
+
|
643 |
+
= 3.1.28 =
|
644 |
+
|
645 |
+
* Improved Functionality
|
646 |
+
* Few Bugs Fixed
|
647 |
+
|
648 |
+
= 3.1.27 =
|
649 |
+
|
650 |
+
* Security Patch
|
651 |
+
* Few Bugs Fixed
|
652 |
+
|
653 |
+
= 3.1.26 =
|
654 |
+
|
655 |
+
* Compatibility with 4.6
|
656 |
+
* Code Optimized
|
657 |
+
* Few Bugs Fixed
|
658 |
+
|
659 |
+
= 3.1.25 =
|
660 |
+
|
661 |
+
* Code Optimized
|
662 |
+
* Few Bugs Fixed
|
663 |
+
|
664 |
+
= 3.1.24 =
|
665 |
+
|
666 |
+
* Tooltip Renamed
|
667 |
+
* Few Bugs Fixed
|
668 |
+
|
669 |
+
= 3.1.23 =
|
670 |
+
|
671 |
+
* Code Optimized
|
672 |
+
* Few Bugs Fixed
|
673 |
+
|
674 |
+
= 3.1.22 =
|
675 |
+
|
676 |
+
* Major Cross Site Scripting Security Issue Fix
|
677 |
+
* Few Bugs Fixed
|
678 |
+
|
679 |
+
= 3.1.21 =
|
680 |
+
|
681 |
+
* Few Bugs Fixed
|
682 |
+
|
683 |
+
= 3.1.20 =
|
684 |
+
|
685 |
+
* Strings Updated
|
686 |
+
* Few Bugs Fixed
|
687 |
+
* Pricing Table Changed
|
688 |
+
* Code Optimized
|
689 |
+
|
690 |
+
= 3.1.19 =
|
691 |
+
|
692 |
+
* Header Section Updated
|
693 |
+
* Few Bugs Fixed
|
694 |
+
* Other Services Content Updated
|
695 |
+
* Pricing Table Changed
|
696 |
+
|
697 |
+
= 3.1.18 =
|
698 |
+
|
699 |
+
* Few Bugs Fixed
|
700 |
+
|
701 |
+
= 3.1.17 =
|
702 |
+
|
703 |
+
* Other Services Content Updated
|
704 |
+
* Pricing Table Changed
|
705 |
+
|
706 |
+
= 3.1.16 =
|
707 |
+
|
708 |
+
* Few CSS Bugs Fixed
|
709 |
+
* Pricing Table Changed
|
710 |
+
|
711 |
+
= 3.1.15 =
|
712 |
+
|
713 |
+
* Compatibility with 4.5.3
|
714 |
+
|
715 |
+
= 3.1.14 =
|
716 |
+
|
717 |
+
* Few CSS Bugs Fixed
|
718 |
+
|
719 |
+
= 3.1.13 =
|
720 |
+
|
721 |
+
* Few Bugs Fixed
|
722 |
+
* Code Optimized
|
723 |
+
|
724 |
+
= 3.1.12 =
|
725 |
+
|
726 |
+
* Few Bugs Fixed
|
727 |
+
* Code Optimized
|
728 |
+
|
729 |
+
= 3.1.11 =
|
730 |
+
|
731 |
+
* Few Bugs Fixed
|
732 |
+
* Code Optimized
|
733 |
+
|
734 |
+
= 3.1.10 =
|
735 |
+
|
736 |
+
* Few Bugs Fixed
|
737 |
+
|
738 |
+
= 3.1.9 =
|
739 |
+
|
740 |
+
* Compatibility with 4.5.2
|
741 |
+
|
742 |
+
= 3.1.8 =
|
743 |
+
|
744 |
+
* Few CSS Bugs Fixed
|
745 |
+
|
746 |
+
= 3.1.7 =
|
747 |
+
|
748 |
+
* Compatibility with 4.5.1
|
749 |
+
* Few CSS Bugs Fixed
|
750 |
+
|
751 |
+
= 3.1.6 =
|
752 |
+
|
753 |
+
* Compatibility with 4.5
|
754 |
+
|
755 |
+
= 3.1.5 =
|
756 |
+
|
757 |
+
* Few CSS Bugs Fixed
|
758 |
+
|
759 |
+
= 3.1.4 =
|
760 |
+
|
761 |
+
* Few Bugs Fixed
|
762 |
+
* Code Optimized
|
763 |
+
|
764 |
+
= 3.1.3 =
|
765 |
+
|
766 |
+
* Few Bugs Fixed
|
767 |
+
|
768 |
+
= 3.1.2 =
|
769 |
+
|
770 |
+
* Few Bugs Fixed
|
771 |
+
* Code Optimized
|
772 |
+
|
773 |
+
= 3.1.1 =
|
774 |
+
|
775 |
+
* Database Issues Fixed
|
776 |
+
* Code Optimized
|
777 |
+
|
778 |
+
= 3.1.0 =
|
779 |
+
|
780 |
+
* Major Version Release
|
781 |
+
* Code Optimized
|
782 |
+
* Fixed Major Bugs
|
783 |
+
* Fixed Lightbox Issues
|
784 |
+
* Fixed Masonry Gallery Layout Issues
|
785 |
+
* Removed Font Icons and Replaced with Compatible Icons
|
786 |
+
* Persian Language Added
|
787 |
+
|
788 |
+
= 3.0.456 =
|
789 |
+
|
790 |
+
* Few Urgent Bugs Fixed.
|
791 |
+
|
792 |
+
= 3.0.455 =
|
793 |
+
|
794 |
+
* Few Minor Bugs Fixed.
|
795 |
+
|
796 |
+
= 3.0.454 =
|
797 |
+
|
798 |
+
* Compatibility with 4.4.2
|
799 |
+
|
800 |
+
= 3.0.453 =
|
801 |
+
|
802 |
+
* Few Urgent Bugs Fixed.
|
803 |
+
|
804 |
+
= 3.0.452 =
|
805 |
+
|
806 |
+
* Few CSS Bugs Fixed.
|
807 |
+
|
808 |
+
= 3.0.451 =
|
809 |
+
|
810 |
+
* Compatibility with 4.4.1
|
811 |
+
|
812 |
+
= 3.0.450 =
|
813 |
+
|
814 |
+
* Few CSS Bugs Fixed.
|
815 |
+
|
816 |
+
= 3.0.449 =
|
817 |
+
|
818 |
+
* Few Urgent Bugs Fixed.
|
819 |
+
|
820 |
+
= 3.0.448 =
|
821 |
+
|
822 |
+
* Few Urgent Bugs Fixed.
|
823 |
+
|
824 |
+
= 3.0.447 =
|
825 |
+
|
826 |
+
* Compatibility with 4.4
|
827 |
+
|
828 |
+
= 3.0.446 =
|
829 |
+
|
830 |
+
* Few CSS Bugs Fixed.
|
831 |
+
|
832 |
+
= 3.0.445 =
|
833 |
+
|
834 |
+
* Few CSS Bugs Fixed.
|
835 |
+
|
836 |
+
= 3.0.444 =
|
837 |
+
|
838 |
+
* Few Urgent Bugs Fixed.
|
839 |
+
|
840 |
+
= 3.0.343 =
|
841 |
+
|
842 |
+
* Few Minor Bugs Fixed.
|
843 |
+
|
844 |
+
= 3.0.442 =
|
845 |
+
|
846 |
+
* Few CSS Bugs Fixed.
|
847 |
+
|
848 |
+
= 3.0.441 =
|
849 |
+
|
850 |
+
* Few Urgent Bugs Fixed.
|
851 |
+
|
852 |
+
= 3.0.340 =
|
853 |
+
|
854 |
+
* Few Minor Bugs Fixed.
|
855 |
+
|
856 |
+
= 3.0.339 =
|
857 |
+
|
858 |
+
* Few Urgent Bugs Fixed.
|
859 |
+
|
860 |
+
= 3.0.338 =
|
861 |
+
|
862 |
+
* Database Engine updated.
|
863 |
+
|
864 |
+
= 3.0.337 =
|
865 |
+
|
866 |
+
* Few Urgent Bugs Fixed.
|
867 |
+
|
868 |
+
= 3.0.336 =
|
869 |
+
|
870 |
+
* Few Minor Bugs Fixed.
|
871 |
+
|
872 |
+
= 3.0.335 =
|
873 |
+
|
874 |
+
* Few Minor Bugs Fixed.
|
875 |
+
|
876 |
+
= 3.0.334 =
|
877 |
+
|
878 |
+
* Album Description Shown under Album Title
|
879 |
+
|
880 |
+
= 3.0.333 =
|
881 |
+
|
882 |
+
* Few Urgent Bugs Fixed.
|
883 |
+
|
884 |
+
= 3.0.332 =
|
885 |
+
|
886 |
+
* Delete Image Bug Fixed.
|
887 |
+
|
888 |
+
= 3.0.331 =
|
889 |
+
|
890 |
+
* Pretty Photo Title & Description Bug Fixed.
|
891 |
+
|
892 |
+
= 3.0.330 =
|
893 |
+
|
894 |
+
* Few 1ecurity Issues Fixed.
|
895 |
+
* Isotope 2.2.2 Version used.
|
896 |
+
|
897 |
+
= 3.0.229 =
|
898 |
+
|
899 |
+
* Compatibility with 4.3
|
900 |
+
* Changed variables to avoid confliction with Next Gen and Contact Bank plugins.
|
901 |
+
* Prettyphoto XSS Security Issue Fixed.
|
902 |
+
|
903 |
+
= 3.0.228 =
|
904 |
+
|
905 |
+
* Few Minor Bugs Fixed
|
906 |
+
|
907 |
+
= 3.0.227 =
|
908 |
+
|
909 |
+
* Compatibility with 4.2.4
|
910 |
+
|
911 |
+
= 3.0.226 =
|
912 |
+
|
913 |
+
* Few Minor Bugs Fixed
|
914 |
+
|
915 |
+
= 3.0.225 =
|
916 |
+
|
917 |
+
* Compatibility with 4.2.3
|
918 |
+
|
919 |
+
= 3.0.224 =
|
920 |
+
|
921 |
+
* Auto Update Bug Fixed
|
922 |
+
|
923 |
+
= 3.0.223 =
|
924 |
+
|
925 |
+
* Few Minor Bugs Fixed
|
926 |
+
|
927 |
+
= 3.0.222 =
|
928 |
+
|
929 |
+
* Few Urgent Bugs Fixed
|
930 |
+
|
931 |
+
= 3.0.221 =
|
932 |
+
|
933 |
+
* Minor bugs fixed.
|
934 |
+
* Premium Editions Section Updated.
|
935 |
+
|
936 |
+
= 3.0.120 =
|
937 |
+
|
938 |
+
* Major Bugs Fixed Regarding Rss Feeds.
|
939 |
+
|
940 |
+
= 3.0.119 =
|
941 |
+
|
942 |
+
* Few Urgent Bugs Fixed
|
943 |
+
|
944 |
+
= 3.0.118 =
|
945 |
+
|
946 |
+
* Few Languages Updated
|
947 |
+
* Minor Css Bugs Fixed
|
948 |
+
|
949 |
+
= 3.0.117 =
|
950 |
+
|
951 |
+
* Few Bugs Fixed
|
952 |
+
|
953 |
+
= 3.0.116 =
|
954 |
+
|
955 |
+
* Few Languages Updated
|
956 |
+
* Minor Css Bugs Fixed
|
957 |
+
|
958 |
+
= 3.0.115 =
|
959 |
+
|
960 |
+
* Added Compatibility with 4.2.2 WordPress.
|
961 |
+
|
962 |
+
= 3.0.114 =
|
963 |
+
|
964 |
+
* Added Compatibility with 4.2.1 WordPress.
|
965 |
+
* Fixed Few Minor Bugs
|
966 |
+
|
967 |
+
= 3.0.113 =
|
968 |
+
|
969 |
+
* Added Compatibility with 4.2 WordPress.
|
970 |
+
* Fixed Few Minor Bugs
|
971 |
+
|
972 |
+
= 3.0.112 =
|
973 |
+
|
974 |
+
* Added Compatibility with 4.1.2 WordPress.
|
975 |
+
|
976 |
+
= 3.0.111 =
|
977 |
+
|
978 |
+
* Few Bug fixed.
|
979 |
+
* Languages Updated.
|
980 |
+
|
981 |
+
= 3.0.10 =
|
982 |
+
|
983 |
+
* Bug fixed related to datatables.
|
984 |
+
|
985 |
+
= 3.0.109 =
|
986 |
+
|
987 |
+
* Implemented new feature of calculating images size according server configuration.
|
988 |
+
* Minor bugs fixed.
|
989 |
+
|
990 |
+
= 3.0.108 =
|
991 |
+
|
992 |
+
* Minor bugs fixed.
|
993 |
+
|
994 |
+
= 3.0.107 =
|
995 |
+
|
996 |
+
* Minor bugs fixed.
|
997 |
+
* Premium Editions Section Updated.
|
998 |
+
|
999 |
+
= 3.0.106 =
|
1000 |
+
|
1001 |
+
* Minor Bugs Fixed.
|
1002 |
+
* Other Services Section Updated.
|
1003 |
+
* Premium Editions Section Updated.
|
1004 |
+
|
1005 |
+
= 3.0.105 =
|
1006 |
+
|
1007 |
+
* Demo Gallery added by default.
|
1008 |
+
|
1009 |
+
= 3.0.104 =
|
1010 |
+
|
1011 |
+
* Default Shortcode Layout changed from Masonry to Thumbnails.
|
1012 |
+
|
1013 |
+
= 3.0.103 =
|
1014 |
+
|
1015 |
+
* Added new feature of Feature Request.
|
1016 |
+
* Shortcode Editor Redesigned.
|
1017 |
+
|
1018 |
+
= 3.0.102 =
|
1019 |
+
|
1020 |
+
* Minor Vulnerability Bug fixed related to shortcode as pointed by Goblin Research.
|
1021 |
+
|
1022 |
+
= 3.0.101 =
|
1023 |
+
|
1024 |
+
* Major bug fixed related to uploader.
|
1025 |
+
|
1026 |
+
= 3.0.100 =
|
1027 |
+
|
1028 |
+
* Implemented New Feature to display selected Albums.
|
1029 |
+
|
1030 |
+
= 3.0.99 =
|
1031 |
+
|
1032 |
+
* Korean Language Updated.
|
1033 |
+
* Udpated Po & Mo Files for all Languages.
|
1034 |
+
* Added New Languages
|
1035 |
+
|
1036 |
+
= 3.0.98 =
|
1037 |
+
|
1038 |
+
* Recommendation section updated.
|
1039 |
+
|
1040 |
+
= 3.0.97 =
|
1041 |
+
|
1042 |
+
* Fixed compatibility issue with WP Lightbox 2 Plugin.
|
1043 |
+
|
1044 |
+
= 3.0.96 =
|
1045 |
+
|
1046 |
+
* Fixed compatibility issue with woocommerce plugin.
|
1047 |
+
* Fixed Layout issues.
|
1048 |
+
* Fixed whitespacing issue.
|
1049 |
+
* Unset plugin update scheduler on plugin uninstall.
|
1050 |
+
|
1051 |
+
= 3.0.95 =
|
1052 |
+
|
1053 |
+
* Fixed Major Bug Related to PL Uploader.
|
1054 |
+
* Fixed Code for Plugins using Versions prior to 4.0
|
1055 |
+
|
1056 |
+
= 3.0.94 =
|
1057 |
+
|
1058 |
+
* Fixed Few Bugs
|
1059 |
+
* Fixed Menus
|
1060 |
+
* Implemented New Feature - Automatic Gallery Bank Plugin Update Enable/Disable.
|
1061 |
+
|
1062 |
+
= 3.0.93 =
|
1063 |
+
|
1064 |
+
* Removed unwanted code
|
1065 |
+
* New Uploader Introduced.
|
1066 |
+
* New Layout Introduced for uploader.
|
1067 |
+
* Thumbs View in Uploader.
|
1068 |
+
* Add, Edit Gallery Layout changed.
|
1069 |
+
* Updated JS files.
|
1070 |
+
* Slovenian Language updated.
|
1071 |
+
|
1072 |
+
= 3.0.92 =
|
1073 |
+
|
1074 |
+
* Few Bugs Fixed
|
1075 |
+
|
1076 |
+
= 3.0.91 =
|
1077 |
+
|
1078 |
+
* Recommendation section updated.
|
1079 |
+
* Japanese Language updated.
|
1080 |
+
|
1081 |
+
= 3.0.90 =
|
1082 |
+
|
1083 |
+
* Major security bug fixed regarding image uploader.
|
1084 |
+
|
1085 |
+
= 3.0.89 =
|
1086 |
+
|
1087 |
+
* Pretty Photo lightbox license updated.
|
1088 |
+
|
1089 |
+
= 3.0.88 =
|
1090 |
+
|
1091 |
+
* Pricing Changed
|
1092 |
+
|
1093 |
+
= 3.0.87 =
|
1094 |
+
|
1095 |
+
* Few Bugs Fixed
|
1096 |
+
|
1097 |
+
= 3.0.86 =
|
1098 |
+
|
1099 |
+
* Added Compatibility with 4.1 WordPress.
|
1100 |
+
* Fixed Bugs Related to Galleries Display.
|
1101 |
+
|
1102 |
+
= 3.0.85 =
|
1103 |
+
|
1104 |
+
* Changed variables to avoid confliction with other plugins.
|
1105 |
+
|
1106 |
+
= 3.0.84 =
|
1107 |
+
|
1108 |
+
* Minor Bugs Fixed Related to Galleries Display
|
1109 |
+
|
1110 |
+
= 3.0.83 =
|
1111 |
+
|
1112 |
+
* Added Update Message for New Versions.
|
1113 |
+
|
1114 |
+
= 3.0.82 =
|
1115 |
+
|
1116 |
+
* Major Bug Fixed Related to Multisite Wordpress.
|
1117 |
+
|
1118 |
+
= 3.0.81 =
|
1119 |
+
|
1120 |
+
* Multisite Compatibility Added.
|
1121 |
+
* Added Compatibility with 4.0.1 WordPress
|
1122 |
+
* Updated Pricing Table
|
1123 |
+
|
1124 |
+
= 3.0.80 =
|
1125 |
+
|
1126 |
+
* Conflict with JetPack discovered & fixed.
|
1127 |
+
* Optimized Code
|
1128 |
+
|
1129 |
+
= 3.0.79 =
|
1130 |
+
|
1131 |
+
* Udpated Po & Mo Files for all Languages
|
1132 |
+
* Updated Css Fixes
|
1133 |
+
* Optimized Code
|
1134 |
+
|
1135 |
+
= 3.0.78 =
|
1136 |
+
|
1137 |
+
* Udpated Po & Mo Files
|
1138 |
+
* Updated Css Fixes
|
1139 |
+
* Updated Our Services Section
|
1140 |
+
* Optimized Code
|
1141 |
+
* Removed unwanted Files
|
1142 |
+
|
1143 |
+
= 3.0.76 =
|
1144 |
+
|
1145 |
+
* CSS Conflictions Fixed after 3.0.75 update
|
1146 |
+
* Js Conflictions Fixed
|
1147 |
+
* Readme.txt Updated
|
1148 |
+
|
1149 |
+
= 3.0.75 =
|
1150 |
+
|
1151 |
+
* Demo Links Updated as per New Website
|
1152 |
+
* Readme.txt Changed as per New Website
|
1153 |
+
* Recommended Section Added
|
1154 |
+
* Other Services Section Added
|
1155 |
+
* Pricing Section Updated
|
1156 |
+
* Major Release before 4.0 update
|
1157 |
+
|
1158 |
+
|
1159 |
+
= 3.0.75 =
|
1160 |
+
|
1161 |
+
* Masonry Colum Width Bug Fixed
|
1162 |
+
* Overlapping Masonry Gallery Layout Fixed
|
1163 |
+
|
1164 |
+
= 3.0.74 =
|
1165 |
+
|
1166 |
+
* Banner Updated
|
1167 |
+
|
1168 |
+
= 3.0.73 =
|
1169 |
+
|
1170 |
+
* Banner Updated
|
1171 |
+
|
1172 |
+
= 3.0.72 =
|
1173 |
+
|
1174 |
+
* Danish Language Updated
|
1175 |
+
* Banner Updated
|
1176 |
+
|
1177 |
+
= 3.0.71 =
|
1178 |
+
|
1179 |
+
* Banner Updated
|
1180 |
+
|
1181 |
+
= 3.0.70 =
|
1182 |
+
|
1183 |
+
* Major Security Bug XSS Vulnerability Fixed related to Album Sorting
|
1184 |
+
|
1185 |
+
= 3.0.69 =
|
1186 |
+
|
1187 |
+
* Updated Existing Language - Romanian
|
1188 |
+
* Updated Existing Language - Indonesian
|
1189 |
+
* Roles Bugs Fixed
|
1190 |
+
|
1191 |
+
= 3.0.68 =
|
1192 |
+
|
1193 |
+
* Added New Language - Croatian
|
1194 |
+
* Added New Language - Norwegian
|
1195 |
+
* Banner Updated
|
1196 |
+
|
1197 |
+
= 3.0.67 =
|
1198 |
+
|
1199 |
+
* Added New Language - Greek
|
1200 |
+
* Updated Existing Language - Indonesian
|
1201 |
+
|
1202 |
+
= 3.0.66 =
|
1203 |
+
|
1204 |
+
* Compatibility Test with 4.0
|
1205 |
+
* Few Bugs Fixed
|
1206 |
+
* Banner Updated
|
1207 |
+
|
1208 |
+
= 3.0.65 =
|
1209 |
+
|
1210 |
+
* Few Bugs Fixed
|
1211 |
+
* Banner Updated
|
1212 |
+
|
1213 |
+
= 3.0.64 =
|
1214 |
+
|
1215 |
+
* Few Bugs Fixed
|
1216 |
+
* Banner Updated
|
1217 |
+
|
1218 |
+
= 3.0.63 =
|
1219 |
+
|
1220 |
+
* Major Security Bug Fixed
|
1221 |
+
|
1222 |
+
= 3.0.62 =
|
1223 |
+
|
1224 |
+
* Few Bugs Fixed
|
1225 |
+
* Banner Updated
|
1226 |
+
|
1227 |
+
= 3.0.61 =
|
1228 |
+
|
1229 |
+
* Major Security Bug Fixed related to Upload.php file
|
1230 |
+
|
1231 |
+
= 3.0.60 =
|
1232 |
+
|
1233 |
+
* Few Bugs Fixed
|
1234 |
+
|
1235 |
+
= 3.0.59 =
|
1236 |
+
|
1237 |
+
* Chinese Language Updated
|
1238 |
+
|
1239 |
+
= 3.0.58 =
|
1240 |
+
|
1241 |
+
* Few Bugs Fixed
|
1242 |
+
|
1243 |
+
= 3.0.57 =
|
1244 |
+
|
1245 |
+
* Few Bugs Fixed
|
1246 |
+
|
1247 |
+
= 3.0.56 =
|
1248 |
+
|
1249 |
+
* Slovak Language Updated
|
1250 |
+
|
1251 |
+
= 3.0.55 =
|
1252 |
+
|
1253 |
+
* Few Bugs Fixed
|
1254 |
+
|
1255 |
+
= 3.0.54 =
|
1256 |
+
|
1257 |
+
* Few Bugs Fixed
|
1258 |
+
* Few Possible Security Issues Addressed
|
1259 |
+
|
1260 |
+
= 3.0.53 =
|
1261 |
+
|
1262 |
+
* Language Bug Fixed
|
1263 |
+
|
1264 |
+
= 3.0.52 =
|
1265 |
+
|
1266 |
+
* Danish Language Updated
|
1267 |
+
|
1268 |
+
= 3.0.51 =
|
1269 |
+
|
1270 |
+
* Social Icons Added to Lightbox
|
1271 |
+
|
1272 |
+
= 3.0.50 =
|
1273 |
+
|
1274 |
+
* Few Possible Security Issues Addressed
|
1275 |
+
|
1276 |
+
= 3.0.49 =
|
1277 |
+
|
1278 |
+
* Polish Language Updated
|
1279 |
+
|
1280 |
+
= 3.0.48 =
|
1281 |
+
|
1282 |
+
* Czech Language Updated
|
1283 |
+
|
1284 |
+
= 3.0.47 =
|
1285 |
+
|
1286 |
+
* Advanced Security for Plugin Implemented
|
1287 |
+
|
1288 |
+
= 3.0.46 =
|
1289 |
+
|
1290 |
+
* Hungarian Language Updated
|
1291 |
+
|
1292 |
+
= 3.0.45 =
|
1293 |
+
|
1294 |
+
* Few Bugs Fixed
|
1295 |
+
* Banner Updated
|
1296 |
+
|
1297 |
+
= 3.0.44 =
|
1298 |
+
|
1299 |
+
* Arabic Language Updated
|
1300 |
+
|
1301 |
+
= 3.0.43 =
|
1302 |
+
|
1303 |
+
* Few Bugs Fixed
|
1304 |
+
* Banner Updated
|
1305 |
+
|
1306 |
+
= 3.0.42 =
|
1307 |
+
|
1308 |
+
* Thai Language Updated
|
1309 |
+
|
1310 |
+
= 3.0.41 =
|
1311 |
+
|
1312 |
+
* Few Bugs Fixed
|
1313 |
+
* Banner Updated
|
1314 |
+
|
1315 |
+
= 3.0.40 =
|
1316 |
+
|
1317 |
+
* Bug Fixed with Menu Links shown to Subscriber and other roles.
|
1318 |
+
|
1319 |
+
= 3.0.39 =
|
1320 |
+
|
1321 |
+
* Russian Language Updated
|
1322 |
+
|
1323 |
+
= 3.0.38 =
|
1324 |
+
|
1325 |
+
* Few Bugs Fixed
|
1326 |
+
* Banner Updated
|
1327 |
+
|
1328 |
+
= 3.0.37 =
|
1329 |
+
|
1330 |
+
* Major Bug Fixed related to Saving of Images
|
1331 |
+
* Major Bug Fixed related to Editing of existing Albums
|
1332 |
+
|
1333 |
+
= 3.0.36 =
|
1334 |
+
|
1335 |
+
* Bug Fixed related to Saving of Albums
|
1336 |
+
|
1337 |
+
= 3.0.35 =
|
1338 |
+
|
1339 |
+
* Major Security Bug Fixed related to Upload.php file
|
1340 |
+
|
1341 |
+
= 3.0.34 =
|
1342 |
+
|
1343 |
+
* Bugs Fixed Related to Set as Album
|
1344 |
+
|
1345 |
+
= 3.0.33 =
|
1346 |
+
|
1347 |
+
* Few Bugs Fixed
|
1348 |
+
* Broken Add New Album Link Fixed
|
1349 |
+
|
1350 |
+
= 3.0.32 =
|
1351 |
+
|
1352 |
+
* Major Bug fixed with saving of Data
|
1353 |
+
|
1354 |
+
= 3.0.31 =
|
1355 |
+
|
1356 |
+
* Few Bugs Fixed
|
1357 |
+
* Unwanted Banners Removed
|
1358 |
+
|
1359 |
+
= 3.0.30 =
|
1360 |
+
|
1361 |
+
* Turkish Language Updated
|
1362 |
+
* Delete Images Bug Fixed
|
1363 |
+
|
1364 |
+
= 3.0.29 =
|
1365 |
+
|
1366 |
+
* Few Bugs Fixed
|
1367 |
+
* Added Functionality to support Bulk Images Upload
|
1368 |
+
|
1369 |
+
= 3.0.28 =
|
1370 |
+
|
1371 |
+
* Few Bugs Fixed
|
1372 |
+
* CK Editor Compatibility Added
|
1373 |
+
|
1374 |
+
= 3.0.27 =
|
1375 |
+
|
1376 |
+
* Few Bugs Fixed
|
1377 |
+
* Unwanted Banners Removed
|
1378 |
+
|
1379 |
+
= 3.0.26 =
|
1380 |
+
|
1381 |
+
* New Language ADDED - Belarusian
|
1382 |
+
* Language Updated - Russian
|
1383 |
+
|
1384 |
+
= 3.0.25 =
|
1385 |
+
|
1386 |
+
* Languages Updated
|
1387 |
+
|
1388 |
+
= 3.0.24 =
|
1389 |
+
|
1390 |
+
* Banner Updated
|
1391 |
+
|
1392 |
+
= 3.0.23 =
|
1393 |
+
|
1394 |
+
* Licenses Updated
|
1395 |
+
|
1396 |
+
= 3.0.22 =
|
1397 |
+
|
1398 |
+
* Png Image Bug Fixed
|
1399 |
+
* Language Updated - Hebrew
|
1400 |
+
|
1401 |
+
= 3.0.21 =
|
1402 |
+
|
1403 |
+
* New Layout Introduced
|
1404 |
+
* Help Video Added
|
1405 |
+
* Bugs Fixed with Title & Description
|
1406 |
+
* Compatibility with 3.9
|
1407 |
+
* Language Updated - Finnish
|
1408 |
+
|
1409 |
+
= 3.0.20 =
|
1410 |
+
|
1411 |
+
* Bugs Fixed
|
1412 |
+
* Compatibility with 3.9
|
1413 |
+
|
1414 |
+
= 3.0.19 =
|
1415 |
+
|
1416 |
+
* Language Updated - Finnish
|
1417 |
+
|
1418 |
+
= 3.0.18 =
|
1419 |
+
|
1420 |
+
* New Help Popup Introduced
|
1421 |
+
* Compatiblity with 3.8.3
|
1422 |
+
|
1423 |
+
= 3.0.17 =
|
1424 |
+
|
1425 |
+
* Language Updated - German
|
1426 |
+
|
1427 |
+
= 3.0.16 =
|
1428 |
+
|
1429 |
+
* Language Updated - Italian
|
1430 |
+
|
1431 |
+
= 3.0.15 =
|
1432 |
+
|
1433 |
+
* New Language Added - Estonian
|
1434 |
+
|
1435 |
+
= 3.0.14 =
|
1436 |
+
|
1437 |
+
* Language Updated - Portuguese
|
1438 |
+
|
1439 |
+
= 3.0.13 =
|
1440 |
+
|
1441 |
+
* Language Updated - French
|
1442 |
+
|
1443 |
+
= 3.0.12 =
|
1444 |
+
|
1445 |
+
* Language Updated - Swedish
|
1446 |
+
|
1447 |
+
= 3.0.11 =
|
1448 |
+
|
1449 |
+
* Few Bugs Fixed
|
1450 |
+
* Removed Unwated Banners
|
1451 |
+
|
1452 |
+
= 3.0.10 =
|
1453 |
+
|
1454 |
+
* Few Bugs Fixed
|
1455 |
+
* New Language Added - Ukrainian
|
1456 |
+
|
1457 |
+
= 3.0.9 =
|
1458 |
+
|
1459 |
+
* Few Bugs Fixed
|
1460 |
+
|
1461 |
+
= 3.0.8 =
|
1462 |
+
|
1463 |
+
* Dutch Language Updated
|
1464 |
+
* Uninstall Hook Removed
|
1465 |
+
|
1466 |
+
= 3.0.7 =
|
1467 |
+
|
1468 |
+
* Updated Languages
|
1469 |
+
* Bug Fixed Related to Pl Uploader which stops WP Media
|
1470 |
+
|
1471 |
+
= 3.0.6 =
|
1472 |
+
|
1473 |
+
* Updated Languages
|
1474 |
+
* Fixed Few Bugs Related to Lightbox
|
1475 |
+
* Request for Translation of New Languages
|
1476 |
+
|
1477 |
+
= 3.0.5 =
|
1478 |
+
|
1479 |
+
* Updated Languages
|
1480 |
+
* Fixed Few Bugs Related to Lightbox
|
1481 |
+
* Checked If Permissions are Set to Directory
|
1482 |
+
|
1483 |
+
= 3.0.4 =
|
1484 |
+
|
1485 |
+
* Updated Languages
|
1486 |
+
* Fixed Few Bugs Related to Thumbnails generation
|
1487 |
+
* Fixed Copy Images for existing albums to new folder
|
1488 |
+
* Fixed Problem of loosing images when upgrading to latest versions.
|
1489 |
+
|
1490 |
+
= 3.0.3 =
|
1491 |
+
|
1492 |
+
* Updated Spanish Languages
|
1493 |
+
* Fixed Few Bugs Related to Thumbnails generation
|
1494 |
+
* Removed unwanted stuff
|
1495 |
+
|
1496 |
+
= 3.0.2 =
|
1497 |
+
|
1498 |
+
* Updated all Languages
|
1499 |
+
* Fixed Few Bugs Related to Thumbnails
|
1500 |
+
* Added Warning Permissions Message for Thumbnails
|
1501 |
+
|
1502 |
+
= 3.0.1 =
|
1503 |
+
|
1504 |
+
* Updated all Languages
|
1505 |
+
* Fixed Few Bugs Related to Database Upgrade from Previous versions
|
1506 |
+
* Add New Page to show how to add Shortcodes.
|
1507 |
+
|
1508 |
+
= 3.0.0 =
|
1509 |
+
|
1510 |
+
* Major Release
|
1511 |
+
* New Feature : Images are now being saved in Gallery Bank itself instead of WP Uploads.
|
1512 |
+
* New Feature : Thumbs are now created by the system itself rather than any 3rd Party script like Timbthumb etc.
|
1513 |
+
* New Feature : Improved Performance
|
1514 |
+
* New Feature : Improved Database to manage Gallery Bank
|
1515 |
+
* New Feature : Indexing on Tables to grab results quickly
|
1516 |
+
* New Feature : Highly Optimized Code
|
1517 |
+
* New Feature : Responsive Layout
|
1518 |
+
* New Feature : Easily adaptable environment for any device.
|
1519 |
+
* New Feature : Bulk Upload of Images
|
1520 |
+
* New Feature : New Short-code Wizard
|
1521 |
+
* New Feature : Url Redirect to redirect on click of an image.
|
1522 |
+
* New Feature : Compact Albums
|
1523 |
+
* New Feature : Extended Albums
|
1524 |
+
* New Feature : Basic Thumbnail Gallery
|
1525 |
+
* New Feature : Masonry Gallery
|
1526 |
+
* New Feature : List Album Format
|
1527 |
+
* New Feature : Grid Album Format
|
1528 |
+
* New Feature : Images in Row for displaying number of images per row
|
1529 |
+
* New Feature : Albums in Row for displaying number of albums per row
|
1530 |
+
* New Feature : Albums in Row for displaying number of albums per row
|
1531 |
+
* New Feature : Filmstrip Gallery Format(Premium Versions)
|
1532 |
+
* New Feature : Slideshow Gallery(Premium Versions)
|
1533 |
+
* New Feature : Special Effects on Images & Albums(Premium Versions)
|
1534 |
+
* New Feature : Animation Effects on Images & Albums(Premium Versions)
|
1535 |
+
* New Feature : Bulk Deletion of Images(Premium Versions)
|
1536 |
+
* New Feature : Sorting of Images(Premium Versions)
|
1537 |
+
* New Feature : Sorting of Albums(Premium Versions)
|
1538 |
+
* New Feature : Social Sharing(Premium Versions)
|
1539 |
+
* New Feature : Commenting on Images(Premium Versions)
|
1540 |
+
* New Feature : Widgets(Premium Versions)
|
1541 |
+
* New Feature : Tags for each Image to make Filerable Gallery Album(Premium Versions)
|
1542 |
+
* New Feature : Bulk Deletion of Albums(Premium Versions)
|
1543 |
+
* New Feature : Purging Albums and Images(Premium Versions)
|
1544 |
+
* New Feature : Restore Factory Settings(Premium Versions)
|
1545 |
+
* New Feature : Global Settings(Premium Versions)
|
1546 |
+
* New Feature : Thumbnail Settings(Premium Versions)
|
1547 |
+
* New Feature : Album Settings(Premium Versions)
|
1548 |
+
* New Feature : Lightbox Settings(Premium Versions)
|
1549 |
+
* New Feature : Different Lightboxes like FooBox,ColorBox,FancyBox2,Lightbox2,Custom GB Lightbox,Pretty Photo(Premium Versions)
|
1550 |
+
* New Feature : Pagination(Premium Versions)
|
1551 |
+
* New Feature : Filter Settings(Premium Versions)
|
1552 |
+
* New Feature : Roles & Capabilities(Premium Versions)
|
1553 |
+
* Bugs Fixed : Wrong images displayed when videos added.
|
1554 |
+
|
1555 |
+
= 2.0.26 =
|
1556 |
+
|
1557 |
+
* Minor Database update before Major Version Release
|
1558 |
+
|
1559 |
+
= 2.0.25 =
|
1560 |
+
|
1561 |
+
* Fixed few issues with Wordpress 3.8.1 compatibility
|
1562 |
+
|
1563 |
+
= 2.0.24 =
|
1564 |
+
|
1565 |
+
* Fixed Bugs Related to Front View
|
1566 |
+
* Fixed Bugs Related to Front View Albums
|
1567 |
+
* Fixed Bugs Related to Front View Albums with Images
|
1568 |
+
* Fixed Bugs Related to Css Display
|
1569 |
+
* Lightbox Updated
|
1570 |
+
|
1571 |
+
= 2.0.23 =
|
1572 |
+
|
1573 |
+
* Fixed few issues with Wordpress 3.8 compatibility
|
1574 |
+
|
1575 |
+
= 2.0.22 =
|
1576 |
+
|
1577 |
+
* Option Added to Gather Data for Testing Purposes for Better Compatibility
|
1578 |
+
|
1579 |
+
= 2.0.21 =
|
1580 |
+
|
1581 |
+
* Few Bugs Fixed
|
1582 |
+
|
1583 |
+
= 2.0.20 =
|
1584 |
+
|
1585 |
+
* Few Bugs Fixed
|
1586 |
+
* Fixed Security Issues
|
1587 |
+
* Fixed Cross Scripting Issues
|
1588 |
+
* Compatibility with 3.7
|
1589 |
+
|
1590 |
+
= 2.0.19 =
|
1591 |
+
|
1592 |
+
* Few Bugs Fixed
|
1593 |
+
* Introducing Jquery Masonry
|
1594 |
+
* Removed Timbthumb
|
1595 |
+
|
1596 |
+
= 2.0.18 =
|
1597 |
+
|
1598 |
+
* Few Bugs Fixed
|
1599 |
+
|
1600 |
+
= 2.0.17 =
|
1601 |
+
|
1602 |
+
* Few Bugs Fixed
|
1603 |
+
|
1604 |
+
= 2.0.16 =
|
1605 |
+
|
1606 |
+
* Languages Updated
|
1607 |
+
|
1608 |
+
= 2.0.15 =
|
1609 |
+
|
1610 |
+
* Fixed Bugs with Saving Albums
|
1611 |
+
|
1612 |
+
= 2.0.14 =
|
1613 |
+
|
1614 |
+
* Introducing Videos in Gallery Bank
|
1615 |
+
* Fixed Bugs with Thumbnails
|
1616 |
+
* Fixed Bugs related to Timbthumb
|
1617 |
+
|
1618 |
+
= 2.0.13 =
|
1619 |
+
|
1620 |
+
* Few Bugs Fixed
|
1621 |
+
|
1622 |
+
= 2.0.12 =
|
1623 |
+
|
1624 |
+
* Few Bugs Fixed
|
1625 |
+
|
1626 |
+
= 2.0.11 =
|
1627 |
+
|
1628 |
+
* Fixed Bug Related to Description of Images in Internet Explorer
|
1629 |
+
|
1630 |
+
= 2.0.9 =
|
1631 |
+
|
1632 |
+
* Fixed Bug Related to Menus visible to Users other than Administrator
|
1633 |
+
|
1634 |
+
= 2.0.8 =
|
1635 |
+
|
1636 |
+
* Few Bugs Fixed
|
1637 |
+
* Languages Updated
|
1638 |
+
|
1639 |
+
= 2.0.7 =
|
1640 |
+
|
1641 |
+
* Plugin Confliction with JetPack Fixed
|
1642 |
+
* Languages Updated
|
1643 |
+
|
1644 |
+
= 2.0.6 =
|
1645 |
+
|
1646 |
+
* Documentation Updated
|
1647 |
+
* Languages Updated
|
1648 |
+
* CSS Conflicts fixed
|
1649 |
+
|
1650 |
+
= 2.0.5 =
|
1651 |
+
|
1652 |
+
* New Functionality Introduced
|
1653 |
+
* Documentation Added
|
1654 |
+
* Js Conflicts fixed
|
1655 |
+
|
1656 |
+
= 2.0.4 =
|
1657 |
+
|
1658 |
+
* Plugin Update Conflicts Fixed
|
1659 |
+
* Browser Conflicts Fixed
|
1660 |
+
* Js Conflicts fixed
|
1661 |
+
|
1662 |
+
= 2.0.3 =
|
1663 |
+
|
1664 |
+
* Plugin Update Conflicts Fixed
|
1665 |
+
|
1666 |
+
= 2.0.2 =
|
1667 |
+
|
1668 |
+
* CSS Conflicts Fixed
|
1669 |
+
* Layout Break in sites fixed
|
1670 |
+
* Thumbnails Issue fixed
|
1671 |
+
* Languages updated
|
1672 |
+
|
1673 |
+
= 2.0.1 =
|
1674 |
+
|
1675 |
+
* CSS Conflicts Fixed
|
1676 |
+
* Timbthumb 2.8.11 Updated
|
1677 |
+
|
1678 |
+
= 2.0.0 =
|
1679 |
+
|
1680 |
+
* Introduction of New Version 2.0
|
1681 |
+
* Introduction of Pagination for Images
|
1682 |
+
* Bulk Delete of Images in Album
|
1683 |
+
* General Settings for all Albums
|
1684 |
+
* Individual Settings for Album
|
1685 |
+
* New Design & Style
|
1686 |
+
|
1687 |
+
= 1.8.7 =
|
1688 |
+
|
1689 |
+
* Timbthumb Thumbnails Issue fixed.
|
1690 |
+
|
1691 |
+
= 1.8.6 =
|
1692 |
+
|
1693 |
+
* Readme.txt Updated
|
1694 |
+
* Languages Updated
|
1695 |
+
|
1696 |
+
= 1.8.5 =
|
1697 |
+
|
1698 |
+
* Timbthumb Quality Issues Fixed
|
1699 |
+
* Formatting Issue Resolved
|
1700 |
+
|
1701 |
+
= 1.8.4 =
|
1702 |
+
|
1703 |
+
* Introduced Sorting of Images in an Album
|
1704 |
+
* Album Formatting conflict resolved
|
1705 |
+
|
1706 |
+
= 1.8.3 =
|
1707 |
+
|
1708 |
+
* Introduced Timthumb for Thumbnails
|
1709 |
+
* Title Alignment - Fixed.
|
1710 |
+
* Thumbnails were disorted - Fixed.
|
1711 |
+
|
1712 |
+
= 1.8.2 =
|
1713 |
+
|
1714 |
+
* Title Name on Front View & Albums were incorrect - Fixed.
|
1715 |
+
* Title Alignment - Fixed.
|
1716 |
+
* Thumbnails were disorted -Fixed.
|
1717 |
+
|
1718 |
+
= 1.8.1 =
|
1719 |
+
|
1720 |
+
* Titles were not saved properly
|
1721 |
+
* Few Bugs solved.
|
1722 |
+
|
1723 |
+
= 1.8.0 =
|
1724 |
+
|
1725 |
+
* Added 7 new Languages.
|
1726 |
+
|
1727 |
+
= 1.7.9 =
|
1728 |
+
|
1729 |
+
* Bugs fixed with Saving Logic.
|
1730 |
+
|
1731 |
+
= 1.7.8 =
|
1732 |
+
|
1733 |
+
* Bugs fixed with Album creation.
|
1734 |
+
|
1735 |
+
= 1.7.5 =
|
1736 |
+
|
1737 |
+
* Possible to upload upto 300 images at 1 instance in a n album
|
1738 |
+
* Few Bugs fixed.
|
1739 |
+
* All Languages updated
|
1740 |
+
|
1741 |
+
= 1.7 =
|
1742 |
+
|
1743 |
+
* Introducing Jquery Masonry
|
1744 |
+
* Uninstall Hook Removed
|
1745 |
+
|
1746 |
+
= 1.6 =
|
1747 |
+
|
1748 |
+
* Bug of Thumbnail Disorted Images fixed
|
1749 |
+
* Bug of No Album images shown in case of admin not logged in fixed.
|
1750 |
+
* Uninstall Hook Removed
|
1751 |
+
|
1752 |
+
= 1.5 =
|
1753 |
+
|
1754 |
+
* Album Covers Introduced
|
1755 |
+
* Css Conflicts Fixed
|
1756 |
+
* All Translations Updated
|
1757 |
+
|
1758 |
+
= 1.4 =
|
1759 |
+
|
1760 |
+
* Few Bugs Fixed
|
1761 |
+
* Css Conflicts Fixed
|
1762 |
+
* Languages Added Russian, Cezch, Hebrew & Serbian
|
1763 |
+
|
1764 |
+
= 1.3 =
|
1765 |
+
|
1766 |
+
* Few Bugs Fixed
|
1767 |
+
* Css Conflicts Fixed
|
1768 |
+
* Languages Updated
|
1769 |
+
|
1770 |
+
= 1.2 =
|
1771 |
+
|
1772 |
+
* Few Bugs Fixed in Gallery Bank
|
1773 |
+
* Lightbox logic changed
|
1774 |
+
* Thumbnails Fixed
|
1775 |
+
|
1776 |
+
= 1.1 =
|
1777 |
+
|
1778 |
+
* Few Bugs Fixed in Gallery Bank
|
1779 |
+
|
1780 |
+
= 1.0 =
|
1781 |
+
|
1782 |
+
* Initial Version Release
|
uninstall.php
CHANGED
@@ -32,14 +32,13 @@ if (!is_user_logged_in()) {
|
|
32 |
if ($get_other_settings_data["remove_table_at_uninstall"] == "enable") {
|
33 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "gallery_bank");
|
34 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "gallery_bank_meta");
|
35 |
-
|
36 |
delete_option("gallery-bank-pro-edition");
|
37 |
delete_option("gallery-bank-api-details");
|
38 |
delete_option("external_updates-gallery-bank");
|
39 |
delete_option("foobox-free");
|
40 |
delete_option("gallery-bank-wizard-set-up");
|
41 |
}
|
42 |
-
|
43 |
}
|
44 |
}
|
45 |
}
|
32 |
if ($get_other_settings_data["remove_table_at_uninstall"] == "enable") {
|
33 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "gallery_bank");
|
34 |
$wpdb->query("DROP TABLE IF EXISTS " . $wpdb->prefix . "gallery_bank_meta");
|
35 |
+
|
36 |
delete_option("gallery-bank-pro-edition");
|
37 |
delete_option("gallery-bank-api-details");
|
38 |
delete_option("external_updates-gallery-bank");
|
39 |
delete_option("foobox-free");
|
40 |
delete_option("gallery-bank-wizard-set-up");
|
41 |
}
|
|
|
42 |
}
|
43 |
}
|
44 |
}
|
user-views/assets/lightboxes/foobox/js/foobox.free.min.js
CHANGED
@@ -6,1351 +6,1404 @@
|
|
6 |
* @license Released under the MIT license.
|
7 |
* You are free to use FooBox jQuery in personal projects as long as this copyright header is left intact.
|
8 |
*/
|
9 |
-
!
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
},
|
18 |
-
alwaysInit: !1,
|
19 |
-
closeOnOverlayClick: !0,
|
20 |
-
containerCssClass: "fbx-instance",
|
21 |
-
countMessage: "item %index of %total",
|
22 |
-
error: "Could not load the item",
|
23 |
-
excludes: ".fbx-link, .nofoobox",
|
24 |
-
externalSelector: "a[data-foobox],input[data-foobox]",
|
25 |
-
fitToScreen: !1,
|
26 |
-
hideScrollbars: !0,
|
27 |
-
loadDelay: 0,
|
28 |
-
loaderTimeout: 600,
|
29 |
-
modalClass: "",
|
30 |
-
preload: !1,
|
31 |
-
rel: null,
|
32 |
-
resizeSpeed: 300,
|
33 |
-
selector: "a",
|
34 |
-
showButtons: !0,
|
35 |
-
showCount: !0,
|
36 |
-
style: "fbx-rounded",
|
37 |
-
theme: "fbx-light",
|
38 |
-
transitionInSpeed: 200,
|
39 |
-
transitionOutSpeed: 200,
|
40 |
-
initCallback: null,
|
41 |
-
loop: !0
|
42 |
},
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
c = navigator.userAgent.toLowerCase(),
|
69 |
d = navigator.platform;
|
70 |
-
|
71 |
-
|
72 |
f = c.indexOf("trident/"),
|
73 |
g = c.indexOf("edge/");
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
|
|
|
|
85 |
c = b.style,
|
86 |
d = "transition";
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
|
|
95 |
c = {
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
};
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
set: function(a, b, c) {
|
149 |
-
if (FooBox.options.isMultipart(b, ".")) {
|
150 |
-
var d = b.substring(0, b.indexOf(".")),
|
151 |
-
e = b.substring(b.indexOf(".") + 1);
|
152 |
-
a[d] = a[d] || {}, FooBox.options.set(a[d], e, c)
|
153 |
-
} else a[b] = c
|
154 |
-
},
|
155 |
-
merge: function(a, b, c) {
|
156 |
-
var d, e = Array.prototype.slice.call(arguments);
|
157 |
-
for (a = e.shift(), b = e.shift(), FooBox.options._merge(a, b), d = 0; d < e.length; d++) c = e[d], FooBox.options._merge(a, c);
|
158 |
-
return a
|
159 |
-
},
|
160 |
-
_merge: function(b, c) {
|
161 |
-
var d;
|
162 |
-
for (d in c) c.hasOwnProperty(d) && (FooBox.options.hasProperties(c[d]) && !a.isArray(c[d]) ? (b[d] = b[d] || {}, FooBox.options._merge(b[d], c[d])) : a.isArray(c[d]) ? (b[d] = [], a.extend(!0, b[d], c[d])) : b[d] = c[d])
|
163 |
}
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
g = FooBox.objects.ensure(a);
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
},
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
}
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
},
|
208 |
-
|
209 |
-
|
|
|
210 |
},
|
211 |
-
|
212 |
-
|
213 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
}
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
return FooBox.handlers.validate(a) ? FooBox.objects.register(FooBox.handlers._ns, a, b) : (d.error("Failed to register the handler."), !1)
|
224 |
-
},
|
225 |
-
load: function(a) {
|
226 |
-
FooBox.objects.load(FooBox.handlers._ns, a)
|
227 |
-
},
|
228 |
-
call: function(a, b, c, d) {
|
229 |
-
var e = Array.prototype.slice.call(arguments);
|
230 |
-
e.unshift(FooBox.handlers._ns), FooBox.objects.call.apply(this, e)
|
231 |
-
},
|
232 |
-
get: function(a, b) {
|
233 |
-
return FooBox.objects.get(FooBox.handlers._ns, a, function(a) {
|
234 |
-
return a.type == b
|
235 |
-
})
|
236 |
}
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
var
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
}, a.fn.foobox = function(b) {
|
256 |
-
return b = b || {}, this.each(function() {
|
257 |
-
var c = a(this).data("fbx_instance");
|
258 |
-
if (c instanceof FooBox.Instance)
|
259 |
-
if (1 == c.options.alwaysInit) {
|
260 |
-
var d = c.options;
|
261 |
-
c.destroy(), c = new FooBox.Instance(c.id), c.init(this, a.extend(!0, d, b))
|
262 |
-
} else c.reinit(b);
|
263 |
-
else {
|
264 |
-
if (c = a(this).data("fbx_p_instance"), c instanceof FooBox.Instance) return;
|
265 |
-
c = new FooBox.Instance, c.init(this, b)
|
266 |
-
}
|
267 |
-
})
|
268 |
-
}, FooBox.Modal = function(b) {
|
269 |
-
this.FooBox = b, this.element = null, this.loaderTimeout = new FooBox.Timer, this._first = !1, this._busy = !1, this._closed = !1;
|
270 |
-
var c = this;
|
271 |
-
return this.init = function(a, b) {
|
272 |
-
c.setup.html(), c.setup.options(b), c.setup.bind()
|
273 |
-
}, this.reinit = function(a) {
|
274 |
-
c.setup.options(a)
|
275 |
-
}, this.destroy = function() {
|
276 |
-
FooBox.isjQuery(c.element) && c.element.remove()
|
277 |
-
}, this.setup = {
|
278 |
-
html: function() {
|
279 |
-
if (!FooBox.isjQuery(c.element)) {
|
280 |
-
c.element = a('<div class="fbx-modal"></div>'), c.element.append('<div class="fbx-inner-spacer"></div>');
|
281 |
-
var b = a('<div class="fbx-stage"></div>');
|
282 |
-
b.append('<div class="fbx-item-current"></div>'), b.append('<div class="fbx-item-next"></div>');
|
283 |
-
var d = a('<div class="fbx-inner fbx-inner-shadow"></div>');
|
284 |
-
d.append(b), d.append('<a class="fbx-prev fbx-btn-transition fbx-btn-shadow"></a>'), d.append('<div class="fbx-credit"><a target="_blank" href=""><em></em><span> FooBox</span></a></div>'), d.append('<span class="fbx-count" />'), d.append('<a class="fbx-next fbx-btn-transition fbx-btn-shadow"></a>'), d.append('<a class="fbx-close fbx-btn-transition fbx-btn-shadow"></a>'), c.element.append('<div class="fbx-loader"><div></div></div>'), c.element.append(d), c.FooBox.raise("foobox.setupHtml"), a("body").append(c.element)
|
285 |
-
}
|
286 |
-
},
|
287 |
-
options: function(a) {
|
288 |
-
var b;
|
289 |
-
c.element.removeClass().addClass("fbx-modal").addClass(FooBox.format("fbx-{0}", c.FooBox.id)).addClass(c.FooBox.element.data("style") || a.style).addClass(c.FooBox.element.data("theme") || a.theme).addClass(c.FooBox.element.data("modal-class")).addClass(a.modalClass).data("fbx_instance", c.FooBox), c.element.addClass(FooBox.browser.css), b = a.affiliate.enabled ? "" : "none", c.element.find(".fbx-credit").css("display", b), a.affiliate.enabled && (c.element.find(".fbx-credit > a").attr("href", a.affiliate.url), c.element.find(".fbx-credit > a > em").text(a.affiliate.prefix)), b = a.showCount && c.FooBox.items.multiple() ? "" : "none", c.element.find(".fbx-count").css("display", b), a.showButtons && c.FooBox.items.multiple() || c.element.addClass("fbx-no-buttons"), c.FooBox.raise("foobox.setupOptions")
|
290 |
-
},
|
291 |
-
bind: function() {
|
292 |
-
1 == c.FooBox.options.closeOnOverlayClick && c.element.unbind("click.foobox").bind("click.foobox", function(b) {
|
293 |
-
1 == c.FooBox.options.closeOnOverlayClick && a(b.target).is(".fbx-modal") && c.close()
|
294 |
-
}), c.element.find(".fbx-close").unbind("click.foobox").bind("click.foobox", function(a) {
|
295 |
-
a.preventDefault(), a.stopPropagation(), c.close()
|
296 |
-
}).end().find(".fbx-prev").unbind("click.foobox").bind("click.foobox", function(b) {
|
297 |
-
b.preventDefault(), b.stopPropagation(), a(this).hasClass("fbx-disabled") || c.prev()
|
298 |
-
}).end().find(".fbx-next").unbind("click.foobox").bind("click.foobox", function(b) {
|
299 |
-
b.preventDefault(), b.stopPropagation(), a(this).hasClass("fbx-disabled") || c.next()
|
300 |
-
})
|
301 |
-
}
|
302 |
-
}, this.prioritize = function() {
|
303 |
-
FooBox.instances.length > 1 && c.element.nextAll(".fbx-modal:last").after(c.element)
|
304 |
-
}, this.preload = function() {
|
305 |
-
if (1 == c.FooBox.options.preload) {
|
306 |
-
var a = c.FooBox.items.prev();
|
307 |
-
a && a.handler.preload(a);
|
308 |
-
var b = c.FooBox.items.next();
|
309 |
-
b && b.handler.preload(b)
|
310 |
-
}
|
311 |
-
}, this.show = function(b) {
|
312 |
-
function e(a) {
|
313 |
-
if (c.loaderTimeout.stop(), c.element.removeClass("fbx-loading"), c._busy = !1, d.error(a), !c.FooBox.raise("foobox.onError", {
|
314 |
-
error: a
|
315 |
-
}).isDefaultPrevented()) {
|
316 |
-
var e = c.FooBox.items.error(f.index);
|
317 |
-
null != e && c.show(b)
|
318 |
-
}
|
319 |
-
}
|
320 |
-
b = b || !1, c._first = b, c._busy = !0, c._closed = !1, a("body").addClass("fbx-active"), c.FooBox.options.hideScrollbars && a("html").addClass("fbx-no-scroll");
|
321 |
-
var f = c.FooBox.items.current();
|
322 |
-
1 == f.error ? c.element.addClass("fbx-error") : c.element.removeClass("fbx-error"), c.element.hasClass("fbx-show") || (c.prioritize(), c.element.addClass("fbx-loading").find(".fbx-inner").css({
|
323 |
-
width: "100px",
|
324 |
-
height: "100px",
|
325 |
-
"margin-top": "-50px",
|
326 |
-
"margin-left": "-50px"
|
327 |
-
}));
|
328 |
-
var g = c.element.find(".fbx-item-current"),
|
329 |
h = c.element.find(".fbx-item-next");
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
},
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
|
|
|
|
|
|
|
|
|
|
448 |
height: b.height,
|
449 |
width: b.width,
|
450 |
"margin-top": y,
|
451 |
"margin-left": z
|
452 |
-
|
453 |
item: g,
|
454 |
size: b
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
}
|
459 |
-
}, this.overflow = function(a, b, d, e) {
|
460 |
-
var f = e.find(".fbx-item");
|
461 |
-
1 == a.overflow && (d.width < .8 * b.width || d.height < .8 * b.height) || 1 == a.overflow && 0 == a.proportion && (d.width < b.width || d.height < b.height) || 1 == a.overflow && "html" == a.type ? ("html" == a.type ? (f.css({
|
462 |
-
width: "100%",
|
463 |
-
height: "auto",
|
464 |
-
overflow: ""
|
465 |
-
}), e.css("overflow", "auto")) : (f.css({
|
466 |
-
width: b.width,
|
467 |
-
height: b.height,
|
468 |
-
overflow: ""
|
469 |
-
}), e.css({
|
470 |
-
"overflow-x": b.width <= d.width ? "hidden" : "",
|
471 |
-
"overflow-y": b.height <= d.height ? "hidden" : ""
|
472 |
-
})), c.FooBox.raise("foobox.showOverflow", {
|
473 |
-
item: a,
|
474 |
-
container: e
|
475 |
-
})) : (f.css({
|
476 |
-
width: "",
|
477 |
-
height: "",
|
478 |
-
overflow: "hidden"
|
479 |
-
}), e.css({
|
480 |
-
"overflow-x": "",
|
481 |
-
"overflow-y": "",
|
482 |
-
overflow: "hidden"
|
483 |
-
}), c.FooBox.raise("foobox.hideOverflow", {
|
484 |
-
item: a,
|
485 |
-
container: e
|
486 |
-
}))
|
487 |
-
}, this.transitionOut = function(b, d, e) {
|
488 |
-
try {
|
489 |
-
if (!c.element.hasClass("fbx-show")) return void(a.isFunction(d) && d());
|
490 |
-
b.animate({
|
491 |
-
opacity: 0
|
492 |
-
}, b.is(":visible") ? c.FooBox.options.transitionOutSpeed : 0, function() {
|
493 |
-
a.isFunction(d) && d()
|
494 |
-
})
|
495 |
-
} catch (f) {
|
496 |
-
a.isFunction(e) && e(f)
|
497 |
-
}
|
498 |
-
}, this.transitionIn = function(b, d, e) {
|
499 |
-
try {
|
500 |
-
if (!c.element.hasClass("fbx-show")) return b.css({
|
501 |
-
opacity: 1
|
502 |
-
}), void(a.isFunction(d) && d());
|
503 |
-
b.animate({
|
504 |
-
opacity: 1
|
505 |
-
}, c.FooBox.options.transitionInSpeed, function() {
|
506 |
-
a.isFunction(d) && d()
|
507 |
-
})
|
508 |
-
} catch (f) {
|
509 |
-
a.isFunction(e) && e(f)
|
510 |
-
}
|
511 |
-
}, this.close = function() {
|
512 |
-
c.FooBox.raise("foobox.beforeClose").isDefaultPrevented() || (c._closed = !0, c._busy = !1, c.element.removeClass("fbx-loading fbx-show"), a("body").removeClass("fbx-active"), c.FooBox.raise("foobox.close"), c.element.find(".fbx-item-current, .fbx-item-next").empty(), a("html").removeClass("fbx-no-scroll"), c.FooBox.raise("foobox.afterClose"))
|
513 |
-
}, this.prev = function(a) {
|
514 |
-
if (1 != c._busy) {
|
515 |
-
if (c.FooBox.items.indexes.set(c.FooBox.items.indexes.prev), "string" == typeof a)
|
516 |
-
for (var b = c.FooBox.items.current(); b.type != a;) c.FooBox.items.indexes.set(c.FooBox.items.indexes.prev), b = c.FooBox.items.current();
|
517 |
-
c.show(!1), c.FooBox.raise("foobox.previous")
|
518 |
-
}
|
519 |
-
}, this.next = function(a) {
|
520 |
-
if (1 != c._busy) {
|
521 |
-
if (c.FooBox.items.indexes.set(c.FooBox.items.indexes.next), "string" == typeof a)
|
522 |
-
for (var b = c.FooBox.items.current(); b.type != a;) c.FooBox.items.indexes.set(c.FooBox.items.indexes.next), b = c.FooBox.items.current();
|
523 |
-
c.show(!1), c.FooBox.raise("foobox.next")
|
524 |
-
}
|
525 |
-
}, this
|
526 |
-
}, FooBox.Instance = function(b) {
|
527 |
-
this.id = null, "number" == typeof b ? (this.id = b, FooBox.instances[b - 1] = this) : this.id = FooBox.instances.push(this), this.element = null, this.options = a.extend(!0, {}, FooBox.defaults), this.modal = new FooBox.Modal(this), this.objects = {}, FooBox.addons.load(this), FooBox.handlers.load(this);
|
528 |
-
var c = this;
|
529 |
-
return this.raise = function(a, b) {
|
530 |
-
return FooBox.raise(c, a, b)
|
531 |
-
}, this.init = function(b, d) {
|
532 |
-
c.element = FooBox.isjQuery(b) ? b : a(b), c.options = FooBox.options.merge(c.options, d || {}), FooBox.addons.call(c, "preinit", c.element, c.options), c.items.init(), c.items.array.length > 0 ? (c.element.data("fbx_instance", c), c.options.containerCssClass && c.element.addClass(c.options.containerCssClass), c.setup.bind(), c.modal.init(b, c.options), FooBox.handlers.call(c, "init", c.element, c.options), c.raise("foobox.initialized"), a.isFunction(c.options.initCallback) && c.options.initCallback.call(c)) : c.destroy()
|
533 |
-
}, this.reinit = function(a) {
|
534 |
-
c.options = FooBox.options.merge(c.options, a || {}), c.items.init(!0), c.items.array.length > 0 ? (c.setup.bind(), c.modal.reinit(c.options), FooBox.handlers.call(c, "reinit", c.options), c.raise("foobox.reinitialized")) : c.destroy()
|
535 |
-
}, this.destroy = function() {
|
536 |
-
FooBox.addons.call(c, "destroy"), FooBox.handlers.call(c, "destroy"), c.items.destroy(), c.modal.destroy(), c.element.removeClass("fbx-instance fbx-item").data({
|
537 |
-
fbx_instance: null,
|
538 |
-
fbx_p_instance: null
|
539 |
-
}), c.id == FooBox.instances.length ? FooBox.instances.splice(c.id - 1, 1) : FooBox.instances[c.id - 1] = null, c.raise("foobox.destroy")
|
540 |
-
}, this.setup = {
|
541 |
-
bind: function() {
|
542 |
-
a(c.options.externalSelector).unbind("click.fooboxExternal").bind("click.fooboxExternal", function(b) {
|
543 |
-
b.preventDefault();
|
544 |
-
var c = a(this).data("foobox"),
|
545 |
-
d = a(c),
|
546 |
-
e = d.data("fbx_instance") || d.data("fbx_p_instance");
|
547 |
-
return d.length > 0 && e instanceof FooBox.Instance && e.modal instanceof FooBox.Modal && e.modal.show(!0), !1
|
548 |
-
})
|
549 |
-
}
|
550 |
-
}, this.items = {
|
551 |
-
array: [],
|
552 |
-
indexes: {
|
553 |
-
prev: -1,
|
554 |
-
current: 0,
|
555 |
-
next: 1,
|
556 |
-
direction: "*",
|
557 |
-
set: function(a) {
|
558 |
-
var b = c.items.indexes.current;
|
559 |
-
a = a || 0, a = a > c.items.array.length - 1 ? 0 : 0 > a ? c.items.array.length - 1 : a;
|
560 |
-
var d = a - 1,
|
561 |
-
e = a + 1;
|
562 |
-
c.items.indexes.current = a, c.items.indexes.prev = 0 > d ? c.items.array.length - 1 : d, c.items.indexes.next = e > c.items.array.length - 1 ? 0 : e, c.items.indexes.direction = c.items.indexes._direction(b, a, c.items.array.length - 1)
|
563 |
-
},
|
564 |
-
_direction: function(a, b, c) {
|
565 |
-
return 0 == b && a == c ? ">" : b == c && 0 == a ? "<" : b > a ? ">" : a > b ? "<" : "*"
|
566 |
-
}
|
567 |
-
},
|
568 |
-
new_array: function(b) {
|
569 |
-
b = b || !1;
|
570 |
-
var d, e, f, g = 0;
|
571 |
-
if (1 == b) {
|
572 |
-
if (c.items.array.length > 0) {
|
573 |
-
for (var h = 0; h < c.items.array.length; h++) d = c.items.array[h], FooBox.isjQuery(d.element) ? 0 == d.element.parents(":first").length && (c.items.array.splice(h, 1), h -= 1) : d.option || (c.items.array.splice(h, 1), h -= 1);
|
574 |
-
for (var i = 0; i < c.items.array.length; i++) d = c.items.array[i], FooBox.isjQuery(d.element) ? (f = d.element.get(0), f.index = d.index = i) : d.index = i
|
575 |
-
}
|
576 |
-
} else c.items.array = [];
|
577 |
-
if (a.isArray(c.options.items))
|
578 |
-
for (var j = 0; j < c.options.items.length; j++)
|
579 |
-
if (d = c.options.items[j], -1 == c.items.indexOf(d))
|
580 |
-
for (var k = 0; k < c.objects.handlers.length; k++)
|
581 |
-
if (c.objects.handlers[k].type == d.type) {
|
582 |
-
d.index = g, d.option = !0, d.handler = c.objects.handlers[k], d.handler.defaults(d), e = c.raise("foobox.parseItem", {
|
583 |
-
element: null,
|
584 |
-
item: d
|
585 |
-
}), c.items.array.push(e.fb.item), g++;
|
586 |
-
break
|
587 |
-
}
|
588 |
-
},
|
589 |
-
init: function(a) {
|
590 |
-
a = a || !1, c.items.new_array(a), c.element.is(c.options.selector) && !c.element.is(c.options.excludes) && c.items.add(c.element) ? c.element.unbind("click.item").bind("click.item", c.items.clicked) : c.element.find(c.options.selector).not(c.options.excludes).unbind("click.item").filter(function() {
|
591 |
-
return c.items.add(this)
|
592 |
-
}).bind("click.item", c.items.clicked), c.items.rel()
|
593 |
-
},
|
594 |
-
destroy: function() {
|
595 |
-
var b, d;
|
596 |
-
for (d = 0; d < c.items.array.length; d++) b = c.items.array[d], a.isFunction(b.destroy) && b.destroy(), FooBox.isjQuery(b.element) && b.element.unbind("click.item").removeClass("fbx-link").data("fbx_p_instance", null);
|
597 |
-
c.items.array = []
|
598 |
-
},
|
599 |
-
rel: function() {
|
600 |
-
var b = c.options.rel || c.element.attr("rel") || (c.items.first(function(a) {
|
601 |
-
return FooBox.isjQuery(a.element) ? "string" == typeof a.element.attr("rel") : !1
|
602 |
-
}) || {
|
603 |
-
element: a()
|
604 |
-
}).element.attr("rel");
|
605 |
-
"string" == typeof b && a('[rel="' + b + '"]').not(c.options.excludes).not(c.element).unbind("click.item").filter(function() {
|
606 |
-
return c.items.add(this)
|
607 |
-
}).bind("click.item", c.items.clicked)
|
608 |
-
},
|
609 |
-
indexOf: function(a, b) {
|
610 |
-
if (!a) return -1;
|
611 |
-
b = b || "url";
|
612 |
-
var d;
|
613 |
-
for (d = 0; d < c.items.array.length; d++)
|
614 |
-
if (c.items.array[d][b] == a[b]) return d;
|
615 |
-
return -1
|
616 |
-
},
|
617 |
-
is: {
|
618 |
-
first: function(a) {
|
619 |
-
return c.items.array && 0 != c.items.array.length ? c.items.array[0].index == a.index : !1
|
620 |
-
},
|
621 |
-
last: function(a) {
|
622 |
-
return c.items.array && 0 != c.items.array.length ? c.items.array[c.items.array.length - 1].index == a.index : !1
|
623 |
-
}
|
624 |
-
},
|
625 |
-
add: function(b) {
|
626 |
-
b = FooBox.isjQuery(b) ? b : a(b);
|
627 |
-
var d = c.items.parse(b, c.items.array.length);
|
628 |
-
if (null === d) return !1;
|
629 |
-
var e = b.get(0),
|
630 |
-
f = c.items.indexOf(d); - 1 != f ? (d = c.items.array[f], e.index = d.index) : e.index = d.index = c.items.array.push(d) - 1;
|
631 |
-
var g = b.addClass("fbx-link").data("fbx_p_instance");
|
632 |
-
return g instanceof FooBox.Instance || b.data("fbx_p_instance", c), !0
|
633 |
-
},
|
634 |
-
get: function(b) {
|
635 |
-
b = FooBox.isjQuery(b) ? b : a(b);
|
636 |
-
var d = null,
|
637 |
-
e = b.get(0).index;
|
638 |
-
return e && e > 0 && e <= c.items.array.length - 1 && (d = c.items.array[e]), d
|
639 |
-
},
|
640 |
-
parse: function(b, d) {
|
641 |
-
b = FooBox.isjQuery(b) ? b : a(b);
|
642 |
-
for (var e, f, g = 0; g < c.objects.handlers.length; g++)
|
643 |
-
if (c.objects.handlers[g].handles(b, c.element)) {
|
644 |
-
e = c.objects.handlers[g].parse(b), isNaN(d) || (e.index = d), f = c.raise("foobox.parseItem", {
|
645 |
-
element: b,
|
646 |
-
item: e
|
647 |
-
});
|
648 |
-
break
|
649 |
-
}
|
650 |
-
return "undefined" != typeof f && f.fb.item ? f.fb.item : null
|
651 |
-
},
|
652 |
-
error: function(b) {
|
653 |
-
function d(b) {
|
654 |
-
var c = this;
|
655 |
-
return c.FooBox = b, c.type = "error", c.handles = function() {
|
656 |
-
return !1
|
657 |
-
}, c.hasChanged = function() {
|
658 |
-
return !1
|
659 |
-
}, c.defaults = function() {}, c.parse = function() {}, c.load = function(b, d, e, f) {
|
660 |
-
try {
|
661 |
-
d.empty().append(b.content), a.isFunction(e) && e(c.getSize(b))
|
662 |
-
} catch (g) {
|
663 |
-
a.isFunction(f) && f(g)
|
664 |
-
}
|
665 |
-
}, c.getSize = function(a) {
|
666 |
-
return new FooBox.Size(a.width, a.height)
|
667 |
-
}, c
|
668 |
-
}
|
669 |
-
if (c.items.array.length > b && 1 == c.items.array[b].error) return c.items.array[b];
|
670 |
-
var e, f, g = FooBox.handlers.get(c, "html"),
|
671 |
-
h = !1;
|
672 |
-
if (null == g && (g = new d(c)), null !== c.options.error.match(/^#/i) && a(c.options.error).length > 0) e = a(c.options.error), h = !0;
|
673 |
-
else {
|
674 |
-
var i = FooBox.format('<div class="fbx-error-msg" data-width="240" data-height="240"><span></span><p>{0}</p></div>', c.options.error);
|
675 |
-
e = a(i)
|
676 |
-
}
|
677 |
-
return f = new FooBox.Item(g.type, e.get(0), g), f.selector = 1 == h ? c.options.error : null, f.index = b, f.error = !0, f.title = e.data("title") || null, f.description = e.data("description") || null, f.width = e.data("width") || 240 || null, f.height = e.data("height") || 240 || null, f.content = 1 == h ? null : e, f.fullscreen = !0, f.handler = g, c.items.array[b] = f, f
|
678 |
-
},
|
679 |
-
first: function(a) {
|
680 |
-
for (var b = null, d = 0; d < c.items.array.length; d++)
|
681 |
-
if (a(c.items.array[d])) {
|
682 |
-
b = c.items.array[d];
|
683 |
-
break
|
684 |
-
}
|
685 |
-
return b
|
686 |
-
},
|
687 |
-
current: function() {
|
688 |
-
return c.items.array[c.items.indexes.current]
|
689 |
-
},
|
690 |
-
prev: function() {
|
691 |
-
return c.items.array[c.items.indexes.prev]
|
692 |
-
},
|
693 |
-
next: function() {
|
694 |
-
return c.items.array[c.items.indexes.next]
|
695 |
-
},
|
696 |
-
multiple: function() {
|
697 |
-
return c.items.array.length > 1
|
698 |
-
},
|
699 |
-
clicked: function(a) {
|
700 |
-
return a.preventDefault(), c.items.indexes.set(this.index), c.modal.show(!0), !1
|
701 |
-
}
|
702 |
-
}, this
|
703 |
-
}, FooBox.open = function(b) {
|
704 |
-
if (1 == FooBox.isDeepLink) return null;
|
705 |
-
var c, d = null;
|
706 |
-
if ("object" == typeof b) {
|
707 |
-
var e = document.createElement("a");
|
708 |
-
a(e).foobox(b), d = a(e).data("fbx_instance")
|
709 |
-
} else "number" == typeof b ? c = b : (c = parseInt(b || 0), c = isNaN(c) ? 0 : c), c = c > FooBox.instances.length - 1 ? FooBox.instances.length - 1 : 0 > c ? 0 : c, d = FooBox.instances[c];
|
710 |
-
return null != d && d.modal instanceof FooBox.Modal ? (d.modal.show(!0), d) : null
|
711 |
-
}, FooBox.close = function() {
|
712 |
-
var a, b = [],
|
713 |
-
c = null;
|
714 |
-
for (a = 0; a < FooBox.instances.length; a++) c = FooBox.instances[a], null != c && c.modal instanceof FooBox.Modal && FooBox.isjQuery(c.modal.element) && c.modal.element.hasClass("fbx-show") && b.push(c);
|
715 |
-
for (a = 0; a < b.length; a++) c = b[a], c.modal.close()
|
716 |
-
}, FooBox.resize = function(c, d) {
|
717 |
-
if (c || d) {
|
718 |
-
var e, f, g, h;
|
719 |
-
for (e = 0; e < FooBox.instances.length; e++) f = FooBox.instances[e], null != f && f.modal instanceof FooBox.Modal && FooBox.isjQuery(f.modal.element) && f.modal.element.hasClass("fbx-show") && (g = f.items.current(), h = new FooBox.Size(c || g.width || 0, d || g.height || 0), g.width = h.width, g.height = h.height, f.modal.resize(h, f.modal.element.find(".fbx-item-current")))
|
720 |
-
} else a(b).trigger("resize.foobox")
|
721 |
-
}, FooBox.lateBind = function(c, d) {
|
722 |
-
var e = a.extend(!0, {}, FooBox.defaults, d || b.FOOBOX && FOOBOX.o || {}),
|
723 |
-
f = a(c);
|
724 |
-
f.on("click.foobox", e.selector, function(a) {
|
725 |
-
a.preventDefault();
|
726 |
-
var b = f.data("fbx_instance");
|
727 |
-
b || (b = f.foobox(e).data("fbx_instance")), b instanceof FooBox.Instance && "number" == typeof this.index && (b.items.indexes.set(this.index), b.modal.show(!0))
|
728 |
-
})
|
729 |
-
}
|
730 |
-
}
|
731 |
-
}(jQuery, window, window.console),
|
732 |
-
function(a, b) {
|
733 |
-
var c = {
|
734 |
-
images: {
|
735 |
-
noRightClick: !1,
|
736 |
-
attr: "href",
|
737 |
-
overflow: !1,
|
738 |
-
fullscreen: !0,
|
739 |
-
showCaptions: !0,
|
740 |
-
regex: /https?:\/\/.*?\/.*?\.(jpg|jpeg|png|gif|bmp)/i,
|
741 |
-
maxWidth: -1,
|
742 |
-
maxHeight: -1,
|
743 |
-
findUrl: function(a, c) {
|
744 |
-
if (!c) return "";
|
745 |
-
if (c.data("image")) return c.data("image");
|
746 |
-
var d = c.attr(a.options.images.attr);
|
747 |
-
return "string" == typeof d ? b.qualifiedURL(c.attr(a.options.images.attr)) : ""
|
748 |
}
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
768 |
try {
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
b.image.onload = b.image.onerror = null, b.image = null, a.isFunction(f) && f("An error occurred attempting to load the image.")
|
779 |
-
}, b.image.src = b.url)
|
780 |
-
} catch (h) {
|
781 |
-
a.isFunction(f) && f(h)
|
782 |
}
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
787 |
}
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
|
|
795 |
}
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
|
|
801 |
}
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
function(a, b) {
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
unbind: function(a) {
|
827 |
-
a = a || !1, a && c.FooBox.element.unbind({
|
828 |
-
"foobox.initialized foobox.reinitialized": c.handlers.initialized,
|
829 |
-
"foobox.setupHtml": c.handlers.setupHtml
|
830 |
-
}), c.FooBox.element.unbind("foobox.afterLoad", c.handlers.afterLoad), b.isjQuery(c.FooBox.modal.element) && c.FooBox.modal.element.unbind("keydown.foobox", c.handlers.onKeydown)
|
831 |
-
},
|
832 |
-
initialized: function() {
|
833 |
-
c.handlers.unbind(), 1 == c.FooBox.options.keyboard.enabled && (c.FooBox.element.bind("foobox.afterLoad", c.handlers.afterLoad), b.isjQuery(c.FooBox.modal.element) && c.FooBox.modal.element.bind("keydown.foobox", c.handlers.onKeydown))
|
834 |
-
},
|
835 |
-
setupHtml: function(a) {
|
836 |
-
a.fb.modal.attr("tabindex", 0)
|
837 |
-
},
|
838 |
-
afterLoad: function(a) {
|
839 |
-
a.fb.modal.focus()
|
840 |
-
},
|
841 |
-
onKeydown: function(a) {
|
842 |
-
var b = c.FooBox.modal,
|
843 |
-
d = c.FooBox.options.keyboard;
|
844 |
-
b.element.hasClass("fbx-show") && (b.element.hasClass("fbx-fullscreen-mode") || 27 !== a.which ? c.FooBox.items.multiple() && 37 === a.which ? b.prev() : c.FooBox.items.multiple() && 39 === a.which && b.next() : b.close(), 1 == d.preventDefault && a.preventDefault(), 1 == d.stopPropagation && a.stopPropagation(), c.FooBox.raise("foobox.keydown", {
|
845 |
-
keyCode: a.which
|
846 |
-
}))
|
847 |
}
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
if (a.isArray(c))
|
866 |
-
for (var g = 0; g < c.length; g++)
|
867 |
-
if (e = c[g], e && e.width && this.width <= e.width) {
|
868 |
-
f = e;
|
869 |
-
break
|
870 |
-
}
|
871 |
-
this.breakpoint = null == f ? "fbx-desktop" : f.name
|
872 |
-
}, b.Responsive = function(c) {
|
873 |
-
this.FooBox = c, this.breakpoint = {
|
874 |
-
values: [],
|
875 |
-
names: ""
|
876 |
-
}, this.timers = {
|
877 |
-
resize: new b.Timer,
|
878 |
-
ios: new b.Timer
|
879 |
-
};
|
880 |
-
var d = this,
|
881 |
-
e = null;
|
882 |
-
this.preinit = function(a) {
|
883 |
-
d.handlers.unbind(!0), a.bind("foobox.initialized foobox.reinitialized", d.handlers.initialized)
|
884 |
-
}, this.destroy = function() {
|
885 |
-
d.handlers.unbind(!0)
|
886 |
-
}, this.handlers = {
|
887 |
-
unbind: function(b) {
|
888 |
-
b = b || !1, b && d.FooBox.element.unbind("foobox.initialized foobox.reinitialized", d.handlers.initialized), a(window).unbind("resize.foobox", d.handlers.resize), d.FooBox.element.unbind({
|
889 |
-
"foobox.beforeShow": d.handlers.iosBeforeShow,
|
890 |
-
"foobox.close": d.handlers.iosClose
|
891 |
-
})
|
892 |
},
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
898 |
},
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
if (d.FooBox.modal.element.has("fbx-show") && null != a) {
|
904 |
-
var b = a.handler.getSize(a);
|
905 |
-
d.FooBox.modal.resize(b, d.FooBox.modal.element.find(".fbx-item-current"))
|
906 |
-
}
|
907 |
-
}, d.FooBox.options.resizeTimeout)
|
908 |
},
|
909 |
-
|
910 |
-
|
|
|
|
|
|
|
911 |
},
|
912 |
-
|
913 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
914 |
},
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
}
|
925 |
-
}, this.setup = {
|
926 |
-
breakpoints: function() {
|
927 |
-
d.breakpoint.values = [], d.breakpoint.names = "";
|
928 |
-
for (var a in d.FooBox.options.breakpoints) d.FooBox.options.breakpoints.hasOwnProperty(a) && (d.breakpoint.values.push({
|
929 |
-
name: d.fixName(a),
|
930 |
-
width: d.FooBox.options.breakpoints[a]
|
931 |
-
}), d.breakpoint.names += d.fixName(a) + " ");
|
932 |
-
d.breakpoint.values.sort(function(a, b) {
|
933 |
-
return a.width - b.width
|
934 |
-
})
|
935 |
-
}
|
936 |
-
}, this.iosRedraw = function() {
|
937 |
-
window.scrollTo(0, document.body.scrollTop), a(window).trigger("resize")
|
938 |
-
}, this.fixName = function(a) {
|
939 |
-
return /^fbx-[a-zA-Z0-9]/.test(a) ? a : "fbx-" + a
|
940 |
-
}, this.style = function() {
|
941 |
-
var a = new b.BPInfo(d.breakpoint.values),
|
942 |
-
c = d.FooBox.modal.element;
|
943 |
-
c.removeClass(d.breakpoint.names).removeClass("fbx-desktop fbx-landscape fbx-portrait").addClass(a.breakpoint).addClass(a.orientation), d.FooBox.options.hideNavOnMobile === !0 ? c.addClass("fbx-no-nav") : c.removeClass("fbx-no-nav")
|
944 |
-
}
|
945 |
-
}, b.Responsive.metaCheck = function() {
|
946 |
-
var b = a("meta[name=viewport]"),
|
947 |
-
c = b.attr("content");
|
948 |
-
if (b.length > 0 && "string" == typeof c) {
|
949 |
-
for (var d = c.split(","), e = !1, f = !1, g = 0; g < d.length; g++) {
|
950 |
-
var h = a.trim(d[g]);
|
951 |
-
"width" == h.substring(0, 5) && -1 !== h.indexOf("device-width") ? e = !0 : "initial-scale" == h.substring(0, 13) && (f = !0)
|
952 |
-
}
|
953 |
-
e && !f && (d.push("initial-scale=1"), c = d.join(","), b.attr("content", c))
|
954 |
-
}
|
955 |
-
}, b.addons.register(b.Responsive, c), b.Responsive.metaCheck()
|
956 |
-
}(jQuery, window.FooBox),
|
957 |
-
function(a, b) {
|
958 |
-
var c = {
|
959 |
-
captions: {
|
960 |
-
animation: "slide",
|
961 |
-
enabled: !0,
|
962 |
-
descSource: "find",
|
963 |
-
hoverDelay: 300,
|
964 |
-
maxHeight: .4,
|
965 |
-
onlyShowOnHover: !1,
|
966 |
-
onlyShowOnClick: !1,
|
967 |
-
overrideDesc: !1,
|
968 |
-
overrideTitle: !1,
|
969 |
-
prettify: !1,
|
970 |
-
titleSource: "image_find"
|
971 |
-
}
|
972 |
-
};
|
973 |
-
b.Item.prototype.captions = !1, b.Item.prototype.title = null, b.Item.prototype.description = null, b.Item.prototype.caption = null, b.Captions = function(c) {
|
974 |
-
this.FooBox = c, this.timers = {
|
975 |
-
hover: new b.Timer
|
976 |
-
};
|
977 |
-
var d = this;
|
978 |
-
this.preinit = function(a) {
|
979 |
-
d.handlers.unbind(!0), a.bind({
|
980 |
-
"foobox.initialized foobox.reinitialized": d.handlers.initialized,
|
981 |
-
"foobox.setupHtml": d.handlers.setupHtml,
|
982 |
-
"foobox.setupOptions": d.handlers.setupOptions,
|
983 |
-
"foobox.parseItem": d.handlers.parseItem,
|
984 |
-
"foobox.onError": d.handlers.onError
|
985 |
-
})
|
986 |
-
}, this.destroy = function() {
|
987 |
-
d.handlers.unbind(!0)
|
988 |
-
}, this.handlers = {
|
989 |
-
unbind: function(a) {
|
990 |
-
a = a || !1, a && d.FooBox.element.unbind({
|
991 |
-
"foobox.initialized foobox.reinitialized": d.handlers.initialized,
|
992 |
-
"foobox.setupHtml": d.handlers.setupHtml,
|
993 |
-
"foobox.setupOptions": d.handlers.setupOptions,
|
994 |
-
"foobox.parseItem": d.handlers.parseItem,
|
995 |
-
"foobox.onError": d.handlers.onError,
|
996 |
-
"foobox.close": d.handlers.close
|
997 |
-
}), d.FooBox.element.unbind({
|
998 |
-
"foobox.beforeLoad": d.handlers.beforeLoad,
|
999 |
-
"foobox.afterLoad": d.handlers.afterLoad
|
1000 |
-
}), d.FooBox.modal instanceof b.Modal && b.isjQuery(d.FooBox.modal.element) && d.FooBox.modal.element.undelegate("mouseenter.captions mouseleave.captions").find(".fbx-item-current, .fbx-item-next").unbind("click.captions")
|
1001 |
},
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
|
|
1008 |
},
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
|
|
|
|
|
|
|
|
1015 |
},
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
|
|
1020 |
},
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1025 |
},
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1035 |
},
|
1036 |
-
|
1037 |
-
|
|
|
|
|
|
|
|
|
|
|
1038 |
},
|
1039 |
-
|
1040 |
-
|
1041 |
},
|
1042 |
-
|
1043 |
-
|
1044 |
},
|
1045 |
-
|
1046 |
-
|
1047 |
-
return !b || b.error || b.captionLoaded || (a.fb.instance.raise("foobox.alterCaption", {
|
1048 |
-
element: a.fb.element,
|
1049 |
-
item: b
|
1050 |
-
}), b.captionLoaded = !0), 1 == a.fb.options.captions.onlyShowOnHover ? void d.update() : void(0 == a.fb.options.captions.onlyShowOnClick && d.show())
|
1051 |
},
|
1052 |
-
|
1053 |
-
|
1054 |
},
|
1055 |
-
|
1056 |
-
|
1057 |
-
if (c.fb.item.captions && 0 != e.enabled) {
|
1058 |
-
var f, g, h = "";
|
1059 |
-
if (null != c.fb.element) {
|
1060 |
-
var i = a(c.fb.element).data("titleSource") || a(c.fb.instance.element).data("titleSource") || e.titleSource,
|
1061 |
-
j = a(c.fb.element).data("descSource") || a(c.fb.instance.element).data("descSource") || e.descSource;
|
1062 |
-
f = c.fb.element.data("captionTitle") || c.fb.element.data("title") || d.text(c.fb.element, i), g = c.fb.element.data("captionDesc") || c.fb.element.data("description") || d.text(c.fb.element, j)
|
1063 |
-
} else f = c.fb.item.title, g = c.fb.item.description;
|
1064 |
-
f = null == f || "undefined" == typeof f ? "" : f + "", g = null == g || "undefined" == typeof g ? "" : g + "", f && f == g && (g = null), h = "string" == typeof f && f.length > 0 ? b.format('<div class="fbx-caption-title">{0}</div>', f) : h, h = "string" == typeof g && g.length > 0 ? h + b.format('<div class="fbx-caption-desc">{0}</div>', g) : h, c.fb.item.title = f, c.fb.item.description = g, c.fb.item.caption = h, c.fb.instance.raise("foobox.createCaption", {
|
1065 |
-
element: c.fb.element,
|
1066 |
-
item: c.fb.item
|
1067 |
-
})
|
1068 |
-
}
|
1069 |
}
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
function(a
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
if (!e.hasClass("tiled-gallery")) return;
|
1170 |
-
d.captions.overrideTitle === !1 && (h = j || f.parents(".tiled-gallery-item:first").find(".tiled-gallery-caption").html() || f.find("img").data("image-title") || f.find("img").attr("title") || h || ""), d.captions.overrideDesc === !1 && (i = k || a.trim(f.find("img").data("image-description")).replace(/(^<p>)|(<\/p>$)/gi, "") || i || "")
|
1171 |
}
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
}
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
},
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1237 |
"foobox.initialized foobox.reinitialized": h.handlers.initialized
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
* @license Released under the MIT license.
|
7 |
* You are free to use FooBox jQuery in personal projects as long as this copyright header is left intact.
|
8 |
*/
|
9 |
+
!function (a, b, c, undefined) {
|
10 |
+
if (a && b) {
|
11 |
+
b.FooBox = {
|
12 |
+
defaults: {
|
13 |
+
affiliate: {
|
14 |
+
enabled: !0,
|
15 |
+
prefix: "Powered by ",
|
16 |
+
url: "http://fooplugins.com/plugins/foobox/"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
},
|
18 |
+
alwaysInit: !1,
|
19 |
+
closeOnOverlayClick: !0,
|
20 |
+
containerCssClass: "fbx-instance",
|
21 |
+
countMessage: "item %index of %total",
|
22 |
+
error: "Could not load the item",
|
23 |
+
excludes: ".fbx-link, .nofoobox",
|
24 |
+
externalSelector: "a[data-foobox],input[data-foobox]",
|
25 |
+
fitToScreen: !1,
|
26 |
+
hideScrollbars: !0,
|
27 |
+
loadDelay: 0,
|
28 |
+
loaderTimeout: 600,
|
29 |
+
modalClass: "",
|
30 |
+
preload: !1,
|
31 |
+
rel: null,
|
32 |
+
resizeSpeed: 300,
|
33 |
+
selector: "a",
|
34 |
+
showButtons: !0,
|
35 |
+
showCount: !0,
|
36 |
+
style: "fbx-rounded",
|
37 |
+
theme: "fbx-light",
|
38 |
+
transitionInSpeed: 200,
|
39 |
+
transitionOutSpeed: 200,
|
40 |
+
initCallback: null,
|
41 |
+
loop: !0
|
42 |
+
},
|
43 |
+
version: "2.0.10",
|
44 |
+
instances: [],
|
45 |
+
ready: function (b) {
|
46 |
+
(Function("/*@cc_on return true@*/")() ? "complete" === document.readyState : "loading" !== document.readyState) ? b(a) : setTimeout(function () {
|
47 |
+
FooBox.ready(b)
|
48 |
+
}, 1)
|
49 |
+
}
|
50 |
+
}, FooBox.$ = a, FooBox.format = function (a, b, c) {
|
51 |
+
var d, e, f = arguments[0];
|
52 |
+
for (d = 0; d < arguments.length - 1; d++)
|
53 |
+
e = new RegExp("\\{" + d + "\\}", "gm"), f = f.replace(e, arguments[d + 1]);
|
54 |
+
return f
|
55 |
+
}, FooBox.browser = {
|
56 |
+
isIE: !1,
|
57 |
+
isChrome: !1,
|
58 |
+
isSafari: !1,
|
59 |
+
isLtSafari10: !1,
|
60 |
+
version: 0,
|
61 |
+
css: "",
|
62 |
+
iOS: !1,
|
63 |
+
Mac: !1,
|
64 |
+
isMobile: function (a) {
|
65 |
+
return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))
|
66 |
+
}(navigator.userAgent || navigator.vendor || b.opera),
|
67 |
+
check: function () {
|
68 |
+
var a = navigator.appVersion.toLowerCase(),
|
69 |
c = navigator.userAgent.toLowerCase(),
|
70 |
d = navigator.platform;
|
71 |
+
FooBox.browser.iOS = /(iPad|iPhone|iPod)/g.test(d), 1 == FooBox.browser.iOS && (FooBox.browser.css += " fbx-ios"), FooBox.browser.Mac = /(Mac)/g.test(d), 1 == FooBox.browser.Mac && (FooBox.browser.css += " fbx-mac"), FooBox.browser.isChrome = a.indexOf("chrome") > -1 || a.indexOf("crios") > -1, FooBox.browser.isChrome && (FooBox.browser.css += " fbx-chrome"), FooBox.browser.isSafari = a.indexOf("safari") > -1 && !FooBox.browser.isChrome, FooBox.browser.isSafari && (FooBox.browser.css += " fbx-safari", FooBox.browser.isLtSafari10 = /constructor/i.test(b.HTMLElement)), FooBox.browser.isFirefox = c.indexOf("firefox") > -1, FooBox.browser.isFirefox && (FooBox.browser.css += " fbx-firefox");
|
72 |
+
var e = c.indexOf("msie "),
|
73 |
f = c.indexOf("trident/"),
|
74 |
g = c.indexOf("edge/");
|
75 |
+
if (FooBox.browser.isIE = e > -1 || f > -1 || g > -1, FooBox.browser.isIE) {
|
76 |
+
if (e > -1)
|
77 |
+
FooBox.browser.version = parseInt(c.substring(e + 5, c.indexOf(".", e)), 10);
|
78 |
+
else if (f > -1) {
|
79 |
+
var h = c.indexOf("rv:");
|
80 |
+
FooBox.browser.version = parseInt(c.substring(h + 3, c.indexOf(".", h)), 10)
|
81 |
+
} else
|
82 |
+
g > -1 && (FooBox.browser.version = parseInt(c.substring(g + 5, c.indexOf(".", g)), 10));
|
83 |
+
FooBox.browser.css = FooBox.format("fbx-ie fbx-ie{0}", FooBox.browser.version)
|
84 |
+
}
|
85 |
+
},
|
86 |
+
supportsTransitions: function () {
|
87 |
+
var a, b = document.body || document.documentElement,
|
88 |
c = b.style,
|
89 |
d = "transition";
|
90 |
+
if ("string" == typeof c[d])
|
91 |
+
return !0;
|
92 |
+
a = ["Moz", "Webkit", "Khtml", "O", "ms"], d = d.charAt(0).toUpperCase() + d.substr(1);
|
93 |
+
for (var e = 0; e < a.length; e++)
|
94 |
+
if ("string" == typeof c[a[e] + d])
|
95 |
+
return !0;
|
96 |
+
return !1
|
97 |
+
},
|
98 |
+
transitionEnd: function () {
|
99 |
+
var a, b = document.createElement("fakeelement"),
|
100 |
c = {
|
101 |
+
transition: "transitionend",
|
102 |
+
OTransition: "oTransitionEnd",
|
103 |
+
MozTransition: "transitionend",
|
104 |
+
WebkitTransition: "webkitTransitionEnd"
|
105 |
};
|
106 |
+
for (a in c)
|
107 |
+
if (c.hasOwnProperty(a) && b.style[a] !== undefined)
|
108 |
+
return c[a];
|
109 |
+
return null
|
110 |
+
}
|
111 |
+
}, FooBox.browser.check(), FooBox.qualifiedURL = function (a) {
|
112 |
+
var b = document.createElement("a");
|
113 |
+
return b.href = a, b.href
|
114 |
+
}, c || (c = {}), c.log = c.log || function () {}, c.warn = c.warn || function () {}, c.error = c.error || function () {}, c.info = c.info || function () {};
|
115 |
+
var d = {
|
116 |
+
write: function () {
|
117 |
+
c.log(FooBox.format.apply(d, arguments))
|
118 |
+
},
|
119 |
+
error: function () {
|
120 |
+
1 === arguments.length && arguments[0] instanceof Error ? c.error(arguments[0]) : c.error(FooBox.format.apply(d, arguments))
|
121 |
+
}
|
122 |
+
};
|
123 |
+
jQuery.Event.prototype.fb = {
|
124 |
+
instance: null,
|
125 |
+
modal: null,
|
126 |
+
options: null
|
127 |
+
}, FooBox.raise = function (b, c, d) {
|
128 |
+
d = d || {};
|
129 |
+
var e = a.Event(c);
|
130 |
+
return e.fb = {}, e.fb.instance = b, e.fb.modal = b.modal.element, e.fb.options = b.options, a.extend(!0, e.fb, d), b.element.one(c, function (a) {
|
131 |
+
a.stopPropagation()
|
132 |
+
}).trigger(e), e
|
133 |
+
}, FooBox.isjQuery = function (a) {
|
134 |
+
return a instanceof jQuery ? !0 : a && a.jquery
|
135 |
+
}, FooBox.options = {
|
136 |
+
isMultipart: function (a, b) {
|
137 |
+
return "string" == typeof a && a.length > 0 && -1 !== a.indexOf(b)
|
138 |
+
},
|
139 |
+
hasProperties: function (a) {
|
140 |
+
if ("object" != typeof a)
|
141 |
+
return !1;
|
142 |
+
var b;
|
143 |
+
for (b in a)
|
144 |
+
if (a.hasOwnProperty(b))
|
145 |
+
return !0;
|
146 |
+
return !1
|
147 |
+
},
|
148 |
+
get: function (a, b) {
|
149 |
+
if (FooBox.options.isMultipart(b, ".")) {
|
150 |
+
var c = b.substring(0, b.indexOf(".")),
|
151 |
+
d = b.substring(b.indexOf(".") + 1);
|
152 |
+
return a[c] = a[c] || {}, FooBox.options.get(a[c], d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
}
|
154 |
+
return a[b]
|
155 |
+
},
|
156 |
+
set: function (a, b, c) {
|
157 |
+
if (FooBox.options.isMultipart(b, ".")) {
|
158 |
+
var d = b.substring(0, b.indexOf(".")),
|
159 |
+
e = b.substring(b.indexOf(".") + 1);
|
160 |
+
a[d] = a[d] || {}, FooBox.options.set(a[d], e, c)
|
161 |
+
} else
|
162 |
+
a[b] = c
|
163 |
+
},
|
164 |
+
merge: function (a, b, c) {
|
165 |
+
var d, e = Array.prototype.slice.call(arguments);
|
166 |
+
for (a = e.shift(), b = e.shift(), FooBox.options._merge(a, b), d = 0; d < e.length; d++)
|
167 |
+
c = e[d], FooBox.options._merge(a, c);
|
168 |
+
return a
|
169 |
+
},
|
170 |
+
_merge: function (b, c) {
|
171 |
+
var d;
|
172 |
+
for (d in c)
|
173 |
+
c.hasOwnProperty(d) && (FooBox.options.hasProperties(c[d]) && !a.isArray(c[d]) ? (b[d] = b[d] || {}, FooBox.options._merge(b[d], c[d])) : a.isArray(c[d]) ? (b[d] = [], a.extend(!0, b[d], c[d])) : b[d] = c[d])
|
174 |
+
}
|
175 |
+
}, FooBox.objects = {
|
176 |
+
registered: {},
|
177 |
+
ensure: function (a) {
|
178 |
+
return FooBox.objects.registered[a] = FooBox.objects.registered[a] || []
|
179 |
+
},
|
180 |
+
register: function (b, c, d) {
|
181 |
+
var e = FooBox.objects.ensure(b);
|
182 |
+
return e.push(c), "object" == typeof d && a.extend(!0, FooBox.defaults, d), !0
|
183 |
+
},
|
184 |
+
load: function (a, b) {
|
185 |
+
var c, e, f = [],
|
186 |
g = FooBox.objects.ensure(a);
|
187 |
+
for (e = 0; e < g.length; e++)
|
188 |
+
try {
|
189 |
+
c = g[e], f.push(new c(b))
|
190 |
+
} catch (h) {
|
191 |
+
d.error(h)
|
192 |
+
}
|
193 |
+
b.objects = b.objects || {}, b.objects[a] = f
|
194 |
+
},
|
195 |
+
call: function (b, c, e, f, g) {
|
196 |
+
var h, i = Array.prototype.slice.call(arguments);
|
197 |
+
b = i.shift(), c = i.shift(), e = i.shift();
|
198 |
+
for (var j = c.objects[b] || [], k = 0; k < j.length; k++)
|
199 |
+
try {
|
200 |
+
if (h = j[k], !a.isFunction(h[e]))
|
201 |
+
continue;
|
202 |
+
h[e].apply(h, i)
|
203 |
+
} catch (l) {
|
204 |
+
d.error(l)
|
205 |
+
}
|
206 |
+
},
|
207 |
+
get: function (b, c, d) {
|
208 |
+
var e, f = c.objects[b];
|
209 |
+
if (!f || !a.isFunction(d))
|
210 |
+
return null;
|
211 |
+
for (e = 0; e < f.length; e++)
|
212 |
+
if (d(f[e]))
|
213 |
+
return f[e];
|
214 |
+
return null
|
215 |
+
}
|
216 |
+
}, FooBox.addons = {
|
217 |
+
_ns: "addons",
|
218 |
+
validate: function (b) {
|
219 |
+
return a.isFunction(b) ? !0 : (d.error('Expected type "function", received type "{0}".', typeof b), !1)
|
220 |
+
},
|
221 |
+
register: function (a, b) {
|
222 |
+
return FooBox.addons.validate(a) ? FooBox.objects.register(FooBox.addons._ns, a, b) : (d.error("Failed to register the addon."), !1)
|
223 |
+
},
|
224 |
+
load: function (a) {
|
225 |
+
FooBox.objects.load(FooBox.addons._ns, a)
|
226 |
+
},
|
227 |
+
call: function (a, b, c, d) {
|
228 |
+
var e = Array.prototype.slice.call(arguments);
|
229 |
+
e.unshift(FooBox.addons._ns), FooBox.objects.call.apply(this, e)
|
230 |
+
}
|
231 |
+
}, FooBox.handlers = {
|
232 |
+
_ns: "handlers",
|
233 |
+
validate: function (b) {
|
234 |
+
if (!a.isFunction(b))
|
235 |
+
return d.error('Expected type "function", received type "{0}".', typeof b), !1;
|
236 |
+
var c = new b;
|
237 |
+
return a.isFunction(c.handles) ? a.isFunction(c.defaults) ? a.isFunction(c.parse) ? a.isFunction(c.load) ? a.isFunction(c.getSize) ? a.isFunction(c.hasChanged) ? a.isFunction(c.preload) ? !0 : (d.error('The required "preload" method is not implemented.'), !1) : (d.error('The required "hasChanged" method is not implemented.'), !1) : (d.error('The required "getSize" method is not implemented.'), !1) : (d.error('The required "load" method is not implemented.'), !1) : (d.error('The required "parse" method is not implemented.'), !1) : (d.error('The required "defaults" method is not implemented.'), !1) : (d.error('The required "handles" method is not implemented.'), !1)
|
238 |
+
},
|
239 |
+
register: function (a, b) {
|
240 |
+
return FooBox.handlers.validate(a) ? FooBox.objects.register(FooBox.handlers._ns, a, b) : (d.error("Failed to register the handler."), !1)
|
241 |
+
},
|
242 |
+
load: function (a) {
|
243 |
+
FooBox.objects.load(FooBox.handlers._ns, a)
|
244 |
+
},
|
245 |
+
call: function (a, b, c, d) {
|
246 |
+
var e = Array.prototype.slice.call(arguments);
|
247 |
+
e.unshift(FooBox.handlers._ns), FooBox.objects.call.apply(this, e)
|
248 |
+
},
|
249 |
+
get: function (a, b) {
|
250 |
+
return FooBox.objects.get(FooBox.handlers._ns, a, function (a) {
|
251 |
+
return a.type == b
|
252 |
+
})
|
253 |
+
}
|
254 |
+
}, FooBox.Item = function (b, c, d) {
|
255 |
+
return this.type = b, this.element = FooBox.isjQuery(c) ? c : a(c), this.handler = d, this.width = null, this.height = null, this.url = null, this.overflow = !1, this.preloaded = !1, this.proportion = !1, this.error = !1, this
|
256 |
+
}, FooBox.Size = function (a, b) {
|
257 |
+
return this.width = "number" == typeof a ? a : parseInt(a, 0), this.height = "number" == typeof b ? b : parseInt(b, 0), this.equalTo = function (a) {
|
258 |
+
return this.width == a.width && this.height == a.height
|
259 |
+
}, this
|
260 |
+
}, FooBox.Size.check = function (a) {
|
261 |
+
return "number" == typeof a ? a : isNaN(parseInt(a)) ? null : parseInt(a)
|
262 |
+
}, FooBox.Timer = function () {
|
263 |
+
this.id = null, this.busy = !1;
|
264 |
+
var a = this;
|
265 |
+
return this.start = function (b, c, d) {
|
266 |
+
d = d || b, a.stop(), a.id = setTimeout(function () {
|
267 |
+
b.call(d), a.id = null, a.busy = !1
|
268 |
+
}, c), a.busy = !0
|
269 |
+
}, this.stop = function () {
|
270 |
+
null !== a.id && a.busy !== !1 && (clearTimeout(a.id), a.id = null, a.busy = !1)
|
271 |
+
}, this
|
272 |
+
}, a.fn.foobox = function (b) {
|
273 |
+
return b = b || {}, this.each(function () {
|
274 |
+
var c = a(this).data("fbx_instance");
|
275 |
+
if (c instanceof FooBox.Instance)
|
276 |
+
if (1 == c.options.alwaysInit) {
|
277 |
+
var d = c.options;
|
278 |
+
c.destroy(), c = new FooBox.Instance(c.id), c.init(this, a.extend(!0, d, b))
|
279 |
+
} else
|
280 |
+
c.reinit(b);
|
281 |
+
else {
|
282 |
+
if (c = a(this).data("fbx_p_instance"), c instanceof FooBox.Instance)
|
283 |
+
return;
|
284 |
+
c = new FooBox.Instance, c.init(this, b)
|
285 |
}
|
286 |
+
})
|
287 |
+
}, FooBox.Modal = function (b) {
|
288 |
+
this.FooBox = b, this.element = null, this.loaderTimeout = new FooBox.Timer, this._first = !1, this._busy = !1, this._closed = !1;
|
289 |
+
var c = this;
|
290 |
+
return this.init = function (a, b) {
|
291 |
+
c.setup.html(), c.setup.options(b), c.setup.bind()
|
292 |
+
}, this.reinit = function (a) {
|
293 |
+
c.setup.options(a)
|
294 |
+
}, this.destroy = function () {
|
295 |
+
FooBox.isjQuery(c.element) && c.element.remove()
|
296 |
+
}, this.setup = {
|
297 |
+
html: function () {
|
298 |
+
if (!FooBox.isjQuery(c.element)) {
|
299 |
+
c.element = a('<div class="fbx-modal"></div>'), c.element.append('<div class="fbx-inner-spacer"></div>');
|
300 |
+
var b = a('<div class="fbx-stage"></div>');
|
301 |
+
b.append('<div class="fbx-item-current"></div>'), b.append('<div class="fbx-item-next"></div>');
|
302 |
+
var d = a('<div class="fbx-inner fbx-inner-shadow"></div>');
|
303 |
+
d.append(b), d.append('<a class="fbx-prev fbx-btn-transition fbx-btn-shadow"></a>'), d.append('<div class="fbx-credit"><a target="_blank" href=""><em></em><span> FooBox</span></a></div>'), d.append('<span class="fbx-count" />'), d.append('<a class="fbx-next fbx-btn-transition fbx-btn-shadow"></a>'), d.append('<a class="fbx-close fbx-btn-transition fbx-btn-shadow"></a>'), c.element.append('<div class="fbx-loader"><div></div></div>'), c.element.append(d), c.FooBox.raise("foobox.setupHtml"), a("body").append(c.element)
|
304 |
+
}
|
305 |
},
|
306 |
+
options: function (a) {
|
307 |
+
var b;
|
308 |
+
c.element.removeClass().addClass("fbx-modal").addClass(FooBox.format("fbx-{0}", c.FooBox.id)).addClass(c.FooBox.element.data("style") || a.style).addClass(c.FooBox.element.data("theme") || a.theme).addClass(c.FooBox.element.data("modal-class")).addClass(a.modalClass).data("fbx_instance", c.FooBox), c.element.addClass(FooBox.browser.css), b = a.affiliate.enabled ? "" : "none", c.element.find(".fbx-credit").css("display", b), a.affiliate.enabled && (c.element.find(".fbx-credit > a").attr("href", a.affiliate.url), c.element.find(".fbx-credit > a > em").text(a.affiliate.prefix)), b = a.showCount && c.FooBox.items.multiple() ? "" : "none", c.element.find(".fbx-count").css("display", b), a.showButtons && c.FooBox.items.multiple() || c.element.addClass("fbx-no-buttons"), c.FooBox.raise("foobox.setupOptions")
|
309 |
},
|
310 |
+
bind: function () {
|
311 |
+
1 == c.FooBox.options.closeOnOverlayClick && c.element.unbind("click.foobox").bind("click.foobox", function (b) {
|
312 |
+
1 == c.FooBox.options.closeOnOverlayClick && a(b.target).is(".fbx-modal") && c.close()
|
313 |
+
}), c.element.find(".fbx-close").unbind("click.foobox").bind("click.foobox", function (a) {
|
314 |
+
a.preventDefault(), a.stopPropagation(), c.close()
|
315 |
+
}).end().find(".fbx-prev").unbind("click.foobox").bind("click.foobox", function (b) {
|
316 |
+
b.preventDefault(), b.stopPropagation(), a(this).hasClass("fbx-disabled") || c.prev()
|
317 |
+
}).end().find(".fbx-next").unbind("click.foobox").bind("click.foobox", function (b) {
|
318 |
+
b.preventDefault(), b.stopPropagation(), a(this).hasClass("fbx-disabled") || c.next()
|
319 |
+
})
|
320 |
}
|
321 |
+
}, this.prioritize = function () {
|
322 |
+
FooBox.instances.length > 1 && c.element.nextAll(".fbx-modal:last").after(c.element)
|
323 |
+
}, this.preload = function () {
|
324 |
+
if (1 == c.FooBox.options.preload) {
|
325 |
+
var a = c.FooBox.items.prev();
|
326 |
+
a && a.handler.preload(a);
|
327 |
+
var b = c.FooBox.items.next();
|
328 |
+
b && b.handler.preload(b)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
}
|
330 |
+
}, this.show = function (b) {
|
331 |
+
function e(a) {
|
332 |
+
if (c.loaderTimeout.stop(), c.element.removeClass("fbx-loading"), c._busy = !1, d.error(a), !c.FooBox.raise("foobox.onError", {
|
333 |
+
error: a
|
334 |
+
}).isDefaultPrevented()) {
|
335 |
+
var e = c.FooBox.items.error(f.index);
|
336 |
+
null != e && c.show(b)
|
337 |
+
}
|
338 |
+
}
|
339 |
+
b = b || !1, c._first = b, c._busy = !0, c._closed = !1, a("body").addClass("fbx-active"), c.FooBox.options.hideScrollbars && a("html").addClass("fbx-no-scroll");
|
340 |
+
var f = c.FooBox.items.current();
|
341 |
+
1 == f.error ? c.element.addClass("fbx-error") : c.element.removeClass("fbx-error"), c.element.hasClass("fbx-show") || (c.prioritize(), c.element.addClass("fbx-loading").find(".fbx-inner").css({
|
342 |
+
width: "100px",
|
343 |
+
height: "100px",
|
344 |
+
"margin-top": "-50px",
|
345 |
+
"margin-left": "-50px"
|
346 |
+
}));
|
347 |
+
var g = c.element.find(".fbx-item-current"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
h = c.element.find(".fbx-item-next");
|
349 |
+
if (h.hide().css("opacity", "0"), c.element.find(".fbx-count").text(c.FooBox.options.countMessage.replace("%index", "" + (c.FooBox.items.indexes.current + 1)).replace("%total", "" + c.FooBox.items.array.length)), c.FooBox.raise("foobox.beforeLoad", {
|
350 |
+
item: f
|
351 |
+
}).isDefaultPrevented())
|
352 |
+
return void(c._busy = !1);
|
353 |
+
if (f.handler.hasChanged(f)) {
|
354 |
+
var i = f.index,
|
355 |
+
j = f.element.get(0);
|
356 |
+
f = f.handler.parse(f.element);
|
357 |
+
var k = c.FooBox.raise("foobox.parseItem", {
|
358 |
+
element: f.element,
|
359 |
+
item: f
|
360 |
+
});
|
361 |
+
j.index = k.fb.item.index = i, c.FooBox.items.array[i] = k.fb.item
|
362 |
+
}
|
363 |
+
c.preload(), c.loaderTimeout.start(function () {
|
364 |
+
c.element.addClass("fbx-loading")
|
365 |
+
}, c.FooBox.options.loaderTimeout), setTimeout(function () {
|
366 |
+
c.checkForLoop(f), f.handler.load(f, h, function (a) {
|
367 |
+
return 1 == c._closed ? void(c._busy = !1) : void c.transitionOut(g, function () {
|
368 |
+
return 1 == c._closed ? void(c._busy = !1) : void c.resize(a, h, function () {
|
369 |
+
return 1 == c._closed ? void(c._busy = !1) : (c.loaderTimeout.stop(), h.show(), void c.transitionIn(h, function () {
|
370 |
+
return 1 == c._closed ? void(c._busy = !1) : (h.add(g).toggleClass("fbx-item-next fbx-item-current"), g.empty(), void(c.element.hasClass("fbx-show") ? (c.element.removeClass("fbx-loading"), c.FooBox.raise("foobox.afterLoad", {
|
371 |
+
item: f
|
372 |
+
}), c._busy = !1) : c.FooBox.raise("foobox.beforeShow", {
|
373 |
+
item : f
|
374 |
+
}).isDefaultPrevented() || (c.element.removeClass("fbx-loading").addClass("fbx-show"), c.FooBox.raise("foobox.afterShow", {
|
375 |
+
item: f
|
376 |
+
}), c.FooBox.raise("foobox.afterLoad", {
|
377 |
+
item: f
|
378 |
+
}), c._busy = !1)))
|
379 |
+
}, e))
|
380 |
+
}, e)
|
381 |
+
}, e)
|
382 |
+
}, e)
|
383 |
+
}, c.FooBox.options.loadDelay)
|
384 |
+
}, this.checkForLoop = function (a) {
|
385 |
+
1 != c.FooBox.options.loop && (c.element.find(".fbx-prev, .fbx-next").removeClass("fbx-disabled"), c.FooBox.items.is.first(a) && c.element.find(".fbx-prev").addClass("fbx-disabled"), c.FooBox.items.is.last(a) && c.element.find(".fbx-next").addClass("fbx-disabled"))
|
386 |
+
}, this.resize = function (b, d, e, f) {
|
387 |
+
try {
|
388 |
+
if (0 === b.width || 0 === b.height)
|
389 |
+
return void(a.isFunction(f) && f(FooBox.format("Invalid size supplied. Width = {0}, Height = {1}", b.width, b.height)));
|
390 |
+
var g = c.FooBox.items.current(),
|
391 |
+
h = new FooBox.Size(b.width, b.height),
|
392 |
+
i = c.element.find(".fbx-inner"),
|
393 |
+
j = c.element.find(".fbx-inner-spacer"),
|
394 |
+
k = parseInt(j.css("padding-top"), 0),
|
395 |
+
l = parseInt(j.css("padding-bottom"), 0),
|
396 |
+
m = parseInt(j.css("padding-left"), 0),
|
397 |
+
n = parseInt(j.css("padding-right"), 0),
|
398 |
+
o = parseInt(i.css("border-top-width"), 0),
|
399 |
+
p = parseInt(i.css("border-bottom-width"), 0),
|
400 |
+
q = parseInt(i.css("border-left-width"), 0),
|
401 |
+
r = parseInt(i.css("border-right-width"), 0),
|
402 |
+
s = parseInt(i.css("padding-left"), 0),
|
403 |
+
t = k + l + 2 * s + o + p,
|
404 |
+
u = m + n + 2 * s + q + r,
|
405 |
+
v = new FooBox.Size(parseInt(i.css("width"), 0), parseInt(i.css("height"), 0)),
|
406 |
+
w = new FooBox.Size(c.element.width() - u, c.element.height() - t),
|
407 |
+
x = w.width / b.width;
|
408 |
+
b.height * x > w.height && (x = w.height / b.height), c.FooBox.options.fitToScreen === !0 || 1 == g.proportion && (b.height > w.height || b.width > w.width) ? (b.height = Math.floor(b.height * x), b.width = Math.floor(b.width * x)) : 0 == g.proportion && (b.height > w.height && (b.height = w.height), b.width > w.width && (b.width = w.width)), b.height < 100 && (b.height = 100), b.width < 100 && (b.width = 100);
|
409 |
+
var y = -(b.height / 2 + s + (l - k / 2) / 2) + (q + r) / 2,
|
410 |
+
z = -(b.width / 2 + s + (q + r) / 2);
|
411 |
+
if (v.equalTo(b))
|
412 |
+
i.css({
|
413 |
+
height: b.height,
|
414 |
+
width: b.width,
|
415 |
+
"margin-top": y,
|
416 |
+
"margin-left": z
|
417 |
+
}), c.overflow(g, h, b, d), c.FooBox.raise("foobox.afterResize", {
|
418 |
+
item: g,
|
419 |
+
size: b
|
420 |
+
}), a.isFunction(e) && e();
|
421 |
+
else if (!c.FooBox.raise("foobox.beforeResize", {
|
422 |
+
item: g,
|
423 |
+
size: b,
|
424 |
+
offset: {
|
425 |
+
top: y,
|
426 |
+
left: z
|
427 |
+
},
|
428 |
+
error: f,
|
429 |
+
success: e
|
430 |
+
}).isDefaultPrevented())
|
431 |
+
if (y = -(b.height / 2 + s + (l - k / 2) / 2) + (q + r) / 2, z = -(b.width / 2 + s + (q + r) / 2), c.element.hasClass("fbx-show"))
|
432 |
+
if (FooBox.browser.supportsTransitions()) {
|
433 |
+
var A = c.FooBox.options.resizeSpeed / 1e3,
|
434 |
+
B = "all " + A + "s ease-in-out";
|
435 |
+
i.css({
|
436 |
+
WebkitTransition: B,
|
437 |
+
MozTransition: B,
|
438 |
+
MsTransition: B,
|
439 |
+
OTransition: B,
|
440 |
+
transition: B
|
441 |
+
}), i.css({
|
442 |
+
height: b.height,
|
443 |
+
width: b.width,
|
444 |
+
"margin-top": y,
|
445 |
+
"margin-left": z
|
446 |
+
}), setTimeout(function () {
|
447 |
+
i.css({
|
448 |
+
WebkitTransition: "",
|
449 |
+
MozTransition: "",
|
450 |
+
MsTransition: "",
|
451 |
+
OTransition: "",
|
452 |
+
transition: ""
|
453 |
+
}), c.overflow(g, h, b, d), c.FooBox.raise("foobox.afterResize", {
|
454 |
+
item: g,
|
455 |
+
size: b
|
456 |
+
}), a.isFunction(e) && e(b)
|
457 |
+
}, c.FooBox.options.resizeSpeed)
|
458 |
+
} else
|
459 |
+
i.animate({
|
460 |
+
height: b.height,
|
461 |
+
width: b.width,
|
462 |
+
"margin-top": y,
|
463 |
+
"margin-left": z
|
464 |
+
}, c.FooBox.options.resizeSpeed, function () {
|
465 |
+
c.overflow(g, h, b, d), c.FooBox.raise("foobox.afterResize", {
|
466 |
+
item: g,
|
467 |
+
size: b
|
468 |
+
}), a.isFunction(e) && e(b)
|
469 |
+
});
|
470 |
+
else
|
471 |
+
i.css({
|
472 |
height: b.height,
|
473 |
width: b.width,
|
474 |
"margin-top": y,
|
475 |
"margin-left": z
|
476 |
+
}), c.overflow(g, h, b, d), c.FooBox.raise("foobox.afterResize", {
|
477 |
item: g,
|
478 |
size: b
|
479 |
+
}), a.isFunction(e) && e()
|
480 |
+
} catch (C) {
|
481 |
+
a.isFunction(f) && f(C)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
}
|
483 |
+
}, this.overflow = function (a, b, d, e) {
|
484 |
+
var f = e.find(".fbx-item");
|
485 |
+
1 == a.overflow && (d.width < .8 * b.width || d.height < .8 * b.height) || 1 == a.overflow && 0 == a.proportion && (d.width < b.width || d.height < b.height) || 1 == a.overflow && "html" == a.type ? ("html" == a.type ? (f.css({
|
486 |
+
width: "100%",
|
487 |
+
height: "auto",
|
488 |
+
overflow: ""
|
489 |
+
}), e.css("overflow", "auto")) : (f.css({
|
490 |
+
width: b.width,
|
491 |
+
height: b.height,
|
492 |
+
overflow: ""
|
493 |
+
}), e.css({
|
494 |
+
"overflow-x": b.width <= d.width ? "hidden" : "",
|
495 |
+
"overflow-y": b.height <= d.height ? "hidden" : ""
|
496 |
+
})), c.FooBox.raise("foobox.showOverflow", {
|
497 |
+
item: a,
|
498 |
+
container: e
|
499 |
+
})) : (f.css({
|
500 |
+
width: "",
|
501 |
+
height: "",
|
502 |
+
overflow: "hidden"
|
503 |
+
}), e.css({
|
504 |
+
"overflow-x": "",
|
505 |
+
"overflow-y": "",
|
506 |
+
overflow: "hidden"
|
507 |
+
}), c.FooBox.raise("foobox.hideOverflow", {
|
508 |
+
item: a,
|
509 |
+
container: e
|
510 |
+
}))
|
511 |
+
}, this.transitionOut = function (b, d, e) {
|
512 |
try {
|
513 |
+
if (!c.element.hasClass("fbx-show"))
|
514 |
+
return void(a.isFunction(d) && d());
|
515 |
+
b.animate({
|
516 |
+
opacity: 0
|
517 |
+
}, b.is(":visible") ? c.FooBox.options.transitionOutSpeed : 0, function () {
|
518 |
+
a.isFunction(d) && d()
|
519 |
+
})
|
520 |
+
} catch (f) {
|
521 |
+
a.isFunction(e) && e(f)
|
|
|
|
|
|
|
|
|
522 |
}
|
523 |
+
}, this.transitionIn = function (b, d, e) {
|
524 |
+
try {
|
525 |
+
if (!c.element.hasClass("fbx-show"))
|
526 |
+
return b.css({
|
527 |
+
opacity: 1
|
528 |
+
}), void(a.isFunction(d) && d());
|
529 |
+
b.animate({
|
530 |
+
opacity: 1
|
531 |
+
}, c.FooBox.options.transitionInSpeed, function () {
|
532 |
+
a.isFunction(d) && d()
|
533 |
+
})
|
534 |
+
} catch (f) {
|
535 |
+
a.isFunction(e) && e(f)
|
536 |
}
|
537 |
+
}, this.close = function () {
|
538 |
+
c.FooBox.raise("foobox.beforeClose").isDefaultPrevented() || (c._closed = !0, c._busy = !1, c.element.removeClass("fbx-loading fbx-show"), a("body").removeClass("fbx-active"), c.FooBox.raise("foobox.close"), c.element.find(".fbx-item-current, .fbx-item-next").empty(), a("html").removeClass("fbx-no-scroll"), c.FooBox.raise("foobox.afterClose"))
|
539 |
+
}, this.prev = function (a) {
|
540 |
+
if (1 != c._busy) {
|
541 |
+
if (c.FooBox.items.indexes.set(c.FooBox.items.indexes.prev), "string" == typeof a)
|
542 |
+
for (var b = c.FooBox.items.current(); b.type != a; )
|
543 |
+
c.FooBox.items.indexes.set(c.FooBox.items.indexes.prev), b = c.FooBox.items.current();
|
544 |
+
c.show(!1), c.FooBox.raise("foobox.previous")
|
545 |
}
|
546 |
+
}, this.next = function (a) {
|
547 |
+
if (1 != c._busy) {
|
548 |
+
if (c.FooBox.items.indexes.set(c.FooBox.items.indexes.next), "string" == typeof a)
|
549 |
+
for (var b = c.FooBox.items.current(); b.type != a; )
|
550 |
+
c.FooBox.items.indexes.set(c.FooBox.items.indexes.next), b = c.FooBox.items.current();
|
551 |
+
c.show(!1), c.FooBox.raise("foobox.next")
|
552 |
}
|
553 |
+
}, this
|
554 |
+
}, FooBox.Instance = function (b) {
|
555 |
+
this.id = null, "number" == typeof b ? (this.id = b, FooBox.instances[b - 1] = this) : this.id = FooBox.instances.push(this), this.element = null, this.options = a.extend(!0, {}, FooBox.defaults), this.modal = new FooBox.Modal(this), this.objects = {}, FooBox.addons.load(this), FooBox.handlers.load(this);
|
556 |
+
var c = this;
|
557 |
+
return this.raise = function (a, b) {
|
558 |
+
return FooBox.raise(c, a, b)
|
559 |
+
}, this.init = function (b, d) {
|
560 |
+
c.element = FooBox.isjQuery(b) ? b : a(b), c.options = FooBox.options.merge(c.options, d || {}), FooBox.addons.call(c, "preinit", c.element, c.options), c.items.init(), c.items.array.length > 0 ? (c.element.data("fbx_instance", c), c.options.containerCssClass && c.element.addClass(c.options.containerCssClass), c.setup.bind(), c.modal.init(b, c.options), FooBox.handlers.call(c, "init", c.element, c.options), c.raise("foobox.initialized"), a.isFunction(c.options.initCallback) && c.options.initCallback.call(c)) : c.destroy()
|
561 |
+
}, this.reinit = function (a) {
|
562 |
+
c.options = FooBox.options.merge(c.options, a || {}), c.items.init(!0), c.items.array.length > 0 ? (c.setup.bind(), c.modal.reinit(c.options), FooBox.handlers.call(c, "reinit", c.options), c.raise("foobox.reinitialized")) : c.destroy()
|
563 |
+
}, this.destroy = function () {
|
564 |
+
FooBox.addons.call(c, "destroy"), FooBox.handlers.call(c, "destroy"), c.items.destroy(), c.modal.destroy(), c.element.removeClass("fbx-instance fbx-item").data({
|
565 |
+
fbx_instance: null,
|
566 |
+
fbx_p_instance: null
|
567 |
+
}), c.id == FooBox.instances.length ? FooBox.instances.splice(c.id - 1, 1) : FooBox.instances[c.id - 1] = null, c.raise("foobox.destroy")
|
568 |
+
}, this.setup = {
|
569 |
+
bind: function () {
|
570 |
+
a(c.options.externalSelector).unbind("click.fooboxExternal").bind("click.fooboxExternal", function (b) {
|
571 |
+
b.preventDefault();
|
572 |
+
var c = a(this).data("foobox"),
|
573 |
+
d = a(c),
|
574 |
+
e = d.data("fbx_instance") || d.data("fbx_p_instance");
|
575 |
+
return d.length > 0 && e instanceof FooBox.Instance && e.modal instanceof FooBox.Modal && e.modal.show(!0), !1
|
576 |
+
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
}
|
578 |
+
}, this.items = {
|
579 |
+
array: [],
|
580 |
+
indexes: {
|
581 |
+
prev: -1,
|
582 |
+
current: 0,
|
583 |
+
next: 1,
|
584 |
+
direction: "*",
|
585 |
+
set: function (a) {
|
586 |
+
var b = c.items.indexes.current;
|
587 |
+
a = a || 0, a = a > c.items.array.length - 1 ? 0 : 0 > a ? c.items.array.length - 1 : a;
|
588 |
+
var d = a - 1,
|
589 |
+
e = a + 1;
|
590 |
+
c.items.indexes.current = a, c.items.indexes.prev = 0 > d ? c.items.array.length - 1 : d, c.items.indexes.next = e > c.items.array.length - 1 ? 0 : e, c.items.indexes.direction = c.items.indexes._direction(b, a, c.items.array.length - 1)
|
591 |
+
},
|
592 |
+
_direction: function (a, b, c) {
|
593 |
+
return 0 == b && a == c ? ">" : b == c && 0 == a ? "<" : b > a ? ">" : a > b ? "<" : "*"
|
594 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
},
|
596 |
+
new_array: function (b) {
|
597 |
+
b = b || !1;
|
598 |
+
var d, e, f, g = 0;
|
599 |
+
if (1 == b) {
|
600 |
+
if (c.items.array.length > 0) {
|
601 |
+
for (var h = 0; h < c.items.array.length; h++)
|
602 |
+
d = c.items.array[h], FooBox.isjQuery(d.element) ? 0 == d.element.parents(":first").length && (c.items.array.splice(h, 1), h -= 1) : d.option || (c.items.array.splice(h, 1), h -= 1);
|
603 |
+
for (var i = 0; i < c.items.array.length; i++)
|
604 |
+
d = c.items.array[i], FooBox.isjQuery(d.element) ? (f = d.element.get(0), f.index = d.index = i) : d.index = i
|
605 |
+
}
|
606 |
+
} else
|
607 |
+
c.items.array = [];
|
608 |
+
if (a.isArray(c.options.items))
|
609 |
+
for (var j = 0; j < c.options.items.length; j++)
|
610 |
+
if (d = c.options.items[j], -1 == c.items.indexOf(d))
|
611 |
+
for (var k = 0; k < c.objects.handlers.length; k++)
|
612 |
+
if (c.objects.handlers[k].type == d.type) {
|
613 |
+
d.index = g, d.option = !0, d.handler = c.objects.handlers[k], d.handler.defaults(d), e = c.raise("foobox.parseItem", {
|
614 |
+
element: null,
|
615 |
+
item: d
|
616 |
+
}), c.items.array.push(e.fb.item), g++;
|
617 |
+
break
|
618 |
+
}
|
619 |
},
|
620 |
+
init: function (a) {
|
621 |
+
a = a || !1, c.items.new_array(a), c.element.is(c.options.selector) && !c.element.is(c.options.excludes) && c.items.add(c.element) ? c.element.unbind("click.item").bind("click.item", c.items.clicked) : c.element.find(c.options.selector).not(c.options.excludes).unbind("click.item").filter(function () {
|
622 |
+
return c.items.add(this)
|
623 |
+
}).bind("click.item", c.items.clicked), c.items.rel()
|
|
|
|
|
|
|
|
|
|
|
624 |
},
|
625 |
+
destroy: function () {
|
626 |
+
var b, d;
|
627 |
+
for (d = 0; d < c.items.array.length; d++)
|
628 |
+
b = c.items.array[d], a.isFunction(b.destroy) && b.destroy(), FooBox.isjQuery(b.element) && b.element.unbind("click.item").removeClass("fbx-link").data("fbx_p_instance", null);
|
629 |
+
c.items.array = []
|
630 |
},
|
631 |
+
rel: function () {
|
632 |
+
var b = c.options.rel || c.element.attr("rel") || (c.items.first(function (a) {
|
633 |
+
return FooBox.isjQuery(a.element) ? "string" == typeof a.element.attr("rel") : !1
|
634 |
+
}) || {
|
635 |
+
element: a()
|
636 |
+
}).element.attr("rel");
|
637 |
+
"string" == typeof b && a('[rel="' + b + '"]').not(c.options.excludes).not(c.element).unbind("click.item").filter(function () {
|
638 |
+
return c.items.add(this)
|
639 |
+
}).bind("click.item", c.items.clicked)
|
640 |
},
|
641 |
+
indexOf: function (a, b) {
|
642 |
+
if (!a)
|
643 |
+
return -1;
|
644 |
+
b = b || "url";
|
645 |
+
var d;
|
646 |
+
for (d = 0; d < c.items.array.length; d++)
|
647 |
+
if (c.items.array[d][b] == a[b])
|
648 |
+
return d;
|
649 |
+
return -1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
650 |
},
|
651 |
+
is: {
|
652 |
+
first: function (a) {
|
653 |
+
return c.items.array && 0 != c.items.array.length ? c.items.array[0].index == a.index : !1
|
654 |
+
},
|
655 |
+
last: function (a) {
|
656 |
+
return c.items.array && 0 != c.items.array.length ? c.items.array[c.items.array.length - 1].index == a.index : !1
|
657 |
+
}
|
658 |
},
|
659 |
+
add: function (b) {
|
660 |
+
b = FooBox.isjQuery(b) ? b : a(b);
|
661 |
+
var d = c.items.parse(b, c.items.array.length);
|
662 |
+
if (null === d)
|
663 |
+
return !1;
|
664 |
+
var e = b.get(0),
|
665 |
+
f = c.items.indexOf(d);
|
666 |
+
-1 != f ? (d = c.items.array[f], e.index = d.index) : e.index = d.index = c.items.array.push(d) - 1;
|
667 |
+
var g = b.addClass("fbx-link").data("fbx_p_instance");
|
668 |
+
return g instanceof FooBox.Instance || b.data("fbx_p_instance", c), !0
|
669 |
},
|
670 |
+
get: function (b) {
|
671 |
+
b = FooBox.isjQuery(b) ? b : a(b);
|
672 |
+
var d = null,
|
673 |
+
e = b.get(0).index;
|
674 |
+
return e && e > 0 && e <= c.items.array.length - 1 && (d = c.items.array[e]), d
|
675 |
},
|
676 |
+
parse: function (b, d) {
|
677 |
+
b = FooBox.isjQuery(b) ? b : a(b);
|
678 |
+
for (var e, f, g = 0; g < c.objects.handlers.length; g++)
|
679 |
+
if (c.objects.handlers[g].handles(b, c.element)) {
|
680 |
+
e = c.objects.handlers[g].parse(b), isNaN(d) || (e.index = d), f = c.raise("foobox.parseItem", {
|
681 |
+
element: b,
|
682 |
+
item: e
|
683 |
+
});
|
684 |
+
break
|
685 |
+
}
|
686 |
+
return "undefined" != typeof f && f.fb.item ? f.fb.item : null
|
687 |
},
|
688 |
+
error: function (b) {
|
689 |
+
function d(b) {
|
690 |
+
var c = this;
|
691 |
+
return c.FooBox = b, c.type = "error", c.handles = function () {
|
692 |
+
return !1
|
693 |
+
}, c.hasChanged = function () {
|
694 |
+
return !1
|
695 |
+
}, c.defaults = function () {}, c.parse = function () {}, c.load = function (b, d, e, f) {
|
696 |
+
try {
|
697 |
+
d.empty().append(b.content), a.isFunction(e) && e(c.getSize(b))
|
698 |
+
} catch (g) {
|
699 |
+
a.isFunction(f) && f(g)
|
700 |
+
}
|
701 |
+
}, c.getSize = function (a) {
|
702 |
+
return new FooBox.Size(a.width, a.height)
|
703 |
+
}, c
|
704 |
+
}
|
705 |
+
if (c.items.array.length > b && 1 == c.items.array[b].error)
|
706 |
+
return c.items.array[b];
|
707 |
+
var e, f, g = FooBox.handlers.get(c, "html"),
|
708 |
+
h = !1;
|
709 |
+
if (null == g && (g = new d(c)), null !== c.options.error.match(/^#/i) && a(c.options.error).length > 0)
|
710 |
+
e = a(c.options.error), h = !0;
|
711 |
+
else {
|
712 |
+
var i = FooBox.format('<div class="fbx-error-msg" data-width="240" data-height="240"><span></span><p>{0}</p></div>', c.options.error);
|
713 |
+
e = a(i)
|
714 |
+
}
|
715 |
+
return f = new FooBox.Item(g.type, e.get(0), g), f.selector = 1 == h ? c.options.error : null, f.index = b, f.error = !0, f.title = e.data("title") || null, f.description = e.data("description") || null, f.width = e.data("width") || 240 || null, f.height = e.data("height") || 240 || null, f.content = 1 == h ? null : e, f.fullscreen = !0, f.handler = g, c.items.array[b] = f, f
|
716 |
},
|
717 |
+
first: function (a) {
|
718 |
+
for (var b = null, d = 0; d < c.items.array.length; d++)
|
719 |
+
if (a(c.items.array[d])) {
|
720 |
+
b = c.items.array[d];
|
721 |
+
break
|
722 |
+
}
|
723 |
+
return b
|
724 |
},
|
725 |
+
current: function () {
|
726 |
+
return c.items.array[c.items.indexes.current]
|
727 |
},
|
728 |
+
prev: function () {
|
729 |
+
return c.items.array[c.items.indexes.prev]
|
730 |
},
|
731 |
+
next: function () {
|
732 |
+
return c.items.array[c.items.indexes.next]
|
|
|
|
|
|
|
|
|
733 |
},
|
734 |
+
multiple: function () {
|
735 |
+
return c.items.array.length > 1
|
736 |
},
|
737 |
+
clicked: function (a) {
|
738 |
+
return a.preventDefault(), c.items.indexes.set(this.index), c.modal.show(!0), !1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
739 |
}
|
740 |
+
}, this
|
741 |
+
}, FooBox.open = function (b) {
|
742 |
+
if (1 == FooBox.isDeepLink)
|
743 |
+
return null;
|
744 |
+
var c, d = null;
|
745 |
+
if ("object" == typeof b) {
|
746 |
+
var e = document.createElement("a");
|
747 |
+
a(e).foobox(b), d = a(e).data("fbx_instance")
|
748 |
+
} else
|
749 |
+
"number" == typeof b ? c = b : (c = parseInt(b || 0), c = isNaN(c) ? 0 : c), c = c > FooBox.instances.length - 1 ? FooBox.instances.length - 1 : 0 > c ? 0 : c, d = FooBox.instances[c];
|
750 |
+
return null != d && d.modal instanceof FooBox.Modal ? (d.modal.show(!0), d) : null
|
751 |
+
}, FooBox.close = function () {
|
752 |
+
var a, b = [],
|
753 |
+
c = null;
|
754 |
+
for (a = 0; a < FooBox.instances.length; a++)
|
755 |
+
c = FooBox.instances[a], null != c && c.modal instanceof FooBox.Modal && FooBox.isjQuery(c.modal.element) && c.modal.element.hasClass("fbx-show") && b.push(c);
|
756 |
+
for (a = 0; a < b.length; a++)
|
757 |
+
c = b[a], c.modal.close()
|
758 |
+
}, FooBox.resize = function (c, d) {
|
759 |
+
if (c || d) {
|
760 |
+
var e, f, g, h;
|
761 |
+
for (e = 0; e < FooBox.instances.length; e++)
|
762 |
+
f = FooBox.instances[e], null != f && f.modal instanceof FooBox.Modal && FooBox.isjQuery(f.modal.element) && f.modal.element.hasClass("fbx-show") && (g = f.items.current(), h = new FooBox.Size(c || g.width || 0, d || g.height || 0), g.width = h.width, g.height = h.height, f.modal.resize(h, f.modal.element.find(".fbx-item-current")))
|
763 |
+
} else
|
764 |
+
a(b).trigger("resize.foobox")
|
765 |
+
}, FooBox.lateBind = function (c, d) {
|
766 |
+
var e = a.extend(!0, {}, FooBox.defaults, d || b.FOOBOX && FOOBOX.o || {}),
|
767 |
+
f = a(c);
|
768 |
+
f.on("click.foobox", e.selector, function (a) {
|
769 |
+
a.preventDefault();
|
770 |
+
var b = f.data("fbx_instance");
|
771 |
+
b || (b = f.foobox(e).data("fbx_instance")), b instanceof FooBox.Instance && "number" == typeof this.index && (b.items.indexes.set(this.index), b.modal.show(!0))
|
772 |
+
})
|
773 |
+
}
|
774 |
+
}
|
775 |
+
}(jQuery, window, window.console),
|
776 |
+
function (a, b) {
|
777 |
+
var c = {
|
778 |
+
images: {
|
779 |
+
noRightClick: !1,
|
780 |
+
attr: "href",
|
781 |
+
overflow: !1,
|
782 |
+
fullscreen: !0,
|
783 |
+
showCaptions: !0,
|
784 |
+
regex: /https?:\/\/.*?\/.*?\.(jpg|jpeg|png|gif|bmp)/i,
|
785 |
+
maxWidth: -1,
|
786 |
+
maxHeight: -1,
|
787 |
+
findUrl: function (a, c) {
|
788 |
+
if (!c)
|
789 |
+
return "";
|
790 |
+
if (c.data("image"))
|
791 |
+
return c.data("image");
|
792 |
+
var d = c.attr(a.options.images.attr);
|
793 |
+
return "string" == typeof d ? b.qualifiedURL(c.attr(a.options.images.attr)) : ""
|
794 |
+
}
|
795 |
+
}
|
796 |
+
};
|
797 |
+
b.Item.prototype.image = null, b.Item.prototype.maxWidth = null, b.Item.prototype.maxHeight = null, b.ImageHandler = function (c) {
|
798 |
+
this.FooBox = c, this.type = "image";
|
799 |
+
var d = this;
|
800 |
+
this.handles = function (a) {
|
801 |
+
var b = d.FooBox.options.images.findUrl(d.FooBox, a),
|
802 |
+
c = "string" == typeof b && null != b.match(d.FooBox.options.images.regex),
|
803 |
+
e = d.FooBox.raise("foobox.handlesImage", {
|
804 |
+
element: a,
|
805 |
+
handle: c
|
806 |
+
});
|
807 |
+
return e.fb.handle
|
808 |
+
}, this.defaults = function (a) {
|
809 |
+
a.fullscreen = a.fullscreen || d.FooBox.options.images.fullscreen, a.captions = a.captions || d.FooBox.options.images.showCaptions, a.social = a.social || !0, a.overflow = a.overflow || d.FooBox.options.images.overflow, a.proportion = a.proportion || !0, a.maxWidth = a.maxWidth || d.FooBox.options.images.maxWidth, a.maxHeight = a.maxHeight || d.FooBox.options.images.maxHeight
|
810 |
+
}, this.parse = function (a) {
|
811 |
+
var c = new b.Item(d.type, a, this);
|
812 |
+
return d.defaults(c), c.url = d.FooBox.options.images.findUrl(d.FooBox, a) || null, c.width = b.Size.check(a.data("width") || c.width || null), c.height = b.Size.check(a.data("height") || c.height || null), c.fullscreen = "boolean" == typeof a.data("fullscreen") ? a.data("fullscreen") : c.fullscreen, c.overflow = "boolean" == typeof a.data("overflow") ? a.data("overflow") : c.overflow, c.proportion = "boolean" == typeof a.data("proportion") ? a.data("proportion") : c.proportion, c.maxWidth = "number" == typeof a.data("maxWidth") ? a.data("maxWidth") : c.maxWidth, c.maxHeight = "number" == typeof a.data("maxHeight") ? a.data("maxHeight") : c.maxHeight, c.image = null, c.image_url = c.url, c
|
813 |
+
}, this.load = function (b, c, e, f) {
|
814 |
+
try {
|
815 |
+
var g = function () {
|
816 |
+
var f = a(b.image).addClass("fbx-item fbx-item-image");
|
817 |
+
d.FooBox.options.images.noRightClick && f.bind("contextmenu", function (a) {
|
818 |
+
return a.preventDefault(), !1
|
819 |
+
}), c.empty().append(f), a.isFunction(e) && e(d.getSize(b))
|
820 |
+
};
|
821 |
+
b.image && null !== b.image ? g() : (b.image = new Image, b.image.onload = function () {
|
822 |
+
b.image.onload = b.image.onerror = null, b.height = b.image.height, b.width = b.image.width, g()
|
823 |
+
}, b.image.onerror = function () {
|
824 |
+
b.image.onload = b.image.onerror = null, b.image = null, a.isFunction(f) && f("An error occurred attempting to load the image.")
|
825 |
+
}, b.image.src = b.url)
|
826 |
+
} catch (h) {
|
827 |
+
a.isFunction(f) && f(h)
|
828 |
+
}
|
829 |
+
}, this.preload = function (a) {
|
830 |
+
if (1 != a.preloaded) {
|
831 |
+
var b = new Image;
|
832 |
+
b.src = a.url, a.preloaded = !0
|
833 |
+
}
|
834 |
+
}, this.getSize = function (a) {
|
835 |
+
if (null != a.width && null != a.height) {
|
836 |
+
if (a.maxWidth > 0 && a.maxHeight > 0 && (a.width > a.maxWidth || a.height > a.maxHeight)) {
|
837 |
+
var c = a.width > a.height ? a.maxWidth / a.width : a.maxHeight / a.height;
|
838 |
+
a.width *= c, a.height *= c
|
|
|
|
|
839 |
}
|
840 |
+
return new b.Size(a.width, a.height)
|
841 |
+
}
|
842 |
+
return new b.Size(0, 0)
|
843 |
+
}, this.hasChanged = function (a) {
|
844 |
+
if (b.isjQuery(a.element)) {
|
845 |
+
var c = d.FooBox.options.images.findUrl(d.FooBox, a.element);
|
846 |
+
return a.url != c
|
847 |
+
}
|
848 |
+
return !1
|
849 |
+
}
|
850 |
+
}, b.handlers.register(b.ImageHandler, c)
|
851 |
+
}(jQuery, window.FooBox),
|
852 |
+
function (a, b) {
|
853 |
+
var c = {
|
854 |
+
keyboard: {
|
855 |
+
enabled: !0,
|
856 |
+
preventDefault: !1,
|
857 |
+
stopPropagation: !1
|
858 |
+
}
|
859 |
+
};
|
860 |
+
b.Keyboard = function (a) {
|
861 |
+
this.FooBox = a;
|
862 |
+
var c = this;
|
863 |
+
this.preinit = function (a) {
|
864 |
+
c.handlers.unbind(!0),
|
865 |
+
a.bind({
|
866 |
+
"foobox.initialized foobox.reinitialized": c.handlers.initialized,
|
867 |
+
"foobox.setupHtml": c.handlers.setupHtml
|
868 |
+
})
|
869 |
+
}, this.destroy = function () {
|
870 |
+
c.handlers.unbind(!0)
|
871 |
+
}, this.handlers = {
|
872 |
+
unbind: function (a) {
|
873 |
+
a = a || !1, a && c.FooBox.element.unbind({
|
874 |
+
"foobox.initialized foobox.reinitialized": c.handlers.initialized,
|
875 |
+
"foobox.setupHtml": c.handlers.setupHtml
|
876 |
+
}), c.FooBox.element.unbind("foobox.afterLoad", c.handlers.afterLoad), b.isjQuery(c.FooBox.modal.element) && c.FooBox.modal.element.unbind("keydown.foobox", c.handlers.onKeydown)
|
877 |
+
},
|
878 |
+
initialized: function () {
|
879 |
+
c.handlers.unbind(), 1 == c.FooBox.options.keyboard.enabled && (c.FooBox.element.bind("foobox.afterLoad", c.handlers.afterLoad), b.isjQuery(c.FooBox.modal.element) && c.FooBox.modal.element.bind("keydown.foobox", c.handlers.onKeydown))
|
880 |
+
},
|
881 |
+
setupHtml: function (a) {
|
882 |
+
a.fb.modal.attr("tabindex", 0)
|
883 |
+
},
|
884 |
+
afterLoad: function (a) {
|
885 |
+
a.fb.modal.focus()
|
886 |
+
},
|
887 |
+
onKeydown: function (a) {
|
888 |
+
var b = c.FooBox.modal,
|
889 |
+
d = c.FooBox.options.keyboard;
|
890 |
+
b.element.hasClass("fbx-show") && (b.element.hasClass("fbx-fullscreen-mode") || 27 !== a.which ? c.FooBox.items.multiple() && 37 === a.which ? b.prev() : c.FooBox.items.multiple() && 39 === a.which && b.next() : b.close(), 1 == d.preventDefault && a.preventDefault(), 1 == d.stopPropagation && a.stopPropagation(), c.FooBox.raise("foobox.keydown", {
|
891 |
+
keyCode: a.which
|
892 |
+
}))
|
893 |
+
}
|
894 |
+
}
|
895 |
+
}, b.addons.register(b.Keyboard, c)
|
896 |
+
}(jQuery, window.FooBox),
|
897 |
+
function (a, b) {
|
898 |
+
var c = {
|
899 |
+
hideNavOnMobile: !1,
|
900 |
+
resizeTimeout: 300,
|
901 |
+
breakpoints: {
|
902 |
+
phone: 640,
|
903 |
+
tablet: 1024
|
904 |
+
},
|
905 |
+
iosInterval: 200
|
906 |
+
};
|
907 |
+
b.BPInfo = function (c) {
|
908 |
+
var d = "undefined" != typeof window.devicePixelRatio && b.browser.isMobile ? window.devicePixelRatio : 1;
|
909 |
+
this.width = (window.innerWidth || document.documentElement.clientWidth || (document.body ? document.body.offsetWidth : 0)) / d, this.height = (window.innerHeight || document.documentElement.clientHeight || (document.body ? document.body.offsetHeight : 0)) / d, this.orientation = this.width > this.height ? "fbx-landscape" : "fbx-portrait";
|
910 |
+
var e, f = null;
|
911 |
+
if (a.isArray(c))
|
912 |
+
for (var g = 0; g < c.length; g++)
|
913 |
+
if (e = c[g], e && e.width && this.width <= e.width) {
|
914 |
+
f = e;
|
915 |
+
break
|
916 |
+
}
|
917 |
+
this.breakpoint = null == f ? "fbx-desktop" : f.name
|
918 |
+
}, b.Responsive = function (c) {
|
919 |
+
this.FooBox = c, this.breakpoint = {
|
920 |
+
values: [],
|
921 |
+
names: ""
|
922 |
+
}, this.timers = {
|
923 |
+
resize: new b.Timer,
|
924 |
+
ios: new b.Timer
|
925 |
+
};
|
926 |
+
var d = this,
|
927 |
+
e = null;
|
928 |
+
this.preinit = function (a) {
|
929 |
+
d.handlers.unbind(!0), a.bind("foobox.initialized foobox.reinitialized", d.handlers.initialized)
|
930 |
+
}, this.destroy = function () {
|
931 |
+
d.handlers.unbind(!0)
|
932 |
+
}, this.handlers = {
|
933 |
+
unbind: function (b) {
|
934 |
+
b = b || !1, b && d.FooBox.element.unbind("foobox.initialized foobox.reinitialized", d.handlers.initialized), a(window).unbind("resize.foobox", d.handlers.resize), d.FooBox.element.unbind({
|
935 |
+
"foobox.beforeShow": d.handlers.iosBeforeShow,
|
936 |
+
"foobox.close": d.handlers.iosClose
|
937 |
+
})
|
938 |
+
},
|
939 |
+
initialized: function () {
|
940 |
+
d.handlers.unbind(), d.setup.breakpoints(), d.style(), a(window).bind("resize.foobox", d.handlers.resize), b.browser.iOS && (b.browser.isSafari || b.browser.isChrome) && d.FooBox.element.bind({
|
941 |
+
"foobox.beforeShow": d.handlers.iosBeforeShow,
|
942 |
+
"foobox.close": d.handlers.iosClose
|
943 |
+
})
|
944 |
+
},
|
945 |
+
resize: function () {
|
946 |
+
d.timers.resize.start(function () {
|
947 |
+
d.style();
|
948 |
+
var a = d.FooBox.items.current();
|
949 |
+
if (d.FooBox.modal.element.has("fbx-show") && null != a) {
|
950 |
+
var b = a.handler.getSize(a);
|
951 |
+
d.FooBox.modal.resize(b, d.FooBox.modal.element.find(".fbx-item-current"))
|
952 |
+
}
|
953 |
+
}, d.FooBox.options.resizeTimeout)
|
954 |
+
},
|
955 |
+
iosBeforeShow: function () {
|
956 |
+
d.timers.ios.start(d.handlers.ios, d.FooBox.options.iosInterval)
|
957 |
+
},
|
958 |
+
iosClose: function () {
|
959 |
+
d.timers.ios.stop()
|
960 |
+
},
|
961 |
+
ios: function () {
|
962 |
+
if (!d.FooBox.modal.element.hasClass("fbx-show"))
|
963 |
+
return void d.timers.ios.start(d.handlers.ios, d.FooBox.options.iosInterval);
|
964 |
+
var a = window.orientation || 0,
|
965 |
+
c = window.innerHeight,
|
966 |
+
f = 90 == a || -90 == a,
|
967 |
+
g = 0,
|
968 |
+
h = 0,
|
969 |
+
i = f ? screen.availWidth : screen.availHeight;
|
970 |
+
b.browser.isChrome ? (g = i - (f ? 76 : 56), h = i - (f ? 0 : 20)) : b.browser.isSafari && (g = i - 88, h = i - (f ? 0 : 19)), (null == e || 0 == e) && g >= c ? (e = !0, d.iosRedraw()) : (null == e || 1 == e) && c >= h && (e = !1, d.iosRedraw()), d.timers.ios.start(d.handlers.ios, d.FooBox.options.iosInterval)
|
971 |
+
}
|
972 |
+
}, this.setup = {
|
973 |
+
breakpoints: function () {
|
974 |
+
d.breakpoint.values = [], d.breakpoint.names = "";
|
975 |
+
for (var a in d.FooBox.options.breakpoints)
|
976 |
+
d.FooBox.options.breakpoints.hasOwnProperty(a) && (d.breakpoint.values.push({
|
977 |
+
name: d.fixName(a),
|
978 |
+
width: d.FooBox.options.breakpoints[a]
|
979 |
+
}), d.breakpoint.names += d.fixName(a) + " ");
|
980 |
+
d.breakpoint.values.sort(function (a, b) {
|
981 |
+
return a.width - b.width
|
982 |
+
})
|
983 |
+
}
|
984 |
+
}, this.iosRedraw = function () {
|
985 |
+
window.scrollTo(0, document.body.scrollTop), a(window).trigger("resize")
|
986 |
+
}, this.fixName = function (a) {
|
987 |
+
return /^fbx-[a-zA-Z0-9]/.test(a) ? a : "fbx-" + a
|
988 |
+
}, this.style = function () {
|
989 |
+
var a = new b.BPInfo(d.breakpoint.values),
|
990 |
+
c = d.FooBox.modal.element;
|
991 |
+
c.removeClass(d.breakpoint.names).removeClass("fbx-desktop fbx-landscape fbx-portrait").addClass(a.breakpoint).addClass(a.orientation), d.FooBox.options.hideNavOnMobile === !0 ? c.addClass("fbx-no-nav") : c.removeClass("fbx-no-nav")
|
992 |
+
}
|
993 |
+
}, b.Responsive.metaCheck = function () {
|
994 |
+
var b = a("meta[name=viewport]"),
|
995 |
+
c = b.attr("content");
|
996 |
+
if (b.length > 0 && "string" == typeof c) {
|
997 |
+
for (var d = c.split(","), e = !1, f = !1, g = 0; g < d.length; g++) {
|
998 |
+
var h = a.trim(d[g]);
|
999 |
+
"width" == h.substring(0, 5) && -1 !== h.indexOf("device-width") ? e = !0 : "initial-scale" == h.substring(0, 13) && (f = !0)
|
1000 |
+
}
|
1001 |
+
e && !f && (d.push("initial-scale=1"), c = d.join(","), b.attr("content", c))
|
1002 |
+
}
|
1003 |
+
}, b.addons.register(b.Responsive, c), b.Responsive.metaCheck()
|
1004 |
+
}(jQuery, window.FooBox),
|
1005 |
+
function (a, b) {
|
1006 |
+
var c = {
|
1007 |
+
captions: {
|
1008 |
+
animation: "slide",
|
1009 |
+
enabled: !0,
|
1010 |
+
descSource: "find",
|
1011 |
+
hoverDelay: 300,
|
1012 |
+
maxHeight: .4,
|
1013 |
+
onlyShowOnHover: !1,
|
1014 |
+
onlyShowOnClick: !1,
|
1015 |
+
overrideDesc: !1,
|
1016 |
+
overrideTitle: !1,
|
1017 |
+
prettify: !1,
|
1018 |
+
titleSource: "image_find"
|
1019 |
+
}
|
1020 |
+
};
|
1021 |
+
b.Item.prototype.captions = !1, b.Item.prototype.title = null, b.Item.prototype.description = null, b.Item.prototype.caption = null, b.Captions = function (c) {
|
1022 |
+
this.FooBox = c, this.timers = {
|
1023 |
+
hover: new b.Timer
|
1024 |
+
};
|
1025 |
+
var d = this;
|
1026 |
+
this.preinit = function (a) {
|
1027 |
+
d.handlers.unbind(!0), a.bind({
|
1028 |
+
"foobox.initialized foobox.reinitialized": d.handlers.initialized,
|
1029 |
+
"foobox.setupHtml": d.handlers.setupHtml,
|
1030 |
+
"foobox.setupOptions": d.handlers.setupOptions,
|
1031 |
+
"foobox.parseItem": d.handlers.parseItem,
|
1032 |
+
"foobox.onError": d.handlers.onError
|
1033 |
+
})
|
1034 |
+
}, this.destroy = function () {
|
1035 |
+
d.handlers.unbind(!0)
|
1036 |
+
}, this.handlers = {
|
1037 |
+
unbind: function (a) {
|
1038 |
+
a = a || !1, a && d.FooBox.element.unbind({
|
1039 |
+
"foobox.initialized foobox.reinitialized": d.handlers.initialized,
|
1040 |
+
"foobox.setupHtml": d.handlers.setupHtml,
|
1041 |
+
"foobox.setupOptions": d.handlers.setupOptions,
|
1042 |
+
"foobox.parseItem": d.handlers.parseItem,
|
1043 |
+
"foobox.onError": d.handlers.onError,
|
1044 |
+
"foobox.close": d.handlers.close
|
1045 |
+
}), d.FooBox.element.unbind({
|
1046 |
+
"foobox.beforeLoad": d.handlers.beforeLoad,
|
1047 |
+
"foobox.afterLoad": d.handlers.afterLoad
|
1048 |
+
}), d.FooBox.modal instanceof b.Modal && b.isjQuery(d.FooBox.modal.element) && d.FooBox.modal.element.undelegate("mouseenter.captions mouseleave.captions").find(".fbx-item-current, .fbx-item-next").unbind("click.captions")
|
1049 |
+
},
|
1050 |
+
initialized: function (a) {
|
1051 |
+
d.handlers.unbind(), a.fb.options.captions.enabled === !0 && (a.fb.instance.element.bind({
|
1052 |
+
"foobox.beforeLoad": d.handlers.beforeLoad,
|
1053 |
+
"foobox.afterLoad": d.handlers.afterLoad,
|
1054 |
+
"foobox.close": d.handlers.close
|
1055 |
+
}), -1 === a.fb.options.modalClass.indexOf("fbx-caption-toggle-only") && a.fb.modal.find(".fbx-item-current, .fbx-item-next").bind("click.captions", d.handlers.toggleCaptions), a.fb.options.captions.onlyShowOnHover === !0 && a.fb.modal.delegate(".fbx-inner:not(:has(.fbx-item-error))", "mouseenter.captions", d.handlers.mouseenter).delegate(".fbx-inner:not(:has(.fbx-item-error))", "mouseleave.captions", d.handlers.mouseleave))
|
1056 |
+
},
|
1057 |
+
toggleCaptions: function (b) {
|
1058 |
+
if (a(b.target).is("img") || a(b.target).is(".fbx-close-caption") || a(b.target).is(".fbx-open-caption")) {
|
1059 |
+
var c = d.FooBox.items.current(),
|
1060 |
+
e = d.FooBox.modal.element;
|
1061 |
+
"image" !== c.type || e.hasClass("fbx-error") || (b.preventDefault(), e.find(".fbx-caption").is(".fbx-fade-caption, .fbx-slide-caption, .fbx-hide-caption") ? (e.removeClass("fbx-captions-hidden"), d.show()) : (e.addClass("fbx-captions-hidden"), d.hide()))
|
1062 |
+
}
|
1063 |
+
},
|
1064 |
+
mouseenter: function () {
|
1065 |
+
d.timers.hover.start(function () {
|
1066 |
+
d.show()
|
1067 |
+
}, d.FooBox.options.captions.hoverDelay)
|
1068 |
+
},
|
1069 |
+
mouseleave: function () {
|
1070 |
+
d.timers.hover.start(function () {
|
1071 |
+
d.hide()
|
1072 |
+
}, d.FooBox.options.captions.hoverDelay)
|
1073 |
+
},
|
1074 |
+
setupHtml: function (b) {
|
1075 |
+
var c = a("<div/>", {
|
1076 |
+
"class": "fbx-caption"
|
1077 |
+
}),
|
1078 |
+
e = a("<a/>", {
|
1079 |
+
"class": "fbx-open-caption",
|
1080 |
+
html: "…"
|
1081 |
+
}).bind("click.captions", d.handlers.toggleCaptions);
|
1082 |
+
"string" == typeof b.fb.options.modalClass && -1 != b.fb.options.modalClass.indexOf("fbx-sticky-caption") ? b.fb.modal.append(c, e) : (b.fb.modal.find(".fbx-stage").append(c), b.fb.modal.find(".fbx-inner").append(e))
|
1083 |
+
},
|
1084 |
+
setupOptions: function (a) {
|
1085 |
+
a.fb.modal.find(".fbx-caption").addClass(d.animation())
|
1086 |
+
},
|
1087 |
+
close: function (a) {
|
1088 |
+
1 != a.fb.options.captions.onlyShowOnHover && a.fb.modal.find(".fbx-caption").addClass(d.animation())
|
1089 |
+
},
|
1090 |
+
beforeLoad: function (a) {
|
1091 |
+
1 != a.fb.options.captions.onlyShowOnHover && a.fb.modal.find(".fbx-caption").addClass(d.animation())
|
1092 |
+
},
|
1093 |
+
afterLoad: function (a) {
|
1094 |
+
var b = a.fb.item;
|
1095 |
+
return !b || b.error || b.captionLoaded || (a.fb.instance.raise("foobox.alterCaption", {
|
1096 |
+
element: a.fb.element,
|
1097 |
+
item: b
|
1098 |
+
}), b.captionLoaded = !0), 1 == a.fb.options.captions.onlyShowOnHover ? void d.update() : void(0 == a.fb.options.captions.onlyShowOnClick && d.show())
|
1099 |
+
},
|
1100 |
+
onError: function (a) {
|
1101 |
+
a.fb.modal.find(".fbx-caption").addClass(d.animation())
|
1102 |
+
},
|
1103 |
+
parseItem: function (c) {
|
1104 |
+
var e = c.fb.options.captions;
|
1105 |
+
if (c.fb.item.captions && 0 != e.enabled) {
|
1106 |
+
var f, g, h = "";
|
1107 |
+
if (null != c.fb.element) {
|
1108 |
+
var i = a(c.fb.element).data("titleSource") || a(c.fb.instance.element).data("titleSource") || e.titleSource,
|
1109 |
+
j = a(c.fb.element).data("descSource") || a(c.fb.instance.element).data("descSource") || e.descSource;
|
1110 |
+
f = c.fb.element.data("captionTitle") || c.fb.element.data("title") || d.text(c.fb.element, i), g = c.fb.element.data("captionDesc") || c.fb.element.data("description") || d.text(c.fb.element, j)
|
1111 |
+
} else
|
1112 |
+
f = c.fb.item.title, g = c.fb.item.description;
|
1113 |
+
f = null == f || "undefined" == typeof f ? "" : f + "", g = null == g || "undefined" == typeof g ? "" : g + "", f && f == g && (g = null), h = "string" == typeof f && f.length > 0 ? b.format('<div class="fbx-caption-title">{0}</div>', f) : h, h = "string" == typeof g && g.length > 0 ? h + b.format('<div class="fbx-caption-desc">{0}</div>', g) : h, c.fb.item.title = f, c.fb.item.description = g, c.fb.item.caption = h, c.fb.instance.raise("foobox.createCaption", {
|
1114 |
+
element: c.fb.element,
|
1115 |
+
item: c.fb.item
|
1116 |
+
})
|
1117 |
+
}
|
1118 |
+
}
|
1119 |
+
}, this.text = function (b, c) {
|
1120 |
+
var e;
|
1121 |
+
switch (c) {
|
1122 |
+
case "find":
|
1123 |
+
e = a.trim(b.data("enviraCaption") || b.data("title") || b.attr("title") || b.find("img:first").data("title") || b.find("img:first").data("alt") || b.find("img:first").attr("title") || b.find("img:first").attr("alt"));
|
1124 |
+
break;
|
1125 |
+
case "image_find":
|
1126 |
+
e = a.trim(b.find("img:first").data("title") || b.find("img:first").data("alt") || b.find("img:first").attr("title") || b.find("img:first").attr("alt"));
|
1127 |
+
break;
|
1128 |
+
case "image":
|
1129 |
+
e = a.trim(b.find("img:first").data("title") || b.find("img:first").attr("title"));
|
1130 |
+
break;
|
1131 |
+
case "image_alt":
|
1132 |
+
e = a.trim(b.find("img:first").data("alt") || b.find("img:first").attr("alt"));
|
1133 |
+
break;
|
1134 |
+
case "anchor":
|
1135 |
+
e = a.trim(b.data("enviraCaption") || b.data("title") || b.attr("title"));
|
1136 |
+
break;
|
1137 |
+
default:
|
1138 |
+
e = null
|
1139 |
+
}
|
1140 |
+
return d.FooBox.options.captions.prettify && (e = d.prettifier(e)), e
|
1141 |
+
}, this.animation = function () {
|
1142 |
+
switch (d.FooBox.options.captions.animation) {
|
1143 |
+
case "fade":
|
1144 |
+
return "fbx-fade-caption";
|
1145 |
+
case "slide":
|
1146 |
+
return "fbx-slide-caption";
|
1147 |
+
default:
|
1148 |
+
return "fbx-hide-caption"
|
1149 |
+
}
|
1150 |
+
}, this.hide = function () {
|
1151 |
+
var a = d.FooBox.items.current(),
|
1152 |
+
b = d.FooBox.modal.element.find(".fbx-caption");
|
1153 |
+
return d.FooBox.options.captions.enabled && a.captions && "string" == typeof a.caption && 0 != a.caption.length ? (b.addClass(d.animation()), void d.FooBox.raise("foobox.captionsHide", {
|
1154 |
+
item: a
|
1155 |
+
})) : void b.addClass("fbx-hide-caption")
|
1156 |
+
}, this.show = function () {
|
1157 |
+
var a = d.FooBox,
|
1158 |
+
c = a.items.current(),
|
1159 |
+
e = a.modal.element.find(".fbx-caption");
|
1160 |
+
return !a.options.captions.enabled || !c.captions || "string" != typeof c.caption || 0 == c.caption.length || a.modal.element.hasClass("fbx-captions-hidden") || b.isjQuery(c.element) && c.element.hasClass("no-captions") ? void e.addClass("fbx-hide-caption") : (d.update(), e.removeClass("fbx-fade-caption fbx-slide-caption fbx-hide-caption"), void d.FooBox.raise("foobox.captionsShow", {
|
1161 |
+
item: c
|
1162 |
+
}))
|
1163 |
+
}, this.update = function () {
|
1164 |
+
var c = d.FooBox.items.current(),
|
1165 |
+
e = d.FooBox.modal.element.find(".fbx-caption");
|
1166 |
+
e.html(c.caption).find('a[href^="#"]').filter(function () {
|
1167 |
+
var c = a(this).attr("href"),
|
1168 |
+
d = a(c),
|
1169 |
+
e = d.data("fbx_instance") || d.data("fbx_p_instance");
|
1170 |
+
return d.length > 0 && e instanceof b.Instance ? (a(this).data("hrefTarget", d.get(0)), !0) : !1
|
1171 |
+
}).unbind("click.captions").bind("click.captions", function (c) {
|
1172 |
+
c.preventDefault();
|
1173 |
+
var e = a(this).data("hrefTarget"),
|
1174 |
+
f = a(e).data("fbx_instance") || a(e).data("fbx_p_instance");
|
1175 |
+
return f instanceof b.Instance && (d.FooBox.modal.close(), f.items.indexes.set(e.index), f.modal.show()), !1
|
1176 |
+
}), a("<a/>", {
|
1177 |
+
"class": "fbx-close-caption",
|
1178 |
+
html: "×"
|
1179 |
+
}).bind("click.captions", d.handlers.toggleCaptions).prependTo(e)
|
1180 |
+
}, this.prettifier = function (a) {
|
1181 |
+
return "string" != typeof a ? null : (a = a.replace(/\s*-\d+/g, "").replace(/\s*_\d+/g, "").replace(/-/g, " ").replace(/_/g, " "), a = a.replace(/\w\S*/g, function (a) {
|
1182 |
+
return -1 != a.indexOf("#") ? a : a.charAt(0).toUpperCase() + a.substr(1).toLowerCase()
|
1183 |
+
}))
|
1184 |
+
}
|
1185 |
+
}, b.addons.register(b.Captions, c)
|
1186 |
+
}(jQuery, window.FooBox),
|
1187 |
+
function (a, b) {
|
1188 |
+
var c = {
|
1189 |
+
wordpress: {
|
1190 |
+
enabled: !1
|
1191 |
+
}
|
1192 |
+
};
|
1193 |
+
b.Wordpress = function (c) {
|
1194 |
+
this.FooBox = c;
|
1195 |
+
var d = this;
|
1196 |
+
this.preinit = function (a) {
|
1197 |
+
d.handlers.unbind(!0), a.bind("foobox.createCaption", d.handlers.onCreateCaption)
|
1198 |
+
}, this.destroy = function () {
|
1199 |
+
d.handlers.unbind(!0)
|
1200 |
+
}, this.handlers = {
|
1201 |
+
unbind: function (a) {
|
1202 |
+
a = a || !1, a && d.FooBox.element.unbind("foobox.createCaption", d.handlers.onCreateCaption)
|
1203 |
+
},
|
1204 |
+
onCreateCaption: function (c) {
|
1205 |
+
var d = c.fb.options,
|
1206 |
+
e = c.fb.instance.element,
|
1207 |
+
f = c.fb.item.element,
|
1208 |
+
g = "",
|
1209 |
+
h = c.fb.item.title,
|
1210 |
+
i = c.fb.item.description;
|
1211 |
+
if (1 == d.wordpress.enabled && b.isjQuery(f)) {
|
1212 |
+
var j = f.data("captionTitle") || f.data("title"),
|
1213 |
+
k = f.data("captionDesc") || f.data("description");
|
1214 |
+
if (e.hasClass("gallery"))
|
1215 |
+
d.captions.overrideTitle === !1 && (h = j || f.parents(".gallery-item:first").find(".wp-caption-text:first").html() || f.parents(".gallery-item:first").find(".gallery-caption:first").html() || h || ""), d.captions.overrideDesc === !1 && (i = k || f.find("img").attr("alt") || i || "");
|
1216 |
+
else if (e.hasClass("wp-caption") || f.hasClass("wp-caption"))
|
1217 |
+
d.captions.overrideTitle === !1 && (h = j || f.find("img").attr("title") || f.parents(".wp-caption:first").find(".wp-caption-text:first").html() || h || ""), d.captions.overrideDesc === !1 && (i = k || f.find("img").attr("alt") || i || "");
|
1218 |
+
else if (f.parents(".wp-caption:first").length > 0)
|
1219 |
+
d.captions.overrideTitle === !1 && (h = j || f.parents(".wp-caption:first").find("img").attr("title") || f.parents(".wp-caption:first").find(".wp-caption-text:first").html() || h || ""), d.captions.overrideDesc === !1 && (i = k || f.parents(".wp-caption:first").find("img").attr("alt") || i || "");
|
1220 |
+
else {
|
1221 |
+
if (!e.hasClass("tiled-gallery"))
|
1222 |
+
return;
|
1223 |
+
d.captions.overrideTitle === !1 && (h = j || f.parents(".tiled-gallery-item:first").find(".tiled-gallery-caption").html() || f.find("img").data("image-title") || f.find("img").attr("title") || h || ""), d.captions.overrideDesc === !1 && (i = k || a.trim(f.find("img").data("image-description")).replace(/(^<p>)|(<\/p>$)/gi, "") || i || "")
|
1224 |
+
}
|
1225 |
+
h += "", i += "", h = h || "", i = i || "";
|
1226 |
+
var l = a("<div/>"),
|
1227 |
+
m = l.html(h).text(),
|
1228 |
+
n = l.html(i).text();
|
1229 |
+
(a.trim(h) == a.trim(i) || m == n) && (i = null), g = "string" == typeof h && h.length > 0 ? b.format('<div class="fbx-caption-title">{0}</div>', h) : g, g = "string" == typeof i && i.length > 0 ? g + b.format('<div class="fbx-caption-desc">{0}</div>', i) : g, c.fb.item.title = h, c.fb.item.description = i, c.fb.item.caption = g
|
1230 |
+
}
|
1231 |
+
}
|
1232 |
+
}
|
1233 |
+
}, b.addons.register(b.Wordpress, c)
|
1234 |
+
}(jQuery, window.FooBox),
|
1235 |
+
function (a, b) {
|
1236 |
+
var c = {
|
1237 |
+
pan: {
|
1238 |
+
enabled: !0,
|
1239 |
+
showOverview: !0,
|
1240 |
+
position: "fbx-top-right"
|
1241 |
+
}
|
1242 |
+
};
|
1243 |
+
b.Pan = function (c) {
|
1244 |
+
this.FooBox = c;
|
1245 |
+
var d, e, f, g, h = this,
|
1246 |
+
i = !1,
|
1247 |
+
j = !1,
|
1248 |
+
k = null,
|
1249 |
+
l = null,
|
1250 |
+
m = null,
|
1251 |
+
n = null,
|
1252 |
+
o = null,
|
1253 |
+
p = 0;
|
1254 |
+
this.preinit = function (a) {
|
1255 |
+
h.handlers.unbind(!0), a.on({
|
1256 |
"foobox.initialized foobox.reinitialized": h.handlers.initialized
|
1257 |
+
})
|
1258 |
+
}, this.destroy = function () {
|
1259 |
+
h.handlers.unbind(!0)
|
1260 |
+
}, this.setOverview = function () {
|
1261 |
+
var a = parseInt(n.css("max-width")),
|
1262 |
+
b = parseInt(n.css("max-height")),
|
1263 |
+
c = a / k.width,
|
1264 |
+
d = b / k.height;
|
1265 |
+
p = c > d ? d : c;
|
1266 |
+
var e = k.width * p,
|
1267 |
+
f = k.height * p;
|
1268 |
+
n.width(e).height(f).css("background-image", "url(" + k.url + ")")
|
1269 |
+
}, this.setViewport = function () {
|
1270 |
+
var a = m.width(),
|
1271 |
+
b = m.height(),
|
1272 |
+
c = a * p,
|
1273 |
+
d = b * p;
|
1274 |
+
o.width(c).height(d)
|
1275 |
+
}, this.disableCaptionImageClick = function () {
|
1276 |
+
var a = h.FooBox.modal.element,
|
1277 |
+
c = b.objects.get("addons", h.FooBox, function (a) {
|
1278 |
+
return a instanceof b.Captions
|
1279 |
+
});
|
1280 |
+
c && a.find(".fbx-item-current, .fbx-item-next").unbind("click.captions", c.handlers.toggleCaptions)
|
1281 |
+
}, this.enableCaptionImageClick = function () {
|
1282 |
+
var a = h.FooBox.modal.element,
|
1283 |
+
c = b.objects.get("addons", h.FooBox, function (a) {
|
1284 |
+
return a instanceof b.Captions
|
1285 |
+
});
|
1286 |
+
c && a.find(".fbx-item-current, .fbx-item-next").bind("click.captions", c.handlers.toggleCaptions)
|
1287 |
+
}, this.handlers = {
|
1288 |
+
unbind: function (a) {
|
1289 |
+
a = a || !1, a && h.FooBox.element.off({
|
1290 |
+
"foobox.initialized foobox.reinitialized": h.handlers.initialized
|
1291 |
+
}), h.FooBox.element.off({
|
1292 |
+
"foobox.afterLoad": h.handlers.onAfterLoad,
|
1293 |
+
"foobox.showOverflow": h.handlers.onShowOverflow,
|
1294 |
+
"foobox.hideOverflow foobox.beforeLoad": h.handlers.onHideOverflow
|
1295 |
+
}), h.FooBox.modal instanceof b.Modal && b.isjQuery(h.FooBox.modal.element) && h.FooBox.modal.element.find(".fbx-stage").off({
|
1296 |
+
mousedown: h.handlers.onMouseDown,
|
1297 |
+
mousemove: h.handlers.onMouseMove,
|
1298 |
+
mouseup: h.handlers.onMouseUp
|
1299 |
+
}).removeClass("fbx-pannable fbx-panning")
|
1300 |
+
},
|
1301 |
+
initialized: function (a) {
|
1302 |
+
h.handlers.unbind(), a.fb.options.pan.enabled === !0 && h.FooBox.element.on({
|
1303 |
+
"foobox.close": h.handlers.onMouseUp,
|
1304 |
+
"foobox.afterLoad": h.handlers.onAfterLoad,
|
1305 |
+
"foobox.showOverflow": h.handlers.onShowOverflow,
|
1306 |
+
"foobox.hideOverflow foobox.beforeLoad": h.handlers.onHideOverflow
|
1307 |
+
})
|
1308 |
+
},
|
1309 |
+
onAfterLoad: function (a) {
|
1310 |
+
i === !0 && "image" == a.fb.item.handler.type && (h.setOverview(), h.setViewport())
|
1311 |
+
},
|
1312 |
+
onShowOverflow: function (b) {
|
1313 |
+
"image" == b.fb.item.handler.type && (i === !0 ? (h.setOverview(), h.setViewport()) : (i = !0, h.disableCaptionImageClick(), k = b.fb.item, m = h.FooBox.modal.element.addClass("fbx-pannable-item").find(".fbx-stage").on({
|
1314 |
+
mousedown: h.handlers.onMouseDown,
|
1315 |
+
mousemove: h.handlers.onMouseMove,
|
1316 |
+
"mouseup mouseleave": h.handlers.onMouseUp
|
1317 |
+
}).addClass("fbx-pannable"), l = b.fb.container, b.fb.options.pan.showOverview === !0 && (n = a("<div/>", {
|
1318 |
+
"class": "fbx-pan-overview"
|
1319 |
+
}).addClass(b.fb.options.pan.position).on("click", h.handlers.onOverviewClick).appendTo(m), o = a("<div/>", {
|
1320 |
+
"class": "fbx-pan-viewport"
|
1321 |
+
}).appendTo(n), l.on("scroll", h.handlers.onScroll), h.setOverview(), h.setViewport())))
|
1322 |
+
},
|
1323 |
+
onHideOverflow: function (a) {
|
1324 |
+
i === !0 && (i = !1, h.enableCaptionImageClick(), a.fb.options.pan.showOverview === !0 && n.remove(), l.off("scroll", h.handlers.onScroll), m.off({
|
1325 |
+
mousedown: h.handlers.onMouseDown,
|
1326 |
+
mousemove: h.handlers.onMouseMove,
|
1327 |
+
"mouseup mouseleave": h.handlers.onMouseUp
|
1328 |
+
}).removeClass("fbx-pannable fbx-panning"), h.FooBox.modal.element.removeClass("fbx-pannable-item"))
|
1329 |
+
},
|
1330 |
+
onMouseDown: function (a) {
|
1331 |
+
if (i === !0) {
|
1332 |
+
a.preventDefault(), m.addClass("fbx-panning");
|
1333 |
+
var b = l.get(0);
|
1334 |
+
j = !0, d = a.pageX, e = a.pageY, f = b.scrollLeft, g = b.scrollTop
|
1335 |
+
}
|
1336 |
+
},
|
1337 |
+
onMouseMove: function (a) {
|
1338 |
+
if (j === !0 && i === !0) {
|
1339 |
+
var b = l.get(0);
|
1340 |
+
b.scrollLeft = f - (a.pageX - d), b.scrollTop = g - (a.pageY - e)
|
1341 |
+
}
|
1342 |
+
},
|
1343 |
+
onMouseUp: function () {
|
1344 |
+
i === !0 && (j = !1, m.removeClass("fbx-panning"), d = 0, e = 0, f = 0, g = 0)
|
1345 |
+
},
|
1346 |
+
onScroll: function () {
|
1347 |
+
var a = l.get(0),
|
1348 |
+
b = a.scrollTop / k.height * 100,
|
1349 |
+
c = a.scrollLeft / k.width * 100;
|
1350 |
+
o.css({
|
1351 |
+
top: b + "%",
|
1352 |
+
left: c + "%"
|
1353 |
+
})
|
1354 |
+
},
|
1355 |
+
onOverviewClick: function (b) {
|
1356 |
+
var c = a(this).offset(),
|
1357 |
+
d = (b.pageX - c.left) / p,
|
1358 |
+
e = (b.pageY - c.top) / p,
|
1359 |
+
f = d - l.width() / 2,
|
1360 |
+
g = e - l.height() / 2;
|
1361 |
+
l.animate({
|
1362 |
+
scrollTop: g,
|
1363 |
+
scrollLeft: f
|
1364 |
+
}, 300)
|
1365 |
+
}
|
1366 |
+
}
|
1367 |
+
}, b.addons.register(b.Pan, c)
|
1368 |
+
}(jQuery, window.FooBox),
|
1369 |
+
function (a, b) {
|
1370 |
+
var c = {
|
1371 |
+
swipe: {
|
1372 |
+
enabled: !0,
|
1373 |
+
min: 80
|
1374 |
+
}
|
1375 |
+
};
|
1376 |
+
b.Swipe = function (a) {
|
1377 |
+
this.FooBox = a, this.isMoving = !1;
|
1378 |
+
var c, d = this;
|
1379 |
+
this.preinit = function (a) {
|
1380 |
+
d.handlers.unbind(!0), a.bind("foobox.initialized foobox.reinitialized", d.handlers.initialized)
|
1381 |
+
}, this.destroy = function () {
|
1382 |
+
d.handlers.unbind(!0)
|
1383 |
+
}, this.handlers = {
|
1384 |
+
unbind: function (a) {
|
1385 |
+
a = a || !1, a && d.FooBox.element.unbind("foobox.initialized foobox.reinitialized", d.handlers.initialized), d.FooBox.modal instanceof b.Modal && b.isjQuery(d.FooBox.modal.element) && d.FooBox.modal.element.unbind({
|
1386 |
+
touchstart: d.handlers.onTouchStart,
|
1387 |
+
touchmove: d.handlers.onTouchMove
|
1388 |
+
})
|
1389 |
+
},
|
1390 |
+
initialized: function (a) {
|
1391 |
+
d.handlers.unbind(), a.fb.options.swipe.enabled === !0 && a.fb.modal.bind("touchstart", d.handlers.onTouchStart)
|
1392 |
+
},
|
1393 |
+
onTouchStart: function (a) {
|
1394 |
+
var b = a.originalEvent.touches || a.touches;
|
1395 |
+
1 == b.length && d.FooBox.items.multiple() && (c = b[0].pageX, d.isMoving = !0, d.FooBox.modal.element.bind("touchmove", d.handlers.onTouchMove))
|
1396 |
+
},
|
1397 |
+
onTouchMove: function (a) {
|
1398 |
+
if (d.isMoving) {
|
1399 |
+
var b = a.originalEvent.touches || a.touches,
|
1400 |
+
e = b[0].pageX,
|
1401 |
+
f = c - e;
|
1402 |
+
Math.abs(f) >= d.FooBox.options.swipe.min && (d.cancelTouch(), f > 0 ? (d.FooBox.raise("foobox.swipeRight"), d.FooBox.modal.next()) : (d.FooBox.raise("foobox.swipeLeft"), d.FooBox.modal.prev()))
|
1403 |
+
}
|
1404 |
+
}
|
1405 |
+
}, this.cancelTouch = function () {
|
1406 |
+
d.FooBox.modal.element.unbind("touchmove", d.handlers.onTouchMove), c = null, d.isMoving = !1
|
1407 |
+
}
|
1408 |
+
}, b.addons.register(b.Swipe, c)
|
1409 |
+
}(jQuery, window.FooBox);
|
user-views/includes/albums/queries.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* This file is used for fetching data from database.
|
5 |
*
|
@@ -8,73 +7,63 @@
|
|
8 |
* @version 4.0.0
|
9 |
*/
|
10 |
if (!defined("ABSPATH")) {
|
11 |
-
|
12 |
}
|
13 |
if (isset($id)) {
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
$gallery_data_unserialize = user_helper_gallery_bank::get_unserialize_mode_data_gallery_bank("old_gallery_id = $id AND meta_key = %s ", "gallery_data");
|
46 |
-
}
|
47 |
-
if(count($gallery_data_unserialize) > 0)
|
48 |
-
{
|
49 |
-
if (isset($album_type)) {
|
50 |
-
switch ($album_type) {
|
51 |
-
case "compact_album":
|
52 |
-
$compact_album_layout_settings = user_helper_gallery_bank::get_meta_value_gallery_bank("compact_album_layout_settings");
|
53 |
-
break;
|
54 |
-
}
|
55 |
-
}
|
56 |
}
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
62 |
|
63 |
-
|
64 |
|
65 |
-
|
66 |
|
67 |
-
|
68 |
|
69 |
-
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
}
|
77 |
}
|
78 |
-
|
79 |
-
|
|
|
80 |
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* This file is used for fetching data from database.
|
4 |
*
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
+
exit;
|
11 |
}
|
12 |
if (isset($id)) {
|
13 |
+
if (isset($type) && $type != "") {
|
14 |
+
$gallery_ids = urldecode(isset($show_albums) ? $show_albums : $album_id);
|
15 |
+
if ($id == "all") {
|
16 |
+
$album_data = $wpdb->get_row(
|
17 |
+
$wpdb->prepare("SELECT * FROM " . gallery_bank_meta() . " WHERE meta_key = %s", "gallery_data")
|
18 |
+
);
|
19 |
+
} else if (preg_match("/^\d+(?:,\d+)*$/", $gallery_ids)) {
|
20 |
+
$album_data = $wpdb->get_row(
|
21 |
+
$wpdb->prepare("SELECT * FROM " . gallery_bank_meta() . " WHERE meta_key = %s AND old_gallery_id IN (%s)", "gallery_data", $gallery_ids)
|
22 |
+
);
|
23 |
+
} else {
|
24 |
+
$album_data = $wpdb->get_row(
|
25 |
+
$wpdb->prepare("SELECT * FROM " . gallery_bank_meta() . " WHERE meta_key = %s AND old_gallery_id = %d", "gallery_data", $id)
|
26 |
+
);
|
27 |
+
}
|
28 |
+
if (count($album_data) > 0) {
|
29 |
+
$display_album_data = unserialize($album_data->meta_value);
|
30 |
+
if ($id == "all") {
|
31 |
+
$gallery_data_unserialize = user_helper_gallery_bank::get_unserialize_mode_data_gallery_bank("meta_key = %s ", "gallery_data");
|
32 |
+
} else if (preg_match("/^\d+(?:,\d+)*$/", $gallery_ids)) {
|
33 |
+
$gallery_data_unserialize = user_helper_gallery_bank::get_unserialize_mode_data_gallery_bank("old_gallery_id IN ($gallery_ids) AND meta_key = %s ", "gallery_data");
|
34 |
+
} else {
|
35 |
+
$gallery_data_unserialize = user_helper_gallery_bank::get_unserialize_mode_data_gallery_bank("old_gallery_id = $id AND meta_key = %s ", "gallery_data");
|
36 |
+
}
|
37 |
+
if (count($gallery_data_unserialize) > 0) {
|
38 |
+
if (isset($album_type)) {
|
39 |
+
switch ($album_type) {
|
40 |
+
case "compact_album":
|
41 |
+
$compact_album_layout_settings = user_helper_gallery_bank::get_meta_value_gallery_bank("compact_album_layout_settings");
|
42 |
+
break;
|
43 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
}
|
45 |
+
}
|
46 |
+
}
|
47 |
+
} else {
|
48 |
+
$album_data = $wpdb->get_row(
|
49 |
+
$wpdb->prepare("SELECT * FROM " . gallery_bank_meta() . " WHERE meta_key = %s AND meta_id = %d", "album_data", $id)
|
50 |
+
);
|
51 |
|
52 |
+
if (count($album_data) > 0) {
|
53 |
|
54 |
+
$display_album_data = unserialize($album_data->meta_value);
|
55 |
|
56 |
+
$gallery_ids = implode(",", $display_album_data["selected_galleries"]);
|
57 |
|
58 |
+
$gallery_data_unserialize = user_helper_gallery_bank::get_unserialize_mode_data_gallery_bank("meta_id IN($gallery_ids) AND meta_key = %s ", "gallery_data");
|
59 |
|
60 |
+
if (isset($album_type)) {
|
61 |
+
switch ($album_type) {
|
62 |
+
case "compact_album":
|
63 |
+
$compact_album_layout_settings = user_helper_gallery_bank::get_meta_value_gallery_bank("compact_album_layout_settings");
|
64 |
+
break;
|
|
|
65 |
}
|
66 |
+
}
|
67 |
+
}
|
68 |
+
}
|
69 |
}
|
user-views/includes/galleries/queries.php
CHANGED
@@ -16,29 +16,26 @@ if (isset($id)) {
|
|
16 |
|
17 |
if (count($gallery_data) > 0) {
|
18 |
$display_gallery_data = unserialize($gallery_data->meta_value);
|
19 |
-
if(isset($display) && $display == "selected")
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
else
|
40 |
-
{
|
41 |
-
$gallery_image_data_detail = user_helper_gallery_bank::get_unserialize_mode_data_gallery_bank("old_gallery_id = $id AND meta_key = %s ", "image_data");
|
42 |
}
|
43 |
$gallery_image_detail_only_included_images = array();
|
44 |
//loop to only include images that were not exculded to be displayed.
|
16 |
|
17 |
if (count($gallery_data) > 0) {
|
18 |
$display_gallery_data = unserialize($gallery_data->meta_value);
|
19 |
+
if (isset($display) && $display == "selected") {
|
20 |
+
$images_count = isset($no_of_images) && $no_of_images != "" ? $no_of_images : "";
|
21 |
+
$gallery_image_data_detail = array();
|
22 |
+
$manage_data = $wpdb->get_results
|
23 |
+
(
|
24 |
+
$wpdb->prepare
|
25 |
+
(
|
26 |
+
"SELECT * FROM " . gallery_bank_meta() . " WHERE old_gallery_id = %d AND meta_key = %s ORDER BY meta_id DESC LIMIT $images_count", $id, "image_data"
|
27 |
+
)
|
28 |
+
);
|
29 |
+
$unserialize_complete_data = array();
|
30 |
+
foreach ($manage_data as $value) {
|
31 |
+
$unserialize_data = unserialize($value->meta_value);
|
32 |
+
$unserialize_data["id"] = $value->id;
|
33 |
+
$unserialize_data["old_gallery_id"] = $value->old_gallery_id;
|
34 |
+
$unserialize_data["meta_id"] = $value->meta_id;
|
35 |
+
array_push($gallery_image_data_detail, $unserialize_data);
|
36 |
+
}
|
37 |
+
} else {
|
38 |
+
$gallery_image_data_detail = user_helper_gallery_bank::get_unserialize_mode_data_gallery_bank("old_gallery_id = $id AND meta_key = %s ", "image_data");
|
|
|
|
|
|
|
39 |
}
|
40 |
$gallery_image_detail_only_included_images = array();
|
41 |
//loop to only include images that were not exculded to be displayed.
|
user-views/includes/galleries/scripts-before.php
CHANGED
@@ -32,22 +32,22 @@ if (!defined("ABSPATH")) {
|
|
32 |
if (isset($layout_type)) {
|
33 |
switch ($layout_type) {
|
34 |
case "masonry_layout" :
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
}
|
52 |
}
|
53 |
?>
|
32 |
if (isset($layout_type)) {
|
33 |
switch ($layout_type) {
|
34 |
case "masonry_layout" :
|
35 |
+
?>
|
36 |
+
if (jQuery(".masonry_grid_layout_container").data('isotope'))
|
37 |
+
{
|
38 |
+
jQuery(".masonry_grid_layout_container").isotope('destroy');
|
39 |
+
}
|
40 |
+
jQuery(".masonry_grid_layout_container").imagesLoaded(function ()
|
41 |
+
{
|
42 |
+
jQuery(".masonry_grid_layout_container").isotope
|
43 |
+
({
|
44 |
+
itemSelector: ".masonry_grid_wrapper_item",
|
45 |
+
layoutMode: 'masonry',
|
46 |
+
percentPosition: true
|
47 |
+
});
|
48 |
+
});
|
49 |
+
<?php
|
50 |
+
break;
|
51 |
}
|
52 |
}
|
53 |
?>
|
user-views/includes/galleries/style-sheet.php
CHANGED
@@ -39,7 +39,7 @@ if (isset($id)) {
|
|
39 |
$thumbnail_layout_background_transparency = $thumbnail_layout_background_color_transparency[1] / 100;
|
40 |
$thumbnail_layout_general_thumbnail_opacity = isset($thumbnail_layout_settings["thumbnail_layout_general_thumbnail_opacity"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_general_thumbnail_opacity"] / 100) : 1;
|
41 |
$thumbnail_layout_container_width = isset($thumbnail_layout_settings["thumbnail_layout_container_width"]) ? intval($thumbnail_layout_settings["thumbnail_layout_container_width"]) : 100;
|
42 |
-
$thumbnail_layout_thumbnail_position = isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_position"]) ? explode(",", $thumbnail_layout_settings["thumbnail_layout_thumbnail_position"]) : array("center","center");
|
43 |
$thumbnail_layout_max_width = $columns != 0 ? ($thumbnail_layout_thumbnail_dimensions[0] + ($thumbnail_layout_thumbnail_margin[1] + $thumbnail_layout_thumbnail_margin[3]) + ($thumbnail_layout_thumbnail_padding[1] + $thumbnail_layout_thumbnail_padding[3]) + ($thumbnail_layout_thumbnail_border_width[0] * 2)) * $columns + 25 : "100%";
|
44 |
$hover_effect = isset($thumbnail_layout_settings["thumbnail_layout_general_hover_effect_value"]) ? explode(",", $thumbnail_layout_settings["thumbnail_layout_general_hover_effect_value"]) : array("none", "0", "0", "0");
|
45 |
if (isset($hover_effect[0])) {
|
@@ -248,9 +248,9 @@ if (isset($id)) {
|
|
248 |
{
|
249 |
width: <?php echo $thumbnail_layout_container_width; ?>% !important;
|
250 |
max-width: <?php echo $thumbnail_layout_max_width; ?>px !important;
|
251 |
-
|
252 |
}
|
253 |
-
|
254 |
{
|
255 |
line-height: <?php echo $thumbnail_layout_gallery_title_line_height; ?> !important;
|
256 |
text-align: <?php echo $thumbnail_layout_gallery_title_text_alignment; ?> !important;
|
@@ -260,7 +260,7 @@ if (isset($id)) {
|
|
260 |
padding: <?php echo intval($thumbnail_layout_gallery_title_padding[0]); ?>px <?php echo intval($thumbnail_layout_gallery_title_padding[1]); ?>px <?php echo intval($thumbnail_layout_gallery_title_padding[2]); ?>px <?php echo intval($thumbnail_layout_gallery_title_padding[3]); ?>px !important;
|
261 |
font-family: <?php echo $font_family_name_layout[0]; ?>
|
262 |
}
|
263 |
-
|
264 |
{
|
265 |
line-height: <?php echo $thumbnail_layout_gallery_desc_line_height; ?> !important;
|
266 |
text-align: <?php echo $thumbnail_layout_gallery_desc_text_alignment; ?> !important;
|
@@ -350,7 +350,7 @@ if (isset($id)) {
|
|
350 |
max-width: <?php echo $masonry_layout_max_width; ?>px !important;
|
351 |
<?php echo $masonry_text_alignment; ?>
|
352 |
}
|
353 |
-
|
354 |
{
|
355 |
line-height: <?php echo $masonry_layout_gallery_title_line_height; ?> !important;
|
356 |
text-align: <?php echo $masonry_layout_gallery_title_text_alignment; ?>!important;
|
@@ -360,7 +360,7 @@ if (isset($id)) {
|
|
360 |
padding: <?php echo intval($masonry_layout_gallery_title_padding[0]); ?>px <?php echo intval($masonry_layout_gallery_title_padding[1]); ?>px <?php echo intval($masonry_layout_gallery_title_padding[2]); ?>px <?php echo intval($masonry_layout_gallery_title_padding[3]); ?>px !important;
|
361 |
font-family: <?php echo $font_family_name_layout[0]; ?>
|
362 |
}
|
363 |
-
|
364 |
{
|
365 |
line-height: <?php echo $masonry_layout_gallery_description_line_height; ?> !important;
|
366 |
text-align: <?php echo $masonry_layout_gallery_description_text_alignment; ?> !important;
|
@@ -448,7 +448,7 @@ if (isset($id)) {
|
|
448 |
}
|
449 |
.fbx-caption
|
450 |
{
|
451 |
-
|
452 |
}
|
453 |
.fbx-caption-title <?php echo $foo_box_image_title_html_tag; ?>
|
454 |
{
|
39 |
$thumbnail_layout_background_transparency = $thumbnail_layout_background_color_transparency[1] / 100;
|
40 |
$thumbnail_layout_general_thumbnail_opacity = isset($thumbnail_layout_settings["thumbnail_layout_general_thumbnail_opacity"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_general_thumbnail_opacity"] / 100) : 1;
|
41 |
$thumbnail_layout_container_width = isset($thumbnail_layout_settings["thumbnail_layout_container_width"]) ? intval($thumbnail_layout_settings["thumbnail_layout_container_width"]) : 100;
|
42 |
+
$thumbnail_layout_thumbnail_position = isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_position"]) ? explode(",", $thumbnail_layout_settings["thumbnail_layout_thumbnail_position"]) : array("center", "center");
|
43 |
$thumbnail_layout_max_width = $columns != 0 ? ($thumbnail_layout_thumbnail_dimensions[0] + ($thumbnail_layout_thumbnail_margin[1] + $thumbnail_layout_thumbnail_margin[3]) + ($thumbnail_layout_thumbnail_padding[1] + $thumbnail_layout_thumbnail_padding[3]) + ($thumbnail_layout_thumbnail_border_width[0] * 2)) * $columns + 25 : "100%";
|
44 |
$hover_effect = isset($thumbnail_layout_settings["thumbnail_layout_general_hover_effect_value"]) ? explode(",", $thumbnail_layout_settings["thumbnail_layout_general_hover_effect_value"]) : array("none", "0", "0", "0");
|
45 |
if (isset($hover_effect[0])) {
|
248 |
{
|
249 |
width: <?php echo $thumbnail_layout_container_width; ?>% !important;
|
250 |
max-width: <?php echo $thumbnail_layout_max_width; ?>px !important;
|
251 |
+
<?php echo $thumbnail_text_alignment; ?>
|
252 |
}
|
253 |
+
#gallery_title_container_<?php echo $random; ?> <?php echo $thumbnail_layout_gallery_title_html_tag; ?>
|
254 |
{
|
255 |
line-height: <?php echo $thumbnail_layout_gallery_title_line_height; ?> !important;
|
256 |
text-align: <?php echo $thumbnail_layout_gallery_title_text_alignment; ?> !important;
|
260 |
padding: <?php echo intval($thumbnail_layout_gallery_title_padding[0]); ?>px <?php echo intval($thumbnail_layout_gallery_title_padding[1]); ?>px <?php echo intval($thumbnail_layout_gallery_title_padding[2]); ?>px <?php echo intval($thumbnail_layout_gallery_title_padding[3]); ?>px !important;
|
261 |
font-family: <?php echo $font_family_name_layout[0]; ?>
|
262 |
}
|
263 |
+
#gallery_desc_container_<?php echo $random; ?> <?php echo $thumbnail_layout_gallery_desc_html_tag; ?>
|
264 |
{
|
265 |
line-height: <?php echo $thumbnail_layout_gallery_desc_line_height; ?> !important;
|
266 |
text-align: <?php echo $thumbnail_layout_gallery_desc_text_alignment; ?> !important;
|
350 |
max-width: <?php echo $masonry_layout_max_width; ?>px !important;
|
351 |
<?php echo $masonry_text_alignment; ?>
|
352 |
}
|
353 |
+
#gallery_title_container_<?php echo $random; ?> <?php echo $masonry_layout_gallery_title_html_tag; ?>
|
354 |
{
|
355 |
line-height: <?php echo $masonry_layout_gallery_title_line_height; ?> !important;
|
356 |
text-align: <?php echo $masonry_layout_gallery_title_text_alignment; ?>!important;
|
360 |
padding: <?php echo intval($masonry_layout_gallery_title_padding[0]); ?>px <?php echo intval($masonry_layout_gallery_title_padding[1]); ?>px <?php echo intval($masonry_layout_gallery_title_padding[2]); ?>px <?php echo intval($masonry_layout_gallery_title_padding[3]); ?>px !important;
|
361 |
font-family: <?php echo $font_family_name_layout[0]; ?>
|
362 |
}
|
363 |
+
#gallery_desc_container_<?php echo $random; ?> <?php echo $masonry_layout_gallery_description_html_tag; ?>
|
364 |
{
|
365 |
line-height: <?php echo $masonry_layout_gallery_description_line_height; ?> !important;
|
366 |
text-align: <?php echo $masonry_layout_gallery_description_text_alignment; ?> !important;
|
448 |
}
|
449 |
.fbx-caption
|
450 |
{
|
451 |
+
cursor: pointer !important;
|
452 |
}
|
453 |
.fbx-caption-title <?php echo $foo_box_image_title_html_tag; ?>
|
454 |
{
|
user-views/layouts/compact-album-layout/compact-album-layout.php
CHANGED
@@ -17,10 +17,10 @@ if (!defined("ABSPATH")) {
|
|
17 |
foreach ($gallery_data_unserialize as $gallery) {
|
18 |
?>
|
19 |
<div id="grid_wrapper_item_album_<?php echo $random . "_" . $gallery["id"]; ?>" class="compact_album_grid_wrapper_item gb_animate" data-animate="<?php echo isset($animation_effects) ? $animation_effects : 'none'; ?>" data-duration="1.0s" data-delay="0.1s" data-offset="100">
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
</a>
|
25 |
<div id="grid_content_item_album" class="compact_album_grid_content_item">
|
26 |
<?php
|
17 |
foreach ($gallery_data_unserialize as $gallery) {
|
18 |
?>
|
19 |
<div id="grid_wrapper_item_album_<?php echo $random . "_" . $gallery["id"]; ?>" class="compact_album_grid_wrapper_item gb_animate" data-animate="<?php echo isset($animation_effects) ? $animation_effects : 'none'; ?>" data-duration="1.0s" data-delay="0.1s" data-offset="100">
|
20 |
+
<a href="<?php echo esc_url(add_query_arg("gallery_id", intval($gallery["old_gallery_id"]))); ?>">
|
21 |
+
<div id="grid_item_album_image_<?php echo $random . "_" . $gallery["id"]; ?>" class="compact_album_grid_item_image_<?php echo $random; ?>" style="background:url('<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($gallery["gallery_cover_image"]); ?>');">
|
22 |
+
<img src="<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($gallery["gallery_cover_image"]); ?>"/>
|
23 |
+
</div>
|
24 |
</a>
|
25 |
<div id="grid_content_item_album" class="compact_album_grid_content_item">
|
26 |
<?php
|
user-views/layouts/masonry-layout/masonry-layout.php
CHANGED
@@ -26,50 +26,49 @@ if (!defined("ABSPATH")) {
|
|
26 |
if (isset($lightbox_type)) {
|
27 |
switch ($lightbox_type) {
|
28 |
case "no_lightbox" :
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
<a href="<?php echo $no_lightbox_imageurl; ?>" target="<?php echo $target; ?>">
|
33 |
-
<?php
|
34 |
-
}
|
35 |
-
break;
|
36 |
-
case "foo_box_free_edition":
|
37 |
-
?>
|
38 |
-
<a href="<?php echo $imageurl; ?>" class="foobox" target="<?php echo $target; ?>" rel="foobox_gallery_<?php echo $random; ?>" data-caption-title="<<?php echo isset($foobox_meta_data["foo_box_image_title_html_tag"]) ? $foobox_meta_data["foo_box_image_title_html_tag"] : "h1"; ?>><?php echo esc_attr($pic["image_title"]); ?></<?php echo isset($foobox_meta_data["foo_box_image_title_html_tag"]) ? $foobox_meta_data["foo_box_image_title_html_tag"] : "h1"; ?>>" data-caption-desc="<<?php echo isset($foobox_meta_data["foo_box_image_description_html_tag"]) ? $foobox_meta_data["foo_box_image_description_html_tag"] : "h1"; ?>><?php echo esc_attr($pic["image_description"]); ?></<?php echo isset($foobox_meta_data["foo_box_image_description_html_tag"]) ? $foobox_meta_data["foo_box_image_description_html_tag"] : "h1"; ?>>">
|
39 |
-
<?php
|
40 |
-
break;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
?>
|
44 |
-
<img src="<?php echo GALLERY_BANK_THUMBS_NON_CROPPED_URL . esc_attr($pic["image_name"]) ?>" title="<?php echo esc_attr($pic["image_title"]); ?>" alt="<?php echo $pic["alt_text"] ?>" image_full_path="<?php echo GALLERY_BANK_ORIGINAL_URL . esc_attr($pic["image_name"]); ?>" id="ux_gb_file_<?php echo $random . "_" . $pic["id"]; ?>" name="ux_gb_file" />
|
45 |
-
</a>
|
46 |
-
</div>
|
47 |
-
<div id="grid_content_item" class="masonry_grid_content_item">
|
48 |
-
<?php
|
49 |
-
if ($thumbnail_title == "show" && $pic["image_title"] != "") {
|
50 |
-
?>
|
51 |
-
<div id="grid_single_text_title_<?php echo $random . "_" . $pic["id"]; ?>" class="masonry_grid_single_text_title">
|
52 |
-
<<?php echo isset($masonry_layout_settings["masonry_layout_thumbnail_title_html_tag"]) ? esc_attr($masonry_layout_settings["masonry_layout_thumbnail_title_html_tag"]) : "h3"; ?>>
|
53 |
-
<?php echo isset($pic["image_title"]) ? htmlspecialchars_decode($pic["image_title"]) : ""; ?>
|
54 |
-
</<?php echo isset($masonry_layout_settings["masonry_layout_thumbnail_title_html_tag"]) ? esc_attr($masonry_layout_settings["masonry_layout_thumbnail_title_html_tag"]) : "h3"; ?>>
|
55 |
-
</div>
|
56 |
-
<?php
|
57 |
-
}
|
58 |
-
if ($thumbnail_description == "show" && $pic["image_description"] != "") {
|
59 |
-
?>
|
60 |
-
<div id="grid_single_text_desc_<?php echo $random . "_" . $pic["id"]; ?>" class="masonry_grid_single_text_desc">
|
61 |
-
<<?php echo isset($masonry_layout_settings["masonry_layout_thumbnail_description_html_tag"]) ? esc_attr($masonry_layout_settings["masonry_layout_thumbnail_description_html_tag"]) : "p"; ?>>
|
62 |
-
<?php echo isset($pic["image_description"]) ? htmlspecialchars_decode($pic["image_description"]) : ""; ?>
|
63 |
-
</<?php echo isset($masonry_layout_settings["masonry_layout_thumbnail_description_html_tag"]) ? esc_attr($masonry_layout_settings["masonry_layout_thumbnail_description_html_tag"]) : "p"; ?>>
|
64 |
-
</div>
|
65 |
-
<?php
|
66 |
-
}
|
67 |
-
?>
|
68 |
-
</div>
|
69 |
-
</div>
|
70 |
<?php
|
71 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
}
|
73 |
}
|
74 |
?>
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
if (isset($lightbox_type)) {
|
27 |
switch ($lightbox_type) {
|
28 |
case "no_lightbox" :
|
29 |
+
if ($enable_redirect == "1") {
|
30 |
+
?>
|
31 |
+
<a href="<?php echo $no_lightbox_imageurl; ?>" target="<?php echo $target; ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
<?php
|
33 |
}
|
34 |
+
break;
|
35 |
+
case "foo_box_free_edition":
|
36 |
+
?>
|
37 |
+
<a href="<?php echo $imageurl; ?>" class="foobox" target="<?php echo $target; ?>" rel="foobox_gallery_<?php echo $random; ?>" data-caption-title="<<?php echo isset($foobox_meta_data["foo_box_image_title_html_tag"]) ? $foobox_meta_data["foo_box_image_title_html_tag"] : "h1"; ?>><?php echo esc_attr($pic["image_title"]); ?></<?php echo isset($foobox_meta_data["foo_box_image_title_html_tag"]) ? $foobox_meta_data["foo_box_image_title_html_tag"] : "h1"; ?>>" data-caption-desc="<<?php echo isset($foobox_meta_data["foo_box_image_description_html_tag"]) ? $foobox_meta_data["foo_box_image_description_html_tag"] : "h1"; ?>><?php echo esc_attr($pic["image_description"]); ?></<?php echo isset($foobox_meta_data["foo_box_image_description_html_tag"]) ? $foobox_meta_data["foo_box_image_description_html_tag"] : "h1"; ?>>">
|
38 |
+
<?php
|
39 |
+
break;
|
40 |
}
|
41 |
}
|
42 |
?>
|
43 |
+
<img src="<?php echo GALLERY_BANK_THUMBS_NON_CROPPED_URL . esc_attr($pic["image_name"]) ?>" title="<?php echo esc_attr($pic["image_title"]); ?>" alt="<?php echo $pic["alt_text"] ?>" image_full_path="<?php echo GALLERY_BANK_ORIGINAL_URL . esc_attr($pic["image_name"]); ?>" id="ux_gb_file_<?php echo $random . "_" . $pic["id"]; ?>" name="ux_gb_file" />
|
44 |
+
</a>
|
45 |
+
</div>
|
46 |
+
<div id="grid_content_item" class="masonry_grid_content_item">
|
47 |
+
<?php
|
48 |
+
if ($thumbnail_title == "show" && $pic["image_title"] != "") {
|
49 |
+
?>
|
50 |
+
<div id="grid_single_text_title_<?php echo $random . "_" . $pic["id"]; ?>" class="masonry_grid_single_text_title">
|
51 |
+
<<?php echo isset($masonry_layout_settings["masonry_layout_thumbnail_title_html_tag"]) ? esc_attr($masonry_layout_settings["masonry_layout_thumbnail_title_html_tag"]) : "h3"; ?>>
|
52 |
+
<?php echo isset($pic["image_title"]) ? htmlspecialchars_decode($pic["image_title"]) : ""; ?>
|
53 |
+
</<?php echo isset($masonry_layout_settings["masonry_layout_thumbnail_title_html_tag"]) ? esc_attr($masonry_layout_settings["masonry_layout_thumbnail_title_html_tag"]) : "h3"; ?>>
|
54 |
+
</div>
|
55 |
+
<?php
|
56 |
+
}
|
57 |
+
if ($thumbnail_description == "show" && $pic["image_description"] != "") {
|
58 |
+
?>
|
59 |
+
<div id="grid_single_text_desc_<?php echo $random . "_" . $pic["id"]; ?>" class="masonry_grid_single_text_desc">
|
60 |
+
<<?php echo isset($masonry_layout_settings["masonry_layout_thumbnail_description_html_tag"]) ? esc_attr($masonry_layout_settings["masonry_layout_thumbnail_description_html_tag"]) : "p"; ?>>
|
61 |
+
<?php echo isset($pic["image_description"]) ? htmlspecialchars_decode($pic["image_description"]) : ""; ?>
|
62 |
+
</<?php echo isset($masonry_layout_settings["masonry_layout_thumbnail_description_html_tag"]) ? esc_attr($masonry_layout_settings["masonry_layout_thumbnail_description_html_tag"]) : "p"; ?>>
|
63 |
+
</div>
|
64 |
+
<?php
|
65 |
+
}
|
66 |
+
?>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
<?php
|
70 |
+
}
|
71 |
+
}
|
72 |
+
}
|
73 |
+
?>
|
74 |
+
</div>
|
user-views/layouts/thumbnail-layout/thumbnail-layout.php
CHANGED
@@ -25,51 +25,50 @@ if (!defined("ABSPATH")) {
|
|
25 |
if (isset($lightbox_type)) {
|
26 |
switch (esc_attr($lightbox_type)) {
|
27 |
case "no_lightbox" :
|
28 |
-
if($enable_redirect == "1")
|
29 |
-
|
30 |
-
|
31 |
-
<a href="<?php echo $no_lightbox_imageurl; ?>" target="<?php echo $target; ?>">
|
32 |
-
<?php
|
33 |
-
}
|
34 |
-
break;
|
35 |
-
case "foo_box_free_edition":
|
36 |
-
?>
|
37 |
-
<a href="<?php echo $imageurl; ?>" class="foobox" target="<?php echo $target; ?>" rel="foobox_gallery_<?php echo $random; ?>" data-caption-title="<<?php echo isset($foobox_meta_data["foo_box_image_title_html_tag"]) ? $foobox_meta_data["foo_box_image_title_html_tag"] : "h1"; ?>><?php echo esc_attr($pic["image_title"]); ?></<?php echo isset($foobox_meta_data["foo_box_image_title_html_tag"]) ? $foobox_meta_data["foo_box_image_title_html_tag"] : "h1"; ?>>" data-caption-desc="<<?php echo isset($foobox_meta_data["foo_box_image_description_html_tag"]) ? $foobox_meta_data["foo_box_image_description_html_tag"] : "h1"; ?>><?php echo esc_attr($pic["image_description"]); ?></<?php echo isset($foobox_meta_data["foo_box_image_description_html_tag"]) ? $foobox_meta_data["foo_box_image_description_html_tag"] : "h1"; ?>>">
|
38 |
-
<?php
|
39 |
-
break;
|
40 |
-
}
|
41 |
-
}
|
42 |
-
?>
|
43 |
-
<div id="grid_item_image_<?php echo $random . "_" . $pic["id"]; ?>" class="grid_item_image_<?php echo $random;?>" style="background:url('<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($pic["image_name"]); ?>');background-size:100% 100% !important;">
|
44 |
-
<img src="<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($pic["image_name"]); ?>" image_full_path="<?php echo $pic["file_type"] ?>" alt="<?php echo esc_attr($pic["alt_text"]); ?>" title="<?php echo esc_attr($pic["image_title"]); ?>" id="ux_gb_file" name= "ux_gb_file_<?php echo $random . "_" . $pic["id"]; ?>"/>
|
45 |
-
</div>
|
46 |
-
</a>
|
47 |
-
<div id="grid_content_item" class="grid_content_item">
|
48 |
-
<?php
|
49 |
-
if ($thumbnail_title == "show" && $pic["image_title"] != "") {
|
50 |
-
?>
|
51 |
-
<div id="grid_single_text_title_<?php echo $random . "_" . $pic["id"]; ?>" class="grid_single_text_title">
|
52 |
-
<<?php echo isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_title_html_tag"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_thumbnail_title_html_tag"]) : "h3"; ?>>
|
53 |
-
<?php echo isset($pic["image_title"]) ? htmlspecialchars_decode($pic["image_title"]) : ""; ?>
|
54 |
-
</<?php echo isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_title_html_tag"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_thumbnail_title_html_tag"]) : "h3"; ?>>
|
55 |
-
</div>
|
56 |
-
<?php
|
57 |
-
}
|
58 |
-
if ($thumbnail_description == "show" && $pic["image_description"] != "") {
|
59 |
-
?>
|
60 |
-
<div id="grid_single_text_desc_<?php echo $random; ?>" class="grid_single_text_desc">
|
61 |
-
<<?php echo isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_description_html_tag"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_thumbnail_description_html_tag"]) : "p"; ?>>
|
62 |
-
<?php echo isset($pic["image_description"]) ? htmlspecialchars_decode($pic["image_description"]) : ""; ?>
|
63 |
-
</<?php echo isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_description_html_tag"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_thumbnail_description_html_tag"]) : "p"; ?>>
|
64 |
-
</div>
|
65 |
-
<?php
|
66 |
-
}
|
67 |
-
?>
|
68 |
-
</div>
|
69 |
-
</div>
|
70 |
<?php
|
71 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
}
|
73 |
}
|
74 |
-
?>
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
if (isset($lightbox_type)) {
|
26 |
switch (esc_attr($lightbox_type)) {
|
27 |
case "no_lightbox" :
|
28 |
+
if ($enable_redirect == "1") {
|
29 |
+
?>
|
30 |
+
<a href="<?php echo $no_lightbox_imageurl; ?>" target="<?php echo $target; ?>">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
<?php
|
32 |
}
|
33 |
+
break;
|
34 |
+
case "foo_box_free_edition":
|
35 |
+
?>
|
36 |
+
<a href="<?php echo $imageurl; ?>" class="foobox" target="<?php echo $target; ?>" rel="foobox_gallery_<?php echo $random; ?>" data-caption-title="<<?php echo isset($foobox_meta_data["foo_box_image_title_html_tag"]) ? $foobox_meta_data["foo_box_image_title_html_tag"] : "h1"; ?>><?php echo esc_attr($pic["image_title"]); ?></<?php echo isset($foobox_meta_data["foo_box_image_title_html_tag"]) ? $foobox_meta_data["foo_box_image_title_html_tag"] : "h1"; ?>>" data-caption-desc="<<?php echo isset($foobox_meta_data["foo_box_image_description_html_tag"]) ? $foobox_meta_data["foo_box_image_description_html_tag"] : "h1"; ?>><?php echo esc_attr($pic["image_description"]); ?></<?php echo isset($foobox_meta_data["foo_box_image_description_html_tag"]) ? $foobox_meta_data["foo_box_image_description_html_tag"] : "h1"; ?>>">
|
37 |
+
<?php
|
38 |
+
break;
|
39 |
}
|
40 |
}
|
41 |
+
?>
|
42 |
+
<div id="grid_item_image_<?php echo $random . "_" . $pic["id"]; ?>" class="grid_item_image_<?php echo $random; ?>" style="background:url('<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($pic["image_name"]); ?>');background-size:100% 100% !important;">
|
43 |
+
<img src="<?php echo GALLERY_BANK_THUMBS_CROPPED_URL . esc_attr($pic["image_name"]); ?>" image_full_path="<?php echo $pic["file_type"] ?>" alt="<?php echo esc_attr($pic["alt_text"]); ?>" title="<?php echo esc_attr($pic["image_title"]); ?>" id="ux_gb_file" name= "ux_gb_file_<?php echo $random . "_" . $pic["id"]; ?>"/>
|
44 |
+
</div>
|
45 |
+
</a>
|
46 |
+
<div id="grid_content_item" class="grid_content_item">
|
47 |
+
<?php
|
48 |
+
if ($thumbnail_title == "show" && $pic["image_title"] != "") {
|
49 |
+
?>
|
50 |
+
<div id="grid_single_text_title_<?php echo $random . "_" . $pic["id"]; ?>" class="grid_single_text_title">
|
51 |
+
<<?php echo isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_title_html_tag"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_thumbnail_title_html_tag"]) : "h3"; ?>>
|
52 |
+
<?php echo isset($pic["image_title"]) ? htmlspecialchars_decode($pic["image_title"]) : ""; ?>
|
53 |
+
</<?php echo isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_title_html_tag"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_thumbnail_title_html_tag"]) : "h3"; ?>>
|
54 |
+
</div>
|
55 |
+
<?php
|
56 |
+
}
|
57 |
+
if ($thumbnail_description == "show" && $pic["image_description"] != "") {
|
58 |
+
?>
|
59 |
+
<div id="grid_single_text_desc_<?php echo $random; ?>" class="grid_single_text_desc">
|
60 |
+
<<?php echo isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_description_html_tag"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_thumbnail_description_html_tag"]) : "p"; ?>>
|
61 |
+
<?php echo isset($pic["image_description"]) ? htmlspecialchars_decode($pic["image_description"]) : ""; ?>
|
62 |
+
</<?php echo isset($thumbnail_layout_settings["thumbnail_layout_thumbnail_description_html_tag"]) ? esc_attr($thumbnail_layout_settings["thumbnail_layout_thumbnail_description_html_tag"]) : "p"; ?>>
|
63 |
+
</div>
|
64 |
+
<?php
|
65 |
+
}
|
66 |
+
?>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
<?php
|
70 |
+
}
|
71 |
+
}
|
72 |
+
}
|
73 |
+
?>
|
74 |
+
</div>
|
views/albums/add-album.php
CHANGED
@@ -53,14 +53,14 @@ if (!is_user_logged_in()) {
|
|
53 |
<i class="icon-custom-plus"></i>
|
54 |
<?php echo $gb_add_album; ?>
|
55 |
</div>
|
56 |
-
|
57 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
58 |
</p>
|
59 |
</div>
|
60 |
<div class="portlet-body form">
|
61 |
<form id="ux_frm_add_album">
|
62 |
<div class="form-body">
|
63 |
-
|
64 |
<?php
|
65 |
if ($gb_message_translate_help != "") {
|
66 |
?>
|
@@ -104,7 +104,7 @@ if (!is_user_logged_in()) {
|
|
104 |
<label class="control-label">
|
105 |
<?php echo $gb_album_title; ?> :
|
106 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_add_album_title_tooltip; ?>" data-placement="right"></i>
|
107 |
-
<span class="required" aria-required="true">*<?php echo " ("
|
108 |
</label>
|
109 |
<textarea rows="1" class="form-control" name="ux_txt_album_title" id="ux_txt_album_title" placeholder="<?php echo $gb_add_album_title_placeholder; ?>"><?php echo isset($get_album_data_unserialize["album_name"]) ? esc_attr($get_album_data_unserialize["album_name"]) : ""; ?></textarea>
|
110 |
</div>
|
@@ -112,7 +112,7 @@ if (!is_user_logged_in()) {
|
|
112 |
<label class="control-label">
|
113 |
<?php echo $gb_album_description; ?> :
|
114 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_add_album_description_tooltip; ?>" data-placement="right"></i>
|
115 |
-
<span class="required" aria-required="true">*<?php echo " ("
|
116 |
</label>
|
117 |
<?php
|
118 |
$gb_album_description_data = isset($get_album_data_unserialize["album_description"]) ? htmlspecialchars_decode($get_album_data_unserialize["album_description"]) : "";
|
@@ -128,7 +128,7 @@ if (!is_user_logged_in()) {
|
|
128 |
<label class="control-label">
|
129 |
<?php echo $gb_galleries_available; ?> :
|
130 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_galleries_available_tooltip; ?>" data-placement="right"></i>
|
131 |
-
<span class="required" aria-required="true">*<?php echo " ("
|
132 |
</label>
|
133 |
<select class="form-control" multiple="multiple" name="ux_ddl_available_galleries_duplicate" id="ux_ddl_available_galleries_duplicate" style="height:300px">
|
134 |
<?php
|
@@ -159,7 +159,7 @@ if (!is_user_logged_in()) {
|
|
159 |
<label class="control-label">
|
160 |
<?php echo $gb_galleries_included_in_this_album; ?> :
|
161 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_galleries_included_in_this_album_tooltip; ?>" data-placement="right"></i>
|
162 |
-
<span class="required" aria-required="true">*<?php echo " ("
|
163 |
</label>
|
164 |
<select class="form-control" multiple="multiple" name="ux_ddl_selected_galleries[]" id="ux_ddl_selected_galleries" style="height:300px">
|
165 |
<?php
|
53 |
<i class="icon-custom-plus"></i>
|
54 |
<?php echo $gb_add_album; ?>
|
55 |
</div>
|
56 |
+
<p class="premium-editions">
|
57 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
58 |
</p>
|
59 |
</div>
|
60 |
<div class="portlet-body form">
|
61 |
<form id="ux_frm_add_album">
|
62 |
<div class="form-body">
|
63 |
+
<div class="note note-warning">
|
64 |
<?php
|
65 |
if ($gb_message_translate_help != "") {
|
66 |
?>
|
104 |
<label class="control-label">
|
105 |
<?php echo $gb_album_title; ?> :
|
106 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_add_album_title_tooltip; ?>" data-placement="right"></i>
|
107 |
+
<span class="required" aria-required="true">*<?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
108 |
</label>
|
109 |
<textarea rows="1" class="form-control" name="ux_txt_album_title" id="ux_txt_album_title" placeholder="<?php echo $gb_add_album_title_placeholder; ?>"><?php echo isset($get_album_data_unserialize["album_name"]) ? esc_attr($get_album_data_unserialize["album_name"]) : ""; ?></textarea>
|
110 |
</div>
|
112 |
<label class="control-label">
|
113 |
<?php echo $gb_album_description; ?> :
|
114 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_add_album_description_tooltip; ?>" data-placement="right"></i>
|
115 |
+
<span class="required" aria-required="true">*<?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
116 |
</label>
|
117 |
<?php
|
118 |
$gb_album_description_data = isset($get_album_data_unserialize["album_description"]) ? htmlspecialchars_decode($get_album_data_unserialize["album_description"]) : "";
|
128 |
<label class="control-label">
|
129 |
<?php echo $gb_galleries_available; ?> :
|
130 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_galleries_available_tooltip; ?>" data-placement="right"></i>
|
131 |
+
<span class="required" aria-required="true">*<?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
132 |
</label>
|
133 |
<select class="form-control" multiple="multiple" name="ux_ddl_available_galleries_duplicate" id="ux_ddl_available_galleries_duplicate" style="height:300px">
|
134 |
<?php
|
159 |
<label class="control-label">
|
160 |
<?php echo $gb_galleries_included_in_this_album; ?> :
|
161 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_galleries_included_in_this_album_tooltip; ?>" data-placement="right"></i>
|
162 |
+
<span class="required" aria-required="true">*<?php echo " (" . $gb_premium_label . " )"; ?></span>
|
163 |
</label>
|
164 |
<select class="form-control" multiple="multiple" name="ux_ddl_selected_galleries[]" id="ux_ddl_selected_galleries" style="height:300px">
|
165 |
<?php
|
views/albums/manage-albums.php
CHANGED
@@ -53,14 +53,14 @@ if (!is_user_logged_in()) {
|
|
53 |
<i class="icon-custom-folder"></i>
|
54 |
<?php echo $gb_manage_albums; ?>
|
55 |
</div>
|
56 |
-
|
57 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
58 |
</p>
|
59 |
</div>
|
60 |
<div class="portlet-body form">
|
61 |
<form id="ux_frm_manage_album">
|
62 |
<div class="form-body">
|
63 |
-
|
64 |
<?php
|
65 |
if ($gb_message_translate_help != "") {
|
66 |
?>
|
@@ -83,8 +83,8 @@ if (!is_user_logged_in()) {
|
|
83 |
<div class="table-top-margin">
|
84 |
<select name="ux_ddl_manage_albums" id="ux_ddl_manage_albums">
|
85 |
<option value=""><?php echo $gb_bulk_action; ?></option>
|
86 |
-
<option value="delete_albums" style="color:red;"><?php echo $gb_manage_delete_album." ("
|
87 |
-
<option value="duplicate_albums" style="color:red;"><?php echo $gb_manage_duplicate_album." ("
|
88 |
</select>
|
89 |
<input type="button" class="btn vivid-green" name="ux_btn_apply_manage_albums" id="ux_btn_apply_manage_albums" value="<?php echo $gb_apply; ?>" onclick="premium_edition_notification_gallery_bank();">
|
90 |
<a href="admin.php?page=gb_add_album" class="btn vivid-green"><?php echo $gb_add_album; ?></a>
|
53 |
<i class="icon-custom-folder"></i>
|
54 |
<?php echo $gb_manage_albums; ?>
|
55 |
</div>
|
56 |
+
<p class="premium-editions">
|
57 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
58 |
</p>
|
59 |
</div>
|
60 |
<div class="portlet-body form">
|
61 |
<form id="ux_frm_manage_album">
|
62 |
<div class="form-body">
|
63 |
+
<div class="note note-warning">
|
64 |
<?php
|
65 |
if ($gb_message_translate_help != "") {
|
66 |
?>
|
83 |
<div class="table-top-margin">
|
84 |
<select name="ux_ddl_manage_albums" id="ux_ddl_manage_albums">
|
85 |
<option value=""><?php echo $gb_bulk_action; ?></option>
|
86 |
+
<option value="delete_albums" style="color:red;"><?php echo $gb_manage_delete_album . " (" . $gb_premium_edition . " )"; ?></option>
|
87 |
+
<option value="duplicate_albums" style="color:red;"><?php echo $gb_manage_duplicate_album . " (" . $gb_premium_edition . " )"; ?></option>
|
88 |
</select>
|
89 |
<input type="button" class="btn vivid-green" name="ux_btn_apply_manage_albums" id="ux_btn_apply_manage_albums" value="<?php echo $gb_apply; ?>" onclick="premium_edition_notification_gallery_bank();">
|
90 |
<a href="admin.php?page=gb_add_album" class="btn vivid-green"><?php echo $gb_add_album; ?></a>
|
views/albums/sort-albums.php
CHANGED
@@ -53,14 +53,14 @@ if (!is_user_logged_in()) {
|
|
53 |
<i class="icon-custom-list"></i>
|
54 |
<?php echo $gb_sort_albums; ?>
|
55 |
</div>
|
56 |
-
|
57 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
58 |
</p>
|
59 |
</div>
|
60 |
<div class="portlet-body form">
|
61 |
<form id="ux_frm_sort_album">
|
62 |
<div class="form-body">
|
63 |
-
|
64 |
<?php
|
65 |
if ($gb_message_translate_help != "") {
|
66 |
?>
|
@@ -89,7 +89,7 @@ if (!is_user_logged_in()) {
|
|
89 |
<label class="control-label">
|
90 |
<?php echo $gb_choose_album_title; ?> :
|
91 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_sort_albums_choose_album_tooltip; ?>" data-placement="right"></i>
|
92 |
-
<span class="required" aria-required="true">*<?php echo " ("
|
93 |
</label>
|
94 |
<select name="ux_ddl_sort_albums" id="ux_ddl_sort_albums" class="form-control" onchange="choose_album_gallery_bank(this.value);">
|
95 |
<option value=""><?php echo $gb_sort_albums_choose_album_title; ?></option>
|
53 |
<i class="icon-custom-list"></i>
|
54 |
<?php echo $gb_sort_albums; ?>
|
55 |
</div>
|
56 |
+
<p class="premium-editions">
|
57 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
58 |
</p>
|
59 |
</div>
|
60 |
<div class="portlet-body form">
|
61 |
<form id="ux_frm_sort_album">
|
62 |
<div class="form-body">
|
63 |
+
<div class="note note-warning">
|
64 |
<?php
|
65 |
if ($gb_message_translate_help != "") {
|
66 |
?>
|
89 |
<label class="control-label">
|
90 |
<?php echo $gb_choose_album_title; ?> :
|
91 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_sort_albums_choose_album_tooltip; ?>" data-placement="right"></i>
|
92 |
+
<span class="required" aria-required="true">*<?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
93 |
</label>
|
94 |
<select name="ux_ddl_sort_albums" id="ux_ddl_sort_albums" class="form-control" onchange="choose_album_gallery_bank(this.value);">
|
95 |
<option value=""><?php echo $gb_sort_albums_choose_album_title; ?></option>
|
views/feature-requests/feature-requests.php
CHANGED
@@ -7,113 +7,113 @@
|
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
-
|
11 |
} // Exit if accessed directly
|
12 |
if (!is_user_logged_in()) {
|
13 |
-
|
14 |
} else {
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
</div>
|
50 |
-
<
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
<?php echo $gb_feature_requests_email_title; ?> :
|
90 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_feature_requests_email_tooltip; ?>" data-placement="right"></i>
|
91 |
-
<span class="required" aria-required="true">*</span>
|
92 |
-
</label>
|
93 |
-
<input type="text" class="form-control" name="ux_txt_email_address" id="ux_txt_email_address" value="" placeholder="<?php echo $gb_feature_requests_email_placeholder; ?>">
|
94 |
-
</div>
|
95 |
-
</div>
|
96 |
-
</div>
|
97 |
-
<div class="form-group">
|
98 |
-
<label class="control-label">
|
99 |
-
<?php echo $gb_feature_requests; ?> :
|
100 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_feature_requests_tooltip; ?>" data-placement="right"></i>
|
101 |
-
<span class="required" aria-required="true">*</span>
|
102 |
-
</label>
|
103 |
-
<textarea class="form-control" name="ux_txtarea_feature_request" id="ux_txtarea_feature_request" rows="8" placeholder="<?php echo $gb_feature_requests_placeholder; ?>"></textarea>
|
104 |
-
</div>
|
105 |
-
<div class="line-separator"></div>
|
106 |
-
<div class="form-actions">
|
107 |
-
<div class="pull-right">
|
108 |
-
<button type="submit" class="btn vivid-green" name="ux_btn_send_request" id="ux_btn_send_request"><?php echo $gb_feature_requests_send_request; ?></button>
|
109 |
-
</div>
|
110 |
-
</div>
|
111 |
-
</div>
|
112 |
-
</form>
|
113 |
-
</div>
|
114 |
-
</div>
|
115 |
</div>
|
116 |
-
|
117 |
-
|
118 |
-
|
|
|
119 |
}
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
+
exit;
|
11 |
} // Exit if accessed directly
|
12 |
if (!is_user_logged_in()) {
|
13 |
+
return;
|
14 |
} else {
|
15 |
+
$access_granted = false;
|
16 |
+
foreach ($user_role_permission as $permission) {
|
17 |
+
if (current_user_can($permission)) {
|
18 |
+
$access_granted = true;
|
19 |
+
break;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
if (!$access_granted) {
|
23 |
+
return;
|
24 |
+
} else {
|
25 |
+
?>
|
26 |
+
<div class="page-bar">
|
27 |
+
<ul class="page-breadcrumb">
|
28 |
+
<li>
|
29 |
+
<i class="icon-custom-home"></i>
|
30 |
+
<a href="admin.php?page=gallery_bank">
|
31 |
+
<?php echo $gallery_bank; ?>
|
32 |
+
</a>
|
33 |
+
<span>></span>
|
34 |
+
</li>
|
35 |
+
<li>
|
36 |
+
<span>
|
37 |
+
<?php echo $gb_feature_requests; ?>
|
38 |
+
</span>
|
39 |
+
</li>
|
40 |
+
</ul>
|
41 |
+
</div>
|
42 |
+
<div class="row">
|
43 |
+
<div class="col-md-12">
|
44 |
+
<div class="portlet box vivid-green">
|
45 |
+
<div class="portlet-title">
|
46 |
+
<div class="caption">
|
47 |
+
<i class="icon-custom-call-out"></i>
|
48 |
+
<?php echo $gb_feature_requests; ?>
|
49 |
+
</div>
|
50 |
+
<p class="premium-editions">
|
51 |
+
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
52 |
+
</p>
|
53 |
+
</div>
|
54 |
+
<div class="portlet-body form">
|
55 |
+
<form id="ux_frm_feature_requests">
|
56 |
+
<div class="form-body">
|
57 |
+
<div class="note note-warning">
|
58 |
+
<?php
|
59 |
+
if ($gb_message_translate_help != "") {
|
60 |
+
?>
|
61 |
+
<h4 class="block">
|
62 |
+
<?php echo $gb_important_disclaimer; ?>
|
63 |
+
</h4>
|
64 |
+
<p><strong><?php echo $gb_message_translate_help; ?> <a href="javascript:void(0);" data-popup-open="ux_open_popup_translator" class="custom_links_feature" onclick="show_pop_up_gallery_bank();"><?php echo $gb_message_translate_here; ?></a></strong></p>
|
65 |
+
<?php
|
66 |
+
}
|
67 |
+
?>
|
68 |
+
<h4 class="block"><?php echo $gb_feature_requests_thank_you; ?></h4>
|
69 |
+
<p><?php echo $gb_feature_requests_fill_form; ?></p>
|
70 |
+
<p><?php echo $gb_feature_requests_any_suggestion; ?></p>
|
71 |
+
<p><?php echo $gb_feature_requests_write_us_on; ?>
|
72 |
+
<a href="mailto:support@tech-banker.com" target="_blank">support@tech-banker.com</a>
|
73 |
+
</p>
|
74 |
</div>
|
75 |
+
<div class="row">
|
76 |
+
<div class="col-md-6">
|
77 |
+
<div class="form-group">
|
78 |
+
<label class="control-label">
|
79 |
+
<?php echo $gb_feature_requests_name_title; ?> :
|
80 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_feature_requests_name_tooltip; ?>" data-placement="right"></i>
|
81 |
+
<span class="required" aria-required="true">*</span>
|
82 |
+
</label>
|
83 |
+
<input type="text" class="form-control" name="ux_txt_your_name" id="ux_txt_your_name" value="" placeholder="<?php echo $gb_feature_requests_name_placeholder; ?>">
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
<div class=col-md-6>
|
87 |
+
<div class="form-group">
|
88 |
+
<label class="control-label">
|
89 |
+
<?php echo $gb_feature_requests_email_title; ?> :
|
90 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_feature_requests_email_tooltip; ?>" data-placement="right"></i>
|
91 |
+
<span class="required" aria-required="true">*</span>
|
92 |
+
</label>
|
93 |
+
<input type="text" class="form-control" name="ux_txt_email_address" id="ux_txt_email_address" value="" placeholder="<?php echo $gb_feature_requests_email_placeholder; ?>">
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
<div class="form-group">
|
98 |
+
<label class="control-label">
|
99 |
+
<?php echo $gb_feature_requests; ?> :
|
100 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_feature_requests_tooltip; ?>" data-placement="right"></i>
|
101 |
+
<span class="required" aria-required="true">*</span>
|
102 |
+
</label>
|
103 |
+
<textarea class="form-control" name="ux_txtarea_feature_request" id="ux_txtarea_feature_request" rows="8" placeholder="<?php echo $gb_feature_requests_placeholder; ?>"></textarea>
|
104 |
+
</div>
|
105 |
+
<div class="line-separator"></div>
|
106 |
+
<div class="form-actions">
|
107 |
+
<div class="pull-right">
|
108 |
+
<button type="submit" class="btn vivid-green" name="ux_btn_send_request" id="ux_btn_send_request"><?php echo $gb_feature_requests_send_request; ?></button>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
</form>
|
113 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
</div>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
<?php
|
118 |
+
}
|
119 |
}
|
views/galleries/add-gallery.php
CHANGED
@@ -75,14 +75,14 @@ if (!is_user_logged_in()) {
|
|
75 |
<i class="icon <?php echo isset($_REQUEST["mode"]) && esc_attr($_REQUEST["mode"]) == "edit" ? "icon-custom-note" : "icon-custom-plus"; ?>"></i>
|
76 |
<?php echo isset($_REQUEST["mode"]) && esc_attr($_REQUEST["mode"]) == "edit" ? $gb_update_gallery : $gb_add_gallery; ?>
|
77 |
</div>
|
78 |
-
|
79 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
80 |
</p>
|
81 |
</div>
|
82 |
<div class="portlet-body form">
|
83 |
<form id="ux_frm_add_gallery">
|
84 |
<div class="form-body">
|
85 |
-
|
86 |
<?php
|
87 |
if ($gb_message_translate_help != "") {
|
88 |
?>
|
@@ -163,38 +163,38 @@ if (!is_user_logged_in()) {
|
|
163 |
</li>
|
164 |
</ul>
|
165 |
<div class="tab-content">
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
</div>
|
199 |
</div>
|
200 |
</div>
|
@@ -204,15 +204,15 @@ if (!is_user_logged_in()) {
|
|
204 |
<div class="table-top-margin">
|
205 |
<select name="ux_ddl_add_gallery" id="ux_ddl_add_gallery">
|
206 |
<option value=""><?php echo $gb_bulk_action; ?></option>
|
207 |
-
<option value="delete" style="color:red;"><?php echo $gb_add_gallery_option_delete_images." ("
|
208 |
-
<option value="copy" style="color:red;"><?php echo $gb_add_gallery_option_copy_images." ("
|
209 |
-
<option value="move" style="color:red;"><?php echo $gb_add_gallery_option_move_images." ("
|
210 |
-
<option value="rotate_clockwise" style="color:red;"><?php echo $gb_add_gallery_option_rotate_clockwise_images." ("
|
211 |
-
<option value="rotate_anticlockwise" style="color:red;"><?php echo $gb_add_gallery_option_rotate_anti_clockwise_images." ("
|
212 |
-
<option value="flip_vertically" style="color:red;"><?php echo $gb_add_gallery_option_flip_images_vertically." ("
|
213 |
-
<option value="flip_horizontally" style="color:red;"><?php echo $gb_add_gallery_option_flip_images_horizontally." ("
|
214 |
-
<option value="restore_image" style="color:red;"><?php echo $gb_add_gallery_option_restore_image." ("
|
215 |
-
<option value="watermark_image" style="color:red;"><?php echo $gb_add_gallery_option_apply_watermark." ("
|
216 |
</select>
|
217 |
<input type="button" class="btn vivid-green" name="ux_btn_bulk_action" id="ux_btn_bulk_action" value="<?php echo $gb_apply; ?>" onclick="premium_edition_notification_gallery_bank();">
|
218 |
</div>
|
75 |
<i class="icon <?php echo isset($_REQUEST["mode"]) && esc_attr($_REQUEST["mode"]) == "edit" ? "icon-custom-note" : "icon-custom-plus"; ?>"></i>
|
76 |
<?php echo isset($_REQUEST["mode"]) && esc_attr($_REQUEST["mode"]) == "edit" ? $gb_update_gallery : $gb_add_gallery; ?>
|
77 |
</div>
|
78 |
+
<p class="premium-editions">
|
79 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
80 |
</p>
|
81 |
</div>
|
82 |
<div class="portlet-body form">
|
83 |
<form id="ux_frm_add_gallery">
|
84 |
<div class="form-body">
|
85 |
+
<div class="note note-warning">
|
86 |
<?php
|
87 |
if ($gb_message_translate_help != "") {
|
88 |
?>
|
163 |
</li>
|
164 |
</ul>
|
165 |
<div class="tab-content">
|
166 |
+
<div class="tab-pane active" id="local_system">
|
167 |
+
<div id="local_file_upload">
|
168 |
+
<p><?php echo $gb_add_gallery_local_system_notification; ?></p>
|
169 |
+
</div>
|
170 |
+
</div>
|
171 |
+
<div class="tab-pane" id="wp_media" style="text-align:center">
|
172 |
+
<div class="form-group">
|
173 |
+
<h4><?php echo $gb_add_gallery_wp_media_guide_title; ?></h4>
|
174 |
+
</div>
|
175 |
+
<div class="form-group">
|
176 |
+
<a class="btn vivid-green" id="wp_media_upload_button" onclick="premium_edition_notification_gallery_bank();">
|
177 |
+
<?php echo $gb_add_gallery_upload_thumbnail; ?>
|
178 |
+
</a>
|
179 |
+
<p id="wp_media_upload_error_message" style="display:none;">
|
180 |
+
<?php echo $gb_add_gallery_wp_media_notification; ?>
|
181 |
+
</p>
|
182 |
+
</div>
|
183 |
+
</div>
|
184 |
+
<div class="tab-pane" id="upload_ftp" style="text-align:left">
|
185 |
+
<div class="form-group">
|
186 |
+
<h4><?php echo $gb_add_gallery_select_folder_import; ?></h4>
|
187 |
+
</div>
|
188 |
+
<div class="form-group" id="ux_wp_dir_browser">
|
189 |
+
</div>
|
190 |
+
<div class="form-group">
|
191 |
+
<label><?php echo WP_CONTENT_DIR; ?></label>
|
192 |
+
<input type="text" disabled="disabled" id="ux_txt_ftp_path" name="ux_txt_ftp_path" class="form-control input-inline custom-gallery-type" placeholder="<?php echo $gb_add_gallery_directory_path_placeholder; ?>" value="">
|
193 |
+
</div>
|
194 |
+
<div class="form-group">
|
195 |
+
<button class="btn vivid-green" type="button" onclick="premium_edition_notification_gallery_bank();"><?php echo $gb_add_gallery_import_images; ?></button>
|
196 |
+
</div>
|
197 |
+
</div>
|
198 |
</div>
|
199 |
</div>
|
200 |
</div>
|
204 |
<div class="table-top-margin">
|
205 |
<select name="ux_ddl_add_gallery" id="ux_ddl_add_gallery">
|
206 |
<option value=""><?php echo $gb_bulk_action; ?></option>
|
207 |
+
<option value="delete" style="color:red;"><?php echo $gb_add_gallery_option_delete_images . " (" . $gb_premium_edition . " )"; ?></option>
|
208 |
+
<option value="copy" style="color:red;"><?php echo $gb_add_gallery_option_copy_images . " (" . $gb_premium_edition . " )"; ?></option>
|
209 |
+
<option value="move" style="color:red;"><?php echo $gb_add_gallery_option_move_images . " (" . $gb_premium_edition . " )"; ?></option>
|
210 |
+
<option value="rotate_clockwise" style="color:red;"><?php echo $gb_add_gallery_option_rotate_clockwise_images . " (" . $gb_premium_edition . " )"; ?></option>
|
211 |
+
<option value="rotate_anticlockwise" style="color:red;"><?php echo $gb_add_gallery_option_rotate_anti_clockwise_images . " (" . $gb_premium_edition . " )"; ?></option>
|
212 |
+
<option value="flip_vertically" style="color:red;"><?php echo $gb_add_gallery_option_flip_images_vertically . " (" . $gb_premium_edition . " )"; ?></option>
|
213 |
+
<option value="flip_horizontally" style="color:red;"><?php echo $gb_add_gallery_option_flip_images_horizontally . " (" . $gb_premium_edition . " )"; ?></option>
|
214 |
+
<option value="restore_image" style="color:red;"><?php echo $gb_add_gallery_option_restore_image . " (" . $gb_premium_edition . " )"; ?></option>
|
215 |
+
<option value="watermark_image" style="color:red;"><?php echo $gb_add_gallery_option_apply_watermark . " (" . $gb_premium_edition . " )"; ?></option>
|
216 |
</select>
|
217 |
<input type="button" class="btn vivid-green" name="ux_btn_bulk_action" id="ux_btn_bulk_action" value="<?php echo $gb_apply; ?>" onclick="premium_edition_notification_gallery_bank();">
|
218 |
</div>
|
views/galleries/manage-galleries.php
CHANGED
@@ -54,14 +54,14 @@ if (!is_user_logged_in()) {
|
|
54 |
<i class="icon-custom-picture"></i>
|
55 |
<?php echo $gb_manage_galleries; ?>
|
56 |
</div>
|
57 |
-
|
58 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
59 |
</p>
|
60 |
</div>
|
61 |
<div class="portlet-body form">
|
62 |
<form id="ux_frm_manage_gallery_bank">
|
63 |
<div class="form-body">
|
64 |
-
|
65 |
<?php
|
66 |
if ($gb_message_translate_help != "") {
|
67 |
?>
|
@@ -83,8 +83,8 @@ if (!is_user_logged_in()) {
|
|
83 |
<div class="table-top-margin">
|
84 |
<select name="ux_ddl_manage_galleries" id="ux_ddl_manage_galleries">
|
85 |
<option value=""><?php echo $gb_bulk_action; ?></option>
|
86 |
-
<option value="delete_galleries" style="color:red;"><?php echo $gb_manage_galleries_delete_gallery." ("
|
87 |
-
<option value="duplicate_galleries" style="color:red;"><?php echo $gb_manage_galleries_duplicate_gallery." ("
|
88 |
</select>
|
89 |
<input type="button" class="btn vivid-green" name="ux_btn_apply_manage_galleries" id="ux_btn_apply_manage_galleries" value="<?php echo $gb_apply; ?>" onclick="premium_edition_notification_gallery_bank()">
|
90 |
<a href="javascript:;" onclick="get_gallery_id_gallery_bank();" class="btn vivid-green"><?php echo $gb_add_gallery; ?></a>
|
@@ -313,9 +313,9 @@ if (!is_user_logged_in()) {
|
|
313 |
</div>
|
314 |
</div>
|
315 |
<div class="portlet-body form">
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
</div>
|
320 |
</div>
|
321 |
</div>
|
54 |
<i class="icon-custom-picture"></i>
|
55 |
<?php echo $gb_manage_galleries; ?>
|
56 |
</div>
|
57 |
+
<p class="premium-editions">
|
58 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
59 |
</p>
|
60 |
</div>
|
61 |
<div class="portlet-body form">
|
62 |
<form id="ux_frm_manage_gallery_bank">
|
63 |
<div class="form-body">
|
64 |
+
<div class="note note-warning">
|
65 |
<?php
|
66 |
if ($gb_message_translate_help != "") {
|
67 |
?>
|
83 |
<div class="table-top-margin">
|
84 |
<select name="ux_ddl_manage_galleries" id="ux_ddl_manage_galleries">
|
85 |
<option value=""><?php echo $gb_bulk_action; ?></option>
|
86 |
+
<option value="delete_galleries" style="color:red;"><?php echo $gb_manage_galleries_delete_gallery . " (" . $gb_premium_edition . " )"; ?></option>
|
87 |
+
<option value="duplicate_galleries" style="color:red;"><?php echo $gb_manage_galleries_duplicate_gallery . " (" . $gb_premium_edition . " )"; ?></option>
|
88 |
</select>
|
89 |
<input type="button" class="btn vivid-green" name="ux_btn_apply_manage_galleries" id="ux_btn_apply_manage_galleries" value="<?php echo $gb_apply; ?>" onclick="premium_edition_notification_gallery_bank()">
|
90 |
<a href="javascript:;" onclick="get_gallery_id_gallery_bank();" class="btn vivid-green"><?php echo $gb_add_gallery; ?></a>
|
313 |
</div>
|
314 |
</div>
|
315 |
<div class="portlet-body form">
|
316 |
+
<div class="form-body">
|
317 |
+
<strong><?php echo $gb_user_access_message; ?></strong>
|
318 |
+
</div>
|
319 |
</div>
|
320 |
</div>
|
321 |
</div>
|
views/galleries/sort-galleries.php
CHANGED
@@ -54,14 +54,14 @@ if (!is_user_logged_in()) {
|
|
54 |
<i class="icon-custom-list"></i>
|
55 |
<?php echo $gb_sort_galleries; ?>
|
56 |
</div>
|
57 |
-
|
58 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
59 |
</p>
|
60 |
</div>
|
61 |
<div class="portlet-body form">
|
62 |
<form id="ux_frm_sort_galleries">
|
63 |
<div class="form-body">
|
64 |
-
|
65 |
<?php
|
66 |
if ($gb_message_translate_help != "") {
|
67 |
?>
|
@@ -90,7 +90,7 @@ if (!is_user_logged_in()) {
|
|
90 |
<label class="control-label">
|
91 |
<?php echo $gb_choose_gallery_title; ?> :
|
92 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_sort_galleries_choose_gallery_tooltip; ?>" data-placement="right"></i>
|
93 |
-
<span class="required" aria-required="true">*<?php echo " ("
|
94 |
</label>
|
95 |
<select name="ux_ddl_sort_galleries" id="ux_ddl_sort_galleries" class="form-control" onchange="choose_gallery_gallery_bank(this.value);">
|
96 |
<option value=""><?php echo $gb_sort_galleries_choose_gallery_title; ?></option>
|
54 |
<i class="icon-custom-list"></i>
|
55 |
<?php echo $gb_sort_galleries; ?>
|
56 |
</div>
|
57 |
+
<p class="premium-editions">
|
58 |
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
59 |
</p>
|
60 |
</div>
|
61 |
<div class="portlet-body form">
|
62 |
<form id="ux_frm_sort_galleries">
|
63 |
<div class="form-body">
|
64 |
+
<div class="note note-warning">
|
65 |
<?php
|
66 |
if ($gb_message_translate_help != "") {
|
67 |
?>
|
90 |
<label class="control-label">
|
91 |
<?php echo $gb_choose_gallery_title; ?> :
|
92 |
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_sort_galleries_choose_gallery_tooltip; ?>" data-placement="right"></i>
|
93 |
+
<span class="required" aria-required="true">*<?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
94 |
</label>
|
95 |
<select name="ux_ddl_sort_galleries" id="ux_ddl_sort_galleries" class="form-control" onchange="choose_gallery_gallery_bank(this.value);">
|
96 |
<option value=""><?php echo $gb_sort_galleries_choose_gallery_title; ?></option>
|
views/general-settings/advertisement.php
CHANGED
@@ -7,269 +7,269 @@
|
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
-
|
11 |
} // Exit if accessed directly
|
12 |
if (!is_user_logged_in()) {
|
13 |
-
|
14 |
} else {
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
</div>
|
59 |
-
<
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
<
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
</div>
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
92 |
<label class="control-label">
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
</label>
|
97 |
-
<select name="
|
98 |
-
|
99 |
-
|
100 |
-
|
|
|
|
|
101 |
</select>
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
<label class="control-label">
|
106 |
-
<?php echo $gb_advertisement_text_title; ?> :
|
107 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_text_tooltip; ?>" data-placement="right"></i>
|
108 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
109 |
-
</label>
|
110 |
-
<input type="text" class="form-control" name="ux_txt_advertisement_text" id="ux_txt_advertisement_text" value="<?php echo isset($advertisement_get_data["advertisement_text"]) ? esc_attr($advertisement_get_data["advertisement_text"]) : ""; ?>" placeholder="<?php echo $gb_advertisement_text_placeholder; ?>">
|
111 |
-
</div>
|
112 |
-
</div>
|
113 |
-
<div id="ux_div_advertisement_url">
|
114 |
-
<div class="form-group">
|
115 |
-
<label class="control-label">
|
116 |
-
<?php echo $gb_advertisement_link_title; ?> :
|
117 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_link_tooltip; ?>" data-placement="right"></i>
|
118 |
-
</label>
|
119 |
-
<input type="text" class="form-control" name="ux_txt_advertisement_link" id="ux_txt_advertisement_link" value="<?php echo isset($advertisement_get_data["advertisement_link"]) ? esc_attr($advertisement_get_data["advertisement_link"]) : ""; ?>" placeholder="<?php echo $gb_advertisemnt_link_placeholder; ?>">
|
120 |
-
</div>
|
121 |
-
</div>
|
122 |
-
<div id="ux_div_advertisement_opacity">
|
123 |
-
<div class="form-group">
|
124 |
-
<label class="control-label">
|
125 |
-
<?php echo $gb_advertisemnt_link_opacity_title; ?> :
|
126 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisemnt_link_opacity_tooltip; ?>" data-placement="right"></i>
|
127 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
128 |
-
</label>
|
129 |
-
<input type="text" class="form-control" name="ux_txt_advertisement_opacity" id="ux_txt_advertisement_opacity" onchange="check_opacity_gallery_bank(this)" onblur="default_value_gallery_bank('#ux_txt_advertisement_opacity', 100)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" value="<?php echo isset($advertisement_get_data["advertisement_opacity"]) ? intval($advertisement_get_data["advertisement_opacity"]) : 100; ?>" placeholder="<?php echo $gb_opacity_placeholder; ?>">
|
130 |
-
</div>
|
131 |
-
</div>
|
132 |
-
<div id="ux_div_style" style="display:none">
|
133 |
-
<div class="row">
|
134 |
-
<div class="col-md-6">
|
135 |
-
<div class="form-group">
|
136 |
-
<label class="control-label">
|
137 |
-
<?php echo $gb_font_style; ?> :
|
138 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_font_style_tooltip; ?>" data-placement="right"></i>
|
139 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
140 |
-
</label>
|
141 |
-
<div class="input-icon right">
|
142 |
-
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_advertise_font[]" id="ux_txt_advertise_size" placeholder="<?php echo $gb_font_size_placeholder; ?>" onblur="default_value_gallery_bank('#ux_txt_advertise_size', 20)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($advertisement_font_style[0]); ?>" >
|
143 |
-
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_advertise_font[]" id="ux_txt_advertisement_color" onfocus="color_picker_gallery_bank(this, this.value)" onblur="default_value_gallery_bank('#ux_txt_advertisement_color', '#cccccc')" placeholder="<?php echo $gb_color_placeholder; ?>" value="<?php echo esc_attr($advertisement_font_style[1]); ?>" >
|
144 |
-
</div>
|
145 |
-
</div>
|
146 |
-
</div>
|
147 |
-
<div class="col-md-6">
|
148 |
-
<div class="form-group">
|
149 |
-
<label class="control-label">
|
150 |
-
<?php echo $gb_font_family_title; ?> :
|
151 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisemnt_link_font_family_tooltip; ?>" data-placement="right"></i>
|
152 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
153 |
-
</label>
|
154 |
-
<select name="ux_ddl_font" id="ux_ddl_font" class="form-control">
|
155 |
-
<?php
|
156 |
-
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "includes/web-fonts.php")) {
|
157 |
-
include GALLERY_BANK_PLUGIN_DIR_PATH . "includes/web-fonts.php";
|
158 |
-
}
|
159 |
-
?>
|
160 |
-
</select>
|
161 |
-
</div>
|
162 |
-
</div>
|
163 |
-
</div>
|
164 |
-
</div>
|
165 |
-
<div id="ux_div_advertisement_image" style="display:none">
|
166 |
-
<div class="form-group">
|
167 |
-
<label class="control-label">
|
168 |
-
<?php echo $gb_advertisement_url_title; ?> :
|
169 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_url_tooltip; ?>" data-placement="right"></i>
|
170 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
171 |
-
</label>
|
172 |
-
<input class="form-control custom-input-large input-inline" name="ux_txt_advertisement_url" id="ux_txt_advertisement_url" value="<?php echo isset($advertisement_get_data["advertisement_url"]) ? esc_attr($advertisement_get_data["advertisement_url"]) : ""; ?>" placeholder="<?php echo $gb_url_placeholder; ?>" type="text">
|
173 |
-
<input id="wp_upload_button" class="btn vivid-green" value="<?php echo $gb_url_add_image; ?>" type="button" onclick="premium_edition_notification_gallery_bank();">
|
174 |
-
<p id="wp_media_upload_error_message" style="display: none;"><?php echo $gb_url_message; ?></p>
|
175 |
-
</div>
|
176 |
-
<div class="row">
|
177 |
-
<div class="col-md-6">
|
178 |
-
<div class="form-group">
|
179 |
-
<label class="control-label">
|
180 |
-
<?php echo $gb_advertisement_width_title; ?> :
|
181 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_width_tooltip; ?>" data-placement="right"></i>
|
182 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
183 |
-
</label>
|
184 |
-
<input type="text" class="form-control" name="ux_txt_advertisment_width" id="ux_txt_advertisment_size" value="<?php echo isset($advertisement_get_data["advertisement_width"]) ? intval($advertisement_get_data["advertisement_width"]) : 100; ?>" placeholder="<?php echo $gb_advertisement_width_placeholder; ?>" onblur="default_value_gallery_bank('#ux_txt_advertisment_size', 100)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);">
|
185 |
-
</div>
|
186 |
-
</div>
|
187 |
-
<div class="col-md-6">
|
188 |
-
<div class="form-group">
|
189 |
-
<label class="control-label">
|
190 |
-
<?php echo $gb_advertisement_height_title; ?> :
|
191 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_height_tooltip; ?>" data-placement="right"></i>
|
192 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
193 |
-
</label>
|
194 |
-
<input type="text" class="form-control" name="ux_txt_advertisment_height" id="ux_txt_advertisment_height" value="<?php echo isset($advertisement_get_data["advertisement_height"]) ? intval($advertisement_get_data["advertisement_height"]) : 100; ?>" placeholder="<?php echo $gb_advertisement_hieght_placeholder; ?>" onblur="default_value_gallery_bank('#ux_txt_advertisment_height', 100)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);">
|
195 |
-
</div>
|
196 |
-
</div>
|
197 |
-
</div>
|
198 |
-
</div>
|
199 |
-
<div id="ux_div_font" style="display:none">
|
200 |
-
<div class="form-group">
|
201 |
-
<label class="control-label">
|
202 |
-
<?php echo $gb_advertisement_position_title; ?> :
|
203 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_position_tooltip; ?>" data-placement="right"></i>
|
204 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
205 |
-
</label>
|
206 |
-
<select name="ux_ddl_advertisement_position" id="ux_ddl_advertisement_position" class="form-control">
|
207 |
-
<option value="top_left"><?php echo $gb_position_top_left; ?></option>
|
208 |
-
<option value="top_center"><?php echo $gb_position_top_center; ?></option>
|
209 |
-
<option value="top_right"><?php echo $gb_position_top_right; ?></option>
|
210 |
-
<option value="middle_left"><?php echo $gb_position_middle_left; ?></option>
|
211 |
-
<option value="middle_center"><?php echo $gb_position_middle_center; ?></option>
|
212 |
-
<option value="middle_right"><?php echo $gb_position_middle_right; ?></option>
|
213 |
-
<option value="bottom_left"><?php echo $gb_position_bottom_left; ?></option>
|
214 |
-
<option value="bottom_center"><?php echo $gb_position_bottom_center; ?></option>
|
215 |
-
<option value="bottom_right"><?php echo $gb_position_bottom_right; ?></option>
|
216 |
-
</select>
|
217 |
-
</div>
|
218 |
-
</div>
|
219 |
-
<div class="line-separator"></div>
|
220 |
-
<div class="form-actions">
|
221 |
-
<div class="pull-right">
|
222 |
-
<input type="submit" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" value="<?php echo $gb_save_changes ?>">
|
223 |
-
</div>
|
224 |
-
</div>
|
225 |
-
</div>
|
226 |
-
</form>
|
227 |
-
</div>
|
228 |
-
</div>
|
229 |
-
</div>
|
230 |
-
</div>
|
231 |
-
<?php
|
232 |
-
} else {
|
233 |
-
?>
|
234 |
-
<div class="page-bar">
|
235 |
-
<ul class="page-breadcrumb">
|
236 |
-
<li>
|
237 |
-
<i class="icon-custom-home"></i>
|
238 |
-
<a href="admin.php?page=gallery_bank">
|
239 |
-
<?php echo $gallery_bank; ?>
|
240 |
-
</a>
|
241 |
-
<span>></span>
|
242 |
-
</li>
|
243 |
-
<li>
|
244 |
-
<a href="admin.php?page=gb_global_options">
|
245 |
-
<?php echo $gb_general_settings; ?>
|
246 |
-
</a>
|
247 |
-
<span>></span>
|
248 |
-
</li>
|
249 |
-
<li>
|
250 |
-
<span>
|
251 |
-
<?php echo $gb_advertisement; ?>
|
252 |
-
</span>
|
253 |
-
</li>
|
254 |
-
</ul>
|
255 |
-
</div>
|
256 |
-
<div class="row">
|
257 |
-
<div class="col-md-12">
|
258 |
-
<div class="portlet box vivid-green">
|
259 |
-
<div class="portlet-title">
|
260 |
-
<div class="caption">
|
261 |
-
<i class="icon-custom-volume-2"></i>
|
262 |
-
<?php echo $gb_advertisement; ?>
|
263 |
</div>
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
</div>
|
269 |
-
|
270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
</div>
|
272 |
-
|
273 |
-
|
274 |
-
|
|
|
275 |
}
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
+
exit;
|
11 |
} // Exit if accessed directly
|
12 |
if (!is_user_logged_in()) {
|
13 |
+
return;
|
14 |
} else {
|
15 |
+
$access_granted = false;
|
16 |
+
foreach ($user_role_permission as $permission) {
|
17 |
+
if (current_user_can($permission)) {
|
18 |
+
$access_granted = true;
|
19 |
+
break;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
if (!$access_granted) {
|
23 |
+
return;
|
24 |
+
} else if (general_settings_gallery_bank == "1") {
|
25 |
+
$advertisement_nonce = wp_create_nonce("advertisement_nonce");
|
26 |
+
$get_image_path_nonce = wp_create_nonce("get_image_path_nonce");
|
27 |
+
$advertisement_font_style = isset($advertisement_get_data["advertisement_font_style"]) ? explode(",", esc_attr($advertisement_get_data["advertisement_font_style"])) : array(20, "#cccccc");
|
28 |
+
?>
|
29 |
+
<div class="page-bar">
|
30 |
+
<ul class="page-breadcrumb">
|
31 |
+
<li>
|
32 |
+
<i class="icon-custom-home"></i>
|
33 |
+
<a href="admin.php?page=gallery_bank">
|
34 |
+
<?php echo $gallery_bank; ?>
|
35 |
+
</a>
|
36 |
+
<span>></span>
|
37 |
+
</li>
|
38 |
+
<li>
|
39 |
+
<a href="admin.php?page=gb_global_options">
|
40 |
+
<?php echo $gb_general_settings; ?>
|
41 |
+
</a>
|
42 |
+
<span>></span>
|
43 |
+
</li>
|
44 |
+
<li>
|
45 |
+
<span>
|
46 |
+
<?php echo $gb_advertisement; ?>
|
47 |
+
</span>
|
48 |
+
</li>
|
49 |
+
</ul>
|
50 |
+
</div>
|
51 |
+
<div class="row">
|
52 |
+
<div class="col-md-12">
|
53 |
+
<div class="portlet box vivid-green">
|
54 |
+
<div class="portlet-title">
|
55 |
+
<div class="caption">
|
56 |
+
<i class="icon-custom-volume-2"></i>
|
57 |
+
<?php echo $gb_advertisement; ?>
|
58 |
+
</div>
|
59 |
+
<p class="premium-editions">
|
60 |
+
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
61 |
+
</p>
|
62 |
+
</div>
|
63 |
+
<div class="portlet-body form">
|
64 |
+
<form id="ux_frm_advertisement">
|
65 |
+
<div class="form-body">
|
66 |
+
<div class="note note-warning">
|
67 |
+
<?php
|
68 |
+
if ($gb_message_translate_help != "") {
|
69 |
+
?>
|
70 |
+
<h4 class="block">
|
71 |
+
<?php echo $gb_important_disclaimer; ?>
|
72 |
+
</h4>
|
73 |
+
<p><strong><?php echo $gb_message_translate_help; ?> <a href="javascript:void(0);" data-popup-open="ux_open_popup_translator" class="custom_links_feature" onclick="show_pop_up_gallery_bank();"><?php echo $gb_message_translate_here; ?></a></strong></p>
|
74 |
+
<?php
|
75 |
+
}
|
76 |
+
?>
|
77 |
+
<h4 class="block">
|
78 |
+
<?php echo $gb_take_galleries_further; ?>
|
79 |
+
</h4>
|
80 |
+
<p>
|
81 |
+
<?php echo $gb_general_settings_upgrade_message; ?>
|
82 |
+
</p>
|
83 |
+
<a href="http://gallery-bank.tech-banker.com/" target="_blank" class="btn vivid-green-upgrade"><?php echo $gb_click_here_to_upgrade; ?></a>
|
84 |
</div>
|
85 |
+
<div class="form-actions">
|
86 |
+
<div class="pull-right">
|
87 |
+
<input type="submit" class="btn vivid-green" name="ux_btn_add_tag" id="ux_btn_add_tag" value="<?php echo $gb_save_changes; ?>">
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
<div class="line-separator"></div>
|
91 |
+
<div class="form-group">
|
92 |
+
<label class="control-label">
|
93 |
+
<?php echo $gb_advertisement_title; ?> :
|
94 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_tooltip; ?>" data-placement="right"></i>
|
95 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
96 |
+
</label>
|
97 |
+
<select name="ux_ddl_advertisement" id="ux_ddl_advertisement" class="form-control" onchange="advertisment_settings_gallery_bank();">
|
98 |
+
<option value="none"><?php echo $gb_none; ?></option>
|
99 |
+
<option value="text"><?php echo $gb_text; ?></option>
|
100 |
+
<option value="image"><?php echo $gb_image; ?></option>
|
101 |
+
</select>
|
102 |
+
</div>
|
103 |
+
<div id="ux_div_advertisement_text" style="display:none">
|
104 |
+
<div class="form-group">
|
105 |
+
<label class="control-label">
|
106 |
+
<?php echo $gb_advertisement_text_title; ?> :
|
107 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_text_tooltip; ?>" data-placement="right"></i>
|
108 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
109 |
+
</label>
|
110 |
+
<input type="text" class="form-control" name="ux_txt_advertisement_text" id="ux_txt_advertisement_text" value="<?php echo isset($advertisement_get_data["advertisement_text"]) ? esc_attr($advertisement_get_data["advertisement_text"]) : ""; ?>" placeholder="<?php echo $gb_advertisement_text_placeholder; ?>">
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
<div id="ux_div_advertisement_url">
|
114 |
+
<div class="form-group">
|
115 |
+
<label class="control-label">
|
116 |
+
<?php echo $gb_advertisement_link_title; ?> :
|
117 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_link_tooltip; ?>" data-placement="right"></i>
|
118 |
+
</label>
|
119 |
+
<input type="text" class="form-control" name="ux_txt_advertisement_link" id="ux_txt_advertisement_link" value="<?php echo isset($advertisement_get_data["advertisement_link"]) ? esc_attr($advertisement_get_data["advertisement_link"]) : ""; ?>" placeholder="<?php echo $gb_advertisemnt_link_placeholder; ?>">
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
<div id="ux_div_advertisement_opacity">
|
123 |
+
<div class="form-group">
|
124 |
+
<label class="control-label">
|
125 |
+
<?php echo $gb_advertisemnt_link_opacity_title; ?> :
|
126 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisemnt_link_opacity_tooltip; ?>" data-placement="right"></i>
|
127 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
128 |
+
</label>
|
129 |
+
<input type="text" class="form-control" name="ux_txt_advertisement_opacity" id="ux_txt_advertisement_opacity" onchange="check_opacity_gallery_bank(this)" onblur="default_value_gallery_bank('#ux_txt_advertisement_opacity', 100)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" value="<?php echo isset($advertisement_get_data["advertisement_opacity"]) ? intval($advertisement_get_data["advertisement_opacity"]) : 100; ?>" placeholder="<?php echo $gb_opacity_placeholder; ?>">
|
130 |
+
</div>
|
131 |
+
</div>
|
132 |
+
<div id="ux_div_style" style="display:none">
|
133 |
+
<div class="row">
|
134 |
+
<div class="col-md-6">
|
135 |
+
<div class="form-group">
|
136 |
+
<label class="control-label">
|
137 |
+
<?php echo $gb_font_style; ?> :
|
138 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_font_style_tooltip; ?>" data-placement="right"></i>
|
139 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
140 |
+
</label>
|
141 |
+
<div class="input-icon right">
|
142 |
+
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_advertise_font[]" id="ux_txt_advertise_size" placeholder="<?php echo $gb_font_size_placeholder; ?>" onblur="default_value_gallery_bank('#ux_txt_advertise_size', 20)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($advertisement_font_style[0]); ?>" >
|
143 |
+
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_advertise_font[]" id="ux_txt_advertisement_color" onfocus="color_picker_gallery_bank(this, this.value)" onblur="default_value_gallery_bank('#ux_txt_advertisement_color', '#cccccc')" placeholder="<?php echo $gb_color_placeholder; ?>" value="<?php echo esc_attr($advertisement_font_style[1]); ?>" >
|
144 |
</div>
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
<div class="col-md-6">
|
148 |
+
<div class="form-group">
|
149 |
<label class="control-label">
|
150 |
+
<?php echo $gb_font_family_title; ?> :
|
151 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisemnt_link_font_family_tooltip; ?>" data-placement="right"></i>
|
152 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
153 |
</label>
|
154 |
+
<select name="ux_ddl_font" id="ux_ddl_font" class="form-control">
|
155 |
+
<?php
|
156 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "includes/web-fonts.php")) {
|
157 |
+
include GALLERY_BANK_PLUGIN_DIR_PATH . "includes/web-fonts.php";
|
158 |
+
}
|
159 |
+
?>
|
160 |
</select>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
</div>
|
165 |
+
<div id="ux_div_advertisement_image" style="display:none">
|
166 |
+
<div class="form-group">
|
167 |
+
<label class="control-label">
|
168 |
+
<?php echo $gb_advertisement_url_title; ?> :
|
169 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_url_tooltip; ?>" data-placement="right"></i>
|
170 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
171 |
+
</label>
|
172 |
+
<input class="form-control custom-input-large input-inline" name="ux_txt_advertisement_url" id="ux_txt_advertisement_url" value="<?php echo isset($advertisement_get_data["advertisement_url"]) ? esc_attr($advertisement_get_data["advertisement_url"]) : ""; ?>" placeholder="<?php echo $gb_url_placeholder; ?>" type="text">
|
173 |
+
<input id="wp_upload_button" class="btn vivid-green" value="<?php echo $gb_url_add_image; ?>" type="button" onclick="premium_edition_notification_gallery_bank();">
|
174 |
+
<p id="wp_media_upload_error_message" style="display: none;"><?php echo $gb_url_message; ?></p>
|
175 |
+
</div>
|
176 |
+
<div class="row">
|
177 |
+
<div class="col-md-6">
|
178 |
+
<div class="form-group">
|
179 |
+
<label class="control-label">
|
180 |
+
<?php echo $gb_advertisement_width_title; ?> :
|
181 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_width_tooltip; ?>" data-placement="right"></i>
|
182 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
183 |
+
</label>
|
184 |
+
<input type="text" class="form-control" name="ux_txt_advertisment_width" id="ux_txt_advertisment_size" value="<?php echo isset($advertisement_get_data["advertisement_width"]) ? intval($advertisement_get_data["advertisement_width"]) : 100; ?>" placeholder="<?php echo $gb_advertisement_width_placeholder; ?>" onblur="default_value_gallery_bank('#ux_txt_advertisment_size', 100)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);">
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
<div class="col-md-6">
|
188 |
+
<div class="form-group">
|
189 |
+
<label class="control-label">
|
190 |
+
<?php echo $gb_advertisement_height_title; ?> :
|
191 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_height_tooltip; ?>" data-placement="right"></i>
|
192 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
193 |
+
</label>
|
194 |
+
<input type="text" class="form-control" name="ux_txt_advertisment_height" id="ux_txt_advertisment_height" value="<?php echo isset($advertisement_get_data["advertisement_height"]) ? intval($advertisement_get_data["advertisement_height"]) : 100; ?>" placeholder="<?php echo $gb_advertisement_hieght_placeholder; ?>" onblur="default_value_gallery_bank('#ux_txt_advertisment_height', 100)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);">
|
195 |
+
</div>
|
196 |
+
</div>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
<div id="ux_div_font" style="display:none">
|
200 |
+
<div class="form-group">
|
201 |
+
<label class="control-label">
|
202 |
+
<?php echo $gb_advertisement_position_title; ?> :
|
203 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_advertisement_position_tooltip; ?>" data-placement="right"></i>
|
204 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
205 |
+
</label>
|
206 |
+
<select name="ux_ddl_advertisement_position" id="ux_ddl_advertisement_position" class="form-control">
|
207 |
+
<option value="top_left"><?php echo $gb_position_top_left; ?></option>
|
208 |
+
<option value="top_center"><?php echo $gb_position_top_center; ?></option>
|
209 |
+
<option value="top_right"><?php echo $gb_position_top_right; ?></option>
|
210 |
+
<option value="middle_left"><?php echo $gb_position_middle_left; ?></option>
|
211 |
+
<option value="middle_center"><?php echo $gb_position_middle_center; ?></option>
|
212 |
+
<option value="middle_right"><?php echo $gb_position_middle_right; ?></option>
|
213 |
+
<option value="bottom_left"><?php echo $gb_position_bottom_left; ?></option>
|
214 |
+
<option value="bottom_center"><?php echo $gb_position_bottom_center; ?></option>
|
215 |
+
<option value="bottom_right"><?php echo $gb_position_bottom_right; ?></option>
|
216 |
+
</select>
|
217 |
+
</div>
|
218 |
</div>
|
219 |
+
<div class="line-separator"></div>
|
220 |
+
<div class="form-actions">
|
221 |
+
<div class="pull-right">
|
222 |
+
<input type="submit" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" value="<?php echo $gb_save_changes ?>">
|
223 |
+
</div>
|
224 |
+
</div>
|
225 |
+
</div>
|
226 |
+
</form>
|
227 |
+
</div>
|
228 |
+
</div>
|
229 |
+
</div>
|
230 |
+
</div>
|
231 |
+
<?php
|
232 |
+
} else {
|
233 |
+
?>
|
234 |
+
<div class="page-bar">
|
235 |
+
<ul class="page-breadcrumb">
|
236 |
+
<li>
|
237 |
+
<i class="icon-custom-home"></i>
|
238 |
+
<a href="admin.php?page=gallery_bank">
|
239 |
+
<?php echo $gallery_bank; ?>
|
240 |
+
</a>
|
241 |
+
<span>></span>
|
242 |
+
</li>
|
243 |
+
<li>
|
244 |
+
<a href="admin.php?page=gb_global_options">
|
245 |
+
<?php echo $gb_general_settings; ?>
|
246 |
+
</a>
|
247 |
+
<span>></span>
|
248 |
+
</li>
|
249 |
+
<li>
|
250 |
+
<span>
|
251 |
+
<?php echo $gb_advertisement; ?>
|
252 |
+
</span>
|
253 |
+
</li>
|
254 |
+
</ul>
|
255 |
+
</div>
|
256 |
+
<div class="row">
|
257 |
+
<div class="col-md-12">
|
258 |
+
<div class="portlet box vivid-green">
|
259 |
+
<div class="portlet-title">
|
260 |
+
<div class="caption">
|
261 |
+
<i class="icon-custom-volume-2"></i>
|
262 |
+
<?php echo $gb_advertisement; ?>
|
263 |
+
</div>
|
264 |
+
</div>
|
265 |
+
<div class="portlet-body form">
|
266 |
+
<div class="form-body">
|
267 |
+
<strong><?php echo $gb_user_access_message; ?></strong>
|
268 |
+
</div>
|
269 |
+
</div>
|
270 |
</div>
|
271 |
+
</div>
|
272 |
+
</div>
|
273 |
+
<?php
|
274 |
+
}
|
275 |
}
|
views/general-settings/filters-settings.php
CHANGED
@@ -7,297 +7,297 @@
|
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
-
|
11 |
} // Exit if accessed directly
|
12 |
if (!is_user_logged_in()) {
|
13 |
-
|
14 |
} else {
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
</div>
|
62 |
-
<
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
<
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
<?php
|
71 |
-
if (
|
72 |
-
|
73 |
-
<h4 class="block">
|
74 |
-
<?php echo $gb_important_disclaimer; ?>
|
75 |
-
</h4>
|
76 |
-
<p><strong><?php echo $gb_message_translate_help; ?> <a href="javascript:void(0);" data-popup-open="ux_open_popup_translator" class="custom_links_feature" onclick="show_pop_up_gallery_bank();"><?php echo $gb_message_translate_here; ?></a></strong></p>
|
77 |
-
<?php
|
78 |
}
|
79 |
?>
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
<
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
<div class="row">
|
95 |
-
<div class="col-md-6">
|
96 |
-
<div class="form-group">
|
97 |
-
<label class="control-label">
|
98 |
-
<?php echo $gb_font_style; ?> :
|
99 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo$gb_global_option_filter_font_style_tooltips; ?>" data-placement="right"></i>
|
100 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
101 |
-
</label>
|
102 |
-
<div class="input-icon-right">
|
103 |
-
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_filters_font_style[]" id="ux_txt_filters_font_style" onblur="default_value_gallery_bank('#ux_txt_filters_font_style', 14);" placeholder="<?php echo$gb_font_size_placeholder; ?>" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($filters_font_style[0]); ?>">
|
104 |
-
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_filters_font_style[]" id="ux_txt_style_color" onblur="default_value_gallery_bank('#ux_txt_style_color', '#000000');" onfocus="color_picker_gallery_bank(this, this.value)" placeholder="<?php echo$gb_color_placeholder; ?>" value="<?php echo esc_attr($filters_font_style[1]); ?>">
|
105 |
-
</div>
|
106 |
-
</div>
|
107 |
-
</div>
|
108 |
-
<div class="col-md-6">
|
109 |
-
<div class="form-group">
|
110 |
-
<label class="control-label">
|
111 |
-
<?php echo $gb_font_family_title; ?> :
|
112 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo$gb_global_option_filter_font_family_tooltip; ?>" data-placement="right"></i>
|
113 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
114 |
-
</label>
|
115 |
-
<select name="ux_ddl_font_family" id="ux_ddl_font_family" class="form-control">
|
116 |
-
<?php
|
117 |
-
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "includes/web-fonts.php")) {
|
118 |
-
include GALLERY_BANK_PLUGIN_DIR_PATH . "includes/web-fonts.php";
|
119 |
-
}
|
120 |
-
?>
|
121 |
-
</select>
|
122 |
-
</div>
|
123 |
-
</div>
|
124 |
-
</div>
|
125 |
-
<div class="row">
|
126 |
-
<div class="col-md-6">
|
127 |
-
<div class="form-group">
|
128 |
-
<label class="control-label">
|
129 |
-
<?php echo $gb_global_option_active_font_color; ?> :
|
130 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_global_option_active_font_color_tooltips; ?>" data-placement="right"></i>
|
131 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
132 |
-
</label>
|
133 |
-
<div class="input-icon right">
|
134 |
-
<input type="text" class="form-control" name="ux_txt_filters_active_font_color" id="ux_txt_filters_active_font_color" onblur="default_value_gallery_bank('#ux_txt_filters_active_font_color', '#2fbfc1');" onfocus="color_picker_gallery_bank(this, this.value)" placeholder="<?php echo $gb_global_option_active_font_color_placeholder; ?>" value="<?php echo isset($filter_settings_get_data["filters_active_font_color"]) ? esc_attr($filter_settings_get_data["filters_active_font_color"]) : "#000000"; ?>">
|
135 |
-
</div>
|
136 |
-
</div>
|
137 |
-
</div>
|
138 |
-
<div class="col-md-6">
|
139 |
-
<div class="form-group">
|
140 |
-
<label class="control-label">
|
141 |
-
<?php echo $gb_button_font_hover_color; ?> :
|
142 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_global_option_active_font_hover_color_tooltip; ?>" data-placement="right"></i>
|
143 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
144 |
-
</label>
|
145 |
-
<input type="text" class="form-control" name="ux_txt_global_filters_active_font_hover_color" id="ux_txt_global_filters_active_font_hover_color" onblur="default_value_gallery_bank('#ux_txt_global_filters_active_font_hover_color', '#2fbfc1');" placeholder="<?php echo $gb_global_option_active_font_hover_color_placeholder; ?>" onfocus="color_picker_gallery_bank(this, this.value)" value="<?php echo isset($filter_settings_get_data["filters_active_font_hover_color"]) ? esc_attr($filter_settings_get_data["filters_active_font_hover_color"]) : "#000000"; ?>">
|
146 |
-
</div>
|
147 |
-
</div>
|
148 |
-
</div>
|
149 |
-
<div class="row">
|
150 |
-
<div class="col-md-6">
|
151 |
-
<div class="form-group">
|
152 |
-
<label class="control-label">
|
153 |
-
<?php echo $gb_global_option_filter_background_color; ?> :
|
154 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_global_option_filter_background_color_tooltips; ?>" data-placement="right"></i>
|
155 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
156 |
-
</label>
|
157 |
-
<div class="input-icon right">
|
158 |
-
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_background_controls[]" id="ux_txt_global_option_filters_background_colory" onfocus="color_picker_gallery_bank(this, this.value)" placeholder="<?php echo $gb_background_transparency_placeholder; ?>" value="<?php echo esc_attr($filter_background_color_controls[0]); ?>">
|
159 |
-
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_background_controls[]" id="ux_txt_global_option_filters_background_color_transparenc" placeholder="<?php echo $gb_lightbox_colorbox_background_color_placeholder; ?>" onblur="default_value_gallery_bank('#ux_txt_global_option_filters_background_color_transparenc', 100)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" onchange="check_opacity_gallery_bank(this);" value="<?php echo intval($filter_background_color_controls[1]); ?>">
|
160 |
-
</div>
|
161 |
-
</div>
|
162 |
-
</div>
|
163 |
-
<div class="col-md-6">
|
164 |
-
<div class="form-group">
|
165 |
-
<label class="control-label">
|
166 |
-
<?php echo $gb_global_option_background_hover_color; ?> :
|
167 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_global_option_filter_background_hover_color_tooltip; ?>" data-placement="right"></i>
|
168 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
169 |
-
</label>
|
170 |
-
<input type="text" class="form-control" name="ux_txt_filters_background_hover_color" id="ux_txt_filters_background_hover_color" placeholder="<?php echo $gb_global_option_filter_background_hover_color_placeholder; ?>" onfocus="color_picker_gallery_bank(this, this.value)" value="<?php echo isset($filter_settings_get_data["filters_background_hover_color"]) ? esc_attr($filter_settings_get_data["filters_background_hover_color"]) : "#000000"; ?>">
|
171 |
-
</div>
|
172 |
-
</div>
|
173 |
-
</div>
|
174 |
-
<div class="row">
|
175 |
-
<div class="col-md-6">
|
176 |
-
<div class="form-group">
|
177 |
-
<label class="control-label">
|
178 |
-
<?php echo $gb_border_style_title; ?> :
|
179 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_global_option_filter_border_style_tooltip; ?>" data-placement="right"></i>
|
180 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
181 |
-
</label>
|
182 |
-
<div class="input-icon right">
|
183 |
-
<input type="text" class="form-control input-width-25 input-inline" name="ux_txt_filters_border_style[]" id="ux_txt_filter_border_style_width" placeholder="<?php echo $gb_width_placeholder; ?>" onblur="default_value_gallery_bank('#ux_txt_filter_border_style_width', 2)" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($filter_border_color[0]); ?>">
|
184 |
-
<select name="ux_txt_filters_border_style[]" id="ux_ddl_filters_border_style_thickness" class="form-control input-width-27 input-inline">
|
185 |
-
<option value="none"><?php echo $gb_none; ?></option>
|
186 |
-
<option value="solid"><?php echo $gb_solid; ?></option>
|
187 |
-
<option value="dashed"><?php echo $gb_dashed; ?></option>
|
188 |
-
<option value="dotted"><?php echo $gb_dotted; ?></option>
|
189 |
-
</select>
|
190 |
-
<input type="text" class="form-control input-normal input-inline" name="ux_txt_filters_border_style[]" id="ux_txt_filter_border_style_color" onblur="default_value_gallery_bank('#ux_txt_filter_border_style_color', '#9e9e9e');" onfocus="color_picker_gallery_bank(this, this.value)" placeholder="<?php echo $gb_color_placeholder; ?>" value="<?php echo esc_attr($filter_border_color[2]); ?>">
|
191 |
-
</div>
|
192 |
-
</div>
|
193 |
-
</div>
|
194 |
-
<div class="col-md-6">
|
195 |
-
<div class="form-group">
|
196 |
-
<label class="control-label">
|
197 |
-
<?php echo $gb_border_radius_title; ?> :
|
198 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_global_option_filter_border_radius_tooltip; ?>" data-placement="right"></i>
|
199 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
200 |
-
</label>
|
201 |
-
<div class="input-icon right">
|
202 |
-
<input type="text" class="form-control" name="ux_txt_filters_border_radius" id="ux_txt_filters_border_radius" placeholder="<?php echo $gb_border_radius_placeholder; ?>" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onblur="default_value_gallery_bank('#ux_txt_filters_border_radius', 0)" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo isset($filter_settings_get_data["filters_border_radius"]) ? intval($filter_settings_get_data["filters_border_radius"]) : 0 ?>">
|
203 |
-
</div>
|
204 |
-
</div>
|
205 |
-
</div>
|
206 |
-
</div>
|
207 |
-
<div class="form-group">
|
208 |
-
<label class="control-label">
|
209 |
-
<?php echo $gb_button_border_hover; ?> :
|
210 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_global_option_filter_border_hover_color_tooltip; ?>" data-placement="right"></i>
|
211 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
212 |
-
</label>
|
213 |
-
<input type="text" class="form-control" name="ux_txt_filters_border_hover_color" id="ux_txt_filters_border_hover_color" placeholder="<?php echo $gb_global_option_filter_border_hover_color_placeholder; ?>" onblur="default_value_gallery_bank('#ux_txt_filters_border_hover_color', '#2fbfc1');" onfocus="color_picker_gallery_bank(this, this.value)" value="<?php echo isset($filter_settings_get_data["filters_border_hover_color"]) ? esc_attr($filter_settings_get_data["filters_border_hover_color"]) : "#000000" ?>">
|
214 |
-
</div>
|
215 |
-
<div class="row">
|
216 |
-
<div class="col-md-6">
|
217 |
-
<div class="form-group">
|
218 |
-
<label class="control-label">
|
219 |
-
<?php echo $gb_margin_title; ?> :
|
220 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_filters_margin_tooltip; ?>" data-placement="right" ></i>
|
221 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
222 |
-
</label>
|
223 |
-
<div class="input-icon right">
|
224 |
-
<input type="text" class="form-control custom-input-xsmall input-inline" name="ux_txt_filters_margin[]" id="ux_txt_filters_margin_top" placeholder="<?php echo $gb_top; ?>" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" onblur="default_value_gallery_bank('#ux_txt_filters_margin_top', 0);" value="<?php echo intval($margin[0]); ?>">
|
225 |
-
<input type="text" class="form-control custom-input-xsmall input-inline" name="ux_txt_filters_margin[]" id="ux_txt_filters_margin_right" placeholder="<?php echo $gb_right; ?>" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" onblur="default_value_gallery_bank('#ux_txt_filters_margin_right', 5);" value="<?php echo intval($margin[1]); ?>">
|
226 |
-
<input type="text" class="form-control custom-input-xsmall input-inline" name="ux_txt_filters_margin[]" id="ux_txt_filters_margin_bottom" placeholder="<?php echo $gb_bottom; ?>" onblur="default_value_gallery_bank('#ux_txt_filters_margin_bottom', 20);" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($margin[2]); ?>">
|
227 |
-
<input type="text" class="form-control custom-input-xsmall input-inline" name="ux_txt_filters_margin[]" id="ux_txt_filters_margin_left" placeholder="<?php echo $gb_left; ?>" onblur="default_value_gallery_bank('#ux_txt_filters_margin_left', 0);" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($margin[3]); ?>">
|
228 |
-
</div>
|
229 |
-
</div>
|
230 |
-
</div>
|
231 |
-
<div class="col-md-6">
|
232 |
-
<div class="form-group">
|
233 |
-
<label class="control-label">
|
234 |
-
<?php echo $gb_padding_title; ?> :
|
235 |
-
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_filters_padding_tooltip; ?>" data-placement="right"></i>
|
236 |
-
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
237 |
-
</label>
|
238 |
-
<div class="input-icon right">
|
239 |
-
<input type="text" class="form-control custom-input-xsmall input-inline" name="ux_txt_filters_padding[]" id="ux_txt_filters_padding_top" placeholder="<?php echo $gb_top; ?>" onblur="default_value_gallery_bank('#ux_txt_filters_padding_top', 5);" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($padding[0]); ?>">
|
240 |
-
<input type="text" class="form-control custom-input-xsmall input-inline" name="ux_txt_filters_padding[]" id="ux_txt_filters_padding_right" placeholder="<?php echo $gb_right; ?>" onblur="default_value_gallery_bank('#ux_txt_filters_padding_right', 10);" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($padding[1]); ?>">
|
241 |
-
<input type="text" class="form-control custom-input-xsmall input-inline" name="ux_txt_filters_padding[]" id="ux_txt_filters_padding_bottom" placeholder="<?php echo $gb_bottom; ?>" onblur="default_value_gallery_bank('#ux_txt_filters_padding_bottom', 5);" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($padding[2]); ?>">
|
242 |
-
<input type="text" class="form-control custom-input-xsmall input-inline" name="ux_txt_filters_padding[]" id="ux_txt_filters_padding_left" placeholder="<?php echo $gb_left; ?>" onblur="default_value_gallery_bank('#ux_txt_filters_padding_left', 10);" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($padding[3]); ?>">
|
243 |
-
</div>
|
244 |
-
</div>
|
245 |
-
</div>
|
246 |
-
</div>
|
247 |
-
<div class="line-separator"></div>
|
248 |
-
<div class="form-actions">
|
249 |
-
<div class="pull-right">
|
250 |
-
<input type="submit" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" value="<?php echo $gb_save_changes; ?>">
|
251 |
-
</div>
|
252 |
-
</div>
|
253 |
-
</div>
|
254 |
-
</form>
|
255 |
-
</div>
|
256 |
-
</div>
|
257 |
-
</div>
|
258 |
-
</div>
|
259 |
-
<?php
|
260 |
-
} else {
|
261 |
-
?>
|
262 |
-
<div class="page-bar">
|
263 |
-
<ul class="page-breadcrumb">
|
264 |
-
<li>
|
265 |
-
<i class="icon-custom-home"></i>
|
266 |
-
<a href="admin.php?page=gallery_bank">
|
267 |
-
<?php echo $gallery_bank; ?>
|
268 |
-
</a>
|
269 |
-
<span>></span>
|
270 |
-
</li>
|
271 |
-
<li>
|
272 |
-
<a href="admin.php?page=gb_global_options">
|
273 |
-
<?php echo $gb_general_settings; ?>
|
274 |
-
</a>
|
275 |
-
<span>></span>
|
276 |
-
</li>
|
277 |
-
<li>
|
278 |
-
<span>
|
279 |
-
<?php echo $gb_filter_settings; ?>
|
280 |
-
</span>
|
281 |
-
</li>
|
282 |
-
</ul>
|
283 |
-
</div>
|
284 |
-
<div class="row">
|
285 |
-
<div class="col-md-12">
|
286 |
-
<div class="portlet box vivid-green">
|
287 |
-
<div class="portlet-title">
|
288 |
-
<div class="caption">
|
289 |
-
<i class="icon-custom-hourglass"></i>
|
290 |
-
<?php echo $gb_filter_settings; ?>
|
7 |
* @version 4.0.0
|
8 |
*/
|
9 |
if (!defined("ABSPATH")) {
|
10 |
+
exit;
|
11 |
} // Exit if accessed directly
|
12 |
if (!is_user_logged_in()) {
|
13 |
+
return;
|
14 |
} else {
|
15 |
+
$access_granted = false;
|
16 |
+
foreach ($user_role_permission as $permission) {
|
17 |
+
if (current_user_can($permission)) {
|
18 |
+
$access_granted = true;
|
19 |
+
break;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
if (!$access_granted) {
|
23 |
+
return;
|
24 |
+
} else if (general_settings_gallery_bank == "1") {
|
25 |
+
$filter_settings_nonce = wp_create_nonce("filter_settings_nonce");
|
26 |
+
$filters_font_style = isset($filter_settings_get_data["filters_font_style"]) ? explode(",", esc_attr($filter_settings_get_data["filters_font_style"])) : array(14, "#000000");
|
27 |
+
$margin = isset($filter_settings_get_data["filters_margin"]) ? explode(",", esc_attr($filter_settings_get_data["filters_margin"])) : array(0, 5, 20, 0);
|
28 |
+
$padding = isset($filter_settings_get_data["filters_padding"]) ? explode(",", esc_attr($filter_settings_get_data["filters_padding"])) : array(5, 10, 5, 10);
|
29 |
+
$filter_border_color = isset($filter_settings_get_data["filters_border_style"]) ? explode(",", esc_attr($filter_settings_get_data["filters_border_style"])) : array(0, "none", "#000000");
|
30 |
+
$filter_background_color_controls = isset($filter_settings_get_data["filters_background_color_and_background_transparency"]) ? explode(",", esc_attr($filter_settings_get_data["filters_background_color_and_background_transparency"])) : array("#000000", 100);
|
31 |
+
?>
|
32 |
+
<div class="page-bar">
|
33 |
+
<ul class="page-breadcrumb">
|
34 |
+
<li>
|
35 |
+
<i class="icon-custom-home"></i>
|
36 |
+
<a href="admin.php?page=gallery_bank">
|
37 |
+
<?php echo $gallery_bank; ?>
|
38 |
+
</a>
|
39 |
+
<span>></span>
|
40 |
+
</li>
|
41 |
+
<li>
|
42 |
+
<a href="admin.php?page=gb_global_options">
|
43 |
+
<?php echo $gb_general_settings; ?>
|
44 |
+
</a>
|
45 |
+
<span>></span>
|
46 |
+
</li>
|
47 |
+
<li>
|
48 |
+
<span>
|
49 |
+
<?php echo $gb_filter_settings; ?>
|
50 |
+
</span>
|
51 |
+
</li>
|
52 |
+
</ul>
|
53 |
+
</div>
|
54 |
+
<div class="row">
|
55 |
+
<div class="col-md-12">
|
56 |
+
<div class="portlet box vivid-green">
|
57 |
+
<div class="portlet-title">
|
58 |
+
<div class="caption">
|
59 |
+
<i class="icon-custom-hourglass"></i>
|
60 |
+
<?php echo $gb_filter_settings; ?>
|
61 |
+
</div>
|
62 |
+
<p class="premium-editions">
|
63 |
+
<?php echo $gb_upgrade_need_help ?><a href="http://gallery-bank.tech-banker.com/documentation/" target="_blank" class="premium-editions-documentation"><?php echo $gb_documentation ?></a><?php echo $gb_read_and_check; ?><a href="http://gallery-bank.tech-banker.com/frontend-demos/" target="_blank" class="premium-editions-documentation"><?php echo $gb_demos_section; ?></a>
|
64 |
+
</p>
|
65 |
+
</div>
|
66 |
+
<div class="portlet-body form">
|
67 |
+
<form id="ux_frm_filter_settings">
|
68 |
+
<div class="form-body">
|
69 |
+
<div class="note note-warning">
|
70 |
+
<?php
|
71 |
+
if ($gb_message_translate_help != "") {
|
72 |
+
?>
|
73 |
+
<h4 class="block">
|
74 |
+
<?php echo $gb_important_disclaimer; ?>
|
75 |
+
</h4>
|
76 |
+
<p><strong><?php echo $gb_message_translate_help; ?> <a href="javascript:void(0);" data-popup-open="ux_open_popup_translator" class="custom_links_feature" onclick="show_pop_up_gallery_bank();"><?php echo $gb_message_translate_here; ?></a></strong></p>
|
77 |
+
<?php
|
78 |
+
}
|
79 |
+
?>
|
80 |
+
<h4 class="block">
|
81 |
+
<?php echo $gb_take_galleries_further; ?>
|
82 |
+
</h4>
|
83 |
+
<p>
|
84 |
+
<?php echo $gb_general_settings_upgrade_message; ?>
|
85 |
+
</p>
|
86 |
+
<a href="http://gallery-bank.tech-banker.com/" target="_blank" class="btn vivid-green-upgrade"><?php echo $gb_click_here_to_upgrade; ?></a>
|
87 |
</div>
|
88 |
+
<div class="form-actions">
|
89 |
+
<div class="pull-right">
|
90 |
+
<input type="submit" class="btn vivid-green" name="ux_btn_save_changes" id="ux_btn_save_changes" value="<?php echo $gb_save_changes; ?>">
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
<div class="line-separator"></div>
|
94 |
+
<div class="row">
|
95 |
+
<div class="col-md-6">
|
96 |
+
<div class="form-group">
|
97 |
+
<label class="control-label">
|
98 |
+
<?php echo $gb_font_style; ?> :
|
99 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo$gb_global_option_filter_font_style_tooltips; ?>" data-placement="right"></i>
|
100 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
101 |
+
</label>
|
102 |
+
<div class="input-icon-right">
|
103 |
+
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_filters_font_style[]" id="ux_txt_filters_font_style" onblur="default_value_gallery_bank('#ux_txt_filters_font_style', 14);" placeholder="<?php echo$gb_font_size_placeholder; ?>" maxlength="3" onkeypress="only_digits_gallery_bank(event);" onfocus="paste_prevent_gallery_bank(this.id);" value="<?php echo intval($filters_font_style[0]); ?>">
|
104 |
+
<input type="text" class="form-control custom-input-medium input-inline" name="ux_txt_filters_font_style[]" id="ux_txt_style_color" onblur="default_value_gallery_bank('#ux_txt_style_color', '#000000');" onfocus="color_picker_gallery_bank(this, this.value)" placeholder="<?php echo$gb_color_placeholder; ?>" value="<?php echo esc_attr($filters_font_style[1]); ?>">
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
<div class="col-md-6">
|
109 |
+
<div class="form-group">
|
110 |
+
<label class="control-label">
|
111 |
+
<?php echo $gb_font_family_title; ?> :
|
112 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo$gb_global_option_filter_font_family_tooltip; ?>" data-placement="right"></i>
|
113 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
114 |
+
</label>
|
115 |
+
<select name="ux_ddl_font_family" id="ux_ddl_font_family" class="form-control">
|
116 |
<?php
|
117 |
+
if (file_exists(GALLERY_BANK_PLUGIN_DIR_PATH . "includes/web-fonts.php")) {
|
118 |
+
include GALLERY_BANK_PLUGIN_DIR_PATH . "includes/web-fonts.php";
|
|
|
|
|
|
|
|
|
|
|
119 |
}
|
120 |
?>
|
121 |
+
</select>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
<div class="row">
|
126 |
+
<div class="col-md-6">
|
127 |
+
<div class="form-group">
|
128 |
+
<label class="control-label">
|
129 |
+
<?php echo $gb_global_option_active_font_color; ?> :
|
130 |
+
<i class="icon-custom-question tooltips" data-original-title="<?php echo $gb_global_option_active_font_color_tooltips; ?>" data-placement="right"></i>
|
131 |
+
<span class="required" aria-required="true">* <?php echo " (" . $gb_premium_edition . " )"; ?></span>
|
132 |
+
</label>
|
133 |
+
<div class="input-icon right">
|
134 |
+
<input type="text" class="form-control" name="ux_txt_filters_active_font_color" id="ux_txt_filters_active_font_color" onblur="default_value_gallery_bank('#ux_txt_filters_active_font_color', '#2fbfc1');" onfocus
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|