Gallery – Photo Gallery and Images Gallery - Version 2.4.5

Version Description

  • Fixed express panel publishing issues, per users requests
  • Added show/hide option for express panel
  • Turned off express panel by default
Download this release

Release Info

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

Code changes from version 2.4.4 to 2.4.5

cmb2/fields/toolbox/cmb-field-toolbox.php CHANGED
@@ -24,7 +24,9 @@ class RBS_TOOLBOX {
24
 
25
  public function rbs_setup_admin_script(){
26
  echo '<script type="text/javascript"> var ROBO_GALLERY_PRO = '.ROBO_GALLERY_PRO.';</script>';
27
- if(isset($_GET['post'])){
 
 
28
  echo '
29
  <div id="robo_gallery_savebutton_dialog_id" class="robo_gallery_savebutton_dialog_hide">
30
  <h3>Express Panel</h3>
@@ -36,7 +38,6 @@ class RBS_TOOLBOX {
36
  </p>
37
  </div>
38
  <script type="text/javascript">
39
-
40
  var panelDiv = document.getElementById("robo_gallery_savebutton_dialog_id");
41
  document.body.appendChild(panelDiv);
42
  panelDiv.className = "robo_gallery_savebutton_dialog";
@@ -44,6 +45,7 @@ class RBS_TOOLBOX {
44
  buttonRoboGallerySave.onclick = function(){ document.getElementById("publish").click(); return false };
45
  </script>';
46
  }
 
47
  }
48
 
49
  public function rbs_setup_admin_header(){
24
 
25
  public function rbs_setup_admin_script(){
26
  echo '<script type="text/javascript"> var ROBO_GALLERY_PRO = '.ROBO_GALLERY_PRO.';</script>';
27
+
28
+ /* Express panel +*/
29
+ if( isset($_GET['post']) && get_option( ROBO_GALLERY_PREFIX.'expressPanel' ) ){
30
  echo '
31
  <div id="robo_gallery_savebutton_dialog_id" class="robo_gallery_savebutton_dialog_hide">
32
  <h3>Express Panel</h3>
38
  </p>
39
  </div>
40
  <script type="text/javascript">
 
41
  var panelDiv = document.getElementById("robo_gallery_savebutton_dialog_id");
42
  document.body.appendChild(panelDiv);
43
  panelDiv.className = "robo_gallery_savebutton_dialog";
45
  buttonRoboGallerySave.onclick = function(){ document.getElementById("publish").click(); return false };
46
  </script>';
47
  }
48
+ /* Express panel - */
49
  }
50
 
51
  public function rbs_setup_admin_header(){
includes/rbs_gallery_menu.php CHANGED
@@ -52,6 +52,7 @@ if(!function_exists('robo_gallery_settings_submenu_page')){
52
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'debugEnable' );
53
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'categoryShow' );
54
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'seo' );
 
55
  }
56
  }
57
 
52
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'debugEnable' );
53
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'categoryShow' );
54
  register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'seo' );
55
+ register_setting( 'rbs_gallery_settings', ROBO_GALLERY_PREFIX.'expressPanel' );
56
  }
57
  }
58
 
includes/rbs_gallery_settings.php CHANGED
@@ -93,6 +93,22 @@ wp_enqueue_style ( 'robosoft-gallery-about', ROBO_GALLERY_URL.'css/admin/about.
93
  </fieldset>
94
  </td>
95
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  <tr>
97
  <th colspan="2"><h2><?php _e('Create Post Settings', 'rbs_gallery'); ?></h2></th>
98
  </tr>
93
  </fieldset>
94
  </td>
95
  </tr>
96
+
97
+ <tr>
98
+ <th scope="row"><?php _e('Express panel', 'rbs_gallery'); ?></th>
99
+ <td>
100
+ <fieldset>
101
+ <legend class="screen-reader-text"><span><?php _e('Enable', 'rbs_gallery'); ?></span></legend>
102
+ <label title='<?php _e('Enable', 'rbs_gallery'); ?>'>
103
+ <input type='radio' name='<?php echo ROBO_GALLERY_PREFIX.'expressPanel'; ?>' value='1' <?php if( get_option(ROBO_GALLERY_PREFIX.'expressPanel')==1 ) echo " checked='checked'"; ?> /> <?php _e('Enable'); ?>
104
+ </label><br />
105
+ <label title='<?php _e('Disable', 'rbs_gallery'); ?>'>
106
+ <input type='radio' name='<?php echo ROBO_GALLERY_PREFIX.'expressPanel'; ?>' value='0' <?php if( !get_option(ROBO_GALLERY_PREFIX.'expressPanel', '') ) echo " checked='checked'"; ?> /> <?php _e('Disable'); ?>
107
+ </label><br />
108
+ </fieldset>
109
+ </td>
110
+ </tr>
111
+
112
  <tr>
113
  <th colspan="2"><h2><?php _e('Create Post Settings', 'rbs_gallery'); ?></h2></th>
114
  </tr>
includes/rbs_gallery_topblock.php CHANGED
@@ -25,7 +25,7 @@ if(!function_exists('rbs_gallery_topblock')){
25
  </div>';
26
 
27
  if( defined('ROBO_GALLERY_SPECIAL') && ROBO_GALLERY_SPECIAL ){
28
- $installDate = get_option( 'RoboGalleryInstallDate');
29
  //echo "<br> ".time()." - ".$installDate." = " .(time() - $installDate ).' > '. 60*60;
30
  if( $installDate && ( ( time() - $installDate ) < 60*60 ) ){
31
 
25
  </div>';
26
 
27
  if( defined('ROBO_GALLERY_SPECIAL') && ROBO_GALLERY_SPECIAL ){
28
+ $installDate = get_option( ROBO_GALLERY_PREFIX.'InstallDate' );
29
  //echo "<br> ".time()." - ".$installDate." = " .(time() - $installDate ).' > '. 60*60;
30
  if( $installDate && ( ( time() - $installDate ) < 60*60 ) ){
31
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: robosoft
3
  Tags: gallery, Gallery Plugin, photo gallery, images gallery, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, pictures, images, portfolio gallery, video gallery
4
  Requires at least: 3.3
5
  Tested up to: 4.6
6
- Stable tag: 2.4.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -201,6 +201,11 @@ If any problem occurs, please contact us.
201
 
202
  == Changelog ==
203
 
 
 
 
 
 
204
  = 2.4.4 =
205
  * Fixed tag error in plugin source to avoid warning
206
 
@@ -854,6 +859,11 @@ If any problem occurs, please contact us.
854
 
855
  == Upgrade Notice ==
856
 
 
 
 
 
 
857
  = 2.4.4 =
858
  Fixed tag error in plugin source to avoid warning
859
 
3
  Tags: gallery, Gallery Plugin, photo gallery, images gallery, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, pictures, images, portfolio gallery, video gallery
4
  Requires at least: 3.3
5
  Tested up to: 4.6
6
+ Stable tag: 2.4.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
201
 
202
  == Changelog ==
203
 
204
+ = 2.4.5 =
205
+ * Fixed express panel publishing issues, per users requests
206
+ * Added show/hide option for express panel
207
+ * Turned off express panel by default
208
+
209
  = 2.4.4 =
210
  * Fixed tag error in plugin source to avoid warning
211
 
859
 
860
  == Upgrade Notice ==
861
 
862
+ = 2.4.5 =
863
+ Fixed express panel publishing issues, per users requests
864
+ Added show/hide option for express panel
865
+ Turned off express panel by default
866
+
867
  = 2.4.4 =
868
  Fixed tag error in plugin source to avoid warning
869
 
robogallery.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Robo Gallery
5
  Plugin URI: http://robosoft.co/gallery
6
  Description: A responsive, easy and elegant way to show gallery.
7
- Version: 2.4.4
8
  Author: RoboSoft (c)
9
  Author URI: http://robosoft.co/gallery
10
  License: GPL-2.0+
@@ -16,7 +16,7 @@
16
  if ( ! defined( 'WPINC' ) ) die;
17
 
18
  define("ROBO_GALLERY", 1);
19
- define("ROBO_GALLERY_VERSION", '2.4.4');
20
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
21
  define("ROBO_GALLERY_SPECIAL", 0);
22
 
4
  Plugin Name: Robo Gallery
5
  Plugin URI: http://robosoft.co/gallery
6
  Description: A responsive, easy and elegant way to show gallery.
7
+ Version: 2.4.5
8
  Author: RoboSoft (c)
9
  Author URI: http://robosoft.co/gallery
10
  License: GPL-2.0+
16
  if ( ! defined( 'WPINC' ) ) die;
17
 
18
  define("ROBO_GALLERY", 1);
19
+ define("ROBO_GALLERY_VERSION", '2.4.5');
20
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
21
  define("ROBO_GALLERY_SPECIAL", 0);
22