Gallery – Photo Gallery and Images Gallery - Version 1.5.5

Version Description

  • New options for post generator
  • Added new section with the list of the posts for current gallery
  • Edit mode for post list in generator section
Download this release

Release Info

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

Code changes from version 1.5.4 to 1.5.5

includes/extensions/rbs_create_post_ajax.php CHANGED
@@ -100,8 +100,8 @@ if(!function_exists('rbs_ajax_create_article')){
100
 
101
  if(!$posts_id) $posts_id = array();
102
  else $posts_id = json_decode($posts_id, true);
103
-
104
- $posts_id[] = $Poster->PC_current_post_id;
105
 
106
  update_post_meta($galleryid, 'rbs_gallery_id', json_encode($posts_id, JSON_FORCE_OBJECT ));
107
 
@@ -115,10 +115,10 @@ if(!function_exists('rbs_ajax_create_article')){
115
  } else {
116
  echo '<h3>'.__('Post ','rbs_gallery').'"'.$title.'"'.__(' created','rbs_gallery').'</h3>';
117
  echo '<p>
118
- <a href="'.esc_url( get_edit_post_link($Poster->PC_current_post_id) ).'" class="button button-small" target="_blank">
119
  '.__('Edit','rbs_gallery')
120
  .'</a>
121
- <a href="'.esc_url( get_permalink($Poster->PC_current_post_id) ).'" class="button button-small" target="_blank">
122
  '.__('Preview','rbs_gallery')
123
  .'</a>
124
  </p>';
@@ -129,4 +129,34 @@ if(!function_exists('rbs_ajax_create_article')){
129
  }
130
  die();
131
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  }
100
 
101
  if(!$posts_id) $posts_id = array();
102
  else $posts_id = json_decode($posts_id, true);
103
+ $postId = $Poster->PC_current_post_id;
104
+ $posts_id[] = $postId;
105
 
106
  update_post_meta($galleryid, 'rbs_gallery_id', json_encode($posts_id, JSON_FORCE_OBJECT ));
107
 
115
  } else {
116
  echo '<h3>'.__('Post ','rbs_gallery').'"'.$title.'"'.__(' created','rbs_gallery').'</h3>';
117
  echo '<p>
118
+ <a href="'.esc_url( get_edit_post_link( $postId ) ).'" class="button button-small" target="_blank">
119
  '.__('Edit','rbs_gallery')
120
  .'</a>
121
+ <a href="'.esc_url( get_permalink( $postId ) ).'" class="button button-small" target="_blank">
122
  '.__('Preview','rbs_gallery')
123
  .'</a>
124
  </p>';
129
  }
130
  die();
131
  }
132
+ }
133
+
134
+
135
+
136
+ if(!function_exists('rbs_ajax_posts_list')){
137
+ function rbs_ajax_posts_list(){
138
+
139
+ if( !isset($_POST['galleryid']) || !(int)$_POST['galleryid'] ){
140
+ echo '<p><strong>'.__('Error: ','rbs_gallery').'</strong><br><p>'._e('Empty gallery ID','rbs_gallery').'</p>';
141
+ return ;
142
+ } ;
143
+ $posts = get_post_meta( (int) $_POST['galleryid'], 'rbs_gallery_id' , true);
144
+
145
+ $posts = json_decode($posts, true);
146
+ echo '<table class="widefat importers striped" style="width:95%;">';
147
+ for ($i=0; $i < count($posts); $i++) {
148
+ if( !$posts[$i] ) continue ;
149
+ $post_info = get_post( $posts[$i] );
150
+ if( gettype($post_info)!='object' ) {
151
+ echo '<p><strong>'.__('Error: ','rbs_gallery').'</strong><br><p>'._e('Incorrect gallery ID','rbs_gallery').'</p>';
152
+ continue ;
153
+ }
154
+ echo '<tr>
155
+ <td class="desc" style="width:95%;"><a href="'.esc_url( get_edit_post_link($post_info->ID)).'" title="'.__('Edit', 'rbs_gallery').'" target="_blank">'.$post_info->post_title.'</a></td>
156
+
157
+ </tr>';
158
+ }
159
+ echo '</table>';
160
+ die();
161
+ }
162
  }
includes/options/rbs_gallery_options_tools.php CHANGED
@@ -32,7 +32,11 @@ if(isset($_GET['post'])){
32
  .'<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> '
33
  .__('Create Post','rbs_gallery')
34
  .'</button>'
35
-
 
 
 
 
36
  .'<p class="rbs_desc">'.__('Here you can create and customize new post with gallery inside it','rbs_gallery').'</p> '
37
  .'</div>',
38
  'after_row' => '</div>',
32
  .'<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> '
33
  .__('Create Post','rbs_gallery')
34
  .'</button>'
35
+ .'<p></p>'
36
+ .'<button id="rbs_posts_list" data-galleryid="'.(int)$_GET['post'].'" class="btn btn-info btn-lg ">'
37
+ .'<span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> '
38
+ .__('Posts List','rbs_gallery')
39
+ .'</button>'
40
  .'<p class="rbs_desc">'.__('Here you can create and customize new post with gallery inside it','rbs_gallery').'</p> '
41
  .'</div>',
42
  'after_row' => '</div>',
js/admin/extensions/create_post.js CHANGED
@@ -19,11 +19,9 @@
19
 
20
  var rbs_insert_post_content = '';
21
 
22
-
23
  var roboGalleryActionDialog = $("#rbs_actionWindow");
24
  var roboGalleryActionDialogId =$('#rbs_create_article').data('galleryid');
25
 
26
-
27
  var bodyClass = roboGalleryActionDialog.data("body");
28
  if(bodyClass) $("body").addClass(bodyClass);
29
  roboGalleryActionDialog.dialog({
@@ -36,10 +34,9 @@
36
  'height': 'auto',
37
  'fluid': true,
38
  'resizable': false,
39
- // 'position': { my: "left top", at: "left bottom", of: button },
40
  'position': {
41
- my: "center",
42
- at: "center top+150"
43
  },
44
  'responsive': true,
45
  'draggable': false,
@@ -58,8 +55,7 @@
58
  });
59
 
60
  window['roboGalleryActionDialog'] = roboGalleryActionDialog;
61
- //$(".ui-dialog-titlebar-close").addClass("ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close");
62
-
63
  rbs_insert_post_button = $(".rbs-create-post-button-insert");
64
 
65
  rbs_insert_post_content = $("#rbs_actionWindowContent");
@@ -70,7 +66,20 @@
70
 
71
  };
72
 
73
-
 
 
 
 
 
 
 
 
 
 
 
 
 
74
 
75
  $('#rbs_create_article').click(function(evnt){
76
  evnt.preventDefault();
@@ -105,7 +114,6 @@
105
  'categoryid': categoryId,
106
  'articletitle': title,
107
  'articleslug': slug,
108
-
109
  };
110
 
111
  rbs_insert_post_button.hide();
@@ -114,10 +122,6 @@
114
 
115
  $.post(ajaxurl, data, function(response) {
116
  rbs_insert_post_content.html(response);
117
- //rbs_insert_post_button.show();
118
- //alert('Got this from the server: ' + response);
119
  });
120
  });
121
-
122
-
123
  })(jQuery);
19
 
20
  var rbs_insert_post_content = '';
21
 
 
22
  var roboGalleryActionDialog = $("#rbs_actionWindow");
23
  var roboGalleryActionDialogId =$('#rbs_create_article').data('galleryid');
24
 
 
25
  var bodyClass = roboGalleryActionDialog.data("body");
26
  if(bodyClass) $("body").addClass(bodyClass);
27
  roboGalleryActionDialog.dialog({
34
  'height': 'auto',
35
  'fluid': true,
36
  'resizable': false,
 
37
  'position': {
38
+ my: "center top",
39
+ at: "center top+15"
40
  },
41
  'responsive': true,
42
  'draggable': false,
55
  });
56
 
57
  window['roboGalleryActionDialog'] = roboGalleryActionDialog;
58
+
 
59
  rbs_insert_post_button = $(".rbs-create-post-button-insert");
60
 
61
  rbs_insert_post_content = $("#rbs_actionWindowContent");
66
 
67
  };
68
 
69
+ $('#rbs_posts_list').click(function(evnt){
70
+ evnt.preventDefault();
71
+ prepareDialog();
72
+ var data = {
73
+ 'action': 'rbs_gallery',
74
+ 'function': 'posts_list',
75
+ 'galleryid': roboGalleryActionDialogId,
76
+ };
77
+ rbs_insert_post_button.hide();
78
+ roboGalleryActionDialog.dialog("open");
79
+ $.post(ajaxurl, data, function(response) {
80
+ rbs_insert_post_content.html(response);
81
+ });
82
+ });
83
 
84
  $('#rbs_create_article').click(function(evnt){
85
  evnt.preventDefault();
114
  'categoryid': categoryId,
115
  'articletitle': title,
116
  'articleslug': slug,
 
117
  };
118
 
119
  rbs_insert_post_button.hide();
122
 
123
  $.post(ajaxurl, data, function(response) {
124
  rbs_insert_post_content.html(response);
 
 
125
  });
126
  });
 
 
127
  })(jQuery);
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.5.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -224,6 +224,10 @@ Quality of the gallery thumbnails could be easily changed in gallery size option
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
  = How to define custom hover effect for some gallery thumbnail? =
228
 
229
  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.
@@ -232,10 +236,6 @@ When you open gallery media manager you'll see there list of the gallery images.
232
 
233
  In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
234
 
235
- = How I can create custom (grid) layout of the thumbnails? =
236
-
237
- 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
238
-
239
  = How to change text below image in lightbox ? =
240
 
241
  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.
@@ -272,10 +272,6 @@ No, we don't have any limits for amount of the images in gallery
272
 
273
  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
274
 
275
- = Is it possible to have different settings for hover and static interface elements? =
276
-
277
- Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
278
-
279
  = Where specify description of the gallery images? =
280
 
281
  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
@@ -284,6 +280,10 @@ When you open gallery settings inside you'll find images manager section. Images
284
 
285
  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
286
 
 
 
 
 
287
  = How to set description text below image in the lightbox? =
288
 
289
  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.
@@ -296,10 +296,6 @@ In gallery settings you can define horizontal and vertical paddings between gall
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 change color of the gallery interface elements? =
300
-
301
- Color of every gallery front end interface element could be changed changed in admin section with color selector. There you can change colors of the menu buttons, load more button, borders, shadows, backgrounds and etc.
302
-
303
  = How to define custom link for some gallery images? =
304
 
305
  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
@@ -312,6 +308,10 @@ In gallery settings you can enable custom caption settings where you can customi
312
 
313
  In gallery settings you can find section rounds where with special options you can define radius for the gallery thumbnails
314
 
 
 
 
 
315
  = How to use multi-category functionality of the gallery? =
316
 
317
  In our gallery we implemented multi-categories structure. Every gallery category could have child and parent gallery, which you can manually define in gallery settings
@@ -320,14 +320,14 @@ In our gallery we implemented multi-categories structure. Every gallery category
320
 
321
  You can change size, color and style of gallery thumbnails borders and shadows. Also you can define different parameters for static and hovered status
322
 
323
- = How to change ordering of the gallery images? =
324
-
325
- When you open gallery for edit you can find there images manager where you can change ordering of the gallery images
326
-
327
  = How to load more function work? =
328
 
329
  In gallery admin section you can define amount of the images for the first load and after click on load more button. Load more it's such google gallery style pagination functionality which make you able to limit amount of the images for the first load
330
 
 
 
 
 
331
  = Is it possible to use HTML in image description ? =
332
 
333
  Yes, you can use HTML tags inside gallery image description field
@@ -574,6 +574,11 @@ If any problem occurs, please contact us.
574
 
575
  == Changelog ==
576
 
 
 
 
 
 
577
  = 1.5.4 =
578
  * New option for post generator
579
  * Added edit post button in post dialog wizard
@@ -787,6 +792,9 @@ If any problem occurs, please contact us.
787
 
788
  == Upgrade Notice ==
789
 
 
 
 
790
  = 1.5.4 =
791
  New option for post generator, added edit post button in post dialog wizard
792
 
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.5.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
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
+ = 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
  = How to define custom hover effect for some gallery thumbnail? =
232
 
233
  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.
236
 
237
  In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
238
 
 
 
 
 
239
  = How to change text below image in lightbox ? =
240
 
241
  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.
272
 
273
  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
274
 
 
 
 
 
275
  = Where specify description of the gallery images? =
276
 
277
  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
280
 
281
  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
282
 
283
+ = Is it possible to have different settings for hover and static interface elements? =
284
+
285
+ Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
286
+
287
  = How to set description text below image in the lightbox? =
288
 
289
  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.
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 custom link for some gallery images? =
300
 
301
  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
308
 
309
  In gallery settings you can find section rounds where with special options you can define radius for the gallery thumbnails
310
 
311
+ = How to change color of the gallery interface elements? =
312
+
313
+ Color of every gallery front end interface element could be changed changed in admin section with color selector. There you can change colors of the menu buttons, load more button, borders, shadows, backgrounds and etc.
314
+
315
  = How to use multi-category functionality of the gallery? =
316
 
317
  In our gallery we implemented multi-categories structure. Every gallery category could have child and parent gallery, which you can manually define in gallery settings
320
 
321
  You can change size, color and style of gallery thumbnails borders and shadows. Also you can define different parameters for static and hovered status
322
 
 
 
 
 
323
  = How to load more function work? =
324
 
325
  In gallery admin section you can define amount of the images for the first load and after click on load more button. Load more it's such google gallery style pagination functionality which make you able to limit amount of the images for the first load
326
 
327
+ = How to change ordering of the gallery images? =
328
+
329
+ When you open gallery for edit you can find there images manager where you can change ordering of the gallery images
330
+
331
  = Is it possible to use HTML in image description ? =
332
 
333
  Yes, you can use HTML tags inside gallery image description field
574
 
575
  == Changelog ==
576
 
577
+ = 1.5.5 =
578
+ * New options for post generator
579
+ * Added new section with the list of the posts for current gallery
580
+ * Edit mode for post list in generator section
581
+
582
  = 1.5.4 =
583
  * New option for post generator
584
  * Added edit post button in post dialog wizard
792
 
793
  == Upgrade Notice ==
794
 
795
+ = 1.5.5 =
796
+ Added new section with the list of the posts for current gallery, edit mode for post list in generator section
797
+
798
  = 1.5.4 =
799
  New option for post generator, added edit post button in post dialog wizard
800
 
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.5.4
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.5.4');
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.5.5
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.5.5');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25