Gallery Bank: WordPress Photo Gallery Plugin - Version 3.0.83

Version Description

  • Added Update Message for New Versions.
Download this release

Release Info

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

Code changes from version 3.0.82 to 3.0.83

Files changed (3) hide show
  1. assets/css/stylesheet.css +8 -54
  2. gallery-bank.php +29 -2
  3. readme.txt +5 -1
assets/css/stylesheet.css CHANGED
@@ -1,60 +1,14 @@
1
- .gb_text_control
2
  {
3
- color: #FFF;
4
- font-size: 15px;
5
- line-height: 26px;
6
- margin-top: 8px;
7
- float: left;
8
- width: auto;
9
- margin-left: 10px;
10
  }
11
- .gb_buy_pro
12
  {
13
- cursor:pointer;
14
- min-width: 800px;
15
- border: 1px solid #1b6394;
16
- padding: 5px;
17
- margin: 12px 0;
18
- background: #AE3A3A;
19
- position: relative;
20
- overflow: hidden;
21
- }
22
- .gb_text_control span {
23
- font-size: 13px;
24
- opacity: 0.8;
25
-
26
- }
27
- .gb_buy_pro .gb_message_buttons
28
- {
29
- float: right;
30
- border: 1px solid #FF6D1E;
31
- font-size: 13px;
32
- margin: 12px;
33
- padding: 4px 0;
34
- color: #FFF;
35
- text-shadow: 0 1px 3px #FF6D1E;
36
- font-weight: bold;
37
- background: #FF6D1E;
38
- -moz-border-radius: 3px;
39
- border-radius: 3px;
40
- -webkit-border-radius: 3px;
41
- text-decoration: none;
42
- height: 35px;
43
- text-align: center;
44
- width: 110px;
45
- -moz-box-shadow: 0px 1px 1px 0 #FF6D1E inset;
46
- -webkit-box-shadow: 0px 1px 1px 0 #FF6D1E inset;
47
- box-shadow: 0px 1px 1px 0 #FF6D1E inset;
48
-
49
- }
50
- .gb_buy_pro .gb_message_buttons:hover, .gb_buy_pro .gb_message_buttons:focus
51
- {
52
- background: #FF6D1E;
53
- color: #FFF;
54
- border: 1px solid #FF6D1E;
55
- -moz-box-shadow: 0px 1px 1px 0 #FF6D1E inset;
56
- -webkit-box-shadow: 0px 1px 1px 0 #FF6D1E inset;
57
- box-shadow: 0px 1px 1px 0 #FF6D1E inset;
58
  }
59
  .widget_premium_feature
60
  {
1
+ .gallery_plugin_message
2
  {
3
+ font-weight: 400;
4
+ background: #d54d21;
5
+ padding: 1em;
6
+ margin: 10px 0;
 
 
 
7
  }
8
+ .gallery_plugin_message > p
9
  {
10
+ color: #fff;
11
+ margin: 0px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  }
13
  .widget_premium_feature
14
  {
gallery-bank.php CHANGED
@@ -4,13 +4,13 @@
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.82
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
11
  // Define Constants ///////////////////////////////////////////////////////////////////////////////////////////
12
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
13
-
14
  if (!defined("GALLERY_MAIN_DIR")) define("GALLERY_MAIN_DIR", dirname(dirname(dirname(__FILE__)))."/gallery-bank");
15
  if (!defined("GALLERY_MAIN_UPLOAD_DIR")) define("GALLERY_MAIN_UPLOAD_DIR", dirname(dirname(dirname(__FILE__)))."/gallery-bank/gallery-uploads/");
16
  if (!defined("GALLERY_MAIN_THUMB_DIR")) define("GALLERY_MAIN_THUMB_DIR", dirname(dirname(dirname(__FILE__)))."/gallery-bank/thumbs/");
@@ -361,11 +361,38 @@ if($version == "" || $version == "3.0")
361
  {
362
  add_action("admin_init", "plugin_install_script_for_gallery_bank");
363
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
 
365
  add_filter("plugin_row_meta","gallery_bank_custom_plugin_row", 10, 2 );
366
  add_action("plugins_loaded", "plugin_load_textdomain_for_tech_serices");
367
  add_action("admin_bar_menu", "add_gallery_bank_icon", 100);
368
  add_action("plugins_loaded", "gallery_bank_plugin_load_text_domain");
 
369
  register_activation_hook(__FILE__, "plugin_install_script_for_gallery_bank");
370
  register_uninstall_hook(__FILE__, "plugin_uninstall_script_for_gallery_bank");
371
  /*************************************************************************************/
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.83
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
11
  // Define Constants ///////////////////////////////////////////////////////////////////////////////////////////
12
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
13
+ if (!defined("GALLERY_FILE")) define("GALLERY_FILE","gallery-bank/gallery-bank.php");
14
  if (!defined("GALLERY_MAIN_DIR")) define("GALLERY_MAIN_DIR", dirname(dirname(dirname(__FILE__)))."/gallery-bank");
15
  if (!defined("GALLERY_MAIN_UPLOAD_DIR")) define("GALLERY_MAIN_UPLOAD_DIR", dirname(dirname(dirname(__FILE__)))."/gallery-bank/gallery-uploads/");
16
  if (!defined("GALLERY_MAIN_THUMB_DIR")) define("GALLERY_MAIN_THUMB_DIR", dirname(dirname(dirname(__FILE__)))."/gallery-bank/thumbs/");
361
  {
362
  add_action("admin_init", "plugin_install_script_for_gallery_bank");
363
  }
364
+ //--------------------------------------------------------------------------------------------------------------//
365
+ // CODE FOR PLUGIN UPDATE MESSAGE
366
+ //--------------------------------------------------------------------------------------------------------------//
367
+ if(!function_exists("gallery_bank_plugin_update_message"))
368
+ {
369
+ function gallery_bank_plugin_update_message($args)
370
+ {
371
+ $response = wp_remote_get( 'https://plugins.svn.wordpress.org/gallery-bank/trunk/readme.txt' );
372
+ if ( ! is_wp_error( $response ) && ! empty( $response['body'] ) )
373
+ {
374
+ // Output Upgrade Notice
375
+ $matches = null;
376
+ $regexp = '~==\s*Changelog\s*==\s*=\s*[0-9.]+\s*=(.*)(=\s*' . preg_quote($args['Version']) . '\s*=|$)~Uis';
377
+ $upgrade_notice = '';
378
+ if ( preg_match( $regexp, $response['body'], $matches ) ) {
379
+ $changelog = (array) preg_split('~[\r\n]+~', trim($matches[1]));
380
+ $upgrade_notice .= '<div class="gallery_plugin_message">';
381
+ foreach ( $changelog as $index => $line ) {
382
+ $upgrade_notice .= "<p>".$line."</p>";
383
+ }
384
+ $upgrade_notice .= '</div> ';
385
+ echo $upgrade_notice;
386
+ }
387
+ }
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);
394
  add_action("plugins_loaded", "gallery_bank_plugin_load_text_domain");
395
+ add_action("in_plugin_update_message-".GALLERY_FILE,"gallery_bank_plugin_update_message" );
396
  register_activation_hook(__FILE__, "plugin_install_script_for_gallery_bank");
397
  register_uninstall_hook(__FILE__, "plugin_uninstall_script_for_gallery_bank");
398
  /*************************************************************************************/
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, best gallery, best gallery plugin, best image slider, best portfolio, bilder, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, foto, fotoalbum, galary, galerie, galerij, galery, gallary, Galleria, gallerie, gallery, gallery decription, gallery image, gallery lightbox, Gallery Plugin, 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, jquery, jquery gallery, jquery slider, jquery slideshow, lightbox, links, 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, seo, seo image, shortcode, sidebar, slide show, slideshow, thumbnail, twitter, upload images, upload photos, view images, view pictures, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wordpress seo, wp gallery, wp gallery plugin, wp slider
4
  Requires at least: 3.3
5
  Tested up to: 4.0.1
6
- Stable tag: 3.0.82
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -487,6 +487,10 @@ is False in shortcode.
487
 
488
  == Changelog ==
489
 
 
 
 
 
490
  = 3.0.82 =
491
 
492
  * Major Bug Fixed Related to Multisite Wordpress.
3
  Tags: add album, add gallery, add picture, add pictures, admin, AJAX, album, best gallery, best gallery plugin, best image slider, best portfolio, bilder, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, foto, fotoalbum, galary, galerie, galerij, galery, gallary, Galleria, gallerie, gallery, gallery decription, gallery image, gallery lightbox, Gallery Plugin, 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, jquery, jquery gallery, jquery slider, jquery slideshow, lightbox, links, 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, seo, seo image, shortcode, sidebar, slide show, slideshow, thumbnail, twitter, upload images, upload photos, view images, view pictures, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wordpress seo, wp gallery, wp gallery plugin, wp slider
4
  Requires at least: 3.3
5
  Tested up to: 4.0.1
6
+ Stable tag: 3.0.83
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.83 =
491
+
492
+ * Added Update Message for New Versions.
493
+
494
  = 3.0.82 =
495
 
496
  * Major Bug Fixed Related to Multisite Wordpress.