Gallery – Photo Gallery and Images Gallery - Version 1.4.1

Version Description

  • Added new gallery align in content option
  • Added gallery center alignment
  • Updated gallery output workflow
Download this release

Release Info

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

Code changes from version 1.4.0 to 1.4.1

cmb2/fields/rbsradiobutton/index.html ADDED
File without changes
cmb2/fields/rbsradiobutton/rbs-radiobutton.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * Robo Gallery
5
+ * Version: 2.0
6
+ * By Robosoft
7
+ *
8
+ * Contact: http://robosoft.co
9
+ * Created: 2015
10
+ * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
11
+ *
12
+ * Copyright (c) 2014-2015, Robosoft. All rights reserved.
13
+ * Available only in http://robosoft.co/
14
+ */
15
+
16
+ function rbsradiobutton_getOptions( $options, $name, $value = false ) {
17
+ if( !isset($options) || !count($options) ) return '';
18
+ $state_options = '';
19
+ foreach ( $options as $abrev => $state ) {
20
+ $state_options .=
21
+ '<label class="btn btn-info '.($value==$abrev?'active':'').'">'
22
+ .'<input type="radio" autocomplete="off" name="'.$name.'" '
23
+ .($abrev==$value?' checked ':'').' '
24
+ .' value="'.$abrev.'"'
25
+ .'> '.$state
26
+ .'</label>';
27
+ }
28
+ return $state_options;
29
+ }
30
+
31
+ function rbsradiobutton_field( $metakey, $post_id = 0 ) {
32
+ echo get_rbsradiobutton_field( $metakey, $post_id );
33
+ }
34
+
35
+ function rbsradiobutton_field_callback( $field, $value, $object_id, $object_type, $field_type_object ) {
36
+
37
+ $level = $field->args('level')?1:0;
38
+
39
+ $value = $value?$value:$field->args('default');
40
+
41
+ ?>
42
+ <div class="form-horizontal">
43
+
44
+ <div class="<?php echo $field_type_object->_id( 'optionsBlok' );?>">
45
+ <div class="form-group">
46
+ <label class="col-sm-2 control-label" for="<?php echo $field_type_object->_id( ); ?>'"><?php echo esc_html($field->args('name') ); ?></label>
47
+ <div class="col-sm-<?php echo $level?'8 twoj_disabled':'10'; ?>">
48
+
49
+ <div class="btn-group " data-toggle="buttons">
50
+ <?php
51
+ echo rbsradiobutton_getOptions( $field->args('options'), $field_type_object->_name(), $value );
52
+ ?>
53
+ </div>
54
+ </div>
55
+
56
+ <?php if($level){ ?>
57
+ <div class="col-sm-<?php echo $field->args('small')?'6':'2'; ?> rbs-block-pro">
58
+ <?php echo ROBO_GALLERY_LABEL_PRO; ?>
59
+ </div>
60
+ <?php } ?>
61
+
62
+ </div>
63
+
64
+
65
+ </div>
66
+ </div>
67
+ <?php
68
+ }
69
+ add_filter( 'cmb2_render_rbsradiobutton', 'rbsradiobutton_field_callback', 10, 5 );
includes/frontend/rbs_gallery_class.php CHANGED
@@ -376,6 +376,10 @@ class roboGallery extends roboGalleryUtils{
376
 
377
  $this->rbsMainDivStyle = 'width:'.$widthSizeValue.';';
378
 
 
 
 
 
379
 
380
  if(count($this->selectImages->imgArray)){
381
 
376
 
377
  $this->rbsMainDivStyle = 'width:'.$widthSizeValue.';';
378
 
379
+ switch( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'align', true ) ){
380
+ case 'center': $this->rbsMainDivStyle .= 'margin: 0 auto;'; break;
381
+ case '': default:
382
+ }
383
 
384
  if(count($this->selectImages->imgArray)){
385
 
includes/options/rbs_gallery_options_size.php CHANGED
@@ -36,6 +36,17 @@ $size_group->add_field( array(
36
  <div class="rbs_block">'
37
  ));
38
 
 
 
 
 
 
 
 
 
 
 
 
39
  $size_group->add_field( array(
40
  'name' => __('Thumbs Options', 'rbs_gallery' ),
41
  'id' => ROBO_GALLERY_PREFIX . 'thumb-size-options',
36
  <div class="rbs_block">'
37
  ));
38
 
39
+ $size_group->add_field( array(
40
+ 'name' => __('Align','rbs_gallery'),
41
+ 'default' => '',
42
+ 'options' => array(
43
+ '' => 'Disable',
44
+ 'center' => 'Center',
45
+ ),
46
+ 'id' => ROBO_GALLERY_PREFIX .'align',
47
+ 'type' => 'rbsradiobutton',
48
+ ));
49
+
50
  $size_group->add_field( array(
51
  'name' => __('Thumbs Options', 'rbs_gallery' ),
52
  'id' => ROBO_GALLERY_PREFIX . 'thumb-size-options',
includes/rbs_gallery_init.php CHANGED
@@ -132,6 +132,7 @@ if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST && ( rbs_galle
132
  'font/cmb-field-font.php',
133
  'rbsgallery/cmb-field-rbsgallery.php',
134
  'multisize/rbs-multiSize.php',
 
135
 
136
 
137
  ), ROBO_GALLERY_CMB_FILEDS_PATH);
132
  'font/cmb-field-font.php',
133
  'rbsgallery/cmb-field-rbsgallery.php',
134
  'multisize/rbs-multiSize.php',
135
+ 'rbsradiobutton/rbs-radiobutton.php',
136
 
137
 
138
  ), ROBO_GALLERY_CMB_FILEDS_PATH);
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.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -205,22 +205,22 @@ In gallery settings you can find hover type options. In settings of the gallery
205
 
206
  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.
207
 
208
- = How I can create custom (grid) layout of the thumbnails? =
209
-
210
- 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
211
-
212
  = How to define video for some gallery image? =
213
 
214
  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
215
 
216
- = How to generate shortcode for Wordpress page, post or widget? =
217
 
218
- 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
219
 
220
  = How to insert gallery into Wordpress page or post? =
221
 
222
  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
223
 
 
 
 
 
224
  = How to define custom hover effect for some gallery thumbnail? =
225
 
226
  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.
@@ -229,38 +229,38 @@ When you open gallery media manager you'll see there list of the gallery images.
229
 
230
  Yes, you can use generated direct link inside particular gallery settings
231
 
232
- = Where specify description of the gallery images? =
233
-
234
- 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
235
-
236
  = Do you have some limits for images types in gallery? =
237
 
238
  You can use any standard file type in our gallery: png, jpg, jpeg, gif
239
 
240
- = Do you have some limit for images size in gallery? =
241
 
242
- No, we don't have any limits for image size in our gallery.
243
 
244
  = How to customize border of the gallery thumbnails? =
245
 
246
  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
247
 
248
- = Do you have some limits for images amount in gallery? =
249
 
250
- No, we don't have any limits for amount of the images in gallery
251
 
252
  = How to change spacing between thumbnails? =
253
 
254
  In gallery settings you can define horizontal and vertical paddings between gallery thumbnails
255
 
256
- = How to set description text below image in the lightbox? =
257
 
258
- In gallery settings you can find lightbox section and if you need to show description of the images below images in the lightbox you need to select text source in lightbox settings from defined values.
259
 
260
  = Is it possible to have different settings for hover and static interface elements? =
261
 
262
  Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
263
 
 
 
 
 
264
  = How to change font size of the gallery image caption? =
265
 
266
  In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
@@ -269,6 +269,10 @@ In gallery settings you can enable custom caption settings where you can customi
269
 
270
  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
271
 
 
 
 
 
272
  = How to customize gallery layouts for different screen resolutions? =
273
 
274
  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.
@@ -277,22 +281,18 @@ In admin section of the gallery you'll find columns options which provide you ad
277
 
278
  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.
279
 
280
- = How to customize border of the gallery thumbnails? =
281
-
282
- 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
283
-
284
  = Is it possible to turn off border of the gallery thumbnails? =
285
 
286
  Yes, in gallery options you can turn on/off border option
287
 
288
- = How to change amount of images loading on gallery page? =
289
-
290
- 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
291
-
292
  = How to enable lazy load in gallery options? =
293
 
294
  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
295
 
 
 
 
 
296
  = How to define size of the gallery images thumbnails? =
297
 
298
  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
@@ -559,6 +559,11 @@ If any problem occurs, please contact us.
559
 
560
  == Changelog ==
561
 
 
 
 
 
 
562
  = 1.4.0 =
563
  * Added new gallery width option
564
  * Gallery width values in pixels
@@ -712,6 +717,9 @@ If any problem occurs, please contact us.
712
 
713
  == Upgrade Notice ==
714
 
 
 
 
715
  = 1.4.0 =
716
  Added new gallery width option, gallery width values in pixels and percents
717
 
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.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
205
 
206
  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.
207
 
 
 
 
 
208
  = How to define video for some gallery image? =
209
 
210
  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
211
 
212
+ = How I can create custom (grid) layout of the thumbnails? =
213
 
214
+ 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
215
 
216
  = How to insert gallery into Wordpress page or post? =
217
 
218
  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
219
 
220
+ = How to generate shortcode for Wordpress page, post or widget? =
221
+
222
+ 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
223
+
224
  = How to define custom hover effect for some gallery thumbnail? =
225
 
226
  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.
229
 
230
  Yes, you can use generated direct link inside particular gallery settings
231
 
 
 
 
 
232
  = Do you have some limits for images types in gallery? =
233
 
234
  You can use any standard file type in our gallery: png, jpg, jpeg, gif
235
 
236
+ = Where specify description of the gallery images? =
237
 
238
+ 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
239
 
240
  = How to customize border of the gallery thumbnails? =
241
 
242
  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
243
 
244
+ = Do you have some limit for images size in gallery? =
245
 
246
+ No, we don't have any limits for image size in our gallery.
247
 
248
  = How to change spacing between thumbnails? =
249
 
250
  In gallery settings you can define horizontal and vertical paddings between gallery thumbnails
251
 
252
+ = Do you have some limits for images amount in gallery? =
253
 
254
+ No, we don't have any limits for amount of the images in gallery
255
 
256
  = Is it possible to have different settings for hover and static interface elements? =
257
 
258
  Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
259
 
260
+ = How to set description text below image in the lightbox? =
261
+
262
+ In gallery settings you can find lightbox section and if you need to show description of the images below images in the lightbox you need to select text source in lightbox settings from defined values.
263
+
264
  = How to change font size of the gallery image caption? =
265
 
266
  In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
269
 
270
  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
271
 
272
+ = How to customize border of the gallery thumbnails? =
273
+
274
+ 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
275
+
276
  = How to customize gallery layouts for different screen resolutions? =
277
 
278
  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.
281
 
282
  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.
283
 
 
 
 
 
284
  = Is it possible to turn off border of the gallery thumbnails? =
285
 
286
  Yes, in gallery options you can turn on/off border option
287
 
 
 
 
 
288
  = How to enable lazy load in gallery options? =
289
 
290
  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
291
 
292
+ = How to change amount of images loading on gallery page? =
293
+
294
+ 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
295
+
296
  = How to define size of the gallery images thumbnails? =
297
 
298
  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
559
 
560
  == Changelog ==
561
 
562
+ = 1.4.1 =
563
+ * Added new gallery align in content option
564
+ * Added gallery center alignment
565
+ * Updated gallery output workflow
566
+
567
  = 1.4.0 =
568
  * Added new gallery width option
569
  * Gallery width values in pixels
717
 
718
  == Upgrade Notice ==
719
 
720
+ = 1.4.1 =
721
+ Added new gallery align in content option, added gallery center alignment, updated output workflow
722
+
723
  = 1.4.0 =
724
  Added new gallery width option, gallery width values in pixels and percents
725
 
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.0
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.0');
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.1
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.1');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25