Version Description
- Updated hover mode for gallery thumbnails on mobile devices
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.6.6 |
Comparing to | |
See all releases |
Code changes from version 2.6.5 to 2.6.6
- includes/frontend/rbs_gallery_class.php +15 -13
- includes/options/rbs_gallery_options_hover.php +11 -0
- js/robo_gallery.js +1 -1
- readme.txt +7 -1
- robogallery.php +4 -4
includes/frontend/rbs_gallery_class.php
CHANGED
@@ -277,6 +277,7 @@ class roboGallery extends roboGalleryUtils{
|
|
277 |
|
278 |
$this->selectImages->getImages();
|
279 |
|
|
|
280 |
$this->helper->setOption( 'overlayEffect', 'string');
|
281 |
$this->helper->setOption( 'boxesToLoadStart', 'int');
|
282 |
$this->helper->setOption( 'boxesToLoad', 'int');
|
@@ -327,7 +328,12 @@ class roboGallery extends roboGalleryUtils{
|
|
327 |
$hover_template = '';
|
328 |
$desc_template = '';
|
329 |
|
330 |
-
if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'hover', true ) )
|
|
|
|
|
|
|
|
|
|
|
331 |
|
332 |
if ( $this->pro ) $this->setHoverType();
|
333 |
|
@@ -358,7 +364,7 @@ class roboGallery extends roboGalleryUtils{
|
|
358 |
$this->setLightboxBg();
|
359 |
}
|
360 |
|
361 |
-
|
362 |
$lightboxColor = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxColor', true );
|
363 |
if($lightboxColor) $this->rbsTextLightboxStyle .= 'color: '.$lightboxColor.';';
|
364 |
|
@@ -499,12 +505,9 @@ class roboGallery extends roboGalleryUtils{
|
|
499 |
|
500 |
$lightboxCaption = '';
|
501 |
|
502 |
-
$newLine='';
|
503 |
-
$lineBrake=
|
504 |
-
|
505 |
-
$newLine = "\t";
|
506 |
-
$lineBrake="\n";
|
507 |
-
}
|
508 |
$lightboxText = esc_attr($lightboxText);
|
509 |
$seo = get_option( ROBO_GALLERY_PREFIX.'seo', '' );
|
510 |
if( $seo ){
|
@@ -644,7 +647,6 @@ class roboGallery extends roboGalleryUtils{
|
|
644 |
function getButtonStyle($optionName){
|
645 |
$class = '';
|
646 |
|
647 |
-
/* robo_gallery */
|
648 |
if ( $this->pro ) $class .= $this->getMenuButton($optionName);
|
649 |
else $class = 'button-border-caution ';
|
650 |
|
@@ -656,10 +658,10 @@ class roboGallery extends roboGalleryUtils{
|
|
656 |
}
|
657 |
|
658 |
switch ( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.$optionName.'Size', true ) ) {
|
659 |
-
case 'jumbo':
|
660 |
-
case 'large':
|
661 |
-
case 'small':
|
662 |
-
case 'tiny':
|
663 |
case 'normal': default: break;
|
664 |
}
|
665 |
|
277 |
|
278 |
$this->selectImages->getImages();
|
279 |
|
280 |
+
|
281 |
$this->helper->setOption( 'overlayEffect', 'string');
|
282 |
$this->helper->setOption( 'boxesToLoadStart', 'int');
|
283 |
$this->helper->setOption( 'boxesToLoad', 'int');
|
328 |
$hover_template = '';
|
329 |
$desc_template = '';
|
330 |
|
331 |
+
if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'hover', true ) ){
|
332 |
+
$this->hover = 1;
|
333 |
+
if( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'noHoverOnMobile', true ) ){
|
334 |
+
$this->helper->setValue( 'noHoverOnMobile', 'false' );
|
335 |
+
}
|
336 |
+
}
|
337 |
|
338 |
if ( $this->pro ) $this->setHoverType();
|
339 |
|
364 |
$this->setLightboxBg();
|
365 |
}
|
366 |
|
367 |
+
|
368 |
$lightboxColor = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxColor', true );
|
369 |
if($lightboxColor) $this->rbsTextLightboxStyle .= 'color: '.$lightboxColor.';';
|
370 |
|
505 |
|
506 |
$lightboxCaption = '';
|
507 |
|
508 |
+
$newLine=''; $lineBrake='';
|
509 |
+
if($this->debug){ $newLine = "\t"; $lineBrake="\n"; }
|
510 |
+
|
|
|
|
|
|
|
511 |
$lightboxText = esc_attr($lightboxText);
|
512 |
$seo = get_option( ROBO_GALLERY_PREFIX.'seo', '' );
|
513 |
if( $seo ){
|
647 |
function getButtonStyle($optionName){
|
648 |
$class = '';
|
649 |
|
|
|
650 |
if ( $this->pro ) $class .= $this->getMenuButton($optionName);
|
651 |
else $class = 'button-border-caution ';
|
652 |
|
658 |
}
|
659 |
|
660 |
switch ( get_post_meta( $this->id, ROBO_GALLERY_PREFIX.$optionName.'Size', true ) ) {
|
661 |
+
case 'jumbo': $class .= 'button-jumbo '; break;
|
662 |
+
case 'large': $class .= 'button-large '; break;
|
663 |
+
case 'small': $class .= 'button-small '; break;
|
664 |
+
case 'tiny': $class .= 'button-tiny '; break;
|
665 |
case 'normal': default: break;
|
666 |
}
|
667 |
|
includes/options/rbs_gallery_options_hover.php
CHANGED
@@ -58,6 +58,17 @@ $hover_group->add_field( array(
|
|
58 |
)
|
59 |
);
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
$hover_group->add_field( array(
|
62 |
'name' => __( 'Bg Color', 'rbs_gallery' ),
|
63 |
'id' => ROBO_GALLERY_PREFIX.'background',
|
58 |
)
|
59 |
);
|
60 |
|
61 |
+
|
62 |
+
$hover_group->add_field( array(
|
63 |
+
'name' => __('No Hover for Mobile', 'rbs_gallery' ),
|
64 |
+
'id' => ROBO_GALLERY_PREFIX . 'noHoverOnMobile',
|
65 |
+
'type' => 'switch',
|
66 |
+
'desc' => __('this option turn off hover effect only for mobile devices', 'rbs_gallery' ),
|
67 |
+
'default' => rbs_gallery_set_checkbox_default_for_new_post(0),
|
68 |
+
'bootstrap_style'=> 1,
|
69 |
+
));
|
70 |
+
|
71 |
+
|
72 |
$hover_group->add_field( array(
|
73 |
'name' => __( 'Bg Color', 'rbs_gallery' ),
|
74 |
'id' => ROBO_GALLERY_PREFIX.'background',
|
js/robo_gallery.js
CHANGED
@@ -69,4 +69,4 @@ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeO
|
|
69 |
* Copyright (c) 2014-2016, Robosoft. All rights reserved.
|
70 |
* Available only in http://robosoft.co/robogallery
|
71 |
*/
|
72 |
-
!function(e){jQuery(".robo_gallery").on("click",".rbs-lightbox.mfp-link",function(e){e.preventDefault(),window.location.href=jQuery(this).data("mfp-src")}),jQuery(".robo_gallery").each(function(){var e=window[jQuery(this).data("options")],o=jQuery.extend({},e)
|
69 |
* Copyright (c) 2014-2016, Robosoft. All rights reserved.
|
70 |
* Available only in http://robosoft.co/robogallery
|
71 |
*/
|
72 |
+
function robo_gallery_js_check_mobile(){var e=!1;return function(o){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}!function(e){jQuery(".robo_gallery").on("click",".rbs-lightbox.mfp-link",function(e){e.preventDefault(),window.location.href=jQuery(this).data("mfp-src")}),jQuery(".robo_gallery").each(function(){var e=window[jQuery(this).data("options")],o=jQuery.extend({},e);o.noHoverOnMobile&&robo_gallery_js_check_mobile()&&(o.thumbnailOverlay=!1);var i=jQuery(this).collagePlus(o);1==o.touch&&(jQuery("body").swipe({swipeLeft:function(e,o,i,a,t){jQuery(".mfp-arrow-left").magnificPopup("prev")},swipeRight:function(){jQuery(".mfp-arrow-right").magnificPopup("next")},threshold:50}),jQuery("body").swipe("disable")),void 0!=roboGalleryDelay&&roboGalleryDelay>0&&setTimeout(function(){i.eveMB("resize")},roboGalleryDelay)})}(jQuery);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://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.7
|
7 |
-
Stable tag: 2.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -254,6 +254,9 @@ If any problem occurs, please contact us.
|
|
254 |
|
255 |
== Changelog ==
|
256 |
|
|
|
|
|
|
|
257 |
= 2.6.5 =
|
258 |
* Added new search field label customization option
|
259 |
* Optimization of the admin interface options
|
@@ -352,6 +355,9 @@ If any problem occurs, please contact us.
|
|
352 |
|
353 |
== Upgrade Notice ==
|
354 |
|
|
|
|
|
|
|
355 |
= 2.6.5 =
|
356 |
Added new search field label customization option
|
357 |
Optimization of the admin interface options
|
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.7
|
7 |
+
Stable tag: 2.6.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
254 |
|
255 |
== Changelog ==
|
256 |
|
257 |
+
= 2.6.6 =
|
258 |
+
* Updated hover mode for gallery thumbnails on mobile devices
|
259 |
+
|
260 |
= 2.6.5 =
|
261 |
* Added new search field label customization option
|
262 |
* Optimization of the admin interface options
|
355 |
|
356 |
== Upgrade Notice ==
|
357 |
|
358 |
+
= 2.6.6 =
|
359 |
+
Updated hover mode for gallery thumbnails on mobile devices
|
360 |
+
|
361 |
= 2.6.5 =
|
362 |
Added new search field label customization option
|
363 |
Optimization of the admin interface options
|
robogallery.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Robo Gallery
|
4 |
Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
|
5 |
-
Version: 2.6.
|
6 |
Author: RoboSoft
|
7 |
Plugin URI: http://robosoft.co/gallery
|
8 |
Author URI: http://robosoft.co/gallery
|
@@ -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.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-
|
24 |
-
define("ROBO_GALLERY_EVENT_HOUR",
|
25 |
|
26 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
27 |
function rbs_gallery_load_textdomain() {
|
2 |
/*
|
3 |
Plugin Name: Robo Gallery
|
4 |
Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
|
5 |
+
Version: 2.6.6
|
6 |
Author: RoboSoft
|
7 |
Plugin URI: http://robosoft.co/gallery
|
8 |
Author URI: http://robosoft.co/gallery
|
15 |
if(!defined("ABSPATH"))exit;
|
16 |
|
17 |
define("ROBO_GALLERY", 1);
|
18 |
+
define("ROBO_GALLERY_VERSION", '2.6.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-02-24');
|
24 |
+
define("ROBO_GALLERY_EVENT_HOUR", 20);
|
25 |
|
26 |
add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
|
27 |
function rbs_gallery_load_textdomain() {
|