Version Description
- Update of the gallery settings block
- Change interface code structure, added new tabs
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.6.20 |
Comparing to | |
See all releases |
Code changes from version 2.6.19 to 2.6.20
- includes/rbs_gallery_init.php +3 -3
- includes/rbs_gallery_menu.php +1 -1
- includes/rbs_gallery_settings.php +124 -26
- readme.txt +9 -1
- robogallery.php +3 -3
includes/rbs_gallery_init.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Created: 2015
|
9 |
* Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
|
10 |
*
|
11 |
-
* Copyright (c) 2014-
|
12 |
* Available only in https://robosoft.co/robogallery/
|
13 |
*/
|
14 |
|
@@ -67,7 +67,7 @@ if(!function_exists('rbs_gallery_get_current_post_type')){
|
|
67 |
elseif( $typenow ) return $typenow;
|
68 |
elseif( $current_screen && $current_screen->post_type ) return $current_screen->post_type;
|
69 |
elseif( isset( $_REQUEST['post_type'] ) && !is_array($_REQUEST['post_type']) ) return sanitize_key( $_REQUEST['post_type'] );
|
70 |
-
elseif (isset( $_REQUEST['post'] ) && get_post_type($_REQUEST['post']))
|
71 |
return null;
|
72 |
}
|
73 |
}
|
@@ -162,7 +162,7 @@ if(!function_exists('rbs_gallery_main_init')){
|
|
162 |
}
|
163 |
|
164 |
/* only backend */
|
165 |
-
if( is_admin() ) rbs_gallery_include(array('rbs_gallery_media.php', 'rbs_gallery_menu.php' ), ROBO_GALLERY_INCLUDES_PATH);
|
166 |
|
167 |
/* Frontend*/
|
168 |
rbs_gallery_include(array('rbs_gallery_source.php', 'rbs_gallery_helper.php', 'rbs_gallery_class_utils.php', 'rbs_gallery_class.php', 'rbs_gallery_frontend.php' ), ROBO_GALLERY_FRONTEND_PATH);
|
8 |
* Created: 2015
|
9 |
* Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
|
10 |
*
|
11 |
+
* Copyright (c) 2014-2017, Robosoft. All rights reserved.
|
12 |
* Available only in https://robosoft.co/robogallery/
|
13 |
*/
|
14 |
|
67 |
elseif( $typenow ) return $typenow;
|
68 |
elseif( $current_screen && $current_screen->post_type ) return $current_screen->post_type;
|
69 |
elseif( isset( $_REQUEST['post_type'] ) && !is_array($_REQUEST['post_type']) ) return sanitize_key( $_REQUEST['post_type'] );
|
70 |
+
elseif (isset( $_REQUEST['post'] ) && get_post_type($_REQUEST['post'])) return get_post_type($_REQUEST['post']);
|
71 |
return null;
|
72 |
}
|
73 |
}
|
162 |
}
|
163 |
|
164 |
/* only backend */
|
165 |
+
if( is_admin() ) rbs_gallery_include(array('rbs_gallery_media.php', 'rbs_gallery_menu.php', 'rbs_gallery_settings.php' ), ROBO_GALLERY_INCLUDES_PATH);
|
166 |
|
167 |
/* Frontend*/
|
168 |
rbs_gallery_include(array('rbs_gallery_source.php', 'rbs_gallery_helper.php', 'rbs_gallery_class_utils.php', 'rbs_gallery_class.php', 'rbs_gallery_frontend.php' ), ROBO_GALLERY_FRONTEND_PATH);
|
includes/rbs_gallery_menu.php
CHANGED
@@ -34,7 +34,7 @@ if(!function_exists('robo_gallery_fix_menu')){
|
|
34 |
add_action( 'init', 'robo_gallery_fix_menu' );
|
35 |
}
|
36 |
|
37 |
-
if(!function_exists('robo_gallery_settings_submenu_page')){
|
38 |
add_action('admin_menu', 'robo_gallery_settings_submenu_page');
|
39 |
function robo_gallery_settings_submenu_page() {
|
40 |
add_submenu_page( 'edit.php?post_type=robo_gallery_table', 'Settings Robo Gallery', 'Settings', 'manage_options', 'robo-gallery-settings', 'robo_gallery_settings_submenu_page_render' );
|
34 |
add_action( 'init', 'robo_gallery_fix_menu' );
|
35 |
}
|
36 |
|
37 |
+
if(!function_exists('robo_gallery_settings_submenu_page') && 2==3){
|
38 |
add_action('admin_menu', 'robo_gallery_settings_submenu_page');
|
39 |
function robo_gallery_settings_submenu_page() {
|
40 |
add_submenu_page( 'edit.php?post_type=robo_gallery_table', 'Settings Robo Gallery', 'Settings', 'manage_options', 'robo-gallery-settings', 'robo_gallery_settings_submenu_page_render' );
|
includes/rbs_gallery_settings.php
CHANGED
@@ -13,19 +13,116 @@
|
|
13 |
*/
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
<tr>
|
30 |
<th scope="row"><?php _e('Categories Manager', 'robo-gallery'); ?></th>
|
31 |
<td>
|
@@ -111,10 +208,12 @@ wp_enqueue_style ( 'robosoft-gallery-about', ROBO_GALLERY_URL.'css/admin/about.
|
|
111 |
</fieldset>
|
112 |
</td>
|
113 |
</tr>
|
|
|
|
|
114 |
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
<tr>
|
119 |
<th scope="row"><?php _e('Text Block', 'robo-gallery'); ?></th>
|
120 |
<td>
|
@@ -144,10 +243,12 @@ wp_enqueue_style ( 'robosoft-gallery-about', ROBO_GALLERY_URL.'css/admin/about.
|
|
144 |
</fieldset>
|
145 |
</td>
|
146 |
</tr>
|
|
|
|
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
<tr>
|
152 |
<th scope="row"><?php _e('Add SEO content', 'robo-gallery'); ?></th>
|
153 |
<td>
|
@@ -169,12 +270,9 @@ wp_enqueue_style ( 'robosoft-gallery-about', ROBO_GALLERY_URL.'css/admin/about.
|
|
169 |
</td>
|
170 |
</tr>
|
171 |
|
172 |
-
|
173 |
-
|
174 |
-
<p class="submit">
|
175 |
-
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Save Changes', 'robo-gallery'); ?>" />
|
176 |
-
</p>
|
177 |
|
178 |
-
|
179 |
-
|
180 |
-
|
13 |
*/
|
14 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
15 |
|
16 |
+
class Robo_Gallery_Settings {
|
17 |
+
|
18 |
+
private $active_tab = '';
|
19 |
+
|
20 |
+
function __construct(){
|
21 |
+
$this->init();
|
22 |
+
}
|
23 |
+
|
24 |
+
|
25 |
+
function init(){
|
26 |
+
$this->hooks();
|
27 |
+
}
|
28 |
+
|
29 |
+
function hooks(){
|
30 |
+
|
31 |
+
add_action( 'admin_init', array( $this, 'settings') );
|
32 |
+
add_action('admin_menu', array( $this, 'menu') ) ;
|
33 |
+
}
|
34 |
+
|
35 |
+
function menu(){
|
36 |
+
add_submenu_page( 'edit.php?post_type=robo_gallery_table', 'Settings Robo Gallery', 'Settings', 'manage_options', 'robo-gallery-settings', array( $this, 'page') );
|
37 |
+
}
|
38 |
+
|
39 |
+
|
40 |
+
function settings(){
|
41 |
+
register_setting( 'robo_gallery_settings_comp', ROBO_GALLERY_PREFIX.'categoryShow' );
|
42 |
+
register_setting( 'robo_gallery_settings_comp', ROBO_GALLERY_PREFIX.'jqueryVersion' );
|
43 |
+
register_setting( 'robo_gallery_settings_comp', ROBO_GALLERY_PREFIX.'fontLoad' );
|
44 |
+
register_setting( 'robo_gallery_settings_comp', ROBO_GALLERY_PREFIX.'delay' );
|
45 |
+
register_setting( 'robo_gallery_settings_comp', ROBO_GALLERY_PREFIX.'debugEnable' );
|
46 |
+
register_setting( 'robo_gallery_settings_comp', ROBO_GALLERY_PREFIX.'expressPanel' );
|
47 |
+
|
48 |
+
register_setting( 'robo_gallery_settings_post', ROBO_GALLERY_PREFIX.'postShowText' );
|
49 |
+
register_setting( 'robo_gallery_settings_post', ROBO_GALLERY_PREFIX.'cloneBlock' );
|
50 |
+
|
51 |
+
register_setting( 'robo_gallery_settings_seo', ROBO_GALLERY_PREFIX.'seo' );
|
52 |
+
|
53 |
+
}
|
54 |
+
|
55 |
+
function tabs( ){
|
56 |
+
echo '
|
57 |
+
<h2 class="nav-tab-wrapper">
|
58 |
+
<a href="edit.php?post_type=robo_gallery_table&page=robo-gallery-settings&tab=comp" class="nav-tab '.( $this->active_tab == 'comp' ? 'nav-tab-active' : '' ).'">
|
59 |
+
'.__('Compatibility Settings', 'robo-gallery').'
|
60 |
+
</a>
|
61 |
+
<a href="edit.php?post_type=robo_gallery_table&page=robo-gallery-settings&tab=post" class="nav-tab '.( $this->active_tab == 'post' ? 'nav-tab-active' : '' ).'">
|
62 |
+
'.__('Create Post Settings', 'robo-gallery').'
|
63 |
+
</a>
|
64 |
+
<a href="edit.php?post_type=robo_gallery_table&page=robo-gallery-settings&tab=seo" class="nav-tab '.( $this->active_tab == 'seo' ? 'nav-tab-active' : '' ).'">
|
65 |
+
'.__('SEO Optimization', 'robo-gallery').'
|
66 |
+
</a>
|
67 |
+
</h2>';
|
68 |
+
}
|
69 |
+
|
70 |
+
|
71 |
+
|
72 |
+
function enqueue(){
|
73 |
+
wp_enqueue_style ( 'robosoft-gallery-about', ROBO_GALLERY_URL.'css/admin/about.css', array( ), ROBO_GALLERY_VERSION );
|
74 |
+
}
|
75 |
+
|
76 |
+
|
77 |
+
function page(){
|
78 |
+
|
79 |
+
$this->enqueue();
|
80 |
+
|
81 |
+
$this->active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'comp';
|
82 |
+
|
83 |
+
echo '
|
84 |
+
<div class="wrap">
|
85 |
+
<h1>'.__('Robo Gallery', 'robo-gallery').'</h1>';
|
86 |
+
|
87 |
+
$this->tabs();
|
88 |
+
|
89 |
+
echo '<form method="post" action="options.php?tab='.$this->active_tab.'">';
|
90 |
+
|
91 |
+
|
92 |
|
93 |
+
settings_errors();
|
94 |
+
|
95 |
+
echo '<table class="form-table">';
|
96 |
+
|
97 |
+
if( $this->active_tab == 'comp' ) {
|
98 |
+
settings_fields( 'robo_gallery_settings_comp' );
|
99 |
+
do_settings_sections( 'robo_gallery_settings_comp' );
|
100 |
+
$this->compOptions();
|
101 |
+
} elseif( $this->active_tab == 'post' ) {
|
102 |
+
settings_fields( 'robo_gallery_settings_post' );
|
103 |
+
do_settings_sections( 'robo_gallery_settings_post' );
|
104 |
+
$this->postOptions();
|
105 |
+
} else {
|
106 |
+
settings_fields( 'robo_gallery_settings_seo' );
|
107 |
+
do_settings_sections( 'robo_gallery_settings_seo' );
|
108 |
+
$this->seoOptions();
|
109 |
+
}
|
110 |
+
|
111 |
+
echo '</table>';
|
112 |
+
|
113 |
+
submit_button();
|
114 |
+
|
115 |
+
echo '
|
116 |
+
</form>
|
117 |
+
</div>
|
118 |
+
<div class="rbs_about_string2">Copyright © 2014 - 2017 <a href="https://robosoft.co/robogallery">RoboSoft</a> All Rights Reserved</div>';
|
119 |
+
|
120 |
+
}
|
121 |
+
|
122 |
+
|
123 |
+
|
124 |
+
function compOptions(){
|
125 |
+
?>
|
126 |
<tr>
|
127 |
<th scope="row"><?php _e('Categories Manager', 'robo-gallery'); ?></th>
|
128 |
<td>
|
208 |
</fieldset>
|
209 |
</td>
|
210 |
</tr>
|
211 |
+
<?php
|
212 |
+
}
|
213 |
|
214 |
+
|
215 |
+
function postOptions(){
|
216 |
+
?>
|
217 |
<tr>
|
218 |
<th scope="row"><?php _e('Text Block', 'robo-gallery'); ?></th>
|
219 |
<td>
|
243 |
</fieldset>
|
244 |
</td>
|
245 |
</tr>
|
246 |
+
<?php
|
247 |
+
}
|
248 |
|
249 |
+
|
250 |
+
function seoOptions(){
|
251 |
+
?>
|
252 |
<tr>
|
253 |
<th scope="row"><?php _e('Add SEO content', 'robo-gallery'); ?></th>
|
254 |
<td>
|
270 |
</td>
|
271 |
</tr>
|
272 |
|
273 |
+
<?php
|
274 |
+
}
|
|
|
|
|
|
|
275 |
|
276 |
+
}
|
277 |
+
|
278 |
+
$settings = new Robo_Gallery_Settings();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://robosoft.co/robogallery
|
|
4 |
Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.8
|
7 |
-
Stable tag: 2.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -258,6 +258,10 @@ If any problem occurs, please contact us.
|
|
258 |
|
259 |
== Changelog ==
|
260 |
|
|
|
|
|
|
|
|
|
261 |
= 2.6.19 =
|
262 |
* Fixed multiply issues with interface conflicts
|
263 |
|
@@ -408,6 +412,10 @@ If any problem occurs, please contact us.
|
|
408 |
|
409 |
== Upgrade Notice ==
|
410 |
|
|
|
|
|
|
|
|
|
411 |
= 2.6.19 =
|
412 |
Fixed multiply issues with interface conflicts
|
413 |
|
4 |
Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.8
|
7 |
+
Stable tag: 2.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
258 |
|
259 |
== Changelog ==
|
260 |
|
261 |
+
= 2.6.20 =
|
262 |
+
* Update of the gallery settings block
|
263 |
+
* Change interface code structure, added new tabs
|
264 |
+
|
265 |
= 2.6.19 =
|
266 |
* Fixed multiply issues with interface conflicts
|
267 |
|
412 |
|
413 |
== Upgrade Notice ==
|
414 |
|
415 |
+
= 2.6.20 =
|
416 |
+
Update of the gallery settings block
|
417 |
+
Change interface code structure, added new tabs
|
418 |
+
|
419 |
= 2.6.19 =
|
420 |
Fixed multiply issues with interface conflicts
|
421 |
|
robogallery.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Robo Gallery
|
4 |
Plugin URI: https://robosoft.co/wordpress-gallery-plugin
|
5 |
Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
|
6 |
-
Version: 2.6.
|
7 |
Author: RoboSoft
|
8 |
Author URI: https://robosoft.co/wordpress-gallery-plugin
|
9 |
License: GPLv3 or later
|
@@ -15,12 +15,12 @@ if(!defined('WPINC'))die;
|
|
15 |
if(!defined("ABSPATH"))exit;
|
16 |
|
17 |
define("ROBO_GALLERY", 1);
|
18 |
-
define("ROBO_GALLERY_VERSION", '2.6.
|
19 |
|
20 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
21 |
|
22 |
define("ROBO_GALLERY_SPECIAL", 1);
|
23 |
-
define("ROBO_GALLERY_EVENT_DATE", '2017-08-
|
24 |
define("ROBO_GALLERY_EVENT_HOUR", 24);
|
25 |
|
26 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
3 |
Plugin Name: Robo Gallery
|
4 |
Plugin URI: https://robosoft.co/wordpress-gallery-plugin
|
5 |
Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
|
6 |
+
Version: 2.6.20
|
7 |
Author: RoboSoft
|
8 |
Author URI: https://robosoft.co/wordpress-gallery-plugin
|
9 |
License: GPLv3 or later
|
15 |
if(!defined("ABSPATH"))exit;
|
16 |
|
17 |
define("ROBO_GALLERY", 1);
|
18 |
+
define("ROBO_GALLERY_VERSION", '2.6.20');
|
19 |
|
20 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
21 |
|
22 |
define("ROBO_GALLERY_SPECIAL", 1);
|
23 |
+
define("ROBO_GALLERY_EVENT_DATE", '2017-08-26');
|
24 |
define("ROBO_GALLERY_EVENT_HOUR", 24);
|
25 |
|
26 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|