Gallery – Photo Gallery and Images Gallery - Version 2.0.23

Version Description

  • Code optimization
  • Changes in create post dialog
Download this release

Release Info

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

Code changes from version 2.0.22 to 2.0.23

includes/extensions/rbs_create_post_ajax.php CHANGED
@@ -56,22 +56,22 @@ if(!function_exists('rbs_ajax_create_article_form')){
56
  <table class="form-table">
57
  <tbody>
58
  <tr>
59
- <th scope="row"><label for="rbs_post_create_category"><?php _e('Category','rbs_gallery'); ?>:</label></th>
60
  <td><?php wp_dropdown_categories( $args ); ?></td>
61
  </tr>
62
 
63
  <tr>
64
- <th scope="row"><label for="rbs_post_create_title"><?php _e('Title','rbs_gallery'); ?>:</label></th>
65
  <td><input name="rbs_post_create_title" id="rbs_post_create_title" value="<?php echo $post_info->post_title ;?>" class="regular-text" type="text"></td>
66
  </tr>
67
 
68
  <tr>
69
- <th scope="row"><label for="rbs_post_create_slug"><?php _e('Slug','rbs_gallery'); ?>:</label></th>
70
  <td><input name="rbs_post_create_slug" id="rbs_post_create_slug" value="<?php echo 'post_'.$post_info->post_name;?>" class="regular-text" type="text"></td>
71
  </tr>
72
  <?php if( !get_option(ROBO_GALLERY_PREFIX.'postShowText', 0) ) { ?>
73
  <tr>
74
- <th scope="row"><label for="rbs_post_create_text"><?php _e('Text','rbs_gallery'); ?>:</label></th>
75
  <td><textarea name="rbs_post_create_text" rows="6" cols="50" id="rbs_post_create_text" class="large-text code">[robo-gallery id="<?php echo $galleryid; ; ?>"]</textarea></td>
76
  </tr>
77
  <?php } ?>
@@ -89,8 +89,8 @@ if(!function_exists('rbs_ajax_create_article')){
89
  isset($_POST['galleryid']) && (int)$_POST['galleryid'] &&
90
  isset($_POST['categoryid']) && (int)$_POST['categoryid']
91
  ){
92
- $galleryid = intval( $_POST['galleryid'] );
93
- $categoryid = intval( $_POST['categoryid'] );
94
 
95
  $post_info = get_post( $galleryid );
96
 
@@ -137,13 +137,13 @@ if(!function_exists('rbs_ajax_create_article')){
137
  }
138
  echo '</p>';
139
  } else {
140
- echo '<h3>'.__('Post ','rbs_gallery').'"'.$title.'"'.__(' created','rbs_gallery').'</h3>';
141
  echo '<p>
142
  <a href="'.esc_url( get_edit_post_link( $postId ) ).'" class="button button-small" target="_blank">
143
  '.__('Edit')
144
  .'</a>
145
  <a href="'.esc_url( get_permalink( $postId ) ).'" class="button button-small" target="_blank">
146
- '.__('Preview','rbs_gallery')
147
  .'</a>
148
  </p>';
149
 
@@ -156,12 +156,11 @@ if(!function_exists('rbs_ajax_create_article')){
156
  }
157
 
158
 
159
-
160
  if(!function_exists('rbs_ajax_posts_list')){
161
  function rbs_ajax_posts_list(){
162
 
163
  if( !isset($_POST['galleryid']) || !((int)$_POST['galleryid']) ){
164
- echo '<p><strong>'.__('Error: ','rbs_gallery').'</strong>'.__('Empty gallery ID','rbs_gallery').'</p>';
165
  return ;
166
  } ;
167
  $galleryid = (int) $_POST['galleryid'];
@@ -195,7 +194,7 @@ if(!function_exists('rbs_ajax_posts_list')){
195
  '.$post_info->post_title.'
196
  </td>
197
  <td class="import-system" style="width:10%;">
198
- '.__($post_info->post_status=='publish'?'Published':$post_info->post_status).'
199
  </td>
200
 
201
  <td class="import-system" style="width:10%;">
@@ -204,8 +203,8 @@ if(!function_exists('rbs_ajax_posts_list')){
204
  </a>
205
  </td>
206
  <td class="import-system" style="width:10%;">
207
- <a href="'. esc_url( get_permalink($post_info->ID) ).'" title="'.__('Preview', 'rbs_gallery').'" target="_blank">
208
- '.__('Preview', 'rbs_gallery').'
209
  </a>
210
  </td>
211
  </tr>';
56
  <table class="form-table">
57
  <tbody>
58
  <tr>
59
+ <th scope="row"><label for="rbs_post_create_category"><?php _e('Category'); ?>:</label></th>
60
  <td><?php wp_dropdown_categories( $args ); ?></td>
61
  </tr>
62
 
63
  <tr>
64
+ <th scope="row"><label for="rbs_post_create_title"><?php _e('Title'); ?>:</label></th>
65
  <td><input name="rbs_post_create_title" id="rbs_post_create_title" value="<?php echo $post_info->post_title ;?>" class="regular-text" type="text"></td>
66
  </tr>
67
 
68
  <tr>
69
+ <th scope="row"><label for="rbs_post_create_slug"><?php _e('Slug'); ?>:</label></th>
70
  <td><input name="rbs_post_create_slug" id="rbs_post_create_slug" value="<?php echo 'post_'.$post_info->post_name;?>" class="regular-text" type="text"></td>
71
  </tr>
72
  <?php if( !get_option(ROBO_GALLERY_PREFIX.'postShowText', 0) ) { ?>
73
  <tr>
74
+ <th scope="row"><label for="rbs_post_create_text"><?php _e('Text'); ?>:</label></th>
75
  <td><textarea name="rbs_post_create_text" rows="6" cols="50" id="rbs_post_create_text" class="large-text code">[robo-gallery id="<?php echo $galleryid; ; ?>"]</textarea></td>
76
  </tr>
77
  <?php } ?>
89
  isset($_POST['galleryid']) && (int)$_POST['galleryid'] &&
90
  isset($_POST['categoryid']) && (int)$_POST['categoryid']
91
  ){
92
+ $galleryid = (int) $_POST['galleryid'];
93
+ $categoryid = (int) $_POST['categoryid'];
94
 
95
  $post_info = get_post( $galleryid );
96
 
137
  }
138
  echo '</p>';
139
  } else {
140
+ echo '<h3>'.__('Post').' "'.$title.'" '.__('created').'</h3>';
141
  echo '<p>
142
  <a href="'.esc_url( get_edit_post_link( $postId ) ).'" class="button button-small" target="_blank">
143
  '.__('Edit')
144
  .'</a>
145
  <a href="'.esc_url( get_permalink( $postId ) ).'" class="button button-small" target="_blank">
146
+ '.__('Preview')
147
  .'</a>
148
  </p>';
149
 
156
  }
157
 
158
 
 
159
  if(!function_exists('rbs_ajax_posts_list')){
160
  function rbs_ajax_posts_list(){
161
 
162
  if( !isset($_POST['galleryid']) || !((int)$_POST['galleryid']) ){
163
+ echo '<p><strong>'.__('Error').': </strong>'.__('Empty gallery ID','rbs_gallery').'</p>';
164
  return ;
165
  } ;
166
  $galleryid = (int) $_POST['galleryid'];
194
  '.$post_info->post_title.'
195
  </td>
196
  <td class="import-system" style="width:10%;">
197
+ '.__($post_info->post_status=='publish'?__('Published'):$post_info->post_status).'
198
  </td>
199
 
200
  <td class="import-system" style="width:10%;">
203
  </a>
204
  </td>
205
  <td class="import-system" style="width:10%;">
206
+ <a href="'. esc_url( get_permalink($post_info->ID) ).'" title="'.__('Preview').'" target="_blank">
207
+ '.__('Preview').'
208
  </a>
209
  </td>
210
  </tr>';
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.5
7
- Stable tag: 2.0.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -584,6 +584,10 @@ If any problem occurs, please contact us.
584
 
585
  == Changelog ==
586
 
 
 
 
 
587
  = 2.0.22 =
588
  * Update for Polish language
589
 
@@ -1103,6 +1107,9 @@ If any problem occurs, please contact us.
1103
 
1104
  == Upgrade Notice ==
1105
 
 
 
 
1106
  = 2.0.22 =
1107
  Update for Polish language
1108
 
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.5
7
+ Stable tag: 2.0.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
584
 
585
  == Changelog ==
586
 
587
+ = 2.0.23 =
588
+ * Code optimization
589
+ * Changes in create post dialog
590
+
591
  = 2.0.22 =
592
  * Update for Polish language
593
 
1107
 
1108
  == Upgrade Notice ==
1109
 
1110
+ = 2.0.23 =
1111
+ Code optimization, changes in create post dialog
1112
+
1113
  = 2.0.22 =
1114
  Update for Polish language
1115
 
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: 2.0.22
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", '2.0.22');
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: 2.0.23
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", '2.0.23');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25