Version Description
- Fixed Few Bugs
- Fixed Menus
- Implemented New Feature - Automatic Gallery Bank Plugin Update Enable/Disable.
Download this release
Release Info
Developer | Gallery-Bank |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 3.0.94 |
Comparing to | |
See all releases |
Code changes from version 3.0.93 to 3.0.94
- gallery-bank.php +61 -41
- lib/add-new-album-class.php +5 -0
- lib/gallery-bank-class.php +22 -4
- lib/install-script.php +6 -0
- readme.txt +7 -1
- views/automatic-plugin-update.php +61 -0
- views/dashboard.php +1 -1
- views/header.php +3 -0
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 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -76,6 +76,7 @@ function plugin_uninstall_script_for_gallery_bank()
|
|
76 |
{
|
77 |
delete_option("gallery-bank-info-popup");
|
78 |
delete_option("gallery-bank-banner");
|
|
|
79 |
}
|
80 |
/*************************************************************************************/
|
81 |
function gallery_bank_plugin_load_text_domain()
|
@@ -101,16 +102,6 @@ function add_gallery_bank_icon($meta = TRUE)
|
|
101 |
return;
|
102 |
}
|
103 |
|
104 |
-
$last_album_id = $wpdb->get_var
|
105 |
-
(
|
106 |
-
"SELECT album_id FROM " .gallery_bank_albums(). " order by album_id desc limit 1"
|
107 |
-
);
|
108 |
-
$id = count($last_album_id) == 0 ? 1 : $last_album_id + 1;
|
109 |
-
$album_count = $wpdb->get_var
|
110 |
-
(
|
111 |
-
"SELECT count(album_id) FROM ".gallery_bank_albums()
|
112 |
-
);
|
113 |
-
|
114 |
if(is_super_admin())
|
115 |
{
|
116 |
$gb_role = "administrator";
|
@@ -132,19 +123,16 @@ function add_gallery_bank_icon($meta = TRUE)
|
|
132 |
|
133 |
$wp_admin_bar->add_menu(array(
|
134 |
"parent" => "gallery_bank_links",
|
135 |
-
"id" => "
|
136 |
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
137 |
"title" => __("Dashboard", gallery_bank))
|
138 |
);
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
"title" => __("Add New Album", gallery_bank))
|
146 |
-
);
|
147 |
-
}
|
148 |
|
149 |
$wp_admin_bar->add_menu(array(
|
150 |
"parent" => "gallery_bank_links",
|
@@ -205,19 +193,16 @@ function add_gallery_bank_icon($meta = TRUE)
|
|
205 |
|
206 |
$wp_admin_bar->add_menu(array(
|
207 |
"parent" => "gallery_bank_links",
|
208 |
-
"id" => "
|
209 |
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
210 |
"title" => __("Dashboard", gallery_bank))
|
211 |
);
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
"title" => __("Add New Album", gallery_bank))
|
219 |
-
);
|
220 |
-
}
|
221 |
|
222 |
$wp_admin_bar->add_menu(array(
|
223 |
"parent" => "gallery_bank_links",
|
@@ -278,19 +263,16 @@ function add_gallery_bank_icon($meta = TRUE)
|
|
278 |
|
279 |
$wp_admin_bar->add_menu(array(
|
280 |
"parent" => "gallery_bank_links",
|
281 |
-
"id" => "
|
282 |
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
283 |
"title" => __("Dashboard", gallery_bank))
|
284 |
);
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
"title" => __("Add New Album", gallery_bank))
|
292 |
-
);
|
293 |
-
}
|
294 |
|
295 |
$wp_admin_bar->add_menu(array(
|
296 |
"parent" => "gallery_bank_links",
|
@@ -388,6 +370,44 @@ if(!function_exists("gallery_bank_plugin_update_message"))
|
|
388 |
}
|
389 |
}
|
390 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
add_filter("plugin_row_meta","gallery_bank_custom_plugin_row", 10, 2 );
|
392 |
add_action("plugins_loaded", "plugin_load_textdomain_for_tech_serices");
|
393 |
add_action("admin_bar_menu", "add_gallery_bank_icon", 100);
|
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.94
|
8 |
Author URI: http://tech-banker.com
|
9 |
*/
|
10 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
76 |
{
|
77 |
delete_option("gallery-bank-info-popup");
|
78 |
delete_option("gallery-bank-banner");
|
79 |
+
delete_option("gallery-bank-automatic_update");
|
80 |
}
|
81 |
/*************************************************************************************/
|
82 |
function gallery_bank_plugin_load_text_domain()
|
102 |
return;
|
103 |
}
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
if(is_super_admin())
|
106 |
{
|
107 |
$gb_role = "administrator";
|
123 |
|
124 |
$wp_admin_bar->add_menu(array(
|
125 |
"parent" => "gallery_bank_links",
|
126 |
+
"id" => "gallery_dashboard_links",
|
127 |
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
128 |
"title" => __("Dashboard", gallery_bank))
|
129 |
);
|
130 |
+
$wp_admin_bar->add_menu(array(
|
131 |
+
"parent" => "gallery_bank_links",
|
132 |
+
"id" => "gallery_auto_update_links",
|
133 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_auto_plugin_update",
|
134 |
+
"title" => __("Plugin Updates", gallery_bank))
|
135 |
+
);
|
|
|
|
|
|
|
136 |
|
137 |
$wp_admin_bar->add_menu(array(
|
138 |
"parent" => "gallery_bank_links",
|
193 |
|
194 |
$wp_admin_bar->add_menu(array(
|
195 |
"parent" => "gallery_bank_links",
|
196 |
+
"id" => "gallery_dashboard_links",
|
197 |
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
198 |
"title" => __("Dashboard", gallery_bank))
|
199 |
);
|
200 |
+
$wp_admin_bar->add_menu(array(
|
201 |
+
"parent" => "gallery_bank_links",
|
202 |
+
"id" => "gallery_auto_update_links",
|
203 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_auto_plugin_update",
|
204 |
+
"title" => __("Plugin Updates", gallery_bank))
|
205 |
+
);
|
|
|
|
|
|
|
206 |
|
207 |
$wp_admin_bar->add_menu(array(
|
208 |
"parent" => "gallery_bank_links",
|
263 |
|
264 |
$wp_admin_bar->add_menu(array(
|
265 |
"parent" => "gallery_bank_links",
|
266 |
+
"id" => "gallery_dashboard_links",
|
267 |
"href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
|
268 |
"title" => __("Dashboard", gallery_bank))
|
269 |
);
|
270 |
+
$wp_admin_bar->add_menu(array(
|
271 |
+
"parent" => "gallery_bank_links",
|
272 |
+
"id" => "gallery_auto_update_links",
|
273 |
+
"href" => site_url() . "/wp-admin/admin.php?page=gallery_auto_plugin_update",
|
274 |
+
"title" => __("Plugin Updates", gallery_bank))
|
275 |
+
);
|
|
|
|
|
|
|
276 |
|
277 |
$wp_admin_bar->add_menu(array(
|
278 |
"parent" => "gallery_bank_links",
|
370 |
}
|
371 |
}
|
372 |
|
373 |
+
//--------------------------------------------------------------------------------------------------------------//
|
374 |
+
// CODE FOR PLUGIN AUTOMATIC UPDATE
|
375 |
+
//--------------------------------------------------------------------------------------------------------------//
|
376 |
+
$is_option_auto_update = get_option("gallery-bank-automatic_update");
|
377 |
+
|
378 |
+
if($is_option_auto_update == "" || $is_option_auto_update == "1")
|
379 |
+
{
|
380 |
+
if (!wp_next_scheduled("gallery_bank_auto_update"))
|
381 |
+
{
|
382 |
+
wp_schedule_event(time(), "daily", "gallery_bank_auto_update");
|
383 |
+
}
|
384 |
+
add_action("gallery_bank_auto_update", "plugin_autoUpdate");
|
385 |
+
}
|
386 |
+
else
|
387 |
+
{
|
388 |
+
wp_clear_scheduled_hook("gallery_bank_auto_update");
|
389 |
+
}
|
390 |
+
function plugin_autoUpdate()
|
391 |
+
{
|
392 |
+
try
|
393 |
+
{
|
394 |
+
require_once(ABSPATH . "wp-admin/includes/class-wp-upgrader.php");
|
395 |
+
require_once(ABSPATH . "wp-admin/includes/misc.php");
|
396 |
+
define("FS_METHOD", "direct");
|
397 |
+
require_once(ABSPATH . "wp-includes/update.php");
|
398 |
+
require_once(ABSPATH . "wp-admin/includes/file.php");
|
399 |
+
wp_update_plugins();
|
400 |
+
ob_start();
|
401 |
+
$plugin_upgrader = new Plugin_Upgrader();
|
402 |
+
$plugin_upgrader->upgrade("gallery-bank/gallery-bank.php");
|
403 |
+
$output = @ob_get_contents();
|
404 |
+
@ob_end_clean();
|
405 |
+
}
|
406 |
+
catch(Exception $e)
|
407 |
+
{
|
408 |
+
}
|
409 |
+
}
|
410 |
+
|
411 |
add_filter("plugin_row_meta","gallery_bank_custom_plugin_row", 10, 2 );
|
412 |
add_action("plugins_loaded", "plugin_load_textdomain_for_tech_serices");
|
413 |
add_action("admin_bar_menu", "add_gallery_bank_icon", 100);
|
lib/add-new-album-class.php
CHANGED
@@ -199,6 +199,11 @@ else
|
|
199 |
);
|
200 |
die();
|
201 |
break;
|
|
|
|
|
|
|
|
|
|
|
202 |
}
|
203 |
}
|
204 |
}
|
199 |
);
|
200 |
die();
|
201 |
break;
|
202 |
+
case "gallery_plugin_updates":
|
203 |
+
$gallery_updates = intval($_REQUEST["gallery_updates"]);
|
204 |
+
update_option("gallery-bank-automatic_update", $gallery_updates);
|
205 |
+
die();
|
206 |
+
break;
|
207 |
}
|
208 |
}
|
209 |
}
|
lib/gallery-bank-class.php
CHANGED
@@ -20,9 +20,10 @@ function create_global_menus_for_gallery_bank()
|
|
20 |
case "administrator":
|
21 |
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
22 |
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
|
|
23 |
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
24 |
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
25 |
-
add_submenu_page("gallery_bank", "
|
26 |
add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
|
27 |
add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
|
28 |
add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
|
@@ -35,9 +36,10 @@ function create_global_menus_for_gallery_bank()
|
|
35 |
case "editor":
|
36 |
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
37 |
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
|
|
38 |
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
39 |
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
40 |
-
add_submenu_page("gallery_bank", "
|
41 |
add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
|
42 |
add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
|
43 |
add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
|
@@ -50,9 +52,10 @@ function create_global_menus_for_gallery_bank()
|
|
50 |
case "author":
|
51 |
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
52 |
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
|
|
53 |
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
54 |
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
55 |
-
add_submenu_page("gallery_bank", "
|
56 |
add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
|
57 |
add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
|
58 |
add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
|
@@ -288,7 +291,22 @@ function gallery_bank_other_services()
|
|
288 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/other-services.php";
|
289 |
}
|
290 |
|
291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
//--------------------------------------------------------------------------------------------------------------//
|
293 |
//CODE FOR CALLING JAVASCRIPT FUNCTIONS
|
294 |
//--------------------------------------------------------------------------------------------------------------//
|
20 |
case "administrator":
|
21 |
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
22 |
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
23 |
+
add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", gallery_bank), "read", "gallery_auto_plugin_update", "gallery_auto_plugin_update");
|
24 |
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
25 |
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
26 |
+
add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
|
27 |
add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
|
28 |
add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
|
29 |
add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
|
36 |
case "editor":
|
37 |
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
38 |
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
39 |
+
add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", gallery_bank), "read", "gallery_auto_plugin_update", "gallery_auto_plugin_update");
|
40 |
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
41 |
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
42 |
+
add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
|
43 |
add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
|
44 |
add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
|
45 |
add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
|
52 |
case "author":
|
53 |
add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
54 |
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
|
55 |
+
add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", gallery_bank), "read", "gallery_auto_plugin_update", "gallery_auto_plugin_update");
|
56 |
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
|
57 |
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
|
58 |
+
add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
|
59 |
add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
|
60 |
add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
|
61 |
add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
|
291 |
include_once GALLERY_BK_PLUGIN_DIR . "/views/other-services.php";
|
292 |
}
|
293 |
|
294 |
+
function gallery_auto_plugin_update()
|
295 |
+
{
|
296 |
+
global $wpdb,$current_user,$user_role_permission;
|
297 |
+
if(is_super_admin())
|
298 |
+
{
|
299 |
+
$gb_role = "administrator";
|
300 |
+
}
|
301 |
+
else
|
302 |
+
{
|
303 |
+
$gb_role = $wpdb->prefix . "capabilities";
|
304 |
+
$current_user->role = array_keys($current_user->$gb_role);
|
305 |
+
$gb_role = $current_user->role[0];
|
306 |
+
}
|
307 |
+
include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
|
308 |
+
include_once GALLERY_BK_PLUGIN_DIR . "/views/automatic-plugin-update.php";
|
309 |
+
}
|
310 |
//--------------------------------------------------------------------------------------------------------------//
|
311 |
//CODE FOR CALLING JAVASCRIPT FUNCTIONS
|
312 |
//--------------------------------------------------------------------------------------------------------------//
|
lib/install-script.php
CHANGED
@@ -303,4 +303,10 @@ else if($version == "3.0")
|
|
303 |
{
|
304 |
update_option("gallery-bank-pro-edition", "3.1");
|
305 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
?>
|
303 |
{
|
304 |
update_option("gallery-bank-pro-edition", "3.1");
|
305 |
}
|
306 |
+
|
307 |
+
$option_auto_update = get_option("gallery-bank-automatic_update");
|
308 |
+
if($option_auto_update == "")
|
309 |
+
{
|
310 |
+
update_option("gallery-bank-automatic_update", "1");
|
311 |
+
}
|
312 |
?>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank,contact-banker
|
|
3 |
Tags: add album, add gallery, add picture, add pictures, admin, AJAX, album, banner rotator, best gallery, best gallery plugin, best image slider, best portfolio, bilder, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery, gallery decription, gallery image, gallery lightbox, Gallery Plugin, gallery shortcode, gallery slider, gelary, gellary, gellery, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image gallery, image gallery plugin, image lightbox, image rotate, image slider, image slideshow, images, images gallery, jquery, jquery gallery, jquery slider, jquery slideshow, lightbox, links, media, media gallery, multiple pictures, nextgen gallery, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive gallery, responsive image gallery, responsive slider, responsive slideshow, responsive wordpress photo gallery, seo, seo image, shortcode, sidebar, Simple gallery, slide show, slideshow, thumbnail, twitter, upload images, upload photos, video gallery, view images, view pictures, website gallery, widget, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wordpress portfolio plugin, wordpress seo, wp gallery, wp gallery plugin, wp gallery plugins, wp slider
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.1
|
6 |
-
Stable tag: 3.0.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -487,6 +487,12 @@ is False in shortcode.
|
|
487 |
|
488 |
== Changelog ==
|
489 |
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
= 3.0.93 =
|
491 |
|
492 |
* Removed unwanted code
|
3 |
Tags: add album, add gallery, add picture, add pictures, admin, AJAX, album, banner rotator, best gallery, best gallery plugin, best image slider, best portfolio, bilder, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery, gallery decription, gallery image, gallery lightbox, Gallery Plugin, gallery shortcode, gallery slider, gelary, gellary, gellery, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image gallery, image gallery plugin, image lightbox, image rotate, image slider, image slideshow, images, images gallery, jquery, jquery gallery, jquery slider, jquery slideshow, lightbox, links, media, media gallery, multiple pictures, nextgen gallery, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive gallery, responsive image gallery, responsive slider, responsive slideshow, responsive wordpress photo gallery, seo, seo image, shortcode, sidebar, Simple gallery, slide show, slideshow, thumbnail, twitter, upload images, upload photos, video gallery, view images, view pictures, website gallery, widget, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wordpress portfolio plugin, wordpress seo, wp gallery, wp gallery plugin, wp gallery plugins, wp slider
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.1
|
6 |
+
Stable tag: 3.0.94
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
487 |
|
488 |
== Changelog ==
|
489 |
|
490 |
+
= 3.0.94 =
|
491 |
+
|
492 |
+
* Fixed Few Bugs
|
493 |
+
* Fixed Menus
|
494 |
+
* Implemented New Feature - Automatic Gallery Bank Plugin Update Enable/Disable.
|
495 |
+
|
496 |
= 3.0.93 =
|
497 |
|
498 |
* Removed unwanted code
|
views/automatic-plugin-update.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
switch($gb_role)
|
3 |
+
{
|
4 |
+
case "administrator":
|
5 |
+
$user_role_permission = "manage_options";
|
6 |
+
break;
|
7 |
+
case "editor":
|
8 |
+
$user_role_permission = "publish_pages";
|
9 |
+
break;
|
10 |
+
case "author":
|
11 |
+
$user_role_permission = "publish_posts";
|
12 |
+
break;
|
13 |
+
}
|
14 |
+
if (!current_user_can($user_role_permission))
|
15 |
+
{
|
16 |
+
return;
|
17 |
+
}
|
18 |
+
else
|
19 |
+
{
|
20 |
+
?>
|
21 |
+
<form id="frm_auto_update" class="layout-form">
|
22 |
+
<div id="poststuff" style="width: 99% !important;">
|
23 |
+
<div id="post-body" class="metabox-holder">
|
24 |
+
<div id="postbox-container-2" class="postbox-container">
|
25 |
+
<div id="advanced" class="meta-box-sortables">
|
26 |
+
<div id="gallery_bank_get_started" class="postbox" >
|
27 |
+
<h3 class="hndle"><span><?php _e("Plugin Updates", gallery_bank); ?></span></h3>
|
28 |
+
<div class="inside">
|
29 |
+
<div id="ux_dashboard" class="gallery_bank_layout">
|
30 |
+
<div class="layout-control-group" style="margin: 10px 0 0 0 ;">
|
31 |
+
<label class="layout-control-label"><?php _e("Plugin Updates", gallery_bank); ?> :</label>
|
32 |
+
<div class="layout-controls-radio">
|
33 |
+
<?php $gallery_updates = get_option("gallery-bank-automatic_update");?>
|
34 |
+
<input type="radio" name="ux_gallery_update" id="ux_enable_update" onclick="gallery_bank_autoupdate(this);" <?php echo $gallery_updates == "1" ? "checked=\"checked\"" : "";?> value="1"><label style="vertical-align: baseline;"><?php _e("Enable", gallery_bank); ?></label>
|
35 |
+
<input type="radio" name="ux_gallery_update" id="ux_disable_update" onclick="gallery_bank_autoupdate(this);" <?php echo $gallery_updates == "0" ? "checked=\"checked\"" : "";?> style="margin-left: 10px;" value="0"><label style="vertical-align: baseline;"><?php _e("Disable", gallery_bank); ?></label>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
<div class="layout-control-group" style="margin:10px 0 10px 0 ;">
|
39 |
+
<strong><i>This feature allows the plugin to update itself automatically when a new version is available on WordPress Repository.<br/>This allows to stay updated to the latest features. If you would like to disable automatic updates, choose the disable option above.</i></strong>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
</form>
|
49 |
+
<script type="text/javascript">
|
50 |
+
function gallery_bank_autoupdate(control)
|
51 |
+
{
|
52 |
+
var gallery_updates = jQuery(control).val();
|
53 |
+
jQuery.post(ajaxurl, "gallery_updates="+gallery_updates+"¶m=gallery_plugin_updates&action=add_new_album_library", function(data)
|
54 |
+
{
|
55 |
+
});
|
56 |
+
}
|
57 |
+
|
58 |
+
</script>
|
59 |
+
<?php
|
60 |
+
}
|
61 |
+
?>
|
views/dashboard.php
CHANGED
@@ -115,7 +115,7 @@
|
|
115 |
<div id="advanced" class="meta-box-sortables">
|
116 |
<div id="gallery_bank_get_started" class="postbox" >
|
117 |
<div class="handlediv" data-target="#ux_shortcode" title="Click to toggle" data-toggle="collapse"><br></div>
|
118 |
-
<h3 class="hndle"><span><?php _e("Gallery Bank
|
119 |
<div class="inside">
|
120 |
<div id="ux_dashboard" class="gallery_bank_layout">
|
121 |
<?php
|
115 |
<div id="advanced" class="meta-box-sortables">
|
116 |
<div id="gallery_bank_get_started" class="postbox" >
|
117 |
<div class="handlediv" data-target="#ux_shortcode" title="Click to toggle" data-toggle="collapse"><br></div>
|
118 |
+
<h3 class="hndle"><span><?php _e("Gallery Bank Dashboard", gallery_bank); ?></span></h3>
|
119 |
<div class="inside">
|
120 |
<div id="ux_dashboard" class="gallery_bank_layout">
|
121 |
<?php
|
views/header.php
CHANGED
@@ -133,6 +133,9 @@ switch($_REQUEST["page"])
|
|
133 |
case "gallery_bank_other_services":
|
134 |
$page = "Our Other Services";
|
135 |
break;
|
|
|
|
|
|
|
136 |
}
|
137 |
?>
|
138 |
<ul class="breadcrumb" style="margin-top: 10px;">
|
133 |
case "gallery_bank_other_services":
|
134 |
$page = "Our Other Services";
|
135 |
break;
|
136 |
+
case "gallery_auto_plugin_update":
|
137 |
+
$page = "Plugin Updates";
|
138 |
+
break;
|
139 |
}
|
140 |
?>
|
141 |
<ul class="breadcrumb" style="margin-top: 10px;">
|