Gallery – Photo Gallery and Images Gallery - Version 2.5.1

Version Description

  • Fixed quotes parsing in image description and caption fields
Download this release

Release Info

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

Code changes from version 2.5.0 to 2.5.1

css/admin/edit.css CHANGED
@@ -1 +1 @@
1
- /*
2
  z-index: 1000;
3
  opacity: 0.4;
4
  pointer-events: none;
5
  z-index: 1000;
6
  opacity: 0.1;
7
  pointer-events: none;
8
  padding-top: 7px;
9
  text-align: right;
10
  cursor: pointer;
 
11
  z-index: 1000;
12
  opacity: 0.4;
13
  pointer-events: none;
14
  z-index: 1000;
15
  opacity: 0.1;
16
  pointer-events: none;
17
  padding-top: 7px;
18
  text-align: right;
19
  cursor: pointer;
 
1
  z-index: 1000;
2
  opacity: 0.4;
3
  pointer-events: none;
4
  z-index: 1000;
5
  opacity: 0.1;
6
  pointer-events: none;
7
  padding-top: 7px;
8
  text-align: right;
9
  cursor: pointer;
10
+ /*
11
  z-index: 1000;
12
  opacity: 0.4;
13
  pointer-events: none;
14
  z-index: 1000;
15
  opacity: 0.1;
16
  pointer-events: none;
17
  padding-top: 7px;
18
  text-align: right;
19
  cursor: pointer;
includes/frontend/rbs_gallery_class.php CHANGED
@@ -260,13 +260,11 @@ class roboGallery extends roboGalleryUtils{
260
  if( isset($size['height']) ) $height = (int) $size['height']; else $height = 140;
261
  }
262
 
263
- /* robo_gallery */
264
  if($this->pro){
265
  $this->getOrderBy($size);
266
  $this->getSource($size);
267
  }
268
 
269
- /* robo_gallery */
270
  if($this->pro){
271
  $this->setColumns();
272
  } else {
@@ -293,7 +291,7 @@ class roboGallery extends roboGalleryUtils{
293
 
294
  if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'border', true ) ){
295
  $this->rbsBoxStyle .= $this->addBorder('border-options');
296
- /* robo_gallery */
297
  if( $this->pro && get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'hover-border', true ) ){
298
  $this->rbsBoxHoverStyle .= $this->getHoverBorder();
299
  }
@@ -301,7 +299,7 @@ class roboGallery extends roboGalleryUtils{
301
 
302
  if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'shadow', true ) ){
303
  $this->rbsBoxStyle .=$this->addShadow('shadow-options');
304
- /* robo_gallery */
305
  if ( $this->pro && get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'hover-shadow', true ) ){
306
  $this->rbsBoxHoverStyle .= $this->getHoverShadown();
307
  }
@@ -318,10 +316,8 @@ class roboGallery extends roboGalleryUtils{
318
  $this->id = $this->options_id;
319
  }
320
 
321
-
322
  $this->selectImages->setSize( $width , $height, $this->thumbsource, $this->orderby );
323
 
324
- /* robo_gallery */
325
  if ( $this->pro ) $this->setCCL();
326
 
327
  $this->selectImages->getImages();
@@ -346,7 +342,6 @@ class roboGallery extends roboGalleryUtils{
346
  $this->helper->setOption( 'horizontalSpaceBetweenBoxes', 'int');
347
  $this->helper->setOption( 'verticalSpaceBetweenBoxes', 'int');
348
 
349
- /* robo_gallery */
350
  if ( $this->pro ) $this->rbsOverlayStyle .= $this->getOverlayBg();
351
  else $this->rbsOverlayStyle .= 'background: rgba(7, 7, 7, 0.5);';
352
 
@@ -379,14 +374,12 @@ class roboGallery extends roboGalleryUtils{
379
 
380
  if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'hover', true ) ) $this->hover = 1;
381
 
382
- /* robo_gallery */
383
  if ( $this->pro ) $this->setHoverType();
384
 
385
  $this->linkIcon = $this->getTemplateItem( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'linkIcon', true ), 'rbsLinkIcon', 1 );
386
  $this->zoomIcon = $this->getTemplateItem( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'zoomIcon', true ), 'rbsZoomIcon', 1 , ($this->thumbClick?' rbs-lightbox':'') ); //, ' rbs-lightbox'
387
  $this->titleHover = $this->getTemplateItem( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'showTitle', true ), 'rbsTitle', '@TITLE@' );
388
 
389
- /* robo_gallery */
390
  if ( $this->pro ) $this->setDescHover();
391
 
392
  if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxSocial', true ) ){
@@ -396,7 +389,6 @@ class roboGallery extends roboGalleryUtils{
396
  $this->helper->setValue( 'pinterest', 'true', 'raw' );
397
  }
398
 
399
- /* robo_gallery */
400
  if ( $this->pro && method_exists( $this ,'setLightboxBg') ){
401
  $this->setLightboxBg();
402
  }
@@ -408,9 +400,7 @@ class roboGallery extends roboGalleryUtils{
408
  if(!get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxTitle', true )){
409
  $this->helper->setValue( 'hideTitle', 'true' );
410
  }
411
-
412
-
413
-
414
 
415
  if(!get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxClose', true )){
416
  $this->rbsCloseLightboxStyle = 'display:none;';
@@ -423,14 +413,12 @@ class roboGallery extends roboGalleryUtils{
423
  }
424
 
425
 
426
-
427
  if(get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxDescPanel', true )){
428
  $this->helper->setValue( 'descBox', 'true' );
429
  $this->helper->setValue( 'descBoxClass', 'rbs_desc_panel_'.get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxDescClass', true ) );
430
  }
431
 
432
 
433
-
434
  $this->addJavaScriptStyle('rbsBox', '.rbs-img-container');
435
  $this->addJavaScriptStyle('rbsTitle','.rbsTitle',1);
436
  $this->addJavaScriptStyle('rbsDesc','.rbsDesc',1);
@@ -508,7 +496,7 @@ class roboGallery extends roboGalleryUtils{
508
  break;
509
  }
510
 
511
- if($descBoxData) $descBoxData = ' data-descbox="'.$descBoxData.'" ';
512
  }
513
 
514
  $polaroidDesc = str_replace(
@@ -552,6 +540,7 @@ class roboGallery extends roboGalleryUtils{
552
  $newLine = "\t";
553
  $lineBrake="\n";
554
  }
 
555
  $seo = get_option( ROBO_GALLERY_PREFIX.'seo', '' );
556
  if( $seo ){
557
  $this->seoContent .= ($seo==1 ? '<a href="'.$link.'" alt="'.$lightboxText.'" title="'.$lightboxText.'">' : '')
@@ -560,12 +549,9 @@ class roboGallery extends roboGalleryUtils{
560
  }
561
 
562
  $tagId = '';
563
- //print_r( array_keys($this->selectImages->tags) );
564
  for ($l=0; $l < count($img['tags']); $l++) {
565
- //echo "fff2";
566
  $tagId .= ' tag_id'.array_search($img['tags'][$l], $this->selectImages->tags ).' ';
567
  }
568
- //echo $tagId."<br/>";
569
 
570
  $this->returnHtml .=
571
  '<div class="rbs-img category'.$img['catid'].' '.$tagId.'" '.( isset($img['col']) && $img['col'] ?' data-columns="'.$img['col'].'" ' :'').'>'.$lineBrake.$newLine
260
  if( isset($size['height']) ) $height = (int) $size['height']; else $height = 140;
261
  }
262
 
 
263
  if($this->pro){
264
  $this->getOrderBy($size);
265
  $this->getSource($size);
266
  }
267
 
 
268
  if($this->pro){
269
  $this->setColumns();
270
  } else {
291
 
292
  if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'border', true ) ){
293
  $this->rbsBoxStyle .= $this->addBorder('border-options');
294
+
295
  if( $this->pro && get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'hover-border', true ) ){
296
  $this->rbsBoxHoverStyle .= $this->getHoverBorder();
297
  }
299
 
300
  if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'shadow', true ) ){
301
  $this->rbsBoxStyle .=$this->addShadow('shadow-options');
302
+
303
  if ( $this->pro && get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'hover-shadow', true ) ){
304
  $this->rbsBoxHoverStyle .= $this->getHoverShadown();
305
  }
316
  $this->id = $this->options_id;
317
  }
318
 
 
319
  $this->selectImages->setSize( $width , $height, $this->thumbsource, $this->orderby );
320
 
 
321
  if ( $this->pro ) $this->setCCL();
322
 
323
  $this->selectImages->getImages();
342
  $this->helper->setOption( 'horizontalSpaceBetweenBoxes', 'int');
343
  $this->helper->setOption( 'verticalSpaceBetweenBoxes', 'int');
344
 
 
345
  if ( $this->pro ) $this->rbsOverlayStyle .= $this->getOverlayBg();
346
  else $this->rbsOverlayStyle .= 'background: rgba(7, 7, 7, 0.5);';
347
 
374
 
375
  if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'hover', true ) ) $this->hover = 1;
376
 
 
377
  if ( $this->pro ) $this->setHoverType();
378
 
379
  $this->linkIcon = $this->getTemplateItem( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'linkIcon', true ), 'rbsLinkIcon', 1 );
380
  $this->zoomIcon = $this->getTemplateItem( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'zoomIcon', true ), 'rbsZoomIcon', 1 , ($this->thumbClick?' rbs-lightbox':'') ); //, ' rbs-lightbox'
381
  $this->titleHover = $this->getTemplateItem( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'showTitle', true ), 'rbsTitle', '@TITLE@' );
382
 
 
383
  if ( $this->pro ) $this->setDescHover();
384
 
385
  if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxSocial', true ) ){
389
  $this->helper->setValue( 'pinterest', 'true', 'raw' );
390
  }
391
 
 
392
  if ( $this->pro && method_exists( $this ,'setLightboxBg') ){
393
  $this->setLightboxBg();
394
  }
400
  if(!get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxTitle', true )){
401
  $this->helper->setValue( 'hideTitle', 'true' );
402
  }
403
+
 
 
404
 
405
  if(!get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxClose', true )){
406
  $this->rbsCloseLightboxStyle = 'display:none;';
413
  }
414
 
415
 
 
416
  if(get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxDescPanel', true )){
417
  $this->helper->setValue( 'descBox', 'true' );
418
  $this->helper->setValue( 'descBoxClass', 'rbs_desc_panel_'.get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxDescClass', true ) );
419
  }
420
 
421
 
 
422
  $this->addJavaScriptStyle('rbsBox', '.rbs-img-container');
423
  $this->addJavaScriptStyle('rbsTitle','.rbsTitle',1);
424
  $this->addJavaScriptStyle('rbsDesc','.rbsDesc',1);
496
  break;
497
  }
498
 
499
+ if($descBoxData) $descBoxData = ' data-descbox="'.esc_attr($descBoxData).'" ';
500
  }
501
 
502
  $polaroidDesc = str_replace(
540
  $newLine = "\t";
541
  $lineBrake="\n";
542
  }
543
+ $lightboxText = esc_attr($lightboxText);
544
  $seo = get_option( ROBO_GALLERY_PREFIX.'seo', '' );
545
  if( $seo ){
546
  $this->seoContent .= ($seo==1 ? '<a href="'.$link.'" alt="'.$lightboxText.'" title="'.$lightboxText.'">' : '')
549
  }
550
 
551
  $tagId = '';
 
552
  for ($l=0; $l < count($img['tags']); $l++) {
 
553
  $tagId .= ' tag_id'.array_search($img['tags'][$l], $this->selectImages->tags ).' ';
554
  }
 
555
 
556
  $this->returnHtml .=
557
  '<div class="rbs-img category'.$img['catid'].' '.$tagId.'" '.( isset($img['col']) && $img['col'] ?' data-columns="'.$img['col'].'" ' :'').'>'.$lineBrake.$newLine
index.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Robo Gallery
4
- * Version: 2.5.0
5
  * By Robosoft
6
  *
7
  * Contact: http://robosoft.co
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.5.1
5
  * By Robosoft
6
  *
7
  * Contact: http://robosoft.co
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.6
7
- Stable tag: 2.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -232,6 +232,9 @@ If any problem occurs, please contact us.
232
 
233
  == Changelog ==
234
 
 
 
 
235
  = 2.5.0 =
236
  * Lightbox interface update
237
  * Added new lightbox counter template field
@@ -912,6 +915,9 @@ If any problem occurs, please contact us.
912
 
913
  == Upgrade Notice ==
914
 
 
 
 
915
  = 2.5.0 =
916
  Lightbox interface update
917
  Added new lightbox counter template field
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.6
7
+ Stable tag: 2.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
232
 
233
  == Changelog ==
234
 
235
+ = 2.5.1 =
236
+ * Fixed quotes parsing in image description and caption fields
237
+
238
  = 2.5.0 =
239
  * Lightbox interface update
240
  * Added new lightbox counter template field
915
 
916
  == Upgrade Notice ==
917
 
918
+ = 2.5.1 =
919
+ Fixed quotes parsing in image description and caption fields
920
+
921
  = 2.5.0 =
922
  Lightbox interface update
923
  Added new lightbox counter template field
robogallery.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Robo Gallery
4
  Plugin URI: http://robosoft.co/gallery
5
  Description: Gallery it's easy and elegant way to publish images on page. Responsive, stylish and simple gallery.
6
  Author: RoboSoft
7
- Version: 2.5.0
8
  Author URI: http://robosoft.co/gallery
9
  License: GPLv3 or later
10
  */
@@ -13,7 +13,7 @@ if(!defined('WPINC'))die;
13
  if(!defined("ABSPATH"))exit;
14
 
15
  define("ROBO_GALLERY", 1);
16
- define("ROBO_GALLERY_VERSION", '2.5.0');
17
 
18
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
19
 
4
  Plugin URI: http://robosoft.co/gallery
5
  Description: Gallery it's easy and elegant way to publish images on page. Responsive, stylish and simple gallery.
6
  Author: RoboSoft
7
+ Version: 2.5.1
8
  Author URI: http://robosoft.co/gallery
9
  License: GPLv3 or later
10
  */
13
  if(!defined("ABSPATH"))exit;
14
 
15
  define("ROBO_GALLERY", 1);
16
+ define("ROBO_GALLERY_VERSION", '2.5.1');
17
 
18
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
19