Gallery – Photo Gallery and Images Gallery - Version 2.6.2

Version Description

  • New function for clone function configuration
  • Show/hide option for gallery clone block in gallery settings
Download this release

Release Info

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

Code changes from version 2.6.1 to 2.6.2

includes/frontend/rbs_gallery_class.php CHANGED
@@ -135,19 +135,8 @@ class roboGallery extends roboGalleryUtils{
135
  function robo_gallery_scripts() {
136
 
137
  if( get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='build' ){
138
-
139
  wp_enqueue_script('jquery', false, array(), false, true);
140
  wp_enqueue_script('robo-gallery', ROBO_GALLERY_URL.'js/robo_gallery.js', array('jquery'), ROBO_GALLERY_VERSION);
141
-
142
- /* wp_enqueue_script( 'robo-gallery-evemb', ROBO_GALLERY_URL.'gallery/js/jquery.evemb.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
143
- wp_enqueue_script( 'robo-gallery-utils', ROBO_GALLERY_URL.'gallery/js/jquery.utils.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
144
- wp_enqueue_script( 'robo-gallery-magnific', ROBO_GALLERY_URL.'gallery/js/jquery.magnific.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
145
- if($this->touch){
146
- wp_enqueue_script( 'robo-gallery-touch', ROBO_GALLERY_URL.'gallery/js/jquery.touch.min.js', array( 'robo-gallery-magnific' ), ROBO_GALLERY_VERSION );
147
- }
148
- wp_enqueue_script( 'robo-gallery-collage', ROBO_GALLERY_URL.'gallery/js/jquery.collagePlus.min.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
149
- wp_enqueue_script( 'robo-gallery-script', ROBO_GALLERY_URL.'js/script.js', array( 'jquery' ), ROBO_GALLERY_VERSION );
150
- */
151
  } else if(get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='forced') {
152
  $this->scriptList[] = ROBO_GALLERY_URL.'js/robo_gallery_alt.js';
153
  } else {
@@ -176,7 +165,6 @@ class roboGallery extends roboGalleryUtils{
176
  }
177
 
178
 
179
-
180
  public function addBorder($nameOptions = ''){
181
  $borderStyle = '';
182
  $border = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.$nameOptions, true );
@@ -192,7 +180,6 @@ class roboGallery extends roboGalleryUtils{
192
  else return '';
193
  }
194
 
195
-
196
 
197
  public function getGallery( ){
198
  if( !$this->id ) return '';
@@ -205,12 +192,10 @@ class roboGallery extends roboGalleryUtils{
205
 
206
  $sizeType = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'sizeType', true );
207
 
208
- /* ver 2 + */
209
  $this->touch = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxSwipe', true );
210
  if($this->touch){
211
  $this->helper->setValue( 'touch', 1, 'raw' );
212
  }
213
- /* ver 2 - */
214
 
215
  $lightboxCounterText = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxCounterText', true );
216
 
135
  function robo_gallery_scripts() {
136
 
137
  if( get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='build' ){
 
138
  wp_enqueue_script('jquery', false, array(), false, true);
139
  wp_enqueue_script('robo-gallery', ROBO_GALLERY_URL.'js/robo_gallery.js', array('jquery'), ROBO_GALLERY_VERSION);
 
 
 
 
 
 
 
 
 
 
140
  } else if(get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='forced') {
141
  $this->scriptList[] = ROBO_GALLERY_URL.'js/robo_gallery_alt.js';
142
  } else {
165
  }
166
 
167
 
 
168
  public function addBorder($nameOptions = ''){
169
  $borderStyle = '';
170
  $border = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.$nameOptions, true );
180
  else return '';
181
  }
182
 
 
183
 
184
  public function getGallery( ){
185
  if( !$this->id ) return '';
192
 
193
  $sizeType = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'sizeType', true );
194
 
 
195
  $this->touch = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxSwipe', true );
196
  if($this->touch){
197
  $this->helper->setValue( 'touch', 1, 'raw' );
198
  }
 
199
 
200
  $lightboxCounterText = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxCounterText', true );
201
 
includes/options/rbs_gallery_options_copy.php CHANGED
@@ -14,6 +14,20 @@
14
 
15
  if ( ! defined( 'ABSPATH' ) ) exit;
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  $copy_group = new_cmb2_box( array(
18
  'id' => ROBO_GALLERY_PREFIX . 'copy_metabox',
19
  'title' => '<span class="dashicons dashicons-admin-settings"></span> '.__( ' Clone Gallery', 'rbs_gallery' ),
@@ -35,4 +49,4 @@ $copy_group->add_field(array(
35
  <div class="rbs_block"><br/>',
36
  'after_row' => '
37
  </div> ',
38
- ));
14
 
15
  if ( ! defined( 'ABSPATH' ) ) exit;
16
 
17
+ if( isset($_GET['post']) ) $id = (int) $_GET['post'];
18
+
19
+ if(!$id && isset($_POST['post_ID']) ) $id= $_POST['post_ID'];
20
+
21
+ if(!$id) return ;
22
+
23
+ if( get_option( ROBO_GALLERY_PREFIX.'cloneBlock', 0 ) && !get_post_meta( $id, ROBO_GALLERY_PREFIX.'options', true ) ){
24
+ return ;
25
+ /*
26
+ echo $id . "=" . get_post_meta( $id, ROBO_GALLERY_PREFIX.'options', true ) . "=" . get_option( ROBO_GALLERY_PREFIX.'cloneBlock', 0 );
27
+ die();
28
+ */
29
+ }
30
+
31
  $copy_group = new_cmb2_box( array(
32
  'id' => ROBO_GALLERY_PREFIX . 'copy_metabox',
33
  'title' => '<span class="dashicons dashicons-admin-settings"></span> '.__( ' Clone Gallery', 'rbs_gallery' ),
49
  <div class="rbs_block"><br/>',
50
  'after_row' => '
51
  </div> ',
52
+ ));
includes/rbs_gallery_edit.php CHANGED
@@ -19,7 +19,9 @@ function rbs_gallery_group_metabox() {
19
  function rbs_gallery_set_checkbox_default_for_new_post( $default ) {
20
  return rbs_gallery_is_edit_page('edit') ? '' : ( $default ? (string) $default : '' );
21
  }
22
- if( rbs_gallery_is_edit_page('edit') ) rbs_gallery_include('rbs_gallery_options_copy.php', ROBO_GALLERY_OPTIONS_PATH);
 
 
23
 
24
  rbs_gallery_include('rbs_gallery_options_guides.php', ROBO_GALLERY_OPTIONS_PATH);
25
 
19
  function rbs_gallery_set_checkbox_default_for_new_post( $default ) {
20
  return rbs_gallery_is_edit_page('edit') ? '' : ( $default ? (string) $default : '' );
21
  }
22
+ if( rbs_gallery_is_edit_page('edit') ){
23
+ rbs_gallery_include('rbs_gallery_options_copy.php', ROBO_GALLERY_OPTIONS_PATH);
24
+ }
25
 
26
  rbs_gallery_include('rbs_gallery_options_guides.php', ROBO_GALLERY_OPTIONS_PATH);
27
 
includes/rbs_gallery_menu.php CHANGED
@@ -54,6 +54,8 @@ if(!function_exists('robo_gallery_settings_submenu_page')){
54
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'seo' );
55
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'expressPanel' );
56
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'fontLoad' );
 
 
57
  }
58
  }
59
 
54
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'seo' );
55
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'expressPanel' );
56
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'fontLoad' );
57
+
58
+ register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'cloneBlock' );
59
  }
60
  }
61
 
includes/rbs_gallery_settings.php CHANGED
@@ -142,6 +142,21 @@ wp_enqueue_style ( 'robosoft-gallery-about', ROBO_GALLERY_URL.'css/admin/about.
142
  </td>
143
  </tr>
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  <tr>
146
  <th colspan="2"><h2><?php _e('SEO Optimization', 'rbs_gallery'); ?></h2></th>
147
  </tr>
142
  </td>
143
  </tr>
144
 
145
+ <tr>
146
+ <th scope="row"><?php _e('Clone Block', 'rbs_gallery'); ?></th>
147
+ <td>
148
+ <fieldset>
149
+ <legend class="screen-reader-text"><span><?php _e('Show Clone Block', 'rbs_gallery'); ?></span></legend>
150
+ <label title='<?php _e('Show', 'rbs_gallery'); ?>'>
151
+ <input type='radio' name='<?php echo ROBO_GALLERY_PREFIX.'cloneBlock'; ?>' value='0' <?php if( !get_option(ROBO_GALLERY_PREFIX.'cloneBlock', '') ) echo " checked='checked'"; ?> /> <?php _e('Show', 'rbs_gallery'); ?>
152
+ </label><br />
153
+ <label title='<?php _e('Hide', 'rbs_gallery'); ?>'>
154
+ <input type='radio' name='<?php echo ROBO_GALLERY_PREFIX.'cloneBlock'; ?>' value='1' <?php if( get_option(ROBO_GALLERY_PREFIX.'cloneBlock')=='1' ) echo " checked='checked'"; ?> /> <?php _e('Hide', 'rbs_gallery'); ?>
155
+ </label><br />
156
+ </fieldset>
157
+ </td>
158
+ </tr>
159
+
160
  <tr>
161
  <th colspan="2"><h2><?php _e('SEO Optimization', 'rbs_gallery'); ?></h2></th>
162
  </tr>
includes/rbs_gallery_widget.php CHANGED
@@ -43,7 +43,7 @@ class rbs_widget extends WP_Widget {
43
  );
44
 
45
  $posts_array = get_posts( $gallery_params );
46
-
47
  if( isset($posts_array[0]) && isset($posts_array[0]->ID) ){
48
  $galleryId = $posts_array[0]->ID;
49
  }
@@ -54,6 +54,7 @@ class rbs_widget extends WP_Widget {
54
  }
55
 
56
  if(!ROBO_GALLERY_PRO) echo _e( 'This widget available in Pro version','rbs_gallery');
 
57
  echo $args['after_widget'];
58
  }
59
 
43
  );
44
 
45
  $posts_array = get_posts( $gallery_params );
46
+
47
  if( isset($posts_array[0]) && isset($posts_array[0]->ID) ){
48
  $galleryId = $posts_array[0]->ID;
49
  }
54
  }
55
 
56
  if(!ROBO_GALLERY_PRO) echo _e( 'This widget available in Pro version','rbs_gallery');
57
+
58
  echo $args['after_widget'];
59
  }
60
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://robosoft.co/robogallery
4
  Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.7
7
- Stable tag: 2.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -254,6 +254,10 @@ If any problem occurs, please contact us.
254
 
255
  == Changelog ==
256
 
 
 
 
 
257
  = 2.6.1 =
258
  * Updated gallery widget
259
  * Added new latest gallery option in gallery list
@@ -335,6 +339,10 @@ If any problem occurs, please contact us.
335
 
336
  == Upgrade Notice ==
337
 
 
 
 
 
338
  = 2.6.1 =
339
  Updated gallery widget
340
  Added new latest gallery option in gallery list
4
  Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.7
7
+ Stable tag: 2.6.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
254
 
255
  == Changelog ==
256
 
257
+ = 2.6.2 =
258
+ * New function for clone function configuration
259
+ * Show/hide option for gallery clone block in gallery settings
260
+
261
  = 2.6.1 =
262
  * Updated gallery widget
263
  * Added new latest gallery option in gallery list
339
 
340
  == Upgrade Notice ==
341
 
342
+ = 2.6.2 =
343
+ New function for clone function configuration
344
+ Show/hide option for gallery clone block in gallery settings
345
+
346
  = 2.6.1 =
347
  Updated gallery widget
348
  Added new latest gallery option in gallery list
robogallery.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Robo Gallery
4
  Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
5
- Version: 2.6.1
6
  Author: RoboSoft
7
  Plugin URI: http://robosoft.co/gallery
8
  Author URI: http://robosoft.co/gallery
@@ -15,13 +15,13 @@ if(!defined('WPINC'))die;
15
  if(!defined("ABSPATH"))exit;
16
 
17
  define("ROBO_GALLERY", 1);
18
- define("ROBO_GALLERY_VERSION", '2.6.1');
19
 
20
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
21
 
22
- define("ROBO_GALLERY_SPECIAL", 0);
23
- define("ROBO_GALLERY_EVENT_DATE", '2016-12-08');
24
- define("ROBO_GALLERY_EVENT_HOUR", 20);
25
 
26
  add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
27
  function rbs_gallery_load_textdomain() {
2
  /*
3
  Plugin Name: Robo Gallery
4
  Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
5
+ Version: 2.6.2
6
  Author: RoboSoft
7
  Plugin URI: http://robosoft.co/gallery
8
  Author URI: http://robosoft.co/gallery
15
  if(!defined("ABSPATH"))exit;
16
 
17
  define("ROBO_GALLERY", 1);
18
+ define("ROBO_GALLERY_VERSION", '2.6.2');
19
 
20
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
21
 
22
+ define("ROBO_GALLERY_SPECIAL", 1);
23
+ define("ROBO_GALLERY_EVENT_DATE", '2017-01-27');
24
+ define("ROBO_GALLERY_EVENT_HOUR", 12);
25
 
26
  add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
27
  function rbs_gallery_load_textdomain() {