Gallery – Photo Gallery and Images Gallery - Version 2.7.10

Version Description

  • Changed navigation in admin section
Download this release

Release Info

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

Code changes from version 2.7.9 to 2.7.10

includes/rbs_gallery_init.php CHANGED
@@ -23,7 +23,6 @@ define( "ROBO_GALLERY_LABEL_PRO", '<span>'.__( 'Available in', 'robo-gallery' ).
23
  define( "ROBO_GALLERY_ICON_UPDATE_PRO", '<button type="button" class="btn btn-success btn-xs rbs-label-pro">Pro</button>');
24
  define( "ROBO_GALLERY_LABEL_UPDATE_PRO", '<span>'.__( 'Please update ', 'robo-gallery' ).'</span> '.ROBO_GALLERY_ICON_UPDATE_PRO.'<span>'.__( ' key', 'robo-gallery' ).'</span> ');
25
 
26
- define( "ROBO_GALLERY_LABEL_SEARCH_WP_UP", 'JetPack_Sorting_Model_Key_ID_7aVRGk9y');
27
 
28
  if(!function_exists('rbs_gallery_include')){
29
  function rbs_gallery_include( $filesForInclude, $path = '' ){
23
  define( "ROBO_GALLERY_ICON_UPDATE_PRO", '<button type="button" class="btn btn-success btn-xs rbs-label-pro">Pro</button>');
24
  define( "ROBO_GALLERY_LABEL_UPDATE_PRO", '<span>'.__( 'Please update ', 'robo-gallery' ).'</span> '.ROBO_GALLERY_ICON_UPDATE_PRO.'<span>'.__( ' key', 'robo-gallery' ).'</span> ');
25
 
 
26
 
27
  if(!function_exists('rbs_gallery_include')){
28
  function rbs_gallery_include( $filesForInclude, $path = '' ){
includes/rbs_gallery_menu.php CHANGED
@@ -19,7 +19,7 @@ if(!function_exists('robo_gallery_fix_menu')){
19
  if(
20
  isset($_GET['post_type']) && $_GET['post_type']=='robo_gallery_table' &&
21
  isset($_GET['page']) && $_GET['page']=='robo-gallery-support'
22
- ) wp_redirect( "https://robosoft.co/go.php?product=gallery&task=support" );
23
 
24
  if(
25
  isset($_GET['post_type']) && $_GET['post_type']=='robo_gallery_table' &&
@@ -89,7 +89,7 @@ if(!function_exists('robo_gallery_support_submenu_page')){
89
  add_submenu_page( 'edit.php?post_type=robo_gallery_table', 'Robo Gallery Support', 'Support', 'manage_options', 'robo-gallery-support', 'robo_gallery_support_submenu_page_render');
90
  }
91
  function robo_gallery_support_submenu_page_render(){
92
- echo '<script> window.open("https://robosoft.co/go.php?product=gallery&task=support", "_bank"); window.open("edit.php?post_type=robo_gallery_table", "_self"); </script>';
93
  }
94
  }
95
 
@@ -112,6 +112,10 @@ if(!function_exists('robo_gallery_guides_submenu_page')){
112
  if(!function_exists('rbs_gallery_menuConfig')){
113
  function rbs_gallery_menuConfig(){
114
  wp_enqueue_script('robo-gallery-menu', ROBO_GALLERY_URL.'js/admin/menu.js', array( 'jquery' ), ROBO_GALLERY_VERSION, true );
 
 
 
 
115
  }
116
  add_action( 'in_admin_header', 'rbs_gallery_menuConfig' );
117
  }
19
  if(
20
  isset($_GET['post_type']) && $_GET['post_type']=='robo_gallery_table' &&
21
  isset($_GET['page']) && $_GET['page']=='robo-gallery-support'
22
+ ) wp_redirect( "https://robosoft.co/go.php?product=gallery&task=support".(ROBO_GALLERY_PRO?'&pro=1':'') );
23
 
24
  if(
25
  isset($_GET['post_type']) && $_GET['post_type']=='robo_gallery_table' &&
89
  add_submenu_page( 'edit.php?post_type=robo_gallery_table', 'Robo Gallery Support', 'Support', 'manage_options', 'robo-gallery-support', 'robo_gallery_support_submenu_page_render');
90
  }
91
  function robo_gallery_support_submenu_page_render(){
92
+ echo '<script> window.open("https://robosoft.co/go.php?product=gallery&task=support'.(ROBO_GALLERY_PRO?'&pro=1':'').'", "_bank"); window.open("edit.php?post_type=robo_gallery_table", "_self"); </script>';
93
  }
94
  }
95
 
112
  if(!function_exists('rbs_gallery_menuConfig')){
113
  function rbs_gallery_menuConfig(){
114
  wp_enqueue_script('robo-gallery-menu', ROBO_GALLERY_URL.'js/admin/menu.js', array( 'jquery' ), ROBO_GALLERY_VERSION, true );
115
+
116
+ wp_localize_script('robo-gallery-menu', 'robo_gallery_vars',[
117
+ 'pro' => ROBO_GALLERY_PRO,
118
+ ]);
119
  }
120
  add_action( 'in_admin_header', 'rbs_gallery_menuConfig' );
121
  }
js/admin/menu.js CHANGED
@@ -14,7 +14,7 @@
14
  jQuery(function(){
15
  jQuery('a[href="edit.php?post_type=robo_gallery_table&page=robo-gallery-support"]').click( function(event ){
16
  event.preventDefault();
17
- window.open("http://robosoft.co/go.php?product=gallery&task=support", "_blank");
18
  });
19
  jQuery('a[href="edit.php?post_type=robo_gallery_table&page=robo-gallery-demo"]').click( function(event ){
20
  event.preventDefault();
14
  jQuery(function(){
15
  jQuery('a[href="edit.php?post_type=robo_gallery_table&page=robo-gallery-support"]').click( function(event ){
16
  event.preventDefault();
17
+ window.open("http://robosoft.co/go.php?product=gallery&task=support"+(robo_gallery_vars.pro=="1"?'&pro=1':''), "_blank");
18
  });
19
  jQuery('a[href="edit.php?post_type=robo_gallery_table&page=robo-gallery-demo"]').click( function(event ){
20
  event.preventDefault();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://robosoft.co/robogallery
4
  Tags: gallery, photo gallery, images gallery, gallery images, wordpress gallery plugin, 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.9
7
- Stable tag: 2.7.9
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -259,6 +259,9 @@ If any problem occurs, please contact us.
259
 
260
  == Changelog ==
261
 
 
 
 
262
  = 2.7.9 =
263
  * Fix of the notifications
264
 
@@ -450,6 +453,9 @@ If any problem occurs, please contact us.
450
 
451
  == Upgrade Notice ==
452
 
 
 
 
453
  = 2.7.9 =
454
  Fix of the notifications
455
 
4
  Tags: gallery, photo gallery, images gallery, gallery images, wordpress gallery plugin, 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.9
7
+ Stable tag: 2.7.10
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
259
 
260
  == Changelog ==
261
 
262
+ = 2.7.10 =
263
+ * Changed navigation in admin section
264
+
265
  = 2.7.9 =
266
  * Fix of the notifications
267
 
453
 
454
  == Upgrade Notice ==
455
 
456
+ = 2.7.10 =
457
+ Changed navigation in admin section
458
+
459
  = 2.7.9 =
460
  Fix of the notifications
461
 
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.7.9
7
  Author: RoboSoft
8
  Author URI: https://robosoft.co/wordpress-gallery-plugin
9
  License: GPLv3 or later
@@ -14,9 +14,8 @@ Domain Path: /languages
14
  if(!defined('WPINC'))die;
15
  if(!defined("ABSPATH"))exit;
16
 
17
-
18
  define("ROBO_GALLERY", 1);
19
- define("ROBO_GALLERY_VERSION", '2.7.9');
20
 
21
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
22
 
@@ -30,57 +29,6 @@ function rbs_gallery_load_textdomain() {
30
  }
31
 
32
 
33
- /*add_action('wp', array($this, 'buffer_start'), 1000000);
34
- */
35
-
36
- /*add_action( 'plugins_loaded', 'robo_cache_check', 1000000);
37
- function robo_cache_check(){
38
- if ( !is_admin() ) {
39
- if(
40
- isset($_SERVER) &&
41
- isset($_SERVER['HTTP_HOST']) &&
42
- isset($_SERVER['REQUEST_URI'])
43
- ) {
44
-
45
- $fileCacheName = md5($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
46
- $fileCacheFullName = ROBO_GALLERY_PATH.'/cache/html/'.$fileCacheName;
47
-
48
- if(file_exists($fileCacheFullName)){
49
- $cacheContent = file_get_contents($fileCacheFullName);
50
- echo $cacheContent;
51
- die();
52
- }
53
- }
54
-
55
- ob_start('robo_cache_html_compress');
56
- }
57
- }
58
-
59
- add_action('shutdown', 'robo_cache_write', 1000000);
60
- add_action( 'wp_loaded', 'robo_cache_write', 1000000);
61
- function robo_cache_write() {
62
- if ( !is_admin() ) {
63
- ob_start('robo_cache_html_compress');
64
- }
65
- }
66
-
67
- function robo_cache_html_compress( $html ) {
68
- if(
69
- isset($_SERVER) &&
70
- isset($_SERVER['HTTP_HOST']) &&
71
- isset($_SERVER['REQUEST_URI'])
72
- ) {
73
- $fileCacheName = md5($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
74
- $fileCacheFullName = ROBO_GALLERY_PATH.'/cache/html/'.$fileCacheName;
75
- if(!file_exists($fileCacheFullName)){
76
- $htmlComment = '<!-- read from cache file '.$fileCacheName.' url '.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].' -->';
77
- file_put_contents( $fileCacheFullName, $html.$htmlComment);
78
- }
79
- }
80
- return $html;
81
- }*/
82
-
83
-
84
  if(!function_exists('rbs_gallery_pro_check')){
85
  function rbs_gallery_pro_check(){
86
  $proPath = '';
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.7.10
7
  Author: RoboSoft
8
  Author URI: https://robosoft.co/wordpress-gallery-plugin
9
  License: GPLv3 or later
14
  if(!defined('WPINC'))die;
15
  if(!defined("ABSPATH"))exit;
16
 
 
17
  define("ROBO_GALLERY", 1);
18
+ define("ROBO_GALLERY_VERSION", '2.7.10');
19
 
20
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
21
 
29
  }
30
 
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  if(!function_exists('rbs_gallery_pro_check')){
33
  function rbs_gallery_pro_check(){
34
  $proPath = '';