Gallery – Photo Gallery and Images Gallery - Version 1.1.4

Version Description

  • Added hide image title in lightbox option
  • ode optimization
Download this release

Release Info

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

Code changes from version 1.1.3 to 1.1.4

README.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Gallery ===
2
  Contributors: robosoft
3
  Donate link: http://www.robosoft.co/robogallery
4
- Tags: gallery, add gallery, photo gallery, images gallery, media gallery, responsive gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, album, best gallery, best gallery plugin, responsive galleries, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image, image album, image gallery, image gallery plugin, image lightbox, image slider, image slideshow, images, jquery, jquery gallery, links, media, multiple pictures, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, slideshow, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries
5
  Requires at least: 3.3
6
  Tested up to: 4.2.4
7
- Stable tag: 1.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -153,6 +153,10 @@ Our gallery is fully responsive and gallery thumbnails size depend of a lot of f
153
 
154
  In gallery settings you can find hover type options. In settings of the gallery you can select custom hover effect settings or even template for customization of the gallery thumbnails hover
155
 
 
 
 
 
156
  = Where specify description of the gallery images? =
157
 
158
  When you open gallery settings inside you'll find images manager section. Images manager make you able to add/edit descriptions and titles of every gallery image
@@ -165,6 +169,10 @@ In our gallery we implemented layout based on columns amount. So you can general
165
 
166
  Yes, in gallery options you can turn on/off border option
167
 
 
 
 
 
168
  = How to customize border of the gallery thumbnails? =
169
 
170
  In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
@@ -225,26 +233,6 @@ Every gallery image have additional fields where you can define custom link, tit
225
 
226
  In gallery settings you can find images manager where you can change settings of every image, one of the option it's caption of the image
227
 
228
- = Is it possible to use HTML in image description ? =
229
-
230
- Yes, you can use HTML tags inside gallery image description field
231
-
232
- = How to change font size of the gallery image caption? =
233
-
234
- In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
235
-
236
- = How to change font color of the gallery image caption? =
237
-
238
- In gallery settings you can enable custom caption settings where you can customize font color and see results in live preview
239
-
240
- = How to change font style of the gallery image caption? =
241
-
242
- In gallery settings you can enable custom caption settings where you can customize font style and see results in live preview
243
-
244
- = How to change font size of the gallery image description text? =
245
-
246
- In gallery settings, when enabled custom hover settings you can customize style of the gallery image description text. In this settings you can change size of the text
247
-
248
  = How to change font color of the gallery image description text? =
249
 
250
  In gallery settings, when enabled custom hover settings you can customize style of the gallery image description text. In this settings you can change color of the text
@@ -345,50 +333,6 @@ In build library of the icons in gallery you can find 533 icons
345
 
346
  In our gallery we have 2 buttons for every gallery thumbnail. Zoom button and link button.
347
 
348
- = Do you have some limits for images amount in gallery? =
349
-
350
- No, we don't have any limits for amount of the images in gallery
351
-
352
- = Do you have some limit for images size in gallery? =
353
-
354
- No, we don't have any limits for image size in our gallery.
355
-
356
- = Do you have some limits for images types in gallery? =
357
-
358
- You can use any standard file type in our gallery: png, jpg, jpeg, gif
359
-
360
- = Is it possible create gallery in Wordpress post with Gallery? =
361
-
362
- Yes, you can insert gallery into post with shortcode tag
363
-
364
- = Is it possible create gallery on Wordpress page with Gallery? =
365
-
366
- Yes, you can insert gallery into page with shortcode tag
367
-
368
- = Is it possible create gallery in Wordpress widget with Gallery? =
369
-
370
- Yes, you can insert gallery into widget with shortcode tag
371
-
372
- = How to insert gallery into Wordpress page or post? =
373
-
374
- When you create gallery in plugin galleries manager you can go to the post or page editor and there using special wizard button insert gallery into your wordpress post or page. Another way you can insert your gallery manually using shortcode, which you can find in gallery edit mode in shortcode section on the right side of the gallery settings
375
-
376
- = Is it possible to create direct link on the front end to the gallery? =
377
-
378
- Yes, you can use generated direct link inside particular gallery settings
379
-
380
- = How to generate shortcode for Wordpress page, post or widget? =
381
-
382
- First of all you can copy shortcode inside gallery settings , in separate shortcode block. Another way generate shortcode directly in post or page edit mode. You can find wizard button on top of content editor
383
-
384
- = How to define custom hover effect for some gallery thumbnail? =
385
-
386
- When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have custom effect field where you can select different hover effect for every image of the gallery.
387
-
388
- = Is it possible to create target blank links? =
389
-
390
- Yes. When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have target blank field below link field of the gallery image.
391
-
392
  = Is it possible to insert video as gallery link? =
393
 
394
  Yes. When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have video link field in gallery image options, where you can define some custom link to the online video.
@@ -503,6 +447,10 @@ If any problem occurs, please contact us.
503
 
504
  == Changelog ==
505
 
 
 
 
 
506
  = 1.1.3 =
507
  * Added new compatibility settings for backend interface element to avoid conflicts
508
 
@@ -557,6 +505,9 @@ If any problem occurs, please contact us.
557
 
558
  == Upgrade Notice ==
559
 
 
 
 
560
  = 1.1.3 =
561
  Added new compatibility settings for backend interface element to avoid conflicts
562
 
1
  === Gallery ===
2
  Contributors: robosoft
3
  Donate link: http://www.robosoft.co/robogallery
4
+ Tags: robo, robo gallery, gallery, galleries, image, images, image gallery, photo, photos, photo gallery, picture, pictures, picture gallery, album, albums, photo albums, image album, media, media gallery, thumbnails, thumbnail gallery, thumbnail galleries, slideshow, slideshows, slideshow gallery, slideshow galleries, lightbox, responsive, responsive gallery, responsive galleries, wordpress responsive gallery, add gallery, images gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, best gallery, best gallery plugin, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image gallery plugin, image lightbox, image slider, image slideshow, jquery, jquery gallery, links, multiple pictures, page, pagination gallery, pagination portfolio, photo album, photoalbum, photogallery, photoset, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries
5
  Requires at least: 3.3
6
  Tested up to: 4.2.4
7
+ Stable tag: 1.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
153
 
154
  In gallery settings you can find hover type options. In settings of the gallery you can select custom hover effect settings or even template for customization of the gallery thumbnails hover
155
 
156
+ = Do you have some limits for images amount in gallery? =
157
+
158
+ No, we don't have any limits for amount of the images in gallery
159
+
160
  = Where specify description of the gallery images? =
161
 
162
  When you open gallery settings inside you'll find images manager section. Images manager make you able to add/edit descriptions and titles of every gallery image
169
 
170
  Yes, in gallery options you can turn on/off border option
171
 
172
+ = How to hide titles of the gallery image in lightbox ? =
173
+
174
+ In lightbox section of the gallery settings you can find hide title option. If you enable it titles of the gallery images in lightbox will be turned off.
175
+
176
  = How to customize border of the gallery thumbnails? =
177
 
178
  In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
233
 
234
  In gallery settings you can find images manager where you can change settings of every image, one of the option it's caption of the image
235
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  = How to change font color of the gallery image description text? =
237
 
238
  In gallery settings, when enabled custom hover settings you can customize style of the gallery image description text. In this settings you can change color of the text
333
 
334
  In our gallery we have 2 buttons for every gallery thumbnail. Zoom button and link button.
335
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
336
  = Is it possible to insert video as gallery link? =
337
 
338
  Yes. When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have video link field in gallery image options, where you can define some custom link to the online video.
447
 
448
  == Changelog ==
449
 
450
+ = 1.1.4 =
451
+ * Added hide image title in lightbox option
452
+ * Сode optimization
453
+
454
  = 1.1.3 =
455
  * Added new compatibility settings for backend interface element to avoid conflicts
456
 
505
 
506
  == Upgrade Notice ==
507
 
508
+ = 1.1.4 =
509
+ Added hide image title in lightbox option
510
+
511
  = 1.1.3 =
512
  Added new compatibility settings for backend interface element to avoid conflicts
513
 
cmb2/fields/colums/cmb-field-colums.php CHANGED
@@ -35,8 +35,7 @@ function jt_cmb2_render_colums_field_callback( $field, $value, $object_id, $obje
35
  $value['autowidth3'] = 1;
36
  $value['autowidth'] = 1;
37
  }
38
-
39
- echo "<script> var ROBO_GALLERY_PRO = ".ROBO_GALLERY_PRO.";</script>";
40
  ?>
41
  <div class="form-horizontal">
42
 
35
  $value['autowidth3'] = 1;
36
  $value['autowidth'] = 1;
37
  }
38
+
 
39
  ?>
40
  <div class="form-horizontal">
41
 
cmb2/fields/toolbox/cmb-field-toolbox.php CHANGED
@@ -23,8 +23,9 @@ class RBS_TOOLBOX {
23
  }
24
 
25
  public function rbs_setup_admin_script(){
26
- echo "<script>"
27
- ."</script>";
 
28
  }
29
 
30
  public function rbs_cmb2_render_toolbox_field_callback(){}
23
  }
24
 
25
  public function rbs_setup_admin_script(){
26
+ echo '<script>'
27
+ .'var ROBO_GALLERY_PRO = '.ROBO_GALLERY_PRO.';'
28
+ .'</script>';
29
  }
30
 
31
  public function rbs_cmb2_render_toolbox_field_callback(){}
includes/frontend/rbs_gallery_class.php CHANGED
@@ -44,6 +44,7 @@ class roboGallery extends roboGalleryUtils{
44
  public $rbsLightboxStyle = '';
45
  public $rbsTextLightboxStyle = '';
46
 
 
47
 
48
  public $javaScript = '';
49
  public $javaScriptStyle = '';
@@ -120,24 +121,7 @@ class roboGallery extends roboGalleryUtils{
120
  }
121
  }
122
 
123
- public function addWidth( $colums, $index ){
124
- $ret = array();
125
- if( isset($colums['autowidth'.$index]) ){
126
- $ret[] = '"columnWidth": "auto"';
127
- if($colums['colums'.$index]) $ret[] = '"columns":'.$colums['colums'.$index];
128
- } elseif($colums['width'.$index]){
129
- $ret[] = '"columnWidth": '.$colums['width'.$index];
130
- }
131
- if( count($ret) ){
132
- switch ($index) {
133
- case '1': $r = '960'; break;
134
- case '2': $r = '650'; break;
135
- case '3': $r = '450'; break;
136
- }
137
- $ret[] = '"maxWidth": '.$r;
138
- return '{'.implode( ' , ', $ret ).'}';
139
- } else return '';
140
- }
141
 
142
  public function addBorder($nameOptions = ''){
143
  $border = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.$nameOptions, true );
@@ -306,7 +290,11 @@ class roboGallery extends roboGalleryUtils{
306
  /* v 1.0.2 */
307
  $lightboxColor = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxColor', true );
308
  if($lightboxColor) $this->rbsTextLightboxStyle .= 'color: '.$lightboxColor.';';
309
- $this->addJavaScriptStyle('rbsTextLightbox','body .mfp-title, body .mfp-counter',2);
 
 
 
 
310
 
311
 
312
  $this->addJavaScriptStyle('rbsBox', '.rbs-img-container');
@@ -317,6 +305,9 @@ class roboGallery extends roboGalleryUtils{
317
  $this->addJavaScriptStyle('rbsZoomIcon','.rbsZoomIcon',1);
318
  $this->addJavaScriptStyle('rbsImageLoading','.image-with-dimensions',0);
319
 
 
 
 
320
  if(count($this->selectImages->imgArray)){
321
  $this->robo_gallery_styles();
322
  $this->robo_gallery_scripts();
@@ -335,8 +326,7 @@ class roboGallery extends roboGalleryUtils{
335
  ),
336
  $polaroid_template
337
  );
338
- /*class="rbs-lightbox"*/
339
- //echo $img['effect'];
340
  $this->returnHtml .= '
341
  <div class="rbs-img category'.$img['catid'].'" '.( isset($img['col']) && $img['col'] ?' data-columns="'.$img['col'].'" ' :'').'>
342
  <div class="rbs-img-image rbs-lightbox" '.( isset($img['effect']) && $img['effect'] ?' data-overlay-effect="'.$img['effect'].'" ' :'').' >
@@ -346,7 +336,7 @@ class roboGallery extends roboGalleryUtils{
346
  </div>
347
  '.($polaroidDesc && $polaroidOn?'<div class="rbs-img-content" '.($polaroidStyle?' style="'.$polaroidStyle.'" ':'').'>'.$polaroidDesc.'</div>':'').'
348
  </div>';
349
- }//class="'.(!$this->hover|| 2==3?' rbs-lightbox':'').'" //data-overlay-effect="push-up"
350
  }
351
  if( $this->returnHtml ){
352
  $this->returnHtml =
@@ -356,9 +346,7 @@ class roboGallery extends roboGalleryUtils{
356
  .'</div>'
357
  .'<script>'.$this->compileJavaScript().'</script>';
358
  }
359
-
360
  return $this->returnHtml;
361
-
362
  }
363
 
364
 
44
  public $rbsLightboxStyle = '';
45
  public $rbsTextLightboxStyle = '';
46
 
47
+ public $rbsTitleLightboxStyle = '';
48
 
49
  public $javaScript = '';
50
  public $javaScriptStyle = '';
121
  }
122
  }
123
 
124
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
 
126
  public function addBorder($nameOptions = ''){
127
  $border = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.$nameOptions, true );
290
  /* v 1.0.2 */
291
  $lightboxColor = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxColor', true );
292
  if($lightboxColor) $this->rbsTextLightboxStyle .= 'color: '.$lightboxColor.';';
293
+
294
+ if(!get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxTitle', true )){
295
+ $this->rbsTitleLightboxStyle .= 'display: none;';
296
+ }
297
+
298
 
299
 
300
  $this->addJavaScriptStyle('rbsBox', '.rbs-img-container');
305
  $this->addJavaScriptStyle('rbsZoomIcon','.rbsZoomIcon',1);
306
  $this->addJavaScriptStyle('rbsImageLoading','.image-with-dimensions',0);
307
 
308
+ $this->addJavaScriptStyle('rbsTitleLightbox','body .mfp-title',2);
309
+ $this->addJavaScriptStyle('rbsTextLightbox','body .mfp-title, body .mfp-counter',2);
310
+
311
  if(count($this->selectImages->imgArray)){
312
  $this->robo_gallery_styles();
313
  $this->robo_gallery_scripts();
326
  ),
327
  $polaroid_template
328
  );
329
+
 
330
  $this->returnHtml .= '
331
  <div class="rbs-img category'.$img['catid'].'" '.( isset($img['col']) && $img['col'] ?' data-columns="'.$img['col'].'" ' :'').'>
332
  <div class="rbs-img-image rbs-lightbox" '.( isset($img['effect']) && $img['effect'] ?' data-overlay-effect="'.$img['effect'].'" ' :'').' >
336
  </div>
337
  '.($polaroidDesc && $polaroidOn?'<div class="rbs-img-content" '.($polaroidStyle?' style="'.$polaroidStyle.'" ':'').'>'.$polaroidDesc.'</div>':'').'
338
  </div>';
339
+ }
340
  }
341
  if( $this->returnHtml ){
342
  $this->returnHtml =
346
  .'</div>'
347
  .'<script>'.$this->compileJavaScript().'</script>';
348
  }
 
349
  return $this->returnHtml;
 
350
  }
351
 
352
 
includes/frontend/rbs_gallery_class_utils.php CHANGED
@@ -81,6 +81,25 @@ class roboGalleryUtils extends roboGalleryParent{
81
 
82
  }
83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  public function getThumbParams( ){
85
 
86
  }
81
 
82
  }
83
 
84
+ public function addWidth( $colums, $index ){
85
+ $ret = array();
86
+ if( isset($colums['autowidth'.$index]) ){
87
+ $ret[] = '"columnWidth": "auto"';
88
+ if($colums['colums'.$index]) $ret[] = '"columns":'.$colums['colums'.$index];
89
+ } elseif($colums['width'.$index]){
90
+ $ret[] = '"columnWidth": '.$colums['width'.$index];
91
+ }
92
+ if( count($ret) ){
93
+ switch ($index) {
94
+ case '1': $r = '960'; break;
95
+ case '2': $r = '650'; break;
96
+ case '3': $r = '450'; break;
97
+ }
98
+ $ret[] = '"maxWidth": '.$r;
99
+ return '{'.implode( ' , ', $ret ).'}';
100
+ } else return '';
101
+ }
102
+
103
  public function getThumbParams( ){
104
 
105
  }
includes/options/rbs_gallery_options_lightbox.php CHANGED
@@ -26,13 +26,22 @@ $lightbox_group->add_field( array(
26
  'name' => __('Social Buttons', 'rbs_gallery' ),
27
  'id' => ROBO_GALLERY_PREFIX . 'lightboxSocial',
28
  'type' => 'switch',
29
- 'deffault' => rbs_gallery_set_checkbox_default_for_new_post(0),
30
  'bootstrap_style'=> 1,
31
  'level' => !ROBO_GALLERY_PRO,
32
  'before_row' => '
33
  <div class="rbs_block"><br/>',
34
  ));
35
 
 
 
 
 
 
 
 
 
 
36
  $lightbox_group->add_field( array(
37
  'name' => __( 'Text Color', 'rbs_gallery' ),
38
  'id' => ROBO_GALLERY_PREFIX.'lightboxColor',
26
  'name' => __('Social Buttons', 'rbs_gallery' ),
27
  'id' => ROBO_GALLERY_PREFIX . 'lightboxSocial',
28
  'type' => 'switch',
29
+ 'default' => rbs_gallery_set_checkbox_default_for_new_post(0),
30
  'bootstrap_style'=> 1,
31
  'level' => !ROBO_GALLERY_PRO,
32
  'before_row' => '
33
  <div class="rbs_block"><br/>',
34
  ));
35
 
36
+ $lightbox_group->add_field( array(
37
+ 'name' => __('Show Title', 'rbs_gallery' ),
38
+ 'id' => ROBO_GALLERY_PREFIX . 'lightboxTitle',
39
+ 'type' => 'switch',
40
+ 'default' => rbs_gallery_set_checkbox_default_for_new_post(1),
41
+ 'bootstrap_style'=> 1,
42
+
43
+ ));
44
+
45
  $lightbox_group->add_field( array(
46
  'name' => __( 'Text Color', 'rbs_gallery' ),
47
  'id' => ROBO_GALLERY_PREFIX.'lightboxColor',
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: 1.1.3
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
  //define( 'WP_DEBUG', true );
22
  define(ROBO_GALLERY, 1);
23
- define(ROBO_GALLERY_VERSION, '1.1.2');
24
 
25
  define(ROBO_GALLERY_PATH, plugin_dir_path( __FILE__ ));
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: 1.1.4
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
20
  if ( ! defined( 'WPINC' ) ) die;
21
  //define( 'WP_DEBUG', true );
22
  define(ROBO_GALLERY, 1);
23
+ define(ROBO_GALLERY_VERSION, '1.1.4');
24
 
25
  define(ROBO_GALLERY_PATH, plugin_dir_path( __FILE__ ));
26