Gallery Bank: WordPress Photo Gallery Plugin - Version 2.0.18

Version Description

  • Few Bugs Fixed
Download this release

Release Info

Developer Gallery-Bank
Plugin Icon 128x128 Gallery Bank: WordPress Photo Gallery Plugin
Version 2.0.18
Comparing to
See all releases

Code changes from version 2.0.17 to 2.0.18

assets/images/setting_sidebar.png ADDED
Binary file
assets/images/settings_page.png ADDED
Binary file
assets/js/frontend.js CHANGED
@@ -1,11 +1,3 @@
1
- /*global jQuery */
2
- /*!
3
- * Responsive-Portfolio-Gallery
4
- *
5
- * Copyright 2011, http://www.freshdesignweb.com/
6
- * Released under the WTFPL license
7
- *
8
- */
9
 
10
  (function($, undefined) {
11
  $.HoverDir = function(e, t) {
 
 
 
 
 
 
 
 
1
 
2
  (function($, undefined) {
3
  $.HoverDir = function(e, t) {
gallery-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
- Version: 2.0.17
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
+ Version: 2.0.18
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
lib/gallery-bank-class.php CHANGED
@@ -166,8 +166,6 @@ function frontend_plugin_js_scripts_gallery_bank()
166
  {
167
  wp_enqueue_script('jquery');
168
  wp_enqueue_script('jquery.titanlighbox.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.titanlighbox.js');
169
- wp_enqueue_script('jquery.dataTables.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/plugins/tables/jquery.dataTables.min.js');
170
- wp_enqueue_script('bootstrap.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/plugins/bootstrap/bootstrap.min.js');
171
  wp_enqueue_script('frontend.js', GALLERY_BK_PLUGIN_URL .'/assets/js/frontend.js');
172
  }
173
 
166
  {
167
  wp_enqueue_script('jquery');
168
  wp_enqueue_script('jquery.titanlighbox.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.titanlighbox.js');
 
 
169
  wp_enqueue_script('frontend.js', GALLERY_BK_PLUGIN_URL .'/assets/js/frontend.js');
170
  }
171
 
lib/settings-class.php DELETED
@@ -1,70 +0,0 @@
1
- <?php
2
- global $wpdb;
3
- global $current_user;
4
- $current_user = wp_get_current_user();
5
-
6
- if(isset($_REQUEST["param"]))
7
- {
8
- if($_REQUEST["param"] == "update_global_settings")
9
- {
10
-
11
- $ux_thumbnail = intval($_REQUEST['ux_thumbnail']);
12
- $ux_cover_size = intval($_REQUEST['ux_cover_size']);
13
- $ux_autoplay = intval($_REQUEST['ux_slideshow']);
14
- $ux_paging = intval($_REQUEST['ux_paging']);
15
-
16
- $album_css = $wpdb->get_row
17
- (
18
- $wpdb->prepare
19
- (
20
- "SELECT * FROM ".gallery_bank_settings()." WHERE album_id = %d",
21
- 0
22
- )
23
- );
24
- if($ux_thumbnail == 0)
25
- {
26
- $ux_image_size = "0;width:".intval($_REQUEST["ux_image_width"])."px; height:".intval($_REQUEST["ux_image_height"])."px";
27
- }
28
- else
29
- {
30
- $ux_image_size = "1;width:160px;height:120px";
31
- }
32
- if($ux_cover_size == 0)
33
- {
34
- $ux_cover_size = "0;width:".intval($_REQUEST["ux_cover_width"])."px; height:".intval($_REQUEST["ux_cover_height"])."px";
35
- }
36
- else
37
- {
38
- $ux_cover_size = "1;width:160px; height:120px";
39
- }
40
- $default_setting = "image_size:".$ux_image_size.";images_in_row:".intval($_REQUEST["ux_image_in_row_val"]).";image_opacity:".(doubleval($_REQUEST["ux_image_opacity_val"]) / 100).";image_border_size:".intval($_REQUEST["ux_image_border_val"])."px;image_border_radius:".intval($_REQUEST["ux_image_radius_val"])."px;image_border_color:".esc_attr($_REQUEST["ux_border_color"]).";/cover_size:".$ux_cover_size.";cover_opacity:".(doubleval($_REQUEST["ux_cover_opacity_val"]) / 100).";cover_border_size:".intval($_REQUEST["ux_cover_border_val"])."px;cover_border_radius:".intval($_REQUEST["ux_cover_radius_val"])."px;border_color:".esc_attr($_REQUEST["ux_cover_border_color"]).";/overlay_opacity:".(doubleval($_REQUEST["ux_lightbox_opacity_val"]) / 100).";overlay_border_size:".intval($_REQUEST["ux_lightbox_border_val"])."px;overlay_border_radius:".intval($_REQUEST["ux_lightbox_radius_val"])."px;text_color:".esc_attr($_REQUEST["ux_lightbox_text_color"]).";overlay_border_color:".esc_attr($_REQUEST["ux_overlay_border_color"]).";inline_bg_color:".esc_attr($_REQUEST["ux_inline_overlay_color"]).";overlay_bg_color:".esc_attr($_REQUEST["ux_overlay_bg_color"]).";/autoplay:". $ux_autoplay . ";slide_interval:".(intval($_REQUEST["ux_slide_val"])).";/pagination:".$ux_paging.";";
41
- $wpdb->query
42
- (
43
- $wpdb->prepare
44
- (
45
- "UPDATE ".gallery_bank_settings()." SET setting_content = %s WHERE album_id = %d",
46
- $default_setting,
47
- 0
48
- )
49
- );
50
- die();
51
- }
52
- else if($_REQUEST["param"] == "restore_settings")
53
- {
54
- $default_setting = "image_size:1;width:160px;height:120px;images_in_row:3;image_opacity:1;image_border_size:2px;image_border_radius:2px;image_border_color:rgb(0, 0, 0);/cover_size:1;width:160px;height:120px;cover_opacity:1;cover_border_size:2px;cover_border_radius:2px;border_color:rgb(0, 0, 0);/overlay_opacity:0.6;overlay_border_size:0px;overlay_border_radius:0px;text_color:rgb(0, 0, 0);overlay_border_color:rgb(255, 255, 255);inline_bg_color:rgb(255, 255, 255);overlay_bg_color:rgb(0, 0, 0);/autoplay:0;slide_interval:2;/pagination:1;";
55
- $wpdb->query
56
- (
57
- $wpdb->prepare
58
- (
59
- "UPDATE ".gallery_bank_settings()." SET setting_content = %s WHERE album_id = %d",
60
- $default_setting,
61
- 0
62
- )
63
- );
64
-
65
- die();
66
-
67
- }
68
-
69
-
70
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gallery, gallery images, album, foto, fotoalbum, website gallery, multiple
4
 
5
  Requires at least: 3.0
6
  Tested up to: 3.6
7
- Stable tag: 2.0.17
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -136,6 +136,10 @@ With this bulk deletion feature, you can now delete the pictures you want in bul
136
 
137
  == Changelog ==
138
 
 
 
 
 
139
  = 2.0.17 =
140
 
141
  * Few Bugs Fixed
4
 
5
  Requires at least: 3.0
6
  Tested up to: 3.6
7
+ Stable tag: 2.0.18
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
136
 
137
  == Changelog ==
138
 
139
+ = 2.0.18 =
140
+
141
+ * Few Bugs Fixed
142
+
143
  = 2.0.17 =
144
 
145
  * Few Bugs Fixed
views/add-new-album.php CHANGED
@@ -189,8 +189,11 @@
189
  </div>
190
  </div>
191
  </div>
192
- <div class="block well">
193
- <div class="navbar">
 
 
 
194
  <div class="navbar-inner">
195
  <h5><?php _e( "Album Settings", gallery_bank ); ?></h5>
196
  <div class="nav pull-right">
@@ -200,7 +203,7 @@
200
  </div>
201
  </div>
202
  </div>
203
- <div class="collapse in" id="album_settings">
204
  <div class="body">
205
  <div class="control-group">
206
  <label class="control-label"><?php _e( "Settings", gallery_bank ); ?> : </label>
@@ -218,7 +221,7 @@
218
  </div>
219
  </div>
220
  </div>
221
- <div class="block well individual-settings">
222
  <div class="navbar">
223
  <div class="navbar-inner">
224
  <h5><?php _e( "Thumbnails Settings", gallery_bank ); ?></h5>
@@ -315,7 +318,7 @@
315
  </div>
316
  </div>
317
  </div>
318
- <div class="block well individual-settings">
319
  <div class="navbar">
320
  <div class="navbar-inner">
321
  <h5><?php _e( "Album Cover Settings", gallery_bank ); ?></h5>
@@ -405,7 +408,7 @@
405
  </div>
406
  </div>
407
  </div>
408
- <div class="block well individual-settings">
409
  <div class="navbar">
410
  <div class="navbar-inner">
411
  <h5><?php _e( "Lightbox Settings", gallery_bank ); ?></h5>
@@ -522,7 +525,7 @@
522
  </div>
523
  </div>
524
  </div> -->
525
- <div class="block well individual-settings">
526
  <div class="navbar">
527
  <div class="navbar-inner">
528
  <h5><?php _e( "Pagination Settings", gallery_bank ); ?></h5>
189
  </div>
190
  </div>
191
  </div>
192
+ <div class="block well" >
193
+ <div class="body">
194
+ <a href="http://gallery-bank.com/" target="_blank"><img style="float:right;cursor: pointer;width: 100%;" src="<?php echo GALLERY_BK_PLUGIN_URL.'/assets/images/setting_sidebar.png' ?>"/></a>
195
+ </div>
196
+ <div class="navbar" style="display: none">
197
  <div class="navbar-inner">
198
  <h5><?php _e( "Album Settings", gallery_bank ); ?></h5>
199
  <div class="nav pull-right">
203
  </div>
204
  </div>
205
  </div>
206
+ <div class="collapse in" id="album_settings" style="display: none">
207
  <div class="body">
208
  <div class="control-group">
209
  <label class="control-label"><?php _e( "Settings", gallery_bank ); ?> : </label>
221
  </div>
222
  </div>
223
  </div>
224
+ <div class="block well individual-settings" style="display: none">
225
  <div class="navbar">
226
  <div class="navbar-inner">
227
  <h5><?php _e( "Thumbnails Settings", gallery_bank ); ?></h5>
318
  </div>
319
  </div>
320
  </div>
321
+ <div class="block well individual-settings" style="display: none">
322
  <div class="navbar">
323
  <div class="navbar-inner">
324
  <h5><?php _e( "Album Cover Settings", gallery_bank ); ?></h5>
408
  </div>
409
  </div>
410
  </div>
411
+ <div class="block well individual-settings" style="display: none">
412
  <div class="navbar">
413
  <div class="navbar-inner">
414
  <h5><?php _e( "Lightbox Settings", gallery_bank ); ?></h5>
525
  </div>
526
  </div>
527
  </div> -->
528
+ <div class="block well individual-settings" style="display: none">
529
  <div class="navbar">
530
  <div class="navbar-inner">
531
  <h5><?php _e( "Pagination Settings", gallery_bank ); ?></h5>
views/edit-album.php CHANGED
@@ -381,7 +381,10 @@
381
  </div>
382
  </div>
383
  <div class="block well">
384
- <div class="navbar">
 
 
 
385
  <div class="navbar-inner">
386
  <h5><?php _e( "Album Settings", gallery_bank );?></h5>
387
  <div class="nav pull-right">
@@ -391,7 +394,7 @@
391
  </div>
392
  </div>
393
  </div>
394
- <div class="collapse in" id="edit_album_settings">
395
  <div class="body">
396
  <div class="control-group">
397
  <label class="control-label"><?php _e( "Global Settings", gallery_bank ); ?> : </label>
@@ -440,7 +443,7 @@
440
  $class= "collapse in";
441
  }
442
  ?>
443
- <div class="block well" id="edit_thumbnail_settings">
444
  <div class="navbar">
445
  <div class="navbar-inner">
446
  <h5><?php _e( "Thumbnails Settings", gallery_bank ); ?></h5>
@@ -537,7 +540,7 @@
537
  </div>
538
  </div>
539
  </div>
540
- <div class="block well" id="edit_cover_settings">
541
  <div class="navbar">
542
  <div class="navbar-inner">
543
  <h5><?php _e( "Album Cover Settings", gallery_bank ); ?></h5>
@@ -627,7 +630,7 @@
627
  </div>
628
  </div>
629
  </div>
630
- <div class="block well" id="edit_lightbox_settings">
631
  <div class="navbar">
632
  <div class="navbar-inner">
633
  <h5><?php _e( "Lightbox Settings", gallery_bank ); ?></h5>
@@ -744,7 +747,7 @@
744
  </div>
745
  </div>
746
  </div> -->
747
- <div class="block well" id="edit_pagination_settings">
748
  <div class="navbar">
749
  <div class="navbar-inner">
750
  <h5><?php _e( "Pagination Settings", gallery_bank ); ?></h5>
381
  </div>
382
  </div>
383
  <div class="block well">
384
+ <div class="body">
385
+ <a href="http://gallery-bank.com/" target="_blank"><img style="float:right;cursor: pointer;width: 100%" src="<?php echo GALLERY_BK_PLUGIN_URL.'/assets/images/setting_sidebar.png' ?>"/></a>
386
+ </div>
387
+ <div class="navbar" style="display: none">
388
  <div class="navbar-inner">
389
  <h5><?php _e( "Album Settings", gallery_bank );?></h5>
390
  <div class="nav pull-right">
394
  </div>
395
  </div>
396
  </div>
397
+ <div class="collapse in" id="edit_album_settings" style="display: none">
398
  <div class="body">
399
  <div class="control-group">
400
  <label class="control-label"><?php _e( "Global Settings", gallery_bank ); ?> : </label>
443
  $class= "collapse in";
444
  }
445
  ?>
446
+ <div class="block well" id="edit_thumbnail_settings" style="display: none">
447
  <div class="navbar">
448
  <div class="navbar-inner">
449
  <h5><?php _e( "Thumbnails Settings", gallery_bank ); ?></h5>
540
  </div>
541
  </div>
542
  </div>
543
+ <div class="block well" id="edit_cover_settings" style="display: none">
544
  <div class="navbar">
545
  <div class="navbar-inner">
546
  <h5><?php _e( "Album Cover Settings", gallery_bank ); ?></h5>
630
  </div>
631
  </div>
632
  </div>
633
+ <div class="block well" id="edit_lightbox_settings" style="display: none">
634
  <div class="navbar">
635
  <div class="navbar-inner">
636
  <h5><?php _e( "Lightbox Settings", gallery_bank ); ?></h5>
747
  </div>
748
  </div>
749
  </div> -->
750
+ <div class="block well" id="edit_pagination_settings" style="display: none">
751
  <div class="navbar">
752
  <div class="navbar-inner">
753
  <h5><?php _e( "Pagination Settings", gallery_bank ); ?></h5>
views/settings.php CHANGED
@@ -1,738 +1,10 @@
1
- <?php
2
- $album_css = $wpdb -> get_row
3
- (
4
- $wpdb -> prepare
5
- (
6
- 'SELECT * FROM ' . gallery_bank_settings() . " WHERE album_id = %d",
7
- 0
8
- )
9
- );
10
- function rgb2hex($R, $G, $B) {
11
- $R = dechex($R);
12
- If (strlen($R) < 2)
13
- $R = '0' . $R;
14
- $G = dechex($G);
15
- If (strlen($G) < 2)
16
- $G = '0' . $G;
17
- $B = dechex($B);
18
- If (strlen($B) < 2)
19
- $B = '0' . $B;
20
- return '#' . $R . $G . $B;
21
- }
22
- $content = explode("/", $album_css -> setting_content);
23
- $image_settings = explode(";", $content[0]);
24
- $image_content = explode(":", $image_settings[0]);
25
- $image_width = explode(":", $image_settings[1]);
26
- $image_width_value = str_replace("px", "", $image_width[1]);
27
- $image_height = explode(":", $image_settings[2]);
28
- $image_height_value = str_replace("px", "", $image_height[1]);
29
- $images_in_row = explode(":", $image_settings[3]);
30
- $image_opacity = explode(":", $image_settings[4]);
31
- $image_border_size = explode(":", $image_settings[5]);
32
- $image_border_size_value = str_replace("px", "", $image_border_size[1]);
33
- $image_border_radius = explode(":", $image_settings[6]);
34
- $image_border_radius_value = str_replace("px", "", $image_border_radius[1]);
35
- $image_border_color = explode(":", $image_settings[7]);
36
- $image_border_color_substring = explode(",", str_replace("rgb(", "", substr($image_border_color[1], 0, -1)));
37
- $image_border_color_value = rgb2hex($image_border_color_substring[0], $image_border_color_substring[1], $image_border_color_substring[2]);
38
-
39
- $cover_settings = explode(";", $content[1]);
40
- $cover_content = explode(":", $cover_settings[0]);
41
- $cover_width = explode(":", $cover_settings[1]);
42
- $cov_width = str_replace("px", "", $cover_width[1]);
43
- $cover_height = explode(":", $cover_settings[2]);
44
- $cov_height = str_replace("px", "", $cover_height[1]);
45
- $cover_opacity = explode(":", $cover_settings[3]);
46
- $cover_border_size = explode(":", $cover_settings[4]);
47
- $cov_border_size = str_replace("px", "", $cover_border_size[1]);
48
- $cover_border_radius = explode(":", $cover_settings[5]);
49
- $cov_border_radius = str_replace("px", "", $cover_border_radius[1]);
50
- $cover_border_color = explode(":", $cover_settings[6]);
51
- $cover_border_color_substring = explode(",", str_replace("rgb(", "", substr($cover_border_color[1], 0, -1)));
52
- $cover_border_color_value = rgb2hex($cover_border_color_substring[0], $cover_border_color_substring[1], $cover_border_color_substring[2]);
53
-
54
- $lightbox_settings = explode(";", $content[2]);
55
- $overlay_opacity = explode(":", $lightbox_settings[0]);
56
- $overlay_border_size = explode(":", $lightbox_settings[1]);
57
- $overlay_border_size_value = str_replace("px", "", $overlay_border_size[1]);
58
- $overlay_border_radius = explode(":", $lightbox_settings[2]);
59
- $overlay_border_radius_value = str_replace("px", "", $overlay_border_radius[1]);
60
- $lightbox_text_color = explode(":", $lightbox_settings[3]);
61
- $lightbox_text_color_substring = explode(",", str_replace("rgb(", "", substr($lightbox_text_color[1], 0, -1)));
62
- $lightbox_text_color_value = rgb2hex($lightbox_text_color_substring[0], $lightbox_text_color_substring[1], $lightbox_text_color_substring[2]);
63
- $overlay_border_color = explode(":", $lightbox_settings[4]);
64
- $overlay_border_color_substring = explode(",", str_replace("rgb(", "", substr($overlay_border_color[1], 0, -1)));
65
- $overlay_border_color_value = rgb2hex($overlay_border_color_substring[0], $overlay_border_color_substring[1], $overlay_border_color_substring[2]);
66
- $lightbox_inline_bg_color = explode(":", $lightbox_settings[5]);
67
- $lightbox_bgcolor_inline_substring = explode(",", str_replace("rgb(", "", substr($lightbox_inline_bg_color[1], 0, -1)));
68
- $lightbox_inline_bgcolor_value = rgb2hex($lightbox_bgcolor_inline_substring[0], $lightbox_bgcolor_inline_substring[1], $lightbox_bgcolor_inline_substring[2]);
69
- $lightbox_bg_color = explode(":", $lightbox_settings[6]);
70
- $overlay_bgcolor_color_substring = explode(",", str_replace("rgb(", "", substr($lightbox_bg_color[1], 0, -1)));
71
- $overlay_bgcolor_value = rgb2hex($overlay_bgcolor_color_substring[0], $overlay_bgcolor_color_substring[1], $overlay_bgcolor_color_substring[2]);
72
-
73
- $slideshow_settings = explode(";", $content[3]);
74
- $auto_play = explode(":", $slideshow_settings[0]);
75
- $slide_interval = explode(":", $slideshow_settings[1]);
76
-
77
- $pagination_settings = explode(";", $content[4]);
78
- $pagination = explode(":", $pagination_settings[0]);
79
- ?>
80
- <div class="block well" style="min-height:400px;">
81
  <div class="navbar">
82
  <div class="navbar-inner">
83
  <h5><?php _e( "Global Settings", gallery_bank ); ?></h5>
84
  </div>
85
  </div>
86
  <div class="body" style="margin:10px;">
87
- <form class="form-horizontal1" id="default_settings">
88
- <a class="btn btn-inverse" href="admin.php?page=gallery_bank"><?php _e( "Back to Album Overview", gallery_bank ); ?></a>
89
- <a class="btn btn-primary" style="cursor: pointer;margin-left: 20px;" onclick="restore_factory();"><?php _e( "Restore Settings", gallery_bank ); ?></a>
90
- <button type="submit" class="btn btn-primary" style="float:right">
91
- <?php _e( "Save and Submit Changes", gallery_bank ); ?>
92
- </button>
93
- <div class="separator-doubled"></div>
94
- <div class="message green" id="success_message" style="display: none;">
95
- <span>
96
- <strong><?php _e("Success! Settings have been saved.", gallery_bank); ?></strong>
97
- </span>
98
- </div>
99
- <div class="message green" id="success_message_resotre" style="display: none;">
100
- <span>
101
- <strong><?php _e("Success! Settings have been restored.", gallery_bank); ?></strong>
102
- </span>
103
- </div>
104
- <div class="row-fluid">
105
- <div class="span12">
106
- <div class="block well">
107
-
108
- <div class="navbar">
109
- <div class="handlediv" title="Click to toggle"></div>
110
- <div class="navbar-inner">
111
-
112
- <h5><?php _e( "Thumbnail Settings", gallery_bank ); ?></h5>
113
- <div class="nav pull-right">
114
- <a class="just-icon" data-toggle="collapse" data-target="#thumbnail_settings">
115
- <i class="font-resize-vertical"></i>
116
- </a>
117
- </div>
118
- </div>
119
- </div>
120
- <div class="collapse in" id="thumbnail_settings">
121
- <div class="body">
122
- <div class="control-group">
123
- <label class="control-label"><?php _e( "Thumbnail Size", gallery_bank ); ?> : </label>
124
- <div class="controls on_off3">
125
- <div class="checkbox">
126
- <?php
127
- if($image_content[1] == 1)
128
- {
129
- ?>
130
- <input type="radio" name="ux_thumbnail" value="1" checked="checked" onclick="check_thumbnail_settings();" /> <?php _e( "Original", gallery_bank ); ?>
131
- <input type="radio" style="margin-left: 10px;" name="ux_thumbnail" value="0" onclick="check_thumbnail_settings();" /> <?php _e( "Custom", gallery_bank ); ?>
132
- <?php
133
- }
134
- else
135
- {
136
- ?>
137
- <input type="radio" name="ux_thumbnail" value="1" onclick="check_thumbnail_settings();" /> <?php _e( "Original", gallery_bank ); ?>
138
- <input type="radio" style="margin-left: 10px;" name="ux_thumbnail" checked="checked" value="0" onclick="check_thumbnail_settings();" /> <?php _e( "Custom", gallery_bank ); ?>
139
- <?php
140
- }
141
- ?>
142
- </div>
143
- </div>
144
- </div>
145
- <div class="control-group" id="image_width">
146
- <label class="control-label"><?php _e( "Width", gallery_bank ); ?> : </label>
147
- <div class="controls">
148
- <input type="text" class="span5" id="ux_image_width" name="ux_image_width" onkeypress="return OnlyNumbers(event)" value="<?php echo $image_width_value; ?>" />
149
- <span style="padding-top:3px;float:left;margin-left:2%">px</span>
150
- </div>
151
- </div>
152
- <div class="control-group" id="image_height">
153
- <label class="control-label"><?php _e( "Height", gallery_bank ); ?> : </label>
154
- <div class="controls">
155
- <input type="text" id="ux_image_height" name="ux_image_height" onkeypress="return OnlyNumbers(event)" class="span5" value="<?php echo $image_height_value; ?>">
156
- <span style="padding-top:3px;float:left;margin-left:2%">px</span>
157
- </div>
158
- </div>
159
- <div class="control-group">
160
- <label class="control-label"><?php _e( "Images in Row", gallery_bank ); ?> : </label>
161
- <div class="controls">
162
- <input type="text" class="span5" id="ux_image_in_row_val" onkeyup="set_text_value('image_in_row')" onblur="set_text_value('image_in_row1')" name="ux_image_in_row_val" onkeypress="return OnlyNumbers(event)" value="<?php echo $images_in_row[1]; ?>"/>
163
- <span style="padding-top:3px;float:left;margin-left:2%">(1 - 20)</span>
164
- </div>
165
- </div>
166
- <div class="control-group">
167
- <label class="control-label"><?php _e( "Opacity", gallery_bank ); ?> : </label>
168
- <div class="controls">
169
- <input type="text" class="span5" id="ux_image_opacity_val" onkeyup="set_text_value('thumb_opacity')" onblur="set_text_value('thumb_opacity')" name="ux_image_opacity_val" onkeypress="return OnlyNumbers(event)" value="<?php echo $image_opacity[1] * 100; ?>" />
170
- <span style="padding-top:3px;float:left;margin-left:2%">%</span>
171
- </div>
172
- </div>
173
- <div class="control-group">
174
- <label class="control-label"><?php _e( "Border Size", gallery_bank ); ?> : </label>
175
- <div class="controls">
176
- <input type="text" class="span5" id="ux_image_border_val" name="ux_image_border_val" onblur="set_text_value('thumb_border_size')" onkeyup="set_text_value('thumb_border_size')" onkeypress="return OnlyNumbers(event)" value="<?php echo $image_border_size_value; ?>" />
177
- <span style="padding-top:3px;float:left;margin-left:2%">(0 - 20)</span>
178
- </div>
179
- </div>
180
- <div class="control-group">
181
- <label class="control-label"><?php _e( "Border Radius", gallery_bank ); ?> : </label>
182
- <div class="controls">
183
- <input type="text" class="span5" id="ux_image_radius_val" name="ux_image_radius_val" onblur="set_text_value('thumb_border_radius')" onkeyup="set_text_value('thumb_border_radius')" onkeypress="return OnlyNumbers(event)" value="<?php echo $image_border_radius_value; ?>" />
184
- <span style="padding-top:3px;float:left;margin-left:2%">(0 - 20)</span>
185
- </div>
186
- </div>
187
- <div class="control-group">
188
- <label class="control-label"><?php _e( "Border Color", gallery_bank ); ?> : </label>
189
- <div class="controls">
190
- <input type="color" class="span5" name="ux_border_color" id="ux_border_color" class="span6" value="<?php echo $image_border_color_value; ?>" />
191
- </div>
192
- </div>
193
- </div>
194
- </div>
195
- </div>
196
- <div class="block well">
197
- <div class="navbar">
198
- <div class="navbar-inner">
199
- <h5><?php _e( "Album Cover Settings", gallery_bank ); ?></h5>
200
- <div class="nav pull-right">
201
- <a class="just-icon" data-toggle="collapse" data-target="#cover_settings">
202
- <i class="font-resize-vertical"></i>
203
- </a>
204
- </div>
205
- </div>
206
- </div>
207
- <div class="collapse" id="cover_settings">
208
- <div class="body">
209
- <div class="control-group">
210
- <label class="control-label"><?php _e( "Cover Size", gallery_bank ); ?> : </label>
211
- <div class="controls on_off3">
212
- <div class="checkbox">
213
- <?php
214
- if($cover_content[1] == 1)
215
- {
216
- ?>
217
- <input type="radio" name="ux_cover_size" value="1" checked="checked" onclick="check_cover_settings();" /> <?php _e( "Original", gallery_bank ); ?>
218
- <input type="radio" style="margin-left: 10px;" name="ux_cover_size" value="0" onclick="check_cover_settings();" /> <?php _e( "Custom", gallery_bank ); ?>
219
- <?php
220
- }
221
- else
222
- {
223
- ?>
224
- <input type="radio" name="ux_cover_size" value="1" onclick="check_cover_settings();" /> <?php _e( "Original", gallery_bank ); ?>
225
- <input type="radio" style="margin-left: 10px;" name="ux_cover_size" checked="checked" value="0" onclick="check_cover_settings();" /> <?php _e( "Custom", gallery_bank ); ?>
226
- <?php
227
- }
228
- ?>
229
- </div>
230
- </div>
231
- </div>
232
- <div class="control-group" id="cover_width">
233
- <label class="control-label"><?php _e( "Width", gallery_bank ); ?> : </label>
234
- <div class="controls">
235
- <input type="text" class="span5" id="ux_cover_width" name="ux_cover_width" onkeypress="return OnlyNumbers(event)" value="<?php echo $cov_width;?>" />
236
- <span style="padding-top:3px;float:left;margin-left:2%">px</span>
237
- </div>
238
- </div>
239
- <div class="control-group" id="cover_height">
240
- <label class="control-label"><?php _e( "Height", gallery_bank ); ?> : </label>
241
- <div class="controls">
242
- <input type="text" id="ux_cover_height" name="ux_cover_height" onkeypress="return OnlyNumbers(event)" class="span5" value="<?php echo $cov_height;?>">
243
- <span style="padding-top:3px;float:left;margin-left:2%">px</span>
244
- </div>
245
- </div>
246
- <div class="control-group">
247
- <label class="control-label"><?php _e( "Opacity", gallery_bank ); ?> : </label>
248
- <div class="controls">
249
- <input type="text" class="span5"id="ux_cover_opacity_val" name="ux_cover_opacity_val" onblur="set_text_value('cover_opacity')" onkeyup="set_text_value('cover_opacity')" onkeypress="return OnlyNumbers(event)" value="<?php echo $cover_opacity[1] * 100 ;?>"/>
250
- <span style="padding-top:3px;float:left;margin-left:2%">%</span>
251
- </div>
252
- </div>
253
- <div class="control-group">
254
- <label class="control-label"><?php _e( "Border Size", gallery_bank ); ?> : </label>
255
- <div class="controls">
256
- <input type="text" class="span5" id="ux_cover_border_val" name="ux_cover_border_val" onblur="set_text_value('cover_border_size')" onkeyup="set_text_value('cover_border_size')" onkeypress="return OnlyNumbers(event)" value="<?php echo $cov_border_size;?>" />
257
- <span style="padding-top:3px;float:left;margin-left:2%">(0 - 20)</span>
258
- </div>
259
- </div>
260
- <div class="control-group">
261
- <label class="control-label"><?php _e( "Border Radius", gallery_bank ); ?> : </label>
262
- <div class="controls">
263
- <input type="text" class="span5" id="ux_cover_radius_val" name="ux_cover_radius_val" onblur="set_text_value('cover_border_radius')" onkeyup="set_text_value('cover_border_radius')" onkeypress="return OnlyNumbers(event)" value="<?php echo $cov_border_radius;?>" />
264
- <span style="padding-top:3px;float:left;margin-left:2%">(0 - 20)</span>
265
- </div>
266
- </div>
267
- <div class="control-group">
268
- <label class="control-label"><?php _e( "Border Color", gallery_bank ); ?> : </label>
269
- <div class="controls">
270
- <input type="color" class="span5" name="ux_cover_border_color" id="ux_edit_border_color" value="<?php echo $cover_border_color_value; ?>" />
271
- </div>
272
- </div>
273
- </div>
274
- </div>
275
- </div>
276
- <div class="block well">
277
- <div class="navbar">
278
- <div class="navbar-inner">
279
- <h5><?php _e( "Lightbox Settings", gallery_bank ); ?></h5>
280
- <div class="nav pull-right">
281
- <a class="just-icon" data-toggle="collapse" data-target="#lightbox_settings">
282
- <i class="font-resize-vertical"></i>
283
- </a>
284
- </div>
285
- </div>
286
- </div>
287
- <div class="collapse" id="lightbox_settings">
288
- <div class="body">
289
- <div class="control-group">
290
- <label class="control-label"><?php _e( "Opacity", gallery_bank ); ?> : </label>
291
- <div class="controls">
292
- <input type="text" class="span5" id="ux_lightbox_opacity_val" name="ux_lightbox_opacity_val" onblur="set_text_value('lightbox_opacity')" onkeyup="set_text_value('lightbox_opacity')" onkeypress="return OnlyNumbers(event)" value="<?php echo $overlay_opacity[1] * 100;?>" />
293
- <span style="padding-top:3px;float:left;margin-left:2%">%</span>
294
- </div>
295
- </div>
296
- <div class="control-group">
297
- <label class="control-label"><?php _e( "Border Size", gallery_bank ); ?> : </label>
298
- <div class="controls">
299
- <input type="text" class="span5" id="ux_lightbox_border_val" name="ux_lightbox_border_val" onblur="set_text_value('lightbox_border')" onkeyup="set_text_value('lightbox_border')" onkeypress="return OnlyNumbers(event)" value="<?php echo $overlay_border_size_value;?>" />
300
- <span style="padding-top:3px;float:left;margin-left:2%">(0 - 20)</span>
301
- </div>
302
- </div>
303
- <div class="control-group">
304
- <label class="control-label"><?php _e( "Border Radius", gallery_bank ); ?> : </label>
305
- <div class="controls">
306
- <input type="text" class="span5" id="ux_lightbox_radius_val" name="ux_lightbox_radius_val" onblur="set_text_value('lightbox_radius')" onkeyup="set_text_value('lightbox_radius')" onkeypress="return OnlyNumbers(event)"value="<?php echo $overlay_border_radius_value; ?>"/>
307
- <span style="padding-top:3px;float:left;margin-left:2%">(0 - 20)</span>
308
- </div>
309
- </div>
310
- <div class="control-group">
311
- <label class="control-label"><?php _e( "Text Color", gallery_bank ); ?> : </label>
312
- <div class="controls">
313
- <input type="color" class="span5" name="ux_lightbox_text_color" id="ux_lightbox_text_color" class="span6" value="<?php echo $lightbox_text_color_value;?>" />
314
- </div>
315
- </div>
316
- <div class="control-group">
317
- <label class="control-label"><?php _e( "Border Color", gallery_bank ); ?> : </label>
318
- <div class="controls">
319
- <input type="color" class="span5" name="ux_overlay_border_color" id="ux_overlay_border_color" class="span6" value="<?php echo $overlay_border_color_value;?>" />
320
- </div>
321
- </div>
322
- <div class="control-group">
323
- <label class="control-label"><?php _e( "Inline Background", gallery_bank ); ?> : </label>
324
- <div class="controls">
325
- <input type="color" class="span5" class="span6" name="ux_inline_overlay_color" id="ux_inline_overlay_color" value="<?php echo $lightbox_inline_bgcolor_value; ?>"/>
326
- </div>
327
- </div>
328
- <div class="control-group">
329
- <label class="control-label"><?php _e( "Overlay Background", gallery_bank ); ?> : </label>
330
- <div class="controls">
331
- <input type="color" class="span5" name="ux_overlay_bg_color" id="ux_overlay_bg_color" class="span6" value="<?php echo $overlay_bgcolor_value; ?>" />
332
- </div>
333
- </div>
334
- </div>
335
- </div>
336
- </div>
337
- <!-- <div class="block well">
338
- <div class="navbar">
339
- <div class="navbar-inner">
340
- <h5><?php _e( "Slide Show Settings", gallery_bank ); ?></h5>
341
- <div class="nav pull-right">
342
- <a class="just-icon" data-toggle="collapse" data-target="#slideshow_settings">
343
- <i class="font-resize-vertical"></i>
344
- </a>
345
- </div>
346
- </div>
347
- </div>
348
- <div class="collapse" id="slideshow_settings">
349
- <div class="body">
350
- <div class="control-group">
351
- <label class="control-label"><?php _e( "Auto Play", gallery_bank ); ?> : </label>
352
- <div class="controls on_off4">
353
- <div class="checkbox">
354
- <?php
355
- if($auto_play[1] == 1)
356
- {
357
- ?>
358
- <input type="radio" name="ux_slideshow" value="1" checked="checked" /> <?php _e( "Enable", gallery_bank ); ?>
359
- <input type="radio" style="margin-left: 10px;" name="ux_slideshow" value="0" /> <?php _e( "Disable", gallery_bank ); ?>
360
- <?php
361
- }
362
- else
363
- {
364
- ?>
365
- <input type="radio" name="ux_slideshow" value="1" /> <?php _e( "Enable", gallery_bank ); ?>
366
- <input type="radio" style="margin-left: 10px;" name="ux_slideshow" checked="checked" value="0" /> <?php _e( "Disable", gallery_bank ); ?>
367
- <?php
368
- }
369
- ?>
370
- </div>
371
- </div>
372
- </div>
373
- <div class="control-group">
374
- <label class="control-label"><?php _e( "Interval", gallery_bank ); ?> : </label>
375
- <div class="controls">
376
- <input type="text" class="span5" id="ux_slide_val" name="ux_slide_val" onblur="set_text_value('slide')" onkeyup="set_text_value('slide')" onkeypress="return OnlyNumbers(event)" value="<?php echo $slide_interval[1]; ?>" />
377
- <span style="padding-top:3px;float:left;margin-left:2%">(0 - 15)</span>
378
- </div>
379
- </div>
380
- </div>
381
- </div>
382
- </div> -->
383
- <div class="block well">
384
- <div class="navbar">
385
- <div class="navbar-inner">
386
- <h5><?php _e( "Pagination Settings", gallery_bank ); ?></h5>
387
- <div class="nav pull-right">
388
- <a class="just-icon" data-toggle="collapse" data-target="#pagination_settings">
389
- <i class="font-resize-vertical"></i>
390
- </a>
391
- </div>
392
- </div>
393
- </div>
394
- <div class="collapse" id="pagination_settings">
395
- <div class="body">
396
- <div class="control-group">
397
- <label class="control-label"><?php _e( "Paging", gallery_bank ); ?> : </label>
398
- <div class="controls on_off4">
399
- <div class="checkbox">
400
- <?php
401
- if($pagination[1] == 1)
402
- {
403
- ?>
404
- <input type="radio" name="ux_paging" value="1" checked="checked" /> <?php _e( "Enable", gallery_bank ); ?>
405
- <input type="radio" style="margin-left: 10px;" name="ux_paging" value="0" /> <?php _e( "Disable", gallery_bank ); ?>
406
- <?php
407
- }
408
- else
409
- {
410
- ?>
411
- <input type="radio" name="ux_paging" value="1" /> <?php _e( "Enable", gallery_bank ); ?>
412
- <input type="radio" style="margin-left: 10px;" name="ux_paging" value="0" checked="checked" /> <?php _e( "Disable", gallery_bank ); ?>
413
- <?php
414
- }
415
- ?>
416
-
417
- </div>
418
- </div>
419
- </div>
420
- </div>
421
- </div>
422
- </div>
423
- </div>
424
- </div>
425
- </form>
426
  </div>
427
  </div>
428
- <script type="text/javascript">
429
- jQuery(document).ready(function()
430
- {
431
- check_thumbnail_settings();
432
- check_cover_settings();
433
-
434
- });
435
-
436
- jQuery("#default_settings").validate
437
- ({
438
- rules:
439
- {
440
- ux_image_width:
441
- {
442
- required: true,
443
- digits: true
444
- },
445
- ux_image_height:
446
- {
447
- required: true,
448
- digits: true
449
- },
450
- ux_cover_width:
451
- {
452
- required: true,
453
- digits: true
454
- },
455
- ux_cover_height:
456
- {
457
- required: true,
458
- digits: true
459
- }
460
- },
461
- submitHandler: function(form)
462
- {
463
- jQuery.post(ajaxurl, jQuery(form).serialize() + "&param=update_global_settings&action=settings_gallery_library", function(data)
464
- {
465
- jQuery('#success_message').css('display','block');
466
- setTimeout(function()
467
- {
468
- jQuery('#success_message').css('display','none');
469
- window.location.href = "admin.php?page=settings";
470
- }, 2000);
471
- });
472
- }
473
- });
474
- function check_thumbnail_settings()
475
- {
476
- var thumb_setting = jQuery("input:radio[name=ux_thumbnail]:checked").val();
477
- if(thumb_setting == 0)
478
- {
479
- jQuery('#image_width').css('display','block');
480
- jQuery('#image_height').css('display','block');
481
- }
482
- else
483
- {
484
- jQuery('#image_width').css('display','none');
485
- jQuery('#image_height').css('display','none');
486
- }
487
- }
488
- function check_cover_settings()
489
- {
490
- var cover_setting = jQuery("input:radio[name=ux_cover_size]:checked").val();
491
- if(cover_setting == 0)
492
- {
493
- jQuery('#cover_width').css('display','block');
494
- jQuery('#cover_height').css('display','block');
495
- }
496
- else
497
- {
498
- jQuery('#cover_width').css('display','none');
499
- jQuery('#cover_height').css('display','none');
500
- }
501
- }
502
- function OnlyNumbers(evt)
503
- {
504
- var charCode = (evt.which) ? evt.which : event.keyCode;
505
- if ((charCode > 47 && charCode < 58) || charCode == 127 || charCode == 8)
506
- {
507
- return true;
508
- }
509
- else
510
- {
511
- return false;
512
- }
513
- }
514
- jQuery(document).ready(function(){
515
-
516
- jQuery.fn.mColorPicker.defaults = {
517
- currentId: false,
518
- currentInput: false,
519
- currentColor: false,
520
- changeColor: false,
521
- color: false,
522
- imageFolder: '<?php echo GALLERY_BK_PLUGIN_URL; ?>/assets/js/colorpicker/images/'
523
- };
524
- });
525
- function set_text_value(text_type)
526
- {
527
- if(text_type == "image_in_row")
528
- {
529
- var val =jQuery("#ux_image_in_row_val").val();
530
- if(val > 20)
531
- {
532
- jQuery("#ux_image_in_row_val").val(20);
533
- }
534
-
535
- }
536
- if(text_type == "image_in_row1")
537
- {
538
- var val =jQuery("#ux_image_in_row_val").val();
539
- if(val > 20)
540
- {
541
- jQuery("#ux_image_in_row_val").val(20);
542
- }
543
- else if(val < 1)
544
- {
545
- jQuery("#ux_image_in_row_val").val(1);
546
- }
547
- }
548
- if(text_type == "thumb_opacity")
549
- {
550
- var val =jQuery("#ux_image_opacity_val").val();
551
- if(val > 100)
552
- {
553
- jQuery("#ux_image_opacity_val").val(100);
554
- }
555
- else if(val > 0)
556
- {
557
- jQuery("#ux_image_opacity_val").val(jQuery("#ux_image_opacity_val").val().replace(/^0+/, ''));
558
- }
559
- else if(val == "")
560
- {
561
- jQuery("#ux_image_opacity_val").val(0);
562
- }
563
-
564
- }
565
- if(text_type == "thumb_border_size")
566
- {
567
- var val =jQuery("#ux_image_border_val").val();
568
- if(val > 20)
569
- {
570
- jQuery("#ux_image_border_val").val(20);
571
- }
572
- else if(val > 0)
573
- {
574
- jQuery("#ux_image_border_val").val(jQuery("#ux_image_border_val").val().replace(/^0+/, ''));
575
- }
576
- else if(val == "")
577
- {
578
- jQuery("#ux_image_border_val").val(0);
579
- }
580
-
581
- }
582
- if(text_type == "thumb_border_radius")
583
- {
584
- var val =jQuery("#ux_image_radius_val").val();
585
- if(val > 20)
586
- {
587
- jQuery("#ux_image_radius_val").val(20);
588
- }
589
- else if(val > 0)
590
- {
591
- jQuery("#ux_image_radius_val").val(jQuery("#ux_image_radius_val").val().replace(/^0+/, ''));
592
- }
593
- else if(val == "")
594
- {
595
- jQuery("#ux_image_radius_val").val(0);
596
- }
597
-
598
- }
599
- if(text_type == "cover_opacity")
600
- {
601
- var val =jQuery("#ux_cover_opacity_val").val();
602
- if(val > 100)
603
- {
604
- jQuery("#ux_cover_opacity_val").val(100);
605
- }
606
- else if(val > 0)
607
- {
608
- jQuery("#ux_cover_opacity_val").val(jQuery("#ux_cover_opacity_val").val().replace(/^0+/, ''));
609
- }
610
- else if(val == "")
611
- {
612
- jQuery("#ux_cover_opacity_val").val(0);
613
- }
614
-
615
- }
616
- if(text_type == "cover_border_size")
617
- {
618
- var val =jQuery("#ux_cover_border_val").val();
619
- if(val > 20)
620
- {
621
- jQuery("#ux_cover_border_val").val(20);
622
- }
623
- else if(val > 0)
624
- {
625
- jQuery("#ux_cover_border_val").val(jQuery("#ux_cover_border_val").val().replace(/^0+/, ''));
626
- }
627
- else if(val == "")
628
- {
629
- jQuery("#ux_cover_border_val").val(0);
630
- }
631
-
632
- }
633
- if(text_type == "cover_border_radius")
634
- {
635
- var val =jQuery("#ux_cover_radius_val").val();
636
- if(val > 20)
637
- {
638
- jQuery("#ux_cover_radius_val").val(20);
639
- }
640
- else if(val > 0)
641
- {
642
- jQuery("#ux_cover_radius_val").val(jQuery("#ux_cover_radius_val").val().replace(/^0+/, ''));
643
- }
644
- else if(val == "")
645
- {
646
- jQuery("#ux_cover_radius_val").val(0);
647
- }
648
-
649
- }
650
- if(text_type == "lightbox_opacity")
651
- {
652
- var val =jQuery("#ux_lightbox_opacity_val").val();
653
- if(val > 100)
654
- {
655
- jQuery("#ux_lightbox_opacity_val").val(100);
656
- }
657
- else if(val > 0)
658
- {
659
- jQuery("#ux_lightbox_opacity_val").val(jQuery("#ux_lightbox_opacity_val").val().replace(/^0+/, ''));
660
- }
661
- else if(val == "")
662
- {
663
- jQuery("#ux_lightbox_opacity_val").val(0);
664
- }
665
- }
666
- if(text_type == "lightbox_border")
667
- {
668
- var val =jQuery("#ux_lightbox_border_val").val();
669
- if(val > 20)
670
- {
671
- jQuery("#ux_lightbox_border_val").val(20);
672
- }
673
- else if(val > 0)
674
- {
675
- jQuery("#ux_lightbox_border_val").val(jQuery("#ux_lightbox_border_val").val().replace(/^0+/, ''));
676
- }
677
- else if(val == "")
678
- {
679
- jQuery("#ux_lightbox_border_val").val(0);
680
- }
681
- }
682
- if(text_type == "lightbox_radius")
683
- {
684
- var val =jQuery("#ux_lightbox_radius_val").val();
685
- if(val > 20)
686
- {
687
- jQuery("#ux_lightbox_radius_val").val(20);
688
- }
689
- else if(val > 0)
690
- {
691
- jQuery("#ux_lightbox_radius_val").val(jQuery("#ux_lightbox_radius_val").val().replace(/^0+/, ''));
692
- }
693
- else if(val == "")
694
- {
695
- jQuery("#ux_lightbox_radius_val").val(0);
696
- }
697
- }
698
- if(text_type == "slide")
699
- {
700
- var val =jQuery("#ux_slide_val").val();
701
- if(val > 15)
702
- {
703
- jQuery("#ux_slide_val").val(15);
704
- }
705
- else if(val > 0)
706
- {
707
- jQuery("#ux_slide_val").val(jQuery("#ux_slide_val").val().replace(/^0+/, ''));
708
- }
709
- else if(val == "")
710
- {
711
- jQuery("#ux_slide_val").val(0);
712
- }
713
-
714
- }
715
-
716
- }
717
-
718
- function restore_factory()
719
- {
720
- bootbox.confirm("<?php _e("Are you sure you want to restore settings ?", gallery_bank ); ?>", function(confirmed)
721
- {
722
- console.log("Confirmed: "+confirmed);
723
- if(confirmed == true)
724
- {
725
- jQuery.post(ajaxurl, "param=restore_settings&action=settings_gallery_library", function(data)
726
- {
727
- jQuery('#success_message_resotre').css('display','block');
728
- setTimeout(function()
729
- {
730
- jQuery('#success_message_resotre').css('display','none');
731
- window.location.href = "admin.php?page=settings";
732
- }, 2000);
733
- });
734
-
735
- }
736
- });
737
- }
738
- </script>
1
+ <div class="block well" style="min-height:1094px;">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <div class="navbar">
3
  <div class="navbar-inner">
4
  <h5><?php _e( "Global Settings", gallery_bank ); ?></h5>
5
  </div>
6
  </div>
7
  <div class="body" style="margin:10px;">
8
+ <a href="http://gallery-bank.com/" target="_blank"><img style="float:right;cursor: pointer;width: 100%" src="<?php echo GALLERY_BK_PLUGIN_URL.'/assets/images/settings_page.png' ?>"/></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  </div>
10
  </div>