Version Description
- Bug Fixed with Menu Links shown to Subscriber and other roles.
Download this release
Release Info
Developer | Gallery-Bank |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 3.0.40 |
Comparing to | |
See all releases |
Code changes from version 3.0.39 to 3.0.40
- gallery-bank.php +218 -51
- lib/gallery-bank-class.php +56 -12
- readme.txt +6 -2
- views/dashboard.php +190 -39
- views/edit-album.php +11 -0
- views/header.php +56 -9
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.
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -72,63 +72,230 @@ function gallery_bank_plugin_load_text_domain()
|
|
72 |
/*************************************************************************************/
|
73 |
function add_gallery_bank_icon($meta = TRUE)
|
74 |
{
|
75 |
-
global $wp_admin_bar,$wpdb;
|
76 |
if (!is_user_logged_in()) {
|
77 |
return;
|
78 |
}
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
80 |
(
|
81 |
"SELECT album_id FROM " .gallery_bank_albums(). " order by album_id desc limit 1"
|
82 |
);
|
83 |
$id = count($last_album_id) == 0 ? 1 : $last_album_id + 1;
|
84 |
-
$
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
|
134 |
|
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.40
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
72 |
/*************************************************************************************/
|
73 |
function add_gallery_bank_icon($meta = TRUE)
|
74 |
{
|
75 |
+
global $wp_admin_bar,$wpdb,$current_user;
|
76 |
if (!is_user_logged_in()) {
|
77 |
return;
|
78 |
}
|
79 |
+
|
80 |
+
|
81 |
+
$role = $wpdb->prefix . "capabilities";
|
82 |
+
$current_user->role = array_keys($current_user->$role);
|
83 |
+
$role = $current_user->role[0];
|
84 |
+
$last_album_id = $wpdb->get_var
|
85 |
(
|
86 |
"SELECT album_id FROM " .gallery_bank_albums(). " order by album_id desc limit 1"
|
87 |
);
|
88 |
$id = count($last_album_id) == 0 ? 1 : $last_album_id + 1;
|
89 |
+
$album_count = $wpdb->get_var
|
90 |
+
(
|
91 |
+
"SELECT count(album_id) FROM ".gallery_bank_albums()
|
92 |
+
);
|
93 |
+
switch ($role) {
|
94 |
+
case "administrator":
|
95 |
+
$wp_admin_bar->add_menu(array(
|
96 |
+
"id" => "gallery_bank_links",
|
97 |
+
"title" => __("<img src=\"" . GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png\" width=\"25\"
|
98 |
+
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Gallery Bank"),
|
99 |
+
"href" => __(site_url() . "/wp-admin/admin.php?page=gallery_bank"),
|
100 |
+
));
|
101 |
+
|
102 |
+
$wp_admin_bar->add_menu(array(
|
103 |
+
"parent" => "gallery_bank_links",
|
104 |
+
"id" => "dashboard_links",
|
105 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
106 |
+
"title" => __("Dashboard", gallery_bank))
|
107 |
+
);
|
108 |
+
if($album_count < 3)
|
109 |
+
{
|
110 |
+
$wp_admin_bar->add_menu(array(
|
111 |
+
"parent" => "gallery_bank_links",
|
112 |
+
"id" => "add_new_album_links",
|
113 |
+
"href" => site_url() . "/wp-admin/admin.php?page=save_album&album_id=".$id,
|
114 |
+
"title" => __("Add New Album", gallery_bank))
|
115 |
+
);
|
116 |
+
}
|
117 |
+
|
118 |
+
$wp_admin_bar->add_menu(array(
|
119 |
+
"parent" => "gallery_bank_links",
|
120 |
+
"id" => "shortcode_links",
|
121 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_shortcode",
|
122 |
+
"title" => __("Short-Codes", gallery_bank))
|
123 |
+
);
|
124 |
+
|
125 |
+
$wp_admin_bar->add_menu(array(
|
126 |
+
"parent" => "gallery_bank_links",
|
127 |
+
"id" => "sorting_links",
|
128 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_album_sorting",
|
129 |
+
"title" => __("Album Sorting", gallery_bank))
|
130 |
+
);
|
131 |
+
|
132 |
+
$wp_admin_bar->add_menu(array(
|
133 |
+
"parent" => "gallery_bank_links",
|
134 |
+
"id" => "global_settings_links",
|
135 |
+
"href" => site_url() . "/wp-admin/admin.php?page=global_settings",
|
136 |
+
"title" => __("Global Settings", gallery_bank))
|
137 |
+
);
|
138 |
+
|
139 |
+
$wp_admin_bar->add_menu(array(
|
140 |
+
"parent" => "gallery_bank_links",
|
141 |
+
"id" => "system_status_links",
|
142 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_system_status",
|
143 |
+
"title" => __("System Status", gallery_bank))
|
144 |
+
);
|
145 |
+
|
146 |
+
$wp_admin_bar->add_menu(array(
|
147 |
+
"parent" => "gallery_bank_links",
|
148 |
+
"id" => "purchase_pro_version_links",
|
149 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_purchase",
|
150 |
+
"title" => __("Purchase Pro Version", gallery_bank))
|
151 |
+
);
|
152 |
+
break;
|
153 |
+
case "editor":
|
154 |
+
$wp_admin_bar->add_menu(array(
|
155 |
+
"id" => "gallery_bank_links",
|
156 |
+
"title" => __("<img src=\"" . GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png\" width=\"25\"
|
157 |
+
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Gallery Bank"),
|
158 |
+
"href" => __(site_url() . "/wp-admin/admin.php?page=gallery_bank"),
|
159 |
+
));
|
160 |
+
|
161 |
+
$wp_admin_bar->add_menu(array(
|
162 |
+
"parent" => "gallery_bank_links",
|
163 |
+
"id" => "dashboard_links",
|
164 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
165 |
+
"title" => __("Dashboard", gallery_bank))
|
166 |
+
);
|
167 |
+
if($album_count < 3)
|
168 |
+
{
|
169 |
+
$wp_admin_bar->add_menu(array(
|
170 |
+
"parent" => "gallery_bank_links",
|
171 |
+
"id" => "add_new_album_links",
|
172 |
+
"href" => site_url() . "/wp-admin/admin.php?page=save_album&album_id=".$id,
|
173 |
+
"title" => __("Add New Album", gallery_bank))
|
174 |
+
);
|
175 |
+
}
|
176 |
+
|
177 |
+
$wp_admin_bar->add_menu(array(
|
178 |
+
"parent" => "gallery_bank_links",
|
179 |
+
"id" => "shortcode_links",
|
180 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_shortcode",
|
181 |
+
"title" => __("Short-Codes", gallery_bank))
|
182 |
+
);
|
183 |
+
|
184 |
+
$wp_admin_bar->add_menu(array(
|
185 |
+
"parent" => "gallery_bank_links",
|
186 |
+
"id" => "sorting_links",
|
187 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_album_sorting",
|
188 |
+
"title" => __("Album Sorting", gallery_bank))
|
189 |
+
);
|
190 |
+
|
191 |
+
$wp_admin_bar->add_menu(array(
|
192 |
+
"parent" => "gallery_bank_links",
|
193 |
+
"id" => "global_settings_links",
|
194 |
+
"href" => site_url() . "/wp-admin/admin.php?page=global_settings",
|
195 |
+
"title" => __("Global Settings", gallery_bank))
|
196 |
+
);
|
197 |
+
|
198 |
+
$wp_admin_bar->add_menu(array(
|
199 |
+
"parent" => "gallery_bank_links",
|
200 |
+
"id" => "system_status_links",
|
201 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_system_status",
|
202 |
+
"title" => __("System Status", gallery_bank))
|
203 |
+
);
|
204 |
+
|
205 |
+
$wp_admin_bar->add_menu(array(
|
206 |
+
"parent" => "gallery_bank_links",
|
207 |
+
"id" => "purchase_pro_version_links",
|
208 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_purchase",
|
209 |
+
"title" => __("Purchase Pro Version", gallery_bank))
|
210 |
+
);
|
211 |
+
break;
|
212 |
+
case "author":
|
213 |
+
$wp_admin_bar->add_menu(array(
|
214 |
+
"id" => "gallery_bank_links",
|
215 |
+
"title" => __("<img src=\"" . GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png\" width=\"25\"
|
216 |
+
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Gallery Bank"),
|
217 |
+
"href" => __(site_url() . "/wp-admin/admin.php?page=gallery_bank"),
|
218 |
+
));
|
219 |
+
|
220 |
+
$wp_admin_bar->add_menu(array(
|
221 |
+
"parent" => "gallery_bank_links",
|
222 |
+
"id" => "dashboard_links",
|
223 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
224 |
+
"title" => __("Dashboard", gallery_bank))
|
225 |
+
);
|
226 |
+
|
227 |
+
$wp_admin_bar->add_menu(array(
|
228 |
+
"parent" => "gallery_bank_links",
|
229 |
+
"id" => "shortcode_links",
|
230 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_shortcode",
|
231 |
+
"title" => __("Short-Codes", gallery_bank))
|
232 |
+
);
|
233 |
+
|
234 |
+
$wp_admin_bar->add_menu(array(
|
235 |
+
"parent" => "gallery_bank_links",
|
236 |
+
"id" => "sorting_links",
|
237 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_album_sorting",
|
238 |
+
"title" => __("Album Sorting", gallery_bank))
|
239 |
+
);
|
240 |
+
|
241 |
+
$wp_admin_bar->add_menu(array(
|
242 |
+
"parent" => "gallery_bank_links",
|
243 |
+
"id" => "global_settings_links",
|
244 |
+
"href" => site_url() . "/wp-admin/admin.php?page=global_settings",
|
245 |
+
"title" => __("Global Settings", gallery_bank))
|
246 |
+
);
|
247 |
+
|
248 |
+
$wp_admin_bar->add_menu(array(
|
249 |
+
"parent" => "gallery_bank_links",
|
250 |
+
"id" => "purchase_pro_version_links",
|
251 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_purchase",
|
252 |
+
"title" => __("Purchase Pro Version", gallery_bank))
|
253 |
+
);
|
254 |
+
break;
|
255 |
+
case "contributor":
|
256 |
+
$wp_admin_bar->add_menu(array(
|
257 |
+
"id" => "gallery_bank_links",
|
258 |
+
"title" => __("<img src=\"" . GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png\" width=\"25\"
|
259 |
+
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Gallery Bank"),
|
260 |
+
"href" => __(site_url() . "/wp-admin/admin.php?page=gallery_bank"),
|
261 |
+
));
|
262 |
+
|
263 |
+
$wp_admin_bar->add_menu(array(
|
264 |
+
"parent" => "gallery_bank_links",
|
265 |
+
"id" => "dashboard_links",
|
266 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
267 |
+
"title" => __("Dashboard", gallery_bank))
|
268 |
+
);
|
269 |
+
|
270 |
+
$wp_admin_bar->add_menu(array(
|
271 |
+
"parent" => "gallery_bank_links",
|
272 |
+
"id" => "shortcode_links",
|
273 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_shortcode",
|
274 |
+
"title" => __("Short-Codes", gallery_bank))
|
275 |
+
);
|
276 |
+
|
277 |
+
$wp_admin_bar->add_menu(array(
|
278 |
+
"parent" => "gallery_bank_links",
|
279 |
+
"id" => "sorting_links",
|
280 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_album_sorting",
|
281 |
+
"title" => __("Album Sorting", gallery_bank))
|
282 |
+
);
|
283 |
+
|
284 |
+
$wp_admin_bar->add_menu(array(
|
285 |
+
"parent" => "gallery_bank_links",
|
286 |
+
"id" => "global_settings_links",
|
287 |
+
"href" => site_url() . "/wp-admin/admin.php?page=global_settings",
|
288 |
+
"title" => __("Global Settings", gallery_bank))
|
289 |
+
);
|
290 |
+
|
291 |
+
$wp_admin_bar->add_menu(array(
|
292 |
+
"parent" => "gallery_bank_links",
|
293 |
+
"id" => "purchase_pro_version_links",
|
294 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_purchase",
|
295 |
+
"title" => __("Purchase Pro Version", gallery_bank))
|
296 |
+
);
|
297 |
+
break;
|
298 |
+
}
|
299 |
}
|
300 |
|
301 |
|
lib/gallery-bank-class.php
CHANGED
@@ -5,18 +5,62 @@
|
|
5 |
|
6 |
function create_global_menus_for_gallery_bank()
|
7 |
{
|
8 |
-
global $wpdb;
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
//--------------------------------------------------------------------------------------------------------------//
|
22 |
// FUNCTIONS FOR REPLACING TABLE NAMES
|
5 |
|
6 |
function create_global_menus_for_gallery_bank()
|
7 |
{
|
8 |
+
global $wpdb,$current_user;
|
9 |
+
|
10 |
+
$role = $wpdb->prefix . "capabilities";
|
11 |
+
$current_user->role = array_keys($current_user->$role);
|
12 |
+
$role = $current_user->role[0];
|
13 |
+
|
14 |
+
switch ($role) {
|
15 |
+
case "administrator":
|
16 |
+
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png");
|
17 |
+
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
18 |
+
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
19 |
+
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
20 |
+
add_submenu_page("gallery_bank", "Gallery Bank", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
|
21 |
+
add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
|
22 |
+
add_submenu_page("gallery_bank", "Purchase Pro Version", __("Purchase Pro Version", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
|
23 |
+
add_submenu_page("", "", "", "read", "view_album", "view_album");
|
24 |
+
add_submenu_page("", "", "", "read", "album_preview", "album_preview");
|
25 |
+
add_submenu_page("", "", "", "read", "save_album", "save_album");
|
26 |
+
add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
|
27 |
+
break;
|
28 |
+
case "editor":
|
29 |
+
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png");
|
30 |
+
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
31 |
+
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
32 |
+
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
33 |
+
add_submenu_page("gallery_bank", "Gallery Bank", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
|
34 |
+
add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
|
35 |
+
add_submenu_page("gallery_bank", "Purchase Pro Version", __("Purchase Pro Version", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
|
36 |
+
add_submenu_page("", "", "", "read", "view_album", "view_album");
|
37 |
+
add_submenu_page("", "", "", "read", "album_preview", "album_preview");
|
38 |
+
add_submenu_page("", "", "", "read", "save_album", "save_album");
|
39 |
+
add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
|
40 |
+
break;
|
41 |
+
case "author":
|
42 |
+
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png");
|
43 |
+
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
44 |
+
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
45 |
+
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
46 |
+
add_submenu_page("gallery_bank", "Gallery Bank", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
|
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", "images_sorting", "images_sorting");
|
51 |
+
break;
|
52 |
+
case "contributor":
|
53 |
+
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", GALLERY_BK_PLUGIN_URL . "/assets/images/icon.png");
|
54 |
+
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
55 |
+
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
56 |
+
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
57 |
+
add_submenu_page("gallery_bank", "Gallery Bank", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
|
58 |
+
add_submenu_page("gallery_bank", "Purchase Pro Version", __("Purchase Pro Version", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
|
59 |
+
add_submenu_page("", "", "", "read", "view_album", "view_album");
|
60 |
+
add_submenu_page("", "", "", "read", "album_preview", "album_preview");
|
61 |
+
add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
|
62 |
+
break;
|
63 |
+
}
|
64 |
}
|
65 |
//--------------------------------------------------------------------------------------------------------------//
|
66 |
// FUNCTIONS FOR REPLACING TABLE NAMES
|
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.
|
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 |
-
***June
|
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.39 =
|
486 |
|
487 |
* Russian 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.40
|
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 |
+
***June 23, 2014: We're happy to announce that Gallery Bank reached 144,050+ plugin downloads in only 12 months. 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.40 =
|
486 |
+
|
487 |
+
* Bug Fixed with Menu Links shown to Subscriber and other roles.
|
488 |
+
|
489 |
= 3.0.39 =
|
490 |
|
491 |
* Russian Language Updated
|
views/dashboard.php
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb;
|
|
|
|
|
|
|
|
|
3 |
$last_album_id = $wpdb->get_var
|
4 |
(
|
5 |
"SELECT album_id FROM " .gallery_bank_albums(). " order by album_id desc limit 1"
|
@@ -174,11 +178,23 @@
|
|
174 |
(
|
175 |
"SELECT count(album_id) FROM ".gallery_bank_albums()
|
176 |
);
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
}
|
183 |
?>
|
184 |
<a class="btn btn-danger" href="#" onclick="delete_all_albums();"><?php _e("Delete All Albums", gallery_bank);?></a>
|
@@ -227,33 +243,134 @@
|
|
227 |
?>
|
228 |
<tr>
|
229 |
<td>
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
?>
|
238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
<?php
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
<?php
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
?>
|
255 |
-
|
256 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
</td>
|
258 |
<td><?php echo stripcslashes(htmlspecialchars_decode($album[$flag] -> album_name));?></td>
|
259 |
<td><?php echo $count_pic;?></td>
|
@@ -263,11 +380,28 @@
|
|
263 |
</td>
|
264 |
<td>
|
265 |
<ul class="layout-table-controls">
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
<li>
|
272 |
<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 ); ?>">
|
273 |
<i class="icon-th"></i>
|
@@ -278,11 +412,28 @@
|
|
278 |
<i class="icon-eye-open"></i>
|
279 |
</a>
|
280 |
</li>
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
</ul>
|
287 |
</td>
|
288 |
</tr>
|
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"
|
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>
|
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>
|
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>
|
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>
|
views/edit-album.php
CHANGED
@@ -52,6 +52,17 @@ if($album_count < 3)
|
|
52 |
);
|
53 |
}
|
54 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
$pics = $wpdb->get_results
|
56 |
(
|
57 |
$wpdb->prepare
|
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
|
views/header.php
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
<?php
|
2 |
-
global $wpdb;
|
|
|
|
|
|
|
|
|
3 |
$gb_lang = array();
|
4 |
$gb_translated_lang = array();
|
5 |
array_push($gb_lang, "ar", "bg_BG", "da_DK", "hu_HU", "id_ID",
|
@@ -72,15 +76,58 @@ switch($_REQUEST["page"])
|
|
72 |
<a href="#"><?php _e($page, gallery_bank); ?></a>
|
73 |
</li>
|
74 |
</ul>
|
75 |
-
|
76 |
-
<a class="nav-tab " id="gallery_bank" href="admin.php?page=gallery_bank">Dashboard</a>
|
77 |
-
<a class="nav-tab " id="gallery_bank_shortcode" href="admin.php?page=gallery_bank_shortcode"><?php _e("Short-Codes", gallery_bank);?></a>
|
78 |
-
<a class="nav-tab " id="gallery_album_sorting" href="admin.php?page=gallery_album_sorting"><?php _e("Album Sorting", gallery_bank);?></a>
|
79 |
-
<a class="nav-tab " id="global_settings" href="admin.php?page=global_settings"><?php _e("Global Settings", gallery_bank);?></a>
|
80 |
-
<a class="nav-tab " id="gallery_bank_system_status" href="admin.php?page=gallery_bank_system_status"><?php _e("System Status", gallery_bank);?></a>
|
81 |
-
<a class="nav-tab " id="gallery_bank_purchase" href="admin.php?page=gallery_bank_purchase"><?php _e("Purchase Pro Version", gallery_bank);?></a>
|
82 |
-
</h2>
|
83 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
if(in_array($language, $gb_lang))
|
85 |
{
|
86 |
?>
|
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 |
$gb_lang = array();
|
8 |
$gb_translated_lang = array();
|
9 |
array_push($gb_lang, "ar", "bg_BG", "da_DK", "hu_HU", "id_ID",
|
76 |
<a href="#"><?php _e($page, gallery_bank); ?></a>
|
77 |
</li>
|
78 |
</ul>
|
79 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
<?php
|
81 |
+
switch ($role)
|
82 |
+
{
|
83 |
+
case "administrator":
|
84 |
+
?>
|
85 |
+
<h2 class="nav-tab-wrapper">
|
86 |
+
<a class="nav-tab " id="gallery_bank" href="admin.php?page=gallery_bank">Dashboard</a>
|
87 |
+
<a class="nav-tab " id="gallery_bank_shortcode" href="admin.php?page=gallery_bank_shortcode"><?php _e("Short-Codes", gallery_bank);?></a>
|
88 |
+
<a class="nav-tab " id="gallery_album_sorting" href="admin.php?page=gallery_album_sorting"><?php _e("Album Sorting", gallery_bank);?></a>
|
89 |
+
<a class="nav-tab " id="global_settings" href="admin.php?page=global_settings"><?php _e("Global Settings", gallery_bank);?></a>
|
90 |
+
<a class="nav-tab " id="gallery_bank_system_status" href="admin.php?page=gallery_bank_system_status"><?php _e("System Status", gallery_bank);?></a>
|
91 |
+
<a class="nav-tab " id="gallery_bank_purchase" href="admin.php?page=gallery_bank_purchase"><?php _e("Purchase Pro Version", gallery_bank);?></a>
|
92 |
+
</h2>
|
93 |
+
<?php
|
94 |
+
break;
|
95 |
+
case "editor":
|
96 |
+
?>
|
97 |
+
<h2 class="nav-tab-wrapper">
|
98 |
+
<a class="nav-tab " id="gallery_bank" href="admin.php?page=gallery_bank">Dashboard</a>
|
99 |
+
<a class="nav-tab " id="gallery_bank_shortcode" href="admin.php?page=gallery_bank_shortcode"><?php _e("Short-Codes", gallery_bank);?></a>
|
100 |
+
<a class="nav-tab " id="gallery_album_sorting" href="admin.php?page=gallery_album_sorting"><?php _e("Album Sorting", gallery_bank);?></a>
|
101 |
+
<a class="nav-tab " id="global_settings" href="admin.php?page=global_settings"><?php _e("Global Settings", gallery_bank);?></a>
|
102 |
+
<a class="nav-tab " id="gallery_bank_system_status" href="admin.php?page=gallery_bank_system_status"><?php _e("System Status", gallery_bank);?></a>
|
103 |
+
<a class="nav-tab " id="gallery_bank_purchase" href="admin.php?page=gallery_bank_purchase"><?php _e("Purchase Pro Version", gallery_bank);?></a>
|
104 |
+
</h2>
|
105 |
+
<?php
|
106 |
+
break;
|
107 |
+
case "author":
|
108 |
+
?>
|
109 |
+
<h2 class="nav-tab-wrapper">
|
110 |
+
<a class="nav-tab " id="gallery_bank" href="admin.php?page=gallery_bank">Dashboard</a>
|
111 |
+
<a class="nav-tab " id="gallery_bank_shortcode" href="admin.php?page=gallery_bank_shortcode"><?php _e("Short-Codes", gallery_bank);?></a>
|
112 |
+
<a class="nav-tab " id="gallery_album_sorting" href="admin.php?page=gallery_album_sorting"><?php _e("Album Sorting", gallery_bank);?></a>
|
113 |
+
<a class="nav-tab " id="global_settings" href="admin.php?page=global_settings"><?php _e("Global Settings", gallery_bank);?></a>
|
114 |
+
<a class="nav-tab " id="gallery_bank_purchase" href="admin.php?page=gallery_bank_purchase"><?php _e("Purchase Pro Version", gallery_bank);?></a>
|
115 |
+
</h2>
|
116 |
+
<?php
|
117 |
+
break;
|
118 |
+
case "contributor":
|
119 |
+
?>
|
120 |
+
<h2 class="nav-tab-wrapper">
|
121 |
+
<a class="nav-tab " id="gallery_bank" href="admin.php?page=gallery_bank">Dashboard</a>
|
122 |
+
<a class="nav-tab " id="gallery_bank_shortcode" href="admin.php?page=gallery_bank_shortcode"><?php _e("Short-Codes", gallery_bank);?></a>
|
123 |
+
<a class="nav-tab " id="gallery_album_sorting" href="admin.php?page=gallery_album_sorting"><?php _e("Album Sorting", gallery_bank);?></a>
|
124 |
+
<a class="nav-tab " id="global_settings" href="admin.php?page=global_settings"><?php _e("Global Settings", gallery_bank);?></a>
|
125 |
+
<a class="nav-tab " id="gallery_bank_purchase" href="admin.php?page=gallery_bank_purchase"><?php _e("Purchase Pro Version", gallery_bank);?></a>
|
126 |
+
</h2>
|
127 |
+
<?php
|
128 |
+
break;
|
129 |
+
}
|
130 |
+
|
131 |
if(in_array($language, $gb_lang))
|
132 |
{
|
133 |
?>
|