Version Description
- Updated statistics, added new reset button
- Small code fixes
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.4.2
- includes/extensions/backup/backup.form.php +1 -1
- includes/extensions/stats/stats.form.php +2 -1
- includes/rbs_class_update.php +7 -0
- includes/rbs_gallery_topblock.php +15 -9
- readme.txt +10 -2
- robogallery.php +16 -18
includes/extensions/backup/backup.form.php
CHANGED
@@ -249,7 +249,7 @@ switch ($tab) {
|
|
249 |
</tr>
|
250 |
<tr>
|
251 |
<td colspan="2">
|
252 |
-
<input type="submit" class="button button-primary " value="<?php _e('Upload XML'); ?>" name="rbsSubmitBackup">
|
253 |
</td>
|
254 |
</tr>
|
255 |
<?php wp_nonce_field( 'rbs-gallery-backup-import', 'rbs-gallery-backup' ); ?>
|
249 |
</tr>
|
250 |
<tr>
|
251 |
<td colspan="2">
|
252 |
+
<input type="submit" class="button button-primary " value="<?php _e('Upload XML or Zip'); ?>" name="rbsSubmitBackup">
|
253 |
</td>
|
254 |
</tr>
|
255 |
<?php wp_nonce_field( 'rbs-gallery-backup-import', 'rbs-gallery-backup' ); ?>
|
includes/extensions/stats/stats.form.php
CHANGED
@@ -17,7 +17,8 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
17 |
?>
|
18 |
<div class="wrap">
|
19 |
<h1 class="rbs-stats">
|
20 |
-
<?php _e('Robo Gallery Statistics', 'rbs_gallery'); ?>
|
|
|
21 |
</h1>
|
22 |
<br>
|
23 |
|
17 |
?>
|
18 |
<div class="wrap">
|
19 |
<h1 class="rbs-stats">
|
20 |
+
<?php _e('Robo Gallery Statistics', 'rbs_gallery'); ?>
|
21 |
+
<a id="robo_gallery_reset_stat" href="edit.php?post_type=robo_gallery_table&page=robo-gallery-stats" class="page-title-action"><?php _e('Reset', 'rbs_gallery'); ?></a>
|
22 |
</h1>
|
23 |
<br>
|
24 |
|
includes/rbs_class_update.php
CHANGED
@@ -45,7 +45,14 @@ class RoboGalleryUpdate {
|
|
45 |
);
|
46 |
|
47 |
public function __construct(){
|
|
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
$this->dbVersionOld = get_option( 'rbs_gallery_db_version' );
|
50 |
if(!$this->dbVersionOld) $this->dbVersionOld = 0;
|
51 |
|
45 |
);
|
46 |
|
47 |
public function __construct(){
|
48 |
+
$curVersion = get_option( 'RoboGalleryInstallVersion' );
|
49 |
|
50 |
+
if( $curVersion != ROBO_GALLERY_VERSION ){
|
51 |
+
delete_option('RoboGalleryInstallDate');
|
52 |
+
add_option( 'RoboGalleryInstallDate', time() );
|
53 |
+
add_option( "RoboGalleryInstallVersion", ROBO_GALLERY_VERSION );
|
54 |
+
}
|
55 |
+
|
56 |
$this->dbVersionOld = get_option( 'rbs_gallery_db_version' );
|
57 |
if(!$this->dbVersionOld) $this->dbVersionOld = 0;
|
58 |
|
includes/rbs_gallery_topblock.php
CHANGED
@@ -23,16 +23,22 @@ if(!function_exists('rbs_gallery_topblock')){
|
|
23 |
<div class="rbsTopBig"><span class="dashicons dashicons-cart"></span>'. __( 'Get Pro version' , 'rbs_gallery' ).'</div>
|
24 |
<div class="rbsTopSmall">'.__( 'with PRO version you get more advanced functionality and even more flexibility in settings' , 'rbs_gallery' ).' </div>
|
25 |
</div>';
|
|
|
26 |
if( defined('ROBO_GALLERY_SPECIAL') && ROBO_GALLERY_SPECIAL ){
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
}
|
38 |
/* */
|
23 |
<div class="rbsTopBig"><span class="dashicons dashicons-cart"></span>'. __( 'Get Pro version' , 'rbs_gallery' ).'</div>
|
24 |
<div class="rbsTopSmall">'.__( 'with PRO version you get more advanced functionality and even more flexibility in settings' , 'rbs_gallery' ).' </div>
|
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 |
+
|
32 |
+
if( ROBO_GALLERY_SPECIAL==1 ){
|
33 |
+
echo '<div class="rbsTopBlockFree rbs_getproversionfree_blank">
|
34 |
+
<div class="rbsTopSmall"><span class="dashicons dashicons-carrot"></span> '.__( 'Do You wish to get PRO version for FREE ?' , 'rbs_gallery' ).' </div>
|
35 |
+
</div>';
|
36 |
+
}
|
37 |
+
if(ROBO_GALLERY_SPECIAL==2){
|
38 |
+
echo '<div class="rbsTopBlockFree rbs_getproversiontrans_blank">
|
39 |
+
<div class="rbsTopSmall"><span class="dashicons dashicons-carrot"></span> '.__( 'Do You wish to get PRO version for translate?' , 'rbs_gallery' ).' </div>
|
40 |
+
</div>';
|
41 |
+
}
|
42 |
}
|
43 |
}
|
44 |
/* */
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Gallery - Photo Gallery and Images Gallery ===
|
2 |
Contributors: robosoft
|
3 |
-
Tags: gallery, Gallery Plugin, photo gallery, images gallery, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, pictures, 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 |
|
@@ -201,6 +201,10 @@ If any problem occurs, please contact us.
|
|
201 |
|
202 |
== Changelog ==
|
203 |
|
|
|
|
|
|
|
|
|
204 |
= 2.4.1 =
|
205 |
* Tested in Wordpress 4.6
|
206 |
* Small code fixes
|
@@ -843,6 +847,10 @@ If any problem occurs, please contact us.
|
|
843 |
|
844 |
== Upgrade Notice ==
|
845 |
|
|
|
|
|
|
|
|
|
846 |
= 2.4.1 =
|
847 |
Tested in Wordpress 4.6
|
848 |
Small code fixes
|
1 |
=== Gallery - Photo Gallery and Images Gallery ===
|
2 |
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.2
|
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.2 =
|
205 |
+
* Updated statistics, added new reset button
|
206 |
+
* Small code fixes
|
207 |
+
|
208 |
= 2.4.1 =
|
209 |
* Tested in Wordpress 4.6
|
210 |
* Small code fixes
|
847 |
|
848 |
== Upgrade Notice ==
|
849 |
|
850 |
+
= 2.4.2 =
|
851 |
+
Updated statistics, added new reset button
|
852 |
+
Small code fixes
|
853 |
+
|
854 |
= 2.4.1 =
|
855 |
Tested in Wordpress 4.6
|
856 |
Small code fixes
|
robogallery.php
CHANGED
@@ -1,34 +1,32 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
* License: GPL-2.0+
|
15 |
-
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
16 |
-
* Text Domain: rbs_gallery
|
17 |
-
* Domain Path: /languages
|
18 |
*/
|
19 |
|
20 |
if ( ! defined( 'WPINC' ) ) die;
|
21 |
|
22 |
define("ROBO_GALLERY", 1);
|
23 |
-
define("ROBO_GALLERY_VERSION", '2.4.
|
24 |
define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
25 |
-
define("ROBO_GALLERY_SPECIAL",
|
26 |
|
27 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
28 |
function rbs_gallery_load_textdomain() {
|
29 |
load_plugin_textdomain( 'rbs_gallery', false, dirname(plugin_basename( __FILE__ )) . '/languages' );
|
30 |
}
|
31 |
|
|
|
|
|
32 |
if(!function_exists('rbs_gallery_pro_check')){
|
33 |
function rbs_gallery_pro_check(){
|
34 |
$proPath = '';
|
1 |
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
Plugin Name: Robo Gallery
|
5 |
+
Plugin URI: http://robosoft.co/gallery
|
6 |
+
Description: Gallery with flexible and simple design. Wide range of the gallery functionality. Fully responsive gallery and mobility support.
|
7 |
+
Version: 2.4.2
|
8 |
+
Author: RoboSoft (c)
|
9 |
+
Author URI: http://robosoft.co/gallery
|
10 |
+
License: GPL-2.0+
|
11 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
12 |
+
Text Domain: rbs_gallery
|
13 |
+
Domain Path: /languages
|
|
|
|
|
|
|
|
|
14 |
*/
|
15 |
|
16 |
if ( ! defined( 'WPINC' ) ) die;
|
17 |
|
18 |
define("ROBO_GALLERY", 1);
|
19 |
+
define("ROBO_GALLERY_VERSION", '2.4.2');
|
20 |
define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
21 |
+
define("ROBO_GALLERY_SPECIAL", 1);
|
22 |
|
23 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
24 |
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 = '';
|