Gallery – Photo Gallery and Images Gallery - Version 1.4.4

Version Description

  • Updated image description processing code
  • Fixed HTML support in images description
  • Added more flexible HTML tags support in description
Download this release

Release Info

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

Code changes from version 1.4.3 to 1.4.4

cmb2/includes/CMB2_Sanitize.php CHANGED
@@ -81,10 +81,13 @@ class CMB2_Sanitize {
81
  }
82
 
83
  $sanitized_value = '';
 
84
  switch ( $this->field->type() ) {
85
  case 'wysiwyg':
86
  // $value = wp_kses( $this->value );
87
  // break;
 
 
88
  case 'textarea_small':
89
  $sanitized_value = $this->textarea( $this->value );
90
  break;
81
  }
82
 
83
  $sanitized_value = '';
84
+
85
  switch ( $this->field->type() ) {
86
  case 'wysiwyg':
87
  // $value = wp_kses( $this->value );
88
  // break;
89
+ case 'rbstextarea':
90
+ case 'textarea':
91
  case 'textarea_small':
92
  $sanitized_value = $this->textarea( $this->value );
93
  break;
includes/frontend/rbs_gallery_class.php CHANGED
@@ -451,11 +451,11 @@ class roboGallery extends roboGalleryUtils{
451
  if( $this->returnHtml ){
452
  $this->returnHtml =
453
  '<div style="'.$this->rbsMainDivStyle.'">'
454
- // .'<div style="'.$this->rbsMainDivStyle.'">'
455
- .($menu?$this->getMenu():'').
456
- '<div id="'.$this->galleryId.'" data-options="'.$this->galleryId.'" style="width:100%;" class="robo_gallery">'
457
- . $this->returnHtml
458
- .'</div>'
459
  // .'</div>'
460
  .'</div>'
461
  .'<script>'.$this->compileJavaScript().'</script>';
451
  if( $this->returnHtml ){
452
  $this->returnHtml =
453
  '<div style="'.$this->rbsMainDivStyle.'">'
454
+
455
+ .($menu?$this->getMenu():'').
456
+ '<div id="'.$this->galleryId.'" data-options="'.$this->galleryId.'" style="width:100%;" class="robo_gallery">'
457
+ . $this->returnHtml
458
+ .'</div>'
459
  // .'</div>'
460
  .'</div>'
461
  .'<script>'.$this->compileJavaScript().'</script>';
includes/options/rbs_gallery_options_hover.php CHANGED
@@ -194,10 +194,10 @@ $hover_group->add_field( array(
194
  'name' => __('Description Template', 'rbs_gallery' ),
195
  'desc' => '@TITLE@ <br/> @CAPTION@ <br/> @DESC@ <br/> @LINK@ ',
196
  'default' =>
197
- '<div class="media-box-title">@TITLE@</div>'."\n".
198
- '<div class="media-box-caption">@CAPTION@</div>'."\n".
199
- '<div class="media-box-text">@DESC@</div>'."\n".
200
- '<div class="media-box-more"><a href="@LINK@">Read more</a></div>'."\n",
201
  'id' => ROBO_GALLERY_PREFIX . 'desc_template',
202
  'type' => 'rbstextarea',
203
  'before_row' =>'
194
  'name' => __('Description Template', 'rbs_gallery' ),
195
  'desc' => '@TITLE@ <br/> @CAPTION@ <br/> @DESC@ <br/> @LINK@ ',
196
  'default' =>
197
+ '<div class="rbs-hover-title">@TITLE@</div>'."\n".
198
+ '<div class="rbs-hover-caption">@CAPTION@</div>'."\n".
199
+ '<div class="rbs-hover-text">@DESC@</div>'."\n".
200
+ '<div class="rbs-hover-more"><a href="@LINK@">Read more</a></div>'."\n",
201
  'id' => ROBO_GALLERY_PREFIX . 'desc_template',
202
  'type' => 'rbstextarea',
203
  'before_row' =>'
includes/options/rbs_gallery_options_polaroid.php CHANGED
@@ -26,7 +26,7 @@ $polaroid_group->add_field( array(
26
  'name' => __('Polaroid Style', 'rbs_gallery' ),
27
  'id' => ROBO_GALLERY_PREFIX . 'polaroidOn',
28
  'type' => 'switch',
29
- 'deffault' => rbs_gallery_set_checkbox_default_for_new_post(0),
30
  'depends' => '.rbs_polaroid_block',
31
  'bootstrap_style'=> 1,
32
  /* 'level' => !ROBO_GALLERY_PRO,*/
26
  'name' => __('Polaroid Style', 'rbs_gallery' ),
27
  'id' => ROBO_GALLERY_PREFIX . 'polaroidOn',
28
  'type' => 'switch',
29
+ 'default' => rbs_gallery_set_checkbox_default_for_new_post(0),
30
  'depends' => '.rbs_polaroid_block',
31
  'bootstrap_style'=> 1,
32
  /* 'level' => !ROBO_GALLERY_PRO,*/
includes/options/rbs_gallery_options_text.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Robo Gallery
4
+ * Version: 1.0
5
+ * By Robosoft
6
+ *
7
+ * Contact: http://robosoft.co
8
+ * Created: 2015
9
+ * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
10
+ *
11
+ * Copyright (c) 2014-2015, Robosoft. All rights reserved.
12
+ * Available only in http://robosoft.co/
13
+ */
14
+
15
+
16
+ $text_group = new_cmb2_box( array(
17
+ 'id' => ROBO_GALLERY_PREFIX . 'text_metabox',
18
+ 'title' => '<span class="dashicons dashicons-media-text"></span> '.__( 'Text Addons', 'rbs_gallery' ),
19
+ 'object_types' => array( ROBO_GALLERY_TYPE_POST ),
20
+ 'show_names' => false,
21
+ 'context' => 'side',
22
+ 'priority' => 'low',
23
+ 'closed' => rbs_gallery_set_checkbox_default_for_new_post(1),
24
+ ));
25
+
26
+ $text_group->add_field( array(
27
+ 'name' => __('Pre Text', 'rbs_gallery' ),
28
+ 'id' => ROBO_GALLERY_PREFIX . 'pretext',
29
+ 'type' => 'rbstextarea',
30
+ 'default' => '',
31
+ 'bootstrap_style'=> 1,
32
+
33
+ 'before_row' => '
34
+ <div class="rbs_block"><br/>',
35
+ 'after_row' => '
36
+ </div>',
37
+ ));
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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, robo gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.3
7
- Stable tag: 1.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -192,46 +192,46 @@ When you create new gallery or open already existent gallery for edit on the rig
192
 
193
  If you have some conflict in gallery back end you can sort it with new compatibility option. If combo box element do not drop down you can switch between classic and modern style, as result you can avoid conflict with another code.
194
 
195
- = How to change quality of the gallery thumbnails? =
196
-
197
- Quality of the gallery thumbnails could be easily changed in gallery size option / thumbnails options / source
198
-
199
- = Is it possible create gallery in Wordpress post with Gallery? =
200
 
201
- Yes, you can insert gallery into post with shortcode tag
202
 
203
  = How to customize hover effect? =
204
 
205
  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
206
 
 
 
 
 
207
  = How to change text below image in lightbox ? =
208
 
209
  In gallery setting you can select which text show below image in gallery lightbox. You can select Caption, Title or image Description as source for this field in gallery lightbox.
210
 
211
- = How to define video for some gallery image? =
212
 
213
- Every gallery image have additional fields where you can define custom link, title, description. One of the link option allow you to define link type, for example video link. All this options you can find in gallery images manager, inside general gallery settings
214
 
215
- = How to insert gallery into Wordpress page or post? =
216
 
217
- 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
218
 
219
  = How to define custom hover effect for some gallery thumbnail? =
220
 
221
  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.
222
 
223
- = How to generate shortcode for Wordpress page, post or widget? =
224
-
225
- 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
226
-
227
- = How I can create custom (grid) layout of the thumbnails? =
228
 
229
- In our gallery we implemented layout based on columns amount. So you can general amount of the columns in your gallery grid and define custom amount of the columns which every image gonna take. As result you can customize layout of the gallery grid
230
 
231
  = Do you have some limits for images types in gallery? =
232
 
233
  You can use any standard file type in our gallery: png, jpg, jpeg, gif
234
 
 
 
 
 
235
  = Where specify description of the gallery images? =
236
 
237
  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
@@ -240,10 +240,6 @@ When you open gallery settings inside you'll find images manager section. Images
240
 
241
  Yes, you can use generated direct link inside particular gallery settings
242
 
243
- = Do you have some limits for images amount in gallery? =
244
-
245
- No, we don't have any limits for amount of the images in gallery
246
-
247
  = How to make shadow for the gallery thumbnails? =
248
 
249
  Shadows of the thumbnails you can customize in gallery settings. With gallery settings you can change size , color and position of the gallery thumbnails shadow
@@ -256,6 +252,10 @@ No, we don't have any limits for image size in our gallery.
256
 
257
  In gallery settings we have few options which makes you able to select amount of the images for the first load and for load more action
258
 
 
 
 
 
259
  = How to customize border of the gallery thumbnails? =
260
 
261
  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
@@ -264,21 +264,21 @@ In gallery settings you can find general settings section where you can turn on/
264
 
265
  Every gallery image have additional fields where you can define custom link, title, description. All this options you can find in gallery images manager, inside general gallery settings
266
 
267
- = How to change spacing between thumbnails? =
268
 
269
- In gallery settings you can define horizontal and vertical paddings between gallery thumbnails
270
 
271
  = How to change font size of the gallery image caption? =
272
 
273
  In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
274
 
275
- = How to customize border of the gallery thumbnails? =
276
 
277
- 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
278
 
279
- = Is it possible to have different settings for hover and static interface elements? =
280
 
281
- Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
282
 
283
  = How to set description text below image in the lightbox? =
284
 
@@ -292,10 +292,6 @@ In lightbox section of the gallery settings you can find hide title option. If y
292
 
293
  In gallery settings you can find option to enable/disable lazy load, also there you'll have alot of additional options for customization of the loading process
294
 
295
- = How to customize gallery layouts for different screen resolutions? =
296
-
297
- In admin section of the gallery you'll find columns options which provide you advanced customization options for different resolutions. You can define some static size or auto size for every resolution.
298
-
299
  = How to define size of the gallery images thumbnails? =
300
 
301
  Our gallery is fully responsive and gallery thumbnails size depend of a lot of factors. Gallery calculate thumbnails automatically depend of the general gallery size and gallery layout settings. First of all you can define ratio values for gallery thumbnails. Size of the thumbnails could be selected from standard pre-defined wordpress sizes: thumbnail, medium, large, full
@@ -308,6 +304,10 @@ You can change size, color and style of gallery thumbnails borders and shadows.
308
 
309
  Yes, in gallery options you can turn on/off border option
310
 
 
 
 
 
311
  = How to make gallery thumbnails with rounded corners? =
312
 
313
  In gallery settings you can find section rounds where with special options you can define radius for the gallery thumbnails
@@ -562,6 +562,12 @@ If any problem occurs, please contact us.
562
 
563
  == Changelog ==
564
 
 
 
 
 
 
 
565
  = 1.4.3 =
566
  * Added new padding gallery options
567
  * Added left gallery padding value
@@ -732,6 +738,9 @@ If any problem occurs, please contact us.
732
 
733
  == Upgrade Notice ==
734
 
 
 
 
735
  = 1.4.3 =
736
  Added new padding gallery options. Added left, top, right and bottom gallery padding value
737
 
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, robo gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.3
7
+ Stable tag: 1.4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
192
 
193
  If you have some conflict in gallery back end you can sort it with new compatibility option. If combo box element do not drop down you can switch between classic and modern style, as result you can avoid conflict with another code.
194
 
195
+ = How to define video for some gallery image? =
 
 
 
 
196
 
197
+ Every gallery image have additional fields where you can define custom link, title, description. One of the link option allow you to define link type, for example video link. All this options you can find in gallery images manager, inside general gallery settings
198
 
199
  = How to customize hover effect? =
200
 
201
  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
202
 
203
+ = Is it possible create gallery in Wordpress post with Gallery? =
204
+
205
+ Yes, you can insert gallery into post with shortcode tag
206
+
207
  = How to change text below image in lightbox ? =
208
 
209
  In gallery setting you can select which text show below image in gallery lightbox. You can select Caption, Title or image Description as source for this field in gallery lightbox.
210
 
211
+ = How to generate shortcode for Wordpress page, post or widget? =
212
 
213
+ 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
214
 
215
+ = How to change quality of the gallery thumbnails? =
216
 
217
+ Quality of the gallery thumbnails could be easily changed in gallery size option / thumbnails options / source
218
 
219
  = How to define custom hover effect for some gallery thumbnail? =
220
 
221
  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.
222
 
223
+ = How to insert gallery into Wordpress page or post? =
 
 
 
 
224
 
225
+ 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
226
 
227
  = Do you have some limits for images types in gallery? =
228
 
229
  You can use any standard file type in our gallery: png, jpg, jpeg, gif
230
 
231
+ = How I can create custom (grid) layout of the thumbnails? =
232
+
233
+ In our gallery we implemented layout based on columns amount. So you can general amount of the columns in your gallery grid and define custom amount of the columns which every image gonna take. As result you can customize layout of the gallery grid
234
+
235
  = Where specify description of the gallery images? =
236
 
237
  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
240
 
241
  Yes, you can use generated direct link inside particular gallery settings
242
 
 
 
 
 
243
  = How to make shadow for the gallery thumbnails? =
244
 
245
  Shadows of the thumbnails you can customize in gallery settings. With gallery settings you can change size , color and position of the gallery thumbnails shadow
252
 
253
  In gallery settings we have few options which makes you able to select amount of the images for the first load and for load more action
254
 
255
+ = Do you have some limits for images amount in gallery? =
256
+
257
+ No, we don't have any limits for amount of the images in gallery
258
+
259
  = How to customize border of the gallery thumbnails? =
260
 
261
  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
264
 
265
  Every gallery image have additional fields where you can define custom link, title, description. All this options you can find in gallery images manager, inside general gallery settings
266
 
267
+ = Is it possible to have different settings for hover and static interface elements? =
268
 
269
+ Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
270
 
271
  = How to change font size of the gallery image caption? =
272
 
273
  In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
274
 
275
+ = How to change spacing between thumbnails? =
276
 
277
+ In gallery settings you can define horizontal and vertical paddings between gallery thumbnails
278
 
279
+ = How to customize border of the gallery thumbnails? =
280
 
281
+ 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
282
 
283
  = How to set description text below image in the lightbox? =
284
 
292
 
293
  In gallery settings you can find option to enable/disable lazy load, also there you'll have alot of additional options for customization of the loading process
294
 
 
 
 
 
295
  = How to define size of the gallery images thumbnails? =
296
 
297
  Our gallery is fully responsive and gallery thumbnails size depend of a lot of factors. Gallery calculate thumbnails automatically depend of the general gallery size and gallery layout settings. First of all you can define ratio values for gallery thumbnails. Size of the thumbnails could be selected from standard pre-defined wordpress sizes: thumbnail, medium, large, full
304
 
305
  Yes, in gallery options you can turn on/off border option
306
 
307
+ = How to customize gallery layouts for different screen resolutions? =
308
+
309
+ In admin section of the gallery you'll find columns options which provide you advanced customization options for different resolutions. You can define some static size or auto size for every resolution.
310
+
311
  = How to make gallery thumbnails with rounded corners? =
312
 
313
  In gallery settings you can find section rounds where with special options you can define radius for the gallery thumbnails
562
 
563
  == Changelog ==
564
 
565
+ = 1.4.4 =
566
+ * Updated image description processing code
567
+ * Fixed HTML support in images description
568
+ * Added more flexible HTML tags support in description
569
+
570
+
571
  = 1.4.3 =
572
  * Added new padding gallery options
573
  * Added left gallery padding value
738
 
739
  == Upgrade Notice ==
740
 
741
+ = 1.4.4 =
742
+ Added more flexible HTML tags support in description, fixed HTML processing in images description field
743
+
744
  = 1.4.3 =
745
  Added new padding gallery options. Added left, top, right and bottom gallery padding value
746
 
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.4.3
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
@@ -19,7 +19,7 @@
19
 
20
  if ( ! defined( 'WPINC' ) ) die;
21
  define("ROBO_GALLERY", 1);
22
- define("ROBO_GALLERY_VERSION", '1.4.3');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25
 
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.4.4
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
19
 
20
  if ( ! defined( 'WPINC' ) ) die;
21
  define("ROBO_GALLERY", 1);
22
+ define("ROBO_GALLERY_VERSION", '1.4.4');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25