Gallery – Photo Gallery and Images Gallery - Version 2.8.24

Version Description

  • Fixed Elementor editor conflict in image widget mode
  • Prepared Elementor page builder block
  • Tested with Wordpress 5.2
Download this release

Release Info

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

Code changes from version 2.8.23 to 2.8.24

app/app.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  /*
4
  * Robo Gallery
5
- * Version: 2.8.23 - 31205
6
  * By Robosoft
7
  *
8
  * Contact: https://robosoft.co/robogallery/
2
 
3
  /*
4
  * Robo Gallery
5
+ * Version: 2.8.24 - 93676
6
  * By Robosoft
7
  *
8
  * Contact: https://robosoft.co/robogallery/
app/class.brand.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  /*
4
  * Robo Gallery
5
- * Version: 2.8.23 - 31205
6
  * By Robosoft
7
  *
8
  * Contact: https://robosoft.co/robogallery/
2
 
3
  /*
4
  * Robo Gallery
5
+ * Version: 2.8.24 - 93676
6
  * By Robosoft
7
  *
8
  * Contact: https://robosoft.co/robogallery/
app/class.listing.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/class.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/class.view.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  /*
4
  * Robo Gallery
5
- * Version: 2.8.23 - 31205
6
  * By Robosoft
7
  *
8
  * Contact: https://robosoft.co/robogallery/
2
 
3
  /*
4
  * Robo Gallery
5
+ * Version: 2.8.24 - 93676
6
  * By Robosoft
7
  *
8
  * Contact: https://robosoft.co/robogallery/
app/extensions/dashboard/assets/style.css CHANGED
@@ -1,7 +1,7 @@
1
 
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
 
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/extensions/dashboard/class.dashboard.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/extensions/dashboard/init.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/extensions/dashboard/overview.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/extensions/dashboard/video_guide.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/extensions/manager/class.addons.action.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/extensions/manager/class.addons.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/extensions/manager/css/style.css CHANGED
@@ -1,6 +1,6 @@
1
  /*
2
  * Robo Gallery
3
- * Version: 2.8.23 - 31205
4
  * By Robosoft
5
  *
6
  * Contact: https://robosoft.co/robogallery/
1
  /*
2
  * Robo Gallery
3
+ * Version: 2.8.24 - 93676
4
  * By Robosoft
5
  *
6
  * Contact: https://robosoft.co/robogallery/
app/extensions/manager/init.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.8.23 - 31205
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.24 - 93676
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
app/extensions/manager/js/script.js CHANGED
@@ -1,6 +1,6 @@
1
  /*
2
  * Robo Gallery
3
- * Version: 2.8.23 - 31205
4
  * By Robosoft
5
  *
6
  * Contact: https://robosoft.co/robogallery/
1
  /*
2
  * Robo Gallery
3
+ * Version: 2.8.24 - 93676
4
  * By Robosoft
5
  *
6
  * Contact: https://robosoft.co/robogallery/
includes/frontend/rbs_gallery_class.php CHANGED
@@ -26,6 +26,9 @@ class roboGallery extends roboGalleryUtils{
26
  public $options_id = 0;
27
  public $real_id = 0;
28
 
 
 
 
29
  public $returnHtml = '';
30
  public $options = array();
31
 
@@ -119,6 +122,17 @@ class roboGallery extends roboGalleryUtils{
119
 
120
  $this->helper = new roboGalleryHelper();
121
  $this->galleryId = 'rbs_gallery_'.uniqid();
 
 
 
 
 
 
 
 
 
 
 
122
 
123
  if( isset($attr) && isset($attr['id']) ){
124
 
@@ -165,7 +179,7 @@ class roboGallery extends roboGalleryUtils{
165
 
166
  $customCssFiles = $this->customCSS();
167
 
168
- if( get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='forced' ){
169
  $this->styleList[] = ROBO_GALLERY_URL.'css/gallery.css';
170
  if(get_option( ROBO_GALLERY_PREFIX.'fontLoad', 'on' )=='on'){
171
  $this->styleList[] = ROBO_GALLERY_URL.'css/gallery.font.css';
@@ -183,25 +197,24 @@ class roboGallery extends roboGalleryUtils{
183
  }
184
 
185
  function robo_gallery_scripts() {
186
-
187
- if( get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='build' ){
188
  wp_enqueue_script('jquery', false, array(), false, true);
189
  wp_enqueue_script('robo-gallery', ROBO_GALLERY_URL.'js/robo_gallery.js', array('jquery'), ROBO_GALLERY_VERSION);
190
- } else if(get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='forced') {
191
  $this->scriptList[] = ROBO_GALLERY_URL.'js/robo_gallery_alt.js';
192
  } else {
193
  wp_enqueue_script('robo-gallery', ROBO_GALLERY_URL.'js/robo_gallery_alt.js', array(), ROBO_GALLERY_VERSION);
194
  }
195
 
196
  $customJsFiles = $this->customJS();
197
- if(get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='forced') {
198
- $this->scriptList = $this->scriptList + $customJsFiles;
199
  } else {
200
  for ($i = 0; $i < count($customJsFiles); $i++) {
201
  wp_enqueue_script('robo-gallery-js-custom-file-'.$i, $customJsFiles[$i], array('robo-gallery'), ROBO_GALLERY_VERSION );
202
  }
203
  }
204
-
205
 
206
  if( $this->debug){
207
  wp_enqueue_script( 'robo-gallery-debug', ROBO_GALLERY_URL.'includes/extensions/debug/js/script.js', array( ), ROBO_GALLERY_VERSION );
@@ -253,7 +266,7 @@ class roboGallery extends roboGalleryUtils{
253
 
254
  //$cached_result = '';
255
 
256
- if( get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' )=='forced' ){
257
  $this->robo_gallery_styles();
258
  $this->robo_gallery_scripts();
259
  } else {
@@ -327,7 +340,7 @@ class roboGallery extends roboGalleryUtils{
327
  $this->setColumns();
328
  } else {
329
  $colums = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'colums', true );
330
- if(count($colums)){
331
  $columns = $this->addWidth($colums, 3);
332
  if( $columns ){
333
  $columns .= ', {"columnWidth": "auto" , "columns":2 , "maxWidth": 650}, {"columnWidth": "auto" , "columns":3 , "maxWidth": 960}';
@@ -537,6 +550,8 @@ class roboGallery extends roboGalleryUtils{
537
 
538
  $customCss = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'cssStyle', true );
539
 
 
 
540
  if(count($this->selectImages->imgArray)){
541
 
542
 
26
  public $options_id = 0;
27
  public $real_id = 0;
28
 
29
+ public $assetsTypeInclude = 'build';
30
+ public $isAjaxCall = false;
31
+
32
  public $returnHtml = '';
33
  public $options = array();
34
 
122
 
123
  $this->helper = new roboGalleryHelper();
124
  $this->galleryId = 'rbs_gallery_'.uniqid();
125
+
126
+ $this->assetsTypeInclude = get_option( ROBO_GALLERY_PREFIX.'jqueryVersion', 'build' );
127
+
128
+ if (defined('DOING_AJAX') && DOING_AJAX) {
129
+ $this->isAjaxCall = true;
130
+ $this->assetsTypeInclude = 'forced';
131
+ }
132
+
133
+ if ( isset($_GET['action']) && $_GET['action'] == 'elementor' ) { // fix for elementor editor
134
+ $this->assetsTypeInclude = 'forced';
135
+ }
136
 
137
  if( isset($attr) && isset($attr['id']) ){
138
 
179
 
180
  $customCssFiles = $this->customCSS();
181
 
182
+ if( $this->assetsTypeInclude =='forced' ){
183
  $this->styleList[] = ROBO_GALLERY_URL.'css/gallery.css';
184
  if(get_option( ROBO_GALLERY_PREFIX.'fontLoad', 'on' )=='on'){
185
  $this->styleList[] = ROBO_GALLERY_URL.'css/gallery.font.css';
197
  }
198
 
199
  function robo_gallery_scripts() {
200
+
201
+ if( $this->assetsTypeInclude == 'build' ){
202
  wp_enqueue_script('jquery', false, array(), false, true);
203
  wp_enqueue_script('robo-gallery', ROBO_GALLERY_URL.'js/robo_gallery.js', array('jquery'), ROBO_GALLERY_VERSION);
204
+ } else if( $this->assetsTypeInclude == 'forced' ) {
205
  $this->scriptList[] = ROBO_GALLERY_URL.'js/robo_gallery_alt.js';
206
  } else {
207
  wp_enqueue_script('robo-gallery', ROBO_GALLERY_URL.'js/robo_gallery_alt.js', array(), ROBO_GALLERY_VERSION);
208
  }
209
 
210
  $customJsFiles = $this->customJS();
211
+ if( $this->assetsTypeInclude =='forced' ) {
212
+ $this->scriptList = $this->scriptList + $customJsFiles; // it's correct :-) trust me
213
  } else {
214
  for ($i = 0; $i < count($customJsFiles); $i++) {
215
  wp_enqueue_script('robo-gallery-js-custom-file-'.$i, $customJsFiles[$i], array('robo-gallery'), ROBO_GALLERY_VERSION );
216
  }
217
  }
 
218
 
219
  if( $this->debug){
220
  wp_enqueue_script( 'robo-gallery-debug', ROBO_GALLERY_URL.'includes/extensions/debug/js/script.js', array( ), ROBO_GALLERY_VERSION );
266
 
267
  //$cached_result = '';
268
 
269
+ if( $this->assetsTypeInclude == 'forced' ){
270
  $this->robo_gallery_styles();
271
  $this->robo_gallery_scripts();
272
  } else {
340
  $this->setColumns();
341
  } else {
342
  $colums = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'colums', true );
343
+ if( $colums && count($colums)){
344
  $columns = $this->addWidth($colums, 3);
345
  if( $columns ){
346
  $columns .= ', {"columnWidth": "auto" , "columns":2 , "maxWidth": 650}, {"columnWidth": "auto" , "columns":3 , "maxWidth": 960}';
550
 
551
  $customCss = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'cssStyle', true );
552
 
553
+
554
+
555
  if(count($this->selectImages->imgArray)){
556
 
557
 
includes/rbs_gallery_widget.php CHANGED
@@ -175,7 +175,7 @@ class rbs_widget extends WP_Widget {
175
 
176
  <p>
177
  <?php _e( 'Configure it in','robo-gallery');?>
178
- <a href="edit.php?post_type=robo_gallery_table">
179
  <?php _e( 'Robo Gallery plugin','robo-gallery');?>
180
  </a>
181
  </p>
175
 
176
  <p>
177
  <?php _e( 'Configure it in','robo-gallery');?>
178
+ <a target="_blank" href="edit.php?post_type=robo_gallery_table">
179
  <?php _e( 'Robo Gallery plugin','robo-gallery');?>
180
  </a>
181
  </p>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: gallerysupport, robosoft
3
  Donate link: https://robosoft.co/robogallery
4
  Tags: gallery, photo gallery, image gallery, wordpress gallery plugin, responsive gallery
5
  Requires at least: 3.3
6
- Tested up to: 5.1
7
- Stable tag: 2.8.23
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -203,6 +203,11 @@ If any problem occurs, please contact us.
203
 
204
  == Changelog ==
205
 
 
 
 
 
 
206
  = 2.8.23 =
207
  * Fix of the media manager resources upload, adtitional file type check
208
 
@@ -507,6 +512,11 @@ If any problem occurs, please contact us.
507
 
508
  == Upgrade Notice ==
509
 
 
 
 
 
 
510
  = 2.8.23 =
511
  Fix of the media manager resources upload, additional file type check
512
 
3
  Donate link: https://robosoft.co/robogallery
4
  Tags: gallery, photo gallery, image gallery, wordpress gallery plugin, responsive gallery
5
  Requires at least: 3.3
6
+ Tested up to: 5.2
7
+ Stable tag: 2.8.24
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
203
 
204
  == Changelog ==
205
 
206
+ = 2.8.24 =
207
+ * Fixed Elementor editor conflict in image widget mode
208
+ * Prepared Elementor page builder block
209
+ * Tested with Wordpress 5.2
210
+
211
  = 2.8.23 =
212
  * Fix of the media manager resources upload, adtitional file type check
213
 
512
 
513
  == Upgrade Notice ==
514
 
515
+ = 2.8.24 =
516
+ Fixed Elementor editor conflict in image widget mode
517
+ Prepared Elementor page builder block
518
+ Tested with Wordpress 5.2
519
+
520
  = 2.8.23 =
521
  Fix of the media manager resources upload, additional file type check
522
 
robogallery.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Robo Gallery
4
  Plugin URI: https://robosoft.co/wordpress-gallery-plugin
5
  Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
6
- Version: 2.8.23
7
  Author: RoboSoft
8
  Author URI: https://robosoft.co/wordpress-gallery-plugin
9
  License: GPLv3 or later
@@ -15,7 +15,7 @@ if(!defined('WPINC'))die;
15
  if(!defined("ABSPATH"))exit;
16
 
17
  define("ROBO_GALLERY", 1);
18
- define("ROBO_GALLERY_VERSION", '2.8.23');
19
 
20
  define("ROBO_GALLERY_OPTIONS", 'rbs_opt_');
21
 
3
  Plugin Name: Robo Gallery
4
  Plugin URI: https://robosoft.co/wordpress-gallery-plugin
5
  Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
6
+ Version: 2.8.24
7
  Author: RoboSoft
8
  Author URI: https://robosoft.co/wordpress-gallery-plugin
9
  License: GPLv3 or later
15
  if(!defined("ABSPATH"))exit;
16
 
17
  define("ROBO_GALLERY", 1);
18
+ define("ROBO_GALLERY_VERSION", '2.8.24');
19
 
20
  define("ROBO_GALLERY_OPTIONS", 'rbs_opt_');
21