FooBox Image Lightbox WordPress Plugin - Version 1.2.26

Version Description

  • Fix : disappearing captions. Renamed "Show Captions" setting to "Hide Captions" and default to disabled.
Download this release

Release Info

Developer bradvin
Plugin Icon 128x128 FooBox Image Lightbox WordPress Plugin
Version 1.2.26
Comparing to
See all releases

Code changes from version 1.2.25 to 1.2.26

foobox-free.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: FooBox Image Lightbox
5
  Plugin URI: http://fooplugins.com/plugins/foobox/
6
  Description: The best responsive lightbox for WordPress.
7
- Version: 1.2.25
8
  Author: FooPlugins
9
  Author URI: http://fooplugins.com
10
  License: GPL2
@@ -20,7 +20,7 @@ if ( !class_exists( 'FooBox' ) ) {
20
  define( 'FOOBOX_BASE_ACTIVATION_REDIRECT_TRANSIENT_KEY', '_foobox_activation_redirect' );
21
  define( 'FOOBOX_BASE_PATH', plugin_dir_path( __FILE__ ) );
22
  define( 'FOOBOX_BASE_URL', plugin_dir_url( __FILE__ ) );
23
- define( 'FOOBOX_BASE_VERSION', '1.2.25' );
24
  // Create a helper function for easy SDK access.
25
  function foobox_fs()
26
  {
4
  Plugin Name: FooBox Image Lightbox
5
  Plugin URI: http://fooplugins.com/plugins/foobox/
6
  Description: The best responsive lightbox for WordPress.
7
+ Version: 1.2.26
8
  Author: FooPlugins
9
  Author URI: http://fooplugins.com
10
  License: GPL2
20
  define( 'FOOBOX_BASE_ACTIVATION_REDIRECT_TRANSIENT_KEY', '_foobox_activation_redirect' );
21
  define( 'FOOBOX_BASE_PATH', plugin_dir_path( __FILE__ ) );
22
  define( 'FOOBOX_BASE_URL', plugin_dir_url( __FILE__ ) );
23
+ define( 'FOOBOX_BASE_VERSION', '1.2.26' );
24
  // Create a helper function for easy SDK access.
25
  function foobox_fs()
26
  {
free/includes/class-script-generator.php CHANGED
@@ -30,7 +30,7 @@ if ( !class_exists( 'FooBox_Free_Script_Generator' ) ) {
30
  $show_count = self::is_option_checked( $fbx_options, 'show_count', true );
31
  $count_message = self::get_option( $fbx_options, 'count_message', 'image %index of %total' );
32
  $powered_by_link = self::is_option_checked( $fbx_options, 'powered_by_link', false );
33
- $show_caption = self::is_option_checked( $fbx_options, 'show_caption', true );
34
  $captions_hover = self::is_option_checked( $fbx_options, 'captions_show_on_hover', false );
35
 
36
  //force to show the powered by link on the settings page, so the user can see what it will look like
@@ -66,7 +66,7 @@ if ( !class_exists( 'FooBox_Free_Script_Generator' ) ) {
66
  if ( $count_message != 'item %index of %total' ) {
67
  $options['countMessage'] = 'countMessage:\'' . addslashes( $count_message ) . '\'';
68
  }
69
- if ( !$show_caption ) {
70
  $options['images'] = 'images: { showCaptions:false }';
71
  } else {
72
  if ( $captions_hover ) {
30
  $show_count = self::is_option_checked( $fbx_options, 'show_count', true );
31
  $count_message = self::get_option( $fbx_options, 'count_message', 'image %index of %total' );
32
  $powered_by_link = self::is_option_checked( $fbx_options, 'powered_by_link', false );
33
+ $hide_caption = self::is_option_checked( $fbx_options, 'hide_caption', true );
34
  $captions_hover = self::is_option_checked( $fbx_options, 'captions_show_on_hover', false );
35
 
36
  //force to show the powered by link on the settings page, so the user can see what it will look like
66
  if ( $count_message != 'item %index of %total' ) {
67
  $options['countMessage'] = 'countMessage:\'' . addslashes( $count_message ) . '\'';
68
  }
69
+ if ( $hide_caption ) {
70
  $options['images'] = 'images: { showCaptions:false }';
71
  } else {
72
  if ( $captions_hover ) {
free/includes/class-settings.php CHANGED
@@ -93,10 +93,9 @@ if ( !class_exists( 'FooBox_Free_Settings' ) ) {
93
  );
94
 
95
  $settings[] = array(
96
- 'id' => 'show_caption',
97
- 'title' => __( 'Show Captions', 'foobox' ),
98
- 'desc' => __( 'Whether or not to show captions for images', 'foobox' ),
99
- 'default' => 'on',
100
  'type' => 'checkbox',
101
  'section' => 'settings',
102
  'tab' => 'general'
93
  );
94
 
95
  $settings[] = array(
96
+ 'id' => 'hide_caption',
97
+ 'title' => __( 'Hide Captions', 'foobox' ),
98
+ 'desc' => __( 'Whether or not to hide captions for images.', 'foobox' ),
 
99
  'type' => 'checkbox',
100
  'section' => 'settings',
101
  'tab' => 'general'
readme.txt CHANGED
@@ -76,6 +76,9 @@ There is a setting to try and disable hard coded lightboxes, but this is not a s
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 1.2.25 =
80
  * Added setting to disable captions
81
  * Added setting to change image counter text
76
 
77
  == Changelog ==
78
 
79
+ = 1.2.26 =
80
+ * Fix : disappearing captions. Renamed "Show Captions" setting to "Hide Captions" and default to disabled.
81
+
82
  = 1.2.25 =
83
  * Added setting to disable captions
84
  * Added setting to change image counter text