Version Description
- Fixed gallery link option
- Fixed default gallery output after installation event
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.4.6 |
Comparing to | |
See all releases |
Code changes from version 2.4.5 to 2.4.6
- includes/rbs_class_activator.php +2 -1
- includes/rbs_class_update.php +3 -0
- includes/rbs_gallery_init.php +5 -5
- readme.txt +11 -1
- robogallery.php +17 -19
includes/rbs_class_activator.php
CHANGED
@@ -16,7 +16,8 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
16 |
|
17 |
class RoboGalleryActivator {
|
18 |
public static function activate() {
|
19 |
-
|
|
|
20 |
}
|
21 |
|
22 |
public static function deactivate() {
|
16 |
|
17 |
class RoboGalleryActivator {
|
18 |
public static function activate() {
|
19 |
+
delete_option("robo_gallery_after_install");
|
20 |
+
add_option( 'robo_gallery_after_install', '1' );
|
21 |
}
|
22 |
|
23 |
public static function deactivate() {
|
includes/rbs_class_update.php
CHANGED
@@ -61,6 +61,9 @@ class RoboGalleryUpdate {
|
|
61 |
if( $this->dbVersionOld && $this->dbVersionOld == $this->dbVersion ) $this->needUpdate = false;
|
62 |
|
63 |
if( $this->needUpdate ){
|
|
|
|
|
|
|
64 |
delete_option("rbs_gallery_db_version");
|
65 |
add_option( "rbs_gallery_db_version", ROBO_GALLERY_VERSION );
|
66 |
$this->posts = $this->getGalleryPost();
|
61 |
if( $this->dbVersionOld && $this->dbVersionOld == $this->dbVersion ) $this->needUpdate = false;
|
62 |
|
63 |
if( $this->needUpdate ){
|
64 |
+
delete_option("robo_gallery_after_install");
|
65 |
+
add_option( 'robo_gallery_after_install', '1' );
|
66 |
+
|
67 |
delete_option("rbs_gallery_db_version");
|
68 |
add_option( "rbs_gallery_db_version", ROBO_GALLERY_VERSION );
|
69 |
$this->posts = $this->getGalleryPost();
|
includes/rbs_gallery_init.php
CHANGED
@@ -90,8 +90,8 @@ function create_post_type_robo_gallery() {
|
|
90 |
'supports' => $supportArray,
|
91 |
'menu_icon' => 'dashicons-format-gallery',
|
92 |
));
|
93 |
-
if ( is_admin() && get_option( '
|
94 |
-
delete_option( '
|
95 |
global $wp_rewrite; $wp_rewrite->flush_rules();
|
96 |
}
|
97 |
}
|
@@ -162,13 +162,13 @@ if(!function_exists('rbs_gallery_main_init')){
|
|
162 |
rbs_gallery_include('rbs_create_post_ajax.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
163 |
|
164 |
/* Init function */
|
165 |
-
|
166 |
rbs_gallery_include('backup/backup.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
167 |
-
|
168 |
if( !get_option(ROBO_GALLERY_PREFIX.'categoryShow', 0) ){
|
169 |
rbs_gallery_include('category/category.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
170 |
}
|
171 |
-
|
172 |
rbs_gallery_include('stats/stats.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
173 |
}
|
174 |
}
|
90 |
'supports' => $supportArray,
|
91 |
'menu_icon' => 'dashicons-format-gallery',
|
92 |
));
|
93 |
+
if ( is_admin() && get_option( 'robo_gallery_after_install' ) == '1' ) {
|
94 |
+
delete_option( 'robo_gallery_after_install' );
|
95 |
global $wp_rewrite; $wp_rewrite->flush_rules();
|
96 |
}
|
97 |
}
|
162 |
rbs_gallery_include('rbs_create_post_ajax.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
163 |
|
164 |
/* Init function */
|
165 |
+
/* backup init */
|
166 |
rbs_gallery_include('backup/backup.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
167 |
+
/* category init */
|
168 |
if( !get_option(ROBO_GALLERY_PREFIX.'categoryShow', 0) ){
|
169 |
rbs_gallery_include('category/category.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
170 |
}
|
171 |
+
/* stats init */
|
172 |
rbs_gallery_include('stats/stats.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
173 |
}
|
174 |
}
|
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.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -11,6 +11,8 @@ Gallery. It's really attractive part of your pages. Gallery with categories, hig
|
|
11 |
|
12 |
== Description ==
|
13 |
|
|
|
|
|
14 |
#### [Gallery Most Easy and Powerful plugin to create attractive image section on your WordPress website.](http://robosoft.co/robogallery/#overview)
|
15 |
|
16 |
#### Gallery on your website it's really attractive and very important part of your pages. If you looking for fast, easy gallery with simple and very beautiful, highly customizable design [here is it...](http://robosoft.co/robogallery/#overview) Gallery where even newbie in Wordpress will be able to create your first gallery in few minutes and at the same time Wordpress professionals get advanced tools and freedom of creativity. Just download this Gallery and you'll not look for any other gallery any more! [Fall in Love with this Gallery like we do!](http://robosoft.co/robogallery/#overview)
|
@@ -201,6 +203,10 @@ If any problem occurs, please contact us.
|
|
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
|
@@ -859,6 +865,10 @@ If any problem occurs, please contact us.
|
|
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
|
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.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
**Gallery - Robo Gallery**
|
15 |
+
|
16 |
#### [Gallery Most Easy and Powerful plugin to create attractive image section on your WordPress website.](http://robosoft.co/robogallery/#overview)
|
17 |
|
18 |
#### Gallery on your website it's really attractive and very important part of your pages. If you looking for fast, easy gallery with simple and very beautiful, highly customizable design [here is it...](http://robosoft.co/robogallery/#overview) Gallery where even newbie in Wordpress will be able to create your first gallery in few minutes and at the same time Wordpress professionals get advanced tools and freedom of creativity. Just download this Gallery and you'll not look for any other gallery any more! [Fall in Love with this Gallery like we do!](http://robosoft.co/robogallery/#overview)
|
203 |
|
204 |
== Changelog ==
|
205 |
|
206 |
+
= 2.4.6 =
|
207 |
+
* Fixed gallery link option
|
208 |
+
* Fixed default gallery output after installation event
|
209 |
+
|
210 |
= 2.4.5 =
|
211 |
* Fixed express panel publishing issues, per users requests
|
212 |
* Added show/hide option for express panel
|
865 |
|
866 |
== Upgrade Notice ==
|
867 |
|
868 |
+
= 2.4.6 =
|
869 |
+
Fixed gallery link option
|
870 |
+
Fixed default gallery output after installation event
|
871 |
+
|
872 |
= 2.4.5 =
|
873 |
Fixed express panel publishing issues, per users requests
|
874 |
Added show/hide option for express panel
|
robogallery.php
CHANGED
@@ -1,23 +1,22 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
Text Domain: rbs_gallery
|
13 |
-
Domain Path: /languages
|
14 |
-
*/
|
15 |
|
16 |
-
if
|
|
|
17 |
|
18 |
define("ROBO_GALLERY", 1);
|
19 |
-
define("ROBO_GALLERY_VERSION", '2.4.
|
20 |
-
|
|
|
|
|
21 |
define("ROBO_GALLERY_SPECIAL", 0);
|
22 |
|
23 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
@@ -25,8 +24,6 @@ function rbs_gallery_load_textdomain() {
|
|
25 |
load_plugin_textdomain( 'rbs_gallery', false, dirname(plugin_basename( __FILE__ )) . '/languages' );
|
26 |
}
|
27 |
|
28 |
-
|
29 |
-
|
30 |
if(!function_exists('rbs_gallery_pro_check')){
|
31 |
function rbs_gallery_pro_check(){
|
32 |
$proPath = '';
|
@@ -57,7 +54,7 @@ define("ROBO_GALLERY_EXTENSIONS_PATH", ROBO_GALLERY_INCLUDES_PATH.'extensions/'
|
|
57 |
define("ROBO_GALLERY_CMB_PATH", ROBO_GALLERY_PATH.'cmb2/');
|
58 |
define("ROBO_GALLERY_CMB_FILEDS_PATH", ROBO_GALLERY_CMB_PATH.'fields/');
|
59 |
|
60 |
-
define("ROBO_GALLERY_URL",
|
61 |
|
62 |
function activateRoboGallery() {
|
63 |
require_once ROBO_GALLERY_INCLUDES_PATH.'rbs_class_activator.php';
|
@@ -71,4 +68,5 @@ function deactivateRoboGallery() {
|
|
71 |
}
|
72 |
register_deactivation_hook( __FILE__, 'deactivateRoboGallery' );
|
73 |
|
74 |
-
if( file_exists(ROBO_GALLERY_INCLUDES_PATH.'rbs_gallery_init.php') )
|
|
1 |
<?php
|
|
|
2 |
/*
|
3 |
+
Plugin Name: Robo Gallery
|
4 |
+
Plugin URI: http://robosoft.co/gallery
|
5 |
+
Description: Gallery it's easy and elegant way to publish images on page. Responsive, stylish and simple gallery.
|
6 |
+
Author: RoboSoft
|
7 |
+
Version: 2.4.6
|
8 |
+
Author URI: http://robosoft.co/gallery
|
9 |
+
License: GPLv3 or later
|
10 |
+
*/
|
|
|
|
|
|
|
11 |
|
12 |
+
if(!defined('WPINC'))die;
|
13 |
+
if(!defined("ABSPATH"))exit;
|
14 |
|
15 |
define("ROBO_GALLERY", 1);
|
16 |
+
define("ROBO_GALLERY_VERSION", '2.4.6');
|
17 |
+
|
18 |
+
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
19 |
+
|
20 |
define("ROBO_GALLERY_SPECIAL", 0);
|
21 |
|
22 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
24 |
load_plugin_textdomain( 'rbs_gallery', false, dirname(plugin_basename( __FILE__ )) . '/languages' );
|
25 |
}
|
26 |
|
|
|
|
|
27 |
if(!function_exists('rbs_gallery_pro_check')){
|
28 |
function rbs_gallery_pro_check(){
|
29 |
$proPath = '';
|
54 |
define("ROBO_GALLERY_CMB_PATH", ROBO_GALLERY_PATH.'cmb2/');
|
55 |
define("ROBO_GALLERY_CMB_FILEDS_PATH", ROBO_GALLERY_CMB_PATH.'fields/');
|
56 |
|
57 |
+
define("ROBO_GALLERY_URL", plugin_dir_url( __FILE__ ));
|
58 |
|
59 |
function activateRoboGallery() {
|
60 |
require_once ROBO_GALLERY_INCLUDES_PATH.'rbs_class_activator.php';
|
68 |
}
|
69 |
register_deactivation_hook( __FILE__, 'deactivateRoboGallery' );
|
70 |
|
71 |
+
if( file_exists(ROBO_GALLERY_INCLUDES_PATH.'rbs_gallery_init.php') )
|
72 |
+
require_once ROBO_GALLERY_INCLUDES_PATH.'rbs_gallery_init.php';
|