Gallery by BestWebSoft - Version 4.2.8

Version Description

  • 12.02.2015 =
  • Bugfix : Bug with theme permissions was fixed.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Gallery by BestWebSoft
Version 4.2.8
Comparing to
See all releases

Code changes from version 4.2.7 to 4.2.8

bws_menu/bws_menu.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Function for displaying BestWebSoft menu
4
- * Version: 1.4.3
5
  */
6
 
7
  if ( ! function_exists( 'bws_add_menu_render' ) ) {
@@ -346,6 +346,22 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
346
  'download' => 'http://bestwebsoft.com/products/featured-posts/download/?k=f0afb31185ba7c7d6d598528d69f6d97&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
347
  'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Featured+Posts+BestWebSoft&plugin-search-input=Search+Plugins',
348
  'settings' => 'admin.php?page=featured-posts.php'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
349
  )
350
  );
351
 
1
  <?php
2
  /*
3
  * Function for displaying BestWebSoft menu
4
+ * Version: 1.4.4
5
  */
6
 
7
  if ( ! function_exists( 'bws_add_menu_render' ) ) {
346
  'download' => 'http://bestwebsoft.com/products/featured-posts/download/?k=f0afb31185ba7c7d6d598528d69f6d97&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
347
  'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Featured+Posts+BestWebSoft&plugin-search-input=Search+Plugins',
348
  'settings' => 'admin.php?page=featured-posts.php'
349
+ ),
350
+ 'gallery-categories/gallery-categories.php' => array(
351
+ 'name' => 'Gallery Categories',
352
+ 'description' => 'Add-on for Gallery Plugin by BestWebSoft',
353
+ 'link' => 'http://bestwebsoft.com/products/gallery-categories/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
354
+ 'download' => 'http://bestwebsoft.com/products/gallery-categories/download/?k=7d68c7bfec2486dc350c67fff57ad433&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
355
+ 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Gallery+Categories+BestWebSoft&plugin-search-input=Search+Plugins',
356
+ 'settings' => ''
357
+ ),
358
+ 're-attacher/re-attacher.php' => array(
359
+ 'name' => 'Re-attacher',
360
+ 'description' => 'This plugin allows to attach, unattach or reattach media item in different post.',
361
+ 'link' => 'http://bestwebsoft.com/products/re-attacher/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
362
+ 'download' => 'http://bestwebsoft.com/products/re-attacher/download/?k=4d529f116d2b7f7df3a78018c383f975&pn=' . $bws_plugin_info["id"] . '&v=' . $bws_plugin_info["version"] . '&wp_v=' . $wp_version,
363
+ 'wp_install' => $admin_url . 'plugin-install.php?tab=search&type=term&s=Re-attacher+BestWebSoft&plugin-search-input=Search+Plugins',
364
+ 'settings' => 'admin.php?page=re-attacher.php'
365
  )
366
  );
367
 
bws_menu/icons/gallery-categories.png ADDED
Binary file
bws_menu/icons/re-attacher.png ADDED
Binary file
css/frontend_style.css CHANGED
@@ -45,14 +45,14 @@ ul.gallery {
45
  .gallery .gllr_image_block {
46
  float: left;
47
  }
48
- .gallery .gllr_image_block a img {
49
  border: 10px solid #F1F1F1;
50
  margin-top: 0;
51
  box-sizing: content-box;
52
  -moz-box-sizing: content-box; /*Firefox 1-3*/
53
  -webkit-box-sizing: content-box; /* Safari */
54
  }
55
- .gallery_box_single .gallery .gllr_image_block p {
56
  border: 1px solid #BDBDBD;
57
  margin: 5px 6px 0 0;
58
  padding: 0;
45
  .gallery .gllr_image_block {
46
  float: left;
47
  }
48
+ #content .gallery .gllr_image_block a img {
49
  border: 10px solid #F1F1F1;
50
  margin-top: 0;
51
  box-sizing: content-box;
52
  -moz-box-sizing: content-box; /*Firefox 1-3*/
53
  -webkit-box-sizing: content-box; /* Safari */
54
  }
55
+ #content .gallery_box_single .gallery .gllr_image_block p {
56
  border: 1px solid #BDBDBD;
57
  margin: 5px 6px 0 0;
58
  padding: 0;
gallery-plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Gallery
4
  Plugin URI: http://bestwebsoft.com/products/
5
  Description: This plugin allows you to implement gallery page into web site.
6
  Author: BestWebSoft
7
- Version: 4.2.7
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -188,7 +188,6 @@ if ( ! function_exists ( 'gllr_version_check' ) ) {
188
  if ( ! function_exists( 'gllr_plugin_install' ) ) {
189
  function gllr_plugin_install() {
190
  global $gllr_filenames, $gllr_filepath, $gllr_themepath;
191
- @chmod( $gllr_themepath, octdec( 755 ) );
192
  foreach ( $gllr_filenames as $filename ) {
193
  if ( ! file_exists( $gllr_themepath . $filename ) ) {
194
  $handle = @fopen( $gllr_filepath . $filename, "r" );
@@ -218,7 +217,6 @@ if ( ! function_exists( 'gllr_plugin_install' ) ) {
218
  @chmod( $gllr_themepath . $filename, octdec( 755 ) );
219
  }
220
  }
221
- @chmod( $gllr_themepath, octdec( 644 ) );
222
  }
223
  }
224
 
@@ -909,9 +907,13 @@ if ( ! function_exists( 'gllr_settings_page' ) ) {
909
 
910
  /* activate Pro */
911
  if ( file_exists( WP_PLUGIN_DIR . '/' . $zip_name[0] ) ) {
912
- $active_plugins = get_option( 'active_plugins' );
913
- array_push( $active_plugins, $bws_license_plugin );
914
- update_option( 'active_plugins', $active_plugins );
 
 
 
 
915
  $pro_plugin_is_activated = true;
916
  } elseif ( '' == $error ) {
917
  $error = __( "Failed to download the zip archive. Please, upload the plugin manually", 'gallery' );
@@ -924,12 +926,13 @@ if ( ! function_exists( 'gllr_settings_page' ) ) {
924
  }
925
  } else {
926
  /* activate Pro */
927
- if ( ! in_array( $bws_license_plugin, $active_plugins ) ) {
928
- $active_plugins = get_option( 'active_plugins' );
929
- array_push( $active_plugins, $bws_license_plugin );
930
- update_option( 'active_plugins', $active_plugins );
931
- $pro_plugin_is_activated = true;
932
- }
 
933
  }
934
  if ( is_multisite() )
935
  update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
@@ -1301,7 +1304,8 @@ if ( ! function_exists( 'gllr_register_plugin_links' ) ) {
1301
  function gllr_register_plugin_links( $links, $file ) {
1302
  $base = plugin_basename( __FILE__ );
1303
  if ( $file == $base ) {
1304
- $links[] = '<a href="admin.php?page=gallery-plugin.php">' . __( 'Settings', 'gallery' ) . '</a>';
 
1305
  $links[] = '<a href="http://wordpress.org/plugins/gallery-plugin/faq/" target="_blank">' . __( 'FAQ', 'gallery' ) . '</a>';
1306
  $links[] = '<a href="http://support.bestwebsoft.com">' . __( 'Support', 'gallery' ) . '</a>';
1307
  }
@@ -1311,14 +1315,16 @@ if ( ! function_exists( 'gllr_register_plugin_links' ) ) {
1311
 
1312
  if ( ! function_exists( 'gllr_plugin_action_links' ) ) {
1313
  function gllr_plugin_action_links( $links, $file ) {
1314
- /* Static so we don't call plugin_basename on every plugin row. */
1315
- static $this_plugin;
1316
- if ( ! $this_plugin )
1317
- $this_plugin = plugin_basename( __FILE__ );
1318
-
1319
- if ( $file == $this_plugin ) {
1320
- $settings_link = '<a href="admin.php?page=gallery-plugin.php">' . __( 'Settings', 'gallery' ) . '</a>';
1321
- array_unshift( $links, $settings_link );
 
 
1322
  }
1323
  return $links;
1324
  }
4
  Plugin URI: http://bestwebsoft.com/products/
5
  Description: This plugin allows you to implement gallery page into web site.
6
  Author: BestWebSoft
7
+ Version: 4.2.8
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
188
  if ( ! function_exists( 'gllr_plugin_install' ) ) {
189
  function gllr_plugin_install() {
190
  global $gllr_filenames, $gllr_filepath, $gllr_themepath;
 
191
  foreach ( $gllr_filenames as $filename ) {
192
  if ( ! file_exists( $gllr_themepath . $filename ) ) {
193
  $handle = @fopen( $gllr_filepath . $filename, "r" );
217
  @chmod( $gllr_themepath . $filename, octdec( 755 ) );
218
  }
219
  }
 
220
  }
221
  }
222
 
907
 
908
  /* activate Pro */
909
  if ( file_exists( WP_PLUGIN_DIR . '/' . $zip_name[0] ) ) {
910
+ /* activate Pro */
911
+ $network_wide = false;
912
+ if ( is_multisite() ) {
913
+ if ( is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
914
+ $network_wide = true;
915
+ }
916
+ activate_plugin( $bws_license_plugin, NULL, $network_wide );
917
  $pro_plugin_is_activated = true;
918
  } elseif ( '' == $error ) {
919
  $error = __( "Failed to download the zip archive. Please, upload the plugin manually", 'gallery' );
926
  }
927
  } else {
928
  /* activate Pro */
929
+ $network_wide = false;
930
+ if ( is_multisite() ) {
931
+ if ( is_plugin_active_for_network( plugin_basename( __FILE__ ) ) )
932
+ $network_wide = true;
933
+ }
934
+ activate_plugin( $bws_license_plugin, NULL, $network_wide );
935
+ $pro_plugin_is_activated = true;
936
  }
937
  if ( is_multisite() )
938
  update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options, '', 'yes' );
1304
  function gllr_register_plugin_links( $links, $file ) {
1305
  $base = plugin_basename( __FILE__ );
1306
  if ( $file == $base ) {
1307
+ if ( ! is_network_admin() )
1308
+ $links[] = '<a href="admin.php?page=gallery-plugin.php">' . __( 'Settings', 'gallery' ) . '</a>';
1309
  $links[] = '<a href="http://wordpress.org/plugins/gallery-plugin/faq/" target="_blank">' . __( 'FAQ', 'gallery' ) . '</a>';
1310
  $links[] = '<a href="http://support.bestwebsoft.com">' . __( 'Support', 'gallery' ) . '</a>';
1311
  }
1315
 
1316
  if ( ! function_exists( 'gllr_plugin_action_links' ) ) {
1317
  function gllr_plugin_action_links( $links, $file ) {
1318
+ if ( ! is_network_admin() ) {
1319
+ /* Static so we don't call plugin_basename on every plugin row. */
1320
+ static $this_plugin;
1321
+ if ( ! $this_plugin )
1322
+ $this_plugin = plugin_basename( __FILE__ );
1323
+
1324
+ if ( $file == $this_plugin ) {
1325
+ $settings_link = '<a href="admin.php?page=gallery-plugin.php">' . __( 'Settings', 'gallery' ) . '</a>';
1326
+ array_unshift( $links, $settings_link );
1327
+ }
1328
  }
1329
  return $links;
1330
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=1&
4
  Tags: add album, add gallery, add picture, add pictures, album, foto, fotoalbum, gallery, galery, galary, gallary, gellery, gellary, gelary, gallerie, gallery decription, gallery image, image, multiple pictures, photo, photoalbum, photogallery, pictures, slide show, slideshow, upload images, upload photos, view images, view pictures, website gallery
5
  Requires at least: 3.2
6
  Tested up to: 4.1
7
- Stable tag: 4.2.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -45,6 +45,8 @@ http://www.youtube.com/watch?v=kzC11CMmwbI
45
 
46
  The author of the Gallery also recommends the following plugins:
47
 
 
 
48
  * <a href="http://wordpress.org/plugins/updater/">Updater</a> - This plugin updates WordPress core and the plugins to the recent versions. You can also use the auto mode or manual mode for updating and set email notifications.
49
  There is also a premium version of the plugin <a href="http://bestwebsoft.com/products/updater/?k=6ed3f1f40908b8eb7248953196a4753a">Updater Pro</a> with more useful features available. It can make backup of all your files and database before updating. Also it can forbid some plugins or WordPress Core update.
50
 
@@ -165,6 +167,9 @@ Please make sure that the problem hasn't been discussed yet on our forum (<a hre
165
 
166
  == Changelog ==
167
 
 
 
 
168
  = V4.2.7 - 09.02.2015 =
169
  * Update : Plugin functionality was updated for compatibility with Gallery Categories Plugin and Re-attacher Plugin.
170
  * Update : Gallery template checking functionality was updated.
@@ -460,6 +465,9 @@ Please make sure that the problem hasn't been discussed yet on our forum (<a hre
460
 
461
  == Upgrade Notice ==
462
 
 
 
 
463
  = V4.2.7 =
464
  Plugin functionality was updated for compatibility with Gallery Categories Plugin and Re-attacher Plugin. Gallery template checking functionality was updated.
465
 
4
  Tags: add album, add gallery, add picture, add pictures, album, foto, fotoalbum, gallery, galery, galary, gallary, gellery, gellary, gelary, gallerie, gallery decription, gallery image, image, multiple pictures, photo, photoalbum, photogallery, pictures, slide show, slideshow, upload images, upload photos, view images, view pictures, website gallery
5
  Requires at least: 3.2
6
  Tested up to: 4.1
7
+ Stable tag: 4.2.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
45
 
46
  The author of the Gallery also recommends the following plugins:
47
 
48
+ * <a href="http://wordpress.org/plugins/gallery-categories/">Gallery Categories</a> - This plugin is an exclusive add-on to the Gallery Plugin. It allows creating different categories of galleries on your site. This way, you could organize the galleries on your website, which makes navigating through your content a whole lot easier.
49
+ * <a href="http://wordpress.org/plugins/re-attacher/">Re-attacher</a> - With this plugin, you can reattach previously uploaded images to other posts, as well as detach files from the post completely. This plugin makes using our Gallery and Portfolio plugins a lot more convenient, as you won’t have to upload new images each time you may need them on your gallery or portfolio pages.
50
  * <a href="http://wordpress.org/plugins/updater/">Updater</a> - This plugin updates WordPress core and the plugins to the recent versions. You can also use the auto mode or manual mode for updating and set email notifications.
51
  There is also a premium version of the plugin <a href="http://bestwebsoft.com/products/updater/?k=6ed3f1f40908b8eb7248953196a4753a">Updater Pro</a> with more useful features available. It can make backup of all your files and database before updating. Also it can forbid some plugins or WordPress Core update.
52
 
167
 
168
  == Changelog ==
169
 
170
+ = V4.2.8 - 12.02.2015 =
171
+ * Bugfix : Bug with theme permissions was fixed.
172
+
173
  = V4.2.7 - 09.02.2015 =
174
  * Update : Plugin functionality was updated for compatibility with Gallery Categories Plugin and Re-attacher Plugin.
175
  * Update : Gallery template checking functionality was updated.
465
 
466
  == Upgrade Notice ==
467
 
468
+ = V4.2.8 =
469
+ Bug with theme permissions was fixed.
470
+
471
  = V4.2.7 =
472
  Plugin functionality was updated for compatibility with Gallery Categories Plugin and Re-attacher Plugin. Gallery template checking functionality was updated.
473
 
template/gallery-single-template.php CHANGED
File without changes