Version Description
- New advanced, automatic js error detection and fixing system
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.7.2 |
Comparing to | |
See all releases |
Code changes from version 2.7.1 to 2.7.2
includes/frontend/rbs_gallery_class.php
CHANGED
@@ -579,7 +579,7 @@ class roboGallery extends roboGalleryUtils{
|
|
579 |
}
|
580 |
if( $this->returnHtml ){
|
581 |
$this->returnHtml =
|
582 |
-
'<div style="'.$this->rbsMainDivStyle.'">'
|
583 |
.($pretext?'<div>'.$pretext.'</div>':'')
|
584 |
.($menu?$this->getMenu():'').
|
585 |
'<div id="'.$this->galleryId.'" data-options="'.$this->galleryId.'" style="width:100%;" class="robo_gallery">'
|
@@ -588,7 +588,11 @@ class roboGallery extends roboGalleryUtils{
|
|
588 |
.($aftertext?'<div>'.$aftertext.'</div>':'')
|
589 |
.'</div>'
|
590 |
.$this->seoContent
|
591 |
-
|
|
|
|
|
|
|
|
|
592 |
|
593 |
if( count($this->scriptList) ){ //&& !defined('ROBO_GALLERY_JS_FILES')
|
594 |
//define( 'ROBO_GALLERY_JS_FILES', 1);
|
@@ -744,4 +748,36 @@ class roboGallery extends roboGalleryUtils{
|
|
744 |
|
745 |
return $class;
|
746 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
747 |
}
|
579 |
}
|
580 |
if( $this->returnHtml ){
|
581 |
$this->returnHtml =
|
582 |
+
'<div id="robo_gallery_main_block_'.$this->galleryId.'" style="'.$this->rbsMainDivStyle.'">'
|
583 |
.($pretext?'<div>'.$pretext.'</div>':'')
|
584 |
.($menu?$this->getMenu():'').
|
585 |
'<div id="'.$this->galleryId.'" data-options="'.$this->galleryId.'" style="width:100%;" class="robo_gallery">'
|
588 |
.($aftertext?'<div>'.$aftertext.'</div>':'')
|
589 |
.'</div>'
|
590 |
.$this->seoContent
|
591 |
+
.$this->getErrorDialog()
|
592 |
+
.'<script>'
|
593 |
+
.$this->compileJavaScript()
|
594 |
+
.$this->getCheckJsFunction()
|
595 |
+
.'</script>';
|
596 |
|
597 |
if( count($this->scriptList) ){ //&& !defined('ROBO_GALLERY_JS_FILES')
|
598 |
//define( 'ROBO_GALLERY_JS_FILES', 1);
|
748 |
|
749 |
return $class;
|
750 |
}
|
751 |
+
|
752 |
+
public function getCheckJsFunction(){
|
753 |
+
$jsFunction = '';
|
754 |
+
$jsFunction .= '
|
755 |
+
var prefix = window.addEventListener ? "" : "on";
|
756 |
+
var eventName = window.addEventListener ? "addEventListener" : "attachEvent";
|
757 |
+
window[eventName](prefix + "load", function(event){
|
758 |
+
var jObject = window.rbjQuer || window.jQuery ;
|
759 |
+
if( (typeof jObject == "undefined") || (jObject == null) || (typeof jObject.fn.collagePlus == "undefined") || (jObject.fn.collagePlus == null) ){
|
760 |
+
console.log(" Robo Gallery :: error loading js file ");
|
761 |
+
var roboGalleryObj = document.getElementById("robo_gallery_main_block_'.$this->galleryId.'");
|
762 |
+
var roboErrorObj = document.getElementById("robo_gallery_error_message_'.$this->galleryId.'");
|
763 |
+
roboGalleryObj.parentNode.insertBefore( roboErrorObj, roboGalleryObj);
|
764 |
+
roboErrorObj.style.display = "block";
|
765 |
+
}
|
766 |
+
}, false);';
|
767 |
+
return $jsFunction;
|
768 |
+
}
|
769 |
+
|
770 |
+
function getErrorDialog(){
|
771 |
+
$htmlReturn = '';
|
772 |
+
$htmlReturn .= '<div id="robo_gallery_error_message_'.$this->galleryId.'" style="display: none; ">';
|
773 |
+
$htmlReturn .= '<strong>'.__('Robo Gallery :: Loading problems [error 768]', 'robo-gallery').'</strong><br/>'
|
774 |
+
.__('Looks like you have some loading problems or conflict of Robo Gallery with some other plugins or theme.', 'robo-gallery')
|
775 |
+
.__('Please open Settings section on the right side admin menu and use Compatibility Settings / jQuery option. ', 'robo-gallery')
|
776 |
+
.__('Try to switch jQuery option value to Forced include, save settings try to reload page. ', 'robo-gallery')
|
777 |
+
.__('If it\'s not gonna help please try Alternative option. User Guide: [ <a href="https://robosoft.co/knowledgebase/2017/11/07/loading-problems-or-conflicts/" target="_blank">Fix conflict solution</a> ] ','robo-gallery')
|
778 |
+
.'<br/>'
|
779 |
+
.__('If it\'s not gonna help please <a href="https://robosoft.co/new-ticket" target="_blank">contact our support team</a> and we help you to find solution.', 'robo-gallery');
|
780 |
+
$htmlReturn .= '</div>';
|
781 |
+
return $htmlReturn;
|
782 |
+
}
|
783 |
}
|
includes/frontend/rbs_gallery_class_utils.php
CHANGED
@@ -107,6 +107,7 @@ class roboGalleryUtils extends roboGalleryParent{
|
|
107 |
function getCorrectSize( $val = ''){
|
108 |
$correctVal = $val;
|
109 |
if( strpos( $val, '%')===false && strpos( $val, 'px')===false ){
|
|
|
110 |
$correctVal = $val.'px';
|
111 |
}
|
112 |
return $correctVal;
|
107 |
function getCorrectSize( $val = ''){
|
108 |
$correctVal = $val;
|
109 |
if( strpos( $val, '%')===false && strpos( $val, 'px')===false ){
|
110 |
+
$val = (int) $val;
|
111 |
$correctVal = $val.'px';
|
112 |
}
|
113 |
return $correctVal;
|
includes/options/rbs_gallery_options_copy.php
CHANGED
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
16 |
|
17 |
if( isset($_GET['post']) ) $id = (int) $_GET['post'];
|
18 |
|
19 |
-
if( !$id && isset($_POST['post_ID']) ) $id= $_POST['post_ID'];
|
20 |
|
21 |
if( !$id ) return ;
|
22 |
|
16 |
|
17 |
if( isset($_GET['post']) ) $id = (int) $_GET['post'];
|
18 |
|
19 |
+
if( !isset($id) && !$id && isset($_POST['post_ID']) ) $id= $_POST['post_ID'];
|
20 |
|
21 |
if( !$id ) return ;
|
22 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: gallerysupport, robosoft
|
|
3 |
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.
|
7 |
-
Stable tag: 2.7.
|
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.1 =
|
263 |
* New advanced gallery categories sorting section
|
264 |
|
@@ -425,6 +428,9 @@ If any problem occurs, please contact us.
|
|
425 |
|
426 |
== Upgrade Notice ==
|
427 |
|
|
|
|
|
|
|
428 |
= 2.7.1 =
|
429 |
New advanced gallery categories sorting section
|
430 |
|
3 |
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.2
|
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.2 =
|
263 |
+
* New advanced, automatic js error detection and fixing system
|
264 |
+
|
265 |
= 2.7.1 =
|
266 |
* New advanced gallery categories sorting section
|
267 |
|
428 |
|
429 |
== Upgrade Notice ==
|
430 |
|
431 |
+
= 2.7.2 =
|
432 |
+
New advanced, automatic js error detection and fixing system
|
433 |
+
|
434 |
= 2.7.1 =
|
435 |
New advanced gallery categories sorting section
|
436 |
|
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.
|
7 |
Author: RoboSoft
|
8 |
Author URI: https://robosoft.co/wordpress-gallery-plugin
|
9 |
License: GPLv3 or later
|
@@ -15,13 +15,13 @@ if(!defined('WPINC'))die;
|
|
15 |
if(!defined("ABSPATH"))exit;
|
16 |
|
17 |
define("ROBO_GALLERY", 1);
|
18 |
-
define("ROBO_GALLERY_VERSION", '2.7.
|
19 |
|
20 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
21 |
|
22 |
-
define("ROBO_GALLERY_SPECIAL",
|
23 |
-
define("ROBO_GALLERY_EVENT_DATE", '
|
24 |
-
define("ROBO_GALLERY_EVENT_HOUR",
|
25 |
|
26 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
27 |
function 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.7.2
|
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.7.2');
|
19 |
|
20 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
21 |
|
22 |
+
define("ROBO_GALLERY_SPECIAL", 0);
|
23 |
+
define("ROBO_GALLERY_EVENT_DATE", '2016-12-08');
|
24 |
+
define("ROBO_GALLERY_EVENT_HOUR", 20);
|
25 |
|
26 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
27 |
function rbs_gallery_load_textdomain() {
|