Gallery Bank: WordPress Photo Gallery Plugin - Version 3.0.47

Version Description

  • Advanced Security for Plugin Implemented
Download this release

Release Info

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

Code changes from version 3.0.46 to 3.0.47

gallery-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://tech-banker.com
5
  Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
6
  Author: Tech Banker
7
- Version: 3.0.46
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -86,63 +86,194 @@ function add_gallery_bank_icon($meta = TRUE)
86
  (
87
  "SELECT count(album_id) FROM ".gallery_bank_albums()
88
  );
89
- $wp_admin_bar->add_menu(array(
90
- "id" => "gallery_bank_links",
91
- "title" => __("<img src=\"" . GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png\" width=\"25\"
92
- height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Gallery Bank"),
93
- "href" => __(site_url() . "/wp-admin/admin.php?page=gallery_bank"),
94
- ));
95
-
96
- $wp_admin_bar->add_menu(array(
97
- "parent" => "gallery_bank_links",
98
- "id" => "dashboard_links",
99
- "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
100
- "title" => __("Dashboard", gallery_bank))
101
- );
102
- if($album_count < 3)
103
- {
104
- $wp_admin_bar->add_menu(array(
105
- "parent" => "gallery_bank_links",
106
- "id" => "add_new_album_links",
107
- "href" => site_url() . "/wp-admin/admin.php?page=save_album&album_id=".$id,
108
- "title" => __("Add New Album", gallery_bank))
109
- );
110
- }
111
 
112
- $wp_admin_bar->add_menu(array(
113
- "parent" => "gallery_bank_links",
114
- "id" => "shortcode_links",
115
- "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_shortcode",
116
- "title" => __("Short-Codes", gallery_bank))
117
- );
118
 
119
- $wp_admin_bar->add_menu(array(
120
- "parent" => "gallery_bank_links",
121
- "id" => "sorting_links",
122
- "href" => site_url() . "/wp-admin/admin.php?page=gallery_album_sorting",
123
- "title" => __("Album Sorting", gallery_bank))
124
- );
125
-
126
- $wp_admin_bar->add_menu(array(
127
- "parent" => "gallery_bank_links",
128
- "id" => "global_settings_links",
129
- "href" => site_url() . "/wp-admin/admin.php?page=global_settings",
130
- "title" => __("Global Settings", gallery_bank))
131
- );
132
-
133
- $wp_admin_bar->add_menu(array(
134
- "parent" => "gallery_bank_links",
135
- "id" => "system_status_links",
136
- "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_system_status",
137
- "title" => __("System Status", gallery_bank))
138
- );
139
-
140
- $wp_admin_bar->add_menu(array(
141
- "parent" => "gallery_bank_links",
142
- "id" => "purchase_pro_version_links",
143
- "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_purchase",
144
- "title" => __("Purchase Pro Version", gallery_bank))
145
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  }
147
 
148
 
4
  Plugin URI: http://tech-banker.com
5
  Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
6
  Author: Tech Banker
7
+ Version: 3.0.47
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
86
  (
87
  "SELECT count(album_id) FROM ".gallery_bank_albums()
88
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
+ $role = $wpdb->prefix . "capabilities";
91
+ $current_user->role = array_keys($current_user->$role);
92
+ $role = $current_user->role[0];
 
 
 
93
 
94
+ switch ($role) {
95
+ case "administrator":
96
+ $wp_admin_bar->add_menu(array(
97
+ "id" => "gallery_bank_links",
98
+ "title" => __("<img src=\"" . GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png\" width=\"25\"
99
+ height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Gallery Bank"),
100
+ "href" => __(site_url() . "/wp-admin/admin.php?page=gallery_bank"),
101
+ ));
102
+
103
+ $wp_admin_bar->add_menu(array(
104
+ "parent" => "gallery_bank_links",
105
+ "id" => "dashboard_links",
106
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
107
+ "title" => __("Dashboard", gallery_bank))
108
+ );
109
+ if($album_count < 3)
110
+ {
111
+ $wp_admin_bar->add_menu(array(
112
+ "parent" => "gallery_bank_links",
113
+ "id" => "add_new_album_links",
114
+ "href" => site_url() . "/wp-admin/admin.php?page=save_album&album_id=".$id,
115
+ "title" => __("Add New Album", gallery_bank))
116
+ );
117
+ }
118
+
119
+ $wp_admin_bar->add_menu(array(
120
+ "parent" => "gallery_bank_links",
121
+ "id" => "shortcode_links",
122
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_shortcode",
123
+ "title" => __("Short-Codes", gallery_bank))
124
+ );
125
+
126
+ $wp_admin_bar->add_menu(array(
127
+ "parent" => "gallery_bank_links",
128
+ "id" => "sorting_links",
129
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_album_sorting",
130
+ "title" => __("Album Sorting", gallery_bank))
131
+ );
132
+
133
+ $wp_admin_bar->add_menu(array(
134
+ "parent" => "gallery_bank_links",
135
+ "id" => "global_settings_links",
136
+ "href" => site_url() . "/wp-admin/admin.php?page=global_settings",
137
+ "title" => __("Global Settings", gallery_bank))
138
+ );
139
+
140
+ $wp_admin_bar->add_menu(array(
141
+ "parent" => "gallery_bank_links",
142
+ "id" => "system_status_links",
143
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_system_status",
144
+ "title" => __("System Status", gallery_bank))
145
+ );
146
+
147
+ $wp_admin_bar->add_menu(array(
148
+ "parent" => "gallery_bank_links",
149
+ "id" => "purchase_pro_version_links",
150
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_purchase",
151
+ "title" => __("Purchase Pro Version", gallery_bank))
152
+ );
153
+ break;
154
+ case "editor":
155
+ $wp_admin_bar->add_menu(array(
156
+ "id" => "gallery_bank_links",
157
+ "title" => __("<img src=\"" . GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png\" width=\"25\"
158
+ height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Gallery Bank"),
159
+ "href" => __(site_url() . "/wp-admin/admin.php?page=gallery_bank"),
160
+ ));
161
+
162
+ $wp_admin_bar->add_menu(array(
163
+ "parent" => "gallery_bank_links",
164
+ "id" => "dashboard_links",
165
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
166
+ "title" => __("Dashboard", gallery_bank))
167
+ );
168
+ if($album_count < 3)
169
+ {
170
+ $wp_admin_bar->add_menu(array(
171
+ "parent" => "gallery_bank_links",
172
+ "id" => "add_new_album_links",
173
+ "href" => site_url() . "/wp-admin/admin.php?page=save_album&album_id=".$id,
174
+ "title" => __("Add New Album", gallery_bank))
175
+ );
176
+ }
177
+
178
+ $wp_admin_bar->add_menu(array(
179
+ "parent" => "gallery_bank_links",
180
+ "id" => "shortcode_links",
181
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_shortcode",
182
+ "title" => __("Short-Codes", gallery_bank))
183
+ );
184
+
185
+ $wp_admin_bar->add_menu(array(
186
+ "parent" => "gallery_bank_links",
187
+ "id" => "sorting_links",
188
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_album_sorting",
189
+ "title" => __("Album Sorting", gallery_bank))
190
+ );
191
+
192
+ $wp_admin_bar->add_menu(array(
193
+ "parent" => "gallery_bank_links",
194
+ "id" => "global_settings_links",
195
+ "href" => site_url() . "/wp-admin/admin.php?page=global_settings",
196
+ "title" => __("Global Settings", gallery_bank))
197
+ );
198
+
199
+ $wp_admin_bar->add_menu(array(
200
+ "parent" => "gallery_bank_links",
201
+ "id" => "system_status_links",
202
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_system_status",
203
+ "title" => __("System Status", gallery_bank))
204
+ );
205
+
206
+ $wp_admin_bar->add_menu(array(
207
+ "parent" => "gallery_bank_links",
208
+ "id" => "purchase_pro_version_links",
209
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_purchase",
210
+ "title" => __("Purchase Pro Version", gallery_bank))
211
+ );
212
+ break;
213
+ case "author":
214
+ $wp_admin_bar->add_menu(array(
215
+ "id" => "gallery_bank_links",
216
+ "title" => __("<img src=\"" . GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png\" width=\"25\"
217
+ height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Gallery Bank"),
218
+ "href" => __(site_url() . "/wp-admin/admin.php?page=gallery_bank"),
219
+ ));
220
+
221
+ $wp_admin_bar->add_menu(array(
222
+ "parent" => "gallery_bank_links",
223
+ "id" => "dashboard_links",
224
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
225
+ "title" => __("Dashboard", gallery_bank))
226
+ );
227
+ if($album_count < 3)
228
+ {
229
+ $wp_admin_bar->add_menu(array(
230
+ "parent" => "gallery_bank_links",
231
+ "id" => "add_new_album_links",
232
+ "href" => site_url() . "/wp-admin/admin.php?page=save_album&album_id=".$id,
233
+ "title" => __("Add New Album", gallery_bank))
234
+ );
235
+ }
236
+
237
+ $wp_admin_bar->add_menu(array(
238
+ "parent" => "gallery_bank_links",
239
+ "id" => "shortcode_links",
240
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_shortcode",
241
+ "title" => __("Short-Codes", gallery_bank))
242
+ );
243
+
244
+ $wp_admin_bar->add_menu(array(
245
+ "parent" => "gallery_bank_links",
246
+ "id" => "sorting_links",
247
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_album_sorting",
248
+ "title" => __("Album Sorting", gallery_bank))
249
+ );
250
+
251
+ $wp_admin_bar->add_menu(array(
252
+ "parent" => "gallery_bank_links",
253
+ "id" => "global_settings_links",
254
+ "href" => site_url() . "/wp-admin/admin.php?page=global_settings",
255
+ "title" => __("Global Settings", gallery_bank))
256
+ );
257
+
258
+ $wp_admin_bar->add_menu(array(
259
+ "parent" => "gallery_bank_links",
260
+ "id" => "system_status_links",
261
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_system_status",
262
+ "title" => __("System Status", gallery_bank))
263
+ );
264
+
265
+ $wp_admin_bar->add_menu(array(
266
+ "parent" => "gallery_bank_links",
267
+ "id" => "purchase_pro_version_links",
268
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_purchase",
269
+ "title" => __("Purchase Pro Version", gallery_bank))
270
+ );
271
+ break;
272
+ case "contributor":
273
+ break;
274
+ case "subscriber":
275
+ break;
276
+ }
277
  }
278
 
279
 
lib/gallery-bank-class.php CHANGED
@@ -5,19 +5,56 @@
5
 
6
  function create_global_menus_for_gallery_bank()
7
  {
8
- global $wpdb;
 
 
 
9
 
10
- add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png");
11
- add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
12
- add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
13
- add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
14
- add_submenu_page("gallery_bank", "Gallery Bank", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
15
- add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
16
- add_submenu_page("gallery_bank", "Purchase Pro Version", __("Purchase Pro Version", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
17
- add_submenu_page("", "", "", "read", "view_album", "view_album");
18
- add_submenu_page("", "", "", "read", "album_preview", "album_preview");
19
- add_submenu_page("", "", "", "read", "save_album", "save_album");
20
- add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  }
22
  //--------------------------------------------------------------------------------------------------------------//
23
  // FUNCTIONS FOR REPLACING TABLE NAMES
5
 
6
  function create_global_menus_for_gallery_bank()
7
  {
8
+ global $wpdb,$current_user;
9
+ $role = $wpdb->prefix . "capabilities";
10
+ $current_user->role = array_keys($current_user->$role);
11
+ $role = $current_user->role[0];
12
 
13
+ switch ($role) {
14
+ case "administrator":
15
+ add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png");
16
+ add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
17
+ add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
18
+ add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
19
+ add_submenu_page("gallery_bank", "Gallery Bank", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
20
+ add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
21
+ add_submenu_page("gallery_bank", "Purchase Pro Version", __("Purchase Pro Version", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
22
+ add_submenu_page("", "", "", "read", "view_album", "view_album");
23
+ add_submenu_page("", "", "", "read", "album_preview", "album_preview");
24
+ add_submenu_page("", "", "", "read", "save_album", "save_album");
25
+ add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
26
+ break;
27
+ case "editor":
28
+ add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png");
29
+ add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
30
+ add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
31
+ add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
32
+ add_submenu_page("gallery_bank", "Gallery Bank", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
33
+ add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
34
+ add_submenu_page("gallery_bank", "Purchase Pro Version", __("Purchase Pro Version", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
35
+ add_submenu_page("", "", "", "read", "view_album", "view_album");
36
+ add_submenu_page("", "", "", "read", "album_preview", "album_preview");
37
+ add_submenu_page("", "", "", "read", "save_album", "save_album");
38
+ add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
39
+ break;
40
+ case "author":
41
+ add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png");
42
+ add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
43
+ add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
44
+ add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
45
+ add_submenu_page("gallery_bank", "Gallery Bank", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
46
+ add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
47
+ add_submenu_page("gallery_bank", "Purchase Pro Version", __("Purchase Pro Version", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
48
+ add_submenu_page("", "", "", "read", "view_album", "view_album");
49
+ add_submenu_page("", "", "", "read", "album_preview", "album_preview");
50
+ add_submenu_page("", "", "", "read", "save_album", "save_album");
51
+ add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
52
+ break;
53
+ case "contributor":
54
+ break;
55
+ case "subscriber":
56
+ break;
57
+ }
58
  }
59
  //--------------------------------------------------------------------------------------------------------------//
60
  // FUNCTIONS FOR REPLACING TABLE NAMES
lib/restore_factory_settings.php CHANGED
@@ -1,11 +1,40 @@
1
  <?php
2
- global $wpdb;
3
- $sql = "TRUNCATE TABLE " . gallery_bank_albums();
4
- $wpdb->query($sql);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
- $sql = "TRUNCATE TABLE " . gallery_bank_pics();
7
- $wpdb->query($sql);
8
-
9
- include_once (GALLERY_BK_PLUGIN_DIR . "/lib/include_settings.php");
 
 
 
 
 
 
 
 
 
 
10
 
11
  ?>
1
  <?php
2
+ global $wpdb,$current_user,$user_role_permission;
3
+ $role = $wpdb->prefix . "capabilities";
4
+ $current_user->role = array_keys($current_user->$role);
5
+ $role = $current_user->role[0];
6
+ switch($role)
7
+ {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
23
+ }
24
 
25
+ if (!current_user_can($user_role_permission))
26
+ {
27
+ return;
28
+ }
29
+ else
30
+ {
31
+ $sql = "TRUNCATE TABLE " . gallery_bank_albums();
32
+ $wpdb->query($sql);
33
+
34
+ $sql = "TRUNCATE TABLE " . gallery_bank_pics();
35
+ $wpdb->query($sql);
36
+
37
+ include_once (GALLERY_BK_PLUGIN_DIR . "/lib/include_settings.php");
38
+ }
39
 
40
  ?>
lib/upload.php CHANGED
@@ -1,7 +1,5 @@
1
  <?php
2
  global $wpdb,$current_user,$user_role_permission;
3
- $dynamicArray = array();
4
- $dynamicId = mt_rand(10, 10000);
5
  $role = $wpdb->prefix . "capabilities";
6
  $current_user->role = array_keys($current_user->$role);
7
  $role = $current_user->role[0];
1
  <?php
2
  global $wpdb,$current_user,$user_role_permission;
 
 
3
  $role = $wpdb->prefix . "capabilities";
4
  $current_user->role = array_keys($current_user->$role);
5
  $role = $current_user->role[0];
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker,Gallery-Bank
3
  Tags: admin, AJAX, album, albums, best gallery, best gallery plugin, best portfolio plugin, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, flash, foto, fotoalbum, galerie, Galleria, gallery, gallery album, gallery bank, gallery image, Gallery Plugin, gallery wordpress plugin, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image slider, images, lightbox, links, media, modal, multiple pictures, nextgen, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio wordpress plugin, Post, posts, responsive gallery, seo image, shortcode, sidebar, slideshow, thumbnail, thumbnails, twitter, videos, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wp gallery, wp gallery plugin
4
  Requires at least: 3.3
5
  Tested up to: 3.9.1
6
- Stable tag: 3.0.46
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -48,7 +48,7 @@ It provides a powerful engine for uploading and managing galleries of images & v
48
 
49
  Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
50
 
51
- ***July 15, 2014: We're happy to announce that Gallery Bank reached 155,400+ plugin downloads in only 1 year. We frequently receive positive feedback from people using our Gallery Bank Plugin for WordPress. Thanks so much for your support!***
52
 
53
  <a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
54
 
@@ -482,6 +482,10 @@ is False in shortcode.
482
 
483
  == Changelog ==
484
 
 
 
 
 
485
  = 3.0.46 =
486
 
487
  * Hungarian Language Updated
3
  Tags: admin, AJAX, album, albums, best gallery, best gallery plugin, best portfolio plugin, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, flash, foto, fotoalbum, galerie, Galleria, gallery, gallery album, gallery bank, gallery image, Gallery Plugin, gallery wordpress plugin, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image slider, images, lightbox, links, media, modal, multiple pictures, nextgen, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio wordpress plugin, Post, posts, responsive gallery, seo image, shortcode, sidebar, slideshow, thumbnail, thumbnails, twitter, videos, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wp gallery, wp gallery plugin
4
  Requires at least: 3.3
5
  Tested up to: 3.9.1
6
+ Stable tag: 3.0.47
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
48
 
49
  Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
50
 
51
+ ***July 17, 2014: We're happy to announce that Gallery Bank reached 156,600+ plugin downloads in only 1 year. We frequently receive positive feedback from people using our Gallery Bank Plugin for WordPress. Thanks so much for your support!***
52
 
53
  <a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
54
 
482
 
483
  == Changelog ==
484
 
485
+ = 3.0.47 =
486
+
487
+ * Advanced Security for Plugin Implemented
488
+
489
  = 3.0.46 =
490
 
491
  * Hungarian Language Updated
views/album-preview.php CHANGED
@@ -1,101 +1,129 @@
1
  <?php
2
- global $wpdb;
3
- include GALLERY_BK_PLUGIN_DIR . "/views/includes_common_before.php";
4
- ?>
5
- <!--suppress ALL -->
6
- <form id="album_preview" class="layout-form">
7
- <div id="poststuff" style="width: 99% !important;">
8
- <div id="post-body" class="metabox-holder">
9
- <div id="postbox-container-2" class="postbox-container">
10
- <div id="advanced" class="meta-box-sortables">
11
- <div id="gallery_bank_get_started" class="postbox" >
12
- <div class="handlediv" data-target="#ux_album_preview" title="Click to toggle" data-toggle="collapse"><br></div>
13
- <h3 class="hndle"><span><?php _e("Album Preview", gallery_bank); ?></span></h3>
14
- <div class="inside">
15
- <div id="ux_album_preview" class="gallery_bank_layout">
16
- <a class="btn btn-inverse" href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
17
- <div class="separator-doubled"></div>
18
- <div class="fluid-layout">
19
- <div class="layout-span12">
20
- <div class="widget-layout">
21
- <div class="widget-layout-title">
22
- <h4><?php echo stripcslashes(htmlspecialchars_decode($album)); ?></h4>
23
- </div>
24
- <div class="layout-control-group">
25
- <ul class="breadcrumb">
26
- <li>
27
- <label class="layout-control-label">
28
- <strong>
29
- <?php _e("Images in Row", gallery_bank); ?> :
30
- </strong>
31
- </label>
32
- <select id="ux_ddl_ImagesRow" class="layout-span3" style="margin-left: 16px;"
33
- onchange="select_imges_in_row();">
34
- <option id="" value=""><?php _e("Please Choose", gallery_bank); ?></option>
35
- <?php
36
- for ($i = 1; $i <= 10; $i++):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  ?>
38
- <option <?php if ($i == $img_in_row) echo "selected=\"selected\"" ?>
39
- value="<?php echo $i ?>"><?php echo $i; ?></option>
40
- <?php
41
- endfor;
42
- ?>
43
- </select>
44
- </li>
45
- </ul>
46
- </div>
47
- <div class="widget-layout-body">
48
- <div id="gallery_bank_container" class="gallery_images">
49
- <?php
50
- for ($flag = 0;$flag < count($pics);$flag++)
51
- {
52
- $image_title = $image_desc_setting == 1 && $pics[$flag]->title != "" ? "<h5>" . esc_attr(html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->title)))). "</h5>" : "";
53
- $image_description = $image_desc_setting == 1 && $pics[$flag]->description != "" ? "<p>" . esc_attr(html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->description)))) ."</p>" : "";
54
- if ($pics[$flag]->url == "" || $pics[$flag]->url == "undefined" || $pics[$flag]->url == "http://")
55
  {
56
- if ($pics[$flag]->video == 1)
 
 
57
  {
58
- ?>
59
- <a rel="prettyPhoto[gallery]" href="<?php echo stripcslashes($pics[$flag]->pic_name); ?>"
60
- data-title="<?php echo $image_title . $image_description; ?>" id="ux_img_div">
61
- <?php
 
 
 
 
 
 
 
 
 
 
 
62
  }
63
  else
64
  {
65
  ?>
66
- <a rel="prettyPhoto[gallery]"
67
- href="<?php echo stripcslashes(GALLERY_BK_THUMB_URL . $pics[$flag]->thumbnail_url); ?>"
68
- data-title="<?php echo $image_title . $image_description; ?>" id="ux_img_div">
69
  <?php
70
  }
71
- }
72
- else
73
- {
74
  ?>
75
- <a href="<?php echo $pics[$flag]->url; ?>" id="ux_img_div" target="_blank"
76
- data-title="<?php echo $image_title; ?>">
77
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  }
79
- ?>
80
- <div class="imgLiquidFill dynamic_css">
81
- <?php
82
- if ($pics[$flag]->video == 1) {
83
- ?>
84
- <img imageid="<?php echo $pics[$flag]->pic_id; ?>" id="ux_gb_img" type="video"
85
- src="<?php echo stripcslashes($video_thumb_url); ?>"/>
86
- <?php
87
- } else {
88
- ?>
89
- <img imageid="<?php echo $pics[$flag]->pic_id; ?>"
90
- id="ux_gb_img" type="image" src="<?php echo stripcslashes(GALLERY_BK_THUMB_SMALL_URL . $pics[$flag]->thumbnail_url); ?>"/>
91
- <?php
92
- }
93
- ?>
94
- </div>
95
- </a>
96
- <?php
97
- }
98
- ?>
99
  </div>
100
  </div>
101
  </div>
@@ -107,15 +135,17 @@ include GALLERY_BK_PLUGIN_DIR . "/views/includes_common_before.php";
107
  </div>
108
  </div>
109
  </div>
110
- </div>
111
- </form>
112
- <?php
113
- include GALLERY_BK_PLUGIN_DIR . "/views/includes_common_after.php";
 
 
 
 
 
 
 
 
114
  ?>
115
- <script type="text/javascript">
116
- function select_imges_in_row() {
117
- var row = jQuery("#ux_ddl_ImagesRow").val();
118
- window.location.href = "<?php echo site_url();?>/wp-admin/admin.php?page=album_preview&album_id=<?php echo $album_id;?>&row=" + row;
119
- }
120
- </script>
121
 
1
  <?php
2
+ global $wpdb,$current_user,$user_role_permission;
3
+ $role = $wpdb->prefix . "capabilities";
4
+ $current_user->role = array_keys($current_user->$role);
5
+ $role = $current_user->role[0];
6
+ switch($role)
7
+ {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
23
+ }
24
+ if (!current_user_can($user_role_permission))
25
+ {
26
+ return;
27
+ }
28
+ else
29
+ {
30
+ include GALLERY_BK_PLUGIN_DIR . "/views/includes_common_before.php";
31
+ ?>
32
+ <!--suppress ALL -->
33
+ <form id="album_preview" class="layout-form">
34
+ <div id="poststuff" style="width: 99% !important;">
35
+ <div id="post-body" class="metabox-holder">
36
+ <div id="postbox-container-2" class="postbox-container">
37
+ <div id="advanced" class="meta-box-sortables">
38
+ <div id="gallery_bank_get_started" class="postbox" >
39
+ <div class="handlediv" data-target="#ux_album_preview" title="Click to toggle" data-toggle="collapse"><br></div>
40
+ <h3 class="hndle"><span><?php _e("Album Preview", gallery_bank); ?></span></h3>
41
+ <div class="inside">
42
+ <div id="ux_album_preview" class="gallery_bank_layout">
43
+ <a class="btn btn-inverse" href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
44
+ <div class="separator-doubled"></div>
45
+ <div class="fluid-layout">
46
+ <div class="layout-span12">
47
+ <div class="widget-layout">
48
+ <div class="widget-layout-title">
49
+ <h4><?php echo stripcslashes(htmlspecialchars_decode($album)); ?></h4>
50
+ </div>
51
+ <div class="layout-control-group">
52
+ <ul class="breadcrumb">
53
+ <li>
54
+ <label class="layout-control-label">
55
+ <strong>
56
+ <?php _e("Images in Row", gallery_bank); ?> :
57
+ </strong>
58
+ </label>
59
+ <select id="ux_ddl_ImagesRow" class="layout-span3" style="margin-left: 16px;"
60
+ onchange="select_imges_in_row();">
61
+ <option id="" value=""><?php _e("Please Choose", gallery_bank); ?></option>
62
+ <?php
63
+ for ($i = 1; $i <= 10; $i++):
64
+ ?>
65
+ <option <?php if ($i == $img_in_row) echo "selected=\"selected\"" ?>
66
+ value="<?php echo $i ?>"><?php echo $i; ?></option>
67
+ <?php
68
+ endfor;
69
  ?>
70
+ </select>
71
+ </li>
72
+ </ul>
73
+ </div>
74
+ <div class="widget-layout-body">
75
+ <div id="gallery_bank_container" class="gallery_images">
76
+ <?php
77
+ for ($flag = 0;$flag < count($pics);$flag++)
 
 
 
 
 
 
 
 
 
78
  {
79
+ $image_title = $image_desc_setting == 1 && $pics[$flag]->title != "" ? "<h5>" . esc_attr(html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->title)))). "</h5>" : "";
80
+ $image_description = $image_desc_setting == 1 && $pics[$flag]->description != "" ? "<p>" . esc_attr(html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->description)))) ."</p>" : "";
81
+ if ($pics[$flag]->url == "" || $pics[$flag]->url == "undefined" || $pics[$flag]->url == "http://")
82
  {
83
+ if ($pics[$flag]->video == 1)
84
+ {
85
+ ?>
86
+ <a rel="prettyPhoto[gallery]" href="<?php echo stripcslashes($pics[$flag]->pic_name); ?>"
87
+ data-title="<?php echo $image_title . $image_description; ?>" id="ux_img_div">
88
+ <?php
89
+ }
90
+ else
91
+ {
92
+ ?>
93
+ <a rel="prettyPhoto[gallery]"
94
+ href="<?php echo stripcslashes(GALLERY_BK_THUMB_URL . $pics[$flag]->thumbnail_url); ?>"
95
+ data-title="<?php echo $image_title . $image_description; ?>" id="ux_img_div">
96
+ <?php
97
+ }
98
  }
99
  else
100
  {
101
  ?>
102
+ <a href="<?php echo $pics[$flag]->url; ?>" id="ux_img_div" target="_blank"
103
+ data-title="<?php echo $image_title; ?>">
 
104
  <?php
105
  }
 
 
 
106
  ?>
107
+ <div class="imgLiquidFill dynamic_css">
108
+ <?php
109
+ if ($pics[$flag]->video == 1) {
110
+ ?>
111
+ <img imageid="<?php echo $pics[$flag]->pic_id; ?>" id="ux_gb_img" type="video"
112
+ src="<?php echo stripcslashes($video_thumb_url); ?>"/>
113
+ <?php
114
+ } else {
115
+ ?>
116
+ <img imageid="<?php echo $pics[$flag]->pic_id; ?>"
117
+ id="ux_gb_img" type="image" src="<?php echo stripcslashes(GALLERY_BK_THUMB_SMALL_URL . $pics[$flag]->thumbnail_url); ?>"/>
118
+ <?php
119
+ }
120
+ ?>
121
+ </div>
122
+ </a>
123
+ <?php
124
  }
125
+ ?>
126
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  </div>
128
  </div>
129
  </div>
135
  </div>
136
  </div>
137
  </div>
138
+ </form>
139
+ <?php
140
+ include GALLERY_BK_PLUGIN_DIR . "/views/includes_common_after.php";
141
+ ?>
142
+ <script type="text/javascript">
143
+ function select_imges_in_row() {
144
+ var row = jQuery("#ux_ddl_ImagesRow").val();
145
+ window.location.href = "<?php echo site_url();?>/wp-admin/admin.php?page=album_preview&album_id=<?php echo $album_id;?>&row=" + row;
146
+ }
147
+ </script>
148
+ <?php
149
+ }
150
  ?>
 
 
 
 
 
 
151
 
views/album-sorting.php CHANGED
@@ -1,258 +1,288 @@
1
  <?php
2
- global $wpdb;
3
-
4
- if (isset($_REQUEST["row"])) {
5
- $album_in_row = intval($_REQUEST["row"]);
6
- } else {
7
- $album_in_row = 3;
8
- }
9
-
10
- if (isset($_REQUEST["order_id"])) {
11
- switch ($_REQUEST["order_id"]) {
12
- case "unsort":
13
- $album = $wpdb->get_results
14
- (
15
- "SELECT * FROM " . gallery_bank_albums()
16
- );
17
- break;
18
- case "albumId":
19
- $album = $wpdb->get_results
20
- (
21
- "SELECT * FROM " . gallery_bank_albums() . " order by album_id asc"
22
- );
23
- break;
24
- case "name":
25
- $album = $wpdb->get_results
26
- (
27
- "SELECT * FROM " . gallery_bank_albums() . " order by album_name asc"
28
- );
29
- break;
30
- case "date":
31
- $album = $wpdb->get_results
32
- (
33
- "SELECT * FROM " . gallery_bank_albums() . " order by album_date asc"
34
- );
35
- break;
36
- case "asc":
37
- $album = $wpdb->get_results
38
- (
39
- "SELECT * FROM " . gallery_bank_albums() . " order by album_id asc"
40
- );
41
- break;
42
- case "desc":
43
- $album = $wpdb->get_results
44
- (
45
- "SELECT * FROM " . gallery_bank_albums() . " order by album_id desc"
46
- );
47
- break;
48
- }
49
- } else {
50
- $album = $wpdb->get_results
51
- (
52
- "SELECT * FROM " . gallery_bank_albums() . " order by album_order asc "
53
- );
54
  }
55
 
56
- $album_css = $wpdb->get_results
57
- (
58
- "SELECT * FROM " . gallery_bank_settings()
59
- );
60
- if (count($album_css) != 0)
61
  {
62
- $setting_keys = array();
63
- for ($flag = 0; $flag < count($album_css); $flag++)
64
- {
65
- array_push($setting_keys, $album_css[$flag]->setting_key);
66
- }
67
- $index = array_search("cover_thumbnail_width", $setting_keys);
68
- $cover_thumbnail_width = $album_css[$index]->setting_value;
69
-
70
- $index = array_search("cover_thumbnail_height", $setting_keys);
71
- $cover_thumbnail_height = $album_css[$index]->setting_value;
72
-
73
- $index = array_search("cover_thumbnail_opacity", $setting_keys);
74
- $cover_thumbnail_opacity = $album_css[$index]->setting_value;
75
-
76
- $index = array_search("cover_thumbnail_border_size", $setting_keys);
77
- $cover_thumbnail_border_size = $album_css[$index]->setting_value;
78
- $new_cover_width = $cover_thumbnail_width + ($cover_thumbnail_border_size * 4);
79
-
80
- $index = array_search("cover_thumbnail_border_radius", $setting_keys);
81
- $cover_thumbnail_border_radius = $album_css[$index]->setting_value;
82
-
83
- $index = array_search("cover_thumbnail_border_color", $setting_keys);
84
- $cover_thumbnail_border_color = $album_css[$index]->setting_value;
85
-
86
- $index = array_search("margin_btw_cover_thumbnails", $setting_keys);
87
- $margin_btw_cover_thumbnails = $album_css[$index]->setting_value;
88
-
89
- ?>
90
- <!--suppress ALL -->
91
- <style type="text/css">
92
- .dynamic_cover_css {
93
- border: <?php echo $cover_thumbnail_border_size;?>px solid <?php echo $cover_thumbnail_border_color;?>;
94
- border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
95
- -moz-border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
96
- -webkit-border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
97
- -khtml-border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
98
- -o-border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
99
- opacity: <?php echo $cover_thumbnail_opacity;?>;
100
- -moz-opacity: <?php echo $cover_thumbnail_opacity;?>;
101
- -khtml-opacity: <?php echo $cover_thumbnail_opacity;?>;
102
- margin-right: <?php echo $margin_btw_cover_thumbnails; ?>px;
103
- margin-bottom: <?php echo $margin_btw_cover_thumbnails; ?>px;
104
- }
105
-
106
- .layout-controls > a#<?php echo $_REQUEST["order_id"];?>
107
- {
108
- color:#000000;font-weight:bold;
109
- }
110
- .imgLiquidFill {
111
- width: <?php echo $cover_thumbnail_width;?>px;
112
- height: <?php echo $cover_thumbnail_height;?>px;
113
- cursor: move;
114
- display: inline-block;
115
- }
116
-
117
- .sort {
118
- padding: 6px;
119
- clear: both;
120
- margin-top: 1%;
121
- width: <?php echo ($new_cover_width + $margin_btw_cover_thumbnails *2) * $album_in_row ;?>px;
122
- }
123
- </style>
124
- <?php
125
  }
126
- ?>
127
- <form id="reodering_albums" class="layout-form">
128
- <div id="poststuff" style="width: 99% !important;">
129
- <div id="post-body" class="metabox-holder">
130
- <div id="postbox-container-2" class="postbox-container">
131
- <div id="advanced" class="meta-box-sortables">
132
- <div id="gallery_bank_get_started" class="postbox" >
133
- <div class="handlediv" data-target="#ux_reorder_album" title="Click to toggle" data-toggle="collapse"><br></div>
134
- <h3 class="hndle"><span><?php _e("Re-Order Albums", gallery_bank); ?></span></h3>
135
- <div class="inside">
136
- <div id="ux_reorder_album" class="gallery_bank_layout">
137
- <a class="btn btn-inverse"
138
- href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
139
- <a href="#" onclick="show_premium_message();" class="btn btn-info"
140
- style="float:right"><?php _e("Update Order", gallery_bank); ?></a>
141
- <div id="sort_order_message" class="message green" style="display: none;">
142
- <span>
143
- <strong><?php _e("Sorting Order has been updated.", gallery_bank); ?></strong>
144
- </span>
145
- </div>
146
- <div class="separator-doubled"></div>
147
- <div class="fluid-layout">
148
- <div class="layout-span12">
149
- <div class="widget-layout">
150
- <div class="widget-layout-body">
151
- <div class="layout-control-group">
152
- <ul class="breadcrumb">
153
- <li>
154
- <label class="layout-control-label"><strong>Presort :</strong></label>
155
- <div class="layout-controls" style="margin-top: 10px;">
156
- <a id="unsort" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=unsort">Unsorted</a>
157
- |
158
- <a id="albumId" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=albumId">Album ID</a>
159
- |
160
- <a id="name" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=name">File Name</a>
161
- |
162
- <a id="date" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=date">Date</a>
163
- |
164
- <a id="asc" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=asc">Ascending</a>
165
- |
166
- <a id="desc" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=desc">Descending</a>
167
- </div>
168
- <label class="layout-control-label" style="margin-top: 10px;">
169
- <strong>
170
- <?php _e("Albums in Row", gallery_bank); ?> :
171
- </strong>
172
- </label>
173
- <select id="ux_ddl_albumRow" class="layout-span3"
174
- style="margin-left: 16px; margin-top: 10px;" onchange="select_albums_in_row();">
175
- <option id="" value=""><?php _e("Please Choose", gallery_bank); ?></option>
176
- <?php
177
- for ($i = 1; $i <= 10; $i++):
178
- ?>
179
- <option <?php if ($i == $album_in_row) echo "selected=\"selected\"" ?>
180
- value="<?php echo $i ?>"><?php echo $i; ?></option>
181
- <?php
182
- endfor;
183
- ?>
184
- </select>
185
- </li>
186
- </ul>
187
- </div>
188
- <div id="sort_album" class="sort">
189
- <?php
190
- for ($flag = 0; $flag < count($album); $flag++) {
191
-
192
- $albumCover = $wpdb->get_row
193
- (
194
- $wpdb->prepare
195
- (
196
- "SELECT album_cover,thumbnail_url,video FROM " . gallery_bank_pics() . " WHERE album_cover=1 and album_id = %d",
197
- $album[$flag]->album_id
198
- )
199
- );
200
- ?>
201
- <div id="sortOrder_<?php echo $album[$flag]->album_id; ?>"
202
- class="imgLiquidFill dynamic_cover_css">
203
- <?php
204
- if (count($albumCover) != 0) {
205
- if ($albumCover->album_cover == 0) {
206
- ?>
207
- <img id="albumOrder_<?php echo $album[$flag]->album_id; ?>"
208
- src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>"/>
209
- <?php
210
- } else {
211
- ?>
212
- <img id="albumOrder_<?php echo $album[$flag]->album_id; ?>"
213
- src="<?php echo stripcslashes(GALLERY_BK_ALBUM_THUMB_URL . $albumCover->thumbnail_url); ?>"/>
214
- <?php
215
- }
216
- } else {
217
- ?>
218
- <img id="sortOrder_<?php echo $album[$flag]->album_id; ?>"
219
- src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>"/>
220
- <?php
221
- }
222
- ?>
223
- </div>
224
- <?php
225
- }
226
- ?>
227
- </div>
228
- </div>
229
- </div>
230
- </div>
231
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  </div>
233
  </div>
234
  </div>
235
  </div>
236
  </div>
237
  </div>
238
- </div>
239
- </form>
240
- <script type="text/javascript">
241
- jQuery(".imgLiquidFill").imgLiquid({fill: true});
242
- jQuery(document).ready(function () {
243
- jQuery("#sort_album").sortable
244
- ({
245
- opacity: 0.6,
246
- cursor: "move",
247
- connectWith: "#sort_album"
248
- });
249
- });
250
- function show_premium_message()
251
- {
252
- alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
253
- }
254
- function select_albums_in_row() {
255
- var row = jQuery("#ux_ddl_albumRow").val();
256
- window.location.href = "<?php echo site_url();?>/wp-admin/admin.php?page=gallery_album_sorting&row=" + row;
257
- }
258
- </script>
 
 
1
  <?php
2
+ global $wpdb,$current_user,$user_role_permission;
3
+ $role = $wpdb->prefix . "capabilities";
4
+ $current_user->role = array_keys($current_user->$role);
5
+ $role = $current_user->role[0];
6
+ switch($role)
7
+ {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  }
24
 
25
+ if (!current_user_can($user_role_permission))
 
 
 
 
26
  {
27
+ return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
+ else
30
+ {
31
+ if (isset($_REQUEST["row"])) {
32
+ $album_in_row = intval($_REQUEST["row"]);
33
+ } else {
34
+ $album_in_row = 3;
35
+ }
36
+
37
+ if (isset($_REQUEST["order_id"])) {
38
+ switch ($_REQUEST["order_id"]) {
39
+ case "unsort":
40
+ $album = $wpdb->get_results
41
+ (
42
+ "SELECT * FROM " . gallery_bank_albums()
43
+ );
44
+ break;
45
+ case "albumId":
46
+ $album = $wpdb->get_results
47
+ (
48
+ "SELECT * FROM " . gallery_bank_albums() . " order by album_id asc"
49
+ );
50
+ break;
51
+ case "name":
52
+ $album = $wpdb->get_results
53
+ (
54
+ "SELECT * FROM " . gallery_bank_albums() . " order by album_name asc"
55
+ );
56
+ break;
57
+ case "date":
58
+ $album = $wpdb->get_results
59
+ (
60
+ "SELECT * FROM " . gallery_bank_albums() . " order by album_date asc"
61
+ );
62
+ break;
63
+ case "asc":
64
+ $album = $wpdb->get_results
65
+ (
66
+ "SELECT * FROM " . gallery_bank_albums() . " order by album_id asc"
67
+ );
68
+ break;
69
+ case "desc":
70
+ $album = $wpdb->get_results
71
+ (
72
+ "SELECT * FROM " . gallery_bank_albums() . " order by album_id desc"
73
+ );
74
+ break;
75
+ }
76
+ } else {
77
+ $album = $wpdb->get_results
78
+ (
79
+ "SELECT * FROM " . gallery_bank_albums() . " order by album_order asc "
80
+ );
81
+ }
82
+
83
+ $album_css = $wpdb->get_results
84
+ (
85
+ "SELECT * FROM " . gallery_bank_settings()
86
+ );
87
+ if (count($album_css) != 0)
88
+ {
89
+ $setting_keys = array();
90
+ for ($flag = 0; $flag < count($album_css); $flag++)
91
+ {
92
+ array_push($setting_keys, $album_css[$flag]->setting_key);
93
+ }
94
+ $index = array_search("cover_thumbnail_width", $setting_keys);
95
+ $cover_thumbnail_width = $album_css[$index]->setting_value;
96
+
97
+ $index = array_search("cover_thumbnail_height", $setting_keys);
98
+ $cover_thumbnail_height = $album_css[$index]->setting_value;
99
+
100
+ $index = array_search("cover_thumbnail_opacity", $setting_keys);
101
+ $cover_thumbnail_opacity = $album_css[$index]->setting_value;
102
+
103
+ $index = array_search("cover_thumbnail_border_size", $setting_keys);
104
+ $cover_thumbnail_border_size = $album_css[$index]->setting_value;
105
+ $new_cover_width = $cover_thumbnail_width + ($cover_thumbnail_border_size * 4);
106
+
107
+ $index = array_search("cover_thumbnail_border_radius", $setting_keys);
108
+ $cover_thumbnail_border_radius = $album_css[$index]->setting_value;
109
+
110
+ $index = array_search("cover_thumbnail_border_color", $setting_keys);
111
+ $cover_thumbnail_border_color = $album_css[$index]->setting_value;
112
+
113
+ $index = array_search("margin_btw_cover_thumbnails", $setting_keys);
114
+ $margin_btw_cover_thumbnails = $album_css[$index]->setting_value;
115
+
116
+ ?>
117
+ <!--suppress ALL -->
118
+ <style type="text/css">
119
+ .dynamic_cover_css {
120
+ border: <?php echo $cover_thumbnail_border_size;?>px solid <?php echo $cover_thumbnail_border_color;?>;
121
+ border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
122
+ -moz-border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
123
+ -webkit-border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
124
+ -khtml-border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
125
+ -o-border-radius: <?php echo $cover_thumbnail_border_radius;?>px;
126
+ opacity: <?php echo $cover_thumbnail_opacity;?>;
127
+ -moz-opacity: <?php echo $cover_thumbnail_opacity;?>;
128
+ -khtml-opacity: <?php echo $cover_thumbnail_opacity;?>;
129
+ margin-right: <?php echo $margin_btw_cover_thumbnails; ?>px;
130
+ margin-bottom: <?php echo $margin_btw_cover_thumbnails; ?>px;
131
+ }
132
+
133
+ .layout-controls > a#<?php echo $_REQUEST["order_id"];?>
134
+ {
135
+ color:#000000;font-weight:bold;
136
+ }
137
+ .imgLiquidFill {
138
+ width: <?php echo $cover_thumbnail_width;?>px;
139
+ height: <?php echo $cover_thumbnail_height;?>px;
140
+ cursor: move;
141
+ display: inline-block;
142
+ }
143
+
144
+ .sort {
145
+ padding: 6px;
146
+ clear: both;
147
+ margin-top: 1%;
148
+ width: <?php echo ($new_cover_width + $margin_btw_cover_thumbnails *2) * $album_in_row ;?>px;
149
+ }
150
+ </style>
151
+ <?php
152
+ }
153
+ ?>
154
+ <form id="reodering_albums" class="layout-form">
155
+ <div id="poststuff" style="width: 99% !important;">
156
+ <div id="post-body" class="metabox-holder">
157
+ <div id="postbox-container-2" class="postbox-container">
158
+ <div id="advanced" class="meta-box-sortables">
159
+ <div id="gallery_bank_get_started" class="postbox" >
160
+ <div class="handlediv" data-target="#ux_reorder_album" title="Click to toggle" data-toggle="collapse"><br></div>
161
+ <h3 class="hndle"><span><?php _e("Re-Order Albums", gallery_bank); ?></span></h3>
162
+ <div class="inside">
163
+ <div id="ux_reorder_album" class="gallery_bank_layout">
164
+ <a class="btn btn-inverse"
165
+ href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
166
+ <a href="#" onclick="show_premium_message();" class="btn btn-info"
167
+ style="float:right"><?php _e("Update Order", gallery_bank); ?></a>
168
+ <div id="sort_order_message" class="message green" style="display: none;">
169
+ <span>
170
+ <strong><?php _e("Sorting Order has been updated.", gallery_bank); ?></strong>
171
+ </span>
172
+ </div>
173
+ <div class="separator-doubled"></div>
174
+ <div class="fluid-layout">
175
+ <div class="layout-span12">
176
+ <div class="widget-layout">
177
+ <div class="widget-layout-body">
178
+ <div class="layout-control-group">
179
+ <ul class="breadcrumb">
180
+ <li>
181
+ <label class="layout-control-label"><strong>Presort :</strong></label>
182
+ <div class="layout-controls" style="margin-top: 10px;">
183
+ <a id="unsort" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=unsort">Unsorted</a>
184
+ |
185
+ <a id="albumId" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=albumId">Album ID</a>
186
+ |
187
+ <a id="name" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=name">File Name</a>
188
+ |
189
+ <a id="date" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=date">Date</a>
190
+ |
191
+ <a id="asc" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=asc">Ascending</a>
192
+ |
193
+ <a id="desc" href="admin.php?page=gallery_album_sorting&row=<?php echo $album_in_row; ?>&order_id=desc">Descending</a>
194
+ </div>
195
+ <label class="layout-control-label" style="margin-top: 10px;">
196
+ <strong>
197
+ <?php _e("Albums in Row", gallery_bank); ?> :
198
+ </strong>
199
+ </label>
200
+ <select id="ux_ddl_albumRow" class="layout-span3"
201
+ style="margin-left: 16px; margin-top: 10px;" onchange="select_albums_in_row();">
202
+ <option id="" value=""><?php _e("Please Choose", gallery_bank); ?></option>
203
+ <?php
204
+ for ($i = 1; $i <= 10; $i++):
205
+ ?>
206
+ <option <?php if ($i == $album_in_row) echo "selected=\"selected\"" ?>
207
+ value="<?php echo $i ?>"><?php echo $i; ?></option>
208
+ <?php
209
+ endfor;
210
+ ?>
211
+ </select>
212
+ </li>
213
+ </ul>
214
+ </div>
215
+ <div id="sort_album" class="sort">
216
+ <?php
217
+ for ($flag = 0; $flag < count($album); $flag++) {
218
+
219
+ $albumCover = $wpdb->get_row
220
+ (
221
+ $wpdb->prepare
222
+ (
223
+ "SELECT album_cover,thumbnail_url,video FROM " . gallery_bank_pics() . " WHERE album_cover=1 and album_id = %d",
224
+ $album[$flag]->album_id
225
+ )
226
+ );
227
+ ?>
228
+ <div id="sortOrder_<?php echo $album[$flag]->album_id; ?>"
229
+ class="imgLiquidFill dynamic_cover_css">
230
+ <?php
231
+ if (count($albumCover) != 0) {
232
+ if ($albumCover->album_cover == 0) {
233
+ ?>
234
+ <img id="albumOrder_<?php echo $album[$flag]->album_id; ?>"
235
+ src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>"/>
236
+ <?php
237
+ } else {
238
+ ?>
239
+ <img id="albumOrder_<?php echo $album[$flag]->album_id; ?>"
240
+ src="<?php echo stripcslashes(GALLERY_BK_ALBUM_THUMB_URL . $albumCover->thumbnail_url); ?>"/>
241
+ <?php
242
+ }
243
+ } else {
244
+ ?>
245
+ <img id="sortOrder_<?php echo $album[$flag]->album_id; ?>"
246
+ src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>"/>
247
+ <?php
248
+ }
249
+ ?>
250
+ </div>
251
+ <?php
252
+ }
253
+ ?>
254
+ </div>
255
+ </div>
256
+ </div>
257
+ </div>
258
+ </div>
259
+ </div>
260
  </div>
261
  </div>
262
  </div>
263
  </div>
264
  </div>
265
  </div>
266
+ </form>
267
+ <script type="text/javascript">
268
+ jQuery(".imgLiquidFill").imgLiquid({fill: true});
269
+ jQuery(document).ready(function () {
270
+ jQuery("#sort_album").sortable
271
+ ({
272
+ opacity: 0.6,
273
+ cursor: "move",
274
+ connectWith: "#sort_album"
275
+ });
276
+ });
277
+ function show_premium_message()
278
+ {
279
+ alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
280
+ }
281
+ function select_albums_in_row() {
282
+ var row = jQuery("#ux_ddl_albumRow").val();
283
+ window.location.href = "<?php echo site_url();?>/wp-admin/admin.php?page=gallery_album_sorting&row=" + row;
284
+ }
285
+ </script>
286
+ <?php
287
+ }
288
+ ?>
views/dashboard.php CHANGED
@@ -1,447 +1,326 @@
1
  <?php
2
- global $wpdb,$current_user;
3
  $role = $wpdb->prefix . "capabilities";
4
  $current_user->role = array_keys($current_user->$role);
5
  $role = $current_user->role[0];
6
-
7
- $last_album_id = $wpdb->get_var
8
- (
9
- "SELECT album_id FROM " .gallery_bank_albums(). " order by album_id desc limit 1"
10
- );
11
-
12
- $popup = get_option("gallery-bank-info-popup");
13
- if($popup == "")
14
  {
15
- ?>
16
- <ol id="gallery_bank_popup" title="Important First Steps" style="display:none;">
17
- <li class="add_new_album" id="add_new_album">
18
- <h4>Add New Album</h4>
19
- <p>
20
- Gallery Bank provides you a feature to add elegant and beautiful gallery albums with images and videos.
21
- </p>
22
- <a href="http://tech-banker.com/gallery-bank/documentation/" target="_blank" class="button gb_buttons">Read More</a>
23
- </li>
24
- <li class="shortcode" id="shortcode">
25
- <h4>Implement Shortcode</h4>
26
- <p>
27
- Gallery Bank have 117 ways to display your galleries.</br> Just try out different
28
- shortcode on your Wordpress Page or Post.
29
- </p>
30
- <a href="http://tech-banker.com/gallery-bank/documentation/frequently-asked-questions-shortcodes-gallery-bank/" target="_blank" class="button gb_buttons">Read More</a>
31
- </li>
32
- <li class="Upgrade" id="Upgrade">
33
- <h4>Upgrade to Pro Version</h4>
34
- <p>
35
- Gallery Bank is an one time Investment. To enjoy full features of Gallery Bank,
36
- Upgrade to Premium Version Now! Starting at 10£/- only.
37
- </p>
38
- <a href="http://tech-banker.com/gallery-bank" target="_blank" class="button gb_buttons">Upgrade Now</a>
39
- </li>
40
- <li class="help" id="help">
41
- <h4>Help to Improve</h4>
42
- <p>
43
- Gallery Bank would like to collect anonymous data about features you use to help improve this plugin.
44
- </p>
45
- <a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank" class="button gb_buttons">Read More</a>
46
- </li>
47
- <a href="javascript:void(0);" onclick="close_popup()" class="gb_close_popup">Dismiss</a>
48
- </ol>
49
- <?php
50
  }
51
- $album = $wpdb->get_results
52
- (
53
- "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
54
- );
55
- $album_css = $wpdb->get_results
56
- (
57
- "SELECT * FROM ".gallery_bank_settings()
58
- );
59
- if(count($album_css) != 0)
60
  {
61
- $setting_keys= array();
62
- for($flag=0;$flag<count($album_css);$flag++)
 
 
 
 
 
 
 
 
 
63
  {
64
- array_push($setting_keys,$album_css[$flag]->setting_key);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  }
66
- $index = array_search("cover_thumbnail_width", $setting_keys);
67
- $cover_thumbnail_width = $album_css[$index]->setting_value;
68
-
69
- $index = array_search("cover_thumbnail_height", $setting_keys);
70
- $cover_thumbnail_height = $album_css[$index]->setting_value;
71
-
72
- $index = array_search("cover_thumbnail_opacity", $setting_keys);
73
- $cover_thumbnail_opacity = $album_css[$index]->setting_value;
74
-
75
- $index = array_search("cover_thumbnail_border_size", $setting_keys);
76
- $cover_thumbnail_border_size = $album_css[$index]->setting_value;
77
-
78
- $index = array_search("cover_thumbnail_border_radius", $setting_keys);
79
- $cover_thumbnail_border_radius = $album_css[$index]->setting_value;
80
 
81
- $index = array_search("cover_thumbnail_border_color", $setting_keys);
82
- $cover_thumbnail_border_color = $album_css[$index]->setting_value;
83
- }
84
 
85
- ?>
86
- <!--suppress ALL -->
87
-
88
- <style type="text/css">
89
- .dynamic_cover_css{
90
- border:<?php echo $cover_thumbnail_border_size;?>px solid <?php echo $cover_thumbnail_border_color;?> ;
91
- -moz-border-radius:<?php echo $cover_thumbnail_border_radius; ?>px;
92
- -webkit-border-radius:<?php echo $cover_thumbnail_border_radius; ?>px;
93
- -khtml-border-radius:<?php echo $cover_thumbnail_border_radius; ?>px;
94
- -o-border-radius:<?php echo $cover_thumbnail_border_radius; ?>px;
95
- border-radius:<?php echo $cover_thumbnail_border_radius;?>px;
96
- opacity:<?php echo $cover_thumbnail_opacity;?>;
97
- -moz-opacity:<?php echo $cover_thumbnail_opacity;?>;
98
- -khtml-opacity:<?php echo $cover_thumbnail_opacity;?>;
99
- }
100
- .imgLiquidFill
101
- {
102
- width:<?php echo $cover_thumbnail_width;?>px;
103
- height:<?php echo $cover_thumbnail_height;?>px;
104
- }
105
- div.pp_default .pp_top .pp_middle {
106
- background-color: #ffffff;
107
- }
108
- .pp_pic_holder.pp_default {
109
  background-color: #ffffff;
110
- }
111
- div.pp_default .pp_content_container .pp_left {
112
- background-color: #ffffff;
113
- padding-left: 16px;
114
- }
115
-
116
- div.pp_default .pp_content_container .pp_right {
117
- background-color: #ffffff;
118
- padding-right: 13px;
119
- }
120
-
121
- div.pp_default .pp_bottom .pp_middle {
122
- background-color: #ffffff;
123
- }
124
-
125
- div.pp_default .pp_content, div.light_rounded .pp_content {
126
- background-color: #ffffff;
127
- }
128
-
129
- .pp_details {
130
- background-color: #ffffff;
131
- }
132
-
133
- .ppt {
134
- display: none !important;
135
- }
136
- </style>
137
- <div id="poststuff" style="width: 99% !important;">
138
- <div id="post-body" class="metabox-holder columns-2">
139
- <div id="postbox-container-2" class="postbox-container">
140
- <div id="gallery_bank_dashboard" class="meta-box-sortables">
141
- <div id="gallery_bank_get_started" class="postbox" >
142
- <div class="handlediv" data-target="#uxgetting_started" title="Click to toggle" data-toggle="collapse"><br></div>
143
- <h3 class="hndle"><span><?php _e("Getting Started", gallery_bank); ?></span></h3>
144
- <div class="inside">
145
- <div id="uxgetting_started" class="gallery_bank_getting_started">
146
- <div class="column">
147
- <h2><?php _e("Watch the Walk-Through Video", gallery_bank); ?></h2>
148
- <a class="gallery-bank-video-link" href="#" data-video-id="gallery_bank_video"><img src="http://i.vimeocdn.com/video/472092768_200x150.jpg" style="border:2px solid #ebebeb;"/></a>
149
- <p class="gallery-bank-video-description">
150
- In this short video, we walk through, how to add images to your gallery using Gallery Bank Standard Edition.</p>
151
- <p class="gallery_bank_video">
152
- <iframe src="//player.vimeo.com/video/92378296?title=0&amp;byline=0&amp;portrait=0" width="853" height="480" frameborder="0" ></iframe>
153
- </p>
154
- </div>
155
- <div class="column two">
156
- <h2 style="line-height: 29px;"><?php _e("Gallery Bank, a Superlative High quality WordPress Plugin!", gallery_bank); ?></h2>
157
- <p>
158
- Gallery Bank is the only available WordPress Plugin with extra-ordinary features.It creates stunning Photo Galleries on any WordPress site.
159
- </p>
160
- <p>
161
- Upgrade to Pro Version to take your Gallery Bank to the next level.</p>
162
- <p>
163
- <a class="button-primary" href="http://tech-banker.com/gallery-bank/" target="_blank"><?php _e("Get Gallery Bank Pro Features", gallery_bank); ?></a>
164
- </p>
 
 
 
 
165
  </div>
166
  </div>
167
  </div>
168
  </div>
169
- </div>
170
- <div id="advanced" class="meta-box-sortables">
171
- <div id="gallery_bank_get_started" class="postbox" >
172
- <div class="handlediv" data-target="#ux_dashboard" title="Click to toggle" data-toggle="collapse"><br></div>
173
- <h3 class="hndle"><span><?php _e("Dashboard", gallery_bank); ?></span></h3>
174
- <div class="inside">
175
- <div id="ux_dashboard" class="gallery_bank_layout">
176
- <?php
177
- $album_count = $wpdb->get_var
178
- (
179
- "SELECT count(album_id) FROM ".gallery_bank_albums()
180
- );
181
- switch ($role) {
182
- case "administrator":
183
- if($album_count < 3)
184
- {
185
- ?>
186
- <a class="btn btn-info" href="admin.php?page=save_album&album_id=<?php echo count($last_album_id) == 0 ? 1 : $last_album_id + 1; ?>"><?php _e("Add New Album", gallery_bank);?></a>
187
- <?php
188
- }
189
- break;
190
- case "editor":
191
- if($album_count < 3)
192
- {
193
- ?>
194
- <a class="btn btn-info" href="admin.php?page=save_album&album_id=<?php echo count($last_album_id) == 0 ? 1 : $last_album_id + 1; ?>"><?php _e("Add New Album", gallery_bank);?></a>
195
- <?php
196
- }
197
- break;
198
- }
199
- ?>
200
- <a class="btn btn-danger" href="#" onclick="delete_all_albums();"><?php _e("Delete All Albums", gallery_bank);?></a>
201
- <a class="btn btn-danger" href="#" onclick="purge_all_images();"><?php _e("Purge Images & Albums", gallery_bank);?></a>
202
- <a class="btn btn-danger" href="#" onclick="restore_factory_settings();"><?php _e("Restore Factory Settings", gallery_bank);?></a>
203
- <div class="separator-doubled"></div>
204
- <a rel="prettyPhoto[gallery]" href="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code.png";?>">How to setup Short-Codes for Gallery Bank into your WordPress Page/Post?</a>
205
- <div class="fluid-layout">
206
- <div class="layout-span12">
207
- <div class="widget-layout">
208
- <div class="widget-layout-title">
209
- <h4><?php _e( "Existing Albums Overview", gallery_bank ); ?></h4>
210
- </div>
211
- <div class="widget-layout-body">
212
- <table class="table table-striped " id="data-table-album">
213
- <thead>
214
- <tr>
215
- <th style="width:24%"><?php _e( "Thumbnail", gallery_bank ); ?></th>
216
- <th style="width:13%"><?php _e( "Title", gallery_bank ); ?></th>
217
- <th style="width:16%"><?php _e( "Total Images", gallery_bank ); ?></th>
218
- <th style="width:15%"><?php _e( "Date", gallery_bank ); ?></th>
219
- <th style="width:14%"><?php _e( "Short-Codes", gallery_bank ); ?></th>
220
- <th style="width:17%"></th>
221
- </tr>
222
- </thead>
223
- <tbody>
224
- <?php
225
- for($flag=0; $flag <count($album); $flag++)
226
- {
227
- $count_pic = $wpdb->get_var
228
- (
229
- $wpdb->prepare
230
  (
231
- "SELECT count(".gallery_bank_albums().".album_id) FROM ".gallery_bank_albums()." join ".gallery_bank_pics()." on ".gallery_bank_albums().".album_id = ".gallery_bank_pics().".album_id where ".gallery_bank_albums().".album_id = %d ",
232
- $album[$flag]->album_id
233
- )
234
- );
235
- $albumCover = $wpdb->get_row
236
- (
237
- $wpdb->prepare
238
  (
239
- "SELECT album_cover,thumbnail_url,video FROM ".gallery_bank_pics()." WHERE album_cover=1 and album_id = %d",
240
- $album[$flag]->album_id
241
- )
242
- );
243
- ?>
244
- <tr>
245
- <td>
246
- <?php
247
- switch ($role) {
248
- case "administrator":
249
- ?>
250
- <a href="admin.php?page=save_album&album_id=<?php echo $album[$flag]->album_id;?>" title="<?php echo stripcslashes(htmlspecialchars_decode($album[$flag] -> album_name));?>" >
251
- <div class="imgLiquidFill dynamic_cover_css">
252
- <?php
253
- if(count($albumCover) != 0)
254
- {
255
- if($albumCover->album_cover == 0)
256
- {
257
- ?>
258
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
259
- <?php
260
- }
261
- else
262
- {
263
- ?>
264
- <img src="<?php echo stripcslashes(GALLERY_BK_ALBUM_THUMB_URL.$albumCover->thumbnail_url); ?>" />
265
- <?php
266
- }
267
- }
268
- else
269
  {
270
- ?>
271
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
272
  <?php
273
  }
274
- ?>
275
- </div>
276
- </a>
277
- <?php
278
- break;
279
- case "editor":
280
- ?>
281
- <a href="admin.php?page=save_album&album_id=<?php echo $album[$flag]->album_id;?>" title="<?php echo stripcslashes(htmlspecialchars_decode($album[$flag] -> album_name));?>" >
282
- <div class="imgLiquidFill dynamic_cover_css">
283
- <?php
284
- if(count($albumCover) != 0)
285
- {
286
- if($albumCover->album_cover == 0)
287
- {
288
- ?>
289
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
290
- <?php
291
- }
292
- else
293
- {
294
- ?>
295
- <img src="<?php echo stripcslashes(GALLERY_BK_ALBUM_THUMB_URL.$albumCover->thumbnail_url); ?>" />
296
- <?php
297
- }
298
- }
299
- else
300
- {
301
- ?>
302
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
303
- <?php
304
- }
305
- ?>
306
- </div>
307
- </a>
308
- <?php
309
- break;
310
- case "author":
311
- ?>
312
- <a title="<?php echo stripcslashes(htmlspecialchars_decode($album[$flag] -> album_name));?>" >
313
- <div class="imgLiquidFill dynamic_cover_css">
314
- <?php
315
- if(count($albumCover) != 0)
316
- {
317
- if($albumCover->album_cover == 0)
318
- {
319
- ?>
320
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
321
- <?php
322
- }
323
- else
324
- {
325
- ?>
326
- <img src="<?php echo stripcslashes(GALLERY_BK_ALBUM_THUMB_URL.$albumCover->thumbnail_url); ?>" />
327
- <?php
328
- }
329
- }
330
- else
331
- {
332
- ?>
333
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
334
- <?php
335
- }
336
- ?>
337
- </div>
338
- </a>
339
- <?php
340
- break;
341
- case "contributor":
342
- ?>
343
- <a title="<?php echo stripcslashes(htmlspecialchars_decode($album[$flag] -> album_name));?>" >
344
- <div class="imgLiquidFill dynamic_cover_css">
345
- <?php
346
- if(count($albumCover) != 0)
347
- {
348
- if($albumCover->album_cover == 0)
349
- {
350
- ?>
351
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
352
- <?php
353
- }
354
- else
355
- {
356
- ?>
357
- <img src="<?php echo stripcslashes(GALLERY_BK_ALBUM_THUMB_URL.$albumCover->thumbnail_url); ?>" />
358
- <?php
359
- }
360
- }
361
- else
362
  {
363
  ?>
364
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
365
  <?php
366
  }
367
- ?>
368
- </div>
369
- </a>
370
- <?php
371
- break;
372
- }
373
- ?>
374
- </td>
375
- <td><?php echo stripcslashes(htmlspecialchars_decode($album[$flag] -> album_name));?></td>
376
- <td><?php echo $count_pic;?></td>
377
- <td><?php echo date("d-M-Y", strtotime($album[$flag] -> album_date));?></td>
378
- <td>
379
- <a rel="prettyPhoto[gallery]" href="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code.png";?>">Short Codes</a>
380
- </td>
381
- <td>
382
- <ul class="layout-table-controls">
383
- <?php
384
- switch ($role) {
385
- case "administrator":
386
- ?>
387
- <li>
388
- <a href="admin.php?page=save_album&album_id=<?php echo $album[$flag]->album_id;?>" class="btn hovertip" data-original-title="<?php _e( "Edit Album", gallery_bank ); ?>">
389
- <i class="icon-pencil" ></i>
390
- </a>
391
- </li>
392
- <?php
393
- break;
394
- case "editor":
395
- ?>
396
- <li>
397
- <a href="admin.php?page=save_album&album_id=<?php echo $album[$flag]->album_id;?>" class="btn hovertip" data-original-title="<?php _e( "Edit Album", gallery_bank ); ?>">
398
- <i class="icon-pencil" ></i>
399
- </a>
400
- </li>
401
- <?php
402
- break;
403
- }
404
- ?>
405
- <li>
406
- <a href="admin.php?page=images_sorting&album_id=<?php echo $album[$flag]->album_id;?>&row=3" class="btn hovertip" data-original-title="<?php _e( "Re-Order Images", gallery_bank ); ?>">
407
- <i class="icon-th"></i>
408
- </a>
409
- </li>
410
- <li>
411
- <a href="admin.php?page=album_preview&album_id=<?php echo $album[$flag]->album_id;?>" class="btn hovertip" data-original-title="<?php _e( "Preview Album", gallery_bank ); ?>">
412
- <i class="icon-eye-open"></i>
413
- </a>
414
- </li>
415
- <?php
416
- switch ($role) {
417
- case "administrator":
418
- ?>
419
- <li>
420
- <a class="btn hovertip " style="cursor: pointer;" data-original-title="<?php _e( "Delete Album", gallery_bank)?>" onclick="delete_album(<?php echo $album[$flag]->album_id;?>);" >
421
- <i class="icon-trash"></i>
422
- </a>
423
- </li>
424
  <?php
425
- break;
426
- case "editor":
427
- ?>
428
- <li>
429
- <a class="btn hovertip " style="cursor: pointer;" data-original-title="<?php _e( "Delete Album", gallery_bank)?>" onclick="delete_album(<?php echo $album[$flag]->album_id;?>);" >
430
- <i class="icon-trash"></i>
431
- </a>
432
- </li>
433
- <?php
434
- break;
435
- }
436
- ?>
437
- </ul>
438
- </td>
439
- </tr>
440
- <?php
441
- }
442
- ?>
443
- </tbody>
444
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
  </div>
446
  </div>
447
  </div>
@@ -450,152 +329,154 @@
450
  </div>
451
  </div>
452
  </div>
453
- </div>
454
- <div id="postbox-container-1" class="postbox-container">
455
- <div id="priority_side" class="meta-box-sortables">
456
- <div id="gallery_bank_get_started" class="postbox" >
457
- <div class="handlediv" data-target="#uxdownload" title="Click to toggle" data-toggle="collapse"><br></div>
458
- <h3 class="hndle"><span><?php _e("Need Support Help?", gallery_bank); ?></span></h3>
459
- <div class="inside">
460
- <div id="uxdownload" class="gallery_bank_getting_started">
461
- <p>
462
- We’re interested in hearing from you.</p>
463
-
464
- <p>We will help you through the process and try to provide the answers.</p>
465
-
466
- <p>If you need to know more about our services or have something to share, please feel free to contact us.
467
- </p>
468
- <p>We commit to responses within 24 hours on weekdays – generally within hours during week day work hours.</p>
469
- <p>
470
- <a class="btn btn-danger" href="http://tech-banker.com /get-in-touch/" target="_blank" style="text-decoration: none;"><?php _e("Let's get in touch!", gallery_bank); ?></a>
471
- </p>
472
- <img src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/img.png";?>" style="max-width:100%;cursor: pointer;" />
473
- <p>
474
- <a class="btn btn-danger" href="http://tech-banker.com/gallery-bank/" target="_blank" style="text-decoration: none;"><?php _e("Order Now!", gallery_bank); ?></a>
475
- </p>
476
  </div>
477
  </div>
478
  </div>
479
  </div>
480
  </div>
481
  </div>
482
- </div>
483
- <script type="text/javascript">
484
- jQuery(".hovertip").tooltip();
485
- jQuery(document).ready(function()
486
- {
487
- jQuery( ".gallery-bank-video-link").click( function( event ) {
488
-
489
- event.preventDefault();
490
-
491
- var target = jQuery( this ).data( "video-id" );
492
 
493
- jQuery( "." + target ).dialog(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
494
  {
495
- dialogClass: "wp-dialog gallery-bank-video-popup",
496
  modal: true,
497
  closeOnEscape: true,
 
498
  width: "auto",
499
- resizable: false,
500
  draggable: false,
501
- create: function( event, ui ) {
502
- jQuery(this).css("maxWidth", "853px");
503
  },
504
- open: function(event, ui) {
505
- jQuery(".ui-widget-overlay").bind("click", function () {
506
- jQuery(this).siblings(".ui-dialog").find(".ui-dialog-content").dialog("close");
507
- });
 
 
508
  }
509
- }
510
- );
511
- jQuery(".ui-dialog :button").blur();
 
 
512
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
513
  });
514
- <?php
515
- if($popup == "")
516
  {
517
- ?>
518
- jQuery("#gallery_bank_popup").dialog(
519
  {
520
- dialogClass: "wp-dialog gallery_bank_popup_box",
521
- modal: true,
522
- closeOnEscape: true,
523
- title: gallery_bank_popup.title,
524
- width: "auto",
525
- resizable: true,
526
- draggable: false,
527
- create: function ( event, ui ) {
528
- jQuery( this ).css( "maxWidth", "600px" );
529
- },
530
- close: function(event)
531
  {
532
- jQuery( "#gallery_bank_popup" ).dialog( "close" );
533
- jQuery.post(ajaxurl, "param=update_option&action=add_new_album_library", function(data)
534
  {
 
 
535
  });
536
  }
537
-
538
- });
539
- <?php
540
- }
541
- ?>
542
-
543
- jQuery(".imgLiquidFill").imgLiquid({fill:true});
544
- var oTable = jQuery("#data-table-album").dataTable
545
- ({
546
- "bJQueryUI": false,
547
- "bAutoWidth": true,
548
- "sPaginationType": "full_numbers",
549
- "sDom": '<"datatable-header"fl>t<"datatable-footer"ip>',
550
- "oLanguage":
551
  {
552
- "sLengthMenu": "<span>Show entries:</span> _MENU_"
553
- },
554
- "aaSorting": [[ 0, "asc" ]],
555
- "aoColumnDefs": [{ "bSortable": false, "aTargets": [5] }]
556
- });
557
- jQuery("a[rel^=\"prettyPhoto\"]").prettyPhoto
558
- ({
559
- animation_speed: 1000,
560
- slideshow: 4000,
561
- autoplay_slideshow: false,
562
- opacity: 0.80,
563
- show_title: false,
564
- allow_resize: true
565
- });
566
- });
567
- function close_popup()
568
- {
569
- jQuery( "#gallery_bank_popup" ).dialog( "close" );
570
- jQuery.post(ajaxurl, "param=update_option&action=add_new_album_library", function()
571
- {
572
- });
573
-
574
- }
575
-
576
- function delete_album(album_id)
577
- {
578
- var r = confirm("<?php _e( "Are you sure you want to delete this Album?", gallery_bank ); ?>");
579
- if(r == true)
580
  {
581
- //noinspection JSUnresolvedVariable
582
- jQuery.post(ajaxurl, "album_id="+album_id+"&param=Delete_album&action=add_new_album_library", function()
583
- {
584
- var check_page = "<?php echo $_REQUEST["page"]; ?>";
585
- window.location.href = "admin.php?page="+check_page;
586
- });
587
  }
 
 
 
 
 
 
588
  }
589
- function delete_all_albums()
590
- {
591
- alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
592
- }
593
- function restore_factory_settings()
594
- {
595
- alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
596
- }
597
- function purge_all_images()
598
- {
599
- alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
600
- }
601
- </script>
1
  <?php
2
+ global $wpdb,$current_user,$user_role_permission;
3
  $role = $wpdb->prefix . "capabilities";
4
  $current_user->role = array_keys($current_user->$role);
5
  $role = $current_user->role[0];
6
+ switch($role)
 
 
 
 
 
 
 
7
  {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  }
24
+ if (!current_user_can($user_role_permission))
 
 
 
 
 
 
 
 
25
  {
26
+ return;
27
+ }
28
+ else
29
+ {
30
+ $last_album_id = $wpdb->get_var
31
+ (
32
+ "SELECT album_id FROM " .gallery_bank_albums(). " order by album_id desc limit 1"
33
+ );
34
+
35
+ $popup = get_option("gallery-bank-info-popup");
36
+ if($popup == "")
37
  {
38
+ ?>
39
+ <ol id="gallery_bank_popup" title="Important First Steps" style="display:none;">
40
+ <li class="add_new_album" id="add_new_album">
41
+ <h4>Add New Album</h4>
42
+ <p>
43
+ Gallery Bank provides you a feature to add elegant and beautiful gallery albums with images and videos.
44
+ </p>
45
+ <a href="http://tech-banker.com/gallery-bank/documentation/" target="_blank" class="button gb_buttons">Read More</a>
46
+ </li>
47
+ <li class="shortcode" id="shortcode">
48
+ <h4>Implement Shortcode</h4>
49
+ <p>
50
+ Gallery Bank have 117 ways to display your galleries.</br> Just try out different
51
+ shortcode on your Wordpress Page or Post.
52
+ </p>
53
+ <a href="http://tech-banker.com/gallery-bank/documentation/frequently-asked-questions-shortcodes-gallery-bank/" target="_blank" class="button gb_buttons">Read More</a>
54
+ </li>
55
+ <li class="Upgrade" id="Upgrade">
56
+ <h4>Upgrade to Pro Version</h4>
57
+ <p>
58
+ Gallery Bank is an one time Investment. To enjoy full features of Gallery Bank,
59
+ Upgrade to Premium Version Now! Starting at 10£/- only.
60
+ </p>
61
+ <a href="http://tech-banker.com/gallery-bank" target="_blank" class="button gb_buttons">Upgrade Now</a>
62
+ </li>
63
+ <li class="help" id="help">
64
+ <h4>Help to Improve</h4>
65
+ <p>
66
+ Gallery Bank would like to collect anonymous data about features you use to help improve this plugin.
67
+ </p>
68
+ <a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank" class="button gb_buttons">Read More</a>
69
+ </li>
70
+ <a href="javascript:void(0);" onclick="close_popup()" class="gb_close_popup">Dismiss</a>
71
+ </ol>
72
+ <?php
73
+ }
74
+ $album = $wpdb->get_results
75
+ (
76
+ "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
77
+ );
78
+ $album_css = $wpdb->get_results
79
+ (
80
+ "SELECT * FROM ".gallery_bank_settings()
81
+ );
82
+ if(count($album_css) != 0)
83
+ {
84
+ $setting_keys= array();
85
+ for($flag=0;$flag<count($album_css);$flag++)
86
+ {
87
+ array_push($setting_keys,$album_css[$flag]->setting_key);
88
+ }
89
+ $index = array_search("cover_thumbnail_width", $setting_keys);
90
+ $cover_thumbnail_width = $album_css[$index]->setting_value;
91
+
92
+ $index = array_search("cover_thumbnail_height", $setting_keys);
93
+ $cover_thumbnail_height = $album_css[$index]->setting_value;
94
+
95
+ $index = array_search("cover_thumbnail_opacity", $setting_keys);
96
+ $cover_thumbnail_opacity = $album_css[$index]->setting_value;
97
+
98
+ $index = array_search("cover_thumbnail_border_size", $setting_keys);
99
+ $cover_thumbnail_border_size = $album_css[$index]->setting_value;
100
+
101
+ $index = array_search("cover_thumbnail_border_radius", $setting_keys);
102
+ $cover_thumbnail_border_radius = $album_css[$index]->setting_value;
103
+
104
+ $index = array_search("cover_thumbnail_border_color", $setting_keys);
105
+ $cover_thumbnail_border_color = $album_css[$index]->setting_value;
106
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
+ ?>
109
+ <!--suppress ALL -->
 
110
 
111
+ <style type="text/css">
112
+ .dynamic_cover_css{
113
+ border:<?php echo $cover_thumbnail_border_size;?>px solid <?php echo $cover_thumbnail_border_color;?> ;
114
+ -moz-border-radius:<?php echo $cover_thumbnail_border_radius; ?>px;
115
+ -webkit-border-radius:<?php echo $cover_thumbnail_border_radius; ?>px;
116
+ -khtml-border-radius:<?php echo $cover_thumbnail_border_radius; ?>px;
117
+ -o-border-radius:<?php echo $cover_thumbnail_border_radius; ?>px;
118
+ border-radius:<?php echo $cover_thumbnail_border_radius;?>px;
119
+ opacity:<?php echo $cover_thumbnail_opacity;?>;
120
+ -moz-opacity:<?php echo $cover_thumbnail_opacity;?>;
121
+ -khtml-opacity:<?php echo $cover_thumbnail_opacity;?>;
122
+ }
123
+ .imgLiquidFill
124
+ {
125
+ width:<?php echo $cover_thumbnail_width;?>px;
126
+ height:<?php echo $cover_thumbnail_height;?>px;
127
+ }
128
+ div.pp_default .pp_top .pp_middle {
 
 
 
 
 
 
129
  background-color: #ffffff;
130
+ }
131
+ .pp_pic_holder.pp_default {
132
+ background-color: #ffffff;
133
+ }
134
+ div.pp_default .pp_content_container .pp_left {
135
+ background-color: #ffffff;
136
+ padding-left: 16px;
137
+ }
138
+
139
+ div.pp_default .pp_content_container .pp_right {
140
+ background-color: #ffffff;
141
+ padding-right: 13px;
142
+ }
143
+
144
+ div.pp_default .pp_bottom .pp_middle {
145
+ background-color: #ffffff;
146
+ }
147
+
148
+ div.pp_default .pp_content, div.light_rounded .pp_content {
149
+ background-color: #ffffff;
150
+ }
151
+
152
+ .pp_details {
153
+ background-color: #ffffff;
154
+ }
155
+
156
+ .ppt {
157
+ display: none !important;
158
+ }
159
+ </style>
160
+ <div id="poststuff" style="width: 99% !important;">
161
+ <div id="post-body" class="metabox-holder columns-2">
162
+ <div id="postbox-container-2" class="postbox-container">
163
+ <div id="gallery_bank_dashboard" class="meta-box-sortables">
164
+ <div id="gallery_bank_get_started" class="postbox" >
165
+ <div class="handlediv" data-target="#uxgetting_started" title="Click to toggle" data-toggle="collapse"><br></div>
166
+ <h3 class="hndle"><span><?php _e("Getting Started", gallery_bank); ?></span></h3>
167
+ <div class="inside">
168
+ <div id="uxgetting_started" class="gallery_bank_getting_started">
169
+ <div class="column">
170
+ <h2><?php _e("Watch the Walk-Through Video", gallery_bank); ?></h2>
171
+ <a class="gallery-bank-video-link" href="#" data-video-id="gallery_bank_video"><img src="http://i.vimeocdn.com/video/472092768_200x150.jpg" style="border:2px solid #ebebeb;"/></a>
172
+ <p class="gallery-bank-video-description">
173
+ In this short video, we walk through, how to add images to your gallery using Gallery Bank Standard Edition.</p>
174
+ <p class="gallery_bank_video">
175
+ <iframe src="//player.vimeo.com/video/92378296?title=0&amp;byline=0&amp;portrait=0" width="853" height="480" frameborder="0" ></iframe>
176
+ </p>
177
+ </div>
178
+ <div class="column two">
179
+ <h2 style="line-height: 29px;"><?php _e("Gallery Bank, a Superlative High quality WordPress Plugin!", gallery_bank); ?></h2>
180
+ <p>
181
+ Gallery Bank is the only available WordPress Plugin with extra-ordinary features.It creates stunning Photo Galleries on any WordPress site.
182
+ </p>
183
+ <p>
184
+ Upgrade to Pro Version to take your Gallery Bank to the next level.</p>
185
+ <p>
186
+ <a class="button-primary" href="http://tech-banker.com/gallery-bank/" target="_blank"><?php _e("Get Gallery Bank Pro Features", gallery_bank); ?></a>
187
+ </p>
188
+ </div>
189
  </div>
190
  </div>
191
  </div>
192
  </div>
193
+ <div id="advanced" class="meta-box-sortables">
194
+ <div id="gallery_bank_get_started" class="postbox" >
195
+ <div class="handlediv" data-target="#ux_dashboard" title="Click to toggle" data-toggle="collapse"><br></div>
196
+ <h3 class="hndle"><span><?php _e("Dashboard", gallery_bank); ?></span></h3>
197
+ <div class="inside">
198
+ <div id="ux_dashboard" class="gallery_bank_layout">
199
+ <?php
200
+ $album_count = $wpdb->get_var
201
+ (
202
+ "SELECT count(album_id) FROM ".gallery_bank_albums()
203
+ );
204
+ if($album_count < 3)
205
+ {
206
+ ?>
207
+ <a class="btn btn-info" href="admin.php?page=save_album&album_id=<?php echo count($last_album_id) == 0 ? 1 : $last_album_id + 1; ?>"><?php _e("Add New Album", gallery_bank);?></a>
208
+ <?php
209
+ }
210
+ ?>
211
+
212
+
213
+ <a class="btn btn-danger" href="#" onclick="delete_all_albums();"><?php _e("Delete All Albums", gallery_bank);?></a>
214
+ <a class="btn btn-danger" href="#" onclick="purge_all_images();"><?php _e("Purge Images & Albums", gallery_bank);?></a>
215
+ <a class="btn btn-danger" href="#" onclick="restore_factory_settings();"><?php _e("Restore Factory Settings", gallery_bank);?></a>
216
+ <div class="separator-doubled"></div>
217
+ <a rel="prettyPhoto[gallery]" href="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code.png";?>">How to setup Short-Codes for Gallery Bank into your WordPress Page/Post?</a>
218
+ <div class="fluid-layout">
219
+ <div class="layout-span12">
220
+ <div class="widget-layout">
221
+ <div class="widget-layout-title">
222
+ <h4><?php _e( "Existing Albums Overview", gallery_bank ); ?></h4>
223
+ </div>
224
+ <div class="widget-layout-body">
225
+ <table class="table table-striped " id="data-table-album">
226
+ <thead>
227
+ <tr>
228
+ <th style="width:24%"><?php _e( "Thumbnail", gallery_bank ); ?></th>
229
+ <th style="width:13%"><?php _e( "Title", gallery_bank ); ?></th>
230
+ <th style="width:16%"><?php _e( "Total Images", gallery_bank ); ?></th>
231
+ <th style="width:15%"><?php _e( "Date", gallery_bank ); ?></th>
232
+ <th style="width:14%"><?php _e( "Short-Codes", gallery_bank ); ?></th>
233
+ <th style="width:17%"></th>
234
+ </tr>
235
+ </thead>
236
+ <tbody>
237
+ <?php
238
+ for($flag=0; $flag <count($album); $flag++)
239
+ {
240
+ $count_pic = $wpdb->get_var
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  (
242
+ $wpdb->prepare
243
+ (
244
+ "SELECT count(".gallery_bank_albums().".album_id) FROM ".gallery_bank_albums()." join ".gallery_bank_pics()." on ".gallery_bank_albums().".album_id = ".gallery_bank_pics().".album_id where ".gallery_bank_albums().".album_id = %d ",
245
+ $album[$flag]->album_id
246
+ )
247
+ );
248
+ $albumCover = $wpdb->get_row
249
  (
250
+ $wpdb->prepare
251
+ (
252
+ "SELECT album_cover,thumbnail_url,video FROM ".gallery_bank_pics()." WHERE album_cover=1 and album_id = %d",
253
+ $album[$flag]->album_id
254
+ )
255
+ );
256
+ ?>
257
+ <tr>
258
+ <td>
259
+ <a href="admin.php?page=save_album&album_id=<?php echo $album[$flag]->album_id;?>" title="<?php echo stripcslashes(htmlspecialchars_decode($album[$flag] -> album_name));?>" >
260
+ <div class="imgLiquidFill dynamic_cover_css">
261
+ <?php
262
+ if(count($albumCover) != 0)
263
+ {
264
+ if($albumCover->album_cover == 0)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
  {
266
+ ?>
267
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
268
  <?php
269
  }
270
+ else
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
  {
272
  ?>
273
+ <img src="<?php echo stripcslashes(GALLERY_BK_ALBUM_THUMB_URL.$albumCover->thumbnail_url); ?>" />
274
  <?php
275
  }
276
+ }
277
+ else
278
+ {
279
+ ?>
280
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . "/assets/images/album-cover.png"); ?>" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  <?php
282
+ }
283
+ ?>
284
+ </div>
285
+ </a>
286
+ </td>
287
+ <td><?php echo stripcslashes(htmlspecialchars_decode($album[$flag] -> album_name));?></td>
288
+ <td><?php echo $count_pic;?></td>
289
+ <td><?php echo date("d-M-Y", strtotime($album[$flag] -> album_date));?></td>
290
+ <td>
291
+ <a rel="prettyPhoto[gallery]" href="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code.png";?>">Short Codes</a>
292
+ </td>
293
+ <td>
294
+ <ul class="layout-table-controls">
295
+ <li>
296
+ <a href="admin.php?page=save_album&album_id=<?php echo $album[$flag]->album_id;?>" class="btn hovertip" data-original-title="<?php _e( "Edit Album", gallery_bank ); ?>">
297
+ <i class="icon-pencil" ></i>
298
+ </a>
299
+ </li>
300
+ <li>
301
+ <a href="admin.php?page=images_sorting&album_id=<?php echo $album[$flag]->album_id;?>&row=3" class="btn hovertip" data-original-title="<?php _e( "Re-Order Images", gallery_bank ); ?>">
302
+ <i class="icon-th"></i>
303
+ </a>
304
+ </li>
305
+ <li>
306
+ <a href="admin.php?page=album_preview&album_id=<?php echo $album[$flag]->album_id;?>" class="btn hovertip" data-original-title="<?php _e( "Preview Album", gallery_bank ); ?>">
307
+ <i class="icon-eye-open"></i>
308
+ </a>
309
+ </li>
310
+ <li>
311
+ <a class="btn hovertip " style="cursor: pointer;" data-original-title="<?php _e( "Delete Album", gallery_bank)?>" onclick="delete_album(<?php echo $album[$flag]->album_id;?>);" >
312
+ <i class="icon-trash"></i>
313
+ </a>
314
+ </li>
315
+ </ul>
316
+ </td>
317
+ </tr>
318
+ <?php
319
+ }
320
+ ?>
321
+ </tbody>
322
+ </table>
323
+ </div>
324
  </div>
325
  </div>
326
  </div>
329
  </div>
330
  </div>
331
  </div>
332
+ <div id="postbox-container-1" class="postbox-container">
333
+ <div id="priority_side" class="meta-box-sortables">
334
+ <div id="gallery_bank_get_started" class="postbox" >
335
+ <div class="handlediv" data-target="#uxdownload" title="Click to toggle" data-toggle="collapse"><br></div>
336
+ <h3 class="hndle"><span><?php _e("Need Support Help?", gallery_bank); ?></span></h3>
337
+ <div class="inside">
338
+ <div id="uxdownload" class="gallery_bank_getting_started">
339
+ <p>
340
+ We’re interested in hearing from you.</p>
341
+
342
+ <p>We will help you through the process and try to provide the answers.</p>
343
+
344
+ <p>If you need to know more about our services or have something to share, please feel free to contact us.
345
+ </p>
346
+ <p>We commit to responses within 24 hours on weekdays – generally within hours during week day work hours.</p>
347
+ <p>
348
+ <a class="btn btn-danger" href="http://tech-banker.com /get-in-touch/" target="_blank" style="text-decoration: none;"><?php _e("Let's get in touch!", gallery_bank); ?></a>
349
+ </p>
350
+ <img src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/img.png";?>" style="max-width:100%;cursor: pointer;" />
351
+ <p>
352
+ <a class="btn btn-danger" href="http://tech-banker.com/gallery-bank/" target="_blank" style="text-decoration: none;"><?php _e("Order Now!", gallery_bank); ?></a>
353
+ </p>
354
+ </div>
355
  </div>
356
  </div>
357
  </div>
358
  </div>
359
  </div>
360
  </div>
361
+ <script type="text/javascript">
362
+ jQuery(".hovertip").tooltip();
363
+ jQuery(document).ready(function()
364
+ {
365
+ jQuery( ".gallery-bank-video-link").click( function( event ) {
 
 
 
 
 
366
 
367
+ event.preventDefault();
368
+
369
+ var target = jQuery( this ).data( "video-id" );
370
+
371
+ jQuery( "." + target ).dialog(
372
+ {
373
+ dialogClass: "wp-dialog gallery-bank-video-popup",
374
+ modal: true,
375
+ closeOnEscape: true,
376
+ width: "auto",
377
+ resizable: false,
378
+ draggable: false,
379
+ create: function( event, ui ) {
380
+ jQuery(this).css("maxWidth", "853px");
381
+ },
382
+ open: function(event, ui) {
383
+ jQuery(".ui-widget-overlay").bind("click", function () {
384
+ jQuery(this).siblings(".ui-dialog").find(".ui-dialog-content").dialog("close");
385
+ });
386
+ }
387
+ }
388
+ );
389
+ jQuery(".ui-dialog :button").blur();
390
+
391
+ });
392
+ <?php
393
+ if($popup == "")
394
+ {
395
+ ?>
396
+ jQuery("#gallery_bank_popup").dialog(
397
  {
398
+ dialogClass: "wp-dialog gallery_bank_popup_box",
399
  modal: true,
400
  closeOnEscape: true,
401
+ title: gallery_bank_popup.title,
402
  width: "auto",
403
+ resizable: true,
404
  draggable: false,
405
+ create: function ( event, ui ) {
406
+ jQuery( this ).css( "maxWidth", "600px" );
407
  },
408
+ close: function(event)
409
+ {
410
+ jQuery( "#gallery_bank_popup" ).dialog( "close" );
411
+ jQuery.post(ajaxurl, "param=update_option&action=add_new_album_library", function(data)
412
+ {
413
+ });
414
  }
415
+
416
+ });
417
+ <?php
418
+ }
419
+ ?>
420
 
421
+ jQuery(".imgLiquidFill").imgLiquid({fill:true});
422
+ var oTable = jQuery("#data-table-album").dataTable
423
+ ({
424
+ "bJQueryUI": false,
425
+ "bAutoWidth": true,
426
+ "sPaginationType": "full_numbers",
427
+ "sDom": '<"datatable-header"fl>t<"datatable-footer"ip>',
428
+ "oLanguage":
429
+ {
430
+ "sLengthMenu": "<span>Show entries:</span> _MENU_"
431
+ },
432
+ "aaSorting": [[ 0, "asc" ]],
433
+ "aoColumnDefs": [{ "bSortable": false, "aTargets": [5] }]
434
+ });
435
+ jQuery("a[rel^=\"prettyPhoto\"]").prettyPhoto
436
+ ({
437
+ animation_speed: 1000,
438
+ slideshow: 4000,
439
+ autoplay_slideshow: false,
440
+ opacity: 0.80,
441
+ show_title: false,
442
+ allow_resize: true
443
+ });
444
  });
445
+ function close_popup()
 
446
  {
447
+ jQuery( "#gallery_bank_popup" ).dialog( "close" );
448
+ jQuery.post(ajaxurl, "param=update_option&action=add_new_album_library", function()
449
  {
450
+ });
451
+
452
+ }
453
+
454
+ function delete_album(album_id)
455
+ {
456
+ var r = confirm("<?php _e( "Are you sure you want to delete this Album?", gallery_bank ); ?>");
457
+ if(r == true)
 
 
 
458
  {
459
+ //noinspection JSUnresolvedVariable
460
+ jQuery.post(ajaxurl, "album_id="+album_id+"&param=Delete_album&action=add_new_album_library", function()
461
  {
462
+ var check_page = "<?php echo $_REQUEST["page"]; ?>";
463
+ window.location.href = "admin.php?page="+check_page;
464
  });
465
  }
466
+ }
467
+ function delete_all_albums()
 
 
 
 
 
 
 
 
 
 
 
 
468
  {
469
+ alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
470
+ }
471
+ function restore_factory_settings()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472
  {
473
+ alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
 
 
 
 
 
474
  }
475
+ function purge_all_images()
476
+ {
477
+ alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
478
+ }
479
+ </script>
480
+ <?php
481
  }
482
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
views/edit-album.php CHANGED
@@ -1,635 +1,663 @@
1
  <?php
2
- global $wpdb,$current_user;
3
-
4
- $album_id = intval($_REQUEST["album_id"]);
5
- $last_albums_id = $wpdb->get_var
6
- (
7
- $wpdb->prepare
8
- (
9
- "SELECT album_id FROM " .gallery_bank_albums(). " where album_id= %d",
10
- $album_id
11
- )
12
- );
13
- $album_count = $wpdb->get_var
14
- (
15
- "SELECT count(album_id) FROM ".gallery_bank_albums()
16
- );
17
- if($album_count < 3)
18
- {
19
- if($last_albums_id == 0)
 
 
 
 
 
 
 
 
 
20
  {
21
- $wpdb->query
 
 
22
  (
23
  $wpdb->prepare
24
  (
25
- "INSERT INTO " . gallery_bank_albums() . "(album_id,album_name, description, album_date, author, album_order)
26
- VALUES(%d, %s, %s, CURDATE(), %s, %d)",
27
- $album_id,
28
- "Untitled Album",
29
- "",
30
- $current_user->display_name,
31
  $album_id
32
  )
33
  );
34
- $album = $wpdb->get_row
35
  (
36
- $wpdb->prepare
37
- (
38
- "SELECT * FROM " . gallery_bank_albums() . " where album_id = %d",
39
- $album_id
40
- )
41
  );
42
- }
43
- else
44
- {
45
- $album = $wpdb->get_row
46
- (
47
- $wpdb->prepare
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  (
49
- "SELECT * FROM " . gallery_bank_albums() . " where album_id = %d",
50
- $album_id
51
- )
 
 
 
 
 
 
 
 
 
 
 
52
  );
53
- }
54
- }
55
- else
56
- {
57
- $album = $wpdb->get_row
58
- (
59
- $wpdb->prepare
60
  (
61
- "SELECT * FROM " . gallery_bank_albums() . " where album_id = %d",
62
- $album_id
63
- )
64
- );
65
- }
66
- $pics = $wpdb->get_results
67
- (
68
- $wpdb->prepare
69
- (
70
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by sorting_order asc ",
71
- $album_id
72
- )
73
- );
74
-
75
- $album_css = $wpdb->get_results
76
- (
77
- "SELECT * FROM " . gallery_bank_settings()
78
- );
79
- if (count($album_css) != 0)
80
- {
81
- $setting_keys = array();
82
- for ($flag = 0; $flag < count($album_css); $flag++)
83
- {
84
- array_push($setting_keys, $album_css[$flag]->setting_key);
85
- }
86
-
87
- $index = array_search("thumbnails_width", $setting_keys);
88
- $thumbnails_width = $album_css[$index]->setting_value;
89
-
90
- $index = array_search("thumbnails_height", $setting_keys);
91
- $thumbnails_height = $album_css[$index]->setting_value;
92
-
93
- $index = array_search("thumbnails_opacity", $setting_keys);
94
- $thumbnails_opacity = $album_css[$index]->setting_value;
95
-
96
- $index = array_search("thumbnails_border_size", $setting_keys);
97
- $thumbnails_border_size = $album_css[$index]->setting_value;
98
-
99
- $index = array_search("thumbnails_border_radius", $setting_keys);
100
- $thumbnails_border_radius = $album_css[$index]->setting_value;
101
-
102
- $index = array_search("thumbnails_border_color", $setting_keys);
103
- $thumbnails_border_color = $album_css[$index]->setting_value;
104
-
105
- $index = array_search("cover_thumbnail_width", $setting_keys);
106
- $cover_thumbnail_width = $album_css[$index]->setting_value;
107
-
108
- $index = array_search("cover_thumbnail_height", $setting_keys);
109
- $cover_thumbnail_height = $album_css[$index]->setting_value;
110
-
111
- $video_url = GALLERY_BK_PLUGIN_URL . "/assets/images/video.jpg" ;
112
-
113
- ?>
114
- <!--suppress ALL -->
115
- <style type="text/css">
116
- .dynamic_css {
117
- border: <?php echo $thumbnails_border_size;?>px solid <?php echo $thumbnails_border_color;?>;
118
- border-radius: <?php echo $thumbnails_border_radius;?>px;
119
- -moz-border-radius: <?php echo $thumbnails_border_radius; ?>px;
120
- -webkit-border-radius: <?php echo $thumbnails_border_radius;?>px;
121
- -khtml-border-radius: <?php echo $thumbnails_border_radius;?>px;
122
- -o-border-radius: <?php echo $thumbnails_border_radius;?>px;
123
- opacity: <?php echo $thumbnails_opacity;?>;
124
- -moz-opacity: <?php echo $thumbnails_opacity; ?>;
125
- -khtml-opacity: <?php echo $thumbnails_opacity; ?>;
126
- }
127
- </style>
128
- <div class="message red" style="display: block;margin-top:30px">
129
- <span>
130
- <strong>You will be only allowed to add 3 galleries. Kindly purchase Premium Version for full access.</strong>
131
- </span>
132
- </div>
133
- <form id="edit_album" class="layout-form">
134
- <div id="poststuff" style="width: 99% !important;">
135
- <div id="post-body" class="metabox-holder">
136
- <div id="postbox-container-2" class="postbox-container">
137
- <div id="advanced" class="meta-box-sortables">
138
- <div id="gallery_bank_get_started" class="postbox" >
139
- <div class="handlediv" data-target="#ux_edit_album" title="Click to toggle" data-toggle="collapse"><br></div>
140
- <h3 class="hndle"><span><?php _e("Album", gallery_bank); ?></span></h3>
141
- <div class="inside">
142
- <div id="ux_edit_album" class="gallery_bank_layout">
143
- <a class="btn btn-inverse" href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
144
- <button type="submit" class="btn btn-info" style="float:right"><?php _e("Save Album", gallery_bank); ?></button>
145
- <div class="separator-doubled"></div>
146
- <div id="update_album_success_message" class="message green" style="display: none;">
147
- <span>
148
- <strong><?php _e("Album Saved. Kindly wait for the redirect to happen.", gallery_bank); ?></strong>
149
- </span>
150
- </div>
151
- <div class="fluid-layout">
152
- <div class="layout-span6">
153
- <div class="widget-layout">
154
- <div class="widget-layout-title">
155
- <h4><?php _e("Album Details", gallery_bank); ?></h4>
156
- </div>
157
- <div class="widget-layout-body">
158
- <div class="layout-control-group">
159
- <label class="layout-control-label"><?php _e("Album Title", gallery_bank); ?> :</label>
160
- <div class="layout-controls">
161
- <input type="text" name="ux_edit_title" class="layout-span12"
162
- value="<?php echo stripcslashes(htmlspecialchars_decode($album->album_name)); ?>"
163
- id="ux_edit_title"
164
- placeholder="<?php _e("Enter your Album Title", gallery_bank); ?>"/>
165
- </div>
166
- </div>
167
- <input type="hidden" id="ux_hidden_album_id" value="<?php echo $album_id; ?>"/>
168
- </div>
169
- <div class="widget-layout-body">
170
- <div class="layout-control-group">
171
- <label class="layout-control-label"><?php _e("Description", gallery_bank); ?> :</label>
172
- </div>
173
- <div class="layout-control-group">
174
- <?php
175
- $ux_content = stripslashes(htmlspecialchars_decode($album->description));
176
- wp_editor($ux_content, $id = "ux_edit_description", $media_buttons = true, $tab_index = 1);
177
- ?>
178
- </div>
179
- </div>
180
- </div>
181
- </div>
182
- <div class="layout-span6">
183
- <div class="widget-layout">
184
- <div class="widget-layout-title">
185
- <h4><?php _e("Upload Images", gallery_bank); ?></h4>
186
- </div>
187
- <div class="widget-layout-body" id="edit_image_uploader">
188
- <p><?php _e("Your browser doesn\"t have Flash, Silverlight or HTML5 support.", gallery_bank) ?></p>
189
- </div>
190
- </div>
191
- </div>
192
- <div class="layout-span6">
193
- <div class="widget-layout">
194
- <div class="widget-layout-title">
195
- <h4><?php _e("Upload Videos", gallery_bank); ?>
196
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
197
- </h4>
198
- </div>
199
- <div class="widget-layout-body" id="edit_video_uploader">
200
- <div class="layout-control-group">
201
- <label class="layout-control-label"><?php _e("Video Url", gallery_bank); ?> :</label>
202
- <div class="layout-controls">
203
- <input type="text" name="ux_edit_txt_video_url" class="layout-span12" value=""
204
- id="ux_edit_txt_video_url"
205
- placeholder="<?php _e("Enter your Video Url", gallery_bank); ?>"/>
206
- </div>
207
- </div>
208
- <div class="layout-control-group">
209
- <div class="layout-controls">
210
- <button type="button" onclick="insertVideoToDataTable();" style="float:right"
211
- class="btn btn-info"><?php _e("Upload Video", gallery_bank); ?></button>
212
- </div>
213
- </div>
214
- </div>
215
- </div>
216
- </div>
217
- </div>
218
- <div class="fluid-layout">
219
- <div class="layout-span12">
220
- <div class="widget-layout">
221
- <div class="widget-layout-title">
222
- <h4><?php _e("Your Gallery Bank Album", gallery_bank); ?></h4>
223
- </div>
224
- <div class="widget-layout-body">
225
- <table class="table table-striped " id="data-table-edit-album">
226
- <thead>
227
- <tr>
228
-
229
- <th style="width:11%">
230
- <input type="checkbox" id="grp_select_items" name="grp_select_items" style="vertical-align:middle;"/>
231
- <button type="button" onclick="deleteSelectedImages();" style="vertical-align:middle;"
232
- class="btn btn-inverse"><?php _e("Delete", gallery_bank); ?></button>
233
- </th>
234
- <th style="width:15%">
235
- <?php _e("Thumbnail", gallery_bank); ?>
236
- </th>
237
- <th style="width:25%">
238
- <?php _e("Title & Description", gallery_bank); ?>
239
- </th>
240
- <th style="width:20%">
241
- <?php _e("Tags (comma separated list)", gallery_bank); ?>
242
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
243
- </th>
244
- <th style="width:25%">
245
- <?php _e("Url to Redirect on click of an Image", gallery_bank); ?>
246
- </th>
247
- <th style="width:5%"></th>
248
- <th style="visibility: hidden"></th>
249
- </tr>
250
- </thead>
251
- <tbody>
252
- <?php
253
- for ($flag = 0; $flag < count($pics); $flag++) {
254
- ?>
255
- <tr>
256
- <?php
257
- if ($pics[$flag]->video == 1) {
258
- ?>
259
-
260
- <td>
261
- <input type="checkbox" id="ux_grp_select_items" name="ux_grp_select_items"
262
- value="<?php echo $pics[$flag]->pic_id; ?>" />
263
- </td>
264
- <td>
265
- <a href="javascript:void(0);" title="<?php echo $pics[$flag]->pic_name; ?>">
266
- <img imageid="<?php echo $pics[$flag]->pic_id; ?>" type="video"
267
- imgpath="<?php echo $pics[$flag]->pic_name; ?>"
268
- src="<?php echo stripcslashes($video_url); ?>" id="ux_gb_img"
269
- name="ux_gb_img" width="<?php echo $thumbnails_width; ?>px;"
270
- class="dynamic_css" picId="<?php echo $pics[$flag]->pic_id; ?>"/>
271
- </a><br/>
272
- <?php $dateFormat = date("F j, Y", strtotime($pics[$flag]->date)); ?>
273
- <label><strong>Video</strong></label><br/><label><?php echo $dateFormat; ?></label>
274
- </td>
275
- <td>
276
- <input placeholder="<?php _e("Enter your Title", gallery_bank) ?>"
277
- class="layout-span12 " type="text"
278
- name="ux_edit_video_title_<?php echo $pics[$flag]->pic_id; ?>"
279
- id="ux_edit_video_title_<?php echo $pics[$flag]->pic_id; ?>"
280
- value="<?php echo html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->title))); ?>"/>
281
- <textarea placeholder=" <?php _e("Enter your Description ", gallery_bank) ?>"
282
- style="margin-top:20px" rows="5" class="layout-span12"
283
- name="ux_txt_desc_<?php echo $pics[$flag]->pic_id; ?>"
284
- id="ux_txt_desc_<?php echo $pics[$flag]->pic_id; ?>"><?php echo html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->description))); ?></textarea>
285
- </td>
286
- <td>
287
- <input placeholder="<?php _e("Enter your Tags", gallery_bank) ?>"
288
- class="layout-span12" type="text" readonly="readonly"
289
- name="ux_edit_txt_tags_<?php echo $pics[$flag]->pic_id; ?>"
290
- id="ux_edit_txt_tags_<?php echo $pics[$flag]->pic_id; ?>" onkeypress="return preventDot(event);"
291
- value="" />
292
- </td>
293
- <td>
294
- </td>
295
- <td>
296
- <a class="btn hovertip " id="ux_btn_delete" style="cursor: pointer;"
297
- data-original-title="<?php _e("Delete Video", gallery_bank) ?>"
298
- onclick="deleteImage(this);"
299
- controlId="<?php echo $pics[$flag]->pic_id; ?>">
300
- <i class="icon-trash"></i>
301
- </a>
302
- </td>
303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  <?php
305
- } else {
306
- ?>
307
- <td>
308
- <input type="checkbox" id="ux_grp_select_items" name="ux_grp_select_items"
309
- value="<?php echo $pics[$flag]->pic_id; ?>" />
310
- </td>
311
- <td>
312
- <a href="javascript:void(0);" title="<?php echo $pics[$flag]->pic_name; ?>">
313
- <img type="image" imgpath="<?php echo $pics[$flag]->thumbnail_url; ?>"
314
- src="<?php echo stripcslashes(GALLERY_BK_THUMB_SMALL_URL . $pics[$flag]->thumbnail_url); ?>"
315
- id="ux_gb_img" imageid="<?php echo $pics[$flag]->pic_id; ?>"
316
- name="ux_gb_img" class=" dynamic_css"
317
- width="<?php echo $thumbnails_width ?>"/>
318
- </a>
319
- <br/>
320
- <?php $dateFormat = date("F j, Y", strtotime($pics[$flag]->date)); ?>
321
- <label><strong><?php echo $pics[$flag]->pic_name; ?></strong></label><br/><label><?php echo $dateFormat; ?></label><br/>
322
- <?php
323
- if ($pics[$flag]->album_cover == 1) {
324
- ?>
325
- <input type="radio" style="cursor: pointer;" onclick="select_one_radio(this);" checked="checked"
326
- id="ux_edit_rdl_cover_<?php echo $pics[$flag]->pic_id; ?>"
327
- name="ux_album_cover"/>
328
- <label><?php _e(" Set as Album Cover", gallery_bank) ?></label>
329
- <?php
330
- } else {
331
- ?>
332
- <input type="radio" onclick="select_one_radio(this);" style="cursor: pointer;"
333
- id="ux_edit_rdl_cover_<?php echo $pics[$flag]->pic_id; ?>"
334
- name="ux_album_cover"/>
335
- <label><?php _e(" Set as Album Cover", gallery_bank) ?></label>
336
- <?php
337
- }
338
- ?>
339
- </td>
340
- <td>
341
- <input placeholder="<?php _e("Enter your Title", gallery_bank) ?>"
342
- class="layout-span12 " type="text"
343
- name="ux_edit_img_title_<?php echo $pics[$flag]->pic_id; ?>"
344
- id="ux_edit_img_title_<?php echo $pics[$flag]->pic_id; ?>"
345
- value="<?php echo html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->title))); ?>"/>
346
- <textarea placeholder="<?php _e("Enter your Description ", gallery_bank) ?>"
347
- style="margin-top:20px" rows="5" class="layout-span12 "
348
- name="ux_edit_txt_desc_<?php echo $pics[$flag]->pic_id; ?>"
349
- id="ux_edit_txt_desc_<?php echo $pics[$flag]->pic_id; ?>"><?php echo html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->description))); ?></textarea>
350
- </td>
351
- <td>
352
- <input placeholder="<?php _e("Enter your Tags", gallery_bank) ?>"
353
- class="layout-span12 " type="text" onkeypress="return preventDot(event);"
354
- name="ux_edit_txt_tags_<?php echo $pics[$flag]->pic_id; ?>"
355
- id="ux_edit_txt_tags_<?php echo $pics[$flag]->pic_id; ?>" readonly="readonly"
356
- value=""/>
357
- </td>
358
- <td>
359
- <?php
360
- if ($pics[$flag]->url == "" || $pics[$flag]->url == "undefined") {
361
- $domain = "http://";
362
- } else {
363
- $domain = str_replace("http://http://", "http://", $pics[$flag]->url);
364
- }
365
- ?>
366
- <input value="<?php echo $domain; ?>" type="text"
367
- id="ux_edit_txt_url_<?php echo $pics[$flag]->pic_id; ?>"
368
- name="ux_edit_txt_url_<?php echo $pics[$flag]->pic_id; ?>"
369
- class="layout-span12 "/>
370
- </td>
371
- <td>
372
- <a class="btn hovertip" id="ux_btn_delete" style="cursor: pointer;"
373
- data-original-title="<?php _e("Delete Image", gallery_bank) ?>"
374
- onclick="deleteImage(this);"
375
- controlId="<?php echo $pics[$flag]->pic_id; ?>">
376
- <i class="icon-trash"></i>
377
- </a>
378
- </td>
379
- <td style="visibility: hidden">
380
- <?php echo $pics[$flag]->pic_id; ?>
381
- </td>
382
- <?php
383
- }
384
- ?>
385
- </tr>
386
- <?php
387
- }
388
- ?>
389
- </tbody>
390
- </table>
391
- </div>
392
- </div>
393
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
394
  </div>
395
- <div class="separator-doubled"></div>
396
- <button type="submit" class="btn btn-info" style="float:right; margin-top: 20px;"><?php _e("Save Album", gallery_bank); ?></button>
397
- <a class="btn btn-inverse" href="admin.php?page=gallery_bank" style="margin-top: 20px;"><?php _e("Back to Albums", gallery_bank); ?></a>
398
  </div>
399
  </div>
400
  </div>
401
  </div>
402
  </div>
403
- </div>
404
- </div>
405
- </form>
406
- <script type="text/javascript">
407
-
408
- jQuery(".hovertip").tooltip();
409
- var url = "<?php echo GALLERY_BK_PLUGIN_URL ?>";
410
- var image_width = <?php echo $thumbnails_width; ?>;
411
- var image_height = <?php echo $thumbnails_height; ?>;
412
- var cover_width = <?php echo $cover_thumbnail_width; ?>;
413
- var cover_height = <?php echo $cover_thumbnail_height; ?>;
414
- var delete_array = [];
415
- var array_album_data = [];
416
-
417
- oTable = jQuery("#data-table-edit-album").dataTable
418
- ({
419
- "bJQueryUI": false,
420
- "bAutoWidth": true,
421
- "sPaginationType": "full_numbers",
422
- "sDom": '<"datatable-header"fl>t<"datatable-footer"ip>',
423
- "oLanguage": {
424
- "sLengthMenu": "<span>Show entries:</span> _MENU_"
425
- },
426
- "aaSorting": [[ 6, "asc" ]],
427
- "aoColumnDefs": [{ "bSortable": false, "aTargets": [0] },{ "bSortable": false, "aTargets": [0] }]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
428
 
429
- });
430
- jQuery("#edit_album").validate
431
- ({
432
- submitHandler: function () {
433
- jQuery("#update_album_success_message").css("display", "block");
434
- jQuery("body,html").animate({
435
- scrollTop: jQuery("body,html").position().top}, "slow");
436
- var albumid = jQuery("#ux_hidden_album_id").val();
437
- if (delete_array.length > 0)
438
- {
439
- jQuery.post(ajaxurl,"delete_array=" + encodeURIComponent(delete_array) + "&albumid=" + albumid + "&param=delete_pic&action=add_new_album_library", function ()
440
- {
441
- });
442
- }
443
-
444
- var uxEditDescription = "";
445
-
446
- <?php
447
- if(class_exists("ckeditor_wordpress"))
448
- {
449
- ?>
450
- var uxEditDescription = encodeURIComponent(CKEDITOR.instances.ux_edit_description.getData());
451
- <?php
452
- }
453
- else
454
- {
455
- ?>
456
- var uxEditDescription = jQuery("#wp-ux_edit_description-wrap").hasClass("tmce-active") ?
457
- encodeURIComponent(tinyMCE.get("ux_edit_description").getContent())
458
- : encodeURIComponent(jQuery("#ux_edit_description").val());
459
- <?php
460
- }
461
- ?>
462
-
463
- var edit_album_name = encodeURIComponent(jQuery("#ux_edit_title").val());
464
- jQuery.post(ajaxurl, "albumid=" + albumid + "&edit_album_name=" + edit_album_name + "&uxEditDescription=" + uxEditDescription + "&param=update_album&action=add_new_album_library", function () {
465
- var count = 0;
466
- jQuery.each(oTable.fnGetNodes(), function (index, value) {
467
- var controlClass = jQuery(value.cells[1]).find("img").attr("class");
468
- var controlType = "";
469
- var img_gb_path = "";
470
- var isAlbumCoverSet = "";
471
- var title = "";
472
- var description = "";
473
- var tags = "";
474
- var urlRedirect = "";
475
- var picId = "";
476
- var row_data = [];
477
-
478
- controlType = jQuery(value.cells[1]).find("img").attr("type");
479
- picId = jQuery(value.cells[1]).find("img").attr("imageId");
480
- img_gb_path = (jQuery(value.cells[1]).find("img").attr("imgpath"));
481
- isAlbumCoverSet = jQuery(value.cells[1]).find("input:radio").attr("checked");
482
- title = (jQuery(value.cells[2]).find("input:text").eq(0).val());
483
- description =(jQuery(value.cells[2]).find("textarea").eq(0).val());
484
- tags = jQuery(value.cells[3]).find("input:text").eq(0).val();
485
- urlRedirect = jQuery(value.cells[4]).find("input:text").eq(0).val();
486
- row_data.push(controlType);
487
- row_data.push(picId);
488
- row_data.push(img_gb_path);
489
- row_data.push(isAlbumCoverSet);
490
- row_data.push(title);
491
- row_data.push(description);
492
- row_data.push(tags);
493
- row_data.push(urlRedirect);
494
- row_data.push(cover_width);
495
- row_data.push(cover_height);
496
-
497
- array_album_data.push(row_data);
498
- });
499
- jQuery.post(ajaxurl, "album_data="+encodeURIComponent(JSON.stringify(array_album_data))+ "&param=update_pic&action=add_new_album_library", function (data) {
500
- setTimeout(function () {
501
- jQuery("#update_album_success_message").css("display", "none");
502
- window.location.href = "admin.php?page=gallery_bank";
503
- }, 10000);
504
- });
505
-
506
- });
507
- }
508
- });
509
- jQuery("#edit_image_uploader").pluploadQueue
510
- ({
511
- runtimes: "html5,flash,silverlight,html4",
512
- url: ajaxurl + "?param=upload_pic&action=upload_library",
513
- chunk_size: "1mb",
514
- filters: {
515
- max_file_size: "100mb",
516
- mime_types: [
517
- {title: "Image files", extensions: "jpg,jpeg,gif,png"}
518
- ]
519
- },
520
- rename: true,
521
- sortable: true,
522
- dragdrop: true,
523
- unique_names: true,
524
- max_file_count: 20,
525
- views: {
526
- list: true,
527
- thumbs: true, // Show thumbs
528
- active: "thumbs"
529
- },
530
- flash_swf_url: url + "/assets/Moxie.swf",
531
- silverlight_xap_url: url + "/assets/Moxie.xap",
532
- init: {
533
- FileUploaded: function (up, file) {
534
-
535
- var oTable = jQuery("#data-table-edit-album").dataTable();
536
- var albumid = jQuery("#ux_hidden_album_id").val();
537
- var controlType = "image";
538
- var image_name = file.name;
539
- var img_gb_path = file.target_name;
540
- jQuery.post(ajaxurl, "album_id=" + albumid + "&controlType=" + controlType + "&imagename=" + image_name +
541
- "&img_gb_path=" + img_gb_path + "&cover_height=" + cover_height + "&cover_width=" + cover_width +
542
- "&param=add_pic&action=add_new_album_library", function (data) {
543
-
544
- jQuery.post(ajaxurl, "img_path=" + file.target_name + "&img_name=" + file.name + "&image_width=" + image_width +
545
- "&image_height=" + image_height + "&picid=" + data +
546
- "&param=add_new_dynamic_row_for_image&action=add_new_album_library", function (data) {
547
- var col1 = jQuery("<td></td>");
548
- col1.append(jQuery.parseJSON(data)[0]);
549
- var col2 = jQuery("<td></td>");
550
- col2.append(jQuery.parseJSON(data)[1]);
551
- var col3 = jQuery("<td></td>");
552
- col3.append(jQuery.parseJSON(data)[2]);
553
- var col4 = jQuery("<td></td>");
554
- col4.append(jQuery.parseJSON(data)[3]);
555
- var col5 = jQuery("<td></td>");
556
- col5.append(jQuery.parseJSON(data)[4]);
557
- var col6 = jQuery("<td></td>");
558
- col6.append(jQuery.parseJSON(data)[5]);
559
- var col7 = jQuery("<td style=\"visibility:hidden;\"></td>");
560
- oTable.fnAddData([col1.html(), col2.html(), col3.html(), col4.html(), col5.html(), col6.html(), col7.html()]);
561
-
562
- select_radio();
563
- jQuery(".hovertip").tooltip();
564
  });
565
- });
566
-
567
- },
568
- UploadComplete: function () {
569
- jQuery(".plupload_buttons").css("display", "block");
570
- jQuery(".plupload_upload_status").css("display", "none");
571
- }
572
- }
573
- });
574
- function deleteImage(control) {
575
- var r = confirm("<?php _e("Are you sure you want to delete this Image?", gallery_bank)?>");
576
- if (r == true) {
577
- var row = jQuery(control).closest("tr");
578
- var oTable = jQuery("#data-table-edit-album").dataTable();
579
- var controlId = jQuery(control).attr("controlid");
580
- delete_array.push(controlId);
581
-
582
- oTable.fnDeleteRow(row[0]);
583
- select_radio();
584
- }
585
- }
586
- function insertVideoToDataTable()
587
- {
588
- alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
589
- }
590
- jQuery("#grp_select_items").click(function () {
591
- var oTable = jQuery("#data-table-edit-album").dataTable();
592
- var checkProp = jQuery("#grp_select_items").prop("checked");
593
- jQuery("input:checkbox", oTable.fnGetNodes()).each(function () {
594
- if (checkProp) {
595
- jQuery(this).attr("checked", "checked");
596
- }
597
- else {
598
- jQuery(this).removeAttr("checked");
599
- }
600
- });
601
- });
602
- function deleteSelectedImages()
603
- {
604
- alert("<?php _e("This feature is only available in Paid Premium Version!", gallery_bank)?>");
605
- }
606
-
607
- function select_one_radio(control)
608
- {
609
- var oTable = jQuery("#data-table-edit-album").dataTable();
610
- jQuery("input[type=radio][name=ux_album_cover]:checked", oTable.fnGetNodes()).each(function ()
611
- {
612
- jQuery(this).removeAttr("checked");
613
- });
614
- jQuery(control).attr("checked","checked");
615
- }
616
-
617
- //This function is to select radio button of first image
618
- function select_radio() {
619
- var oTable = jQuery("#data-table-edit-album").dataTable();
620
- if ((jQuery("input[type=radio][name=ux_album_cover]:checked", oTable.fnGetNodes()).length) < 1){
621
- jQuery("input[type=radio][name=ux_album_cover]:first").attr("checked","checked");
622
- }
623
- }
624
- function preventDot(e)
625
- {
626
- var key = e.charCode ? e.charCode : e.keyCode;
627
- if (key == 46)
628
- {
629
- return false;
630
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
631
  }
632
- </script>
633
- <?php
634
- }
635
- ?>
1
  <?php
2
+ global $wpdb,$current_user,$user_role_permission;
3
+ $role = $wpdb->prefix . "capabilities";
4
+ $current_user->role = array_keys($current_user->$role);
5
+ $role = $current_user->role[0];
6
+ switch($role)
7
+ {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
23
+ }
24
+ if (!current_user_can($user_role_permission))
25
+ {
26
+ return;
27
+ }
28
+ else
29
  {
30
+
31
+ $album_id = intval($_REQUEST["album_id"]);
32
+ $last_albums_id = $wpdb->get_var
33
  (
34
  $wpdb->prepare
35
  (
36
+ "SELECT album_id FROM " .gallery_bank_albums(). " where album_id= %d",
 
 
 
 
 
37
  $album_id
38
  )
39
  );
40
+ $album_count = $wpdb->get_var
41
  (
42
+ "SELECT count(album_id) FROM ".gallery_bank_albums()
 
 
 
 
43
  );
44
+ if($album_count < 3)
45
+ {
46
+ if($last_albums_id == 0)
47
+ {
48
+ $wpdb->query
49
+ (
50
+ $wpdb->prepare
51
+ (
52
+ "INSERT INTO " . gallery_bank_albums() . "(album_id,album_name, description, album_date, author, album_order)
53
+ VALUES(%d, %s, %s, CURDATE(), %s, %d)",
54
+ $album_id,
55
+ "Untitled Album",
56
+ "",
57
+ $current_user->display_name,
58
+ $album_id
59
+ )
60
+ );
61
+ $album = $wpdb->get_row
62
+ (
63
+ $wpdb->prepare
64
+ (
65
+ "SELECT * FROM " . gallery_bank_albums() . " where album_id = %d",
66
+ $album_id
67
+ )
68
+ );
69
+ }
70
+ else
71
+ {
72
+ $album = $wpdb->get_row
73
+ (
74
+ $wpdb->prepare
75
+ (
76
+ "SELECT * FROM " . gallery_bank_albums() . " where album_id = %d",
77
+ $album_id
78
+ )
79
+ );
80
+ }
81
+ }
82
+ else
83
+ {
84
+ $album = $wpdb->get_row
85
  (
86
+ $wpdb->prepare
87
+ (
88
+ "SELECT * FROM " . gallery_bank_albums() . " where album_id = %d",
89
+ $album_id
90
+ )
91
+ );
92
+ }
93
+ $pics = $wpdb->get_results
94
+ (
95
+ $wpdb->prepare
96
+ (
97
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by sorting_order asc ",
98
+ $album_id
99
+ )
100
  );
101
+
102
+ $album_css = $wpdb->get_results
 
 
 
 
 
103
  (
104
+ "SELECT * FROM " . gallery_bank_settings()
105
+ );
106
+ if (count($album_css) != 0)
107
+ {
108
+ $setting_keys = array();
109
+ for ($flag = 0; $flag < count($album_css); $flag++)
110
+ {
111
+ array_push($setting_keys, $album_css[$flag]->setting_key);
112
+ }
113
+
114
+ $index = array_search("thumbnails_width", $setting_keys);
115
+ $thumbnails_width = $album_css[$index]->setting_value;
116
+
117
+ $index = array_search("thumbnails_height", $setting_keys);
118
+ $thumbnails_height = $album_css[$index]->setting_value;
119
+
120
+ $index = array_search("thumbnails_opacity", $setting_keys);
121
+ $thumbnails_opacity = $album_css[$index]->setting_value;
122
+
123
+ $index = array_search("thumbnails_border_size", $setting_keys);
124
+ $thumbnails_border_size = $album_css[$index]->setting_value;
125
+
126
+ $index = array_search("thumbnails_border_radius", $setting_keys);
127
+ $thumbnails_border_radius = $album_css[$index]->setting_value;
128
+
129
+ $index = array_search("thumbnails_border_color", $setting_keys);
130
+ $thumbnails_border_color = $album_css[$index]->setting_value;
131
+
132
+ $index = array_search("cover_thumbnail_width", $setting_keys);
133
+ $cover_thumbnail_width = $album_css[$index]->setting_value;
134
+
135
+ $index = array_search("cover_thumbnail_height", $setting_keys);
136
+ $cover_thumbnail_height = $album_css[$index]->setting_value;
137
+
138
+ $video_url = GALLERY_BK_PLUGIN_URL . "/assets/images/video.jpg" ;
139
+
140
+ ?>
141
+ <!--suppress ALL -->
142
+ <style type="text/css">
143
+ .dynamic_css {
144
+ border: <?php echo $thumbnails_border_size;?>px solid <?php echo $thumbnails_border_color;?>;
145
+ border-radius: <?php echo $thumbnails_border_radius;?>px;
146
+ -moz-border-radius: <?php echo $thumbnails_border_radius; ?>px;
147
+ -webkit-border-radius: <?php echo $thumbnails_border_radius;?>px;
148
+ -khtml-border-radius: <?php echo $thumbnails_border_radius;?>px;
149
+ -o-border-radius: <?php echo $thumbnails_border_radius;?>px;
150
+ opacity: <?php echo $thumbnails_opacity;?>;
151
+ -moz-opacity: <?php echo $thumbnails_opacity; ?>;
152
+ -khtml-opacity: <?php echo $thumbnails_opacity; ?>;
153
+ }
154
+ </style>
155
+ <div class="message red" style="display: block;margin-top:30px">
156
+ <span>
157
+ <strong>You will be only allowed to add 3 galleries. Kindly purchase Premium Version for full access.</strong>
158
+ </span>
159
+ </div>
160
+ <form id="edit_album" class="layout-form">
161
+ <div id="poststuff" style="width: 99% !important;">
162
+ <div id="post-body" class="metabox-holder">
163
+ <div id="postbox-container-2" class="postbox-container">
164
+ <div id="advanced" class="meta-box-sortables">
165
+ <div id="gallery_bank_get_started" class="postbox" >
166
+ <div class="handlediv" data-target="#ux_edit_album" title="Click to toggle" data-toggle="collapse"><br></div>
167
+ <h3 class="hndle"><span><?php _e("Album", gallery_bank); ?></span></h3>
168
+ <div class="inside">
169
+ <div id="ux_edit_album" class="gallery_bank_layout">
170
+ <a class="btn btn-inverse" href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
171
+ <button type="submit" class="btn btn-info" style="float:right"><?php _e("Save Album", gallery_bank); ?></button>
172
+ <div class="separator-doubled"></div>
173
+ <div id="update_album_success_message" class="message green" style="display: none;">
174
+ <span>
175
+ <strong><?php _e("Album Saved. Kindly wait for the redirect to happen.", gallery_bank); ?></strong>
176
+ </span>
177
+ </div>
178
+ <div class="fluid-layout">
179
+ <div class="layout-span6">
180
+ <div class="widget-layout">
181
+ <div class="widget-layout-title">
182
+ <h4><?php _e("Album Details", gallery_bank); ?></h4>
183
+ </div>
184
+ <div class="widget-layout-body">
185
+ <div class="layout-control-group">
186
+ <label class="layout-control-label"><?php _e("Album Title", gallery_bank); ?> :</label>
187
+ <div class="layout-controls">
188
+ <input type="text" name="ux_edit_title" class="layout-span12"
189
+ value="<?php echo stripcslashes(htmlspecialchars_decode($album->album_name)); ?>"
190
+ id="ux_edit_title"
191
+ placeholder="<?php _e("Enter your Album Title", gallery_bank); ?>"/>
192
+ </div>
193
+ </div>
194
+ <input type="hidden" id="ux_hidden_album_id" value="<?php echo $album_id; ?>"/>
195
+ </div>
196
+ <div class="widget-layout-body">
197
+ <div class="layout-control-group">
198
+ <label class="layout-control-label"><?php _e("Description", gallery_bank); ?> :</label>
199
+ </div>
200
+ <div class="layout-control-group">
201
+ <?php
202
+ $ux_content = stripslashes(htmlspecialchars_decode($album->description));
203
+ wp_editor($ux_content, $id = "ux_edit_description", $media_buttons = true, $tab_index = 1);
204
+ ?>
205
+ </div>
206
+ </div>
207
+ </div>
208
+ </div>
209
+ <div class="layout-span6">
210
+ <div class="widget-layout">
211
+ <div class="widget-layout-title">
212
+ <h4><?php _e("Upload Images", gallery_bank); ?></h4>
213
+ </div>
214
+ <div class="widget-layout-body" id="edit_image_uploader">
215
+ <p><?php _e("Your browser doesn\"t have Flash, Silverlight or HTML5 support.", gallery_bank) ?></p>
216
+ </div>
217
+ </div>
218
+ </div>
219
+ <div class="layout-span6">
220
+ <div class="widget-layout">
221
+ <div class="widget-layout-title">
222
+ <h4><?php _e("Upload Videos", gallery_bank); ?>
223
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
224
+ </h4>
225
+ </div>
226
+ <div class="widget-layout-body" id="edit_video_uploader">
227
+ <div class="layout-control-group">
228
+ <label class="layout-control-label"><?php _e("Video Url", gallery_bank); ?> :</label>
229
+ <div class="layout-controls">
230
+ <input type="text" name="ux_edit_txt_video_url" class="layout-span12" value=""
231
+ id="ux_edit_txt_video_url"
232
+ placeholder="<?php _e("Enter your Video Url", gallery_bank); ?>"/>
233
+ </div>
234
+ </div>
235
+ <div class="layout-control-group">
236
+ <div class="layout-controls">
237
+ <button type="button" onclick="insertVideoToDataTable();" style="float:right"
238
+ class="btn btn-info"><?php _e("Upload Video", gallery_bank); ?></button>
239
+ </div>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ </div>
244
+ </div>
245
+ <div class="fluid-layout">
246
+ <div class="layout-span12">
247
+ <div class="widget-layout">
248
+ <div class="widget-layout-title">
249
+ <h4><?php _e("Your Gallery Bank Album", gallery_bank); ?></h4>
250
+ </div>
251
+ <div class="widget-layout-body">
252
+ <table class="table table-striped " id="data-table-edit-album">
253
+ <thead>
254
+ <tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
 
256
+ <th style="width:11%">
257
+ <input type="checkbox" id="grp_select_items" name="grp_select_items" style="vertical-align:middle;"/>
258
+ <button type="button" onclick="deleteSelectedImages();" style="vertical-align:middle;"
259
+ class="btn btn-inverse"><?php _e("Delete", gallery_bank); ?></button>
260
+ </th>
261
+ <th style="width:15%">
262
+ <?php _e("Thumbnail", gallery_bank); ?>
263
+ </th>
264
+ <th style="width:25%">
265
+ <?php _e("Title & Description", gallery_bank); ?>
266
+ </th>
267
+ <th style="width:20%">
268
+ <?php _e("Tags (comma separated list)", gallery_bank); ?>
269
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
270
+ </th>
271
+ <th style="width:25%">
272
+ <?php _e("Url to Redirect on click of an Image", gallery_bank); ?>
273
+ </th>
274
+ <th style="width:5%"></th>
275
+ <th style="visibility: hidden"></th>
276
+ </tr>
277
+ </thead>
278
+ <tbody>
279
  <?php
280
+ for ($flag = 0; $flag < count($pics); $flag++) {
281
+ ?>
282
+ <tr>
283
+ <?php
284
+ if ($pics[$flag]->video == 1) {
285
+ ?>
286
+
287
+ <td>
288
+ <input type="checkbox" id="ux_grp_select_items" name="ux_grp_select_items"
289
+ value="<?php echo $pics[$flag]->pic_id; ?>" />
290
+ </td>
291
+ <td>
292
+ <a href="javascript:void(0);" title="<?php echo $pics[$flag]->pic_name; ?>">
293
+ <img imageid="<?php echo $pics[$flag]->pic_id; ?>" type="video"
294
+ imgpath="<?php echo $pics[$flag]->pic_name; ?>"
295
+ src="<?php echo stripcslashes($video_url); ?>" id="ux_gb_img"
296
+ name="ux_gb_img" width="<?php echo $thumbnails_width; ?>px;"
297
+ class="dynamic_css" picId="<?php echo $pics[$flag]->pic_id; ?>"/>
298
+ </a><br/>
299
+ <?php $dateFormat = date("F j, Y", strtotime($pics[$flag]->date)); ?>
300
+ <label><strong>Video</strong></label><br/><label><?php echo $dateFormat; ?></label>
301
+ </td>
302
+ <td>
303
+ <input placeholder="<?php _e("Enter your Title", gallery_bank) ?>"
304
+ class="layout-span12 " type="text"
305
+ name="ux_edit_video_title_<?php echo $pics[$flag]->pic_id; ?>"
306
+ id="ux_edit_video_title_<?php echo $pics[$flag]->pic_id; ?>"
307
+ value="<?php echo html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->title))); ?>"/>
308
+ <textarea placeholder=" <?php _e("Enter your Description ", gallery_bank) ?>"
309
+ style="margin-top:20px" rows="5" class="layout-span12"
310
+ name="ux_txt_desc_<?php echo $pics[$flag]->pic_id; ?>"
311
+ id="ux_txt_desc_<?php echo $pics[$flag]->pic_id; ?>"><?php echo html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->description))); ?></textarea>
312
+ </td>
313
+ <td>
314
+ <input placeholder="<?php _e("Enter your Tags", gallery_bank) ?>"
315
+ class="layout-span12" type="text" readonly="readonly"
316
+ name="ux_edit_txt_tags_<?php echo $pics[$flag]->pic_id; ?>"
317
+ id="ux_edit_txt_tags_<?php echo $pics[$flag]->pic_id; ?>" onkeypress="return preventDot(event);"
318
+ value="" />
319
+ </td>
320
+ <td>
321
+ </td>
322
+ <td>
323
+ <a class="btn hovertip " id="ux_btn_delete" style="cursor: pointer;"
324
+ data-original-title="<?php _e("Delete Video", gallery_bank) ?>"
325
+ onclick="deleteImage(this);"
326
+ controlId="<?php echo $pics[$flag]->pic_id; ?>">
327
+ <i class="icon-trash"></i>
328
+ </a>
329
+ </td>
330
+
331
+ <?php
332
+ } else {
333
+ ?>
334
+ <td>
335
+ <input type="checkbox" id="ux_grp_select_items" name="ux_grp_select_items"
336
+ value="<?php echo $pics[$flag]->pic_id; ?>" />
337
+ </td>
338
+ <td>
339
+ <a href="javascript:void(0);" title="<?php echo $pics[$flag]->pic_name; ?>">
340
+ <img type="image" imgpath="<?php echo $pics[$flag]->thumbnail_url; ?>"
341
+ src="<?php echo stripcslashes(GALLERY_BK_THUMB_SMALL_URL . $pics[$flag]->thumbnail_url); ?>"
342
+ id="ux_gb_img" imageid="<?php echo $pics[$flag]->pic_id; ?>"
343
+ name="ux_gb_img" class=" dynamic_css"
344
+ width="<?php echo $thumbnails_width ?>"/>
345
+ </a>
346
+ <br/>
347
+ <?php $dateFormat = date("F j, Y", strtotime($pics[$flag]->date)); ?>
348
+ <label><strong><?php echo $pics[$flag]->pic_name; ?></strong></label><br/><label><?php echo $dateFormat; ?></label><br/>
349
+ <?php
350
+ if ($pics[$flag]->album_cover == 1) {
351
+ ?>
352
+ <input type="radio" style="cursor: pointer;" onclick="select_one_radio(this);" checked="checked"
353
+ id="ux_edit_rdl_cover_<?php echo $pics[$flag]->pic_id; ?>"
354
+ name="ux_album_cover"/>
355
+ <label><?php _e(" Set as Album Cover", gallery_bank) ?></label>
356
+ <?php
357
+ } else {
358
+ ?>
359
+ <input type="radio" onclick="select_one_radio(this);" style="cursor: pointer;"
360
+ id="ux_edit_rdl_cover_<?php echo $pics[$flag]->pic_id; ?>"
361
+ name="ux_album_cover"/>
362
+ <label><?php _e(" Set as Album Cover", gallery_bank) ?></label>
363
+ <?php
364
+ }
365
+ ?>
366
+ </td>
367
+ <td>
368
+ <input placeholder="<?php _e("Enter your Title", gallery_bank) ?>"
369
+ class="layout-span12 " type="text"
370
+ name="ux_edit_img_title_<?php echo $pics[$flag]->pic_id; ?>"
371
+ id="ux_edit_img_title_<?php echo $pics[$flag]->pic_id; ?>"
372
+ value="<?php echo html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->title))); ?>"/>
373
+ <textarea placeholder="<?php _e("Enter your Description ", gallery_bank) ?>"
374
+ style="margin-top:20px" rows="5" class="layout-span12 "
375
+ name="ux_edit_txt_desc_<?php echo $pics[$flag]->pic_id; ?>"
376
+ id="ux_edit_txt_desc_<?php echo $pics[$flag]->pic_id; ?>"><?php echo html_entity_decode(stripcslashes(htmlspecialchars($pics[$flag]->description))); ?></textarea>
377
+ </td>
378
+ <td>
379
+ <input placeholder="<?php _e("Enter your Tags", gallery_bank) ?>"
380
+ class="layout-span12 " type="text" onkeypress="return preventDot(event);"
381
+ name="ux_edit_txt_tags_<?php echo $pics[$flag]->pic_id; ?>"
382
+ id="ux_edit_txt_tags_<?php echo $pics[$flag]->pic_id; ?>" readonly="readonly"
383
+ value=""/>
384
+ </td>
385
+ <td>
386
+ <?php
387
+ if ($pics[$flag]->url == "" || $pics[$flag]->url == "undefined") {
388
+ $domain = "http://";
389
+ } else {
390
+ $domain = str_replace("http://http://", "http://", $pics[$flag]->url);
391
+ }
392
+ ?>
393
+ <input value="<?php echo $domain; ?>" type="text"
394
+ id="ux_edit_txt_url_<?php echo $pics[$flag]->pic_id; ?>"
395
+ name="ux_edit_txt_url_<?php echo $pics[$flag]->pic_id; ?>"
396
+ class="layout-span12 "/>
397
+ </td>
398
+ <td>
399
+ <a class="btn hovertip" id="ux_btn_delete" style="cursor: pointer;"
400
+ data-original-title="<?php _e("Delete Image", gallery_bank) ?>"
401
+ onclick="deleteImage(this);"
402
+ controlId="<?php echo $pics[$flag]->pic_id; ?>">
403
+ <i class="icon-trash"></i>
404
+ </a>
405
+ </td>
406
+ <td style="visibility: hidden">
407
+ <?php echo $pics[$flag]->pic_id; ?>
408
+ </td>
409
+ <?php
410
+ }
411
+ ?>
412
+ </tr>
413
+ <?php
414
+ }
415
+ ?>
416
+ </tbody>
417
+ </table>
418
+ </div>
419
+ </div>
420
+ </div>
421
+ </div>
422
+ <div class="separator-doubled"></div>
423
+ <button type="submit" class="btn btn-info" style="float:right; margin-top: 20px;"><?php _e("Save Album", gallery_bank); ?></button>
424
+ <a class="btn btn-inverse" href="admin.php?page=gallery_bank" style="margin-top: 20px;"><?php _e("Back to Albums", gallery_bank); ?></a>
425
+ </div>
426
  </div>
 
 
 
427
  </div>
428
  </div>
429
  </div>
430
  </div>
431
  </div>
432
+ </form>
433
+ <script type="text/javascript">
434
+
435
+ jQuery(".hovertip").tooltip();
436
+ var url = "<?php echo GALLERY_BK_PLUGIN_URL ?>";
437
+ var image_width = <?php echo $thumbnails_width; ?>;
438
+ var image_height = <?php echo $thumbnails_height; ?>;
439
+ var cover_width = <?php echo $cover_thumbnail_width; ?>;
440
+ var cover_height = <?php echo $cover_thumbnail_height; ?>;
441
+ var delete_array = [];
442
+ var array_album_data = [];
443
+
444
+ oTable = jQuery("#data-table-edit-album").dataTable
445
+ ({
446
+ "bJQueryUI": false,
447
+ "bAutoWidth": true,
448
+ "sPaginationType": "full_numbers",
449
+ "sDom": '<"datatable-header"fl>t<"datatable-footer"ip>',
450
+ "oLanguage": {
451
+ "sLengthMenu": "<span>Show entries:</span> _MENU_"
452
+ },
453
+ "aaSorting": [[ 6, "asc" ]],
454
+ "aoColumnDefs": [{ "bSortable": false, "aTargets": [0] },{ "bSortable": false, "aTargets": [0] }]
455
+
456
+ });
457
+ jQuery("#edit_album").validate
458
+ ({
459
+ submitHandler: function () {
460
+ jQuery("#update_album_success_message").css("display", "block");
461
+ jQuery("body,html").animate({
462
+ scrollTop: jQuery("body,html").position().top}, "slow");
463
+ var albumid = jQuery("#ux_hidden_album_id").val();
464
+ if (delete_array.length > 0)
465
+ {
466
+ jQuery.post(ajaxurl,"delete_array=" + encodeURIComponent(delete_array) + "&albumid=" + albumid + "&param=delete_pic&action=add_new_album_library", function ()
467
+ {
468
+ });
469
+ }
470
+
471
+ var uxEditDescription = "";
472
+
473
+ <?php
474
+ if(class_exists("ckeditor_wordpress"))
475
+ {
476
+ ?>
477
+ var uxEditDescription = encodeURIComponent(CKEDITOR.instances.ux_edit_description.getData());
478
+ <?php
479
+ }
480
+ else
481
+ {
482
+ ?>
483
+ var uxEditDescription = jQuery("#wp-ux_edit_description-wrap").hasClass("tmce-active") ?
484
+ encodeURIComponent(tinyMCE.get("ux_edit_description").getContent())
485
+ : encodeURIComponent(jQuery("#ux_edit_description").val());
486
+ <?php
487
+ }
488
+ ?>
489
+
490
+ var edit_album_name = encodeURIComponent(jQuery("#ux_edit_title").val());
491
+ jQuery.post(ajaxurl, "albumid=" + albumid + "&edit_album_name=" + edit_album_name + "&uxEditDescription=" + uxEditDescription + "&param=update_album&action=add_new_album_library", function () {
492
+ var count = 0;
493
+ jQuery.each(oTable.fnGetNodes(), function (index, value) {
494
+ var controlClass = jQuery(value.cells[1]).find("img").attr("class");
495
+ var controlType = "";
496
+ var img_gb_path = "";
497
+ var isAlbumCoverSet = "";
498
+ var title = "";
499
+ var description = "";
500
+ var tags = "";
501
+ var urlRedirect = "";
502
+ var picId = "";
503
+ var row_data = [];
504
+
505
+ controlType = jQuery(value.cells[1]).find("img").attr("type");
506
+ picId = jQuery(value.cells[1]).find("img").attr("imageId");
507
+ img_gb_path = (jQuery(value.cells[1]).find("img").attr("imgpath"));
508
+ isAlbumCoverSet = jQuery(value.cells[1]).find("input:radio").attr("checked");
509
+ title = (jQuery(value.cells[2]).find("input:text").eq(0).val());
510
+ description =(jQuery(value.cells[2]).find("textarea").eq(0).val());
511
+ tags = jQuery(value.cells[3]).find("input:text").eq(0).val();
512
+ urlRedirect = jQuery(value.cells[4]).find("input:text").eq(0).val();
513
+ row_data.push(controlType);
514
+ row_data.push(picId);
515
+ row_data.push(img_gb_path);
516
+ row_data.push(isAlbumCoverSet);
517
+ row_data.push(title);
518
+ row_data.push(description);
519
+ row_data.push(tags);
520
+ row_data.push(urlRedirect);
521
+ row_data.push(cover_width);
522
+ row_data.push(cover_height);
523
+
524
+ array_album_data.push(row_data);
525
+ });
526
+ jQuery.post(ajaxurl, "album_data="+encodeURIComponent(JSON.stringify(array_album_data))+ "&param=update_pic&action=add_new_album_library", function (data) {
527
+ setTimeout(function () {
528
+ jQuery("#update_album_success_message").css("display", "none");
529
+ window.location.href = "admin.php?page=gallery_bank";
530
+ }, 10000);
531
+ });
532
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
533
  });
534
+ }
535
+ });
536
+ jQuery("#edit_image_uploader").pluploadQueue
537
+ ({
538
+ runtimes: "html5,flash,silverlight,html4",
539
+ url: ajaxurl + "?param=upload_pic&action=upload_library",
540
+ chunk_size: "1mb",
541
+ filters: {
542
+ max_file_size: "100mb",
543
+ mime_types: [
544
+ {title: "Image files", extensions: "jpg,jpeg,gif,png"}
545
+ ]
546
+ },
547
+ rename: true,
548
+ sortable: true,
549
+ dragdrop: true,
550
+ unique_names: true,
551
+ max_file_count: 20,
552
+ views: {
553
+ list: true,
554
+ thumbs: true, // Show thumbs
555
+ active: "thumbs"
556
+ },
557
+ flash_swf_url: url + "/assets/Moxie.swf",
558
+ silverlight_xap_url: url + "/assets/Moxie.xap",
559
+ init: {
560
+ FileUploaded: function (up, file) {
561
+
562
+ var oTable = jQuery("#data-table-edit-album").dataTable();
563
+ var albumid = jQuery("#ux_hidden_album_id").val();
564
+ var controlType = "image";
565
+ var image_name = file.name;
566
+ var img_gb_path = file.target_name;
567
+ jQuery.post(ajaxurl, "album_id=" + albumid + "&controlType=" + controlType + "&imagename=" + image_name +
568
+ "&img_gb_path=" + img_gb_path + "&cover_height=" + cover_height + "&cover_width=" + cover_width +
569
+ "&param=add_pic&action=add_new_album_library", function (data) {
570
+
571
+ jQuery.post(ajaxurl, "img_path=" + file.target_name + "&img_name=" + file.name + "&image_width=" + image_width +
572
+ "&image_height=" + image_height + "&picid=" + data +
573
+ "&param=add_new_dynamic_row_for_image&action=add_new_album_library", function (data) {
574
+ var col1 = jQuery("<td></td>");
575
+ col1.append(jQuery.parseJSON(data)[0]);
576
+ var col2 = jQuery("<td></td>");
577
+ col2.append(jQuery.parseJSON(data)[1]);
578
+ var col3 = jQuery("<td></td>");
579
+ col3.append(jQuery.parseJSON(data)[2]);
580
+ var col4 = jQuery("<td></td>");
581
+ col4.append(jQuery.parseJSON(data)[3]);
582
+ var col5 = jQuery("<td></td>");
583
+ col5.append(jQuery.parseJSON(data)[4]);
584
+ var col6 = jQuery("<td></td>");
585
+ col6.append(jQuery.parseJSON(data)[5]);
586
+ var col7 = jQuery("<td style=\"visibility:hidden;\"></td>");
587
+ oTable.fnAddData([col1.html(), col2.html(), col3.html(), col4.html(), col5.html(), col6.html(), col7.html()]);
588
+
589
+ select_radio();
590
+ jQuery(".hovertip").tooltip();
591
+ });
592
+ });
593
+
594
+ },
595
+ UploadComplete: function () {
596
+ jQuery(".plupload_buttons").css("display", "block");
597
+ jQuery(".plupload_upload_status").css("display", "none");
598
+ }
599
+ }
600
+ });
601
+ function deleteImage(control) {
602
+ var r = confirm("<?php _e("Are you sure you want to delete this Image?", gallery_bank)?>");
603
+ if (r == true) {
604
+ var row = jQuery(control).closest("tr");
605
+ var oTable = jQuery("#data-table-edit-album").dataTable();
606
+ var controlId = jQuery(control).attr("controlid");
607
+ delete_array.push(controlId);
608
+
609
+ oTable.fnDeleteRow(row[0]);
610
+ select_radio();
611
+ }
612
+ }
613
+ function insertVideoToDataTable()
614
+ {
615
+ alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
616
+ }
617
+ jQuery("#grp_select_items").click(function () {
618
+ var oTable = jQuery("#data-table-edit-album").dataTable();
619
+ var checkProp = jQuery("#grp_select_items").prop("checked");
620
+ jQuery("input:checkbox", oTable.fnGetNodes()).each(function () {
621
+ if (checkProp) {
622
+ jQuery(this).attr("checked", "checked");
623
+ }
624
+ else {
625
+ jQuery(this).removeAttr("checked");
626
+ }
627
+ });
628
+ });
629
+ function deleteSelectedImages()
630
+ {
631
+ alert("<?php _e("This feature is only available in Paid Premium Version!", gallery_bank)?>");
632
+ }
633
+
634
+ function select_one_radio(control)
635
+ {
636
+ var oTable = jQuery("#data-table-edit-album").dataTable();
637
+ jQuery("input[type=radio][name=ux_album_cover]:checked", oTable.fnGetNodes()).each(function ()
638
+ {
639
+ jQuery(this).removeAttr("checked");
640
+ });
641
+ jQuery(control).attr("checked","checked");
642
+ }
643
+
644
+ //This function is to select radio button of first image
645
+ function select_radio() {
646
+ var oTable = jQuery("#data-table-edit-album").dataTable();
647
+ if ((jQuery("input[type=radio][name=ux_album_cover]:checked", oTable.fnGetNodes()).length) < 1){
648
+ jQuery("input[type=radio][name=ux_album_cover]:first").attr("checked","checked");
649
+ }
650
+ }
651
+ function preventDot(e)
652
+ {
653
+ var key = e.charCode ? e.charCode : e.keyCode;
654
+ if (key == 46)
655
+ {
656
+ return false;
657
+ }
658
+ }
659
+ </script>
660
+ <?php
661
+ }
662
  }
663
+ ?>
 
 
 
views/gallery-bank-system-report.php CHANGED
@@ -1,475 +1,504 @@
1
  <?php
2
- global $wp_version;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ?>
4
- <form id="system_settings" class="layout-form">
5
- <div id="poststuff" style="width: 99% !important;">
6
- <div id="post-body" class="metabox-holder">
7
- <div id="postbox-container-2" class="postbox-container">
8
- <div id="advanced" class="meta-box-sortables">
9
- <div id="gallery_bank_get_started" class="postbox" >
10
- <div class="handlediv" data-target="#ux_system_settings" title="Click to toggle" data-toggle="collapse"><br></div>
11
- <h3 class="hndle"><span><?php _e("System Status", gallery_bank); ?></span></h3>
12
- <div class="inside">
13
- <div id="ux_system_settings" class="gallery_bank_layout">
14
- <a class="btn btn-info system-report" href="#"><?php _e("Get System Report", gallery_bank); ?></a>
15
- <div id="system-report" class="layout-system-report">
16
- <textarea readonly="readonly"></textarea>
17
- </div>
18
- <a class="btn btn-info close-report" href="#"><?php _e("Close System Report", gallery_bank); ?></a>
19
- <div class="separator-doubled"></div>
20
- <div class="fluid-layout">
21
- <div class="layout-span6">
22
- <div class="widget-layout">
23
- <div class="widget-layout-title">
24
- <h4>Environment</h4>
25
- <span class="tools">
26
- <a data-target="#server_settings" data-toggle="collapse">
27
- <i class="icon-chevron-down"></i>
28
- </a>
29
- </span>
30
- </div>
31
- <div id="server_settings" class="collapse in">
32
- <div class="widget-layout-body">
33
- <div class="layout-control-group">
34
- <label class="layout-label-control-group">Home URL :</label>
35
-
36
- <div class="layout-controls">
37
- <span><?php echo home_url(); ?></span>
38
- </div>
39
- </div>
40
- </div>
41
- <div class="widget-layout-body">
42
- <div class="layout-control-group">
43
- <label class="layout-label-control-group">Site URL :</label>
44
-
45
- <div class="layout-controls">
46
- <span><?php echo site_url(); ?></span>
47
- </div>
48
- </div>
49
- </div>
50
- <div class="widget-layout-body">
51
- <div class="layout-control-group">
52
- <label class="layout-label-control-group">WP Version :</label>
53
-
54
- <div class="layout-controls">
55
- <span><?php bloginfo("version"); ?></span>
56
- </div>
57
- </div>
58
- </div>
59
- <div class="widget-layout-body">
60
- <div class="layout-control-group">
61
- <label class="layout-label-control-group">WP Multisite Enabled :</label>
62
-
63
- <div class="layout-controls">
64
- <span><?php if (is_multisite()) echo "Yes"; else echo "No"; ?></span>
65
- </div>
66
- </div>
67
- </div>
68
- <div class="widget-layout-body">
69
- <div class="layout-control-group">
70
- <label class="layout-label-control-group">Web Server Info :</label>
71
-
72
- <div class="layout-controls">
73
- <span><?php echo esc_html($_SERVER["SERVER_SOFTWARE"]); ?></span>
74
- </div>
75
- </div>
76
- </div>
77
- <div class="widget-layout-body">
78
- <div class="layout-control-group">
79
- <label class="layout-label-control-group">PHP Version :</label>
80
-
81
- <div class="layout-controls">
82
- <span><?php if (function_exists("phpversion")) echo esc_html(phpversion()); ?></span>
83
- </div>
84
- </div>
85
- </div>
86
- <div class="widget-layout-body">
87
- <div class="layout-control-group">
88
- <label class="layout-label-control-group">MySQL Version :</label>
89
-
90
- <div class="layout-controls">
91
- <span><?php if (function_exists("mysql_get_server_info")) echo esc_html(mysql_get_server_info()); ?></span>
92
- </div>
93
- </div>
94
- </div>
95
- <div class="widget-layout-body">
96
- <div class="layout-control-group">
97
- <label class="layout-label-control-group">WP Debug Mode :</label>
98
-
99
- <div class="layout-controls">
100
- <span><?php if (defined("WP_DEBUG") && WP_DEBUG) echo "Yes"; else echo "No"; ?></span>
101
- </div>
102
- </div>
103
- </div>
104
- <div class="widget-layout-body">
105
- <div class="layout-control-group">
106
- <label class="layout-label-control-group">WP Language :</label>
107
-
108
- <div class="layout-controls">
109
- <span><?php if (defined("WPLANG") && WPLANG) echo WPLANG; else _e("Default"); ?></span>
110
- </div>
111
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  </div>
113
- <div class="widget-layout-body">
114
- <div class="layout-control-group">
115
- <label class="layout-label-control-group">WP Max Upload Size :</label>
116
-
117
- <div class="layout-controls">
118
- <span><?php echo size_format(wp_max_upload_size()); ?></span>
119
- </div>
120
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  </div>
122
- <?php if (function_exists("ini_get")) : ?>
123
- <div class="widget-layout-body">
124
- <div class="layout-control-group">
125
- <label class="layout-label-control-group">PHP Max Script Execute Time :</label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
 
127
- <div class="layout-controls">
128
- <span><?php echo ini_get("max_execution_time"); ?>s</span>
 
 
129
  </div>
130
- </div>
131
- </div>
132
- <div class="widget-layout-body">
133
- <div class="layout-control-group">
134
- <label class="layout-label-control-group">PHP Max Input Vars :</label>
135
-
136
- <div class="layout-controls">
137
- <span><?php echo ini_get("max_input_vars"); ?></span>
 
 
 
138
  </div>
139
- </div>
140
- </div>
141
- <div class="widget-layout-body">
142
- <div class="layout-control-group">
143
- <label class="layout-label-control-group">SUHOSIN Installed" :</label>
144
 
145
- <div class="layout-controls">
146
- <span><?php echo extension_loaded("suhosin") ? "Yes" : "No" ?></span>
 
 
147
  </div>
148
- </div>
149
- </div>
150
- <?php endif; ?>
151
- <div class="widget-layout-body">
152
- <div class="layout-control-group">
153
- <label class="layout-label-control-group">Default Timezone :</label>
154
- <div class="layout-controls">
155
- <span>
156
- <?php
157
- $timezone = date_default_timezone_get();
158
- if ("UTC" !== $timezone) {
159
- echo sprintf("Default timezone is %s - it should be UTC", $timezone);
160
- } else {
161
- echo sprintf("Default timezone is %s", $timezone);
162
- }
163
- ?>
164
- </span>
165
- </div>
166
  </div>
167
- </div>
168
- <?php
169
- global $wpdb, $gb;
170
- // Get MYSQL Version
171
- $sql_version = $wpdb->get_var("SELECT VERSION() AS version");
172
- // GET SQL Mode
173
- $my_sql_info = $wpdb->get_results("SHOW VARIABLES LIKE \"sql_mode\"");
174
- if (is_array($my_sql_info)) $sqlmode = $my_sql_info[0]->Value;
175
- if (empty($sqlmode)) $sqlmode = "Not set";
176
- // Get PHP Safe Mode
177
- if (ini_get("safemode")) $safemode = "On";
178
- else $safemode = "Off";
179
- // Get PHP allow_url_fopen
180
- if (ini_get("allow-url-fopen")) $allowurlfopen = "On";
181
- else $allowurlfopen = "Off";
182
- // Get PHP Max Upload Size
183
- if (ini_get("upload_max_filesize")) $upload_maximum = ini_get("upload_max_filesize");
184
- else $upload_maximum = "N/A";
185
- // Get PHP Output buffer Size
186
- if (ini_get("pcre.backtrack_limit")) $backtrack_lmt = ini_get("pcre.backtrack_limit");
187
- else $backtrack_lmt = "N/A";
188
- // Get PHP Max Post Size
189
- if (ini_get("post_max_size")) $post_maximum = ini_get("post_max_size");
190
- else $post_maximum = "N/A";
191
- // Get PHP Memory Limit
192
- if (ini_get("memory_limit")) $memory_limit = ini_get("memory_limit");
193
- else $memory_limit = "N/A";
194
- // Get actual memory_get_usage
195
- if (function_exists("memory_get_usage")) $memory_usage = round(memory_get_usage() / 1024 / 1024, 2) . " MByte";
196
- else $memory_usage = "N/A";
197
- // required for EXIF read
198
- if (is_callable("exif_read_data")) $exif = "Yes" . " ( V" . substr(phpversion("exif"), 0, 4) . ")";
199
- else $exif = "No";
200
- // required for meta data
201
- if (is_callable("iptcparse")) $iptc = "Yes";
202
- else $iptc = "No";
203
- // required for meta data
204
- if (is_callable("xml_parser_create")) $xml = "Yes";
205
- else $xml = "No";
206
- ?>
207
- <div class="widget-layout-body">
208
- <div class="layout-control-group">
209
- <label class="layout-label-control-group">Operating System :</label>
210
- <div class="layout-controls">
211
- <span>
212
- <?php echo PHP_OS; ?>&nbsp;(<?php echo(PHP_INT_SIZE * 8) ?>&nbsp;Bit)
213
- </span>
214
- </div>
215
- </div>
216
- </div>
217
- <div class="widget-layout-body">
218
- <div class="layout-control-group">
219
- <label class="layout-label-control-group">Memory usage :</label>
220
- <div class="layout-controls">
221
- <span>
222
- <?php echo $memory_usage; ?>
223
- </span>
224
- </div>
225
- </div>
226
- </div>
227
- <div class="widget-layout-body">
228
- <div class="layout-control-group">
229
- <label class="layout-label-control-group">SQL Mode :</label>
230
- <div class="layout-controls">
231
- <span>
232
- <?php echo $sqlmode; ?>
233
- </span>
234
- </div>
235
- </div>
236
- </div>
237
- <div class="widget-layout-body">
238
- <div class="layout-control-group">
239
- <label class="layout-label-control-group">PHP Safe Mode :</label>
240
- <div class="layout-controls">
241
- <span>
242
- <?php echo PHP_VERSION; ?>
243
- </span>
244
- </div>
245
- </div>
246
- </div>
247
- <div class="widget-layout-body">
248
- <div class="layout-control-group">
249
- <label class="layout-label-control-group">PHP Allow URL fopen :</label>
250
- <div class="layout-controls">
251
- <span>
252
- <?php echo $allowurlfopen; ?>
253
- </span>
254
- </div>
255
- </div>
256
- </div>
257
- <div class="widget-layout-body">
258
- <div class="layout-control-group">
259
- <label class="layout-label-control-group">PHP Memory Limit :</label>
260
- <div class="layout-controls">
261
- <span>
262
- <?php echo $memory_limit; ?>
263
- </span>
264
- </div>
265
- </div>
266
- </div>
267
- <div class="widget-layout-body">
268
- <div class="layout-control-group">
269
- <label class="layout-label-control-group">PHP Max Post Size :</label>
270
- <div class="layout-controls">
271
- <span>
272
- <?php echo $post_maximum; ?>
273
- </span>
274
- </div>
275
- </div>
276
- </div>
277
- <div class="widget-layout-body">
278
- <div class="layout-control-group">
279
- <label class="layout-label-control-group">PCRE Backtracking Limit :</label>
280
- <div class="layout-controls">
281
- <span>
282
- <?php echo $backtrack_lmt; ?>
283
- </span>
284
- </div>
285
- </div>
286
- </div>
287
- <div class="widget-layout-body">
288
- <div class="layout-control-group">
289
- <label class="layout-label-control-group">PHP Exif support :</label>
290
- <div class="layout-controls">
291
- <span>
292
- <?php echo $exif; ?>
293
- </span>
294
- </div>
295
- </div>
296
- </div>
297
- <div class="widget-layout-body">
298
- <div class="layout-control-group">
299
- <label class="layout-label-control-group">PHP IPTC support :</label>
300
- <div class="layout-controls">
301
- <span>
302
- <?php echo $iptc; ?>
303
- </span>
304
- </div>
305
- </div>
306
- </div>
307
- <div class="widget-layout-body">
308
- <div class="layout-control-group">
309
- <label class="layout-label-control-group">PHP XML support :</label>
310
- <div class="layout-controls">
311
- <span>
312
- <?php echo $xml; ?>
313
- </span>
314
- </div>
315
- </div>
316
- </div>
317
- </div>
318
- </div>
319
- </div>
320
- <div class="layout-span6">
321
- <div class="widget-layout">
322
- <div class="widget-layout-title">
323
- <h4>Plugins</h4>
324
- <span class="tools">
325
- <a data-target="#plugin_settings" data-toggle="collapse">
326
- <i class="icon-chevron-down"></i>
327
- </a>
328
- </span>
329
- </div>
330
- <div id="plugin_settings" class="collapse in">
331
- <div class="widget-layout-body">
332
- <div class="layout-control-group">
333
- <label class="layout-label-control-group">Installed Plugins :</label>
334
- <div class="layout-controls">
335
- <span>
336
- <?php
337
- $active_plugins = (array)get_option("active_plugins", array());
338
-
339
- if (is_multisite())
340
- $active_plugins = array_merge($active_plugins, get_site_option("active_sitewide_plugins", array()));
341
- $get_plugins = array();
342
-
343
- foreach ($active_plugins as $plugin) {
344
- $plugin_data = @get_plugin_data(WP_PLUGIN_DIR . "/" . $plugin);
345
- $dirname = dirname($plugin);
346
- $version_string = "";
347
- if (!empty($plugin_data["Name"])) {
348
- $plugin_name = $plugin_data["Name"];
349
-
350
- if (!empty($plugin_data["PluginURI"])) {
351
- $plugin_name = "<a href=\"" . esc_url($plugin_data["PluginURI"]) . "\" title=\"" . "Visit plugin homepage" . "\">" . $plugin_name . "</a>";
352
- }
353
-
354
- if (strstr($dirname, gallery_bank)) {
355
- if (false === ($version_data = get_transient($plugin . "_version_data"))) {
356
- $changelog = wp_remote_get("http://dzv365zjfbd8v.cloudfront.net/changelogs/" . $dirname . "/changelog.txt");
357
- $change_log = explode("\n", wp_remote_retrieve_body($changelog));
358
- if (!empty($change_log)) {
359
- foreach ($change_log as $line_num => $change_log_line) {
360
- if (preg_match("/^[0-9]/", $change_log_line)) {
361
- $date = str_replace(".", "-", trim(substr($change_log_line, 0, strpos($change_log_line, "-"))));
362
- $version = preg_replace("~[^0-9,.]~", "", stristr($change_log_line, "version"));
363
- $update = trim(str_replace("*", "", $change_log[$line_num + 1]));
364
- $version_data = array("date" => $date, "version" => $version, "update" => $update, "changelog" => $changelog);
365
- set_transient($plugin . "_version_data", $version_data, 60 * 60 * 12);
366
- break;
367
- }
368
- }
369
- }
370
- }
371
- if (!empty($version_data["version"]) && version_compare($version_data["version"], $plugin_data["Version"], "!="))
372
- $version_string = " &ndash; <strong style=\"color:red;\">" . $version_data["version"] . " " . "is available" . "</strong>";
373
- }
374
- $get_plugins[] = $plugin_name . " " . "by" . " " . $plugin_data["Author"] . " " . "version" . " " . $plugin_data["Version"] . $version_string;
375
- }
376
- }
377
- if (sizeof($get_plugins) == 0)
378
- echo "-";
379
- else
380
- echo implode("<div class=\"separator-single\"></div>", $get_plugins);
381
- ?>
382
- </span>
383
- </div>
384
  </div>
385
  </div>
386
  </div>
387
  </div>
388
- <?php
389
- if($wp_version >= 3.4)
390
- {
391
- $active_theme = wp_get_theme();
392
- ?>
393
- <div class="widget-layout">
394
- <div class="widget-layout-title">
395
- <h4>Themes</h4>
396
- <span class="tools">
397
- <a data-target="#themes_settings" data-toggle="collapse">
398
- <i class="icon-chevron-down"></i>
399
- </a>
400
- </span>
401
- </div>
402
-
403
- <div id="themes_settings" class="collapse in">
404
- <div class="widget-layout-body">
405
- <div class="layout-control-group">
406
- <label class="layout-label-control-group">Theme Name :</label>
407
-
408
- <div class="layout-controls">
409
- <span><?php echo $active_theme->Name; ?></span>
410
- </div>
411
- </div>
412
- </div>
413
- <div class="widget-layout-body">
414
- <div class="layout-control-group">
415
- <label class="layout-label-control-group">Theme Version :</label>
416
- <div class="layout-controls">
417
- <span><?php
418
- echo $active_theme->Version;
419
- if (!empty($theme_version_data["version"]) && version_compare($theme_version_data["version"], $active_theme->Version, "!="))
420
- echo " &ndash; <strong style=\"color:red;\">" . $theme_version_data["version"] . " " . "is available" . "</strong>";?>
421
- </span>
422
- </div>
423
- </div>
424
- </div>
425
- <div class="widget-layout-body">
426
- <div class="layout-control-group">
427
- <label class="layout-label-control-group">Author URL :</label>
428
-
429
- <div class="layout-controls">
430
- <span><?php echo $active_theme->{"Author URI"}; ?></span>
431
- </div>
432
- </div>
433
- </div>
434
- </div>
435
- </div>
436
- <?php
437
- }
438
- ?>
439
-
440
- <div class="widget-layout">
441
- <div class="widget-layout-title">
442
- <h4>Graphic Library Settings</h4>
443
- <span class="tools">
444
- <a data-target="#library_settings" data-toggle="collapse">
445
- <i class="icon-chevron-down"></i>
446
- </a>
447
- </span>
448
- </div>
449
- <div id="library_settings" class="collapse in">
450
- <?php
451
- if (function_exists("gd_info")) {
452
- $information = gd_info();
453
- $key = array_keys($information);
454
- for ($i = 0; $i < count($key); $i++) {
455
- if (is_bool($information[$key[$i]]))
456
- echo "<div class=\"widget-layout-body\"><div class=\"layout-control-group\"><label class=\"layout-label-control-group\">" . $key[$i] . " : </label><div class=\"layout-controls\"> <span>" . ngg_gd_yesNo($information[$key[$i]]) . " </span></div></div></div>";
457
- else
458
- echo "<div class=\"widget-layout-body\"><div class=\"layout-control-group\"><label class=\"layout-label-control-group\">" . $key[$i] . " : </label><div class=\"layout-controls\"> <span>" . $information[$key[$i]] . "</span></div></div></div>";
459
- }
460
- } else {
461
- echo "<h4>" . "No GD support" . "!</h4>";
462
- }
463
- function ngg_gd_yesNo($bool)
464
- {
465
- if ($bool)
466
- return "Yes";
467
- else
468
- return "No";
469
- }
470
- ?>
471
- </div>
472
- </div>
473
  </div>
474
  </div>
475
  </div>
@@ -477,63 +506,63 @@ global $wp_version;
477
  </div>
478
  </div>
479
  </div>
480
- </div>
481
- </div>
482
- </form>
483
- <script type="text/javascript">
484
- jQuery.getSystemReport = function (strDefault, stringCount, string, location) {
485
- var o = strDefault.toString();
486
- if (!string) {
487
- string = "0";
488
- }
489
- while (o.length < stringCount) {
490
- // empty
491
- if (location == "undefined") {
492
- o = string + o;
493
- } else {
494
- o = o + string;
495
- }
496
- }
497
- return o;
498
- };
499
-
500
-
501
- jQuery("a.system-report").click(function () {
502
- var report = "";
503
- jQuery(".layout-span6 .widget-layout").each(function () {
504
- jQuery(".widget-layout-title h4", jQuery(this)).each(function () {
505
- report = report + "\n### " + jQuery.trim(jQuery(this).text()) + " ###\n\n";
506
- });
507
- jQuery(".layout-control-group", jQuery(this)).each(function () {
508
- var the_name = jQuery.getSystemReport(jQuery.trim(jQuery(this).find("label").text()), 25, " ");
509
- var the_value = jQuery.trim(jQuery(this).find("span").text());
510
- var value_array = the_value.split(", ");
511
- if (value_array.length > 1) {
512
- var temp_line = "";
513
- jQuery.each(value_array, function (key, line) {
514
- var tab = ( key == 0 ) ? 0 : 25;
515
- temp_line = temp_line + jQuery.getSystemReport("", tab, " ", "f") + line + "\n";
516
- });
517
- the_value = temp_line;
518
- }
519
- report = report + "" + the_name + the_value + "\n";
520
- });
521
- });
522
- try {
523
- jQuery("#system-report").slideDown();
524
- jQuery("#system-report textarea").val(report).focus().select();
525
- jQuery(this).fadeOut();
526
- jQuery("a.close-report").fadeIn();
527
- return false;
528
- } catch (e) {
529
- console.log(e);
530
- }
531
- return false;
532
- });
533
- jQuery("a.close-report").click(function () {
534
- jQuery("#system-report").slideUp();
535
- jQuery(this).fadeOut();
536
- jQuery("a.system-report").fadeIn();
537
- })
538
- </script>
539
-
1
  <?php
2
+ global $wp_version,$current_user,$user_role_permission;
3
+ $role = $wpdb->prefix . "capabilities";
4
+ $current_user->role = array_keys($current_user->$role);
5
+ $role = $current_user->role[0];
6
+ switch($role)
7
+ {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
23
+ }
24
+ if (!current_user_can($user_role_permission))
25
+ {
26
+ return;
27
+ }
28
+ else
29
+ {
30
  ?>
31
+ <form id="system_settings" class="layout-form">
32
+ <div id="poststuff" style="width: 99% !important;">
33
+ <div id="post-body" class="metabox-holder">
34
+ <div id="postbox-container-2" class="postbox-container">
35
+ <div id="advanced" class="meta-box-sortables">
36
+ <div id="gallery_bank_get_started" class="postbox" >
37
+ <div class="handlediv" data-target="#ux_system_settings" title="Click to toggle" data-toggle="collapse"><br></div>
38
+ <h3 class="hndle"><span><?php _e("System Status", gallery_bank); ?></span></h3>
39
+ <div class="inside">
40
+ <div id="ux_system_settings" class="gallery_bank_layout">
41
+ <a class="btn btn-info system-report" href="#"><?php _e("Get System Report", gallery_bank); ?></a>
42
+ <div id="system-report" class="layout-system-report">
43
+ <textarea readonly="readonly"></textarea>
44
+ </div>
45
+ <a class="btn btn-info close-report" href="#"><?php _e("Close System Report", gallery_bank); ?></a>
46
+ <div class="separator-doubled"></div>
47
+ <div class="fluid-layout">
48
+ <div class="layout-span6">
49
+ <div class="widget-layout">
50
+ <div class="widget-layout-title">
51
+ <h4>Environment</h4>
52
+ <span class="tools">
53
+ <a data-target="#server_settings" data-toggle="collapse">
54
+ <i class="icon-chevron-down"></i>
55
+ </a>
56
+ </span>
57
+ </div>
58
+ <div id="server_settings" class="collapse in">
59
+ <div class="widget-layout-body">
60
+ <div class="layout-control-group">
61
+ <label class="layout-label-control-group">Home URL :</label>
62
+
63
+ <div class="layout-controls">
64
+ <span><?php echo home_url(); ?></span>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ <div class="widget-layout-body">
69
+ <div class="layout-control-group">
70
+ <label class="layout-label-control-group">Site URL :</label>
71
+
72
+ <div class="layout-controls">
73
+ <span><?php echo site_url(); ?></span>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ <div class="widget-layout-body">
78
+ <div class="layout-control-group">
79
+ <label class="layout-label-control-group">WP Version :</label>
80
+
81
+ <div class="layout-controls">
82
+ <span><?php bloginfo("version"); ?></span>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ <div class="widget-layout-body">
87
+ <div class="layout-control-group">
88
+ <label class="layout-label-control-group">WP Multisite Enabled :</label>
89
+
90
+ <div class="layout-controls">
91
+ <span><?php if (is_multisite()) echo "Yes"; else echo "No"; ?></span>
92
+ </div>
93
+ </div>
94
+ </div>
95
+ <div class="widget-layout-body">
96
+ <div class="layout-control-group">
97
+ <label class="layout-label-control-group">Web Server Info :</label>
98
+
99
+ <div class="layout-controls">
100
+ <span><?php echo esc_html($_SERVER["SERVER_SOFTWARE"]); ?></span>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ <div class="widget-layout-body">
105
+ <div class="layout-control-group">
106
+ <label class="layout-label-control-group">PHP Version :</label>
107
+
108
+ <div class="layout-controls">
109
+ <span><?php if (function_exists("phpversion")) echo esc_html(phpversion()); ?></span>
110
+ </div>
111
+ </div>
112
+ </div>
113
+ <div class="widget-layout-body">
114
+ <div class="layout-control-group">
115
+ <label class="layout-label-control-group">MySQL Version :</label>
116
+
117
+ <div class="layout-controls">
118
+ <span><?php if (function_exists("mysql_get_server_info")) echo esc_html(mysql_get_server_info()); ?></span>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ <div class="widget-layout-body">
123
+ <div class="layout-control-group">
124
+ <label class="layout-label-control-group">WP Debug Mode :</label>
125
+
126
+ <div class="layout-controls">
127
+ <span><?php if (defined("WP_DEBUG") && WP_DEBUG) echo "Yes"; else echo "No"; ?></span>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ <div class="widget-layout-body">
132
+ <div class="layout-control-group">
133
+ <label class="layout-label-control-group">WP Language :</label>
134
+
135
+ <div class="layout-controls">
136
+ <span><?php if (defined("WPLANG") && WPLANG) echo WPLANG; else _e("Default"); ?></span>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ <div class="widget-layout-body">
141
+ <div class="layout-control-group">
142
+ <label class="layout-label-control-group">WP Max Upload Size :</label>
143
+
144
+ <div class="layout-controls">
145
+ <span><?php echo size_format(wp_max_upload_size()); ?></span>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ <?php if (function_exists("ini_get")) : ?>
150
+ <div class="widget-layout-body">
151
+ <div class="layout-control-group">
152
+ <label class="layout-label-control-group">PHP Max Script Execute Time :</label>
153
+
154
+ <div class="layout-controls">
155
+ <span><?php echo ini_get("max_execution_time"); ?>s</span>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ <div class="widget-layout-body">
160
+ <div class="layout-control-group">
161
+ <label class="layout-label-control-group">PHP Max Input Vars :</label>
162
+
163
+ <div class="layout-controls">
164
+ <span><?php echo ini_get("max_input_vars"); ?></span>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ <div class="widget-layout-body">
169
+ <div class="layout-control-group">
170
+ <label class="layout-label-control-group">SUHOSIN Installed" :</label>
171
+
172
+ <div class="layout-controls">
173
+ <span><?php echo extension_loaded("suhosin") ? "Yes" : "No" ?></span>
174
+ </div>
175
+ </div>
176
+ </div>
177
+ <?php endif; ?>
178
+ <div class="widget-layout-body">
179
+ <div class="layout-control-group">
180
+ <label class="layout-label-control-group">Default Timezone :</label>
181
+ <div class="layout-controls">
182
+ <span>
183
+ <?php
184
+ $timezone = date_default_timezone_get();
185
+ if ("UTC" !== $timezone) {
186
+ echo sprintf("Default timezone is %s - it should be UTC", $timezone);
187
+ } else {
188
+ echo sprintf("Default timezone is %s", $timezone);
189
+ }
190
+ ?>
191
+ </span>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ <?php
196
+ global $wpdb, $gb;
197
+ // Get MYSQL Version
198
+ $sql_version = $wpdb->get_var("SELECT VERSION() AS version");
199
+ // GET SQL Mode
200
+ $my_sql_info = $wpdb->get_results("SHOW VARIABLES LIKE \"sql_mode\"");
201
+ if (is_array($my_sql_info)) $sqlmode = $my_sql_info[0]->Value;
202
+ if (empty($sqlmode)) $sqlmode = "Not set";
203
+ // Get PHP Safe Mode
204
+ if (ini_get("safemode")) $safemode = "On";
205
+ else $safemode = "Off";
206
+ // Get PHP allow_url_fopen
207
+ if (ini_get("allow-url-fopen")) $allowurlfopen = "On";
208
+ else $allowurlfopen = "Off";
209
+ // Get PHP Max Upload Size
210
+ if (ini_get("upload_max_filesize")) $upload_maximum = ini_get("upload_max_filesize");
211
+ else $upload_maximum = "N/A";
212
+ // Get PHP Output buffer Size
213
+ if (ini_get("pcre.backtrack_limit")) $backtrack_lmt = ini_get("pcre.backtrack_limit");
214
+ else $backtrack_lmt = "N/A";
215
+ // Get PHP Max Post Size
216
+ if (ini_get("post_max_size")) $post_maximum = ini_get("post_max_size");
217
+ else $post_maximum = "N/A";
218
+ // Get PHP Memory Limit
219
+ if (ini_get("memory_limit")) $memory_limit = ini_get("memory_limit");
220
+ else $memory_limit = "N/A";
221
+ // Get actual memory_get_usage
222
+ if (function_exists("memory_get_usage")) $memory_usage = round(memory_get_usage() / 1024 / 1024, 2) . " MByte";
223
+ else $memory_usage = "N/A";
224
+ // required for EXIF read
225
+ if (is_callable("exif_read_data")) $exif = "Yes" . " ( V" . substr(phpversion("exif"), 0, 4) . ")";
226
+ else $exif = "No";
227
+ // required for meta data
228
+ if (is_callable("iptcparse")) $iptc = "Yes";
229
+ else $iptc = "No";
230
+ // required for meta data
231
+ if (is_callable("xml_parser_create")) $xml = "Yes";
232
+ else $xml = "No";
233
+ ?>
234
+ <div class="widget-layout-body">
235
+ <div class="layout-control-group">
236
+ <label class="layout-label-control-group">Operating System :</label>
237
+ <div class="layout-controls">
238
+ <span>
239
+ <?php echo PHP_OS; ?>&nbsp;(<?php echo(PHP_INT_SIZE * 8) ?>&nbsp;Bit)
240
+ </span>
241
+ </div>
242
+ </div>
243
+ </div>
244
+ <div class="widget-layout-body">
245
+ <div class="layout-control-group">
246
+ <label class="layout-label-control-group">Memory usage :</label>
247
+ <div class="layout-controls">
248
+ <span>
249
+ <?php echo $memory_usage; ?>
250
+ </span>
251
+ </div>
252
+ </div>
253
+ </div>
254
+ <div class="widget-layout-body">
255
+ <div class="layout-control-group">
256
+ <label class="layout-label-control-group">SQL Mode :</label>
257
+ <div class="layout-controls">
258
+ <span>
259
+ <?php echo $sqlmode; ?>
260
+ </span>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ <div class="widget-layout-body">
265
+ <div class="layout-control-group">
266
+ <label class="layout-label-control-group">PHP Safe Mode :</label>
267
+ <div class="layout-controls">
268
+ <span>
269
+ <?php echo PHP_VERSION; ?>
270
+ </span>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ <div class="widget-layout-body">
275
+ <div class="layout-control-group">
276
+ <label class="layout-label-control-group">PHP Allow URL fopen :</label>
277
+ <div class="layout-controls">
278
+ <span>
279
+ <?php echo $allowurlfopen; ?>
280
+ </span>
281
+ </div>
282
+ </div>
283
+ </div>
284
+ <div class="widget-layout-body">
285
+ <div class="layout-control-group">
286
+ <label class="layout-label-control-group">PHP Memory Limit :</label>
287
+ <div class="layout-controls">
288
+ <span>
289
+ <?php echo $memory_limit; ?>
290
+ </span>
291
+ </div>
292
+ </div>
293
+ </div>
294
+ <div class="widget-layout-body">
295
+ <div class="layout-control-group">
296
+ <label class="layout-label-control-group">PHP Max Post Size :</label>
297
+ <div class="layout-controls">
298
+ <span>
299
+ <?php echo $post_maximum; ?>
300
+ </span>
301
+ </div>
302
+ </div>
303
+ </div>
304
+ <div class="widget-layout-body">
305
+ <div class="layout-control-group">
306
+ <label class="layout-label-control-group">PCRE Backtracking Limit :</label>
307
+ <div class="layout-controls">
308
+ <span>
309
+ <?php echo $backtrack_lmt; ?>
310
+ </span>
311
+ </div>
312
+ </div>
313
+ </div>
314
+ <div class="widget-layout-body">
315
+ <div class="layout-control-group">
316
+ <label class="layout-label-control-group">PHP Exif support :</label>
317
+ <div class="layout-controls">
318
+ <span>
319
+ <?php echo $exif; ?>
320
+ </span>
321
+ </div>
322
+ </div>
323
+ </div>
324
+ <div class="widget-layout-body">
325
+ <div class="layout-control-group">
326
+ <label class="layout-label-control-group">PHP IPTC support :</label>
327
+ <div class="layout-controls">
328
+ <span>
329
+ <?php echo $iptc; ?>
330
+ </span>
331
+ </div>
332
+ </div>
333
+ </div>
334
+ <div class="widget-layout-body">
335
+ <div class="layout-control-group">
336
+ <label class="layout-label-control-group">PHP XML support :</label>
337
+ <div class="layout-controls">
338
+ <span>
339
+ <?php echo $xml; ?>
340
+ </span>
341
+ </div>
342
+ </div>
343
+ </div>
344
+ </div>
345
  </div>
346
+ </div>
347
+ <div class="layout-span6">
348
+ <div class="widget-layout">
349
+ <div class="widget-layout-title">
350
+ <h4>Plugins</h4>
351
+ <span class="tools">
352
+ <a data-target="#plugin_settings" data-toggle="collapse">
353
+ <i class="icon-chevron-down"></i>
354
+ </a>
355
+ </span>
356
+ </div>
357
+ <div id="plugin_settings" class="collapse in">
358
+ <div class="widget-layout-body">
359
+ <div class="layout-control-group">
360
+ <label class="layout-label-control-group">Installed Plugins :</label>
361
+ <div class="layout-controls">
362
+ <span>
363
+ <?php
364
+ $active_plugins = (array)get_option("active_plugins", array());
365
+
366
+ if (is_multisite())
367
+ $active_plugins = array_merge($active_plugins, get_site_option("active_sitewide_plugins", array()));
368
+ $get_plugins = array();
369
+
370
+ foreach ($active_plugins as $plugin) {
371
+ $plugin_data = @get_plugin_data(WP_PLUGIN_DIR . "/" . $plugin);
372
+ $dirname = dirname($plugin);
373
+ $version_string = "";
374
+ if (!empty($plugin_data["Name"])) {
375
+ $plugin_name = $plugin_data["Name"];
376
+
377
+ if (!empty($plugin_data["PluginURI"])) {
378
+ $plugin_name = "<a href=\"" . esc_url($plugin_data["PluginURI"]) . "\" title=\"" . "Visit plugin homepage" . "\">" . $plugin_name . "</a>";
379
+ }
380
+
381
+ if (strstr($dirname, gallery_bank)) {
382
+ if (false === ($version_data = get_transient($plugin . "_version_data"))) {
383
+ $changelog = wp_remote_get("http://dzv365zjfbd8v.cloudfront.net/changelogs/" . $dirname . "/changelog.txt");
384
+ $change_log = explode("\n", wp_remote_retrieve_body($changelog));
385
+ if (!empty($change_log)) {
386
+ foreach ($change_log as $line_num => $change_log_line) {
387
+ if (preg_match("/^[0-9]/", $change_log_line)) {
388
+ $date = str_replace(".", "-", trim(substr($change_log_line, 0, strpos($change_log_line, "-"))));
389
+ $version = preg_replace("~[^0-9,.]~", "", stristr($change_log_line, "version"));
390
+ $update = trim(str_replace("*", "", $change_log[$line_num + 1]));
391
+ $version_data = array("date" => $date, "version" => $version, "update" => $update, "changelog" => $changelog);
392
+ set_transient($plugin . "_version_data", $version_data, 60 * 60 * 12);
393
+ break;
394
+ }
395
+ }
396
+ }
397
+ }
398
+ if (!empty($version_data["version"]) && version_compare($version_data["version"], $plugin_data["Version"], "!="))
399
+ $version_string = " &ndash; <strong style=\"color:red;\">" . $version_data["version"] . " " . "is available" . "</strong>";
400
+ }
401
+ $get_plugins[] = $plugin_name . " " . "by" . " " . $plugin_data["Author"] . " " . "version" . " " . $plugin_data["Version"] . $version_string;
402
+ }
403
+ }
404
+ if (sizeof($get_plugins) == 0)
405
+ echo "-";
406
+ else
407
+ echo implode("<div class=\"separator-single\"></div>", $get_plugins);
408
+ ?>
409
+ </span>
410
+ </div>
411
+ </div>
412
+ </div>
413
+ </div>
414
  </div>
415
+ <?php
416
+ if($wp_version >= 3.4)
417
+ {
418
+ $active_theme = wp_get_theme();
419
+ ?>
420
+ <div class="widget-layout">
421
+ <div class="widget-layout-title">
422
+ <h4>Themes</h4>
423
+ <span class="tools">
424
+ <a data-target="#themes_settings" data-toggle="collapse">
425
+ <i class="icon-chevron-down"></i>
426
+ </a>
427
+ </span>
428
+ </div>
429
+
430
+ <div id="themes_settings" class="collapse in">
431
+ <div class="widget-layout-body">
432
+ <div class="layout-control-group">
433
+ <label class="layout-label-control-group">Theme Name :</label>
434
 
435
+ <div class="layout-controls">
436
+ <span><?php echo $active_theme->Name; ?></span>
437
+ </div>
438
+ </div>
439
  </div>
440
+ <div class="widget-layout-body">
441
+ <div class="layout-control-group">
442
+ <label class="layout-label-control-group">Theme Version :</label>
443
+ <div class="layout-controls">
444
+ <span><?php
445
+ echo $active_theme->Version;
446
+ if (!empty($theme_version_data["version"]) && version_compare($theme_version_data["version"], $active_theme->Version, "!="))
447
+ echo " &ndash; <strong style=\"color:red;\">" . $theme_version_data["version"] . " " . "is available" . "</strong>";?>
448
+ </span>
449
+ </div>
450
+ </div>
451
  </div>
452
+ <div class="widget-layout-body">
453
+ <div class="layout-control-group">
454
+ <label class="layout-label-control-group">Author URL :</label>
 
 
455
 
456
+ <div class="layout-controls">
457
+ <span><?php echo $active_theme->{"Author URI"}; ?></span>
458
+ </div>
459
+ </div>
460
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
461
  </div>
462
+ </div>
463
+ <?php
464
+ }
465
+ ?>
466
+
467
+ <div class="widget-layout">
468
+ <div class="widget-layout-title">
469
+ <h4>Graphic Library Settings</h4>
470
+ <span class="tools">
471
+ <a data-target="#library_settings" data-toggle="collapse">
472
+ <i class="icon-chevron-down"></i>
473
+ </a>
474
+ </span>
475
+ </div>
476
+ <div id="library_settings" class="collapse in">
477
+ <?php
478
+ if (function_exists("gd_info")) {
479
+ $information = gd_info();
480
+ $key = array_keys($information);
481
+ for ($i = 0; $i < count($key); $i++) {
482
+ if (is_bool($information[$key[$i]]))
483
+ echo "<div class=\"widget-layout-body\"><div class=\"layout-control-group\"><label class=\"layout-label-control-group\">" . $key[$i] . " : </label><div class=\"layout-controls\"> <span>" . ngg_gd_yesNo($information[$key[$i]]) . " </span></div></div></div>";
484
+ else
485
+ echo "<div class=\"widget-layout-body\"><div class=\"layout-control-group\"><label class=\"layout-label-control-group\">" . $key[$i] . " : </label><div class=\"layout-controls\"> <span>" . $information[$key[$i]] . "</span></div></div></div>";
486
+ }
487
+ } else {
488
+ echo "<h4>" . "No GD support" . "!</h4>";
489
+ }
490
+ function ngg_gd_yesNo($bool)
491
+ {
492
+ if ($bool)
493
+ return "Yes";
494
+ else
495
+ return "No";
496
+ }
497
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
498
  </div>
499
  </div>
500
  </div>
501
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  </div>
503
  </div>
504
  </div>
506
  </div>
507
  </div>
508
  </div>
509
+ </form>
510
+ <script type="text/javascript">
511
+ jQuery.getSystemReport = function (strDefault, stringCount, string, location) {
512
+ var o = strDefault.toString();
513
+ if (!string) {
514
+ string = "0";
515
+ }
516
+ while (o.length < stringCount) {
517
+ // empty
518
+ if (location == "undefined") {
519
+ o = string + o;
520
+ } else {
521
+ o = o + string;
522
+ }
523
+ }
524
+ return o;
525
+ };
526
+
527
+
528
+ jQuery("a.system-report").click(function () {
529
+ var report = "";
530
+ jQuery(".layout-span6 .widget-layout").each(function () {
531
+ jQuery(".widget-layout-title h4", jQuery(this)).each(function () {
532
+ report = report + "\n### " + jQuery.trim(jQuery(this).text()) + " ###\n\n";
533
+ });
534
+ jQuery(".layout-control-group", jQuery(this)).each(function () {
535
+ var the_name = jQuery.getSystemReport(jQuery.trim(jQuery(this).find("label").text()), 25, " ");
536
+ var the_value = jQuery.trim(jQuery(this).find("span").text());
537
+ var value_array = the_value.split(", ");
538
+ if (value_array.length > 1) {
539
+ var temp_line = "";
540
+ jQuery.each(value_array, function (key, line) {
541
+ var tab = ( key == 0 ) ? 0 : 25;
542
+ temp_line = temp_line + jQuery.getSystemReport("", tab, " ", "f") + line + "\n";
543
+ });
544
+ the_value = temp_line;
545
+ }
546
+ report = report + "" + the_name + the_value + "\n";
547
+ });
548
+ });
549
+ try {
550
+ jQuery("#system-report").slideDown();
551
+ jQuery("#system-report textarea").val(report).focus().select();
552
+ jQuery(this).fadeOut();
553
+ jQuery("a.close-report").fadeIn();
554
+ return false;
555
+ } catch (e) {
556
+ console.log(e);
557
+ }
558
+ return false;
559
+ });
560
+ jQuery("a.close-report").click(function () {
561
+ jQuery("#system-report").slideUp();
562
+ jQuery(this).fadeOut();
563
+ jQuery("a.system-report").fadeIn();
564
+ })
565
+ </script>
566
+ <?php
567
+ }
568
+ ?>
views/images-sorting.php CHANGED
@@ -1,291 +1,321 @@
1
  <?php
2
- global $wpdb;
3
- $unique_id = rand(100, 10000);
4
- $album_id = intval($_REQUEST["album_id"]);
5
- $img_in_row = intval($_REQUEST["row"]);
6
- if (isset($_REQUEST["order_id"])) {
7
- switch ($_REQUEST["order_id"]) {
8
- case "unsort":
9
- $pics_order = $wpdb->get_results
10
- (
11
- $wpdb->prepare
12
- (
13
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d",
14
- $album_id
15
- )
16
- );
17
- break;
18
- case "picId":
19
- $pics_order = $wpdb->get_results
20
- (
21
- $wpdb->prepare
22
- (
23
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by pic_id",
24
- $album_id
25
- )
26
- );
27
- break;
28
- case "name":
29
- $pics_order = $wpdb->get_results
30
- (
31
- $wpdb->prepare
32
- (
33
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by pic_name asc",
34
- $album_id
35
- )
36
- );
37
- break;
38
- case "title":
39
- $pics_order = $wpdb->get_results
40
- (
41
- $wpdb->prepare
42
- (
43
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by title asc",
44
- $album_id
45
- )
46
- );
47
- break;
48
- case "date":
49
- $pics_order = $wpdb->get_results
50
- (
51
- $wpdb->prepare
52
- (
53
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by date asc",
54
- $album_id
55
- )
56
- );
57
- break;
58
- case "asc":
59
- $pics_order = $wpdb->get_results
60
- (
61
- $wpdb->prepare
62
- (
63
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by pic_id asc",
64
- $album_id
65
- )
66
- );
67
- break;
68
- case "desc":
69
- $pics_order = $wpdb->get_results
70
- (
71
- $wpdb->prepare
72
- (
73
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by pic_id desc",
74
- $album_id
75
- )
76
- );
77
- break;
78
- }
79
- } else {
80
- $pics_order = $wpdb->get_results
81
- (
82
- $wpdb->prepare
83
- (
84
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by sorting_order asc",
85
- $album_id
86
- )
87
- );
88
- }
89
-
90
- $album = $wpdb->get_row
91
- (
92
- $wpdb->prepare
93
- (
94
- "SELECT * FROM " . gallery_bank_albums() . " where album_id = %d",
95
- $album_id
96
- )
97
- );
98
- $album_css = $wpdb->get_results
99
- (
100
- "SELECT * FROM " . gallery_bank_settings()
101
- );
102
- if (count($album_css) != 0)
103
- {
104
- $setting_keys = array();
105
- for ($flag = 0; $flag < count($album_css); $flag++)
106
- {
107
- array_push($setting_keys, $album_css[$flag]->setting_key);
108
- }
109
- $index = array_search("thumbnails_width", $setting_keys);
110
- $thumbnails_width = $album_css[$index]->setting_value;
111
-
112
- $index = array_search("thumbnails_height", $setting_keys);
113
- $thumbnails_height = $album_css[$index]->setting_value;
114
-
115
- $index = array_search("thumbnails_opacity", $setting_keys);
116
- $thumbnails_opacity = $album_css[$index]->setting_value;
117
-
118
- $index = array_search("thumbnails_border_size", $setting_keys);
119
- $thumbnails_border_size = $album_css[$index]->setting_value;
120
- $new_thumb_width = $thumbnails_width + ($thumbnails_border_size * 4);
121
-
122
- $index = array_search("thumbnails_border_radius", $setting_keys);
123
- $thumbnails_border_radius = $album_css[$index]->setting_value;
124
-
125
- $index = array_search("thumbnails_border_color", $setting_keys);
126
- $thumbnails_border_color = $album_css[$index]->setting_value;
127
-
128
- $index = array_search("margin_btw_thumbnails", $setting_keys);
129
- $margin_btw_thumbnails = $album_css[$index]->setting_value;
130
-
131
- $video_thumb_url = GALLERY_BK_PLUGIN_URL . "/assets/images/video.jpg";
132
- ?>
133
- <!--suppress ALL -->
134
- <style type="text/css">
135
- .dynamic_css {
136
- border: <?php echo $thumbnails_border_size;?>px solid <?php echo $thumbnails_border_color;?>;
137
- border-radius: <?php echo $thumbnails_border_radius;?>px;
138
- -moz-border-radius: <?php echo $thumbnails_border_radius;?>px;
139
- -webkit-border-radius: <?php echo $thumbnails_border_radius;?>px;
140
- -khtml-border-radius: <?php echo $thumbnails_border_radius;?>px;
141
- -o-border-radius: <?php echo $thumbnails_border_radius;?>px;
142
- opacity: <?php echo $thumbnails_opacity;?>;
143
- -moz-opacity: <?php echo $thumbnails_opacity; ?>;
144
- -khtml-opacity: <?php echo $thumbnails_opacity; ?>;
145
- margin-right: <?php echo $margin_btw_thumbnails;?>px;
146
- margin-bottom: <?php echo $margin_btw_thumbnails;?>px;
147
- }
148
- .layout-controls > a#<?php echo $_REQUEST["order_id"];?>
149
- {
150
- color: #000000 !important;
151
- font-weight: bold !important;
152
- }
153
-
154
- .imgLiquidFill {
155
- width: <?php echo $thumbnails_width;?>px;
156
- height: <?php echo $thumbnails_height;?>px;
157
- cursor: move;
158
- display: inline-block;
159
- }
160
-
161
- .sort {
162
- padding: 6px;
163
- clear: both;
164
- margin-top: 1%;
165
- width: <?php echo ($new_thumb_width + $margin_btw_thumbnails * 2) * $img_in_row ;?>px;
166
- }
167
- </style>
168
- <?php
169
- }
170
- ?>
171
- <form id="reodering_images" class="layout-form" method="post">
172
- <div id="poststuff" style="width: 99% !important;">
173
- <div id="post-body" class="metabox-holder">
174
- <div id="postbox-container-2" class="postbox-container">
175
- <div id="advanced" class="meta-box-sortables">
176
- <div id="gallery_bank_get_started" class="postbox" >
177
- <div class="handlediv" data-target="#ux_image_sorting" title="Click to toggle" data-toggle="collapse"><br></div>
178
- <h3 class="hndle"><span><?php _e("Re-Order Images", gallery_bank); ?></span></h3>
179
- <div class="inside">
180
- <div id="ux_image_sorting" class="gallery_bank_layout">
181
- <a class="btn btn-inverse"
182
- href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
183
- <a href="#" class="btn btn-info" onclick="show_premium_message();"
184
- style="float:right"><?php _e("Update Order", gallery_bank); ?></a>
185
- <div id="sort_order_message" class="message green" style="display: none;">
186
- <span>
187
- <strong><?php _e("Sorting Order has been updated.", gallery_bank); ?></strong>
188
- </span>
189
- </div>
190
- <div class="separator-doubled"></div>
191
- <div class="fluid-layout">
192
- <div class="layout-span12">
193
- <div class="widget-layout">
194
- <div class="widget-layout-title">
195
- <h4><?php echo stripcslashes(htmlspecialchars_decode($album->album_name)); ?></h4>
196
- </div>
197
- <div class="widget-layout-body">
198
- <div class="layout-control-group">
199
- <ul class="breadcrumb">
200
- <li>
201
- <label class="layout-control-label"><strong>Presort :</strong></label>
202
- <div class="layout-controls" style="margin-top: 8px;">
203
- <a id="unsort" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=unsort">Unsorted</a>
204
- |
205
- <a id="picId" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=picId">Image ID</a>
206
- |
207
- <a id="name" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=name">File Name</a>
208
- |
209
- <a id="title" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=title">Title Text</a>
210
- |
211
- <a id="date" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=date">Date</a>
212
- |
213
- <a id="asc" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=asc">Ascending</a>
214
- |
215
- <a id="desc" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=desc">Descending</a>
216
- </div>
217
- <br>
218
- <label class="layout-control-label">
219
- <strong>
220
- <?php _e("Images in Row", gallery_bank); ?> :
221
- </strong>
222
- </label>
223
- <select id="ux_ddl_img_in_Row" name="ux_ddl_img_in_Row" class="layout-span2" style="margin-left: 16px;" onchange="img_in_row();">
224
- <option id="" value=""><?php _e("Please Choose", gallery_bank); ?></option>
225
- <?php
226
- for ($i = 1; $i <= 10; $i++):
227
- ?>
228
- <option <?php if ($i == $img_in_row) echo "selected=\"selected\"" ?>
229
- value="<?php echo $i ?>"><?php echo $i; ?></option>
230
- <?php
231
- endfor;
232
- ?>
233
- </select>
234
- </li>
235
- </ul>
236
- </div>
237
- <div id="images_sort" class="sort">
238
- <?php
239
- for ($flag = 0; $flag < count($pics_order); $flag++) {
240
- ?>
241
- <div id="sortOrder_<?php echo $pics_order[$flag]->pic_id; ?>"
242
- class="imgLiquidFill dynamic_css">
243
- <?php
244
- if ($pics_order[$flag]->video == 1) {
245
- ?>
246
- <img id="imgOrder_<?php echo $pics_order[$flag]->pic_id; ?>"
247
- src="<?php echo $video_thumb_url; ?>"/>
248
- <?php
249
- } else {
250
- ?>
251
- <img id="imgOrder_<?php echo $pics_order[$flag]->pic_id; ?>"
252
- src="<?php echo GALLERY_BK_THUMB_SMALL_URL . $pics_order[$flag]->thumbnail_url; ?>"/>
253
- <?php
254
- }
255
- ?>
256
- </div>
257
- <?php
258
- }
259
- ?>
260
- </div>
261
- </div>
262
- </div>
263
- </div>
264
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
  </div>
266
  </div>
267
  </div>
268
  </div>
269
  </div>
270
- </div>
271
- </div>
272
- </form>
273
- <script type="text/javascript">
274
- jQuery(document).ready(function () {
275
- jQuery(".sort").sortable
276
- ({
277
- opacity: 0.6,
278
- cursor: "move",
279
- connectWith: ".sort"
280
- });
281
- });
282
- jQuery(".imgLiquidFill").imgLiquid({fill: true});
283
- function show_premium_message()
284
- {
285
- alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
286
- }
287
- function img_in_row() {
288
- var row = jQuery("#ux_ddl_img_in_Row").val();
289
- window.location.href = "<?php echo site_url();?>/wp-admin/admin.php?page=images_sorting&album_id=<?php echo $album_id;?>&row=" + row;
290
- }
291
- </script>
 
1
  <?php
2
+ global $wpdb,$current_user,$user_role_permission;
3
+ $role = $wpdb->prefix . "capabilities";
4
+ $current_user->role = array_keys($current_user->$role);
5
+ $role = $current_user->role[0];
6
+ switch($role)
7
+ {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
23
+ }
24
+ if (!current_user_can($user_role_permission))
25
+ {
26
+ return;
27
+ }
28
+ else
29
+ {
30
+ $unique_id = rand(100, 10000);
31
+ $album_id = intval($_REQUEST["album_id"]);
32
+ $img_in_row = intval($_REQUEST["row"]);
33
+ if (isset($_REQUEST["order_id"])) {
34
+ switch ($_REQUEST["order_id"]) {
35
+ case "unsort":
36
+ $pics_order = $wpdb->get_results
37
+ (
38
+ $wpdb->prepare
39
+ (
40
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d",
41
+ $album_id
42
+ )
43
+ );
44
+ break;
45
+ case "picId":
46
+ $pics_order = $wpdb->get_results
47
+ (
48
+ $wpdb->prepare
49
+ (
50
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by pic_id",
51
+ $album_id
52
+ )
53
+ );
54
+ break;
55
+ case "name":
56
+ $pics_order = $wpdb->get_results
57
+ (
58
+ $wpdb->prepare
59
+ (
60
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by pic_name asc",
61
+ $album_id
62
+ )
63
+ );
64
+ break;
65
+ case "title":
66
+ $pics_order = $wpdb->get_results
67
+ (
68
+ $wpdb->prepare
69
+ (
70
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by title asc",
71
+ $album_id
72
+ )
73
+ );
74
+ break;
75
+ case "date":
76
+ $pics_order = $wpdb->get_results
77
+ (
78
+ $wpdb->prepare
79
+ (
80
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by date asc",
81
+ $album_id
82
+ )
83
+ );
84
+ break;
85
+ case "asc":
86
+ $pics_order = $wpdb->get_results
87
+ (
88
+ $wpdb->prepare
89
+ (
90
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by pic_id asc",
91
+ $album_id
92
+ )
93
+ );
94
+ break;
95
+ case "desc":
96
+ $pics_order = $wpdb->get_results
97
+ (
98
+ $wpdb->prepare
99
+ (
100
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by pic_id desc",
101
+ $album_id
102
+ )
103
+ );
104
+ break;
105
+ }
106
+ } else {
107
+ $pics_order = $wpdb->get_results
108
+ (
109
+ $wpdb->prepare
110
+ (
111
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by sorting_order asc",
112
+ $album_id
113
+ )
114
+ );
115
+ }
116
+
117
+ $album = $wpdb->get_row
118
+ (
119
+ $wpdb->prepare
120
+ (
121
+ "SELECT * FROM " . gallery_bank_albums() . " where album_id = %d",
122
+ $album_id
123
+ )
124
+ );
125
+ $album_css = $wpdb->get_results
126
+ (
127
+ "SELECT * FROM " . gallery_bank_settings()
128
+ );
129
+ if (count($album_css) != 0)
130
+ {
131
+ $setting_keys = array();
132
+ for ($flag = 0; $flag < count($album_css); $flag++)
133
+ {
134
+ array_push($setting_keys, $album_css[$flag]->setting_key);
135
+ }
136
+ $index = array_search("thumbnails_width", $setting_keys);
137
+ $thumbnails_width = $album_css[$index]->setting_value;
138
+
139
+ $index = array_search("thumbnails_height", $setting_keys);
140
+ $thumbnails_height = $album_css[$index]->setting_value;
141
+
142
+ $index = array_search("thumbnails_opacity", $setting_keys);
143
+ $thumbnails_opacity = $album_css[$index]->setting_value;
144
+
145
+ $index = array_search("thumbnails_border_size", $setting_keys);
146
+ $thumbnails_border_size = $album_css[$index]->setting_value;
147
+ $new_thumb_width = $thumbnails_width + ($thumbnails_border_size * 4);
148
+
149
+ $index = array_search("thumbnails_border_radius", $setting_keys);
150
+ $thumbnails_border_radius = $album_css[$index]->setting_value;
151
+
152
+ $index = array_search("thumbnails_border_color", $setting_keys);
153
+ $thumbnails_border_color = $album_css[$index]->setting_value;
154
+
155
+ $index = array_search("margin_btw_thumbnails", $setting_keys);
156
+ $margin_btw_thumbnails = $album_css[$index]->setting_value;
157
+
158
+ $video_thumb_url = GALLERY_BK_PLUGIN_URL . "/assets/images/video.jpg";
159
+ ?>
160
+ <!--suppress ALL -->
161
+ <style type="text/css">
162
+ .dynamic_css {
163
+ border: <?php echo $thumbnails_border_size;?>px solid <?php echo $thumbnails_border_color;?>;
164
+ border-radius: <?php echo $thumbnails_border_radius;?>px;
165
+ -moz-border-radius: <?php echo $thumbnails_border_radius;?>px;
166
+ -webkit-border-radius: <?php echo $thumbnails_border_radius;?>px;
167
+ -khtml-border-radius: <?php echo $thumbnails_border_radius;?>px;
168
+ -o-border-radius: <?php echo $thumbnails_border_radius;?>px;
169
+ opacity: <?php echo $thumbnails_opacity;?>;
170
+ -moz-opacity: <?php echo $thumbnails_opacity; ?>;
171
+ -khtml-opacity: <?php echo $thumbnails_opacity; ?>;
172
+ margin-right: <?php echo $margin_btw_thumbnails;?>px;
173
+ margin-bottom: <?php echo $margin_btw_thumbnails;?>px;
174
+ }
175
+ .layout-controls > a#<?php echo $_REQUEST["order_id"];?>
176
+ {
177
+ color: #000000 !important;
178
+ font-weight: bold !important;
179
+ }
180
+
181
+ .imgLiquidFill {
182
+ width: <?php echo $thumbnails_width;?>px;
183
+ height: <?php echo $thumbnails_height;?>px;
184
+ cursor: move;
185
+ display: inline-block;
186
+ }
187
+
188
+ .sort {
189
+ padding: 6px;
190
+ clear: both;
191
+ margin-top: 1%;
192
+ width: <?php echo ($new_thumb_width + $margin_btw_thumbnails * 2) * $img_in_row ;?>px;
193
+ }
194
+ </style>
195
+ <?php
196
+ }
197
+ ?>
198
+ <form id="reodering_images" class="layout-form" method="post">
199
+ <div id="poststuff" style="width: 99% !important;">
200
+ <div id="post-body" class="metabox-holder">
201
+ <div id="postbox-container-2" class="postbox-container">
202
+ <div id="advanced" class="meta-box-sortables">
203
+ <div id="gallery_bank_get_started" class="postbox" >
204
+ <div class="handlediv" data-target="#ux_image_sorting" title="Click to toggle" data-toggle="collapse"><br></div>
205
+ <h3 class="hndle"><span><?php _e("Re-Order Images", gallery_bank); ?></span></h3>
206
+ <div class="inside">
207
+ <div id="ux_image_sorting" class="gallery_bank_layout">
208
+ <a class="btn btn-inverse"
209
+ href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
210
+ <a href="#" class="btn btn-info" onclick="show_premium_message();"
211
+ style="float:right"><?php _e("Update Order", gallery_bank); ?></a>
212
+ <div id="sort_order_message" class="message green" style="display: none;">
213
+ <span>
214
+ <strong><?php _e("Sorting Order has been updated.", gallery_bank); ?></strong>
215
+ </span>
216
+ </div>
217
+ <div class="separator-doubled"></div>
218
+ <div class="fluid-layout">
219
+ <div class="layout-span12">
220
+ <div class="widget-layout">
221
+ <div class="widget-layout-title">
222
+ <h4><?php echo stripcslashes(htmlspecialchars_decode($album->album_name)); ?></h4>
223
+ </div>
224
+ <div class="widget-layout-body">
225
+ <div class="layout-control-group">
226
+ <ul class="breadcrumb">
227
+ <li>
228
+ <label class="layout-control-label"><strong>Presort :</strong></label>
229
+ <div class="layout-controls" style="margin-top: 8px;">
230
+ <a id="unsort" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=unsort">Unsorted</a>
231
+ |
232
+ <a id="picId" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=picId">Image ID</a>
233
+ |
234
+ <a id="name" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=name">File Name</a>
235
+ |
236
+ <a id="title" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=title">Title Text</a>
237
+ |
238
+ <a id="date" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=date">Date</a>
239
+ |
240
+ <a id="asc" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=asc">Ascending</a>
241
+ |
242
+ <a id="desc" href="admin.php?page=images_sorting&album_id=<?php echo $album_id ?>&row=<?php echo $img_in_row ?>&order_id=desc">Descending</a>
243
+ </div>
244
+ <br>
245
+ <label class="layout-control-label">
246
+ <strong>
247
+ <?php _e("Images in Row", gallery_bank); ?> :
248
+ </strong>
249
+ </label>
250
+ <select id="ux_ddl_img_in_Row" name="ux_ddl_img_in_Row" class="layout-span2" style="margin-left: 16px;" onchange="img_in_row();">
251
+ <option id="" value=""><?php _e("Please Choose", gallery_bank); ?></option>
252
+ <?php
253
+ for ($i = 1; $i <= 10; $i++):
254
+ ?>
255
+ <option <?php if ($i == $img_in_row) echo "selected=\"selected\"" ?>
256
+ value="<?php echo $i ?>"><?php echo $i; ?></option>
257
+ <?php
258
+ endfor;
259
+ ?>
260
+ </select>
261
+ </li>
262
+ </ul>
263
+ </div>
264
+ <div id="images_sort" class="sort">
265
+ <?php
266
+ for ($flag = 0; $flag < count($pics_order); $flag++) {
267
+ ?>
268
+ <div id="sortOrder_<?php echo $pics_order[$flag]->pic_id; ?>"
269
+ class="imgLiquidFill dynamic_css">
270
+ <?php
271
+ if ($pics_order[$flag]->video == 1) {
272
+ ?>
273
+ <img id="imgOrder_<?php echo $pics_order[$flag]->pic_id; ?>"
274
+ src="<?php echo $video_thumb_url; ?>"/>
275
+ <?php
276
+ } else {
277
+ ?>
278
+ <img id="imgOrder_<?php echo $pics_order[$flag]->pic_id; ?>"
279
+ src="<?php echo GALLERY_BK_THUMB_SMALL_URL . $pics_order[$flag]->thumbnail_url; ?>"/>
280
+ <?php
281
+ }
282
+ ?>
283
+ </div>
284
+ <?php
285
+ }
286
+ ?>
287
+ </div>
288
+ </div>
289
+ </div>
290
+ </div>
291
+ </div>
292
+ </div>
293
+ </div>
294
  </div>
295
  </div>
296
  </div>
297
  </div>
298
  </div>
299
+ </form>
300
+ <script type="text/javascript">
301
+ jQuery(document).ready(function () {
302
+ jQuery(".sort").sortable
303
+ ({
304
+ opacity: 0.6,
305
+ cursor: "move",
306
+ connectWith: ".sort"
307
+ });
308
+ });
309
+ jQuery(".imgLiquidFill").imgLiquid({fill: true});
310
+ function show_premium_message()
311
+ {
312
+ alert("<?php _e( "This feature is only available in Paid Premium Version!", gallery_bank ); ?>");
313
+ }
314
+ function img_in_row() {
315
+ var row = jQuery("#ux_ddl_img_in_Row").val();
316
+ window.location.href = "<?php echo site_url();?>/wp-admin/admin.php?page=images_sorting&album_id=<?php echo $album_id;?>&row=" + row;
317
+ }
318
+ </script>
319
+ <?php
320
+ }
321
+ ?>
views/purchase_pro_version.php CHANGED
@@ -1,700 +1,729 @@
1
  <?php
2
- if (isset($_REQUEST["msg"]))
 
 
 
 
3
  {
4
- if(esc_attr($_REQUEST["msg"]) == "no")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  {
6
- update_option("gallery-bank-banner", "no");
7
- ?>
8
- <style type="text/css" >
9
- #ux_buy_pro
10
- {
11
- display:none;
12
- }
13
- </style>
14
- <?php
 
 
 
15
  }
16
- }
17
- ?>
18
- <form id="gallery_bank_pricing" class="layout-form">
19
- <div id="poststuff" style="width: 99% !important;">
20
- <div id="post-body" class="metabox-holder columns-2">
21
- <div id="postbox-container-2" class="postbox-container">
22
- <div id="advanced" class="meta-box-sortables">
23
- <div id="gallery_bank_get_started" class="postbox" >
24
- <div class="handlediv" data-target="#ux_gallery_bank_pricing" title="Click to toggle" data-toggle="collapse"><br></div>
25
- <h3 class="hndle"><span><?php _e("Gallery Bank Pricing", gallery_bank); ?></span></h3>
26
- <div class="inside">
27
- <div id="ux_gallery_bank_pricing" class="gallery_bank_layout">
28
- <div class="wpb_wrapper" style="margin: 15px 0 15px 0;">
29
- <div id="Table_t1_s11" class="p_table_responsive p_table_1 p_table_1_11 css3_grid_clearfix p_table_hover_disabled">
30
- <div class="caption_column column_0_responsive">
31
- <ul>
32
- <li style="text-align: left;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive radius5_topleft">
33
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"></span></span>
34
- </li>
35
- <li style="text-align: left;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive">
36
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="caption">Choose <span>your</span> Plan</h2></span></span>
37
- </li>
38
- <li style="text-align: left;" class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive">
39
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Number of websites that can use the plugin on purchase of a License.</span>Domains per License</span></span></span></span>
40
- </li>
41
- <li style="text-align: left;" class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive">
42
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Automatic Plugin Update Notification with New Features, Bug Fixing and much more....</span><strong>Plugin Updates</strong></span></span></span></span>
43
- </li>
44
- <li style="text-align: left;" class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive">
45
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Technical Support by the Development Team for Installation, Bug Fixing, Plugin Compatibility Issues.</span><strong>Technical Support</strong></span></span></span></span>
46
- </li>
47
- <li style="text-align: left;" class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive">
48
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Multi-Lingual Facility allows the plugin to be used in 25 languages.</span>Multi-Lingual</span></span></span></span>
49
- </li>
50
- <li style="text-align: left;" class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive">
51
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Number of Albums allowed to be Published.</span>Number of Albums</span></span></span></span>
52
- </li>
53
- <li style="text-align: left;" class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive">
54
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Number of Images per Album allowed to be Published.</span>Images per Album</span></span></span></span>
55
- </li>
56
- <li style="text-align: left;" class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive">
57
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Optimal Viewing Experience across a wide range of devices.</span> Responsive Gallery</span></span></span></span>
58
- </li>
59
- <li style="text-align: left;" class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive">
60
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Shortcode Wizard to easily insert albums/images to any Page/Post.</span>Shortcode Wizard</span></span></span></span>
61
- </li>
62
- <li style="text-align: left;" class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive">
63
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Bulk Upload of Images in single time.</span>Bulk Upload of Images</span></span></span></span>
64
- </li>
65
- <li style="text-align: left;" class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive">
66
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Lightbox is a script used to overlay images on the current page. It's a snap to setup and works on all modern browsers.</span>Lightbox</span></span></span></span>
67
- </li>
68
- <li style="text-align: left;" class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive">
69
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Basic Thumbnail gallery is a grid of images that when clicked on, open in a pop-up full view.</span>Basic Thumbnail Gallery</span></span></span></span>
70
- </li>
71
- <li style="text-align: left;" class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive">
72
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Displays images inside of the album is in a Grid Format.</span>Grid Album Format</span></span></span></span>
73
- </li>
74
- <li style="text-align: left;" class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive">
75
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Each thumbnail in the Compact Album links to the gallery you include in your album, along with the title of the gallery with the amount of images per gallery.</span>Compact Album</span></span></span></span>
76
- </li>
77
- <li style="text-align: left;" class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive">
78
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Extended Album displays as a list, with thumbnails to the left. Alongside the right of the thumbnail is the title and description of the gallery and amount of images within the gallery.</span>Extended Album</span></span></span></span>
79
- </li>
80
- <li style="text-align: left;" class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive">
81
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Display Gallery that when clicked on, open in a popup full view.</span>Individual Images</span></span></span></span>
82
- </li>
83
- <li style="text-align: left;" class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive">
84
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Thumbnail of Individual Album links to a Gallery you include in your Album</span>Individual Album</span></span></span></span>
85
- </li>
86
- <li style="text-align: left;" class="css3_grid_row_18 row_style_4 css3_grid_row_18_responsive">
87
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Masonry is a JavaScript grid layout library. It works by placing elements in optimal position based on available vertical space.</span>Masonry Gallery Format </span></span></span></span>
88
- </li>
89
- <li style="text-align: left;" class="css3_grid_row_19 row_style_2 css3_grid_row_19_responsive">
90
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Cool slide-film style galleries – great for displaying non-cropped thumbnails in clean grids.</span>Filmstrip Gallery Format</span></span></span></span>
91
- </li>
92
- <li style="text-align: left;" class="css3_grid_row_20 row_style_4 css3_grid_row_20_responsive">
93
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Vertically stacked, thumbnails images common to photography blogs.</span>Blog Style Gallery Format</span></span></span></span>
94
- </li>
95
- <li style="text-align: left;" class="css3_grid_row_21 row_style_2 css3_grid_row_21_responsive">
96
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Vertically stacked album covers with title and description.</span>List Album Format</span></span></span></span>
97
- </li>
98
- <li style="text-align: left;" class="css3_grid_row_22 row_style_4 css3_grid_row_22_responsive">
99
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Mobile-friendly, non-flash slideshows with nice transitions.</span>Slideshow Gallery</span></span></span></span>
100
- </li>
101
- <li style="text-align: left;" class="css3_grid_row_23 row_style_2 css3_grid_row_23_responsive">
102
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>You can give your photos and videos a "tag", which is like a keyword or category label.</span>Tags</span></span></span></span>
103
- </li>
104
- <li style="text-align: left;" class="css3_grid_row_24 row_style_4 css3_grid_row_24_responsive">
105
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>You can upload video links from Youtube, Vimeo and other supportive Media Sharing sites</span>Videos</span></span></span></span>
106
- </li>
107
- <li style="text-align: left;" class="css3_grid_row_25 row_style_2 css3_grid_row_25_responsive">
108
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Settings for Image Thumbnails, Lightbox, Albums, Layout and much more.</span>Global Settings</span></span></span></span>
109
- </li>
110
- <li style="text-align: left;" class="css3_grid_row_26 row_style_4 css3_grid_row_26_responsive">
111
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Allowed to customize thumbnails with any size suitable for you. This may howerver disort the image if not used with TimThumb.</span>Custom Size Thumbnails</span></span></span></span>
112
- </li>
113
- <li style="text-align: left;" class="css3_grid_row_27 row_style_2 css3_grid_row_27_responsive">
114
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>TimThumb is a simple, flexible, PHP script that re-sizes images.</span>TimThumb Script</span></span></span></span>
115
- </li>
116
- <li style="text-align: left;" class="css3_grid_row_28 row_style_4 css3_grid_row_28_responsive">
117
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Pagination allows number of images allowed on a single page and provide navigation for the rest.</span>Pagination for Images</span></span></span></span>
118
- </li>
119
- <li style="text-align: left;" class="css3_grid_row_29 row_style_2 css3_grid_row_29_responsive">
120
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Sorting of Image allows to re-order images according to different parameters so as per user choice by simply dragging and dropping it.</span>Sorting of Images</span></span></span></span>
121
- </li>
122
- <li style="text-align: left;" class="css3_grid_row_30 row_style_4 css3_grid_row_30_responsive">
123
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Sorting of Albums allows to re-order images according to different parameters so as per user choice by simply dragging and dropping it.</span>Sorting of Albums</span></span></span></span>
124
- </li>
125
- <li style="text-align: left;" class="css3_grid_row_31 row_style_2 css3_grid_row_31_responsive">
126
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Animation Effects to impliment on Thumbnails.</span>Animation Effects</span></span></span></span>
127
- </li>
128
- <li style="text-align: left;" class="css3_grid_row_32 row_style_4 css3_grid_row_32_responsive">
129
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Special Effects to impliment on Thumbnails.</span>Special Effects</span></span></span></span>
130
- </li>
131
- <li style="text-align: left;" class="css3_grid_row_33 row_style_2 css3_grid_row_33_responsive">
132
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Restore Plugin back to default settings.</span>Restore Factory Settings</span></span></span></span>
133
- </li>
134
- <li style="text-align: left;" class="css3_grid_row_34 row_style_4 css3_grid_row_34_responsive">
135
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Filters to categorize the images by different names.</span>Filters</span></span></span></span>
136
- </li>
137
- <li style="text-align: left;" class="css3_grid_row_35 row_style_2 css3_grid_row_35_responsive">
138
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>With this feature you can rotate images to different directions.</span>Rotation of Thumbnail</span></span></span></span>
139
- </li>
140
- <li style="text-align: left;" class="css3_grid_row_36 row_style_4 css3_grid_row_36_responsive">
141
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>You can choose Pretty Photo, ColorBox, Photo Swipe, Foo Box, Fancy Box, Lightbox 2, GB Lightbox for display of Images. (You need to Purchase FOO BOX separately).</span>Different Lightboxes</span></span></span></span>
142
- </li>
143
- <li style="text-align: left;" class="css3_grid_row_37 row_style_2 css3_grid_row_37_responsive">
144
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Social Sharing makes easy to share your images across social networks with one click.</span>Social Sharing</span></span></span></span>
145
- </li>
146
- <li style="text-align: left;" class="css3_grid_row_38 row_style_4 css3_grid_row_38_responsive">
147
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Commenting on Images allows your users to post comments on images.</span>Commenting on Images</span></span></span></span>
148
- </li>
149
- <li style="text-align: left;" class="css3_grid_row_39 row_style_2 css3_grid_row_39_responsive">
150
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Widgets allows albums and images to be shown in your sidebar, footer, header etc.</span>Widgets</span></span></span></span>
151
- </li>
152
- <li style="text-align: left;" class="css3_grid_row_40 row_style_4 css3_grid_row_40_responsive">
153
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>It allows to delete bulk deletion of images and albums on a single click.</span>Bulk Deletion</span></span></span></span>
154
- </li>
155
- <li style="text-align: left;" class="css3_grid_row_41 row_style_2 css3_grid_row_41_responsive">
156
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Purging of albums is used to hard delete the images and thumbnails from the server which are not used anymore.</span>Purging of Albums</span></span></span></span>
157
- </li>
158
- <li style="text-align: left;" class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
159
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"></span></span>
160
- </li>
161
- </ul>
162
- </div>
163
- <div class="column_2 column_2_responsive">
164
- <div class="column_ribbon ribbon_style1_save"></div>
165
- <ul>
166
- <li style="text-align: center;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
167
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col2">Eco</h2></span></span>
168
- </li>
169
- <li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
170
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>11</span></h1><h3 class="col1">one time</h3></span></span>
171
- </li>
172
- <li style="text-align: center;" class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
173
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
174
- </li>
175
- <li style="text-align: center;" class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive align_center">
176
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
177
- </li>
178
- <li style="text-align: center;" class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive align_center">
179
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Week</span></span></span>
180
- </li>
181
- <li style="text-align: center;" class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive align_center">
182
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
183
- </li>
184
- <li style="text-align: center;" class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive align_center">
185
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
186
- </li>
187
- <li style="text-align: center;" class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive align_center">
188
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
189
- </li>
190
- <li style="text-align: center;" class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive align_center">
191
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
192
- </li>
193
- <li style="text-align: center;" class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive align_center">
194
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
195
- </li>
196
- <li style="text-align: center;" class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive align_center">
197
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
198
- </li>
199
- <li style="text-align: center;" class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive align_center">
200
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
201
- </li>
202
- <li style="text-align: center;" class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive align_center">
203
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
204
- </li>
205
- <li style="text-align: center;" class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive align_center">
206
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
207
- </li>
208
- <li style="text-align: center;" class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive align_center">
209
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
210
- </li>
211
- <li style="text-align: center;" class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive align_center">
212
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
213
- </li>
214
- <li style="text-align: center;" class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive align_center">
215
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
216
- </li>
217
- <li style="text-align: center;" class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive align_center">
218
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
219
- </li>
220
- <li style="text-align: center;" class="css3_grid_row_18 row_style_4 css3_grid_row_18_responsive align_center">
221
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
222
- </li>
223
- <li style="text-align: center;" class="css3_grid_row_19 row_style_2 css3_grid_row_19_responsive align_center">
224
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
225
- </li>
226
- <li style="text-align: center;" class="css3_grid_row_20 row_style_4 css3_grid_row_20_responsive align_center">
227
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
228
- </li>
229
- <li style="text-align: center;" class="css3_grid_row_21 row_style_2 css3_grid_row_21_responsive align_center">
230
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
231
- </li>
232
- <li style="text-align: center;" class="css3_grid_row_22 row_style_4 css3_grid_row_22_responsive align_center">
233
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
234
- </li>
235
- <li style="text-align: center;" class="css3_grid_row_23 row_style_2 css3_grid_row_23_responsive align_center">
236
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
237
- </li>
238
- <li style="text-align: center;" class="css3_grid_row_24 row_style_4 css3_grid_row_24_responsive align_center">
239
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
240
- </li>
241
- <li style="text-align: center;" class="css3_grid_row_25 row_style_2 css3_grid_row_25_responsive align_center">
242
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
243
- </li>
244
- <li style="text-align: center;" class="css3_grid_row_26 row_style_4 css3_grid_row_26_responsive align_center">
245
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
246
- </li>
247
- <li style="text-align: center;" class="css3_grid_row_27 row_style_2 css3_grid_row_27_responsive align_center">
248
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
249
- </li>
250
- <li style="text-align: center;" class="css3_grid_row_28 row_style_4 css3_grid_row_28_responsive align_center">
251
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
252
- </li>
253
- <li style="text-align: center;" class="css3_grid_row_29 row_style_2 css3_grid_row_29_responsive align_center">
254
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
255
- </li>
256
- <li style="text-align: center;" class="css3_grid_row_30 row_style_4 css3_grid_row_30_responsive align_center">
257
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
258
- </li>
259
- <li style="text-align: center;" class="css3_grid_row_31 row_style_2 css3_grid_row_31_responsive align_center">
260
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
261
- </li>
262
- <li style="text-align: center;" class="css3_grid_row_32 row_style_4 css3_grid_row_32_responsive align_center">
263
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
264
- </li>
265
- <li style="text-align: center;" class="css3_grid_row_33 row_style_2 css3_grid_row_33_responsive align_center">
266
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
267
- </li>
268
- <li style="text-align: center;" class="css3_grid_row_34 row_style_4 css3_grid_row_34_responsive align_center">
269
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
270
- </li>
271
- <li style="text-align: center;" class="css3_grid_row_35 row_style_2 css3_grid_row_35_responsive align_center">
272
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
273
- </li>
274
- <li style="text-align: center;" class="css3_grid_row_36 row_style_4 css3_grid_row_36_responsive align_center">
275
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
276
- </li>
277
- <li style="text-align: center;" class="css3_grid_row_37 row_style_2 css3_grid_row_37_responsive align_center">
278
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
279
- </li>
280
- <li style="text-align: center;" class="css3_grid_row_38 row_style_4 css3_grid_row_38_responsive align_center">
281
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
282
- </li>
283
- <li style="text-align: center;" class="css3_grid_row_39 row_style_2 css3_grid_row_39_responsive align_center">
284
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
285
- </li>
286
- <li style="text-align: center;" class="css3_grid_row_40 row_style_4 css3_grid_row_40_responsive align_center">
287
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
288
- </li>
289
- <li style="text-align: center;" class="css3_grid_row_41 row_style_2 css3_grid_row_41_responsive align_center">
290
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
291
- </li>
292
- <li style="text-align: center;" class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
293
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/gallery-bank-eco-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
294
- </li>
295
- </ul>
296
- </div>
297
- <div class="column_3 column_3_responsive">
298
- <div class="column_ribbon ribbon_style2_best"></div>
299
- <ul>
300
- <li style="text-align: center;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
301
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Pro</h2></span></span>
302
- </li>
303
- <li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
304
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>18</span></h1><h3 class="col1">one time</h3></span></span>
305
- </li>
306
- <li style="text-align: center;" class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
307
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
308
- </li>
309
- <li style="text-align: center;" class="css3_grid_row_3 row_style_1 css3_grid_row_3_responsive align_center">
310
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
311
- </li>
312
- <li style="text-align: center;" class="css3_grid_row_4 row_style_3 css3_grid_row_4_responsive align_center">
313
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Month </span></span></span>
314
- </li>
315
- <li style="text-align: center;" class="css3_grid_row_5 row_style_1 css3_grid_row_5_responsive align_center">
316
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
317
- </li>
318
- <li style="text-align: center;" class="css3_grid_row_6 row_style_3 css3_grid_row_6_responsive align_center">
319
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
320
- </li>
321
- <li style="text-align: center;" class="css3_grid_row_7 row_style_1 css3_grid_row_7_responsive align_center">
322
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
323
- </li>
324
- <li style="text-align: center;" class="css3_grid_row_8 row_style_3 css3_grid_row_8_responsive align_center">
325
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
326
- </li>
327
- <li style="text-align: center;" class="css3_grid_row_9 row_style_1 css3_grid_row_9_responsive align_center">
328
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
329
- </li>
330
- <li style="text-align: center;" class="css3_grid_row_10 row_style_3 css3_grid_row_10_responsive align_center">
331
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
332
- </li>
333
- <li style="text-align: center;" class="css3_grid_row_11 row_style_1 css3_grid_row_11_responsive align_center">
334
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
335
- </li>
336
- <li style="text-align: center;" class="css3_grid_row_12 row_style_3 css3_grid_row_12_responsive align_center">
337
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
338
- </li>
339
- <li style="text-align: center;" class="css3_grid_row_13 row_style_1 css3_grid_row_13_responsive align_center">
340
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
341
- </li>
342
- <li style="text-align: center;" class="css3_grid_row_14 row_style_3 css3_grid_row_14_responsive align_center">
343
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
344
- </li>
345
- <li style="text-align: center;" class="css3_grid_row_15 row_style_1 css3_grid_row_15_responsive align_center">
346
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
347
- </li>
348
- <li style="text-align: center;" class="css3_grid_row_16 row_style_3 css3_grid_row_16_responsive align_center">
349
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
350
- </li>
351
- <li style="text-align: center;" class="css3_grid_row_17 row_style_1 css3_grid_row_17_responsive align_center">
352
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
353
- </li>
354
- <li style="text-align: center;" class="css3_grid_row_18 row_style_3 css3_grid_row_18_responsive align_center">
355
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
356
- </li>
357
- <li style="text-align: center;" class="css3_grid_row_19 row_style_1 css3_grid_row_19_responsive align_center">
358
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
359
- </li>
360
- <li style="text-align: center;" class="css3_grid_row_20 row_style_3 css3_grid_row_20_responsive align_center">
361
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
362
- </li>
363
- <li style="text-align: center;" class="css3_grid_row_21 row_style_1 css3_grid_row_21_responsive align_center">
364
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
365
- </li>
366
- <li style="text-align: center;" class="css3_grid_row_22 row_style_3 css3_grid_row_22_responsive align_center">
367
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
368
- </li>
369
- <li style="text-align: center;" class="css3_grid_row_23 row_style_1 css3_grid_row_23_responsive align_center">
370
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
371
- </li>
372
- <li style="text-align: center;" class="css3_grid_row_24 row_style_3 css3_grid_row_24_responsive align_center">
373
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
374
- </li>
375
- <li style="text-align: center;" class="css3_grid_row_25 row_style_1 css3_grid_row_25_responsive align_center">
376
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
377
- </li>
378
- <li style="text-align: center;" class="css3_grid_row_26 row_style_3 css3_grid_row_26_responsive align_center">
379
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
380
- </li>
381
- <li style="text-align: center;" class="css3_grid_row_27 row_style_1 css3_grid_row_27_responsive align_center">
382
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
383
- </li>
384
- <li style="text-align: center;" class="css3_grid_row_28 row_style_3 css3_grid_row_28_responsive align_center">
385
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
386
- </li>
387
- <li style="text-align: center;" class="css3_grid_row_29 row_style_1 css3_grid_row_29_responsive align_center">
388
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
389
- </li>
390
- <li style="text-align: center;" class="css3_grid_row_30 row_style_3 css3_grid_row_30_responsive align_center">
391
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
392
- </li>
393
- <li style="text-align: center;" class="css3_grid_row_31 row_style_1 css3_grid_row_31_responsive align_center">
394
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
395
- </li>
396
- <li style="text-align: center;" class="css3_grid_row_32 row_style_3 css3_grid_row_32_responsive align_center">
397
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
398
- </li>
399
- <li style="text-align: center;" class="css3_grid_row_33 row_style_1 css3_grid_row_33_responsive align_center">
400
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
401
- </li>
402
- <li style="text-align: center;" class="css3_grid_row_34 row_style_3 css3_grid_row_34_responsive align_center">
403
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
404
- </li>
405
- <li style="text-align: center;" class="css3_grid_row_35 row_style_1 css3_grid_row_35_responsive align_center">
406
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
407
- </li>
408
- <li style="text-align: center;" class="css3_grid_row_36 row_style_3 css3_grid_row_36_responsive align_center">
409
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
410
- </li>
411
- <li style="text-align: center;" class="css3_grid_row_37 row_style_1 css3_grid_row_37_responsive align_center">
412
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
413
- </li>
414
- <li style="text-align: center;" class="css3_grid_row_38 row_style_3 css3_grid_row_38_responsive align_center">
415
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
416
- </li>
417
- <li style="text-align: center;" class="css3_grid_row_39 row_style_1 css3_grid_row_39_responsive align_center">
418
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
419
- </li>
420
- <li style="text-align: center;" class="css3_grid_row_40 row_style_3 css3_grid_row_40_responsive align_center">
421
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
422
- </li>
423
- <li style="text-align: center;" class="css3_grid_row_41 row_style_1 css3_grid_row_41_responsive align_center">
424
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
425
- </li>
426
- <li style="text-align: center;" class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
427
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/gallery-bank-pro-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
428
- </li>
429
- </ul>
430
- </div>
431
- <div class="column_4 column_4_responsive">
432
- <div class="column_ribbon ribbon_style1_off30"></div>
433
- <ul>
434
- <li class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
435
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Developer</h2></span></span>
436
- </li>
437
- <li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
438
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>63</span></h1><h3 class="col1">one time</h3></span></span>
439
- </li>
440
- <li class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
441
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>5</span></span></span>
442
- </li>
443
- <li class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive align_center">
444
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
445
- </li>
446
- <li class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive align_center">
447
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Year </span></span></span>
448
- </li>
449
- <li class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive align_center">
450
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
451
- </li>
452
- <li class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive align_center">
453
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited </span></span></span>
454
- </li>
455
- <li class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive align_center">
456
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
457
- </li>
458
- <li class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive align_center">
459
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
460
- </li>
461
- <li class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive align_center">
462
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
463
- </li>
464
- <li class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive align_center">
465
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
466
- </li>
467
- <li class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive align_center">
468
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
469
- </li>
470
- <li class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive align_center">
471
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
472
- </li>
473
- <li class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive align_center">
474
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
475
- </li>
476
- <li class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive align_center">
477
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
478
- </li>
479
- <li class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive align_center">
480
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
481
- </li>
482
- <li class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive align_center">
483
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
484
- </li>
485
- <li class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive align_center">
486
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
487
- </li>
488
- <li class="css3_grid_row_18 row_style_4 css3_grid_row_18_responsive align_center">
489
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
490
- </li>
491
- <li class="css3_grid_row_19 row_style_2 css3_grid_row_19_responsive align_center">
492
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
493
- </li>
494
- <li class="css3_grid_row_20 row_style_4 css3_grid_row_20_responsive align_center">
495
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
496
- </li>
497
- <li class="css3_grid_row_21 row_style_2 css3_grid_row_21_responsive align_center">
498
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
499
- </li>
500
- <li class="css3_grid_row_22 row_style_4 css3_grid_row_22_responsive align_center">
501
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
502
- </li>
503
- <li class="css3_grid_row_23 row_style_2 css3_grid_row_23_responsive align_center">
504
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
505
- </li>
506
- <li class="css3_grid_row_24 row_style_4 css3_grid_row_24_responsive align_center">
507
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
508
- </li>
509
- <li class="css3_grid_row_25 row_style_2 css3_grid_row_25_responsive align_center">
510
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
511
- </li>
512
- <li class="css3_grid_row_26 row_style_4 css3_grid_row_26_responsive align_center">
513
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
514
- </li>
515
- <li class="css3_grid_row_27 row_style_2 css3_grid_row_27_responsive align_center">
516
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
517
- </li>
518
- <li class="css3_grid_row_28 row_style_4 css3_grid_row_28_responsive align_center">
519
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
520
- </li>
521
- <li class="css3_grid_row_29 row_style_2 css3_grid_row_29_responsive align_center">
522
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
523
- </li>
524
- <li class="css3_grid_row_30 row_style_4 css3_grid_row_30_responsive align_center">
525
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
526
- </li>
527
- <li class="css3_grid_row_31 row_style_2 css3_grid_row_31_responsive align_center">
528
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
529
- </li>
530
- <li class="css3_grid_row_32 row_style_4 css3_grid_row_32_responsive align_center">
531
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
532
- </li>
533
- <li class="css3_grid_row_33 row_style_2 css3_grid_row_33_responsive align_center">
534
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
535
- </li>
536
- <li class="css3_grid_row_34 row_style_4 css3_grid_row_34_responsive align_center">
537
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
538
- </li>
539
- <li class="css3_grid_row_35 row_style_2 css3_grid_row_35_responsive align_center">
540
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
541
- </li>
542
- <li class="css3_grid_row_36 row_style_4 css3_grid_row_36_responsive align_center">
543
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
544
- </li>
545
- <li class="css3_grid_row_37 row_style_2 css3_grid_row_37_responsive align_center">
546
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
547
- </li>
548
- <li class="css3_grid_row_38 row_style_4 css3_grid_row_38_responsive align_center">
549
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
550
- </li>
551
- <li class="css3_grid_row_39 row_style_2 css3_grid_row_39_responsive align_center">
552
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
553
- </li>
554
- <li class="css3_grid_row_40 row_style_4 css3_grid_row_40_responsive align_center">
555
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
556
- </li>
557
- <li class="css3_grid_row_41 row_style_2 css3_grid_row_41_responsive align_center">
558
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
559
- </li>
560
- <li class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
561
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/gallery-bank-developer-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
562
- </li>
563
- </ul>
564
- </div>
565
- <div class="column_1 column_5_responsive">
566
- <div class="column_ribbon ribbon_style1_off35"></div>
567
- <ul>
568
- <li class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive radius5_topright">
569
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Extended</h2></span></span>
570
- </li>
571
- <li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
572
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>549</span></h1><h3 class="col1">one time</h3></span></span>
573
- </li>
574
- <li class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
575
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>50</span></span></span>
576
- </li>
577
- <li class="css3_grid_row_3 row_style_1 css3_grid_row_3_responsive align_center">
578
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
579
- </li>
580
- <li class="css3_grid_row_4 row_style_3 css3_grid_row_4_responsive align_center">
581
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Year </span></span></span>
582
- </li>
583
- <li class="css3_grid_row_5 row_style_1 css3_grid_row_5_responsive align_center">
584
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
585
- </li>
586
- <li class="css3_grid_row_6 row_style_3 css3_grid_row_6_responsive align_center">
587
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited </span></span></span>
588
- </li>
589
- <li class="css3_grid_row_7 row_style_1 css3_grid_row_7_responsive align_center">
590
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited </span></span></span>
591
- </li>
592
- <li class="css3_grid_row_8 row_style_3 css3_grid_row_8_responsive align_center">
593
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
594
- </li>
595
- <li class="css3_grid_row_9 row_style_1 css3_grid_row_9_responsive align_center">
596
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
597
- </li>
598
- <li class="css3_grid_row_10 row_style_3 css3_grid_row_10_responsive align_center">
599
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
600
- </li>
601
- <li class="css3_grid_row_11 row_style_1 css3_grid_row_11_responsive align_center">
602
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
603
- </li>
604
- <li class="css3_grid_row_12 row_style_3 css3_grid_row_12_responsive align_center">
605
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
606
- </li>
607
- <li class="css3_grid_row_13 row_style_1 css3_grid_row_13_responsive align_center">
608
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
609
- </li>
610
- <li class="css3_grid_row_14 row_style_3 css3_grid_row_14_responsive align_center">
611
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
612
- </li>
613
- <li class="css3_grid_row_15 row_style_1 css3_grid_row_15_responsive align_center">
614
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
615
- </li>
616
- <li class="css3_grid_row_16 row_style_3 css3_grid_row_16_responsive align_center">
617
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
618
- </li>
619
- <li class="css3_grid_row_17 row_style_1 css3_grid_row_17_responsive align_center">
620
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
621
- </li>
622
- <li class="css3_grid_row_18 row_style_3 css3_grid_row_18_responsive align_center">
623
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
624
- </li>
625
- <li class="css3_grid_row_19 row_style_1 css3_grid_row_19_responsive align_center">
626
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
627
- </li>
628
- <li class="css3_grid_row_20 row_style_3 css3_grid_row_20_responsive align_center">
629
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
630
- </li>
631
- <li class="css3_grid_row_21 row_style_1 css3_grid_row_21_responsive align_center">
632
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
633
- </li>
634
- <li class="css3_grid_row_22 row_style_3 css3_grid_row_22_responsive align_center">
635
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
636
- </li>
637
- <li class="css3_grid_row_23 row_style_1 css3_grid_row_23_responsive align_center">
638
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
639
- </li>
640
- <li class="css3_grid_row_24 row_style_3 css3_grid_row_24_responsive align_center">
641
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
642
- </li>
643
- <li class="css3_grid_row_25 row_style_1 css3_grid_row_25_responsive align_center">
644
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
645
- </li>
646
- <li class="css3_grid_row_26 row_style_3 css3_grid_row_26_responsive align_center">
647
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
648
- </li>
649
- <li class="css3_grid_row_27 row_style_1 css3_grid_row_27_responsive align_center">
650
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
651
- </li>
652
- <li class="css3_grid_row_28 row_style_3 css3_grid_row_28_responsive align_center">
653
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
654
- </li>
655
- <li class="css3_grid_row_29 row_style_1 css3_grid_row_29_responsive align_center">
656
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
657
- </li>
658
- <li class="css3_grid_row_30 row_style_3 css3_grid_row_30_responsive align_center">
659
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
660
- </li>
661
- <li class="css3_grid_row_31 row_style_1 css3_grid_row_31_responsive align_center">
662
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
663
- </li>
664
- <li class="css3_grid_row_32 row_style_3 css3_grid_row_32_responsive align_center">
665
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
666
- </li>
667
- <li class="css3_grid_row_33 row_style_1 css3_grid_row_33_responsive align_center">
668
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
669
- </li>
670
- <li class="css3_grid_row_34 row_style_3 css3_grid_row_34_responsive align_center">
671
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
672
- </li>
673
- <li class="css3_grid_row_35 row_style_1 css3_grid_row_35_responsive align_center">
674
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
675
- </li>
676
- <li class="css3_grid_row_36 row_style_3 css3_grid_row_36_responsive align_center">
677
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
678
- </li>
679
- <li class="css3_grid_row_37 row_style_1 css3_grid_row_37_responsive align_center">
680
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
681
- </li>
682
- <li class="css3_grid_row_38 row_style_3 css3_grid_row_38_responsive align_center">
683
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
684
- </li>
685
- <li class="css3_grid_row_39 row_style_1 css3_grid_row_39_responsive align_center">
686
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
687
- </li>
688
- <li class="css3_grid_row_40 row_style_3 css3_grid_row_40_responsive align_center">
689
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
690
- </li>
691
- <li class="css3_grid_row_41 row_style_1 css3_grid_row_41_responsive align_center">
692
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
693
- </li>
694
- <li class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
695
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/gallery-bank-extended-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
696
- </li>
697
- </ul>
698
  </div>
699
  </div>
700
  </div>
@@ -702,34 +731,36 @@ if (isset($_REQUEST["msg"]))
702
  </div>
703
  </div>
704
  </div>
705
- </div>
706
- <div id="postbox-container-1" class="postbox-container">
707
- <div id="priority_side" class="meta-box-sortables">
708
- <div id="gallery_bank_get_started" class="postbox" >
709
- <div class="handlediv" data-target="#uxdownload" title="Click to toggle" data-toggle="collapse"><br></div>
710
- <h3 class="hndle"><span><?php _e("Need Support Help?", gallery_bank); ?></span></h3>
711
- <div class="inside">
712
- <div id="uxdownload" class="gallery_bank_getting_started">
713
- <p>
714
- We’re interested in hearing from you.</p>
715
-
716
- <p>We will help you through the process and try to provide the answers.</p>
717
-
718
- <p>If you need to know more about our services or have something to share, please feel free to contact us.
719
- </p>
720
- <p>We commit to responses within 24 hours on weekdays – generally within hours during week day work hours.</p>
721
- <p>
722
- <a class="btn btn-danger" href="http://tech-banker.com/get-in-touch/" target="_blank" style="text-decoration: none;"><?php _e("Let's get in touch!", gallery_bank); ?></a>
723
- </p>
724
- <img src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/img.png";?>" style="max-width:100%;cursor: pointer;" />
725
- <p>
726
- <a class="btn btn-danger" href="http://tech-banker.com/gallery-bank/" target="_blank" style="text-decoration: none;"><?php _e("Order Now!", gallery_bank); ?></a>
727
- </p>
728
  </div>
729
  </div>
730
  </div>
731
  </div>
732
  </div>
733
  </div>
734
- </div>
735
- </form>
 
 
1
  <?php
2
+ global $wpdb,$current_user,$user_role_permission;
3
+ $role = $wpdb->prefix . "capabilities";
4
+ $current_user->role = array_keys($current_user->$role);
5
+ $role = $current_user->role[0];
6
+ switch($role)
7
  {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
23
+ }
24
+ if (!current_user_can($user_role_permission))
25
+ {
26
+ return;
27
+ }
28
+ else
29
+ {
30
+ if (isset($_REQUEST["msg"]))
31
  {
32
+ if(esc_attr($_REQUEST["msg"]) == "no")
33
+ {
34
+ update_option("gallery-bank-banner", "no");
35
+ ?>
36
+ <style type="text/css" >
37
+ #ux_buy_pro
38
+ {
39
+ display:none;
40
+ }
41
+ </style>
42
+ <?php
43
+ }
44
  }
45
+ ?>
46
+ <form id="gallery_bank_pricing" class="layout-form">
47
+ <div id="poststuff" style="width: 99% !important;">
48
+ <div id="post-body" class="metabox-holder columns-2">
49
+ <div id="postbox-container-2" class="postbox-container">
50
+ <div id="advanced" class="meta-box-sortables">
51
+ <div id="gallery_bank_get_started" class="postbox" >
52
+ <div class="handlediv" data-target="#ux_gallery_bank_pricing" title="Click to toggle" data-toggle="collapse"><br></div>
53
+ <h3 class="hndle"><span><?php _e("Gallery Bank Pricing", gallery_bank); ?></span></h3>
54
+ <div class="inside">
55
+ <div id="ux_gallery_bank_pricing" class="gallery_bank_layout">
56
+ <div class="wpb_wrapper" style="margin: 15px 0 15px 0;">
57
+ <div id="Table_t1_s11" class="p_table_responsive p_table_1 p_table_1_11 css3_grid_clearfix p_table_hover_disabled">
58
+ <div class="caption_column column_0_responsive">
59
+ <ul>
60
+ <li style="text-align: left;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive radius5_topleft">
61
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"></span></span>
62
+ </li>
63
+ <li style="text-align: left;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive">
64
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="caption">Choose <span>your</span> Plan</h2></span></span>
65
+ </li>
66
+ <li style="text-align: left;" class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive">
67
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Number of websites that can use the plugin on purchase of a License.</span>Domains per License</span></span></span></span>
68
+ </li>
69
+ <li style="text-align: left;" class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive">
70
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Automatic Plugin Update Notification with New Features, Bug Fixing and much more....</span><strong>Plugin Updates</strong></span></span></span></span>
71
+ </li>
72
+ <li style="text-align: left;" class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive">
73
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Technical Support by the Development Team for Installation, Bug Fixing, Plugin Compatibility Issues.</span><strong>Technical Support</strong></span></span></span></span>
74
+ </li>
75
+ <li style="text-align: left;" class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive">
76
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Multi-Lingual Facility allows the plugin to be used in 25 languages.</span>Multi-Lingual</span></span></span></span>
77
+ </li>
78
+ <li style="text-align: left;" class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive">
79
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Number of Albums allowed to be Published.</span>Number of Albums</span></span></span></span>
80
+ </li>
81
+ <li style="text-align: left;" class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive">
82
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Number of Images per Album allowed to be Published.</span>Images per Album</span></span></span></span>
83
+ </li>
84
+ <li style="text-align: left;" class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive">
85
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Optimal Viewing Experience across a wide range of devices.</span> Responsive Gallery</span></span></span></span>
86
+ </li>
87
+ <li style="text-align: left;" class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive">
88
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Shortcode Wizard to easily insert albums/images to any Page/Post.</span>Shortcode Wizard</span></span></span></span>
89
+ </li>
90
+ <li style="text-align: left;" class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive">
91
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Bulk Upload of Images in single time.</span>Bulk Upload of Images</span></span></span></span>
92
+ </li>
93
+ <li style="text-align: left;" class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive">
94
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Lightbox is a script used to overlay images on the current page. It's a snap to setup and works on all modern browsers.</span>Lightbox</span></span></span></span>
95
+ </li>
96
+ <li style="text-align: left;" class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive">
97
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Basic Thumbnail gallery is a grid of images that when clicked on, open in a pop-up full view.</span>Basic Thumbnail Gallery</span></span></span></span>
98
+ </li>
99
+ <li style="text-align: left;" class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive">
100
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Displays images inside of the album is in a Grid Format.</span>Grid Album Format</span></span></span></span>
101
+ </li>
102
+ <li style="text-align: left;" class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive">
103
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Each thumbnail in the Compact Album links to the gallery you include in your album, along with the title of the gallery with the amount of images per gallery.</span>Compact Album</span></span></span></span>
104
+ </li>
105
+ <li style="text-align: left;" class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive">
106
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Extended Album displays as a list, with thumbnails to the left. Alongside the right of the thumbnail is the title and description of the gallery and amount of images within the gallery.</span>Extended Album</span></span></span></span>
107
+ </li>
108
+ <li style="text-align: left;" class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive">
109
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Display Gallery that when clicked on, open in a popup full view.</span>Individual Images</span></span></span></span>
110
+ </li>
111
+ <li style="text-align: left;" class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive">
112
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Thumbnail of Individual Album links to a Gallery you include in your Album</span>Individual Album</span></span></span></span>
113
+ </li>
114
+ <li style="text-align: left;" class="css3_grid_row_18 row_style_4 css3_grid_row_18_responsive">
115
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Masonry is a JavaScript grid layout library. It works by placing elements in optimal position based on available vertical space.</span>Masonry Gallery Format </span></span></span></span>
116
+ </li>
117
+ <li style="text-align: left;" class="css3_grid_row_19 row_style_2 css3_grid_row_19_responsive">
118
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Cool slide-film style galleries – great for displaying non-cropped thumbnails in clean grids.</span>Filmstrip Gallery Format</span></span></span></span>
119
+ </li>
120
+ <li style="text-align: left;" class="css3_grid_row_20 row_style_4 css3_grid_row_20_responsive">
121
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Vertically stacked, thumbnails images common to photography blogs.</span>Blog Style Gallery Format</span></span></span></span>
122
+ </li>
123
+ <li style="text-align: left;" class="css3_grid_row_21 row_style_2 css3_grid_row_21_responsive">
124
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Vertically stacked album covers with title and description.</span>List Album Format</span></span></span></span>
125
+ </li>
126
+ <li style="text-align: left;" class="css3_grid_row_22 row_style_4 css3_grid_row_22_responsive">
127
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Mobile-friendly, non-flash slideshows with nice transitions.</span>Slideshow Gallery</span></span></span></span>
128
+ </li>
129
+ <li style="text-align: left;" class="css3_grid_row_23 row_style_2 css3_grid_row_23_responsive">
130
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>You can give your photos and videos a "tag", which is like a keyword or category label.</span>Tags</span></span></span></span>
131
+ </li>
132
+ <li style="text-align: left;" class="css3_grid_row_24 row_style_4 css3_grid_row_24_responsive">
133
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>You can upload video links from Youtube, Vimeo and other supportive Media Sharing sites</span>Videos</span></span></span></span>
134
+ </li>
135
+ <li style="text-align: left;" class="css3_grid_row_25 row_style_2 css3_grid_row_25_responsive">
136
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Settings for Image Thumbnails, Lightbox, Albums, Layout and much more.</span>Global Settings</span></span></span></span>
137
+ </li>
138
+ <li style="text-align: left;" class="css3_grid_row_26 row_style_4 css3_grid_row_26_responsive">
139
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Allowed to customize thumbnails with any size suitable for you. This may howerver disort the image if not used with TimThumb.</span>Custom Size Thumbnails</span></span></span></span>
140
+ </li>
141
+ <li style="text-align: left;" class="css3_grid_row_27 row_style_2 css3_grid_row_27_responsive">
142
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>TimThumb is a simple, flexible, PHP script that re-sizes images.</span>TimThumb Script</span></span></span></span>
143
+ </li>
144
+ <li style="text-align: left;" class="css3_grid_row_28 row_style_4 css3_grid_row_28_responsive">
145
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Pagination allows number of images allowed on a single page and provide navigation for the rest.</span>Pagination for Images</span></span></span></span>
146
+ </li>
147
+ <li style="text-align: left;" class="css3_grid_row_29 row_style_2 css3_grid_row_29_responsive">
148
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Sorting of Image allows to re-order images according to different parameters so as per user choice by simply dragging and dropping it.</span>Sorting of Images</span></span></span></span>
149
+ </li>
150
+ <li style="text-align: left;" class="css3_grid_row_30 row_style_4 css3_grid_row_30_responsive">
151
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Sorting of Albums allows to re-order images according to different parameters so as per user choice by simply dragging and dropping it.</span>Sorting of Albums</span></span></span></span>
152
+ </li>
153
+ <li style="text-align: left;" class="css3_grid_row_31 row_style_2 css3_grid_row_31_responsive">
154
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Animation Effects to impliment on Thumbnails.</span>Animation Effects</span></span></span></span>
155
+ </li>
156
+ <li style="text-align: left;" class="css3_grid_row_32 row_style_4 css3_grid_row_32_responsive">
157
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Special Effects to impliment on Thumbnails.</span>Special Effects</span></span></span></span>
158
+ </li>
159
+ <li style="text-align: left;" class="css3_grid_row_33 row_style_2 css3_grid_row_33_responsive">
160
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Restore Plugin back to default settings.</span>Restore Factory Settings</span></span></span></span>
161
+ </li>
162
+ <li style="text-align: left;" class="css3_grid_row_34 row_style_4 css3_grid_row_34_responsive">
163
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Filters to categorize the images by different names.</span>Filters</span></span></span></span>
164
+ </li>
165
+ <li style="text-align: left;" class="css3_grid_row_35 row_style_2 css3_grid_row_35_responsive">
166
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>With this feature you can rotate images to different directions.</span>Rotation of Thumbnail</span></span></span></span>
167
+ </li>
168
+ <li style="text-align: left;" class="css3_grid_row_36 row_style_4 css3_grid_row_36_responsive">
169
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>You can choose Pretty Photo, ColorBox, Photo Swipe, Foo Box, Fancy Box, Lightbox 2, GB Lightbox for display of Images. (You need to Purchase FOO BOX separately).</span>Different Lightboxes</span></span></span></span>
170
+ </li>
171
+ <li style="text-align: left;" class="css3_grid_row_37 row_style_2 css3_grid_row_37_responsive">
172
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Social Sharing makes easy to share your images across social networks with one click.</span>Social Sharing</span></span></span></span>
173
+ </li>
174
+ <li style="text-align: left;" class="css3_grid_row_38 row_style_4 css3_grid_row_38_responsive">
175
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Commenting on Images allows your users to post comments on images.</span>Commenting on Images</span></span></span></span>
176
+ </li>
177
+ <li style="text-align: left;" class="css3_grid_row_39 row_style_2 css3_grid_row_39_responsive">
178
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Widgets allows albums and images to be shown in your sidebar, footer, header etc.</span>Widgets</span></span></span></span>
179
+ </li>
180
+ <li style="text-align: left;" class="css3_grid_row_40 row_style_4 css3_grid_row_40_responsive">
181
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>It allows to delete bulk deletion of images and albums on a single click.</span>Bulk Deletion</span></span></span></span>
182
+ </li>
183
+ <li style="text-align: left;" class="css3_grid_row_41 row_style_2 css3_grid_row_41_responsive">
184
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><span class="css3_grid_tooltip"><span>Purging of albums is used to hard delete the images and thumbnails from the server which are not used anymore.</span>Purging of Albums</span></span></span></span>
185
+ </li>
186
+ <li style="text-align: left;" class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
187
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"></span></span>
188
+ </li>
189
+ </ul>
190
+ </div>
191
+ <div class="column_2 column_2_responsive">
192
+ <div class="column_ribbon ribbon_style1_save"></div>
193
+ <ul>
194
+ <li style="text-align: center;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
195
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col2">Eco</h2></span></span>
196
+ </li>
197
+ <li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
198
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>11</span></h1><h3 class="col1">one time</h3></span></span>
199
+ </li>
200
+ <li style="text-align: center;" class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
201
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
202
+ </li>
203
+ <li style="text-align: center;" class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive align_center">
204
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
205
+ </li>
206
+ <li style="text-align: center;" class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive align_center">
207
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Week</span></span></span>
208
+ </li>
209
+ <li style="text-align: center;" class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive align_center">
210
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
211
+ </li>
212
+ <li style="text-align: center;" class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive align_center">
213
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
214
+ </li>
215
+ <li style="text-align: center;" class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive align_center">
216
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
217
+ </li>
218
+ <li style="text-align: center;" class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive align_center">
219
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
220
+ </li>
221
+ <li style="text-align: center;" class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive align_center">
222
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
223
+ </li>
224
+ <li style="text-align: center;" class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive align_center">
225
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
226
+ </li>
227
+ <li style="text-align: center;" class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive align_center">
228
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
229
+ </li>
230
+ <li style="text-align: center;" class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive align_center">
231
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
232
+ </li>
233
+ <li style="text-align: center;" class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive align_center">
234
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
235
+ </li>
236
+ <li style="text-align: center;" class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive align_center">
237
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
238
+ </li>
239
+ <li style="text-align: center;" class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive align_center">
240
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
241
+ </li>
242
+ <li style="text-align: center;" class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive align_center">
243
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
244
+ </li>
245
+ <li style="text-align: center;" class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive align_center">
246
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
247
+ </li>
248
+ <li style="text-align: center;" class="css3_grid_row_18 row_style_4 css3_grid_row_18_responsive align_center">
249
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
250
+ </li>
251
+ <li style="text-align: center;" class="css3_grid_row_19 row_style_2 css3_grid_row_19_responsive align_center">
252
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
253
+ </li>
254
+ <li style="text-align: center;" class="css3_grid_row_20 row_style_4 css3_grid_row_20_responsive align_center">
255
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
256
+ </li>
257
+ <li style="text-align: center;" class="css3_grid_row_21 row_style_2 css3_grid_row_21_responsive align_center">
258
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
259
+ </li>
260
+ <li style="text-align: center;" class="css3_grid_row_22 row_style_4 css3_grid_row_22_responsive align_center">
261
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
262
+ </li>
263
+ <li style="text-align: center;" class="css3_grid_row_23 row_style_2 css3_grid_row_23_responsive align_center">
264
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
265
+ </li>
266
+ <li style="text-align: center;" class="css3_grid_row_24 row_style_4 css3_grid_row_24_responsive align_center">
267
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
268
+ </li>
269
+ <li style="text-align: center;" class="css3_grid_row_25 row_style_2 css3_grid_row_25_responsive align_center">
270
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
271
+ </li>
272
+ <li style="text-align: center;" class="css3_grid_row_26 row_style_4 css3_grid_row_26_responsive align_center">
273
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
274
+ </li>
275
+ <li style="text-align: center;" class="css3_grid_row_27 row_style_2 css3_grid_row_27_responsive align_center">
276
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
277
+ </li>
278
+ <li style="text-align: center;" class="css3_grid_row_28 row_style_4 css3_grid_row_28_responsive align_center">
279
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
280
+ </li>
281
+ <li style="text-align: center;" class="css3_grid_row_29 row_style_2 css3_grid_row_29_responsive align_center">
282
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
283
+ </li>
284
+ <li style="text-align: center;" class="css3_grid_row_30 row_style_4 css3_grid_row_30_responsive align_center">
285
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
286
+ </li>
287
+ <li style="text-align: center;" class="css3_grid_row_31 row_style_2 css3_grid_row_31_responsive align_center">
288
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
289
+ </li>
290
+ <li style="text-align: center;" class="css3_grid_row_32 row_style_4 css3_grid_row_32_responsive align_center">
291
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
292
+ </li>
293
+ <li style="text-align: center;" class="css3_grid_row_33 row_style_2 css3_grid_row_33_responsive align_center">
294
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
295
+ </li>
296
+ <li style="text-align: center;" class="css3_grid_row_34 row_style_4 css3_grid_row_34_responsive align_center">
297
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
298
+ </li>
299
+ <li style="text-align: center;" class="css3_grid_row_35 row_style_2 css3_grid_row_35_responsive align_center">
300
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
301
+ </li>
302
+ <li style="text-align: center;" class="css3_grid_row_36 row_style_4 css3_grid_row_36_responsive align_center">
303
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
304
+ </li>
305
+ <li style="text-align: center;" class="css3_grid_row_37 row_style_2 css3_grid_row_37_responsive align_center">
306
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
307
+ </li>
308
+ <li style="text-align: center;" class="css3_grid_row_38 row_style_4 css3_grid_row_38_responsive align_center">
309
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
310
+ </li>
311
+ <li style="text-align: center;" class="css3_grid_row_39 row_style_2 css3_grid_row_39_responsive align_center">
312
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
313
+ </li>
314
+ <li style="text-align: center;" class="css3_grid_row_40 row_style_4 css3_grid_row_40_responsive align_center">
315
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
316
+ </li>
317
+ <li style="text-align: center;" class="css3_grid_row_41 row_style_2 css3_grid_row_41_responsive align_center">
318
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/cross_02.png" alt="no"></span></span></span>
319
+ </li>
320
+ <li style="text-align: center;" class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
321
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/gallery-bank-eco-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
322
+ </li>
323
+ </ul>
324
+ </div>
325
+ <div class="column_3 column_3_responsive">
326
+ <div class="column_ribbon ribbon_style2_best"></div>
327
+ <ul>
328
+ <li style="text-align: center;" class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
329
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Pro</h2></span></span>
330
+ </li>
331
+ <li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
332
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>18</span></h1><h3 class="col1">one time</h3></span></span>
333
+ </li>
334
+ <li style="text-align: center;" class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
335
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
336
+ </li>
337
+ <li style="text-align: center;" class="css3_grid_row_3 row_style_1 css3_grid_row_3_responsive align_center">
338
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
339
+ </li>
340
+ <li style="text-align: center;" class="css3_grid_row_4 row_style_3 css3_grid_row_4_responsive align_center">
341
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Month </span></span></span>
342
+ </li>
343
+ <li style="text-align: center;" class="css3_grid_row_5 row_style_1 css3_grid_row_5_responsive align_center">
344
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
345
+ </li>
346
+ <li style="text-align: center;" class="css3_grid_row_6 row_style_3 css3_grid_row_6_responsive align_center">
347
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
348
+ </li>
349
+ <li style="text-align: center;" class="css3_grid_row_7 row_style_1 css3_grid_row_7_responsive align_center">
350
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
351
+ </li>
352
+ <li style="text-align: center;" class="css3_grid_row_8 row_style_3 css3_grid_row_8_responsive align_center">
353
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
354
+ </li>
355
+ <li style="text-align: center;" class="css3_grid_row_9 row_style_1 css3_grid_row_9_responsive align_center">
356
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
357
+ </li>
358
+ <li style="text-align: center;" class="css3_grid_row_10 row_style_3 css3_grid_row_10_responsive align_center">
359
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
360
+ </li>
361
+ <li style="text-align: center;" class="css3_grid_row_11 row_style_1 css3_grid_row_11_responsive align_center">
362
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
363
+ </li>
364
+ <li style="text-align: center;" class="css3_grid_row_12 row_style_3 css3_grid_row_12_responsive align_center">
365
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
366
+ </li>
367
+ <li style="text-align: center;" class="css3_grid_row_13 row_style_1 css3_grid_row_13_responsive align_center">
368
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
369
+ </li>
370
+ <li style="text-align: center;" class="css3_grid_row_14 row_style_3 css3_grid_row_14_responsive align_center">
371
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
372
+ </li>
373
+ <li style="text-align: center;" class="css3_grid_row_15 row_style_1 css3_grid_row_15_responsive align_center">
374
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
375
+ </li>
376
+ <li style="text-align: center;" class="css3_grid_row_16 row_style_3 css3_grid_row_16_responsive align_center">
377
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
378
+ </li>
379
+ <li style="text-align: center;" class="css3_grid_row_17 row_style_1 css3_grid_row_17_responsive align_center">
380
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
381
+ </li>
382
+ <li style="text-align: center;" class="css3_grid_row_18 row_style_3 css3_grid_row_18_responsive align_center">
383
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
384
+ </li>
385
+ <li style="text-align: center;" class="css3_grid_row_19 row_style_1 css3_grid_row_19_responsive align_center">
386
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
387
+ </li>
388
+ <li style="text-align: center;" class="css3_grid_row_20 row_style_3 css3_grid_row_20_responsive align_center">
389
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
390
+ </li>
391
+ <li style="text-align: center;" class="css3_grid_row_21 row_style_1 css3_grid_row_21_responsive align_center">
392
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
393
+ </li>
394
+ <li style="text-align: center;" class="css3_grid_row_22 row_style_3 css3_grid_row_22_responsive align_center">
395
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
396
+ </li>
397
+ <li style="text-align: center;" class="css3_grid_row_23 row_style_1 css3_grid_row_23_responsive align_center">
398
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
399
+ </li>
400
+ <li style="text-align: center;" class="css3_grid_row_24 row_style_3 css3_grid_row_24_responsive align_center">
401
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
402
+ </li>
403
+ <li style="text-align: center;" class="css3_grid_row_25 row_style_1 css3_grid_row_25_responsive align_center">
404
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
405
+ </li>
406
+ <li style="text-align: center;" class="css3_grid_row_26 row_style_3 css3_grid_row_26_responsive align_center">
407
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
408
+ </li>
409
+ <li style="text-align: center;" class="css3_grid_row_27 row_style_1 css3_grid_row_27_responsive align_center">
410
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
411
+ </li>
412
+ <li style="text-align: center;" class="css3_grid_row_28 row_style_3 css3_grid_row_28_responsive align_center">
413
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
414
+ </li>
415
+ <li style="text-align: center;" class="css3_grid_row_29 row_style_1 css3_grid_row_29_responsive align_center">
416
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
417
+ </li>
418
+ <li style="text-align: center;" class="css3_grid_row_30 row_style_3 css3_grid_row_30_responsive align_center">
419
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
420
+ </li>
421
+ <li style="text-align: center;" class="css3_grid_row_31 row_style_1 css3_grid_row_31_responsive align_center">
422
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
423
+ </li>
424
+ <li style="text-align: center;" class="css3_grid_row_32 row_style_3 css3_grid_row_32_responsive align_center">
425
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
426
+ </li>
427
+ <li style="text-align: center;" class="css3_grid_row_33 row_style_1 css3_grid_row_33_responsive align_center">
428
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
429
+ </li>
430
+ <li style="text-align: center;" class="css3_grid_row_34 row_style_3 css3_grid_row_34_responsive align_center">
431
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
432
+ </li>
433
+ <li style="text-align: center;" class="css3_grid_row_35 row_style_1 css3_grid_row_35_responsive align_center">
434
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
435
+ </li>
436
+ <li style="text-align: center;" class="css3_grid_row_36 row_style_3 css3_grid_row_36_responsive align_center">
437
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
438
+ </li>
439
+ <li style="text-align: center;" class="css3_grid_row_37 row_style_1 css3_grid_row_37_responsive align_center">
440
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
441
+ </li>
442
+ <li style="text-align: center;" class="css3_grid_row_38 row_style_3 css3_grid_row_38_responsive align_center">
443
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
444
+ </li>
445
+ <li style="text-align: center;" class="css3_grid_row_39 row_style_1 css3_grid_row_39_responsive align_center">
446
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
447
+ </li>
448
+ <li style="text-align: center;" class="css3_grid_row_40 row_style_3 css3_grid_row_40_responsive align_center">
449
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
450
+ </li>
451
+ <li style="text-align: center;" class="css3_grid_row_41 row_style_1 css3_grid_row_41_responsive align_center">
452
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
453
+ </li>
454
+ <li style="text-align: center;" class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
455
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/gallery-bank-pro-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
456
+ </li>
457
+ </ul>
458
+ </div>
459
+ <div class="column_4 column_4_responsive">
460
+ <div class="column_ribbon ribbon_style1_off30"></div>
461
+ <ul>
462
+ <li class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive">
463
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Developer</h2></span></span>
464
+ </li>
465
+ <li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
466
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>63</span></h1><h3 class="col1">one time</h3></span></span>
467
+ </li>
468
+ <li class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
469
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>5</span></span></span>
470
+ </li>
471
+ <li class="css3_grid_row_3 row_style_2 css3_grid_row_3_responsive align_center">
472
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
473
+ </li>
474
+ <li class="css3_grid_row_4 row_style_4 css3_grid_row_4_responsive align_center">
475
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Year </span></span></span>
476
+ </li>
477
+ <li class="css3_grid_row_5 row_style_2 css3_grid_row_5_responsive align_center">
478
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
479
+ </li>
480
+ <li class="css3_grid_row_6 row_style_4 css3_grid_row_6_responsive align_center">
481
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited </span></span></span>
482
+ </li>
483
+ <li class="css3_grid_row_7 row_style_2 css3_grid_row_7_responsive align_center">
484
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited</span></span></span>
485
+ </li>
486
+ <li class="css3_grid_row_8 row_style_4 css3_grid_row_8_responsive align_center">
487
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
488
+ </li>
489
+ <li class="css3_grid_row_9 row_style_2 css3_grid_row_9_responsive align_center">
490
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
491
+ </li>
492
+ <li class="css3_grid_row_10 row_style_4 css3_grid_row_10_responsive align_center">
493
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
494
+ </li>
495
+ <li class="css3_grid_row_11 row_style_2 css3_grid_row_11_responsive align_center">
496
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
497
+ </li>
498
+ <li class="css3_grid_row_12 row_style_4 css3_grid_row_12_responsive align_center">
499
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
500
+ </li>
501
+ <li class="css3_grid_row_13 row_style_2 css3_grid_row_13_responsive align_center">
502
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
503
+ </li>
504
+ <li class="css3_grid_row_14 row_style_4 css3_grid_row_14_responsive align_center">
505
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
506
+ </li>
507
+ <li class="css3_grid_row_15 row_style_2 css3_grid_row_15_responsive align_center">
508
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
509
+ </li>
510
+ <li class="css3_grid_row_16 row_style_4 css3_grid_row_16_responsive align_center">
511
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
512
+ </li>
513
+ <li class="css3_grid_row_17 row_style_2 css3_grid_row_17_responsive align_center">
514
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
515
+ </li>
516
+ <li class="css3_grid_row_18 row_style_4 css3_grid_row_18_responsive align_center">
517
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
518
+ </li>
519
+ <li class="css3_grid_row_19 row_style_2 css3_grid_row_19_responsive align_center">
520
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
521
+ </li>
522
+ <li class="css3_grid_row_20 row_style_4 css3_grid_row_20_responsive align_center">
523
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
524
+ </li>
525
+ <li class="css3_grid_row_21 row_style_2 css3_grid_row_21_responsive align_center">
526
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
527
+ </li>
528
+ <li class="css3_grid_row_22 row_style_4 css3_grid_row_22_responsive align_center">
529
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
530
+ </li>
531
+ <li class="css3_grid_row_23 row_style_2 css3_grid_row_23_responsive align_center">
532
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
533
+ </li>
534
+ <li class="css3_grid_row_24 row_style_4 css3_grid_row_24_responsive align_center">
535
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
536
+ </li>
537
+ <li class="css3_grid_row_25 row_style_2 css3_grid_row_25_responsive align_center">
538
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
539
+ </li>
540
+ <li class="css3_grid_row_26 row_style_4 css3_grid_row_26_responsive align_center">
541
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
542
+ </li>
543
+ <li class="css3_grid_row_27 row_style_2 css3_grid_row_27_responsive align_center">
544
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
545
+ </li>
546
+ <li class="css3_grid_row_28 row_style_4 css3_grid_row_28_responsive align_center">
547
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
548
+ </li>
549
+ <li class="css3_grid_row_29 row_style_2 css3_grid_row_29_responsive align_center">
550
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
551
+ </li>
552
+ <li class="css3_grid_row_30 row_style_4 css3_grid_row_30_responsive align_center">
553
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
554
+ </li>
555
+ <li class="css3_grid_row_31 row_style_2 css3_grid_row_31_responsive align_center">
556
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
557
+ </li>
558
+ <li class="css3_grid_row_32 row_style_4 css3_grid_row_32_responsive align_center">
559
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
560
+ </li>
561
+ <li class="css3_grid_row_33 row_style_2 css3_grid_row_33_responsive align_center">
562
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
563
+ </li>
564
+ <li class="css3_grid_row_34 row_style_4 css3_grid_row_34_responsive align_center">
565
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
566
+ </li>
567
+ <li class="css3_grid_row_35 row_style_2 css3_grid_row_35_responsive align_center">
568
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
569
+ </li>
570
+ <li class="css3_grid_row_36 row_style_4 css3_grid_row_36_responsive align_center">
571
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
572
+ </li>
573
+ <li class="css3_grid_row_37 row_style_2 css3_grid_row_37_responsive align_center">
574
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
575
+ </li>
576
+ <li class="css3_grid_row_38 row_style_4 css3_grid_row_38_responsive align_center">
577
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
578
+ </li>
579
+ <li class="css3_grid_row_39 row_style_2 css3_grid_row_39_responsive align_center">
580
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
581
+ </li>
582
+ <li class="css3_grid_row_40 row_style_4 css3_grid_row_40_responsive align_center">
583
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
584
+ </li>
585
+ <li class="css3_grid_row_41 row_style_2 css3_grid_row_41_responsive align_center">
586
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
587
+ </li>
588
+ <li class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
589
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/gallery-bank-developer-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
590
+ </li>
591
+ </ul>
592
+ </div>
593
+ <div class="column_1 column_5_responsive">
594
+ <div class="column_ribbon ribbon_style1_off35"></div>
595
+ <ul>
596
+ <li class="css3_grid_row_0 header_row_1 align_center css3_grid_row_0_responsive radius5_topright">
597
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Extended</h2></span></span>
598
+ </li>
599
+ <li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
600
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>549</span></h1><h3 class="col1">one time</h3></span></span>
601
+ </li>
602
+ <li class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
603
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>50</span></span></span>
604
+ </li>
605
+ <li class="css3_grid_row_3 row_style_1 css3_grid_row_3_responsive align_center">
606
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
607
+ </li>
608
+ <li class="css3_grid_row_4 row_style_3 css3_grid_row_4_responsive align_center">
609
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1 Year </span></span></span>
610
+ </li>
611
+ <li class="css3_grid_row_5 row_style_1 css3_grid_row_5_responsive align_center">
612
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
613
+ </li>
614
+ <li class="css3_grid_row_6 row_style_3 css3_grid_row_6_responsive align_center">
615
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited </span></span></span>
616
+ </li>
617
+ <li class="css3_grid_row_7 row_style_1 css3_grid_row_7_responsive align_center">
618
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>Unlimited </span></span></span>
619
+ </li>
620
+ <li class="css3_grid_row_8 row_style_3 css3_grid_row_8_responsive align_center">
621
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
622
+ </li>
623
+ <li class="css3_grid_row_9 row_style_1 css3_grid_row_9_responsive align_center">
624
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
625
+ </li>
626
+ <li class="css3_grid_row_10 row_style_3 css3_grid_row_10_responsive align_center">
627
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
628
+ </li>
629
+ <li class="css3_grid_row_11 row_style_1 css3_grid_row_11_responsive align_center">
630
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
631
+ </li>
632
+ <li class="css3_grid_row_12 row_style_3 css3_grid_row_12_responsive align_center">
633
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
634
+ </li>
635
+ <li class="css3_grid_row_13 row_style_1 css3_grid_row_13_responsive align_center">
636
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
637
+ </li>
638
+ <li class="css3_grid_row_14 row_style_3 css3_grid_row_14_responsive align_center">
639
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
640
+ </li>
641
+ <li class="css3_grid_row_15 row_style_1 css3_grid_row_15_responsive align_center">
642
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
643
+ </li>
644
+ <li class="css3_grid_row_16 row_style_3 css3_grid_row_16_responsive align_center">
645
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
646
+ </li>
647
+ <li class="css3_grid_row_17 row_style_1 css3_grid_row_17_responsive align_center">
648
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
649
+ </li>
650
+ <li class="css3_grid_row_18 row_style_3 css3_grid_row_18_responsive align_center">
651
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
652
+ </li>
653
+ <li class="css3_grid_row_19 row_style_1 css3_grid_row_19_responsive align_center">
654
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
655
+ </li>
656
+ <li class="css3_grid_row_20 row_style_3 css3_grid_row_20_responsive align_center">
657
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
658
+ </li>
659
+ <li class="css3_grid_row_21 row_style_1 css3_grid_row_21_responsive align_center">
660
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
661
+ </li>
662
+ <li class="css3_grid_row_22 row_style_3 css3_grid_row_22_responsive align_center">
663
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
664
+ </li>
665
+ <li class="css3_grid_row_23 row_style_1 css3_grid_row_23_responsive align_center">
666
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
667
+ </li>
668
+ <li class="css3_grid_row_24 row_style_3 css3_grid_row_24_responsive align_center">
669
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
670
+ </li>
671
+ <li class="css3_grid_row_25 row_style_1 css3_grid_row_25_responsive align_center">
672
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
673
+ </li>
674
+ <li class="css3_grid_row_26 row_style_3 css3_grid_row_26_responsive align_center">
675
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
676
+ </li>
677
+ <li class="css3_grid_row_27 row_style_1 css3_grid_row_27_responsive align_center">
678
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
679
+ </li>
680
+ <li class="css3_grid_row_28 row_style_3 css3_grid_row_28_responsive align_center">
681
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
682
+ </li>
683
+ <li class="css3_grid_row_29 row_style_1 css3_grid_row_29_responsive align_center">
684
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
685
+ </li>
686
+ <li class="css3_grid_row_30 row_style_3 css3_grid_row_30_responsive align_center">
687
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
688
+ </li>
689
+ <li class="css3_grid_row_31 row_style_1 css3_grid_row_31_responsive align_center">
690
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
691
+ </li>
692
+ <li class="css3_grid_row_32 row_style_3 css3_grid_row_32_responsive align_center">
693
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
694
+ </li>
695
+ <li class="css3_grid_row_33 row_style_1 css3_grid_row_33_responsive align_center">
696
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
697
+ </li>
698
+ <li class="css3_grid_row_34 row_style_3 css3_grid_row_34_responsive align_center">
699
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
700
+ </li>
701
+ <li class="css3_grid_row_35 row_style_1 css3_grid_row_35_responsive align_center">
702
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
703
+ </li>
704
+ <li class="css3_grid_row_36 row_style_3 css3_grid_row_36_responsive align_center">
705
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
706
+ </li>
707
+ <li class="css3_grid_row_37 row_style_1 css3_grid_row_37_responsive align_center">
708
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
709
+ </li>
710
+ <li class="css3_grid_row_38 row_style_3 css3_grid_row_38_responsive align_center">
711
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
712
+ </li>
713
+ <li class="css3_grid_row_39 row_style_1 css3_grid_row_39_responsive align_center">
714
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
715
+ </li>
716
+ <li class="css3_grid_row_40 row_style_3 css3_grid_row_40_responsive align_center">
717
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
718
+ </li>
719
+ <li class="css3_grid_row_41 row_style_1 css3_grid_row_41_responsive align_center">
720
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span><img src="http://tech-banker.com/wp-content/plugins/css3_web_pricing_tables_grids/img/tick_02.png" alt="yes"></span></span></span>
721
+ </li>
722
+ <li class="css3_grid_row_42 footer_row css3_grid_row_42_responsive">
723
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><a href="http://tech-banker.com/product/gallery-bank-extended-edition/" target="_blank" class="sign_up sign_up_yellow radius3">Order Now!</a></span></span>
724
+ </li>
725
+ </ul>
726
+ </div>
727
  </div>
728
  </div>
729
  </div>
731
  </div>
732
  </div>
733
  </div>
734
+ <div id="postbox-container-1" class="postbox-container">
735
+ <div id="priority_side" class="meta-box-sortables">
736
+ <div id="gallery_bank_get_started" class="postbox" >
737
+ <div class="handlediv" data-target="#uxdownload" title="Click to toggle" data-toggle="collapse"><br></div>
738
+ <h3 class="hndle"><span><?php _e("Need Support Help?", gallery_bank); ?></span></h3>
739
+ <div class="inside">
740
+ <div id="uxdownload" class="gallery_bank_getting_started">
741
+ <p>
742
+ We’re interested in hearing from you.</p>
743
+
744
+ <p>We will help you through the process and try to provide the answers.</p>
745
+
746
+ <p>If you need to know more about our services or have something to share, please feel free to contact us.
747
+ </p>
748
+ <p>We commit to responses within 24 hours on weekdays – generally within hours during week day work hours.</p>
749
+ <p>
750
+ <a class="btn btn-danger" href="http://tech-banker.com/get-in-touch/" target="_blank" style="text-decoration: none;"><?php _e("Let's get in touch!", gallery_bank); ?></a>
751
+ </p>
752
+ <img src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/img.png";?>" style="max-width:100%;cursor: pointer;" />
753
+ <p>
754
+ <a class="btn btn-danger" href="http://tech-banker.com/gallery-bank/" target="_blank" style="text-decoration: none;"><?php _e("Order Now!", gallery_bank); ?></a>
755
+ </p>
756
+ </div>
757
  </div>
758
  </div>
759
  </div>
760
  </div>
761
  </div>
762
  </div>
763
+ </form>
764
+ <?php
765
+ }
766
+ ?>
views/settings.php CHANGED
@@ -1,790 +1,679 @@
1
  <?php
2
  global $wpdb, $current_user,$wp_version;
3
-
4
- $album_css = $wpdb->get_results
5
- (
6
- "SELECT * FROM " . gallery_bank_settings()
7
- );
8
- if (count($album_css) != 0) {
9
- $setting_keys = array();
10
- for ($flag = 0; $flag < count($album_css); $flag++) {
11
- array_push($setting_keys, $album_css[$flag]->setting_key);
12
- }
13
- $index = array_search("thumbnails_custom_enable", $setting_keys);
14
- $thumbnails_custom_enable = intval($album_css[$index]->setting_value);
15
-
16
- $index = array_search("thumbnails_width", $setting_keys);
17
- $thumbnails_width = intval($album_css[$index]->setting_value);
18
-
19
- $index = array_search("thumbnails_height", $setting_keys);
20
- $thumbnails_height = intval($album_css[$index]->setting_value);
21
-
22
- $index = array_search("thumbnails_opacity", $setting_keys);
23
- $thumbnails_opacity = doubleval($album_css[$index]->setting_value);
24
-
25
- $index = array_search("thumbnails_border_size", $setting_keys);
26
- $thumbnails_border_size = intval($album_css[$index]->setting_value);
27
-
28
- $index = array_search("thumbnails_border_radius", $setting_keys);
29
- $thumbnails_border_radius = intval($album_css[$index]->setting_value);
30
-
31
- $index = array_search("thumbnails_border_color", $setting_keys);
32
- $thumbnails_border_color = $album_css[$index]->setting_value;
33
-
34
- $index = array_search("margin_btw_thumbnails", $setting_keys);
35
- $margin_btw_thumbnails = intval($album_css[$index]->setting_value);
36
-
37
- $index = array_search("thumbnail_text_color", $setting_keys);
38
- $thumbnail_text_color = $album_css[$index]->setting_value;
39
-
40
- $index = array_search("thumbnail_text_align", $setting_keys);
41
- $thumbnail_text_align = $album_css[$index]->setting_value;
42
-
43
- $index = array_search("thumbnail_font_family", $setting_keys);
44
- $thumbnail_font_family = $album_css[$index]->setting_value;
45
-
46
- $index = array_search("heading_font_size", $setting_keys);
47
- $heading_font_size = intval($album_css[$index]->setting_value);
48
-
49
- $index = array_search("text_font_size", $setting_keys);
50
- $text_font_size = intval($album_css[$index]->setting_value);
51
-
52
- $index = array_search("thumbnail_desc_length", $setting_keys);
53
- $thumbnail_desc_length = intval($album_css[$index]->setting_value);
54
-
55
- $index = array_search("cover_custom_enable", $setting_keys);
56
- $cover_custom_enable = intval($album_css[$index]->setting_value);
57
-
58
- $index = array_search("cover_thumbnail_width", $setting_keys);
59
- $cover_thumbnail_width = intval($album_css[$index]->setting_value);
60
-
61
- $index = array_search("cover_thumbnail_height", $setting_keys);
62
- $cover_thumbnail_height = intval($album_css[$index]->setting_value);
63
-
64
- $index = array_search("cover_thumbnail_opacity", $setting_keys);
65
- $cover_thumbnail_opacity = doubleval($album_css[$index]->setting_value);
66
-
67
- $index = array_search("cover_thumbnail_border_size", $setting_keys);
68
- $cover_thumbnail_border_size = intval($album_css[$index]->setting_value);
69
-
70
- $index = array_search("cover_thumbnail_border_radius", $setting_keys);
71
- $cover_thumbnail_border_radius = intval($album_css[$index]->setting_value);
72
-
73
- $index = array_search("cover_thumbnail_border_color", $setting_keys);
74
- $cover_thumbnail_border_color = $album_css[$index]->setting_value;
75
-
76
- $index = array_search("margin_btw_cover_thumbnails", $setting_keys);
77
- $margin_btw_cover_thumbnails = intval($album_css[$index]->setting_value);
78
-
79
- $index = array_search("album_text_align", $setting_keys);
80
- $album_text_align = $album_css[$index]->setting_value;
81
-
82
- $index = array_search("album_font_family", $setting_keys);
83
- $album_font_family = $album_css[$index]->setting_value;
84
-
85
- $index = array_search("album_heading_font_size", $setting_keys);
86
- $album_heading_font_size = intval($album_css[$index]->setting_value);
87
-
88
- $index = array_search("album_text_font_size", $setting_keys);
89
- $album_text_font_size = intval($album_css[$index]->setting_value);
90
-
91
- $index = array_search("album_desc_length", $setting_keys);
92
- $album_desc_length = $album_css[$index]->setting_value;
93
-
94
- $index = array_search("lightbox_type", $setting_keys);
95
- $lightbox_type = $album_css[$index]->setting_value;
96
-
97
- $index = array_search("lightbox_overlay_opacity", $setting_keys);
98
- $lightbox_overlay_opacity = doubleval($album_css[$index]->setting_value);
99
-
100
- $index = array_search("lightbox_overlay_border_size", $setting_keys);
101
- $lightbox_overlay_border_size = intval($album_css[$index]->setting_value);
102
-
103
- $index = array_search("lightbox_overlay_border_radius", $setting_keys);
104
- $lightbox_overlay_border_radius = intval($album_css[$index]->setting_value);
105
-
106
- $index = array_search("lightbox_text_color", $setting_keys);
107
- $lightbox_text_color = $album_css[$index]->setting_value;
108
-
109
- $index = array_search("lightbox_overlay_border_color", $setting_keys);
110
- $lightbox_overlay_border_color = $album_css[$index]->setting_value;
111
-
112
- $index = array_search("lightbox_inline_bg_color", $setting_keys);
113
- $lightbox_inline_bg_color = $album_css[$index]->setting_value;
114
-
115
- $index = array_search("lightbox_overlay_bg_color", $setting_keys);
116
- $lightbox_overlay_bg_color = $album_css[$index]->setting_value;
117
-
118
- $index = array_search("lightbox_fade_in_time", $setting_keys);
119
- $lightbox_fade_in_time = intval($album_css[$index]->setting_value);
120
-
121
- $index = array_search("lightbox_fade_out_time", $setting_keys);
122
- $lightbox_fade_out_time = intval($album_css[$index]->setting_value);
123
-
124
- $index = array_search("lightbox_text_align", $setting_keys);
125
- $lightbox_text_align = $album_css[$index]->setting_value;
126
-
127
- $index = array_search("lightbox_font_family", $setting_keys);
128
- $lightbox_font_family = $album_css[$index]->setting_value;
129
-
130
- $index = array_search("lightbox_heading_font_size", $setting_keys);
131
- $lightbox_heading_font_size = intval($album_css[$index]->setting_value);
132
-
133
- $index = array_search("lightbox_text_font_size", $setting_keys);
134
- $lightbox_text_font_size = intval($album_css[$index]->setting_value);
135
-
136
- $index = array_search("facebook_comments", $setting_keys);
137
- $facebook_comments = intval($album_css[$index]->setting_value);
138
-
139
- $index = array_search("social_sharing", $setting_keys);
140
- $social_sharing = intval($album_css[$index]->setting_value);
141
-
142
- $index = array_search("image_title_setting", $setting_keys);
143
- $image_title_setting = intval($album_css[$index]->setting_value);
144
-
145
- $index = array_search("image_desc_setting", $setting_keys);
146
- $image_desc_setting = intval($album_css[$index]->setting_value);
147
-
148
- $index = array_search("autoplay_setting", $setting_keys);
149
- $autoplay_setting = intval($album_css[$index]->setting_value);
150
-
151
- $index = array_search("slide_interval", $setting_keys);
152
- $slide_interval = intval($album_css[$index]->setting_value);
153
-
154
- $index = array_search("pagination_setting", $setting_keys);
155
- $pagination_setting = intval($album_css[$index]->setting_value);
156
-
157
- $index = array_search("images_per_page", $setting_keys);
158
- $images_per_page = intval($album_css[$index]->setting_value);
159
-
160
- $index = array_search("filters_setting", $setting_keys);
161
- $filters_setting = intval($album_css[$index]->setting_value);
162
-
163
- $index = array_search("filter_font_family", $setting_keys);
164
- $filter_font_family = $album_css[$index]->setting_value;
165
-
166
- $index = array_search("filter_font_size", $setting_keys);
167
- $filter_font_size = intval($album_css[$index]->setting_value);
168
-
169
- $index = array_search("back_button_text", $setting_keys);
170
- $back_button_text = $album_css[$index]->setting_value;
171
-
172
- $index = array_search("album_click_text", $setting_keys);
173
- $album_click_text = $album_css[$index]->setting_value;
174
-
175
- $index = array_search("album_text_color", $setting_keys);
176
- $album_text_color = $album_css[$index]->setting_value;
177
-
178
- $index = array_search("button_color", $setting_keys);
179
- $button_color = $album_css[$index]->setting_value;
180
-
181
- $index = array_search("button_text_color", $setting_keys);
182
- $button_text_color = $album_css[$index]->setting_value;
183
-
184
- $index = array_search("filters_color", $setting_keys);
185
- $filters_color = $album_css[$index]->setting_value;
186
-
187
- $index = array_search("filters_text_color", $setting_keys);
188
- $filters_text_color = $album_css[$index]->setting_value;
189
-
190
- $index = array_search("album_seperator", $setting_keys);
191
- $album_seperator = intval($album_css[$index]->setting_value);
192
-
193
- $index = array_search("back_button_font_family", $setting_keys);
194
- $back_button_font_family = $album_css[$index]->setting_value;
195
-
196
- $index = array_search("back_button_font_size", $setting_keys);
197
- $back_button_font_size = intval($album_css[$index]->setting_value);
198
-
199
- $index = array_search("admin_full_control", $setting_keys);
200
- $admin_full_control = intval($album_css[$index]->setting_value);
201
-
202
- $index = array_search("admin_read_control", $setting_keys);
203
- $admin_read_control = intval($album_css[$index]->setting_value);
204
-
205
- $index = array_search("admin_write_control", $setting_keys);
206
- $admin_write_control = intval($album_css[$index]->setting_value);
207
-
208
- $index = array_search("editor_full_control", $setting_keys);
209
- $editor_full_control = intval($album_css[$index]->setting_value);
210
-
211
- $index = array_search("editor_read_control", $setting_keys);
212
- $editor_read_control = intval($album_css[$index]->setting_value);
213
-
214
- $index = array_search("editor_write_control", $setting_keys);
215
- $editor_write_control = intval($album_css[$index]->setting_value);
216
-
217
- $index = array_search("author_full_control", $setting_keys);
218
- $author_full_control = intval($album_css[$index]->setting_value);
219
-
220
- $index = array_search("author_read_control", $setting_keys);
221
- $author_read_control = intval($album_css[$index]->setting_value);
222
-
223
- $index = array_search("author_write_control", $setting_keys);
224
- $author_write_control = intval($album_css[$index]->setting_value);
225
-
226
- $index = array_search("contributor_full_control", $setting_keys);
227
- $contributor_full_control = intval($album_css[$index]->setting_value);
228
-
229
- $index = array_search("contributor_read_control", $setting_keys);
230
- $contributor_read_control = intval($album_css[$index]->setting_value);
231
-
232
- $index = array_search("contributor_write_control", $setting_keys);
233
- $contributor_write_control = intval($album_css[$index]->setting_value);
234
-
235
- $index = array_search("subscriber_full_control", $setting_keys);
236
- $subscriber_full_control = intval($album_css[$index]->setting_value);
237
-
238
- $index = array_search("subscriber_read_control", $setting_keys);
239
- $subscriber_read_control = intval($album_css[$index]->setting_value);
240
-
241
- $index = array_search("subscriber_write_control", $setting_keys);
242
- $subscriber_write_control = intval($album_css[$index]->setting_value);
243
-
244
- $index = array_search("subscriber_write_control", $setting_keys);
245
- $subscriber_write_control = intval($album_css[$index]->setting_value);
246
-
247
- $index = array_search("language_direction", $setting_keys);
248
- $lang_dir_setting = $album_css[$index]->setting_value;
249
-
250
- ?>
251
- <!--suppress ALL -->
252
- <form id="global_settings" class="layout-form">
253
- <div id="poststuff" style="width: 99% !important;">
254
- <div id="post-body" class="metabox-holder">
255
- <div id="postbox-container-2" class="postbox-container">
256
- <div id="advanced" class="meta-box-sortables">
257
- <div id="gallery_bank_get_started" class="postbox" >
258
- <div class="handlediv" data-target="#ux_global_settings" title="Click to toggle" data-toggle="collapse"><br></div>
259
- <h3 class="hndle"><span><?php _e("Global Settings", gallery_bank); ?></span></h3>
260
- <div class="inside">
261
- <div id="ux_global_settings" class="gallery_bank_layout">
262
- <a class="btn btn-inverse" href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
263
- <a onclick="show_premium_message();" href="#" class="btn btn-info" style="float:right"><?php _e("Update Settings", gallery_bank); ?></a>
264
- <div class="separator-doubled"></div>
265
- <div class="fluid-layout">
266
- <div class="layout-span6">
267
- <div class="widget-layout">
268
- <div class="widget-layout-title">
269
- <h4>
270
- <?php _e("Thumbnail Settings", gallery_bank); ?>
271
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
272
- </h4>
273
- <span class="tools">
274
- <a data-target="#thumbnail_settings" data-toggle="collapse">
275
- <i class="icon-chevron-down"></i>
276
- </a>
277
- </span>
278
- </div>
279
- <div id="thumbnail_settings" class="collapse in">
280
- <div class="widget-layout-body">
281
- <div class="layout-control-group">
282
- <label class="layout-control-label"><?php _e("Thumbnail Size", gallery_bank); ?> : </label>
283
- <div class="layout-controls-radio">
284
- <?php
285
- if ($thumbnails_custom_enable == 1) {
286
- ?>
287
- <input type="radio" name="ux_thumbnail" value="1" checked="checked"
288
- onclick="check_thumbnail_settings();"/> <label
289
- style="vertical-align: baseline;"><?php _e("Original", gallery_bank); ?></label>
290
- <input type="radio" style="margin-left: 10px;" name="ux_thumbnail" value="0"
291
- onclick="check_thumbnail_settings();"/><label style="vertical-align: baseline;">
292
- <?php _e("Custom", gallery_bank); ?> </label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
  <?php
294
- } else {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  ?>
296
- <input type="radio" name="ux_thumbnail" value="1" onclick="check_thumbnail_settings();"/>
297
- <label style="vertical-align: baseline;"><?php _e("Original", gallery_bank); ?></label>
298
- <input type="radio" style="margin-left: 10px;" name="ux_thumbnail" checked="checked"
299
- value="0" onclick="check_thumbnail_settings();"/> <label style="vertical-align: baseline;">
300
- <?php _e("Custom", gallery_bank); ?></label>
301
- <?php
302
- }
303
- ?>
304
  </div>
305
  </div>
306
- </div>
307
- <div class="widget-layout-body" id="image_width">
308
- <div class="layout-control-group">
309
- <label class="layout-control-label"><?php _e("Width", gallery_bank); ?> : </label>
310
- <div class="layout-controls">
311
- <input type="text" class="layout-span10" id="ux_image_width" name="ux_image_width"
312
- onkeypress="return OnlyNumbers(event)" value="<?php echo $thumbnails_width; ?>"/>
313
- <span style="padding-top:3px;">(px)</span>
314
  </div>
315
  </div>
316
- </div>
317
- <div class="widget-layout-body" id="image_height">
318
- <div class="layout-control-group">
319
- <label class="layout-control-label"><?php _e("Height", gallery_bank); ?> : </label>
320
- <div class="layout-controls">
321
- <input type="text" id="ux_image_height" name="ux_image_height"
322
- onkeypress="return OnlyNumbers(event)" class="layout-span10"
323
- value="<?php echo $thumbnails_height; ?>">
324
- <span style="padding-top:3px;">(px)</span>
325
  </div>
326
  </div>
327
- </div>
328
- <div class="widget-layout-body">
329
- <div class="layout-control-group">
330
- <label class="layout-control-label"
331
- id="ux_label_thumb_opacity"><?php _e("Opacity", gallery_bank); ?> : </label>
332
- <div class="layout-controls">
333
- <input type="text" class="layout-span10" id="ux_image_opacity_val"
334
- onkeyup="set_value('thumb_opacity')" onblur="set_value('thumb_opacity')"
335
- name="ux_image_opacity_val" onkeypress="return OnlyNumbers(event)"
336
- value="<?php echo $thumbnails_opacity * 100; ?>"/>
337
- <span style="padding-top:3px;">(%)</span>
338
  </div>
339
  </div>
340
- </div>
341
- <div class="widget-layout-body">
342
- <div class="layout-control-group">
343
- <label class="layout-control-label"><?php _e("Border Size", gallery_bank); ?> : </label>
344
- <div class="layout-controls">
345
- <input type="text" class="layout-span10" id="ux_image_border_val" name="ux_image_border_val"
346
- onblur="set_value('thumb_border_size');" onkeyup="set_value('thumb_border_size');"
347
- onkeypress="return OnlyNumbers(event);" value="<?php echo $thumbnails_border_size; ?>"/>
348
- <span style="padding-top:3px;">(0 - 20)</span>
349
  </div>
350
  </div>
351
- </div>
352
- <div class="widget-layout-body">
353
- <div class="layout-control-group">
354
- <label class="layout-control-label"><?php _e("Border Radius", gallery_bank); ?> : </label>
355
- <div class="layout-controls">
356
- <input type="text" class="layout-span10" id="ux_image_radius_val" name="ux_image_radius_val"
357
- onblur="set_value('thumb_border_radius')" onkeyup="set_value('thumb_border_radius')"
358
- onkeypress="return OnlyNumbers(event)" value="<?php echo $thumbnails_border_radius; ?>"/>
359
- <span style="padding-top:3px;">(0 - 20)</span>
360
  </div>
361
  </div>
362
- </div>
363
- <div class="widget-layout-body">
364
- <div class="layout-control-group">
365
- <label class="layout-control-label"><?php _e("Border Color", gallery_bank); ?> : </label>
366
- <div class="layout-controls">
367
- <input type="text" class="layout-span10" name="ux_border_color" id="ux_border_color"
368
- onclick="ux_clr_border_color();"
369
- style="background-color: <?php echo $thumbnails_border_color; ?>;"
370
- value="<?php echo $thumbnails_border_color; ?>"/>
371
- <img onclick="ux_clr_border_color();" style="vertical-align: middle;margin-left: 5px;"
372
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
373
- <div id="clr_border_color"></div>
374
  </div>
375
  </div>
376
- </div>
377
- <div class="widget-layout-body">
378
- <div class="layout-control-group">
379
- <label class="layout-control-label"><?php _e("Margin Between Images", gallery_bank); ?> : </label>
380
- <div class="layout-controls">
381
- <input type="text" class="layout-span10" name="ux_images_margin" id="ux_images_margin"
382
- onkeypress="return OnlyNumbers(event)" value="<?php echo $margin_btw_thumbnails; ?>"/>
383
- (px)
384
  </div>
385
  </div>
386
- </div>
387
- <div class="widget-layout-body">
388
- <div class="layout-control-group">
389
- <label class="layout-control-label"><?php _e("Text Color", gallery_bank); ?> : </label>
390
- <div class="layout-controls">
391
- <input type="text" class="layout-span10" onclick="ux_clr_thumb_text_color();"
392
- name="ux_thumb_text_color" id="ux_thumb_text_color"
393
- style="background-color:<?php echo $thumbnail_text_color; ?>; "
394
- value="<?php echo $thumbnail_text_color; ?>"/>
395
- <img onclick="ux_clr_thumb_text_color();" style="vertical-align: middle;margin-left: 5px;"
396
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
397
- <div id="clr_thumb_text_color"></div>
398
  </div>
399
  </div>
400
- </div>
401
- <div class="widget-layout-body">
402
- <div class="layout-control-group">
403
- <label class="layout-control-label"><?php _e("Text-Align", gallery_bank); ?> : </label>
404
- <div class="layout-controls">
405
- <select id="ux_thumb_text_align" class="layout-span10" name="ux_thumb_text_align">
406
- <option value="center">Center</option>
407
- <option value="inherit">Inherit</option>
408
- <option value="justify">Justify</option>
409
- <option value="left">Left</option>
410
- <option value="right">Right</option>
411
- </select>
412
  </div>
413
  </div>
414
- </div>
415
- <div class="widget-layout-body">
416
- <div class="layout-control-group">
417
- <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
418
- <div class="layout-controls">
419
- <select id="ux_thumb_font_family" class="layout-span10" name="ux_thumb_font_family">
420
- <option value="Arial">Arial</option>
421
- <option value="Courier">Courier</option>
422
- <option value="Courier New">Courier New</option>
423
- <option value="Geneva">Geneva</option>
424
- <option value="Helvetica">Helvetica</option>
425
- <option value="inherit">inherit</option>
426
- <option value="Lucida Grande">Lucida Grande</option>
427
- <option value="Lucida Sans Unicode">Lucida Sans Unicode</option>
428
- <option value="Monospace">Monospace</option>
429
- <option value="Sans-serif">Sans-serif</option>
430
- <option value="Tahoma">Tahoma</option>
431
- <option value="Times">Times</option>
432
- <option value="Times New Roman">Times New Roman</option>
433
- <option value="Verdana">Verdana</option>
434
- </select>
435
  </div>
436
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
437
  </div>
438
- <div class="widget-layout-body">
439
- <div class="layout-control-group">
440
- <label class="layout-control-label"><?php _e("Heading Font-Size", gallery_bank); ?> : </label>
441
- <div class="layout-controls">
442
- <select id="ux_heading_font_size" class="layout-span10" name="ux_heading_font_size">
443
- <?php
444
- for ($heading_font = 8; $heading_font <= 24; $heading_font++) {
445
- ?>
446
- <option <?php if ($heading_font == $heading_font_size) echo "selected=\"selected\"" ?>
447
- value="<?php echo $heading_font; ?>"><?php echo $heading_font; ?></option>
448
- <?php
449
- }
450
- ?>
451
- </select> (px)
452
- </div>
453
- </div>
454
- </div>
455
- <div class="widget-layout-body">
456
- <div class="layout-control-group">
457
- <label class="layout-control-label"><?php _e("Text Font-Size", gallery_bank); ?> : </label>
458
- <div class="layout-controls">
459
- <select id="ux_text_font_size" class="layout-span10" name="ux_text_font_size">
460
- <?php
461
- for ($font = 8; $font <= 15; $font++) {
462
- ?>
463
- <option <?php if ($font == $text_font_size) echo "selected=\"selected\"" ?>
464
- value="<?php echo $font; ?>"><?php echo $font; ?></option>
465
- <?php
466
- }
467
- ?>
468
- </select> (px)
469
- </div>
470
- </div>
471
- </div>
472
- <div class="widget-layout-body">
473
- <div class="layout-control-group">
474
- <label class="layout-control-label"><?php _e("Description Length", gallery_bank); ?> : </label>
475
- <div class="layout-controls">
476
- <input type="text" id="ux_thumb_desc_length" class="layout-span10"
477
- onkeypress="return OnlyNumbers(event)" name="ux_thumb_desc_length"
478
- value="<?php echo $thumbnail_desc_length; ?>"/><label> (chars)</label>
479
- </div>
480
- </div>
481
- </div>
482
- </div>
483
- </div>
484
- <div class="widget-layout">
485
- <div class="widget-layout-title">
486
- <h4><?php _e("Album Cover Settings", gallery_bank); ?>
487
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
488
- </h4>
489
- <span class="tools">
490
- <a data-target="#album_cover_settings" data-toggle="collapse">
491
- <i class="icon-chevron-down"></i>
492
- </a>
493
- </span>
494
  </div>
495
- <div id="album_cover_settings" class="collapse in">
496
- <div class="widget-layout-body">
497
- <div class="layout-control-group">
498
- <label class="layout-control-label"><?php _e("Cover Size", gallery_bank); ?> : </label>
499
- <div class="layout-controls-radio">
500
- <?php
501
- if ($cover_custom_enable == 1) {
502
- ?>
503
- <input type="radio" name="ux_cover_size" value="1" checked="checked"
504
- onclick="check_cover_settings();"/> <label
505
- style="vertical-align: baseline;"><?php _e("Original", gallery_bank); ?></label>
506
- <input type="radio" style="margin-left: 10px;" name="ux_cover_size" value="0"
507
- onclick="check_cover_settings();"/> <label
508
- style="vertical-align: baseline;"><?php _e("Custom", gallery_bank); ?></label>
509
- <?php
510
- } else {
 
 
511
  ?>
512
- <input type="radio" name="ux_cover_size" value="1" onclick="check_cover_settings();"/>
513
- <label style="vertical-align: baseline;"><?php _e("Original", gallery_bank); ?></label>
514
- <input type="radio" style="margin-left: 10px;" name="ux_cover_size" checked="checked"
515
- value="0" onclick="check_cover_settings();"/> <label
516
- style="vertical-align: baseline;"><?php _e("Custom", gallery_bank); ?></label>
 
517
  <?php
518
- }
519
- ?>
 
 
 
 
 
 
 
 
 
520
  </div>
521
  </div>
522
- </div>
523
- <div class="widget-layout-body" id="cover_width">
524
- <div class="layout-control-group">
525
- <label class="layout-control-label"><?php _e("Width", gallery_bank); ?> : </label>
526
- <div class="layout-controls">
527
- <input type="text" class="layout-span10" id="ux_cover_width" name="ux_cover_width"
528
- onkeypress="return OnlyNumbers(event)" value="<?php echo $cover_thumbnail_width; ?>"/>
529
- <span style="padding-top:3px;">(px)</span>
530
- </div>
531
- </div>
532
- </div>
533
- <div class="widget-layout-body" id="cover_height">
534
- <div class="layout-control-group">
535
- <label class="layout-control-label"><?php _e("Height", gallery_bank); ?> : </label>
536
- <div class="layout-controls">
537
- <input type="text" id="ux_cover_height" name="ux_cover_height"
538
- onkeypress="return OnlyNumbers(event)" class="layout-span10"
539
- value="<?php echo $cover_thumbnail_height; ?>">
540
- <span style="padding-top:3px;">(px)</span>
541
- </div>
542
- </div>
543
- </div>
544
- <div class="widget-layout-body">
545
- <div class="layout-control-group">
546
- <label class="layout-control-label" id="ux_label_cover_opacity"><?php _e("Opacity", gallery_bank); ?> : </label>
547
- <div class="layout-controls">
548
- <input type="text" class="layout-span10" id="ux_cover_opacity_val" name="ux_cover_opacity_val"
549
- onblur="set_value('cover_opacity')" onkeyup="set_value('cover_opacity')"
 
 
 
 
 
 
 
 
 
 
 
550
  onkeypress="return OnlyNumbers(event)"
551
- value="<?php echo $cover_thumbnail_opacity * 100; ?>"/>
552
- <span style="padding-top:3px;">(%)</span>
553
- </div>
554
- </div>
555
- </div>
556
- <div class="widget-layout-body">
557
- <div class="layout-control-group">
558
- <label class="layout-control-label"><?php _e("Border Size", gallery_bank); ?> : </label>
559
- <div class="layout-controls">
560
- <input type="text" class="layout-span10" id="ux_cover_border_val" name="ux_cover_border_val"
561
- onblur="set_value('cover_border_size')" onkeyup="set_value('cover_border_size')"
562
- onkeypress="return OnlyNumbers(event)"
563
- value="<?php echo $cover_thumbnail_border_size; ?>"/>
564
- <span style="padding-top:3px;">(0 - 20)</span>
565
- </div>
566
- </div>
567
- </div>
568
- <div class="widget-layout-body">
569
- <div class="layout-control-group">
570
- <label class="layout-control-label"><?php _e("Border Radius", gallery_bank); ?> : </label>
571
- <div class="layout-controls">
572
- <input type="text" class="layout-span10" id="ux_cover_radius_val" name="ux_cover_radius_val"
573
- onblur="set_value('cover_border_radius')" onkeyup="set_value('cover_border_radius')"
574
- onkeypress="return OnlyNumbers(event)"
575
- value="<?php echo $cover_thumbnail_border_radius; ?>"/>
576
- <span style="padding-top:3px;">(0 - 20)</span>
577
- </div>
578
- </div>
579
- </div>
580
- <div class="widget-layout-body">
581
- <div class="layout-control-group">
582
- <label class="layout-control-label"><?php _e("Border Color", gallery_bank); ?> : </label>
583
- <div class="layout-controls">
584
- <input type="text" class="layout-span10" onclick="ux_clr_cover_border_color();"
585
- name="ux_cover_border_color" id="ux_cover_border_color"
586
- style="background-color:<?php echo $cover_thumbnail_border_color; ?>; "
587
- value="<?php echo $cover_thumbnail_border_color; ?>"/><img
588
- onclick="ux_clr_cover_border_color();" style="vertical-align: middle;margin-left: 5px;"
589
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
590
- <div id="clr_cover_border_color"></div>
591
- </div>
592
- </div>
593
- </div>
594
- <div class="widget-layout-body">
595
- <div class="layout-control-group">
596
- <label class="layout-control-label"><?php _e("Margin Between Albums", gallery_bank); ?> : </label>
597
- <div class="layout-controls">
598
- <input type="text" class="layout-span10" name="ux_album_margin" id="ux_album_margin"
599
- onkeypress="return OnlyNumbers(event)"
600
- value="<?php echo $margin_btw_cover_thumbnails; ?>"/> (px)
601
- </div>
602
- </div>
603
- </div>
604
- <div class="widget-layout-body">
605
- <div class="layout-control-group">
606
- <label class="layout-control-label"><?php _e("Text for Album Click", gallery_bank); ?> : </label>
607
-
608
- <div class="layout-controls">
609
- <input type="text" class="layout-span10" id="ux_album_view" name="ux_album_view"
610
- value="<?php echo $album_click_text; ?>"/>
611
- </div>
612
- </div>
613
- </div>
614
- <div class="widget-layout-body">
615
- <div class="layout-control-group">
616
- <label class="layout-control-label"><?php _e("Text Color", gallery_bank); ?> : </label>
617
-
618
- <div class="layout-controls">
619
- <input type="text" class="layout-span10" id="ux_album_text_color" name="ux_album_text_color"
620
- onclick="ux_clr_album_font_color();"
621
- style="background-color: <?php echo $album_text_color; ?>;"
622
- value="<?php echo $album_text_color; ?>"/>
623
- <img onclick="ux_clr_album_font_color();"
624
- style="vertical-align: middle;margin-left: 5px;"
625
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
626
-
627
- <div id="clr_album_text_color"></div>
628
- </div>
629
- </div>
630
- </div>
631
- <div class="widget-layout-body">
632
- <div class="layout-control-group">
633
- <label class="layout-control-label"><?php _e("Text-Align", gallery_bank); ?> : </label>
634
- <div class="layout-controls">
635
- <select id="ux_album_text_align" class="layout-span10" name="ux_album_text_align">
636
- <option value="center">Center</option>
637
- <option value="inherit">Inherit</option>
638
- <option value="justify">Justify</option>
639
- <option value="left">Left</option>
640
- <option value="right">Right</option>
641
- </select>
642
- </div>
643
- </div>
644
- </div>
645
- <div class="widget-layout-body">
646
- <div class="layout-control-group">
647
- <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
648
- <div class="layout-controls">
649
- <select id="ux_album_font_family" class="layout-span10" name="ux_album_font_family">
650
- <option value="Arial">Arial</option>
651
- <option value="Courier">Courier</option>
652
- <option value="Courier New">Courier New</option>
653
- <option value="Geneva">Geneva</option>
654
- <option value="Helvetica">Helvetica</option>
655
- <option value="inherit">inherit</option>
656
- <option value="Lucida Grande">Lucida Grande</option>
657
- <option value="Lucida Sans Unicode">Lucida Sans Unicode</option>
658
- <option value="Monospace">Monospace</option>
659
- <option value="Sans-serif">Sans-serif</option>
660
- <option value="Tahoma">Tahoma</option>
661
- <option value="Times">Times</option>
662
- <option value="Times New Roman">Times New Roman</option>
663
- <option value="Verdana">Verdana</option>
664
- </select>
665
- </div>
666
- </div>
667
- </div>
668
- <div class="widget-layout-body">
669
- <div class="layout-control-group">
670
- <label class="layout-control-label"><?php _e("Heading Font-Size", gallery_bank); ?> : </label>
671
- <div class="layout-controls">
672
- <select id="ux_album_heading_font_size" class="layout-span10" name="ux_album_heading_font_size">
673
- <?php
674
- for ($album_heading = 8; $album_heading <= 24; $album_heading++) {
675
- ?>
676
- <option <?php if ($album_heading == $album_heading_font_size) echo "selected=\"selected\"" ?>
677
- value="<?php echo $album_heading; ?>"><?php echo $album_heading; ?></option>
678
- <?php
679
- }
680
- ?>
681
- </select> (px)
682
- </div>
683
- </div>
684
- </div>
685
- <div class="widget-layout-body">
686
- <div class="layout-control-group">
687
- <label class="layout-control-label"><?php _e("Text Font-Size", gallery_bank); ?> : </label>
688
- <div class="layout-controls">
689
- <select id="ux_album_text_font_size" class="layout-span10" name="ux_album_text_font_size">
690
- <?php
691
- for ($albumfont = 8; $albumfont <= 15; $albumfont++) {
692
- ?>
693
- <option <?php if ($albumfont == $album_text_font_size) echo "selected=\"selected\"" ?>
694
- value="<?php echo $albumfont; ?>"><?php echo $albumfont; ?></option>
695
- <?php
696
- }
697
- ?>
698
- </select> (px)
699
- </div>
700
- </div>
701
- </div>
702
- <div class="widget-layout-body">
703
- <div class="layout-control-group">
704
- <label class="layout-control-label"><?php _e("Description Length", gallery_bank); ?> : </label>
705
- <div class="layout-controls">
706
- <input type="text" id="ux_album_desc_length" class="layout-span10"
707
- onkeypress="return OnlyNumbers(event)" name="ux_album_desc_length"
708
- value="<?php echo $album_desc_length; ?>"/><label> (chars)</label>
709
- </div>
710
- </div>
711
- </div>
712
- </div>
713
- </div>
714
- <div class="widget-layout">
715
- <div class="widget-layout-title">
716
- <h4><?php _e("Filter Settings", gallery_bank); ?>
717
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
718
- </h4>
719
- <span class="tools">
720
- <a data-target="#filter_settings" data-toggle="collapse">
721
- <i class="icon-chevron-down"></i>
722
- </a>
723
- </span>
724
- </div>
725
- <div id="filter_settings" class="collapse">
726
- <div class="widget-layout-body">
727
- <div class="layout-control-group">
728
- <label class="layout-control-label"><?php _e("Filters", gallery_bank); ?> : </label>
729
- <div class="layout-controls-radio">
730
- <?php
731
- if ($filters_setting == 1) {
732
- ?>
733
- <input type="radio" onclick="show_filter_page();" name="ux_image_filters" value="1"
734
- checked="checked"/> <label
735
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
736
- <input type="radio" onclick="show_filter_page();" style="margin-left: 10px;"
737
- name="ux_image_filters" value="0"/> <label
738
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
739
- <?php
740
- } else {
741
- ?>
742
- <input type="radio" onclick="show_filter_page();" name="ux_image_filters" value="1"/> <label
743
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
744
- <input type="radio" onclick="show_filter_page();" style="margin-left: 10px;"
745
- name="ux_image_filters" value="0" checked="checked"/> <label
746
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
747
- <?php
748
- }
749
- ?>
750
- </div>
751
- </div>
752
- </div>
753
- <div id="ux_filter_setting_div" style="display:none;">
754
- <div class="widget-layout-body">
755
- <div class="layout-control-group">
756
- <label class="layout-control-label"><?php _e("Filter Color", gallery_bank); ?> : </label>
757
- <div class="layout-controls">
758
- <input type="text" class="layout-span10" id="ux_filter_color" name="ux_filter_color"
759
- onclick="ux_clr_filter_color();"
760
- style="background-color: <?php echo $filters_color; ?>;"
761
- value="<?php echo $filters_color; ?>"/>
762
- <img onclick="ux_clr_filter_color();" style="vertical-align: middle;margin-left: 5px;"
763
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
764
- <div id="clr_filter_color"></div>
765
- </div>
766
- </div>
767
- </div>
768
- <div class="widget-layout-body">
769
- <div class="layout-control-group">
770
- <label class="layout-control-label"><?php _e("Filter Text Color", gallery_bank); ?> : </label>
771
- <div class="layout-controls">
772
- <input type="text" class="layout-span10" id="ux_filter_text_color"
773
- name="ux_filter_text_color" onclick="ux_clr_filter_text_color();"
774
- style="background-color: <?php echo $filters_text_color; ?>;"
775
- value="<?php echo $filters_text_color; ?>"/>
776
- <img onclick="ux_clr_filter_text_color();" style="vertical-align: middle;margin-left: 5px;"
777
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
778
- <div id="clr_filter_text_color"></div>
779
- </div>
780
- </div>
781
- </div>
782
- <div class="widget-layout-body">
783
- <div class="layout-control-group">
784
- <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
785
- <div class="layout-controls">
786
- <select id="ux_filter_font_family" class="layout-span10" name="ux_filter_font_family">
787
- <option value="Arial">Arial</option>
788
  <option value="Courier">Courier</option>
789
  <option value="Courier New">Courier New</option>
790
  <option value="Geneva">Geneva</option>
@@ -798,1280 +687,1418 @@ if (count($album_css) != 0) {
798
  <option value="Times">Times</option>
799
  <option value="Times New Roman">Times New Roman</option>
800
  <option value="Verdana">Verdana</option>
801
- </select>
802
- </div>
803
- </div>
804
- </div>
805
- <div class="widget-layout-body">
806
- <div class="layout-control-group">
807
- <label class="layout-control-label"><?php _e("Font-Size", gallery_bank); ?> : </label>
808
- <div class="layout-controls">
809
- <select id="ux_filter_font_size" class="layout-span10" name="ux_filter_font_size">
810
- <?php
811
- for ($filterfont = 8; $filterfont <= 15; $filterfont++) {
812
- ?>
813
- <option <?php if ($filterfont == $filter_font_size) echo "selected=\"selected\"" ?>
814
- value="<?php echo $filterfont; ?>"><?php echo $filterfont; ?></option>
815
- <?php
816
- }
817
- ?>
818
- </select> (px)
819
- </div>
820
- </div>
821
- </div>
822
- </div>
823
- </div>
824
- </div>
825
- <div class="widget-layout">
826
- <div class="widget-layout-title">
827
- <h4><?php _e("Roles & Capabilities", gallery_bank); ?>
828
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
829
- </h4>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
830
  <span class="tools">
831
- <a data-target="#capabilities_settings" data-toggle="collapse">
832
  <i class="icon-chevron-down"></i>
833
  </a>
834
  </span>
835
- </div>
836
- <div id="capabilities_settings" class="collapse">
837
- <div class="widget-layout-body">
838
- <div class="layout-control-group">
839
- <label class="layout-control-label"><?php _e("Privileges for Admin", gallery_bank); ?> : </label>
840
- <div class="layout-controls-radio">
841
- <input type="checkbox" id="ux_full_control_to_admin" onclick="disable_admin_checkbox(this);"
842
- name="ux_full_control_to_admin" value="1"/><label
843
- style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
844
- <input type="checkbox" id="ux_read_control_to_admin" name="ux_read_control_to_admin" value="1"
845
- style="margin-left: 10px;"/><label
846
- style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
847
- <input type="checkbox" id="ux_write_control_to_admin" name="ux_write_control_to_admin" value="1"
848
- style="margin-left: 10px;"/><label
849
- style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
850
- </div>
851
- </div>
852
- </div>
853
- <div class="widget-layout-body">
854
- <div class="layout-control-group">
855
- <label class="layout-control-label"><?php _e("Privileges for Editor", gallery_bank); ?> : </label>
856
- <div class="layout-controls-radio">
857
- <input type="checkbox" id="ux_full_control_to_editor" onclick="disable_admin_checkbox(this);"
858
- name="ux_full_control_to_editor" value="1"/><label
859
- style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
860
- <input type="checkbox" id="ux_read_control_to_editor" name="ux_read_control_to_editor" value="1"
861
- style="margin-left: 10px;"/><label
862
- style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
863
- <input type="checkbox" id="ux_write_control_to_editor" name="ux_write_control_to_editor"
864
- value="1" style="margin-left: 10px;"/><label
865
- style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
866
- </div>
867
- </div>
868
- </div>
869
- <div class="widget-layout-body">
870
- <div class="layout-control-group">
871
- <label class="layout-control-label"><?php _e("Privileges for Author", gallery_bank); ?> : </label>
872
- <div class="layout-controls-radio">
873
- <input type="checkbox" id="ux_full_control_to_author" onclick="disable_admin_checkbox(this);"
874
- name="ux_full_control_to_author" value="1"/><label
875
- style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
876
- <input type="checkbox" id="ux_read_control_to_author" name="ux_read_control_to_author" value="1"
877
- style="margin-left: 10px;"/><label
878
- style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
879
- <input type="checkbox" id="ux_write_control_to_author" name="ux_write_control_to_author"
880
- value="1" style="margin-left: 10px;"/><label
881
- style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
882
- </div>
883
- </div>
884
- </div>
885
- <div class="widget-layout-body">
886
- <div class="layout-control-group">
887
- <label class="layout-control-label"><?php _e("Privileges for Contributor", gallery_bank); ?>
888
- : </label>
889
- <div class="layout-controls-radio">
890
- <input type="checkbox" id="ux_full_control_to_contributor"
891
- onclick="disable_admin_checkbox(this);" name="ux_full_control_to_contributor" value="1"/><label
892
- style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
893
- <input type="checkbox" id="ux_read_control_to_contributor" name="ux_read_control_to_contributor"
894
- value="1" style="margin-left: 10px;"/><label
895
- style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
896
- <input type="checkbox" id="ux_write_control_to_contributor"
897
- name="ux_write_control_to_contributor" value="1" style="margin-left: 10px;"/><label
898
- style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
899
- </div>
900
- </div>
901
- </div>
902
- <div class="widget-layout-body">
903
- <div class="layout-control-group">
904
- <label class="layout-control-label"><?php _e("Privileges for Subscriber", gallery_bank); ?>
905
- : </label>
906
- <div class="layout-controls-radio">
907
- <input type="checkbox" id="ux_full_control_to_subscriber"
908
- onclick="disable_admin_checkbox(this);" name="ux_full_control_to_subscriber"
909
- value="1"/><label
910
- style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
911
- <input type="checkbox" id="ux_read_control_to_subscriber" name="ux_read_control_to_subscriber"
912
- value="1" style="margin-left: 10px;"/><label
913
- style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
914
- <input type="checkbox" id="ux_write_control_to_subscriber" name="ux_write_control_to_subscriber"
915
- value="1" style="margin-left: 10px;"/><label
916
- style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
917
- </div>
918
- </div>
919
- </div>
920
- </div>
921
- </div>
922
- </div>
923
- <div class="layout-span6">
924
- <div class="widget-layout">
925
- <div class="widget-layout-title">
926
- <h4><?php _e("Lightbox Settings", gallery_bank); ?>
927
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
928
- </h4>
929
- <span class="tools">
930
- <a data-target="#lightbox_settings" data-toggle="collapse">
931
- <i class="icon-chevron-down"></i>
932
- </a>
933
- </span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
934
  </div>
935
- <div id="lightbox_settings" class="collapse in">
936
- <div class="widget-layout-body">
937
- <div class="layout-control-group">
938
- <label class="layout-control-label"><?php _e("Lightbox Type", gallery_bank); ?> : </label>
939
- <div class="layout-controls">
940
- <select class="layout-span10" id="ux_lightbox_type" name="ux_lightbox_type">
941
- <option value="pretty_photo">
942
- Pretty Photo
943
- </option>
944
- <option value="color_box">
945
- Color Box
946
- </option>
947
- <option value="photo_swipe">
948
- Photo Swipe
949
- </option>
950
- <option value="foo_box">
951
- Foo Box
952
- </option>
953
- <option value="fancy_box">
954
- Fancy Box
955
- </option>
956
- <option value="lightbox2">
957
- Lightbox 2
958
- </option>
959
- <option value="GB_lightbox">
960
- GB Lightbox
961
- </option>
962
- </select>
963
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
964
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
965
  </div>
966
- <div class="widget-layout-body">
967
- <div class="layout-control-group">
968
- <label class="layout-control-label"><?php _e("Opacity", gallery_bank); ?> : </label>
969
- <div class="layout-controls">
970
- <input type="text" class="layout-span10" id="ux_lightbox_opacity_val" name="ux_lightbox_opacity_val"
971
- onblur="set_value('lightbox_opacity')" onkeyup="set_value('lightbox_opacity')"
972
- onkeypress="return OnlyNumbers(event)" value="<?php echo $lightbox_overlay_opacity * 100; ?>"/>
973
- <span style="padding-top:3px;">(%)</span>
974
- </div>
975
- </div>
976
- </div>
977
- <div class="widget-layout-body">
978
- <div class="layout-control-group">
979
- <label class="layout-control-label"><?php _e("Border Size", gallery_bank); ?> : </label>
980
- <div class="layout-controls">
981
- <input type="text" class="layout-span10" id="ux_lightbox_border_val" name="ux_lightbox_border_val"
982
- onblur="set_value('lightbox_border')" onkeyup="set_value('lightbox_border')"
983
- onkeypress="return OnlyNumbers(event)" value="<?php echo $lightbox_overlay_border_size; ?>"/>
984
- <span style="padding-top:3px;">(0 - 20)</span>
985
- </div>
986
- </div>
987
- </div>
988
- <div class="widget-layout-body">
989
- <div class="layout-control-group">
990
- <label class="layout-control-label"><?php _e("Border Radius", gallery_bank); ?> : </label>
991
- <div class="layout-controls">
992
- <input type="text" class="layout-span10" id="ux_lightbox_radius_val" name="ux_lightbox_radius_val"
993
- onblur="set_value('lightbox_radius');" onkeyup="set_value('lightbox_radius');"
994
- onkeypress="return OnlyNumbers(event);" value="<?php echo $lightbox_overlay_border_radius; ?>"/>
995
- <span style="padding-top:3px;">(0 - 20)</span>
996
- </div>
997
- </div>
998
- </div>
999
- <div class="widget-layout-body">
1000
- <div class="layout-control-group">
1001
- <label class="layout-control-label"><?php _e("Text Color", gallery_bank); ?> : </label>
1002
- <div class="layout-controls">
1003
- <input type="text" class="layout-span10" name="ux_lightbox_text_color" id="ux_lightbox_text_color"
1004
- onclick="ux_clr_lightbox_text_color();"
1005
- style="background-color: <?php echo $lightbox_text_color; ?>;"
1006
- value="<?php echo $lightbox_text_color; ?>"/>
1007
- <img onclick="ux_clr_lightbox_text_color();" style="vertical-align: middle;margin-left: 5px;"
1008
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1009
- <div id="clr_lightbox_text_color"></div>
1010
- </div>
1011
- </div>
1012
- </div>
1013
- <div class="widget-layout-body">
1014
- <div class="layout-control-group">
1015
- <label class="layout-control-label"><?php _e("Border Color", gallery_bank); ?> : </label>
1016
- <div class="layout-controls">
1017
- <input type="text" class="layout-span10" name="ux_overlay_border_color"
1018
- onclick="ux_clr_overlay_border_color();" id="ux_overlay_border_color"
1019
- style="background-color: <?php echo $lightbox_overlay_border_color; ?>"
1020
- value="<?php echo $lightbox_overlay_border_color; ?>"/><img
1021
- onclick="ux_clr_overlay_border_color();" style="vertical-align: middle;margin-left: 5px;"
1022
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1023
- <div id="clr_overlay_border_color"></div>
1024
- </div>
1025
- </div>
1026
- </div>
1027
- <div class="widget-layout-body">
1028
- <div class="layout-control-group">
1029
- <label class="layout-control-label"><?php _e("Inline Background", gallery_bank); ?> : </label>
1030
- <div class="layout-controls">
1031
- <input type="text" class="layout-span10" name="ux_inline_overlay_color" id="ux_inline_overlay_color"
1032
- onclick="ux_clr_inline_overlay_color();"
1033
- style="background-color: <?php echo $lightbox_inline_bg_color; ?>;"
1034
- value="<?php echo $lightbox_inline_bg_color; ?>"/>
1035
- <img onclick="ux_clr_inline_overlay_color();" style="vertical-align: middle;margin-left: 5px;"
1036
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1037
- <div id="clr_inline_overlay_color"></div>
1038
- </div>
1039
- </div>
1040
- </div>
1041
- <div class="widget-layout-body">
1042
- <div class="layout-control-group">
1043
- <label class="layout-control-label"><?php _e("Overlay Background", gallery_bank); ?> : </label>
1044
- <div class="layout-controls">
1045
- <input type="text" class="layout-span10" name="ux_overlay_bg_color" id="ux_overlay_bg_color"
1046
- onclick="ux_clr_overlay_bg_color();"
1047
- style="background-color: <?php echo $lightbox_overlay_bg_color; ?>;"
1048
- value="<?php echo $lightbox_overlay_bg_color; ?>"/>
1049
- <img onclick="ux_clr_overlay_bg_color();" style="vertical-align: middle;margin-left: 5px;"
1050
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1051
- <div id="clr_overlay_bg_color"></div>
1052
- </div>
1053
- </div>
1054
- </div>
1055
- <div class="widget-layout-body">
1056
- <div class="layout-control-group">
1057
- <label class="layout-control-label"><?php _e("Fade In Time", gallery_bank); ?> : </label>
1058
- <div class="layout-controls">
1059
- <input type="text" class="layout-span10" name="ux_fade_in_time" id="ux_fade_in_time"
1060
- onkeypress="return OnlyNumbers(event)" value="<?php echo $lightbox_fade_in_time; ?>"/>
1061
- </div>
1062
- </div>
1063
- </div>
1064
- <div class="widget-layout-body">
1065
- <div class="layout-control-group">
1066
- <label class="layout-control-label"><?php _e("Fade Out Time", gallery_bank); ?> : </label>
1067
- <div class="layout-controls">
1068
- <input type="text" class="layout-span10" name="ux_fade_out_time" id="ux_fade_out_time"
1069
- onkeypress="return OnlyNumbers(event)" value="<?php echo $lightbox_fade_out_time; ?>"/>
1070
- </div>
1071
- </div>
1072
- </div>
1073
- <div class="widget-layout-body">
1074
- <div class="layout-control-group">
1075
- <label class="layout-control-label"><?php _e("Text-Align", gallery_bank); ?> : </label>
1076
- <div class="layout-controls">
1077
- <select id="ux_lightbox_text_align" class="layout-span10" name="ux_lightbox_text_align">
1078
- <option value="center">Center</option>
1079
- <option value="inherit">Inherit</option>
1080
- <option value="justify">Justify</option>
1081
- <option value="left">Left</option>
1082
- <option value="right">Right</option>
1083
- </select>
1084
- </div>
1085
- </div>
1086
- </div>
1087
- <div class="widget-layout-body">
1088
- <div class="layout-control-group">
1089
- <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
1090
- <div class="layout-controls">
1091
- <select id="ux_lightbox_font_family" class="layout-span10" name="ux_lightbox_font_family">
1092
- <option value="Arial">Arial</option>
1093
- <option value="Courier">Courier</option>
1094
- <option value="Courier New">Courier New</option>
1095
- <option value="Geneva">Geneva</option>
1096
- <option value="Helvetica">Helvetica</option>
1097
- <option value="inherit">inherit</option>
1098
- <option value="Lucida Grande">Lucida Grande</option>
1099
- <option value="Lucida Sans Unicode">Lucida Sans Unicode</option>
1100
- <option value="Monospace">Monospace</option>
1101
- <option value="Sans-serif">Sans-serif</option>
1102
- <option value="Tahoma">Tahoma</option>
1103
- <option value="Times">Times</option>
1104
- <option value="Times New Roman">Times New Roman</option>
1105
- <option value="Verdana">Verdana</option>
1106
- </select>
1107
- </div>
1108
- </div>
1109
- </div>
1110
- <div class="widget-layout-body">
1111
- <div class="layout-control-group">
1112
- <label class="layout-control-label"><?php _e("Heading Font-Size", gallery_bank); ?> : </label>
1113
- <div class="layout-controls">
1114
- <select id="ux_lightbox_heading_font_size" class="layout-span10" name="ux_lightbox_heading_font_size">
1115
- <?php
1116
- for ($lightbox_heading_font = 8; $lightbox_heading_font <= 24; $lightbox_heading_font++) {
1117
- ?>
1118
- <option <?php if ($lightbox_heading_font == $lightbox_heading_font_size) echo "selected=\"selected\"" ?>
1119
- value="<?php echo $lightbox_heading_font; ?>"><?php echo $lightbox_heading_font; ?></option>
1120
- <?php
1121
- }
1122
- ?>
1123
- </select> (px)
1124
- </div>
1125
- </div>
1126
- </div>
1127
- <div class="widget-layout-body">
1128
- <div class="layout-control-group">
1129
- <label class="layout-control-label"><?php _e("Text Font-Size", gallery_bank); ?> : </label>
1130
- <div class="layout-controls">
1131
- <select id="ux_lightbox_text_font_size" class="layout-span10" name="ux_lightbox_text_font_size">
1132
- <?php
1133
- for ($lightboxfont = 8; $lightboxfont <= 15; $lightboxfont++) {
1134
- ?>
1135
- <option <?php if ($lightboxfont == $lightbox_text_font_size) echo "selected=\"selected\"" ?>
1136
- value="<?php echo $lightboxfont; ?>"><?php echo $lightboxfont; ?></option>
1137
- <?php
1138
- }
1139
- ?>
1140
- </select> (px)
1141
- </div>
1142
- </div>
1143
- </div>
1144
- <div class="widget-layout-body">
1145
- <div class="layout-control-group">
1146
- <label class="layout-control-label"><?php _e("Facebook Comments", gallery_bank); ?> : </label>
1147
- <div class="layout-controls-radio">
1148
- <?php
1149
- if ($facebook_comments == 1) {
1150
- ?>
1151
- <input type="radio" name="ux_facebook" value="1" checked="checked"
1152
- onclick="disable_lightbox_type();"/> <label
1153
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1154
- <input type="radio" style="margin-left: 10px;" name="ux_facebook"
1155
- onclick="disable_lightbox_type();" value="0"/> <label
1156
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1157
- <?php
1158
- } else {
1159
- ?>
1160
- <input type="radio" name="ux_facebook" value="1" onclick="disable_lightbox_type();"/> <label
1161
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1162
- <input type="radio" style="margin-left: 10px;" name="ux_facebook"
1163
- onclick="disable_lightbox_type();" checked="checked" value="0"/> <label
1164
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1165
- <?php
1166
- }
1167
- ?>
1168
- </div>
1169
- </div>
1170
- </div>
1171
- <div class="widget-layout-body">
1172
- <div class="layout-control-group">
1173
- <label class="layout-control-label"><?php _e("Social Sharing", gallery_bank); ?> : </label>
1174
- <div class="layout-controls-radio">
1175
- <?php
1176
- if ($social_sharing == 1) {
1177
- ?>
1178
- <input onclick="disable_lightbox();" type="radio" name="ux_social_sharing" value="1" checked="checked"/> <label
1179
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1180
- <input onclick="disable_lightbox();" type="radio" style="margin-left: 10px;" name="ux_social_sharing" value="0"/> <label
1181
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1182
- <?php
1183
- } else {
1184
- ?>
1185
- <input onclick="disable_lightbox();" type="radio" name="ux_social_sharing" value="1"/> <label
1186
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1187
- <input onclick="disable_lightbox();" type="radio" style="margin-left: 10px;" name="ux_social_sharing" checked="checked"
1188
- value="0"/> <label
1189
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1190
- <?php
1191
- }
1192
- ?>
1193
- </div>
1194
- </div>
1195
- </div>
1196
- <div class="widget-layout-body">
1197
- <div class="layout-control-group">
1198
- <label class="layout-control-label"><?php _e("Image Title", gallery_bank); ?> : </label>
1199
- <div class="layout-controls-radio">
1200
- <?php
1201
- if ($image_title_setting == 1) {
1202
- ?>
1203
- <input type="radio" name="ux_image_title" value="1" checked="checked"/> <label
1204
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1205
- <input type="radio" style="margin-left: 10px;" name="ux_image_title" value="0"/> <label
1206
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1207
- <?php
1208
- } else {
1209
- ?>
1210
- <input type="radio" name="ux_image_title" value="1"/> <label
1211
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1212
- <input type="radio" style="margin-left: 10px;" name="ux_image_title" checked="checked" value="0"/>
1213
- <label style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1214
- <?php
1215
- }
1216
- ?>
1217
- </div>
1218
- </div>
1219
- </div>
1220
- <div class="widget-layout-body">
1221
- <div class="layout-control-group">
1222
- <label class="layout-control-label"><?php _e("Image Description", gallery_bank); ?> : </label>
1223
- <div class="layout-controls-radio">
1224
- <?php
1225
- if ($image_desc_setting == 1) {
1226
- ?>
1227
- <input type="radio" name="ux_image_desc" value="1" checked="checked"/> <label
1228
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1229
- <input type="radio" style="margin-left: 10px;" name="ux_image_desc" value="0"/> <label
1230
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1231
- <?php
1232
- } else {
1233
- ?>
1234
- <input type="radio" name="ux_image_desc" value="1"/> <label
1235
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1236
- <input type="radio" style="margin-left: 10px;" name="ux_image_desc" checked="checked" value="0"/>
1237
- <label style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1238
- <?php
1239
- }
1240
- ?>
1241
- </div>
1242
- </div>
1243
- </div>
1244
  </div>
1245
- </div>
1246
- <div class="widget-layout">
1247
- <div class="widget-layout-title">
1248
- <h4><?php _e("Front - End Layout Settings", gallery_bank); ?>
1249
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
1250
- </h4>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1251
  <span class="tools">
1252
- <a data-target="#frontend_settings" data-toggle="collapse">
1253
- <i class="icon-chevron-down"></i>
1254
- </a>
1255
  </span>
1256
- </div>
1257
- <div id="frontend_settings" class="collapse">
1258
- <div class="widget-layout-body">
1259
- <div class="layout-control-group">
1260
- <label class="layout-control-label"><?php _e("Text for Back Button", gallery_bank); ?> : </label>
1261
-
1262
- <div class="layout-controls">
1263
- <input type="text" class="layout-span10" id="ux_back_button" name="ux_back_button"
1264
- value="<?php echo $back_button_text; ?>"/>
1265
- </div>
1266
- </div>
1267
- </div>
1268
- <div class="widget-layout-body">
1269
- <div class="layout-control-group">
1270
- <label class="layout-control-label"><?php _e("Button Color", gallery_bank); ?> : </label>
1271
- <div class="layout-controls">
1272
- <input type="text" class="layout-span10" id="ux_button_color" name="ux_button_color"
1273
- onclick="ux_clr_button_color();" style="background-color: <?php echo $button_color; ?>;"
1274
- value="<?php echo $button_color; ?>"/>
1275
- <img onclick="ux_clr_button_color();" style="vertical-align: middle;margin-left: 5px;"
1276
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1277
- <div id="clr_button_color"></div>
1278
- </div>
1279
- </div>
1280
- </div>
1281
- <div class="widget-layout-body">
1282
- <div class="layout-control-group">
1283
- <label class="layout-control-label"><?php _e("Button Text Color", gallery_bank); ?> : </label>
1284
- <div class="layout-controls">
1285
- <input type="text" class="layout-span10" id="ux_button_text_color" name="ux_button_text_color"
1286
- onclick="ux_clr_button_text_color();"
1287
- style="background-color: <?php echo $button_text_color; ?>;"
1288
- value="<?php echo $button_text_color; ?>"/>
1289
- <img onclick="ux_clr_button_text_color();" style="vertical-align: middle;margin-left: 5px;"
1290
- src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1291
- <div id="clr_button_text_color"></div>
1292
- </div>
1293
- </div>
1294
- </div>
1295
- <div class="widget-layout-body">
1296
- <div class="layout-control-group">
1297
- <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
1298
- <div class="layout-controls">
1299
- <select id="ux_button_font_family" class="layout-span10" name="ux_button_font_family">
1300
- <option value="Arial">Arial</option>
1301
- <option value="Courier">Courier</option>
1302
- <option value="Courier New">Courier New</option>
1303
- <option value="Geneva">Geneva</option>
1304
- <option value="Helvetica">Helvetica</option>
1305
- <option value="inherit">inherit</option>
1306
- <option value="Lucida Grande">Lucida Grande</option>
1307
- <option value="Lucida Sans Unicode">Lucida Sans Unicode</option>
1308
- <option value="Monospace">Monospace</option>
1309
- <option value="Sans-serif">Sans-serif</option>
1310
- <option value="Tahoma">Tahoma</option>
1311
- <option value="Times">Times</option>
1312
- <option value="Times New Roman">Times New Roman</option>
1313
- <option value="Verdana">Verdana</option>
1314
- </select>
1315
- </div>
1316
- </div>
1317
- </div>
1318
- <div class="widget-layout-body">
1319
- <div class="layout-control-group">
1320
- <label class="layout-control-label"><?php _e("Font-Size", gallery_bank); ?> : </label>
1321
- <div class="layout-controls">
1322
- <select id="ux_button_font_size" class="layout-span10" name="ux_button_font_size">
1323
- <?php
1324
- for ($buttonfont = 8; $buttonfont <= 15; $buttonfont++) {
1325
- ?>
1326
- <option <?php if ($buttonfont == $back_button_font_size) echo "selected=\"selected\"" ?>
1327
- value="<?php echo $buttonfont; ?>"><?php echo $buttonfont; ?></option>
1328
- <?php
1329
- }
1330
- ?>
1331
- </select> (px)
1332
- </div>
1333
- </div>
1334
- </div>
1335
- <div class="widget-layout-body">
1336
- <div class="layout-control-group">
1337
- <label class="layout-control-label"><?php _e("Album Seperator", gallery_bank); ?> : </label>
1338
- <div class="layout-controls-radio">
1339
- <?php
1340
- if ($album_seperator == 1) {
1341
- ?>
1342
- <input type="radio" name="ux_seperator" value="1" checked="checked"/> <label
1343
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1344
- <input type="radio" style="margin-left: 10px;" name="ux_seperator" value="0"/> <label
1345
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1346
- <?php
1347
- } else {
1348
- ?>
1349
- <input type="radio" name="ux_seperator" value="1"/> <label
1350
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1351
- <input type="radio" style="margin-left: 10px;" name="ux_seperator" checked="checked"
1352
- value="0"/> <label
1353
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1354
- <?php
1355
- }
1356
- ?>
1357
- </div>
1358
- </div>
1359
- </div>
1360
- </div>
1361
- </div>
1362
- <div class="widget-layout">
1363
- <div class="widget-layout-title">
1364
- <h4><?php _e("Pagination Settings for Images", gallery_bank); ?>
1365
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
1366
- </h4>
1367
- <span class="tools">
1368
- <a data-target="#pagination_settings" data-toggle="collapse">
1369
- <i class="icon-chevron-down"></i>
1370
- </a>
1371
- </span>
1372
- </div>
1373
- <div id="pagination_settings" class="collapse">
1374
- <div class="widget-layout-body">
1375
- <div class="layout-control-group">
1376
- <label class="layout-control-label"><?php _e("Paging", gallery_bank); ?> : </label>
1377
- <div class="layout-controls-radio">
1378
- <?php
1379
- if ($pagination_setting == 1) {
1380
- ?>
1381
- <input type="radio" name="ux_images_paging" value="1" checked="checked"
1382
- onclick="show_images_per_page()"/> <label
1383
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1384
- <input type="radio" style="margin-left: 10px;" name="ux_images_paging" value="0"
1385
- onclick="show_images_per_page()"/> <label
1386
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1387
- <?php
1388
- } else {
1389
- ?>
1390
- <input type="radio" name="ux_images_paging" value="1" onclick="show_images_per_page()"/>
1391
- <label style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1392
- <input type="radio" style="margin-left: 10px;" name="ux_images_paging" value="0"
1393
- checked="checked" onclick="show_images_per_page()"/> <label
1394
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1395
- <?php
1396
- }
1397
- ?>
1398
- </div>
1399
- </div>
1400
- </div>
1401
- <div class="widget-layout-body" id="ux_images_per_page_div" style="display: none;">
1402
- <div class="layout-control-group">
1403
- <label class="layout-control-label"><?php _e("No. of Images Per Page ", gallery_bank); ?> : </label>
1404
- <div class="layout-controls">
1405
- <input type="text" class="layout-span10" id="ux_images_per_page_val"
1406
- name="ux_images_per_page_val" onblur="set_value('images_per_page')"
1407
- onkeypress="return OnlyNumbers(event)" value="<?php echo $images_per_page; ?>"/>
1408
- </div>
1409
- </div>
1410
- </div>
1411
- </div>
1412
- </div>
1413
- <div class="widget-layout">
1414
- <div class="widget-layout-title">
1415
- <h4><?php _e("Slide Show Settings", gallery_bank); ?>
1416
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
1417
- </h4>
1418
- <span class="tools">
1419
- <a data-target="#slideshow_settings" data-toggle="collapse">
1420
- <i class="icon-chevron-down"></i>
1421
- </a>
1422
- </span>
1423
- </div>
1424
- <div id="slideshow_settings" class="collapse">
1425
- <div class="widget-layout-body">
1426
- <div class="layout-control-group">
1427
- <label class="layout-control-label"><?php _e("Auto Play", gallery_bank); ?> : </label>
1428
- <div class="layout-controls-radio">
1429
- <?php
1430
- if ($autoplay_setting == 1) {
1431
- ?>
1432
- <input type="radio" name="ux_slideshow" value="1" checked="checked"
1433
- onclick="show_slide_interval();"/> <label
1434
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1435
- <input type="radio" style="margin-left: 10px;" name="ux_slideshow" value="0"
1436
- onclick="show_slide_interval();"/> <label
1437
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1438
- <?php
1439
- } else {
1440
- ?>
1441
- <input type="radio" name="ux_slideshow" value="1" onclick="show_slide_interval();"/> <label
1442
- style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1443
- <input type="radio" style="margin-left: 10px;" name="ux_slideshow" checked="checked"
1444
- value="0" onclick="show_slide_interval();"/> <label
1445
- style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1446
- <?php
1447
- }
1448
- ?>
1449
- </div>
1450
- </div>
1451
- </div>
1452
- <div class="widget-layout-body" id="ux_slide_interval_div">
1453
- <div class="layout-control-group">
1454
- <label class="layout-control-label"><?php _e("Interval", gallery_bank); ?> : </label>
1455
- <div class="layout-controls">
1456
- <input type="text" class="layout-span10" id="ux_slide_val" name="ux_slide_val"
1457
- onblur="set_value('slide');" onkeyup="set_value('slide');"
1458
- onkeypress="return OnlyNumbers(event);" value="<?php echo $slide_interval; ?>"/>
1459
- <span style="padding-top:3px;">(0 - 15)</span>
1460
- </div>
1461
- </div>
1462
- </div>
1463
- </div>
1464
- </div>
1465
- <div class="widget-layout">
1466
- <div class="widget-layout-title">
1467
- <h4><?php _e("Language Direction Settings", gallery_bank); ?>
1468
- <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
1469
- </h4>
1470
- <span class="tools">
1471
- <a data-target="#lang_dir_settings" data-toggle="collapse">
1472
- <i class="icon-chevron-down"></i>
1473
- </a>
1474
- </span>
1475
- </div>
1476
- <div id="lang_dir_settings" class="collapse">
1477
- <div class="widget-layout-body">
1478
- <div class="layout-control-group">
1479
- <label class="layout-control-label"><?php _e("Language Direction", gallery_bank); ?> : </label>
1480
- <select id="ux_lang_dir" class="layout-span8" name="ux_lang_dir">
1481
- <option value="inherit">Default</option>
1482
- <option value="rtl">Right to Left</option>
1483
- <option value="ltr">Left to Right</option>
1484
- </select>
1485
- </div>
1486
- </div>
1487
- </div>
1488
- </div>
1489
- </div>
1490
- </div>
1491
  </div>
1492
  </div>
1493
  </div>
1494
  </div>
1495
  </div>
1496
  </div>
1497
- </div>
1498
- </form>
1499
-
1500
- <script type="text/javascript">
1501
- var settings_array = [];
1502
- jQuery(document).ready(function () {
1503
- check_thumbnail_settings();
1504
- check_cover_settings();
1505
- show_slide_interval();
1506
- disable_lightbox_type();
1507
- disable_lightbox();
1508
- show_albums_per_page();
1509
- show_images_per_page();
1510
- show_filter_page();
1511
- <?php
1512
- if($admin_full_control == 1)
1513
- {
1514
- ?>
1515
- jQuery("#ux_full_control_to_admin").prop("checked", "checked");
 
 
 
 
 
 
 
 
1516
  jQuery("#ux_read_control_to_admin").prop("checked", "checked");
1517
- jQuery("#ux_read_control_to_admin").attr("disabled", "disabled");
 
 
 
 
1518
  jQuery("#ux_write_control_to_admin").prop("checked", "checked");
1519
- jQuery("#ux_write_control_to_admin").attr("disabled", "disabled");
1520
  <?php
1521
- }
1522
- if($admin_read_control == 1)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1523
  {
1524
- ?>
1525
- jQuery("#ux_read_control_to_admin").prop("checked", "checked");
1526
- <?php
1527
  }
1528
- if($admin_write_control == 1)
1529
- {
1530
- ?>
1531
- jQuery("#ux_write_control_to_admin").prop("checked", "checked");
1532
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1533
  }
1534
- if($editor_full_control == 1)
1535
- {
1536
- ?>
1537
- jQuery("#ux_full_control_to_editor").prop("checked", "checked");
1538
- jQuery("#ux_read_control_to_editor").prop("checked", "checked");
1539
- jQuery("#ux_read_control_to_editor").attr("disabled", "disabled");
1540
- jQuery("#ux_write_control_to_editor").prop("checked", "checked");
1541
- jQuery("#ux_write_control_to_editor").attr("disabled", "disabled");
1542
- <?php
1543
  }
1544
- if($editor_read_control == 1)
1545
- {
1546
- ?>
1547
- jQuery("#ux_read_control_to_editor").prop("checked", "checked");
1548
- <?php
 
 
1549
  }
1550
- if($editor_write_control == 1)
1551
- {
1552
- ?>
1553
- jQuery("#ux_write_control_to_editor").prop("checked", "checked");
1554
- <?php
 
 
 
1555
  }
1556
- if($author_full_control == 1)
1557
- {
1558
- ?>
1559
- jQuery("#ux_full_control_to_author").prop("checked", "checked");
1560
- jQuery("#ux_read_control_to_author").prop("checked", "checked");
1561
- jQuery("#ux_read_control_to_author").attr("disabled", "disabled");
1562
- jQuery("#ux_write_control_to_author").prop("checked", "checked");
1563
- jQuery("#ux_write_control_to_author").attr("disabled", "disabled");
1564
- <?php
 
1565
  }
1566
- if($author_read_control == 1)
1567
- {
1568
- ?>
1569
- jQuery("#ux_read_control_to_author").prop("checked", "checked");
1570
- <?php
 
 
 
1571
  }
1572
- if($author_write_control == 1)
1573
- {
1574
- ?>
1575
- jQuery("#ux_write_control_to_author").prop("checked", "checked");
1576
- <?php
 
 
 
1577
  }
1578
- if($contributor_full_control == 1)
1579
- {
1580
- ?>
1581
- jQuery("#ux_full_control_to_contributor").prop("checked", "checked");
1582
- jQuery("#ux_read_control_to_contributor").prop("checked", "checked");
1583
- jQuery("#ux_read_control_to_contributor").attr("disabled", "disabled");
1584
- jQuery("#ux_write_control_to_contributor").prop("checked", "checked");
1585
- jQuery("#ux_write_control_to_contributor").attr("disabled", "disabled");
1586
- <?php
1587
  }
1588
- if($contributor_read_control == 1)
1589
- {
1590
- ?>
1591
- jQuery("#ux_read_control_to_contributor").prop("checked", "checked");
1592
- <?php
 
 
1593
  }
1594
- if($contributor_write_control == 1)
1595
- {
1596
- ?>
1597
- jQuery("#ux_write_control_to_contributor").prop("checked", "checked");
1598
- <?php
 
1599
  }
1600
- if($subscriber_full_control == 1)
1601
- {
1602
- ?>
1603
- jQuery("#ux_full_control_to_subscriber").prop("checked", "checked");
1604
- jQuery("#ux_read_control_to_subscriber").prop("checked", "checked");
1605
- jQuery("#ux_read_control_to_subscriber").attr("disabled", "disabled");
1606
- jQuery("#ux_write_control_to_subscriber").prop("checked", "checked");
1607
- jQuery("#ux_write_control_to_subscriber").attr("disabled", "disabled");
1608
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1609
  }
1610
- if($subscriber_read_control == 1)
1611
- {
1612
- ?>
1613
- jQuery("#ux_read_control_to_subscriber").prop("checked", "checked");
1614
- <?php
1615
  }
1616
- if($subscriber_write_control == 1)
1617
- {
1618
- ?>
1619
- jQuery("#ux_write_control_to_subscriber").prop("checked", "checked");
1620
- <?php
1621
  }
1622
- ?>
1623
- jQuery("#ux_lightbox_type").val("<?php echo $lightbox_type;?>");
1624
- jQuery("#ux_thumb_text_align").val("<?php echo $thumbnail_text_align;?>");
1625
- jQuery("#ux_thumb_font_family").val("<?php echo $thumbnail_font_family;?>");
1626
- jQuery("#ux_album_text_align").val("<?php echo $album_text_align;?>");
1627
- jQuery("#ux_album_font_family").val("<?php echo $album_font_family;?>");
1628
- jQuery("#ux_filter_font_family").val("<?php echo $filter_font_family;?>");
1629
- jQuery("#ux_button_font_family").val("<?php echo $back_button_font_family;?>");
1630
- jQuery("#ux_lightbox_text_align").val("<?php echo $lightbox_text_align;?>");
1631
- jQuery("#ux_lightbox_font_family").val("<?php echo $lightbox_font_family;?>");
1632
- jQuery("#ux_lang_dir").val("<?php echo $lang_dir_setting;?>");
1633
- });
1634
- function show_premium_message()
1635
- {
1636
- alert("<?php _e( "This Feature is only available in Paid Premium Version!", gallery_bank ); ?>");
1637
- }
1638
- function disable_admin_checkbox(control) {
1639
- var controlId = jQuery(control).attr("id");
1640
- var full_control = "";
1641
- switch (controlId) {
1642
- case "ux_full_control_to_admin":
1643
-
1644
- full_control = jQuery("#ux_full_control_to_admin").prop("checked");
1645
- if (full_control == true) {
1646
- jQuery("#ux_read_control_to_admin").prop("checked", "checked");
1647
- jQuery("#ux_read_control_to_admin").attr("disabled", "disabled");
1648
- jQuery("#ux_write_control_to_admin").prop("checked", "checked");
1649
- jQuery("#ux_write_control_to_admin").attr("disabled", "disabled");
1650
- }
1651
- else {
1652
- jQuery("#ux_read_control_to_admin").prop("checked", false);
1653
- jQuery("#ux_read_control_to_admin").removeAttr("disabled", "disabled");
1654
- jQuery("#ux_write_control_to_admin").prop("checked", false);
1655
- jQuery("#ux_write_control_to_admin").removeAttr("disabled", "disabled");
1656
- }
1657
-
1658
- break;
1659
- case "ux_full_control_to_editor":
1660
-
1661
- full_control = jQuery("#ux_full_control_to_editor").prop("checked");
1662
- if (full_control == true) {
1663
- jQuery("#ux_read_control_to_editor").prop("checked", "checked");
1664
- jQuery("#ux_read_control_to_editor").attr("disabled", "disabled");
1665
- jQuery("#ux_write_control_to_editor").prop("checked", "checked");
1666
- jQuery("#ux_write_control_to_editor").attr("disabled", "disabled");
1667
- }
1668
- else {
1669
- jQuery("#ux_read_control_to_editor").prop("checked", false);
1670
- jQuery("#ux_read_control_to_editor").removeAttr("disabled", "disabled");
1671
- jQuery("#ux_write_control_to_editor").prop("checked", false);
1672
- jQuery("#ux_write_control_to_editor").removeAttr("disabled", "disabled");
1673
- }
1674
-
1675
- break;
1676
- case "ux_full_control_to_author":
1677
-
1678
- full_control = jQuery("#ux_full_control_to_author").prop("checked");
1679
- if (full_control == true) {
1680
- jQuery("#ux_read_control_to_author").prop("checked", "checked");
1681
- jQuery("#ux_read_control_to_author").attr("disabled", "disabled");
1682
- jQuery("#ux_write_control_to_author").prop("checked", "checked");
1683
- jQuery("#ux_write_control_to_author").attr("disabled", "disabled");
1684
- }
1685
- else {
1686
- jQuery("#ux_read_control_to_author").prop("checked", false);
1687
- jQuery("#ux_read_control_to_author").removeAttr("disabled", "disabled");
1688
- jQuery("#ux_write_control_to_author").prop("checked", false);
1689
- jQuery("#ux_write_control_to_author").removeAttr("disabled", "disabled");
1690
- }
1691
-
1692
- break;
1693
- case "ux_full_control_to_contributor":
1694
-
1695
- full_control = jQuery("#ux_full_control_to_contributor").prop("checked");
1696
- if (full_control == true) {
1697
- jQuery("#ux_read_control_to_contributor").prop("checked", "checked");
1698
- jQuery("#ux_read_control_to_contributor").attr("disabled", "disabled");
1699
- jQuery("#ux_write_control_to_contributor").prop("checked", "checked");
1700
- jQuery("#ux_write_control_to_contributor").attr("disabled", "disabled");
1701
- }
1702
- else {
1703
- jQuery("#ux_read_control_to_contributor").prop("checked", false);
1704
- jQuery("#ux_read_control_to_contributor").removeAttr("disabled", "disabled");
1705
- jQuery("#ux_write_control_to_contributor").prop("checked", false);
1706
- jQuery("#ux_write_control_to_contributor").removeAttr("disabled", "disabled");
1707
- }
1708
-
1709
- break;
1710
- case "ux_full_control_to_subscriber":
1711
-
1712
- full_control = jQuery("#ux_full_control_to_subscriber").prop("checked");
1713
- if (full_control == true) {
1714
- jQuery("#ux_read_control_to_subscriber").prop("checked", "checked");
1715
- jQuery("#ux_read_control_to_subscriber").attr("disabled", "disabled");
1716
- jQuery("#ux_write_control_to_subscriber").prop("checked", "checked");
1717
- jQuery("#ux_write_control_to_subscriber").attr("disabled", "disabled");
1718
- }
1719
- else {
1720
- jQuery("#ux_read_control_to_subscriber").prop("checked", false);
1721
- jQuery("#ux_read_control_to_subscriber").removeAttr("disabled", "disabled");
1722
- jQuery("#ux_write_control_to_subscriber").prop("checked", false);
1723
- jQuery("#ux_write_control_to_subscriber").removeAttr("disabled", "disabled");
1724
- }
1725
-
1726
- break;
1727
- }
1728
- }
1729
- function check_thumbnail_settings() {
1730
- var thumb_setting = jQuery("input:radio[name=ux_thumbnail]:checked").val();
1731
- if (thumb_setting != 0) {
1732
- jQuery("#image_width").css("display", "none");
1733
- jQuery("#image_height").css("display", "none");
1734
- } else {
1735
- jQuery("#image_width").css("display", "block");
1736
- jQuery("#image_height").css("display", "block");
1737
- }
1738
- }
1739
- function show_albums_per_page() {
1740
- var album_paging = jQuery("input:radio[name=ux_album_paging]:checked").val();
1741
- if (album_paging != 1) {
1742
- jQuery("#ux_album_per_page_div").css("display", "none");
1743
- } else {
1744
- jQuery("#ux_album_per_page_div").css("display", "block");
1745
- }
1746
- }
1747
- function show_images_per_page() {
1748
- var images_paging = jQuery("input:radio[name=ux_images_paging]:checked").val();
1749
- if (images_paging == 1) {
1750
- jQuery("#ux_images_per_page_div").css("display", "block");
1751
- }
1752
- else {
1753
- jQuery("#ux_images_per_page_div").css("display", "none");
1754
- }
1755
- }
1756
- function check_cover_settings() {
1757
- var cover_setting = jQuery("input:radio[name=ux_cover_size]:checked").val();
1758
- if (cover_setting == 0) {
1759
- jQuery("#cover_width").css("display", "block");
1760
- jQuery("#cover_height").css("display", "block");
1761
- }
1762
- else {
1763
- jQuery("#cover_width").css("display", "none");
1764
- jQuery("#cover_height").css("display", "none");
1765
- }
1766
- }
1767
- function disable_lightbox_type() {
1768
- var facebook_enable = jQuery("input:radio[name=ux_facebook]:checked").val();
1769
- if (facebook_enable != 1 ) {
1770
- jQuery("#ux_lightbox_type").removeAttr("disabled", "disabled");
1771
- } else {
1772
- jQuery("#ux_lightbox_type").val("GB_lightbox");
1773
- jQuery("#ux_lightbox_type").attr("disabled", "disabled");
1774
- }
1775
- }
1776
- function disable_lightbox() {
1777
- var social_enable = jQuery("input:radio[name=ux_social_sharing]:checked").val();
1778
- if (social_enable != 1 ) {
1779
- jQuery("#ux_lightbox_type").removeAttr("disabled", "disabled");
1780
- } else {
1781
- jQuery("#ux_lightbox_type").val("GB_lightbox");
1782
- jQuery("#ux_lightbox_type").attr("disabled", "disabled");
1783
- }
1784
- }
1785
- function show_slide_interval() {
1786
- var slideshow_enable = jQuery("input:radio[name=ux_slideshow]:checked").val();
1787
- if (slideshow_enable != 1) {
1788
- jQuery("#ux_slide_interval_div").css("display", "none");
1789
- } else {
1790
- jQuery("#ux_slide_interval_div").css("display", "block");
1791
- }
1792
- }
1793
- function show_filter_page() {
1794
- var filter_enable = jQuery("input:radio[name=ux_image_filters]:checked").val();
1795
- if (filter_enable != 1) {
1796
- jQuery("#ux_filter_setting_div").css("display", "none");
1797
- } else {
1798
- jQuery("#ux_filter_setting_div").css("display", "block");
1799
- }
1800
- }
1801
- /**
1802
- * @return {boolean}
1803
- */
1804
- function OnlyNumbers(evt) {
1805
- var charCode = (evt.which) ? evt.which : event.keyCode;
1806
- return (charCode > 47 && charCode < 58) || charCode == 127 || charCode == 8;
1807
- }
1808
- function set_value(text_type) {
1809
- var val = "";
1810
- switch (text_type) {
1811
- case "thumb_opacity":
1812
-
1813
- val = jQuery("#ux_image_opacity_val").val();
1814
- if (val <= 100) {
1815
- if (val > 0) {
1816
- jQuery("#ux_image_opacity_val").val(jQuery("#ux_image_opacity_val").val().replace(/^0+/, ""));
1817
- }
1818
- else if (val == "") {
1819
- jQuery("#ux_image_opacity_val").val(0);
1820
- }
1821
- } else {
1822
- jQuery("#ux_image_opacity_val").val(100);
1823
- }
1824
-
1825
- break;
1826
- case "thumb_border_size":
1827
-
1828
- val = jQuery("#ux_image_border_val").val();
1829
- if (val <= 20) {
1830
- if (val > 0) {
1831
- jQuery("#ux_image_border_val").val(jQuery("#ux_image_border_val").val().replace(/^0+/, ""));
1832
- }
1833
- else if (val == "") {
1834
- jQuery("#ux_image_border_val").val(0);
1835
- }
1836
- } else {
1837
- jQuery("#ux_image_border_val").val(20);
1838
- }
1839
-
1840
- break;
1841
- case "thumb_border_radius":
1842
-
1843
- val = jQuery("#ux_image_radius_val").val();
1844
- if (val <= 20) {
1845
- if (val > 0) {
1846
- jQuery("#ux_image_radius_val").val(jQuery("#ux_image_radius_val").val().replace(/^0+/, ""));
1847
- }
1848
- else if (val == "") {
1849
- jQuery("#ux_image_radius_val").val(0);
1850
- }
1851
- } else {
1852
- jQuery("#ux_image_radius_val").val(20);
1853
- }
1854
-
1855
- break;
1856
- case "cover_opacity":
1857
-
1858
- val = jQuery("#ux_cover_opacity_val").val();
1859
- if (val <= 100) {
1860
- if (val > 0) {
1861
- jQuery("#ux_cover_opacity_val").val(jQuery("#ux_cover_opacity_val").val().replace(/^0+/, ""));
1862
- }
1863
- else if (val == "") {
1864
- jQuery("#ux_cover_opacity_val").val(0);
1865
- }
1866
- } else {
1867
- jQuery("#ux_cover_opacity_val").val(100);
1868
- }
1869
-
1870
- break;
1871
- case "cover_border_size":
1872
-
1873
- val = jQuery("#ux_cover_border_val").val();
1874
- if (val <= 20) {
1875
- if (val > 0) {
1876
- jQuery("#ux_cover_border_val").val(jQuery("#ux_cover_border_val").val().replace(/^0+/, ""));
1877
- }
1878
- else if (val == "") {
1879
- jQuery("#ux_cover_border_val").val(0);
1880
- }
1881
- } else {
1882
- jQuery("#ux_cover_border_val").val(20);
1883
- }
1884
- break;
1885
- case "cover_border_radius":
1886
-
1887
- val = jQuery("#ux_cover_radius_val").val();
1888
- if (val <= 20) {
1889
- if (val > 0) {
1890
- jQuery("#ux_cover_radius_val").val(jQuery("#ux_cover_radius_val").val().replace(/^0+/, ""));
1891
- }
1892
- else if (val == "") {
1893
- jQuery("#ux_cover_radius_val").val(0);
1894
- }
1895
- } else {
1896
- jQuery("#ux_cover_radius_val").val(20);
1897
- }
1898
-
1899
- break;
1900
- case "lightbox_opacity":
1901
-
1902
- val = jQuery("#ux_lightbox_opacity_val").val();
1903
- if (val > 100) {
1904
- jQuery("#ux_lightbox_opacity_val").val(100);
1905
- }
1906
- else if (val > 0) {
1907
- jQuery("#ux_lightbox_opacity_val").val(jQuery("#ux_lightbox_opacity_val").val().replace(/^0+/, ""));
1908
- }
1909
- else if (val == "") {
1910
- jQuery("#ux_lightbox_opacity_val").val(0);
1911
- }
1912
-
1913
- break;
1914
- case "lightbox_border":
1915
-
1916
- val = jQuery("#ux_lightbox_border_val").val();
1917
- if (val <= 20) {
1918
- if (val > 0) {
1919
- jQuery("#ux_lightbox_border_val").val(jQuery("#ux_lightbox_border_val").val().replace(/^0+/, ""));
1920
- }
1921
- else if (val == "") {
1922
- jQuery("#ux_lightbox_border_val").val(0);
1923
- }
1924
- } else {
1925
- jQuery("#ux_lightbox_border_val").val(20);
1926
- }
1927
-
1928
- break;
1929
- case "lightbox_radius":
1930
-
1931
- val = jQuery("#ux_lightbox_radius_val").val();
1932
- if (val <= 20) {
1933
- if (val > 0) {
1934
- jQuery("#ux_lightbox_radius_val").val(jQuery("#ux_lightbox_radius_val").val().replace(/^0+/, ""));
1935
- }
1936
- else if (val == "") {
1937
- jQuery("#ux_lightbox_radius_val").val(0);
1938
- }
1939
- } else {
1940
- jQuery("#ux_lightbox_radius_val").val(20);
1941
- }
1942
-
1943
- break;
1944
- case "slide":
1945
-
1946
- val = jQuery("#ux_slide_val").val();
1947
- if (val <= 15) {
1948
- if (val > 0) {
1949
- jQuery("#ux_slide_val").val(jQuery("#ux_slide_val").val().replace(/^0+/, ""));
1950
- }
1951
- else if (val == "") {
1952
- jQuery("#ux_slide_val").val(0);
1953
- }
1954
- } else {
1955
- jQuery("#ux_slide_val").val(15);
1956
- }
1957
-
1958
- break;
1959
- case "albums_per_page":
1960
-
1961
- val = jQuery("#ux_albums_per_page_val").val();
1962
- if (val < 1) {
1963
- jQuery("#ux_albums_per_page_val").val(1);
1964
- }
1965
-
1966
- break;
1967
- case "images_per_page":
1968
-
1969
- val = jQuery("#ux_images_per_page_val").val();
1970
- if (val < 1) {
1971
- jQuery("#ux_images_per_page_val").val(1);
1972
- }
1973
- break;
1974
- }
1975
- }
1976
-
1977
- function ux_clr_inline_overlay_color() {
1978
- jQuery("#clr_inline_overlay_color").farbtastic("#ux_inline_overlay_color");
1979
- jQuery("#clr_inline_overlay_color").slideDown();
1980
- jQuery("#ux_inline_overlay_color").focus();
1981
- }
1982
- function ux_clr_overlay_bg_color() {
1983
- jQuery("#clr_overlay_bg_color").farbtastic("#ux_overlay_bg_color");
1984
- jQuery("#clr_overlay_bg_color").slideDown();
1985
- jQuery("#ux_overlay_bg_color").focus();
1986
- }
1987
- function ux_clr_album_font_color() {
1988
- jQuery("#clr_album_text_color").farbtastic("#ux_album_text_color");
1989
- jQuery("#clr_album_text_color").slideDown();
1990
- jQuery("#ux_album_text_color").focus();
1991
- }
1992
- function ux_clr_overlay_border_color() {
1993
- jQuery("#clr_overlay_border_color").farbtastic("#ux_overlay_border_color");
1994
- jQuery("#clr_overlay_border_color").slideDown();
1995
- jQuery("#ux_overlay_border_color").focus();
1996
- }
1997
- function ux_clr_lightbox_text_color() {
1998
- jQuery("#clr_lightbox_text_color").farbtastic("#ux_lightbox_text_color");
1999
- jQuery("#clr_lightbox_text_color").slideDown();
2000
- jQuery("#ux_lightbox_text_color").focus();
2001
- }
2002
- function ux_clr_cover_border_color() {
2003
- jQuery("#clr_cover_border_color").farbtastic("#ux_cover_border_color");
2004
- jQuery("#clr_cover_border_color").slideDown();
2005
- jQuery("#ux_cover_border_color").focus();
2006
- }
2007
- function ux_clr_border_color() {
2008
- jQuery("#clr_border_color").farbtastic("#ux_border_color");
2009
- jQuery("#clr_border_color").slideDown();
2010
- jQuery("#ux_border_color").focus();
2011
- }
2012
- function ux_clr_thumb_text_color() {
2013
- jQuery("#clr_thumb_text_color").farbtastic("#ux_thumb_text_color");
2014
- jQuery("#clr_thumb_text_color").slideDown();
2015
- jQuery("#ux_thumb_text_color").focus();
2016
- }
2017
- function ux_clr_button_color() {
2018
- jQuery("#clr_button_color").farbtastic("#ux_button_color");
2019
- jQuery("#clr_button_color").slideDown();
2020
- jQuery("#ux_button_color").focus();
2021
- }
2022
- function ux_clr_button_text_color() {
2023
- jQuery("#clr_button_text_color").farbtastic("#ux_button_text_color");
2024
- jQuery("#clr_button_text_color").slideDown();
2025
- jQuery("#ux_button_text_color").focus();
2026
- }
2027
- function ux_clr_filter_color() {
2028
- jQuery("#clr_filter_color").farbtastic("#ux_filter_color");
2029
- jQuery("#clr_filter_color").slideDown();
2030
- jQuery("#ux_filter_color").focus();
2031
- }
2032
- function ux_clr_filter_text_color() {
2033
- jQuery("#clr_filter_text_color").farbtastic("#ux_filter_text_color");
2034
- jQuery("#clr_filter_text_color").slideDown();
2035
- jQuery("#ux_filter_text_color").focus();
2036
- }
2037
-
2038
- jQuery("#ux_inline_overlay_color").blur(function () {
2039
- jQuery("#clr_inline_overlay_color").slideUp()
2040
- });
2041
- jQuery("#ux_overlay_bg_color").blur(function () {
2042
- jQuery("#clr_overlay_bg_color").slideUp()
2043
- });
2044
- jQuery("#ux_album_text_color").blur(function () {
2045
- jQuery("#clr_album_text_color").slideUp()
2046
- });
2047
- jQuery("#ux_overlay_border_color").blur(function () {
2048
- jQuery("#clr_overlay_border_color").slideUp()
2049
- });
2050
- jQuery("#ux_lightbox_text_color").blur(function () {
2051
- jQuery("#clr_lightbox_text_color").slideUp()
2052
- });
2053
- jQuery("#ux_cover_border_color").blur(function () {
2054
- jQuery("#clr_cover_border_color").slideUp()
2055
- });
2056
- jQuery("#ux_border_color").blur(function () {
2057
- jQuery("#clr_border_color").slideUp()
2058
- });
2059
- jQuery("#ux_thumb_text_color").blur(function () {
2060
- jQuery("#clr_thumb_text_color").slideUp()
2061
- });
2062
- jQuery("#ux_button_color").blur(function () {
2063
- jQuery("#clr_button_color").slideUp()
2064
- });
2065
- jQuery("#ux_button_text_color").blur(function () {
2066
- jQuery("#clr_button_text_color").slideUp()
2067
- });
2068
- jQuery("#ux_filter_color").blur(function () {
2069
- jQuery("#clr_filter_color").slideUp()
2070
- });
2071
- jQuery("#ux_filter_text_color").blur(function () {
2072
- jQuery("#clr_filter_text_color").slideUp()
2073
- });
2074
- </script>
2075
- <?php
2076
  }
2077
  ?>
1
  <?php
2
  global $wpdb, $current_user,$wp_version;
3
+ $role = $wpdb->prefix . "capabilities";
4
+ $current_user->role = array_keys($current_user->$role);
5
+ $role = $current_user->role[0];
6
+ switch($role)
7
+ {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
23
+ }
24
+ if (!current_user_can($user_role_permission))
25
+ {
26
+ return;
27
+ }
28
+ else
29
+ {
30
+ $album_css = $wpdb->get_results
31
+ (
32
+ "SELECT * FROM " . gallery_bank_settings()
33
+ );
34
+ if (count($album_css) != 0) {
35
+ $setting_keys = array();
36
+ for ($flag = 0; $flag < count($album_css); $flag++) {
37
+ array_push($setting_keys, $album_css[$flag]->setting_key);
38
+ }
39
+ $index = array_search("thumbnails_custom_enable", $setting_keys);
40
+ $thumbnails_custom_enable = intval($album_css[$index]->setting_value);
41
+
42
+ $index = array_search("thumbnails_width", $setting_keys);
43
+ $thumbnails_width = intval($album_css[$index]->setting_value);
44
+
45
+ $index = array_search("thumbnails_height", $setting_keys);
46
+ $thumbnails_height = intval($album_css[$index]->setting_value);
47
+
48
+ $index = array_search("thumbnails_opacity", $setting_keys);
49
+ $thumbnails_opacity = doubleval($album_css[$index]->setting_value);
50
+
51
+ $index = array_search("thumbnails_border_size", $setting_keys);
52
+ $thumbnails_border_size = intval($album_css[$index]->setting_value);
53
+
54
+ $index = array_search("thumbnails_border_radius", $setting_keys);
55
+ $thumbnails_border_radius = intval($album_css[$index]->setting_value);
56
+
57
+ $index = array_search("thumbnails_border_color", $setting_keys);
58
+ $thumbnails_border_color = $album_css[$index]->setting_value;
59
+
60
+ $index = array_search("margin_btw_thumbnails", $setting_keys);
61
+ $margin_btw_thumbnails = intval($album_css[$index]->setting_value);
62
+
63
+ $index = array_search("thumbnail_text_color", $setting_keys);
64
+ $thumbnail_text_color = $album_css[$index]->setting_value;
65
+
66
+ $index = array_search("thumbnail_text_align", $setting_keys);
67
+ $thumbnail_text_align = $album_css[$index]->setting_value;
68
+
69
+ $index = array_search("thumbnail_font_family", $setting_keys);
70
+ $thumbnail_font_family = $album_css[$index]->setting_value;
71
+
72
+ $index = array_search("heading_font_size", $setting_keys);
73
+ $heading_font_size = intval($album_css[$index]->setting_value);
74
+
75
+ $index = array_search("text_font_size", $setting_keys);
76
+ $text_font_size = intval($album_css[$index]->setting_value);
77
+
78
+ $index = array_search("thumbnail_desc_length", $setting_keys);
79
+ $thumbnail_desc_length = intval($album_css[$index]->setting_value);
80
+
81
+ $index = array_search("cover_custom_enable", $setting_keys);
82
+ $cover_custom_enable = intval($album_css[$index]->setting_value);
83
+
84
+ $index = array_search("cover_thumbnail_width", $setting_keys);
85
+ $cover_thumbnail_width = intval($album_css[$index]->setting_value);
86
+
87
+ $index = array_search("cover_thumbnail_height", $setting_keys);
88
+ $cover_thumbnail_height = intval($album_css[$index]->setting_value);
89
+
90
+ $index = array_search("cover_thumbnail_opacity", $setting_keys);
91
+ $cover_thumbnail_opacity = doubleval($album_css[$index]->setting_value);
92
+
93
+ $index = array_search("cover_thumbnail_border_size", $setting_keys);
94
+ $cover_thumbnail_border_size = intval($album_css[$index]->setting_value);
95
+
96
+ $index = array_search("cover_thumbnail_border_radius", $setting_keys);
97
+ $cover_thumbnail_border_radius = intval($album_css[$index]->setting_value);
98
+
99
+ $index = array_search("cover_thumbnail_border_color", $setting_keys);
100
+ $cover_thumbnail_border_color = $album_css[$index]->setting_value;
101
+
102
+ $index = array_search("margin_btw_cover_thumbnails", $setting_keys);
103
+ $margin_btw_cover_thumbnails = intval($album_css[$index]->setting_value);
104
+
105
+ $index = array_search("album_text_align", $setting_keys);
106
+ $album_text_align = $album_css[$index]->setting_value;
107
+
108
+ $index = array_search("album_font_family", $setting_keys);
109
+ $album_font_family = $album_css[$index]->setting_value;
110
+
111
+ $index = array_search("album_heading_font_size", $setting_keys);
112
+ $album_heading_font_size = intval($album_css[$index]->setting_value);
113
+
114
+ $index = array_search("album_text_font_size", $setting_keys);
115
+ $album_text_font_size = intval($album_css[$index]->setting_value);
116
+
117
+ $index = array_search("album_desc_length", $setting_keys);
118
+ $album_desc_length = $album_css[$index]->setting_value;
119
+
120
+ $index = array_search("lightbox_type", $setting_keys);
121
+ $lightbox_type = $album_css[$index]->setting_value;
122
+
123
+ $index = array_search("lightbox_overlay_opacity", $setting_keys);
124
+ $lightbox_overlay_opacity = doubleval($album_css[$index]->setting_value);
125
+
126
+ $index = array_search("lightbox_overlay_border_size", $setting_keys);
127
+ $lightbox_overlay_border_size = intval($album_css[$index]->setting_value);
128
+
129
+ $index = array_search("lightbox_overlay_border_radius", $setting_keys);
130
+ $lightbox_overlay_border_radius = intval($album_css[$index]->setting_value);
131
+
132
+ $index = array_search("lightbox_text_color", $setting_keys);
133
+ $lightbox_text_color = $album_css[$index]->setting_value;
134
+
135
+ $index = array_search("lightbox_overlay_border_color", $setting_keys);
136
+ $lightbox_overlay_border_color = $album_css[$index]->setting_value;
137
+
138
+ $index = array_search("lightbox_inline_bg_color", $setting_keys);
139
+ $lightbox_inline_bg_color = $album_css[$index]->setting_value;
140
+
141
+ $index = array_search("lightbox_overlay_bg_color", $setting_keys);
142
+ $lightbox_overlay_bg_color = $album_css[$index]->setting_value;
143
+
144
+ $index = array_search("lightbox_fade_in_time", $setting_keys);
145
+ $lightbox_fade_in_time = intval($album_css[$index]->setting_value);
146
+
147
+ $index = array_search("lightbox_fade_out_time", $setting_keys);
148
+ $lightbox_fade_out_time = intval($album_css[$index]->setting_value);
149
+
150
+ $index = array_search("lightbox_text_align", $setting_keys);
151
+ $lightbox_text_align = $album_css[$index]->setting_value;
152
+
153
+ $index = array_search("lightbox_font_family", $setting_keys);
154
+ $lightbox_font_family = $album_css[$index]->setting_value;
155
+
156
+ $index = array_search("lightbox_heading_font_size", $setting_keys);
157
+ $lightbox_heading_font_size = intval($album_css[$index]->setting_value);
158
+
159
+ $index = array_search("lightbox_text_font_size", $setting_keys);
160
+ $lightbox_text_font_size = intval($album_css[$index]->setting_value);
161
+
162
+ $index = array_search("facebook_comments", $setting_keys);
163
+ $facebook_comments = intval($album_css[$index]->setting_value);
164
+
165
+ $index = array_search("social_sharing", $setting_keys);
166
+ $social_sharing = intval($album_css[$index]->setting_value);
167
+
168
+ $index = array_search("image_title_setting", $setting_keys);
169
+ $image_title_setting = intval($album_css[$index]->setting_value);
170
+
171
+ $index = array_search("image_desc_setting", $setting_keys);
172
+ $image_desc_setting = intval($album_css[$index]->setting_value);
173
+
174
+ $index = array_search("autoplay_setting", $setting_keys);
175
+ $autoplay_setting = intval($album_css[$index]->setting_value);
176
+
177
+ $index = array_search("slide_interval", $setting_keys);
178
+ $slide_interval = intval($album_css[$index]->setting_value);
179
+
180
+ $index = array_search("pagination_setting", $setting_keys);
181
+ $pagination_setting = intval($album_css[$index]->setting_value);
182
+
183
+ $index = array_search("images_per_page", $setting_keys);
184
+ $images_per_page = intval($album_css[$index]->setting_value);
185
+
186
+ $index = array_search("filters_setting", $setting_keys);
187
+ $filters_setting = intval($album_css[$index]->setting_value);
188
+
189
+ $index = array_search("filter_font_family", $setting_keys);
190
+ $filter_font_family = $album_css[$index]->setting_value;
191
+
192
+ $index = array_search("filter_font_size", $setting_keys);
193
+ $filter_font_size = intval($album_css[$index]->setting_value);
194
+
195
+ $index = array_search("back_button_text", $setting_keys);
196
+ $back_button_text = $album_css[$index]->setting_value;
197
+
198
+ $index = array_search("album_click_text", $setting_keys);
199
+ $album_click_text = $album_css[$index]->setting_value;
200
+
201
+ $index = array_search("album_text_color", $setting_keys);
202
+ $album_text_color = $album_css[$index]->setting_value;
203
+
204
+ $index = array_search("button_color", $setting_keys);
205
+ $button_color = $album_css[$index]->setting_value;
206
+
207
+ $index = array_search("button_text_color", $setting_keys);
208
+ $button_text_color = $album_css[$index]->setting_value;
209
+
210
+ $index = array_search("filters_color", $setting_keys);
211
+ $filters_color = $album_css[$index]->setting_value;
212
+
213
+ $index = array_search("filters_text_color", $setting_keys);
214
+ $filters_text_color = $album_css[$index]->setting_value;
215
+
216
+ $index = array_search("album_seperator", $setting_keys);
217
+ $album_seperator = intval($album_css[$index]->setting_value);
218
+
219
+ $index = array_search("back_button_font_family", $setting_keys);
220
+ $back_button_font_family = $album_css[$index]->setting_value;
221
+
222
+ $index = array_search("back_button_font_size", $setting_keys);
223
+ $back_button_font_size = intval($album_css[$index]->setting_value);
224
+
225
+ $index = array_search("admin_full_control", $setting_keys);
226
+ $admin_full_control = intval($album_css[$index]->setting_value);
227
+
228
+ $index = array_search("admin_read_control", $setting_keys);
229
+ $admin_read_control = intval($album_css[$index]->setting_value);
230
+
231
+ $index = array_search("admin_write_control", $setting_keys);
232
+ $admin_write_control = intval($album_css[$index]->setting_value);
233
+
234
+ $index = array_search("editor_full_control", $setting_keys);
235
+ $editor_full_control = intval($album_css[$index]->setting_value);
236
+
237
+ $index = array_search("editor_read_control", $setting_keys);
238
+ $editor_read_control = intval($album_css[$index]->setting_value);
239
+
240
+ $index = array_search("editor_write_control", $setting_keys);
241
+ $editor_write_control = intval($album_css[$index]->setting_value);
242
+
243
+ $index = array_search("author_full_control", $setting_keys);
244
+ $author_full_control = intval($album_css[$index]->setting_value);
245
+
246
+ $index = array_search("author_read_control", $setting_keys);
247
+ $author_read_control = intval($album_css[$index]->setting_value);
248
+
249
+ $index = array_search("author_write_control", $setting_keys);
250
+ $author_write_control = intval($album_css[$index]->setting_value);
251
+
252
+ $index = array_search("contributor_full_control", $setting_keys);
253
+ $contributor_full_control = intval($album_css[$index]->setting_value);
254
+
255
+ $index = array_search("contributor_read_control", $setting_keys);
256
+ $contributor_read_control = intval($album_css[$index]->setting_value);
257
+
258
+ $index = array_search("contributor_write_control", $setting_keys);
259
+ $contributor_write_control = intval($album_css[$index]->setting_value);
260
+
261
+ $index = array_search("subscriber_full_control", $setting_keys);
262
+ $subscriber_full_control = intval($album_css[$index]->setting_value);
263
+
264
+ $index = array_search("subscriber_read_control", $setting_keys);
265
+ $subscriber_read_control = intval($album_css[$index]->setting_value);
266
+
267
+ $index = array_search("subscriber_write_control", $setting_keys);
268
+ $subscriber_write_control = intval($album_css[$index]->setting_value);
269
+
270
+ $index = array_search("subscriber_write_control", $setting_keys);
271
+ $subscriber_write_control = intval($album_css[$index]->setting_value);
272
+
273
+ $index = array_search("language_direction", $setting_keys);
274
+ $lang_dir_setting = $album_css[$index]->setting_value;
275
+
276
+ ?>
277
+ <!--suppress ALL -->
278
+ <form id="global_settings" class="layout-form">
279
+ <div id="poststuff" style="width: 99% !important;">
280
+ <div id="post-body" class="metabox-holder">
281
+ <div id="postbox-container-2" class="postbox-container">
282
+ <div id="advanced" class="meta-box-sortables">
283
+ <div id="gallery_bank_get_started" class="postbox" >
284
+ <div class="handlediv" data-target="#ux_global_settings" title="Click to toggle" data-toggle="collapse"><br></div>
285
+ <h3 class="hndle"><span><?php _e("Global Settings", gallery_bank); ?></span></h3>
286
+ <div class="inside">
287
+ <div id="ux_global_settings" class="gallery_bank_layout">
288
+ <a class="btn btn-inverse" href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
289
+ <a onclick="show_premium_message();" href="#" class="btn btn-info" style="float:right"><?php _e("Update Settings", gallery_bank); ?></a>
290
+ <div class="separator-doubled"></div>
291
+ <div class="fluid-layout">
292
+ <div class="layout-span6">
293
+ <div class="widget-layout">
294
+ <div class="widget-layout-title">
295
+ <h4>
296
+ <?php _e("Thumbnail Settings", gallery_bank); ?>
297
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
298
+ </h4>
299
+ <span class="tools">
300
+ <a data-target="#thumbnail_settings" data-toggle="collapse">
301
+ <i class="icon-chevron-down"></i>
302
+ </a>
303
+ </span>
304
+ </div>
305
+ <div id="thumbnail_settings" class="collapse in">
306
+ <div class="widget-layout-body">
307
+ <div class="layout-control-group">
308
+ <label class="layout-control-label"><?php _e("Thumbnail Size", gallery_bank); ?> : </label>
309
+ <div class="layout-controls-radio">
310
  <?php
311
+ if ($thumbnails_custom_enable == 1) {
312
+ ?>
313
+ <input type="radio" name="ux_thumbnail" value="1" checked="checked"
314
+ onclick="check_thumbnail_settings();"/> <label
315
+ style="vertical-align: baseline;"><?php _e("Original", gallery_bank); ?></label>
316
+ <input type="radio" style="margin-left: 10px;" name="ux_thumbnail" value="0"
317
+ onclick="check_thumbnail_settings();"/><label style="vertical-align: baseline;">
318
+ <?php _e("Custom", gallery_bank); ?> </label>
319
+ <?php
320
+ } else {
321
+ ?>
322
+ <input type="radio" name="ux_thumbnail" value="1" onclick="check_thumbnail_settings();"/>
323
+ <label style="vertical-align: baseline;"><?php _e("Original", gallery_bank); ?></label>
324
+ <input type="radio" style="margin-left: 10px;" name="ux_thumbnail" checked="checked"
325
+ value="0" onclick="check_thumbnail_settings();"/> <label style="vertical-align: baseline;">
326
+ <?php _e("Custom", gallery_bank); ?></label>
327
+ <?php
328
+ }
329
  ?>
330
+ </div>
 
 
 
 
 
 
 
331
  </div>
332
  </div>
333
+ <div class="widget-layout-body" id="image_width">
334
+ <div class="layout-control-group">
335
+ <label class="layout-control-label"><?php _e("Width", gallery_bank); ?> : </label>
336
+ <div class="layout-controls">
337
+ <input type="text" class="layout-span10" id="ux_image_width" name="ux_image_width"
338
+ onkeypress="return OnlyNumbers(event)" value="<?php echo $thumbnails_width; ?>"/>
339
+ <span style="padding-top:3px;">(px)</span>
340
+ </div>
341
  </div>
342
  </div>
343
+ <div class="widget-layout-body" id="image_height">
344
+ <div class="layout-control-group">
345
+ <label class="layout-control-label"><?php _e("Height", gallery_bank); ?> : </label>
346
+ <div class="layout-controls">
347
+ <input type="text" id="ux_image_height" name="ux_image_height"
348
+ onkeypress="return OnlyNumbers(event)" class="layout-span10"
349
+ value="<?php echo $thumbnails_height; ?>">
350
+ <span style="padding-top:3px;">(px)</span>
351
+ </div>
352
  </div>
353
  </div>
354
+ <div class="widget-layout-body">
355
+ <div class="layout-control-group">
356
+ <label class="layout-control-label"
357
+ id="ux_label_thumb_opacity"><?php _e("Opacity", gallery_bank); ?> : </label>
358
+ <div class="layout-controls">
359
+ <input type="text" class="layout-span10" id="ux_image_opacity_val"
360
+ onkeyup="set_value('thumb_opacity')" onblur="set_value('thumb_opacity')"
361
+ name="ux_image_opacity_val" onkeypress="return OnlyNumbers(event)"
362
+ value="<?php echo $thumbnails_opacity * 100; ?>"/>
363
+ <span style="padding-top:3px;">(%)</span>
364
+ </div>
365
  </div>
366
  </div>
367
+ <div class="widget-layout-body">
368
+ <div class="layout-control-group">
369
+ <label class="layout-control-label"><?php _e("Border Size", gallery_bank); ?> : </label>
370
+ <div class="layout-controls">
371
+ <input type="text" class="layout-span10" id="ux_image_border_val" name="ux_image_border_val"
372
+ onblur="set_value('thumb_border_size');" onkeyup="set_value('thumb_border_size');"
373
+ onkeypress="return OnlyNumbers(event);" value="<?php echo $thumbnails_border_size; ?>"/>
374
+ <span style="padding-top:3px;">(0 - 20)</span>
375
+ </div>
376
  </div>
377
  </div>
378
+ <div class="widget-layout-body">
379
+ <div class="layout-control-group">
380
+ <label class="layout-control-label"><?php _e("Border Radius", gallery_bank); ?> : </label>
381
+ <div class="layout-controls">
382
+ <input type="text" class="layout-span10" id="ux_image_radius_val" name="ux_image_radius_val"
383
+ onblur="set_value('thumb_border_radius')" onkeyup="set_value('thumb_border_radius')"
384
+ onkeypress="return OnlyNumbers(event)" value="<?php echo $thumbnails_border_radius; ?>"/>
385
+ <span style="padding-top:3px;">(0 - 20)</span>
386
+ </div>
387
  </div>
388
  </div>
389
+ <div class="widget-layout-body">
390
+ <div class="layout-control-group">
391
+ <label class="layout-control-label"><?php _e("Border Color", gallery_bank); ?> : </label>
392
+ <div class="layout-controls">
393
+ <input type="text" class="layout-span10" name="ux_border_color" id="ux_border_color"
394
+ onclick="ux_clr_border_color();"
395
+ style="background-color: <?php echo $thumbnails_border_color; ?>;"
396
+ value="<?php echo $thumbnails_border_color; ?>"/>
397
+ <img onclick="ux_clr_border_color();" style="vertical-align: middle;margin-left: 5px;"
398
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
399
+ <div id="clr_border_color"></div>
400
+ </div>
401
  </div>
402
  </div>
403
+ <div class="widget-layout-body">
404
+ <div class="layout-control-group">
405
+ <label class="layout-control-label"><?php _e("Margin Between Images", gallery_bank); ?> : </label>
406
+ <div class="layout-controls">
407
+ <input type="text" class="layout-span10" name="ux_images_margin" id="ux_images_margin"
408
+ onkeypress="return OnlyNumbers(event)" value="<?php echo $margin_btw_thumbnails; ?>"/>
409
+ (px)
410
+ </div>
411
  </div>
412
  </div>
413
+ <div class="widget-layout-body">
414
+ <div class="layout-control-group">
415
+ <label class="layout-control-label"><?php _e("Text Color", gallery_bank); ?> : </label>
416
+ <div class="layout-controls">
417
+ <input type="text" class="layout-span10" onclick="ux_clr_thumb_text_color();"
418
+ name="ux_thumb_text_color" id="ux_thumb_text_color"
419
+ style="background-color:<?php echo $thumbnail_text_color; ?>; "
420
+ value="<?php echo $thumbnail_text_color; ?>"/>
421
+ <img onclick="ux_clr_thumb_text_color();" style="vertical-align: middle;margin-left: 5px;"
422
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
423
+ <div id="clr_thumb_text_color"></div>
424
+ </div>
425
  </div>
426
  </div>
427
+ <div class="widget-layout-body">
428
+ <div class="layout-control-group">
429
+ <label class="layout-control-label"><?php _e("Text-Align", gallery_bank); ?> : </label>
430
+ <div class="layout-controls">
431
+ <select id="ux_thumb_text_align" class="layout-span10" name="ux_thumb_text_align">
432
+ <option value="center">Center</option>
433
+ <option value="inherit">Inherit</option>
434
+ <option value="justify">Justify</option>
435
+ <option value="left">Left</option>
436
+ <option value="right">Right</option>
437
+ </select>
438
+ </div>
439
  </div>
440
  </div>
441
+ <div class="widget-layout-body">
442
+ <div class="layout-control-group">
443
+ <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
444
+ <div class="layout-controls">
445
+ <select id="ux_thumb_font_family" class="layout-span10" name="ux_thumb_font_family">
446
+ <option value="Arial">Arial</option>
447
+ <option value="Courier">Courier</option>
448
+ <option value="Courier New">Courier New</option>
449
+ <option value="Geneva">Geneva</option>
450
+ <option value="Helvetica">Helvetica</option>
451
+ <option value="inherit">inherit</option>
452
+ <option value="Lucida Grande">Lucida Grande</option>
453
+ <option value="Lucida Sans Unicode">Lucida Sans Unicode</option>
454
+ <option value="Monospace">Monospace</option>
455
+ <option value="Sans-serif">Sans-serif</option>
456
+ <option value="Tahoma">Tahoma</option>
457
+ <option value="Times">Times</option>
458
+ <option value="Times New Roman">Times New Roman</option>
459
+ <option value="Verdana">Verdana</option>
460
+ </select>
461
+ </div>
462
  </div>
463
  </div>
464
+ <div class="widget-layout-body">
465
+ <div class="layout-control-group">
466
+ <label class="layout-control-label"><?php _e("Heading Font-Size", gallery_bank); ?> : </label>
467
+ <div class="layout-controls">
468
+ <select id="ux_heading_font_size" class="layout-span10" name="ux_heading_font_size">
469
+ <?php
470
+ for ($heading_font = 8; $heading_font <= 24; $heading_font++) {
471
+ ?>
472
+ <option <?php if ($heading_font == $heading_font_size) echo "selected=\"selected\"" ?>
473
+ value="<?php echo $heading_font; ?>"><?php echo $heading_font; ?></option>
474
+ <?php
475
+ }
476
+ ?>
477
+ </select> (px)
478
+ </div>
479
+ </div>
480
+ </div>
481
+ <div class="widget-layout-body">
482
+ <div class="layout-control-group">
483
+ <label class="layout-control-label"><?php _e("Text Font-Size", gallery_bank); ?> : </label>
484
+ <div class="layout-controls">
485
+ <select id="ux_text_font_size" class="layout-span10" name="ux_text_font_size">
486
+ <?php
487
+ for ($font = 8; $font <= 15; $font++) {
488
+ ?>
489
+ <option <?php if ($font == $text_font_size) echo "selected=\"selected\"" ?>
490
+ value="<?php echo $font; ?>"><?php echo $font; ?></option>
491
+ <?php
492
+ }
493
+ ?>
494
+ </select> (px)
495
+ </div>
496
+ </div>
497
+ </div>
498
+ <div class="widget-layout-body">
499
+ <div class="layout-control-group">
500
+ <label class="layout-control-label"><?php _e("Description Length", gallery_bank); ?> : </label>
501
+ <div class="layout-controls">
502
+ <input type="text" id="ux_thumb_desc_length" class="layout-span10"
503
+ onkeypress="return OnlyNumbers(event)" name="ux_thumb_desc_length"
504
+ value="<?php echo $thumbnail_desc_length; ?>"/><label> (chars)</label>
505
+ </div>
506
+ </div>
507
+ </div>
508
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
509
  </div>
510
+ <div class="widget-layout">
511
+ <div class="widget-layout-title">
512
+ <h4><?php _e("Album Cover Settings", gallery_bank); ?>
513
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
514
+ </h4>
515
+ <span class="tools">
516
+ <a data-target="#album_cover_settings" data-toggle="collapse">
517
+ <i class="icon-chevron-down"></i>
518
+ </a>
519
+ </span>
520
+ </div>
521
+ <div id="album_cover_settings" class="collapse in">
522
+ <div class="widget-layout-body">
523
+ <div class="layout-control-group">
524
+ <label class="layout-control-label"><?php _e("Cover Size", gallery_bank); ?> : </label>
525
+ <div class="layout-controls-radio">
526
+ <?php
527
+ if ($cover_custom_enable == 1) {
528
  ?>
529
+ <input type="radio" name="ux_cover_size" value="1" checked="checked"
530
+ onclick="check_cover_settings();"/> <label
531
+ style="vertical-align: baseline;"><?php _e("Original", gallery_bank); ?></label>
532
+ <input type="radio" style="margin-left: 10px;" name="ux_cover_size" value="0"
533
+ onclick="check_cover_settings();"/> <label
534
+ style="vertical-align: baseline;"><?php _e("Custom", gallery_bank); ?></label>
535
  <?php
536
+ } else {
537
+ ?>
538
+ <input type="radio" name="ux_cover_size" value="1" onclick="check_cover_settings();"/>
539
+ <label style="vertical-align: baseline;"><?php _e("Original", gallery_bank); ?></label>
540
+ <input type="radio" style="margin-left: 10px;" name="ux_cover_size" checked="checked"
541
+ value="0" onclick="check_cover_settings();"/> <label
542
+ style="vertical-align: baseline;"><?php _e("Custom", gallery_bank); ?></label>
543
+ <?php
544
+ }
545
+ ?>
546
+ </div>
547
  </div>
548
  </div>
549
+ <div class="widget-layout-body" id="cover_width">
550
+ <div class="layout-control-group">
551
+ <label class="layout-control-label"><?php _e("Width", gallery_bank); ?> : </label>
552
+ <div class="layout-controls">
553
+ <input type="text" class="layout-span10" id="ux_cover_width" name="ux_cover_width"
554
+ onkeypress="return OnlyNumbers(event)" value="<?php echo $cover_thumbnail_width; ?>"/>
555
+ <span style="padding-top:3px;">(px)</span>
556
+ </div>
557
+ </div>
558
+ </div>
559
+ <div class="widget-layout-body" id="cover_height">
560
+ <div class="layout-control-group">
561
+ <label class="layout-control-label"><?php _e("Height", gallery_bank); ?> : </label>
562
+ <div class="layout-controls">
563
+ <input type="text" id="ux_cover_height" name="ux_cover_height"
564
+ onkeypress="return OnlyNumbers(event)" class="layout-span10"
565
+ value="<?php echo $cover_thumbnail_height; ?>">
566
+ <span style="padding-top:3px;">(px)</span>
567
+ </div>
568
+ </div>
569
+ </div>
570
+ <div class="widget-layout-body">
571
+ <div class="layout-control-group">
572
+ <label class="layout-control-label" id="ux_label_cover_opacity"><?php _e("Opacity", gallery_bank); ?> : </label>
573
+ <div class="layout-controls">
574
+ <input type="text" class="layout-span10" id="ux_cover_opacity_val" name="ux_cover_opacity_val"
575
+ onblur="set_value('cover_opacity')" onkeyup="set_value('cover_opacity')"
576
+ onkeypress="return OnlyNumbers(event)"
577
+ value="<?php echo $cover_thumbnail_opacity * 100; ?>"/>
578
+ <span style="padding-top:3px;">(%)</span>
579
+ </div>
580
+ </div>
581
+ </div>
582
+ <div class="widget-layout-body">
583
+ <div class="layout-control-group">
584
+ <label class="layout-control-label"><?php _e("Border Size", gallery_bank); ?> : </label>
585
+ <div class="layout-controls">
586
+ <input type="text" class="layout-span10" id="ux_cover_border_val" name="ux_cover_border_val"
587
+ onblur="set_value('cover_border_size')" onkeyup="set_value('cover_border_size')"
588
  onkeypress="return OnlyNumbers(event)"
589
+ value="<?php echo $cover_thumbnail_border_size; ?>"/>
590
+ <span style="padding-top:3px;">(0 - 20)</span>
591
+ </div>
592
+ </div>
593
+ </div>
594
+ <div class="widget-layout-body">
595
+ <div class="layout-control-group">
596
+ <label class="layout-control-label"><?php _e("Border Radius", gallery_bank); ?> : </label>
597
+ <div class="layout-controls">
598
+ <input type="text" class="layout-span10" id="ux_cover_radius_val" name="ux_cover_radius_val"
599
+ onblur="set_value('cover_border_radius')" onkeyup="set_value('cover_border_radius')"
600
+ onkeypress="return OnlyNumbers(event)"
601
+ value="<?php echo $cover_thumbnail_border_radius; ?>"/>
602
+ <span style="padding-top:3px;">(0 - 20)</span>
603
+ </div>
604
+ </div>
605
+ </div>
606
+ <div class="widget-layout-body">
607
+ <div class="layout-control-group">
608
+ <label class="layout-control-label"><?php _e("Border Color", gallery_bank); ?> : </label>
609
+ <div class="layout-controls">
610
+ <input type="text" class="layout-span10" onclick="ux_clr_cover_border_color();"
611
+ name="ux_cover_border_color" id="ux_cover_border_color"
612
+ style="background-color:<?php echo $cover_thumbnail_border_color; ?>; "
613
+ value="<?php echo $cover_thumbnail_border_color; ?>"/><img
614
+ onclick="ux_clr_cover_border_color();" style="vertical-align: middle;margin-left: 5px;"
615
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
616
+ <div id="clr_cover_border_color"></div>
617
+ </div>
618
+ </div>
619
+ </div>
620
+ <div class="widget-layout-body">
621
+ <div class="layout-control-group">
622
+ <label class="layout-control-label"><?php _e("Margin Between Albums", gallery_bank); ?> : </label>
623
+ <div class="layout-controls">
624
+ <input type="text" class="layout-span10" name="ux_album_margin" id="ux_album_margin"
625
+ onkeypress="return OnlyNumbers(event)"
626
+ value="<?php echo $margin_btw_cover_thumbnails; ?>"/> (px)
627
+ </div>
628
+ </div>
629
+ </div>
630
+ <div class="widget-layout-body">
631
+ <div class="layout-control-group">
632
+ <label class="layout-control-label"><?php _e("Text for Album Click", gallery_bank); ?> : </label>
633
+
634
+ <div class="layout-controls">
635
+ <input type="text" class="layout-span10" id="ux_album_view" name="ux_album_view"
636
+ value="<?php echo $album_click_text; ?>"/>
637
+ </div>
638
+ </div>
639
+ </div>
640
+ <div class="widget-layout-body">
641
+ <div class="layout-control-group">
642
+ <label class="layout-control-label"><?php _e("Text Color", gallery_bank); ?> : </label>
643
+
644
+ <div class="layout-controls">
645
+ <input type="text" class="layout-span10" id="ux_album_text_color" name="ux_album_text_color"
646
+ onclick="ux_clr_album_font_color();"
647
+ style="background-color: <?php echo $album_text_color; ?>;"
648
+ value="<?php echo $album_text_color; ?>"/>
649
+ <img onclick="ux_clr_album_font_color();"
650
+ style="vertical-align: middle;margin-left: 5px;"
651
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
652
+
653
+ <div id="clr_album_text_color"></div>
654
+ </div>
655
+ </div>
656
+ </div>
657
+ <div class="widget-layout-body">
658
+ <div class="layout-control-group">
659
+ <label class="layout-control-label"><?php _e("Text-Align", gallery_bank); ?> : </label>
660
+ <div class="layout-controls">
661
+ <select id="ux_album_text_align" class="layout-span10" name="ux_album_text_align">
662
+ <option value="center">Center</option>
663
+ <option value="inherit">Inherit</option>
664
+ <option value="justify">Justify</option>
665
+ <option value="left">Left</option>
666
+ <option value="right">Right</option>
667
+ </select>
668
+ </div>
669
+ </div>
670
+ </div>
671
+ <div class="widget-layout-body">
672
+ <div class="layout-control-group">
673
+ <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
674
+ <div class="layout-controls">
675
+ <select id="ux_album_font_family" class="layout-span10" name="ux_album_font_family">
676
+ <option value="Arial">Arial</option>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
677
  <option value="Courier">Courier</option>
678
  <option value="Courier New">Courier New</option>
679
  <option value="Geneva">Geneva</option>
687
  <option value="Times">Times</option>
688
  <option value="Times New Roman">Times New Roman</option>
689
  <option value="Verdana">Verdana</option>
690
+ </select>
691
+ </div>
692
+ </div>
693
+ </div>
694
+ <div class="widget-layout-body">
695
+ <div class="layout-control-group">
696
+ <label class="layout-control-label"><?php _e("Heading Font-Size", gallery_bank); ?> : </label>
697
+ <div class="layout-controls">
698
+ <select id="ux_album_heading_font_size" class="layout-span10" name="ux_album_heading_font_size">
699
+ <?php
700
+ for ($album_heading = 8; $album_heading <= 24; $album_heading++) {
701
+ ?>
702
+ <option <?php if ($album_heading == $album_heading_font_size) echo "selected=\"selected\"" ?>
703
+ value="<?php echo $album_heading; ?>"><?php echo $album_heading; ?></option>
704
+ <?php
705
+ }
706
+ ?>
707
+ </select> (px)
708
+ </div>
709
+ </div>
710
+ </div>
711
+ <div class="widget-layout-body">
712
+ <div class="layout-control-group">
713
+ <label class="layout-control-label"><?php _e("Text Font-Size", gallery_bank); ?> : </label>
714
+ <div class="layout-controls">
715
+ <select id="ux_album_text_font_size" class="layout-span10" name="ux_album_text_font_size">
716
+ <?php
717
+ for ($albumfont = 8; $albumfont <= 15; $albumfont++) {
718
+ ?>
719
+ <option <?php if ($albumfont == $album_text_font_size) echo "selected=\"selected\"" ?>
720
+ value="<?php echo $albumfont; ?>"><?php echo $albumfont; ?></option>
721
+ <?php
722
+ }
723
+ ?>
724
+ </select> (px)
725
+ </div>
726
+ </div>
727
+ </div>
728
+ <div class="widget-layout-body">
729
+ <div class="layout-control-group">
730
+ <label class="layout-control-label"><?php _e("Description Length", gallery_bank); ?> : </label>
731
+ <div class="layout-controls">
732
+ <input type="text" id="ux_album_desc_length" class="layout-span10"
733
+ onkeypress="return OnlyNumbers(event)" name="ux_album_desc_length"
734
+ value="<?php echo $album_desc_length; ?>"/><label> (chars)</label>
735
+ </div>
736
+ </div>
737
+ </div>
738
+ </div>
739
+ </div>
740
+ <div class="widget-layout">
741
+ <div class="widget-layout-title">
742
+ <h4><?php _e("Filter Settings", gallery_bank); ?>
743
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
744
+ </h4>
745
  <span class="tools">
746
+ <a data-target="#filter_settings" data-toggle="collapse">
747
  <i class="icon-chevron-down"></i>
748
  </a>
749
  </span>
750
+ </div>
751
+ <div id="filter_settings" class="collapse">
752
+ <div class="widget-layout-body">
753
+ <div class="layout-control-group">
754
+ <label class="layout-control-label"><?php _e("Filters", gallery_bank); ?> : </label>
755
+ <div class="layout-controls-radio">
756
+ <?php
757
+ if ($filters_setting == 1) {
758
+ ?>
759
+ <input type="radio" onclick="show_filter_page();" name="ux_image_filters" value="1"
760
+ checked="checked"/> <label
761
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
762
+ <input type="radio" onclick="show_filter_page();" style="margin-left: 10px;"
763
+ name="ux_image_filters" value="0"/> <label
764
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
765
+ <?php
766
+ } else {
767
+ ?>
768
+ <input type="radio" onclick="show_filter_page();" name="ux_image_filters" value="1"/> <label
769
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
770
+ <input type="radio" onclick="show_filter_page();" style="margin-left: 10px;"
771
+ name="ux_image_filters" value="0" checked="checked"/> <label
772
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
773
+ <?php
774
+ }
775
+ ?>
776
+ </div>
777
+ </div>
778
+ </div>
779
+ <div id="ux_filter_setting_div" style="display:none;">
780
+ <div class="widget-layout-body">
781
+ <div class="layout-control-group">
782
+ <label class="layout-control-label"><?php _e("Filter Color", gallery_bank); ?> : </label>
783
+ <div class="layout-controls">
784
+ <input type="text" class="layout-span10" id="ux_filter_color" name="ux_filter_color"
785
+ onclick="ux_clr_filter_color();"
786
+ style="background-color: <?php echo $filters_color; ?>;"
787
+ value="<?php echo $filters_color; ?>"/>
788
+ <img onclick="ux_clr_filter_color();" style="vertical-align: middle;margin-left: 5px;"
789
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
790
+ <div id="clr_filter_color"></div>
791
+ </div>
792
+ </div>
793
+ </div>
794
+ <div class="widget-layout-body">
795
+ <div class="layout-control-group">
796
+ <label class="layout-control-label"><?php _e("Filter Text Color", gallery_bank); ?> : </label>
797
+ <div class="layout-controls">
798
+ <input type="text" class="layout-span10" id="ux_filter_text_color"
799
+ name="ux_filter_text_color" onclick="ux_clr_filter_text_color();"
800
+ style="background-color: <?php echo $filters_text_color; ?>;"
801
+ value="<?php echo $filters_text_color; ?>"/>
802
+ <img onclick="ux_clr_filter_text_color();" style="vertical-align: middle;margin-left: 5px;"
803
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
804
+ <div id="clr_filter_text_color"></div>
805
+ </div>
806
+ </div>
807
+ </div>
808
+ <div class="widget-layout-body">
809
+ <div class="layout-control-group">
810
+ <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
811
+ <div class="layout-controls">
812
+ <select id="ux_filter_font_family" class="layout-span10" name="ux_filter_font_family">
813
+ <option value="Arial">Arial</option>
814
+ <option value="Courier">Courier</option>
815
+ <option value="Courier New">Courier New</option>
816
+ <option value="Geneva">Geneva</option>
817
+ <option value="Helvetica">Helvetica</option>
818
+ <option value="inherit">inherit</option>
819
+ <option value="Lucida Grande">Lucida Grande</option>
820
+ <option value="Lucida Sans Unicode">Lucida Sans Unicode</option>
821
+ <option value="Monospace">Monospace</option>
822
+ <option value="Sans-serif">Sans-serif</option>
823
+ <option value="Tahoma">Tahoma</option>
824
+ <option value="Times">Times</option>
825
+ <option value="Times New Roman">Times New Roman</option>
826
+ <option value="Verdana">Verdana</option>
827
+ </select>
828
+ </div>
829
+ </div>
830
+ </div>
831
+ <div class="widget-layout-body">
832
+ <div class="layout-control-group">
833
+ <label class="layout-control-label"><?php _e("Font-Size", gallery_bank); ?> : </label>
834
+ <div class="layout-controls">
835
+ <select id="ux_filter_font_size" class="layout-span10" name="ux_filter_font_size">
836
+ <?php
837
+ for ($filterfont = 8; $filterfont <= 15; $filterfont++) {
838
+ ?>
839
+ <option <?php if ($filterfont == $filter_font_size) echo "selected=\"selected\"" ?>
840
+ value="<?php echo $filterfont; ?>"><?php echo $filterfont; ?></option>
841
+ <?php
842
+ }
843
+ ?>
844
+ </select> (px)
845
+ </div>
846
+ </div>
847
+ </div>
848
+ </div>
849
+ </div>
850
+ </div>
851
+ <div class="widget-layout">
852
+ <div class="widget-layout-title">
853
+ <h4><?php _e("Roles & Capabilities", gallery_bank); ?>
854
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
855
+ </h4>
856
+ <span class="tools">
857
+ <a data-target="#capabilities_settings" data-toggle="collapse">
858
+ <i class="icon-chevron-down"></i>
859
+ </a>
860
+ </span>
861
+ </div>
862
+ <div id="capabilities_settings" class="collapse">
863
+ <div class="widget-layout-body">
864
+ <div class="layout-control-group">
865
+ <label class="layout-control-label"><?php _e("Privileges for Admin", gallery_bank); ?> : </label>
866
+ <div class="layout-controls-radio">
867
+ <input type="checkbox" id="ux_full_control_to_admin" onclick="disable_admin_checkbox(this);"
868
+ name="ux_full_control_to_admin" value="1"/><label
869
+ style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
870
+ <input type="checkbox" id="ux_read_control_to_admin" name="ux_read_control_to_admin" value="1"
871
+ style="margin-left: 10px;"/><label
872
+ style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
873
+ <input type="checkbox" id="ux_write_control_to_admin" name="ux_write_control_to_admin" value="1"
874
+ style="margin-left: 10px;"/><label
875
+ style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
876
+ </div>
877
+ </div>
878
+ </div>
879
+ <div class="widget-layout-body">
880
+ <div class="layout-control-group">
881
+ <label class="layout-control-label"><?php _e("Privileges for Editor", gallery_bank); ?> : </label>
882
+ <div class="layout-controls-radio">
883
+ <input type="checkbox" id="ux_full_control_to_editor" onclick="disable_admin_checkbox(this);"
884
+ name="ux_full_control_to_editor" value="1"/><label
885
+ style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
886
+ <input type="checkbox" id="ux_read_control_to_editor" name="ux_read_control_to_editor" value="1"
887
+ style="margin-left: 10px;"/><label
888
+ style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
889
+ <input type="checkbox" id="ux_write_control_to_editor" name="ux_write_control_to_editor"
890
+ value="1" style="margin-left: 10px;"/><label
891
+ style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
892
+ </div>
893
+ </div>
894
+ </div>
895
+ <div class="widget-layout-body">
896
+ <div class="layout-control-group">
897
+ <label class="layout-control-label"><?php _e("Privileges for Author", gallery_bank); ?> : </label>
898
+ <div class="layout-controls-radio">
899
+ <input type="checkbox" id="ux_full_control_to_author" onclick="disable_admin_checkbox(this);"
900
+ name="ux_full_control_to_author" value="1"/><label
901
+ style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
902
+ <input type="checkbox" id="ux_read_control_to_author" name="ux_read_control_to_author" value="1"
903
+ style="margin-left: 10px;"/><label
904
+ style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
905
+ <input type="checkbox" id="ux_write_control_to_author" name="ux_write_control_to_author"
906
+ value="1" style="margin-left: 10px;"/><label
907
+ style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
908
+ </div>
909
+ </div>
910
+ </div>
911
+ <div class="widget-layout-body">
912
+ <div class="layout-control-group">
913
+ <label class="layout-control-label"><?php _e("Privileges for Contributor", gallery_bank); ?>
914
+ : </label>
915
+ <div class="layout-controls-radio">
916
+ <input type="checkbox" id="ux_full_control_to_contributor"
917
+ onclick="disable_admin_checkbox(this);" name="ux_full_control_to_contributor" value="1"/><label
918
+ style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
919
+ <input type="checkbox" id="ux_read_control_to_contributor" name="ux_read_control_to_contributor"
920
+ value="1" style="margin-left: 10px;"/><label
921
+ style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
922
+ <input type="checkbox" id="ux_write_control_to_contributor"
923
+ name="ux_write_control_to_contributor" value="1" style="margin-left: 10px;"/><label
924
+ style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
925
+ </div>
926
+ </div>
927
+ </div>
928
+ <div class="widget-layout-body">
929
+ <div class="layout-control-group">
930
+ <label class="layout-control-label"><?php _e("Privileges for Subscriber", gallery_bank); ?>
931
+ : </label>
932
+ <div class="layout-controls-radio">
933
+ <input type="checkbox" id="ux_full_control_to_subscriber"
934
+ onclick="disable_admin_checkbox(this);" name="ux_full_control_to_subscriber"
935
+ value="1"/><label
936
+ style="vertical-align: baseline;"><?php _e("Full Control", gallery_bank); ?></label>
937
+ <input type="checkbox" id="ux_read_control_to_subscriber" name="ux_read_control_to_subscriber"
938
+ value="1" style="margin-left: 10px;"/><label
939
+ style="vertical-align: baseline;"><?php _e("Read", gallery_bank); ?></label>
940
+ <input type="checkbox" id="ux_write_control_to_subscriber" name="ux_write_control_to_subscriber"
941
+ value="1" style="margin-left: 10px;"/><label
942
+ style="vertical-align: baseline;"><?php _e("Write", gallery_bank); ?></label>
943
+ </div>
944
+ </div>
945
+ </div>
946
+ </div>
947
  </div>
948
+ </div>
949
+ <div class="layout-span6">
950
+ <div class="widget-layout">
951
+ <div class="widget-layout-title">
952
+ <h4><?php _e("Lightbox Settings", gallery_bank); ?>
953
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
954
+ </h4>
955
+ <span class="tools">
956
+ <a data-target="#lightbox_settings" data-toggle="collapse">
957
+ <i class="icon-chevron-down"></i>
958
+ </a>
959
+ </span>
960
+ </div>
961
+ <div id="lightbox_settings" class="collapse in">
962
+ <div class="widget-layout-body">
963
+ <div class="layout-control-group">
964
+ <label class="layout-control-label"><?php _e("Lightbox Type", gallery_bank); ?> : </label>
965
+ <div class="layout-controls">
966
+ <select class="layout-span10" id="ux_lightbox_type" name="ux_lightbox_type">
967
+ <option value="pretty_photo">
968
+ Pretty Photo
969
+ </option>
970
+ <option value="color_box">
971
+ Color Box
972
+ </option>
973
+ <option value="photo_swipe">
974
+ Photo Swipe
975
+ </option>
976
+ <option value="foo_box">
977
+ Foo Box
978
+ </option>
979
+ <option value="fancy_box">
980
+ Fancy Box
981
+ </option>
982
+ <option value="lightbox2">
983
+ Lightbox 2
984
+ </option>
985
+ <option value="GB_lightbox">
986
+ GB Lightbox
987
+ </option>
988
+ </select>
989
+ </div>
990
+ </div>
991
  </div>
992
+ <div class="widget-layout-body">
993
+ <div class="layout-control-group">
994
+ <label class="layout-control-label"><?php _e("Opacity", gallery_bank); ?> : </label>
995
+ <div class="layout-controls">
996
+ <input type="text" class="layout-span10" id="ux_lightbox_opacity_val" name="ux_lightbox_opacity_val"
997
+ onblur="set_value('lightbox_opacity')" onkeyup="set_value('lightbox_opacity')"
998
+ onkeypress="return OnlyNumbers(event)" value="<?php echo $lightbox_overlay_opacity * 100; ?>"/>
999
+ <span style="padding-top:3px;">(%)</span>
1000
+ </div>
1001
+ </div>
1002
+ </div>
1003
+ <div class="widget-layout-body">
1004
+ <div class="layout-control-group">
1005
+ <label class="layout-control-label"><?php _e("Border Size", gallery_bank); ?> : </label>
1006
+ <div class="layout-controls">
1007
+ <input type="text" class="layout-span10" id="ux_lightbox_border_val" name="ux_lightbox_border_val"
1008
+ onblur="set_value('lightbox_border')" onkeyup="set_value('lightbox_border')"
1009
+ onkeypress="return OnlyNumbers(event)" value="<?php echo $lightbox_overlay_border_size; ?>"/>
1010
+ <span style="padding-top:3px;">(0 - 20)</span>
1011
+ </div>
1012
+ </div>
1013
+ </div>
1014
+ <div class="widget-layout-body">
1015
+ <div class="layout-control-group">
1016
+ <label class="layout-control-label"><?php _e("Border Radius", gallery_bank); ?> : </label>
1017
+ <div class="layout-controls">
1018
+ <input type="text" class="layout-span10" id="ux_lightbox_radius_val" name="ux_lightbox_radius_val"
1019
+ onblur="set_value('lightbox_radius');" onkeyup="set_value('lightbox_radius');"
1020
+ onkeypress="return OnlyNumbers(event);" value="<?php echo $lightbox_overlay_border_radius; ?>"/>
1021
+ <span style="padding-top:3px;">(0 - 20)</span>
1022
+ </div>
1023
+ </div>
1024
+ </div>
1025
+ <div class="widget-layout-body">
1026
+ <div class="layout-control-group">
1027
+ <label class="layout-control-label"><?php _e("Text Color", gallery_bank); ?> : </label>
1028
+ <div class="layout-controls">
1029
+ <input type="text" class="layout-span10" name="ux_lightbox_text_color" id="ux_lightbox_text_color"
1030
+ onclick="ux_clr_lightbox_text_color();"
1031
+ style="background-color: <?php echo $lightbox_text_color; ?>;"
1032
+ value="<?php echo $lightbox_text_color; ?>"/>
1033
+ <img onclick="ux_clr_lightbox_text_color();" style="vertical-align: middle;margin-left: 5px;"
1034
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1035
+ <div id="clr_lightbox_text_color"></div>
1036
+ </div>
1037
+ </div>
1038
+ </div>
1039
+ <div class="widget-layout-body">
1040
+ <div class="layout-control-group">
1041
+ <label class="layout-control-label"><?php _e("Border Color", gallery_bank); ?> : </label>
1042
+ <div class="layout-controls">
1043
+ <input type="text" class="layout-span10" name="ux_overlay_border_color"
1044
+ onclick="ux_clr_overlay_border_color();" id="ux_overlay_border_color"
1045
+ style="background-color: <?php echo $lightbox_overlay_border_color; ?>"
1046
+ value="<?php echo $lightbox_overlay_border_color; ?>"/><img
1047
+ onclick="ux_clr_overlay_border_color();" style="vertical-align: middle;margin-left: 5px;"
1048
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1049
+ <div id="clr_overlay_border_color"></div>
1050
+ </div>
1051
+ </div>
1052
+ </div>
1053
+ <div class="widget-layout-body">
1054
+ <div class="layout-control-group">
1055
+ <label class="layout-control-label"><?php _e("Inline Background", gallery_bank); ?> : </label>
1056
+ <div class="layout-controls">
1057
+ <input type="text" class="layout-span10" name="ux_inline_overlay_color" id="ux_inline_overlay_color"
1058
+ onclick="ux_clr_inline_overlay_color();"
1059
+ style="background-color: <?php echo $lightbox_inline_bg_color; ?>;"
1060
+ value="<?php echo $lightbox_inline_bg_color; ?>"/>
1061
+ <img onclick="ux_clr_inline_overlay_color();" style="vertical-align: middle;margin-left: 5px;"
1062
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1063
+ <div id="clr_inline_overlay_color"></div>
1064
+ </div>
1065
+ </div>
1066
+ </div>
1067
+ <div class="widget-layout-body">
1068
+ <div class="layout-control-group">
1069
+ <label class="layout-control-label"><?php _e("Overlay Background", gallery_bank); ?> : </label>
1070
+ <div class="layout-controls">
1071
+ <input type="text" class="layout-span10" name="ux_overlay_bg_color" id="ux_overlay_bg_color"
1072
+ onclick="ux_clr_overlay_bg_color();"
1073
+ style="background-color: <?php echo $lightbox_overlay_bg_color; ?>;"
1074
+ value="<?php echo $lightbox_overlay_bg_color; ?>"/>
1075
+ <img onclick="ux_clr_overlay_bg_color();" style="vertical-align: middle;margin-left: 5px;"
1076
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1077
+ <div id="clr_overlay_bg_color"></div>
1078
+ </div>
1079
+ </div>
1080
+ </div>
1081
+ <div class="widget-layout-body">
1082
+ <div class="layout-control-group">
1083
+ <label class="layout-control-label"><?php _e("Fade In Time", gallery_bank); ?> : </label>
1084
+ <div class="layout-controls">
1085
+ <input type="text" class="layout-span10" name="ux_fade_in_time" id="ux_fade_in_time"
1086
+ onkeypress="return OnlyNumbers(event)" value="<?php echo $lightbox_fade_in_time; ?>"/>
1087
+ </div>
1088
+ </div>
1089
+ </div>
1090
+ <div class="widget-layout-body">
1091
+ <div class="layout-control-group">
1092
+ <label class="layout-control-label"><?php _e("Fade Out Time", gallery_bank); ?> : </label>
1093
+ <div class="layout-controls">
1094
+ <input type="text" class="layout-span10" name="ux_fade_out_time" id="ux_fade_out_time"
1095
+ onkeypress="return OnlyNumbers(event)" value="<?php echo $lightbox_fade_out_time; ?>"/>
1096
+ </div>
1097
+ </div>
1098
+ </div>
1099
+ <div class="widget-layout-body">
1100
+ <div class="layout-control-group">
1101
+ <label class="layout-control-label"><?php _e("Text-Align", gallery_bank); ?> : </label>
1102
+ <div class="layout-controls">
1103
+ <select id="ux_lightbox_text_align" class="layout-span10" name="ux_lightbox_text_align">
1104
+ <option value="center">Center</option>
1105
+ <option value="inherit">Inherit</option>
1106
+ <option value="justify">Justify</option>
1107
+ <option value="left">Left</option>
1108
+ <option value="right">Right</option>
1109
+ </select>
1110
+ </div>
1111
+ </div>
1112
+ </div>
1113
+ <div class="widget-layout-body">
1114
+ <div class="layout-control-group">
1115
+ <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
1116
+ <div class="layout-controls">
1117
+ <select id="ux_lightbox_font_family" class="layout-span10" name="ux_lightbox_font_family">
1118
+ <option value="Arial">Arial</option>
1119
+ <option value="Courier">Courier</option>
1120
+ <option value="Courier New">Courier New</option>
1121
+ <option value="Geneva">Geneva</option>
1122
+ <option value="Helvetica">Helvetica</option>
1123
+ <option value="inherit">inherit</option>
1124
+ <option value="Lucida Grande">Lucida Grande</option>
1125
+ <option value="Lucida Sans Unicode">Lucida Sans Unicode</option>
1126
+ <option value="Monospace">Monospace</option>
1127
+ <option value="Sans-serif">Sans-serif</option>
1128
+ <option value="Tahoma">Tahoma</option>
1129
+ <option value="Times">Times</option>
1130
+ <option value="Times New Roman">Times New Roman</option>
1131
+ <option value="Verdana">Verdana</option>
1132
+ </select>
1133
+ </div>
1134
+ </div>
1135
+ </div>
1136
+ <div class="widget-layout-body">
1137
+ <div class="layout-control-group">
1138
+ <label class="layout-control-label"><?php _e("Heading Font-Size", gallery_bank); ?> : </label>
1139
+ <div class="layout-controls">
1140
+ <select id="ux_lightbox_heading_font_size" class="layout-span10" name="ux_lightbox_heading_font_size">
1141
+ <?php
1142
+ for ($lightbox_heading_font = 8; $lightbox_heading_font <= 24; $lightbox_heading_font++) {
1143
+ ?>
1144
+ <option <?php if ($lightbox_heading_font == $lightbox_heading_font_size) echo "selected=\"selected\"" ?>
1145
+ value="<?php echo $lightbox_heading_font; ?>"><?php echo $lightbox_heading_font; ?></option>
1146
+ <?php
1147
+ }
1148
+ ?>
1149
+ </select> (px)
1150
+ </div>
1151
+ </div>
1152
+ </div>
1153
+ <div class="widget-layout-body">
1154
+ <div class="layout-control-group">
1155
+ <label class="layout-control-label"><?php _e("Text Font-Size", gallery_bank); ?> : </label>
1156
+ <div class="layout-controls">
1157
+ <select id="ux_lightbox_text_font_size" class="layout-span10" name="ux_lightbox_text_font_size">
1158
+ <?php
1159
+ for ($lightboxfont = 8; $lightboxfont <= 15; $lightboxfont++) {
1160
+ ?>
1161
+ <option <?php if ($lightboxfont == $lightbox_text_font_size) echo "selected=\"selected\"" ?>
1162
+ value="<?php echo $lightboxfont; ?>"><?php echo $lightboxfont; ?></option>
1163
+ <?php
1164
+ }
1165
+ ?>
1166
+ </select> (px)
1167
+ </div>
1168
+ </div>
1169
+ </div>
1170
+ <div class="widget-layout-body">
1171
+ <div class="layout-control-group">
1172
+ <label class="layout-control-label"><?php _e("Facebook Comments", gallery_bank); ?> : </label>
1173
+ <div class="layout-controls-radio">
1174
+ <?php
1175
+ if ($facebook_comments == 1) {
1176
+ ?>
1177
+ <input type="radio" name="ux_facebook" value="1" checked="checked"
1178
+ onclick="disable_lightbox_type();"/> <label
1179
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1180
+ <input type="radio" style="margin-left: 10px;" name="ux_facebook"
1181
+ onclick="disable_lightbox_type();" value="0"/> <label
1182
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1183
+ <?php
1184
+ } else {
1185
+ ?>
1186
+ <input type="radio" name="ux_facebook" value="1" onclick="disable_lightbox_type();"/> <label
1187
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1188
+ <input type="radio" style="margin-left: 10px;" name="ux_facebook"
1189
+ onclick="disable_lightbox_type();" checked="checked" value="0"/> <label
1190
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1191
+ <?php
1192
+ }
1193
+ ?>
1194
+ </div>
1195
+ </div>
1196
+ </div>
1197
+ <div class="widget-layout-body">
1198
+ <div class="layout-control-group">
1199
+ <label class="layout-control-label"><?php _e("Social Sharing", gallery_bank); ?> : </label>
1200
+ <div class="layout-controls-radio">
1201
+ <?php
1202
+ if ($social_sharing == 1) {
1203
+ ?>
1204
+ <input onclick="disable_lightbox();" type="radio" name="ux_social_sharing" value="1" checked="checked"/> <label
1205
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1206
+ <input onclick="disable_lightbox();" type="radio" style="margin-left: 10px;" name="ux_social_sharing" value="0"/> <label
1207
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1208
+ <?php
1209
+ } else {
1210
+ ?>
1211
+ <input onclick="disable_lightbox();" type="radio" name="ux_social_sharing" value="1"/> <label
1212
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1213
+ <input onclick="disable_lightbox();" type="radio" style="margin-left: 10px;" name="ux_social_sharing" checked="checked"
1214
+ value="0"/> <label
1215
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1216
+ <?php
1217
+ }
1218
+ ?>
1219
+ </div>
1220
+ </div>
1221
+ </div>
1222
+ <div class="widget-layout-body">
1223
+ <div class="layout-control-group">
1224
+ <label class="layout-control-label"><?php _e("Image Title", gallery_bank); ?> : </label>
1225
+ <div class="layout-controls-radio">
1226
+ <?php
1227
+ if ($image_title_setting == 1) {
1228
+ ?>
1229
+ <input type="radio" name="ux_image_title" value="1" checked="checked"/> <label
1230
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1231
+ <input type="radio" style="margin-left: 10px;" name="ux_image_title" value="0"/> <label
1232
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1233
+ <?php
1234
+ } else {
1235
+ ?>
1236
+ <input type="radio" name="ux_image_title" value="1"/> <label
1237
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1238
+ <input type="radio" style="margin-left: 10px;" name="ux_image_title" checked="checked" value="0"/>
1239
+ <label style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1240
+ <?php
1241
+ }
1242
+ ?>
1243
+ </div>
1244
+ </div>
1245
+ </div>
1246
+ <div class="widget-layout-body">
1247
+ <div class="layout-control-group">
1248
+ <label class="layout-control-label"><?php _e("Image Description", gallery_bank); ?> : </label>
1249
+ <div class="layout-controls-radio">
1250
+ <?php
1251
+ if ($image_desc_setting == 1) {
1252
+ ?>
1253
+ <input type="radio" name="ux_image_desc" value="1" checked="checked"/> <label
1254
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1255
+ <input type="radio" style="margin-left: 10px;" name="ux_image_desc" value="0"/> <label
1256
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1257
+ <?php
1258
+ } else {
1259
+ ?>
1260
+ <input type="radio" name="ux_image_desc" value="1"/> <label
1261
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1262
+ <input type="radio" style="margin-left: 10px;" name="ux_image_desc" checked="checked" value="0"/>
1263
+ <label style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1264
+ <?php
1265
+ }
1266
+ ?>
1267
+ </div>
1268
+ </div>
1269
+ </div>
1270
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1271
  </div>
1272
+ <div class="widget-layout">
1273
+ <div class="widget-layout-title">
1274
+ <h4><?php _e("Front - End Layout Settings", gallery_bank); ?>
1275
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
1276
+ </h4>
1277
+ <span class="tools">
1278
+ <a data-target="#frontend_settings" data-toggle="collapse">
1279
+ <i class="icon-chevron-down"></i>
1280
+ </a>
1281
+ </span>
1282
+ </div>
1283
+ <div id="frontend_settings" class="collapse">
1284
+ <div class="widget-layout-body">
1285
+ <div class="layout-control-group">
1286
+ <label class="layout-control-label"><?php _e("Text for Back Button", gallery_bank); ?> : </label>
1287
+
1288
+ <div class="layout-controls">
1289
+ <input type="text" class="layout-span10" id="ux_back_button" name="ux_back_button"
1290
+ value="<?php echo $back_button_text; ?>"/>
1291
+ </div>
1292
+ </div>
1293
+ </div>
1294
+ <div class="widget-layout-body">
1295
+ <div class="layout-control-group">
1296
+ <label class="layout-control-label"><?php _e("Button Color", gallery_bank); ?> : </label>
1297
+ <div class="layout-controls">
1298
+ <input type="text" class="layout-span10" id="ux_button_color" name="ux_button_color"
1299
+ onclick="ux_clr_button_color();" style="background-color: <?php echo $button_color; ?>;"
1300
+ value="<?php echo $button_color; ?>"/>
1301
+ <img onclick="ux_clr_button_color();" style="vertical-align: middle;margin-left: 5px;"
1302
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1303
+ <div id="clr_button_color"></div>
1304
+ </div>
1305
+ </div>
1306
+ </div>
1307
+ <div class="widget-layout-body">
1308
+ <div class="layout-control-group">
1309
+ <label class="layout-control-label"><?php _e("Button Text Color", gallery_bank); ?> : </label>
1310
+ <div class="layout-controls">
1311
+ <input type="text" class="layout-span10" id="ux_button_text_color" name="ux_button_text_color"
1312
+ onclick="ux_clr_button_text_color();"
1313
+ style="background-color: <?php echo $button_text_color; ?>;"
1314
+ value="<?php echo $button_text_color; ?>"/>
1315
+ <img onclick="ux_clr_button_text_color();" style="vertical-align: middle;margin-left: 5px;"
1316
+ src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/color.png" ?>"/>
1317
+ <div id="clr_button_text_color"></div>
1318
+ </div>
1319
+ </div>
1320
+ </div>
1321
+ <div class="widget-layout-body">
1322
+ <div class="layout-control-group">
1323
+ <label class="layout-control-label"><?php _e("Font-Family", gallery_bank); ?> : </label>
1324
+ <div class="layout-controls">
1325
+ <select id="ux_button_font_family" class="layout-span10" name="ux_button_font_family">
1326
+ <option value="Arial">Arial</option>
1327
+ <option value="Courier">Courier</option>
1328
+ <option value="Courier New">Courier New</option>
1329
+ <option value="Geneva">Geneva</option>
1330
+ <option value="Helvetica">Helvetica</option>
1331
+ <option value="inherit">inherit</option>
1332
+ <option value="Lucida Grande">Lucida Grande</option>
1333
+ <option value="Lucida Sans Unicode">Lucida Sans Unicode</option>
1334
+ <option value="Monospace">Monospace</option>
1335
+ <option value="Sans-serif">Sans-serif</option>
1336
+ <option value="Tahoma">Tahoma</option>
1337
+ <option value="Times">Times</option>
1338
+ <option value="Times New Roman">Times New Roman</option>
1339
+ <option value="Verdana">Verdana</option>
1340
+ </select>
1341
+ </div>
1342
+ </div>
1343
+ </div>
1344
+ <div class="widget-layout-body">
1345
+ <div class="layout-control-group">
1346
+ <label class="layout-control-label"><?php _e("Font-Size", gallery_bank); ?> : </label>
1347
+ <div class="layout-controls">
1348
+ <select id="ux_button_font_size" class="layout-span10" name="ux_button_font_size">
1349
+ <?php
1350
+ for ($buttonfont = 8; $buttonfont <= 15; $buttonfont++) {
1351
+ ?>
1352
+ <option <?php if ($buttonfont == $back_button_font_size) echo "selected=\"selected\"" ?>
1353
+ value="<?php echo $buttonfont; ?>"><?php echo $buttonfont; ?></option>
1354
+ <?php
1355
+ }
1356
+ ?>
1357
+ </select> (px)
1358
+ </div>
1359
+ </div>
1360
+ </div>
1361
+ <div class="widget-layout-body">
1362
+ <div class="layout-control-group">
1363
+ <label class="layout-control-label"><?php _e("Album Seperator", gallery_bank); ?> : </label>
1364
+ <div class="layout-controls-radio">
1365
+ <?php
1366
+ if ($album_seperator == 1) {
1367
+ ?>
1368
+ <input type="radio" name="ux_seperator" value="1" checked="checked"/> <label
1369
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1370
+ <input type="radio" style="margin-left: 10px;" name="ux_seperator" value="0"/> <label
1371
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1372
+ <?php
1373
+ } else {
1374
+ ?>
1375
+ <input type="radio" name="ux_seperator" value="1"/> <label
1376
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1377
+ <input type="radio" style="margin-left: 10px;" name="ux_seperator" checked="checked"
1378
+ value="0"/> <label
1379
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1380
+ <?php
1381
+ }
1382
+ ?>
1383
+ </div>
1384
+ </div>
1385
+ </div>
1386
+ </div>
1387
+ </div>
1388
+ <div class="widget-layout">
1389
+ <div class="widget-layout-title">
1390
+ <h4><?php _e("Pagination Settings for Images", gallery_bank); ?>
1391
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
1392
+ </h4>
1393
  <span class="tools">
1394
+ <a data-target="#pagination_settings" data-toggle="collapse">
1395
+ <i class="icon-chevron-down"></i>
1396
+ </a>
1397
  </span>
1398
+ </div>
1399
+ <div id="pagination_settings" class="collapse">
1400
+ <div class="widget-layout-body">
1401
+ <div class="layout-control-group">
1402
+ <label class="layout-control-label"><?php _e("Paging", gallery_bank); ?> : </label>
1403
+ <div class="layout-controls-radio">
1404
+ <?php
1405
+ if ($pagination_setting == 1) {
1406
+ ?>
1407
+ <input type="radio" name="ux_images_paging" value="1" checked="checked"
1408
+ onclick="show_images_per_page()"/> <label
1409
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1410
+ <input type="radio" style="margin-left: 10px;" name="ux_images_paging" value="0"
1411
+ onclick="show_images_per_page()"/> <label
1412
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1413
+ <?php
1414
+ } else {
1415
+ ?>
1416
+ <input type="radio" name="ux_images_paging" value="1" onclick="show_images_per_page()"/>
1417
+ <label style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1418
+ <input type="radio" style="margin-left: 10px;" name="ux_images_paging" value="0"
1419
+ checked="checked" onclick="show_images_per_page()"/> <label
1420
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1421
+ <?php
1422
+ }
1423
+ ?>
1424
+ </div>
1425
+ </div>
1426
+ </div>
1427
+ <div class="widget-layout-body" id="ux_images_per_page_div" style="display: none;">
1428
+ <div class="layout-control-group">
1429
+ <label class="layout-control-label"><?php _e("No. of Images Per Page ", gallery_bank); ?> : </label>
1430
+ <div class="layout-controls">
1431
+ <input type="text" class="layout-span10" id="ux_images_per_page_val"
1432
+ name="ux_images_per_page_val" onblur="set_value('images_per_page')"
1433
+ onkeypress="return OnlyNumbers(event)" value="<?php echo $images_per_page; ?>"/>
1434
+ </div>
1435
+ </div>
1436
+ </div>
1437
+ </div>
1438
+ </div>
1439
+ <div class="widget-layout">
1440
+ <div class="widget-layout-title">
1441
+ <h4><?php _e("Slide Show Settings", gallery_bank); ?>
1442
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
1443
+ </h4>
1444
+ <span class="tools">
1445
+ <a data-target="#slideshow_settings" data-toggle="collapse">
1446
+ <i class="icon-chevron-down"></i>
1447
+ </a>
1448
+ </span>
1449
+ </div>
1450
+ <div id="slideshow_settings" class="collapse">
1451
+ <div class="widget-layout-body">
1452
+ <div class="layout-control-group">
1453
+ <label class="layout-control-label"><?php _e("Auto Play", gallery_bank); ?> : </label>
1454
+ <div class="layout-controls-radio">
1455
+ <?php
1456
+ if ($autoplay_setting == 1) {
1457
+ ?>
1458
+ <input type="radio" name="ux_slideshow" value="1" checked="checked"
1459
+ onclick="show_slide_interval();"/> <label
1460
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1461
+ <input type="radio" style="margin-left: 10px;" name="ux_slideshow" value="0"
1462
+ onclick="show_slide_interval();"/> <label
1463
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1464
+ <?php
1465
+ } else {
1466
+ ?>
1467
+ <input type="radio" name="ux_slideshow" value="1" onclick="show_slide_interval();"/> <label
1468
+ style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
1469
+ <input type="radio" style="margin-left: 10px;" name="ux_slideshow" checked="checked"
1470
+ value="0" onclick="show_slide_interval();"/> <label
1471
+ style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
1472
+ <?php
1473
+ }
1474
+ ?>
1475
+ </div>
1476
+ </div>
1477
+ </div>
1478
+ <div class="widget-layout-body" id="ux_slide_interval_div">
1479
+ <div class="layout-control-group">
1480
+ <label class="layout-control-label"><?php _e("Interval", gallery_bank); ?> : </label>
1481
+ <div class="layout-controls">
1482
+ <input type="text" class="layout-span10" id="ux_slide_val" name="ux_slide_val"
1483
+ onblur="set_value('slide');" onkeyup="set_value('slide');"
1484
+ onkeypress="return OnlyNumbers(event);" value="<?php echo $slide_interval; ?>"/>
1485
+ <span style="padding-top:3px;">(0 - 15)</span>
1486
+ </div>
1487
+ </div>
1488
+ </div>
1489
+ </div>
1490
+ </div>
1491
+ <div class="widget-layout">
1492
+ <div class="widget-layout-title">
1493
+ <h4><?php _e("Language Direction Settings", gallery_bank); ?>
1494
+ <i class="widget_premium_feature"><?php _e(" (Available in Premium Versions)", gallery_bank); ?></i>
1495
+ </h4>
1496
+ <span class="tools">
1497
+ <a data-target="#lang_dir_settings" data-toggle="collapse">
1498
+ <i class="icon-chevron-down"></i>
1499
+ </a>
1500
+ </span>
1501
+ </div>
1502
+ <div id="lang_dir_settings" class="collapse">
1503
+ <div class="widget-layout-body">
1504
+ <div class="layout-control-group">
1505
+ <label class="layout-control-label"><?php _e("Language Direction", gallery_bank); ?> : </label>
1506
+ <select id="ux_lang_dir" class="layout-span8" name="ux_lang_dir">
1507
+ <option value="inherit">Default</option>
1508
+ <option value="rtl">Right to Left</option>
1509
+ <option value="ltr">Left to Right</option>
1510
+ </select>
1511
+ </div>
1512
+ </div>
1513
+ </div>
1514
+ </div>
1515
+ </div>
1516
+ </div>
1517
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1518
  </div>
1519
  </div>
1520
  </div>
1521
  </div>
1522
  </div>
1523
  </div>
1524
+ </form>
1525
+
1526
+ <script type="text/javascript">
1527
+ var settings_array = [];
1528
+ jQuery(document).ready(function () {
1529
+ check_thumbnail_settings();
1530
+ check_cover_settings();
1531
+ show_slide_interval();
1532
+ disable_lightbox_type();
1533
+ disable_lightbox();
1534
+ show_albums_per_page();
1535
+ show_images_per_page();
1536
+ show_filter_page();
1537
+ <?php
1538
+ if($admin_full_control == 1)
1539
+ {
1540
+ ?>
1541
+ jQuery("#ux_full_control_to_admin").prop("checked", "checked");
1542
+ jQuery("#ux_read_control_to_admin").prop("checked", "checked");
1543
+ jQuery("#ux_read_control_to_admin").attr("disabled", "disabled");
1544
+ jQuery("#ux_write_control_to_admin").prop("checked", "checked");
1545
+ jQuery("#ux_write_control_to_admin").attr("disabled", "disabled");
1546
+ <?php
1547
+ }
1548
+ if($admin_read_control == 1)
1549
+ {
1550
+ ?>
1551
  jQuery("#ux_read_control_to_admin").prop("checked", "checked");
1552
+ <?php
1553
+ }
1554
+ if($admin_write_control == 1)
1555
+ {
1556
+ ?>
1557
  jQuery("#ux_write_control_to_admin").prop("checked", "checked");
 
1558
  <?php
1559
+ }
1560
+ if($editor_full_control == 1)
1561
+ {
1562
+ ?>
1563
+ jQuery("#ux_full_control_to_editor").prop("checked", "checked");
1564
+ jQuery("#ux_read_control_to_editor").prop("checked", "checked");
1565
+ jQuery("#ux_read_control_to_editor").attr("disabled", "disabled");
1566
+ jQuery("#ux_write_control_to_editor").prop("checked", "checked");
1567
+ jQuery("#ux_write_control_to_editor").attr("disabled", "disabled");
1568
+ <?php
1569
+ }
1570
+ if($editor_read_control == 1)
1571
+ {
1572
+ ?>
1573
+ jQuery("#ux_read_control_to_editor").prop("checked", "checked");
1574
+ <?php
1575
+ }
1576
+ if($editor_write_control == 1)
1577
+ {
1578
+ ?>
1579
+ jQuery("#ux_write_control_to_editor").prop("checked", "checked");
1580
+ <?php
1581
+ }
1582
+ if($author_full_control == 1)
1583
+ {
1584
+ ?>
1585
+ jQuery("#ux_full_control_to_author").prop("checked", "checked");
1586
+ jQuery("#ux_read_control_to_author").prop("checked", "checked");
1587
+ jQuery("#ux_read_control_to_author").attr("disabled", "disabled");
1588
+ jQuery("#ux_write_control_to_author").prop("checked", "checked");
1589
+ jQuery("#ux_write_control_to_author").attr("disabled", "disabled");
1590
+ <?php
1591
+ }
1592
+ if($author_read_control == 1)
1593
+ {
1594
+ ?>
1595
+ jQuery("#ux_read_control_to_author").prop("checked", "checked");
1596
+ <?php
1597
+ }
1598
+ if($author_write_control == 1)
1599
+ {
1600
+ ?>
1601
+ jQuery("#ux_write_control_to_author").prop("checked", "checked");
1602
+ <?php
1603
+ }
1604
+ if($contributor_full_control == 1)
1605
+ {
1606
+ ?>
1607
+ jQuery("#ux_full_control_to_contributor").prop("checked", "checked");
1608
+ jQuery("#ux_read_control_to_contributor").prop("checked", "checked");
1609
+ jQuery("#ux_read_control_to_contributor").attr("disabled", "disabled");
1610
+ jQuery("#ux_write_control_to_contributor").prop("checked", "checked");
1611
+ jQuery("#ux_write_control_to_contributor").attr("disabled", "disabled");
1612
+ <?php
1613
+ }
1614
+ if($contributor_read_control == 1)
1615
+ {
1616
+ ?>
1617
+ jQuery("#ux_read_control_to_contributor").prop("checked", "checked");
1618
+ <?php
1619
+ }
1620
+ if($contributor_write_control == 1)
1621
+ {
1622
+ ?>
1623
+ jQuery("#ux_write_control_to_contributor").prop("checked", "checked");
1624
+ <?php
1625
+ }
1626
+ if($subscriber_full_control == 1)
1627
+ {
1628
+ ?>
1629
+ jQuery("#ux_full_control_to_subscriber").prop("checked", "checked");
1630
+ jQuery("#ux_read_control_to_subscriber").prop("checked", "checked");
1631
+ jQuery("#ux_read_control_to_subscriber").attr("disabled", "disabled");
1632
+ jQuery("#ux_write_control_to_subscriber").prop("checked", "checked");
1633
+ jQuery("#ux_write_control_to_subscriber").attr("disabled", "disabled");
1634
+ <?php
1635
+ }
1636
+ if($subscriber_read_control == 1)
1637
+ {
1638
+ ?>
1639
+ jQuery("#ux_read_control_to_subscriber").prop("checked", "checked");
1640
+ <?php
1641
+ }
1642
+ if($subscriber_write_control == 1)
1643
+ {
1644
+ ?>
1645
+ jQuery("#ux_write_control_to_subscriber").prop("checked", "checked");
1646
+ <?php
1647
+ }
1648
+ ?>
1649
+ jQuery("#ux_lightbox_type").val("<?php echo $lightbox_type;?>");
1650
+ jQuery("#ux_thumb_text_align").val("<?php echo $thumbnail_text_align;?>");
1651
+ jQuery("#ux_thumb_font_family").val("<?php echo $thumbnail_font_family;?>");
1652
+ jQuery("#ux_album_text_align").val("<?php echo $album_text_align;?>");
1653
+ jQuery("#ux_album_font_family").val("<?php echo $album_font_family;?>");
1654
+ jQuery("#ux_filter_font_family").val("<?php echo $filter_font_family;?>");
1655
+ jQuery("#ux_button_font_family").val("<?php echo $back_button_font_family;?>");
1656
+ jQuery("#ux_lightbox_text_align").val("<?php echo $lightbox_text_align;?>");
1657
+ jQuery("#ux_lightbox_font_family").val("<?php echo $lightbox_font_family;?>");
1658
+ jQuery("#ux_lang_dir").val("<?php echo $lang_dir_setting;?>");
1659
+ });
1660
+ function show_premium_message()
1661
  {
1662
+ alert("<?php _e( "This Feature is only available in Paid Premium Version!", gallery_bank ); ?>");
 
 
1663
  }
1664
+ function disable_admin_checkbox(control) {
1665
+ var controlId = jQuery(control).attr("id");
1666
+ var full_control = "";
1667
+ switch (controlId) {
1668
+ case "ux_full_control_to_admin":
1669
+
1670
+ full_control = jQuery("#ux_full_control_to_admin").prop("checked");
1671
+ if (full_control == true) {
1672
+ jQuery("#ux_read_control_to_admin").prop("checked", "checked");
1673
+ jQuery("#ux_read_control_to_admin").attr("disabled", "disabled");
1674
+ jQuery("#ux_write_control_to_admin").prop("checked", "checked");
1675
+ jQuery("#ux_write_control_to_admin").attr("disabled", "disabled");
1676
+ }
1677
+ else {
1678
+ jQuery("#ux_read_control_to_admin").prop("checked", false);
1679
+ jQuery("#ux_read_control_to_admin").removeAttr("disabled", "disabled");
1680
+ jQuery("#ux_write_control_to_admin").prop("checked", false);
1681
+ jQuery("#ux_write_control_to_admin").removeAttr("disabled", "disabled");
1682
+ }
1683
+
1684
+ break;
1685
+ case "ux_full_control_to_editor":
1686
+
1687
+ full_control = jQuery("#ux_full_control_to_editor").prop("checked");
1688
+ if (full_control == true) {
1689
+ jQuery("#ux_read_control_to_editor").prop("checked", "checked");
1690
+ jQuery("#ux_read_control_to_editor").attr("disabled", "disabled");
1691
+ jQuery("#ux_write_control_to_editor").prop("checked", "checked");
1692
+ jQuery("#ux_write_control_to_editor").attr("disabled", "disabled");
1693
+ }
1694
+ else {
1695
+ jQuery("#ux_read_control_to_editor").prop("checked", false);
1696
+ jQuery("#ux_read_control_to_editor").removeAttr("disabled", "disabled");
1697
+ jQuery("#ux_write_control_to_editor").prop("checked", false);
1698
+ jQuery("#ux_write_control_to_editor").removeAttr("disabled", "disabled");
1699
+ }
1700
+
1701
+ break;
1702
+ case "ux_full_control_to_author":
1703
+
1704
+ full_control = jQuery("#ux_full_control_to_author").prop("checked");
1705
+ if (full_control == true) {
1706
+ jQuery("#ux_read_control_to_author").prop("checked", "checked");
1707
+ jQuery("#ux_read_control_to_author").attr("disabled", "disabled");
1708
+ jQuery("#ux_write_control_to_author").prop("checked", "checked");
1709
+ jQuery("#ux_write_control_to_author").attr("disabled", "disabled");
1710
+ }
1711
+ else {
1712
+ jQuery("#ux_read_control_to_author").prop("checked", false);
1713
+ jQuery("#ux_read_control_to_author").removeAttr("disabled", "disabled");
1714
+ jQuery("#ux_write_control_to_author").prop("checked", false);
1715
+ jQuery("#ux_write_control_to_author").removeAttr("disabled", "disabled");
1716
+ }
1717
+
1718
+ break;
1719
+ case "ux_full_control_to_contributor":
1720
+
1721
+ full_control = jQuery("#ux_full_control_to_contributor").prop("checked");
1722
+ if (full_control == true) {
1723
+ jQuery("#ux_read_control_to_contributor").prop("checked", "checked");
1724
+ jQuery("#ux_read_control_to_contributor").attr("disabled", "disabled");
1725
+ jQuery("#ux_write_control_to_contributor").prop("checked", "checked");
1726
+ jQuery("#ux_write_control_to_contributor").attr("disabled", "disabled");
1727
+ }
1728
+ else {
1729
+ jQuery("#ux_read_control_to_contributor").prop("checked", false);
1730
+ jQuery("#ux_read_control_to_contributor").removeAttr("disabled", "disabled");
1731
+ jQuery("#ux_write_control_to_contributor").prop("checked", false);
1732
+ jQuery("#ux_write_control_to_contributor").removeAttr("disabled", "disabled");
1733
+ }
1734
+
1735
+ break;
1736
+ case "ux_full_control_to_subscriber":
1737
+
1738
+ full_control = jQuery("#ux_full_control_to_subscriber").prop("checked");
1739
+ if (full_control == true) {
1740
+ jQuery("#ux_read_control_to_subscriber").prop("checked", "checked");
1741
+ jQuery("#ux_read_control_to_subscriber").attr("disabled", "disabled");
1742
+ jQuery("#ux_write_control_to_subscriber").prop("checked", "checked");
1743
+ jQuery("#ux_write_control_to_subscriber").attr("disabled", "disabled");
1744
+ }
1745
+ else {
1746
+ jQuery("#ux_read_control_to_subscriber").prop("checked", false);
1747
+ jQuery("#ux_read_control_to_subscriber").removeAttr("disabled", "disabled");
1748
+ jQuery("#ux_write_control_to_subscriber").prop("checked", false);
1749
+ jQuery("#ux_write_control_to_subscriber").removeAttr("disabled", "disabled");
1750
+ }
1751
+
1752
+ break;
1753
+ }
1754
  }
1755
+ function check_thumbnail_settings() {
1756
+ var thumb_setting = jQuery("input:radio[name=ux_thumbnail]:checked").val();
1757
+ if (thumb_setting != 0) {
1758
+ jQuery("#image_width").css("display", "none");
1759
+ jQuery("#image_height").css("display", "none");
1760
+ } else {
1761
+ jQuery("#image_width").css("display", "block");
1762
+ jQuery("#image_height").css("display", "block");
1763
+ }
1764
  }
1765
+ function show_albums_per_page() {
1766
+ var album_paging = jQuery("input:radio[name=ux_album_paging]:checked").val();
1767
+ if (album_paging != 1) {
1768
+ jQuery("#ux_album_per_page_div").css("display", "none");
1769
+ } else {
1770
+ jQuery("#ux_album_per_page_div").css("display", "block");
1771
+ }
1772
  }
1773
+ function show_images_per_page() {
1774
+ var images_paging = jQuery("input:radio[name=ux_images_paging]:checked").val();
1775
+ if (images_paging == 1) {
1776
+ jQuery("#ux_images_per_page_div").css("display", "block");
1777
+ }
1778
+ else {
1779
+ jQuery("#ux_images_per_page_div").css("display", "none");
1780
+ }
1781
  }
1782
+ function check_cover_settings() {
1783
+ var cover_setting = jQuery("input:radio[name=ux_cover_size]:checked").val();
1784
+ if (cover_setting == 0) {
1785
+ jQuery("#cover_width").css("display", "block");
1786
+ jQuery("#cover_height").css("display", "block");
1787
+ }
1788
+ else {
1789
+ jQuery("#cover_width").css("display", "none");
1790
+ jQuery("#cover_height").css("display", "none");
1791
+ }
1792
  }
1793
+ function disable_lightbox_type() {
1794
+ var facebook_enable = jQuery("input:radio[name=ux_facebook]:checked").val();
1795
+ if (facebook_enable != 1 ) {
1796
+ jQuery("#ux_lightbox_type").removeAttr("disabled", "disabled");
1797
+ } else {
1798
+ jQuery("#ux_lightbox_type").val("GB_lightbox");
1799
+ jQuery("#ux_lightbox_type").attr("disabled", "disabled");
1800
+ }
1801
  }
1802
+ function disable_lightbox() {
1803
+ var social_enable = jQuery("input:radio[name=ux_social_sharing]:checked").val();
1804
+ if (social_enable != 1 ) {
1805
+ jQuery("#ux_lightbox_type").removeAttr("disabled", "disabled");
1806
+ } else {
1807
+ jQuery("#ux_lightbox_type").val("GB_lightbox");
1808
+ jQuery("#ux_lightbox_type").attr("disabled", "disabled");
1809
+ }
1810
  }
1811
+ function show_slide_interval() {
1812
+ var slideshow_enable = jQuery("input:radio[name=ux_slideshow]:checked").val();
1813
+ if (slideshow_enable != 1) {
1814
+ jQuery("#ux_slide_interval_div").css("display", "none");
1815
+ } else {
1816
+ jQuery("#ux_slide_interval_div").css("display", "block");
1817
+ }
 
 
1818
  }
1819
+ function show_filter_page() {
1820
+ var filter_enable = jQuery("input:radio[name=ux_image_filters]:checked").val();
1821
+ if (filter_enable != 1) {
1822
+ jQuery("#ux_filter_setting_div").css("display", "none");
1823
+ } else {
1824
+ jQuery("#ux_filter_setting_div").css("display", "block");
1825
+ }
1826
  }
1827
+ /**
1828
+ * @return {boolean}
1829
+ */
1830
+ function OnlyNumbers(evt) {
1831
+ var charCode = (evt.which) ? evt.which : event.keyCode;
1832
+ return (charCode > 47 && charCode < 58) || charCode == 127 || charCode == 8;
1833
  }
1834
+ function set_value(text_type) {
1835
+ var val = "";
1836
+ switch (text_type) {
1837
+ case "thumb_opacity":
1838
+
1839
+ val = jQuery("#ux_image_opacity_val").val();
1840
+ if (val <= 100) {
1841
+ if (val > 0) {
1842
+ jQuery("#ux_image_opacity_val").val(jQuery("#ux_image_opacity_val").val().replace(/^0+/, ""));
1843
+ }
1844
+ else if (val == "") {
1845
+ jQuery("#ux_image_opacity_val").val(0);
1846
+ }
1847
+ } else {
1848
+ jQuery("#ux_image_opacity_val").val(100);
1849
+ }
1850
+
1851
+ break;
1852
+ case "thumb_border_size":
1853
+
1854
+ val = jQuery("#ux_image_border_val").val();
1855
+ if (val <= 20) {
1856
+ if (val > 0) {
1857
+ jQuery("#ux_image_border_val").val(jQuery("#ux_image_border_val").val().replace(/^0+/, ""));
1858
+ }
1859
+ else if (val == "") {
1860
+ jQuery("#ux_image_border_val").val(0);
1861
+ }
1862
+ } else {
1863
+ jQuery("#ux_image_border_val").val(20);
1864
+ }
1865
+
1866
+ break;
1867
+ case "thumb_border_radius":
1868
+
1869
+ val = jQuery("#ux_image_radius_val").val();
1870
+ if (val <= 20) {
1871
+ if (val > 0) {
1872
+ jQuery("#ux_image_radius_val").val(jQuery("#ux_image_radius_val").val().replace(/^0+/, ""));
1873
+ }
1874
+ else if (val == "") {
1875
+ jQuery("#ux_image_radius_val").val(0);
1876
+ }
1877
+ } else {
1878
+ jQuery("#ux_image_radius_val").val(20);
1879
+ }
1880
+
1881
+ break;
1882
+ case "cover_opacity":
1883
+
1884
+ val = jQuery("#ux_cover_opacity_val").val();
1885
+ if (val <= 100) {
1886
+ if (val > 0) {
1887
+ jQuery("#ux_cover_opacity_val").val(jQuery("#ux_cover_opacity_val").val().replace(/^0+/, ""));
1888
+ }
1889
+ else if (val == "") {
1890
+ jQuery("#ux_cover_opacity_val").val(0);
1891
+ }
1892
+ } else {
1893
+ jQuery("#ux_cover_opacity_val").val(100);
1894
+ }
1895
+
1896
+ break;
1897
+ case "cover_border_size":
1898
+
1899
+ val = jQuery("#ux_cover_border_val").val();
1900
+ if (val <= 20) {
1901
+ if (val > 0) {
1902
+ jQuery("#ux_cover_border_val").val(jQuery("#ux_cover_border_val").val().replace(/^0+/, ""));
1903
+ }
1904
+ else if (val == "") {
1905
+ jQuery("#ux_cover_border_val").val(0);
1906
+ }
1907
+ } else {
1908
+ jQuery("#ux_cover_border_val").val(20);
1909
+ }
1910
+ break;
1911
+ case "cover_border_radius":
1912
+
1913
+ val = jQuery("#ux_cover_radius_val").val();
1914
+ if (val <= 20) {
1915
+ if (val > 0) {
1916
+ jQuery("#ux_cover_radius_val").val(jQuery("#ux_cover_radius_val").val().replace(/^0+/, ""));
1917
+ }
1918
+ else if (val == "") {
1919
+ jQuery("#ux_cover_radius_val").val(0);
1920
+ }
1921
+ } else {
1922
+ jQuery("#ux_cover_radius_val").val(20);
1923
+ }
1924
+
1925
+ break;
1926
+ case "lightbox_opacity":
1927
+
1928
+ val = jQuery("#ux_lightbox_opacity_val").val();
1929
+ if (val > 100) {
1930
+ jQuery("#ux_lightbox_opacity_val").val(100);
1931
+ }
1932
+ else if (val > 0) {
1933
+ jQuery("#ux_lightbox_opacity_val").val(jQuery("#ux_lightbox_opacity_val").val().replace(/^0+/, ""));
1934
+ }
1935
+ else if (val == "") {
1936
+ jQuery("#ux_lightbox_opacity_val").val(0);
1937
+ }
1938
+
1939
+ break;
1940
+ case "lightbox_border":
1941
+
1942
+ val = jQuery("#ux_lightbox_border_val").val();
1943
+ if (val <= 20) {
1944
+ if (val > 0) {
1945
+ jQuery("#ux_lightbox_border_val").val(jQuery("#ux_lightbox_border_val").val().replace(/^0+/, ""));
1946
+ }
1947
+ else if (val == "") {
1948
+ jQuery("#ux_lightbox_border_val").val(0);
1949
+ }
1950
+ } else {
1951
+ jQuery("#ux_lightbox_border_val").val(20);
1952
+ }
1953
+
1954
+ break;
1955
+ case "lightbox_radius":
1956
+
1957
+ val = jQuery("#ux_lightbox_radius_val").val();
1958
+ if (val <= 20) {
1959
+ if (val > 0) {
1960
+ jQuery("#ux_lightbox_radius_val").val(jQuery("#ux_lightbox_radius_val").val().replace(/^0+/, ""));
1961
+ }
1962
+ else if (val == "") {
1963
+ jQuery("#ux_lightbox_radius_val").val(0);
1964
+ }
1965
+ } else {
1966
+ jQuery("#ux_lightbox_radius_val").val(20);
1967
+ }
1968
+
1969
+ break;
1970
+ case "slide":
1971
+
1972
+ val = jQuery("#ux_slide_val").val();
1973
+ if (val <= 15) {
1974
+ if (val > 0) {
1975
+ jQuery("#ux_slide_val").val(jQuery("#ux_slide_val").val().replace(/^0+/, ""));
1976
+ }
1977
+ else if (val == "") {
1978
+ jQuery("#ux_slide_val").val(0);
1979
+ }
1980
+ } else {
1981
+ jQuery("#ux_slide_val").val(15);
1982
+ }
1983
+
1984
+ break;
1985
+ case "albums_per_page":
1986
+
1987
+ val = jQuery("#ux_albums_per_page_val").val();
1988
+ if (val < 1) {
1989
+ jQuery("#ux_albums_per_page_val").val(1);
1990
+ }
1991
+
1992
+ break;
1993
+ case "images_per_page":
1994
+
1995
+ val = jQuery("#ux_images_per_page_val").val();
1996
+ if (val < 1) {
1997
+ jQuery("#ux_images_per_page_val").val(1);
1998
+ }
1999
+ break;
2000
+ }
2001
  }
2002
+
2003
+ function ux_clr_inline_overlay_color() {
2004
+ jQuery("#clr_inline_overlay_color").farbtastic("#ux_inline_overlay_color");
2005
+ jQuery("#clr_inline_overlay_color").slideDown();
2006
+ jQuery("#ux_inline_overlay_color").focus();
2007
  }
2008
+ function ux_clr_overlay_bg_color() {
2009
+ jQuery("#clr_overlay_bg_color").farbtastic("#ux_overlay_bg_color");
2010
+ jQuery("#clr_overlay_bg_color").slideDown();
2011
+ jQuery("#ux_overlay_bg_color").focus();
 
2012
  }
2013
+ function ux_clr_album_font_color() {
2014
+ jQuery("#clr_album_text_color").farbtastic("#ux_album_text_color");
2015
+ jQuery("#clr_album_text_color").slideDown();
2016
+ jQuery("#ux_album_text_color").focus();
2017
+ }
2018
+ function ux_clr_overlay_border_color() {
2019
+ jQuery("#clr_overlay_border_color").farbtastic("#ux_overlay_border_color");
2020
+ jQuery("#clr_overlay_border_color").slideDown();
2021
+ jQuery("#ux_overlay_border_color").focus();
2022
+ }
2023
+ function ux_clr_lightbox_text_color() {
2024
+ jQuery("#clr_lightbox_text_color").farbtastic("#ux_lightbox_text_color");
2025
+ jQuery("#clr_lightbox_text_color").slideDown();
2026
+ jQuery("#ux_lightbox_text_color").focus();
2027
+ }
2028
+ function ux_clr_cover_border_color() {
2029
+ jQuery("#clr_cover_border_color").farbtastic("#ux_cover_border_color");
2030
+ jQuery("#clr_cover_border_color").slideDown();
2031
+ jQuery("#ux_cover_border_color").focus();
2032
+ }
2033
+ function ux_clr_border_color() {
2034
+ jQuery("#clr_border_color").farbtastic("#ux_border_color");
2035
+ jQuery("#clr_border_color").slideDown();
2036
+ jQuery("#ux_border_color").focus();
2037
+ }
2038
+ function ux_clr_thumb_text_color() {
2039
+ jQuery("#clr_thumb_text_color").farbtastic("#ux_thumb_text_color");
2040
+ jQuery("#clr_thumb_text_color").slideDown();
2041
+ jQuery("#ux_thumb_text_color").focus();
2042
+ }
2043
+ function ux_clr_button_color() {
2044
+ jQuery("#clr_button_color").farbtastic("#ux_button_color");
2045
+ jQuery("#clr_button_color").slideDown();
2046
+ jQuery("#ux_button_color").focus();
2047
+ }
2048
+ function ux_clr_button_text_color() {
2049
+ jQuery("#clr_button_text_color").farbtastic("#ux_button_text_color");
2050
+ jQuery("#clr_button_text_color").slideDown();
2051
+ jQuery("#ux_button_text_color").focus();
2052
+ }
2053
+ function ux_clr_filter_color() {
2054
+ jQuery("#clr_filter_color").farbtastic("#ux_filter_color");
2055
+ jQuery("#clr_filter_color").slideDown();
2056
+ jQuery("#ux_filter_color").focus();
2057
+ }
2058
+ function ux_clr_filter_text_color() {
2059
+ jQuery("#clr_filter_text_color").farbtastic("#ux_filter_text_color");
2060
+ jQuery("#clr_filter_text_color").slideDown();
2061
+ jQuery("#ux_filter_text_color").focus();
2062
+ }
2063
+
2064
+ jQuery("#ux_inline_overlay_color").blur(function () {
2065
+ jQuery("#clr_inline_overlay_color").slideUp()
2066
+ });
2067
+ jQuery("#ux_overlay_bg_color").blur(function () {
2068
+ jQuery("#clr_overlay_bg_color").slideUp()
2069
+ });
2070
+ jQuery("#ux_album_text_color").blur(function () {
2071
+ jQuery("#clr_album_text_color").slideUp()
2072
+ });
2073
+ jQuery("#ux_overlay_border_color").blur(function () {
2074
+ jQuery("#clr_overlay_border_color").slideUp()
2075
+ });
2076
+ jQuery("#ux_lightbox_text_color").blur(function () {
2077
+ jQuery("#clr_lightbox_text_color").slideUp()
2078
+ });
2079
+ jQuery("#ux_cover_border_color").blur(function () {
2080
+ jQuery("#clr_cover_border_color").slideUp()
2081
+ });
2082
+ jQuery("#ux_border_color").blur(function () {
2083
+ jQuery("#clr_border_color").slideUp()
2084
+ });
2085
+ jQuery("#ux_thumb_text_color").blur(function () {
2086
+ jQuery("#clr_thumb_text_color").slideUp()
2087
+ });
2088
+ jQuery("#ux_button_color").blur(function () {
2089
+ jQuery("#clr_button_color").slideUp()
2090
+ });
2091
+ jQuery("#ux_button_text_color").blur(function () {
2092
+ jQuery("#clr_button_text_color").slideUp()
2093
+ });
2094
+ jQuery("#ux_filter_color").blur(function () {
2095
+ jQuery("#clr_filter_color").slideUp()
2096
+ });
2097
+ jQuery("#ux_filter_text_color").blur(function () {
2098
+ jQuery("#clr_filter_text_color").slideUp()
2099
+ });
2100
+ </script>
2101
+ <?php
2102
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2103
  }
2104
  ?>
views/shortcode.php CHANGED
@@ -1,23 +1,54 @@
1
- <form id="shortcode" class="layout-form">
2
- <div id="poststuff" style="width: 99% !important;">
3
- <div id="post-body" class="metabox-holder">
4
- <div id="postbox-container-2" class="postbox-container">
5
- <div id="advanced" class="meta-box-sortables">
6
- <div id="gallery_bank_get_started" class="postbox" >
7
- <div class="handlediv" data-target="#ux_shortcode" title="Click to toggle" data-toggle="collapse"><br></div>
8
- <h3 class="hndle"><span><?php _e("Gallery Bank Short-Codes", gallery_bank); ?></span></h3>
9
- <div class="inside">
10
- <div id="ux_shortcode" class="gallery_bank_layout">
11
- <a class="btn btn-inverse"
12
- href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
13
- <div class="separator-doubled"></div>
14
- <div class="fluid-layout">
15
- <div class="layout-span12">
16
- <div class="widget-layout">
17
- <div class="widget-layout-body">
18
- <img src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code.png";?>" />
19
- </div>
20
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  </div>
22
  </div>
23
  </div>
@@ -26,5 +57,7 @@
26
  </div>
27
  </div>
28
  </div>
29
- </div>
30
- </form>
 
 
1
+ <?php
2
+ global $wpdb, $current_user,$wp_version;
3
+ $role = $wpdb->prefix . "capabilities";
4
+ $current_user->role = array_keys($current_user->$role);
5
+ $role = $current_user->role[0];
6
+ switch($role)
7
+ {
8
+ case "administrator":
9
+ $user_role_permission = "manage_options";
10
+ break;
11
+ case "editor":
12
+ $user_role_permission = "publish_pages";
13
+ break;
14
+ case "author":
15
+ $user_role_permission = "publish_posts";
16
+ break;
17
+ case "contributor":
18
+ $user_role_permission = "edit_posts";
19
+ break;
20
+ case "subscriber":
21
+ $user_role_permission = "read";
22
+ break;
23
+ }
24
+ if (!current_user_can($user_role_permission))
25
+ {
26
+ return;
27
+ }
28
+ else
29
+ {
30
+ ?>
31
+ <form id="shortcode" class="layout-form">
32
+ <div id="poststuff" style="width: 99% !important;">
33
+ <div id="post-body" class="metabox-holder">
34
+ <div id="postbox-container-2" class="postbox-container">
35
+ <div id="advanced" class="meta-box-sortables">
36
+ <div id="gallery_bank_get_started" class="postbox" >
37
+ <div class="handlediv" data-target="#ux_shortcode" title="Click to toggle" data-toggle="collapse"><br></div>
38
+ <h3 class="hndle"><span><?php _e("Gallery Bank Short-Codes", gallery_bank); ?></span></h3>
39
+ <div class="inside">
40
+ <div id="ux_shortcode" class="gallery_bank_layout">
41
+ <a class="btn btn-inverse"
42
+ href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
43
+ <div class="separator-doubled"></div>
44
+ <div class="fluid-layout">
45
+ <div class="layout-span12">
46
+ <div class="widget-layout">
47
+ <div class="widget-layout-body">
48
+ <img src="<?php echo GALLERY_BK_PLUGIN_URL . "/assets/images/how-to-setup-short-code.png";?>" />
49
+ </div>
50
+ </div>
51
+ </div>
52
  </div>
53
  </div>
54
  </div>
57
  </div>
58
  </div>
59
  </div>
60
+ </form>
61
+ <?php
62
+ }
63
+ ?>