Gallery – Photo Gallery and Images Gallery - Version 2.4.1

Version Description

  • Tested in Wordpress 4.6
  • Small code fixes
Download this release

Release Info

Developer robosoft
Plugin Icon 128x128 Gallery – Photo Gallery and Images Gallery
Version 2.4.1
Comparing to
See all releases

Code changes from version 2.4.0 to 2.4.1

cmb2/fields/colums/cmb-field-colums.php CHANGED
@@ -17,8 +17,7 @@ function jt_cmb2_colums_field( $metakey, $post_id = 0 ) {
17
  }
18
 
19
  function jt_cmb2_render_colums_field_callback( $field, $value, $object_id, $object_type, $field_type_object ) {
20
- //print_r($value);
21
- // make sure we specify each part of the value we need.
22
  $level = $field->args('level')?1:0;
23
 
24
  $value = wp_parse_args( $value, array(
17
  }
18
 
19
  function jt_cmb2_render_colums_field_callback( $field, $value, $object_id, $object_type, $field_type_object ) {
20
+
 
21
  $level = $field->args('level')?1:0;
22
 
23
  $value = wp_parse_args( $value, array(
cmb2/fields/font/cmb-field-font.php CHANGED
@@ -14,7 +14,7 @@
14
 
15
 
16
  function rbs_size_get_font_params_row( $value, $text, $name, $curent = '', $demoId ) {
17
- //echo '<br/>'.$name.$value.$curent.'<br/>';
18
  $html = '';
19
  $html .= '<label class="btn btn-info '.($value==$curent?'active':'').'">';
20
  $html .= '<input type="checkbox" '
14
 
15
 
16
  function rbs_size_get_font_params_row( $value, $text, $name, $curent = '', $demoId ) {
17
+
18
  $html = '';
19
  $html .= '<label class="btn btn-info '.($value==$curent?'active':'').'">';
20
  $html .= '<input type="checkbox" '
cmb2/fields/loading/cmb-field-loading.php CHANGED
@@ -48,7 +48,7 @@ function jt_cmb2_get_loading_field( $metakey, $post_id = 0 ) {
48
 
49
  function jt_cmb2_render_loading_field_callback( $field, $value, $object_id, $object_type, $field_type_object ) {
50
 
51
- // make sure we specify each part of the value we need.
52
  $value = wp_parse_args( $value, array(
53
  'boxesToLoadStart' => '8',
54
  'boxesToLoad' => '4',
@@ -99,15 +99,8 @@ function jt_cmb2_render_loading_field_callback( $field, $value, $object_id, $obj
99
  }
100
  add_filter( 'cmb2_render_loading', 'jt_cmb2_render_loading_field_callback', 10, 5 );
101
 
102
-
103
- /**
104
- * The following snippets are required for allowing the loading field
105
- * to work as a repeatable field, or in a repeatable group
106
- */
107
-
108
  function cmb2_sanitize_loading_field( $check, $meta_value, $object_id, $field_args, $sanitize_object ) {
109
 
110
- // if not repeatable, bail out.
111
  if ( ! is_array( $meta_value ) || ! $field_args['repeatable'] ) {
112
  return $check;
113
  }
@@ -121,7 +114,7 @@ function cmb2_sanitize_loading_field( $check, $meta_value, $object_id, $field_ar
121
  add_filter( 'cmb2_sanitize_loading', 'cmb2_sanitize_loading_field', 10, 5 );
122
 
123
  function cmb2_types_esc_loading_field( $check, $meta_value, $field_args, $field_object ) {
124
- // if not repeatable, bail out.
125
  if ( ! is_array( $meta_value ) || ! $field_args['repeatable'] ) {
126
  return $check;
127
  }
48
 
49
  function jt_cmb2_render_loading_field_callback( $field, $value, $object_id, $object_type, $field_type_object ) {
50
 
51
+
52
  $value = wp_parse_args( $value, array(
53
  'boxesToLoadStart' => '8',
54
  'boxesToLoad' => '4',
99
  }
100
  add_filter( 'cmb2_render_loading', 'jt_cmb2_render_loading_field_callback', 10, 5 );
101
 
 
 
 
 
 
 
102
  function cmb2_sanitize_loading_field( $check, $meta_value, $object_id, $field_args, $sanitize_object ) {
103
 
 
104
  if ( ! is_array( $meta_value ) || ! $field_args['repeatable'] ) {
105
  return $check;
106
  }
114
  add_filter( 'cmb2_sanitize_loading', 'cmb2_sanitize_loading_field', 10, 5 );
115
 
116
  function cmb2_types_esc_loading_field( $check, $meta_value, $field_args, $field_object ) {
117
+
118
  if ( ! is_array( $meta_value ) || ! $field_args['repeatable'] ) {
119
  return $check;
120
  }
cmb2/fields/multisize/rbs-multiSize.php CHANGED
@@ -17,7 +17,7 @@ function rbs_multisize_field( $metakey, $post_id = 0 ) {
17
  }
18
 
19
  function rbs_multisize_field_callback( $field, $value, $object_id, $object_type, $field_type_object ) {
20
- // make sure we specify each part of the value we need.
21
  $level = $field->args('level')?1:0;
22
 
23
  $default = $field->args('default');
17
  }
18
 
19
  function rbs_multisize_field_callback( $field, $value, $object_id, $object_type, $field_type_object ) {
20
+
21
  $level = $field->args('level')?1:0;
22
 
23
  $default = $field->args('default');
cmb2/fields/padding/rbs-padding.php CHANGED
@@ -26,8 +26,7 @@ function rbs_padding_field_callback( $field, $value, $object_id, $object_type, $
26
  if(!isset($default['top'])) $default['top'] = 0;
27
  if(!isset($default['right'])) $default['right'] = 0;
28
  if(!isset($default['bottom'])) $default['bottom'] = 0;
29
- //if(!isset($default['enable'])) $default['enable'] = 0;
30
-
31
 
32
  $value = wp_parse_args( $value, array(
33
  'left' => $default['left'],
26
  if(!isset($default['top'])) $default['top'] = 0;
27
  if(!isset($default['right'])) $default['right'] = 0;
28
  if(!isset($default['bottom'])) $default['bottom'] = 0;
29
+ //if(!isset($default['enable'])) default['enable'] = 0;
 
30
 
31
  $value = wp_parse_args( $value, array(
32
  'left' => $default['left'],
cmb2/fields/size/cmb-field-size.php CHANGED
@@ -55,7 +55,6 @@ function jt_cmb2_render_size_field_callback( $field, $value, $object_id, $object
55
  echo rbs_size_get_source_row( 'dateU', 'Date', $field_type_object->_name('[orderby]'), $value['orderby'], 'glyphicon glyphicon-menu-up' );
56
 
57
  echo rbs_size_get_source_row( 'random', 'Random', $field_type_object->_name('[orderby]'), $value['orderby'] );
58
- //echo rbs_size_get_source_row( 'full', 'Full', $field_type_object->_name('[orderby]'), $value['orderby'] );
59
  ?>
60
  </div>
61
  </div>
55
  echo rbs_size_get_source_row( 'dateU', 'Date', $field_type_object->_name('[orderby]'), $value['orderby'], 'glyphicon glyphicon-menu-up' );
56
 
57
  echo rbs_size_get_source_row( 'random', 'Random', $field_type_object->_name('[orderby]'), $value['orderby'] );
 
58
  ?>
59
  </div>
60
  </div>
includes/extensions/backup/backup.init.php CHANGED
@@ -46,6 +46,7 @@ if(!function_exists('rbs_gallery_full_export')){
46
 
47
  $isExport = $export->exportPostsZip( array('post_type' => ROBO_GALLERY_TYPE_POST), $exportFileName);
48
  //$isExport = $export->exportPostsXml( array('post_type' => ROBO_GALLERY_TYPE_POST), $exportFileName );
 
49
  if(!$isExport) {
50
  // show pretty error
51
  var_dump($export->getError());
@@ -83,7 +84,6 @@ if(!function_exists('rbs_gallery_export')){
83
 
84
  $isExport = $export->exportPostsXml(array('post_type' => ROBO_GALLERY_TYPE_POST), $exportFileName );
85
  if(!$isExport) {
86
- // show pretty error
87
  var_dump($export->getError());
88
  } else {
89
  wp_redirect(get_permalink( 'edit.php?post_type=robo_gallery_table&page=robo-gallery-backup' ));
@@ -103,9 +103,4 @@ if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST && rbs_gallery
103
  }
104
  }
105
 
106
-
107
-
108
-
109
-
110
-
111
  /* backup export - */
46
 
47
  $isExport = $export->exportPostsZip( array('post_type' => ROBO_GALLERY_TYPE_POST), $exportFileName);
48
  //$isExport = $export->exportPostsXml( array('post_type' => ROBO_GALLERY_TYPE_POST), $exportFileName );
49
+
50
  if(!$isExport) {
51
  // show pretty error
52
  var_dump($export->getError());
84
 
85
  $isExport = $export->exportPostsXml(array('post_type' => ROBO_GALLERY_TYPE_POST), $exportFileName );
86
  if(!$isExport) {
 
87
  var_dump($export->getError());
88
  } else {
89
  wp_redirect(get_permalink( 'edit.php?post_type=robo_gallery_table&page=robo-gallery-backup' ));
103
  }
104
  }
105
 
 
 
 
 
 
106
  /* backup export - */
includes/options/rbs_gallery_options_button.php CHANGED
@@ -20,7 +20,6 @@ $button_group = new_cmb2_box( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'show_names' => false,
22
  'context' => 'normal',
23
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0),
24
  ));
25
 
26
  $button_group->add_field( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'show_names' => false,
22
  'context' => 'normal',
 
23
  ));
24
 
25
  $button_group->add_field( array(
includes/options/rbs_gallery_options_copy.php CHANGED
@@ -21,7 +21,6 @@ $copy_group = new_cmb2_box( array(
21
  'show_names' => false,
22
  'context' => 'normal',
23
  'priority' => 'high',
24
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1),
25
  ));
26
 
27
  $copy_group->add_field(array(
21
  'show_names' => false,
22
  'context' => 'normal',
23
  'priority' => 'high',
 
24
  ));
25
 
26
  $copy_group->add_field(array(
includes/options/rbs_gallery_options_hover.php CHANGED
@@ -20,7 +20,6 @@ $hover_group = new_cmb2_box( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'show_names' => false,
22
  'context' => 'normal',
23
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0),
24
  ));
25
 
26
  $hover_group->add_field( array(
@@ -45,9 +44,9 @@ $hover_group->add_field( array(
45
  'default' => rbs_gallery_set_checkbox_default_for_new_post(1),
46
  'level' => !ROBO_GALLERY_PRO,
47
  'options' => array(
48
- '0' => __( 'Off' , 'cmb' ),
49
- '1' => __( 'Options' , 'cmb' ),
50
- '2' => __( 'Template' , 'cmb' )
51
  ),
52
  'depends' => array(
53
  '1' => '.rbs_gallery_hover_blok, .rbs_gallery_hover_options_blok',
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'show_names' => false,
22
  'context' => 'normal',
 
23
  ));
24
 
25
  $hover_group->add_field( array(
44
  'default' => rbs_gallery_set_checkbox_default_for_new_post(1),
45
  'level' => !ROBO_GALLERY_PRO,
46
  'options' => array(
47
+ '0' => __('Off' ),
48
+ '1' => __('Options'),
49
+ '2' => __('Template')
50
  ),
51
  'depends' => array(
52
  '1' => '.rbs_gallery_hover_blok, .rbs_gallery_hover_options_blok',
includes/options/rbs_gallery_options_images.php CHANGED
@@ -20,7 +20,6 @@ $images_group = new_cmb2_box( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'side',
22
  'priority' => 'high',
23
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0),
24
  'show_names' => false,
25
  ));
26
 
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'side',
22
  'priority' => 'high',
 
23
  'show_names' => false,
24
  ));
25
 
includes/options/rbs_gallery_options_info.php CHANGED
@@ -20,7 +20,6 @@ $info_group = new_cmb2_box( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'side',
22
  'priority' => 'low',
23
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0),
24
  ));
25
 
26
  $info_group->add_field( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'side',
22
  'priority' => 'low',
 
23
  ));
24
 
25
  $info_group->add_field( array(
includes/options/rbs_gallery_options_infowide.php CHANGED
@@ -19,7 +19,6 @@ $infowide_group = new_cmb2_box( array(
19
  'title' => '<span class="dashicons dashicons-cart"></span> '.__('Get Pro version','rbs_gallery'),
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'normal',
22
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0),
23
  ));
24
 
25
  $infowide_group->add_field( array(
19
  'title' => '<span class="dashicons dashicons-cart"></span> '.__('Get Pro version','rbs_gallery'),
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'normal',
 
22
  ));
23
 
24
  $infowide_group->add_field( array(
includes/options/rbs_gallery_options_lightbox.php CHANGED
@@ -20,7 +20,6 @@ $lightbox_group = new_cmb2_box( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'show_names' => false,
22
  'context' => 'normal',
23
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1),
24
  ));
25
 
26
 
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'show_names' => false,
22
  'context' => 'normal',
 
23
  ));
24
 
25
 
includes/options/rbs_gallery_options_loading.php CHANGED
@@ -20,7 +20,6 @@ $loading_group = new_cmb2_box( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'normal',
22
  'show_names' => false,
23
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1),
24
  ));
25
 
26
  $loading_group->add_field(array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'normal',
22
  'show_names' => false,
 
23
  ));
24
 
25
  $loading_group->add_field(array(
includes/options/rbs_gallery_options_polaroid.php CHANGED
@@ -20,7 +20,6 @@ $polaroid_group = new_cmb2_box( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'show_names' => false,
22
  'context' => 'normal',
23
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1),
24
  ));
25
 
26
  $polaroid_group->add_field( array(
@@ -30,7 +29,6 @@ $polaroid_group->add_field( array(
30
  'default' => rbs_gallery_set_checkbox_default_for_new_post(0),
31
  'depends' => '.rbs_polaroid_block',
32
  'bootstrap_style'=> 1,
33
- /* 'level' => !ROBO_GALLERY_PRO,*/
34
  'before_row' => '
35
  <div class="rbs_block"><br/>',
36
  'after_row' => '
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'show_names' => false,
22
  'context' => 'normal',
 
23
  ));
24
 
25
  $polaroid_group->add_field( array(
29
  'default' => rbs_gallery_set_checkbox_default_for_new_post(0),
30
  'depends' => '.rbs_polaroid_block',
31
  'bootstrap_style'=> 1,
 
32
  'before_row' => '
33
  <div class="rbs_block"><br/>',
34
  'after_row' => '
includes/options/rbs_gallery_options_shortcode.php CHANGED
@@ -20,7 +20,6 @@ $shortcode_group = new_cmb2_box( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'side',
22
  'priority' => 'low',
23
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0),
24
  ));
25
 
26
  if(isset($_GET['post'])){
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'side',
22
  'priority' => 'low',
 
23
  ));
24
 
25
  if(isset($_GET['post'])){
includes/options/rbs_gallery_options_size.php CHANGED
@@ -22,11 +22,8 @@ $size_group = new_cmb2_box( array(
22
  'show_names' => false,
23
  'context' => 'normal',
24
  'priority' => 'high',
25
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0),
26
  ));
27
 
28
- //$size_group->add_field( array('type' => 'toolbox'));
29
-
30
  $size_group->add_field( array(
31
  'name' => __('Width ', 'rbs_gallery'),
32
  'id' => ROBO_GALLERY_PREFIX . 'width-size',
22
  'show_names' => false,
23
  'context' => 'normal',
24
  'priority' => 'high',
 
25
  ));
26
 
 
 
27
  $size_group->add_field( array(
28
  'name' => __('Width ', 'rbs_gallery'),
29
  'id' => ROBO_GALLERY_PREFIX . 'width-size',
includes/options/rbs_gallery_options_text.php CHANGED
@@ -21,7 +21,6 @@ $text_group = new_cmb2_box( array(
21
  'show_names' => false,
22
  'context' => 'side',
23
  'priority' => 'low',
24
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1),
25
  ));
26
 
27
  $text_group->add_field( array(
21
  'show_names' => false,
22
  'context' => 'side',
23
  'priority' => 'low',
 
24
  ));
25
 
26
  $text_group->add_field( array(
includes/options/rbs_gallery_options_tools.php CHANGED
@@ -20,7 +20,6 @@ $tools_group = new_cmb2_box( array(
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'side',
22
  'priority' => 'low',
23
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0),
24
  ));
25
 
26
  if(isset($_GET['post'])){
20
  'object_types' => array( ROBO_GALLERY_TYPE_POST ),
21
  'context' => 'side',
22
  'priority' => 'low',
 
23
  ));
24
 
25
  if(isset($_GET['post'])){
includes/options/rbs_gallery_options_view.php CHANGED
@@ -22,7 +22,6 @@ $view_group = new_cmb2_box( array(
22
  'show_names' => false,
23
  'context' => 'normal',
24
  'priority' => 'high',
25
- // 'closed' => rbs_gallery_set_checkbox_default_for_new_post(0),
26
  ));
27
 
28
  $view_group->add_field( array(
22
  'show_names' => false,
23
  'context' => 'normal',
24
  'priority' => 'high',
 
25
  ));
26
 
27
  $view_group->add_field( array(
includes/rbs_gallery_widget.php CHANGED
@@ -96,11 +96,6 @@ class rbs_widget extends WP_Widget {
96
  }
97
  }
98
 
99
-
100
- function rbs_load_widget() {
101
- //global $pagenow;
102
- //if( isset( $pagenow) && $pagenow=='admin-ajax.php' ) return ;
103
- register_widget( 'rbs_widget' );
104
- }
105
 
106
  add_action( 'widgets_init', 'rbs_load_widget' );
96
  }
97
  }
98
 
99
+ function rbs_load_widget(){ register_widget( 'rbs_widget' ); }
 
 
 
 
 
100
 
101
  add_action( 'widgets_init', 'rbs_load_widget' );
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: robosoft
3
  Tags: gallery, Gallery Plugin, photo gallery, images gallery, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, pictures, portfolio gallery, video gallery, images
4
  Requires at least: 3.3
5
- Tested up to: 4.5
6
- Stable tag: 2.4.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -201,6 +201,10 @@ If any problem occurs, please contact us.
201
 
202
  == Changelog ==
203
 
 
 
 
 
204
  = 2.4.0 =
205
  * Added multi tags field for every image
206
  * New tags functionality for images filtering in PRO version
@@ -839,6 +843,10 @@ If any problem occurs, please contact us.
839
 
840
  == Upgrade Notice ==
841
 
 
 
 
 
842
  = 2.4.0 =
843
  Added multi tags field for every image
844
  New tags functionality for images filtering in PRO version
2
  Contributors: robosoft
3
  Tags: gallery, Gallery Plugin, photo gallery, images gallery, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, pictures, portfolio gallery, video gallery, images
4
  Requires at least: 3.3
5
+ Tested up to: 4.6
6
+ Stable tag: 2.4.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
201
 
202
  == Changelog ==
203
 
204
+ = 2.4.1 =
205
+ * Tested in Wordpress 4.6
206
+ * Small code fixes
207
+
208
  = 2.4.0 =
209
  * Added multi tags field for every image
210
  * New tags functionality for images filtering in PRO version
843
 
844
  == Upgrade Notice ==
845
 
846
+ = 2.4.1 =
847
+ Tested in Wordpress 4.6
848
+ Small code fixes
849
+
850
  = 2.4.0 =
851
  Added multi tags field for every image
852
  New tags functionality for images filtering in PRO version
robogallery.php CHANGED
@@ -8,7 +8,7 @@
8
  * Plugin Name: Robo Gallery
9
  * Plugin URI: http://robosoft.co/robogallery
10
  * Description: A responsive, easy and elegant way to show gallery.
11
- * Version: 2.4.0
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
@@ -20,7 +20,7 @@
20
  if ( ! defined( 'WPINC' ) ) die;
21
 
22
  define("ROBO_GALLERY", 1);
23
- define("ROBO_GALLERY_VERSION", '2.4.0');
24
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
25
  define("ROBO_GALLERY_SPECIAL", 0);
26
 
8
  * Plugin Name: Robo Gallery
9
  * Plugin URI: http://robosoft.co/robogallery
10
  * Description: A responsive, easy and elegant way to show gallery.
11
+ * Version: 2.4.1
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
20
  if ( ! defined( 'WPINC' ) ) die;
21
 
22
  define("ROBO_GALLERY", 1);
23
+ define("ROBO_GALLERY_VERSION", '2.4.1');
24
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
25
  define("ROBO_GALLERY_SPECIAL", 0);
26