Version Description
- Fix: Make sure columns on mobile correspond to the settings selected in general gallery config
Download this release
Release Info
| Developer | griffinjt |
| Plugin | |
| Version | 1.5.0.5 |
| Comparing to | |
| See all releases | |
Code changes from version 1.5.0.4 to 1.5.0.5
- envira-gallery-lite.php +2 -2
- includes/global/shortcode.php +21 -17
- readme.txt +3 -0
envira-gallery-lite.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
|
| 6 |
* Author: Thomas Griffin
|
| 7 |
* Author URI: http://enviragallery.com
|
| 8 |
-
* Version: 1.5.0.
|
| 9 |
* Text Domain: envira-gallery
|
| 10 |
*
|
| 11 |
* Envira Gallery is free software: you can redistribute it and/or modify
|
|
@@ -53,7 +53,7 @@ class Envira_Gallery_Lite {
|
|
| 53 |
*
|
| 54 |
* @var string
|
| 55 |
*/
|
| 56 |
-
public $version = '1.5.0.
|
| 57 |
|
| 58 |
/**
|
| 59 |
* The name of the plugin.
|
| 5 |
* Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
|
| 6 |
* Author: Thomas Griffin
|
| 7 |
* Author URI: http://enviragallery.com
|
| 8 |
+
* Version: 1.5.0.5
|
| 9 |
* Text Domain: envira-gallery
|
| 10 |
*
|
| 11 |
* Envira Gallery is free software: you can redistribute it and/or modify
|
| 53 |
*
|
| 54 |
* @var string
|
| 55 |
*/
|
| 56 |
+
public $version = '1.5.0.5';
|
| 57 |
|
| 58 |
/**
|
| 59 |
* The name of the plugin.
|
includes/global/shortcode.php
CHANGED
|
@@ -771,8 +771,10 @@ class Envira_Gallery_Shortcode {
|
|
| 771 |
<?php
|
| 772 |
} else {
|
| 773 |
?>
|
| 774 |
-
|
| 775 |
-
|
|
|
|
|
|
|
| 776 |
openSpeed: 500,
|
| 777 |
closeSpeed: 500,
|
| 778 |
<?php
|
|
@@ -786,8 +788,8 @@ class Envira_Gallery_Shortcode {
|
|
| 786 |
<?php
|
| 787 |
} else {
|
| 788 |
?>
|
| 789 |
-
nextEasing: '<?php echo ( $lightbox_transition_effect == "
|
| 790 |
-
prevEasing: '<?php echo ( $lightbox_transition_effect == "
|
| 791 |
nextSpeed: 600,
|
| 792 |
prevSpeed: 600,
|
| 793 |
<?php
|
|
@@ -1402,19 +1404,21 @@ class Envira_Gallery_Shortcode {
|
|
| 1402 |
|
| 1403 |
// If we are on a mobile device, some config keys have mobile equivalents, which we need to check instead
|
| 1404 |
if ( wp_is_mobile() ) {
|
| 1405 |
-
|
| 1406 |
-
|
| 1407 |
-
|
| 1408 |
-
|
| 1409 |
-
|
| 1410 |
-
|
| 1411 |
-
|
| 1412 |
-
|
| 1413 |
-
|
| 1414 |
-
|
| 1415 |
-
|
| 1416 |
-
|
| 1417 |
-
|
|
|
|
|
|
|
| 1418 |
}
|
| 1419 |
|
| 1420 |
return isset( $data['config'][$key] ) ? $data['config'][$key] : $instance->get_config_default( $key );
|
| 771 |
<?php
|
| 772 |
} else {
|
| 773 |
?>
|
| 774 |
+
openEffect: 'elastic', // FancyBox default is fade, should be elastic for the openEffect/closeEffect functions
|
| 775 |
+
closeEffect: 'elastic',
|
| 776 |
+
openEasing: '<?php echo ( $lightbox_open_close_effect == "Swing" ? "swing" : "easeIn" . $lightbox_open_close_effect ); ?>',
|
| 777 |
+
closeEasing: '<?php echo ( $lightbox_open_close_effect == "Swing" ? "swing" : "easeOut" . $lightbox_open_close_effect ); ?>',
|
| 778 |
openSpeed: 500,
|
| 779 |
closeSpeed: 500,
|
| 780 |
<?php
|
| 788 |
<?php
|
| 789 |
} else {
|
| 790 |
?>
|
| 791 |
+
nextEasing: '<?php echo ( $lightbox_transition_effect == "Swing" ? "swing" : "easeIn" . $lightbox_transition_effect ); ?>',
|
| 792 |
+
prevEasing: '<?php echo ( $lightbox_transition_effect == "Swing" ? "swing" : "easeOut" . $lightbox_transition_effect ); ?>',
|
| 793 |
nextSpeed: 600,
|
| 794 |
prevSpeed: 600,
|
| 795 |
<?php
|
| 1404 |
|
| 1405 |
// If we are on a mobile device, some config keys have mobile equivalents, which we need to check instead
|
| 1406 |
if ( wp_is_mobile() ) {
|
| 1407 |
+
if ( class_exists( 'Envira_Gallery' ) ) {
|
| 1408 |
+
$mobile_keys = array(
|
| 1409 |
+
'columns' => 'mobile_columns',
|
| 1410 |
+
'lightbox_enabled' => 'mobile_lightbox',
|
| 1411 |
+
'arrows' => 'mobile_arrows',
|
| 1412 |
+
'toolbar' => 'mobile_toolbar',
|
| 1413 |
+
'thumbnails' => 'mobile_thumbnails',
|
| 1414 |
+
);
|
| 1415 |
+
$mobile_keys = apply_filters( 'envira_gallery_get_config_mobile_keys', $mobile_keys );
|
| 1416 |
+
|
| 1417 |
+
if ( array_key_exists( $key, $mobile_keys ) ) {
|
| 1418 |
+
// Use the mobile array key to get the config value
|
| 1419 |
+
$key = $mobile_keys[ $key ];
|
| 1420 |
+
}
|
| 1421 |
+
}
|
| 1422 |
}
|
| 1423 |
|
| 1424 |
return isset( $data['config'][$key] ) ? $data['config'][$key] : $instance->get_config_default( $key );
|
readme.txt
CHANGED
|
@@ -185,6 +185,9 @@ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Develo
|
|
| 185 |
|
| 186 |
== Changelog ==
|
| 187 |
|
|
|
|
|
|
|
|
|
|
| 188 |
= 1.5.0.4 =
|
| 189 |
* Fix: Improved default settings for new galleries
|
| 190 |
* Fix: Correctly display the title in the lightbox if the lightbox view is defined
|
| 185 |
|
| 186 |
== Changelog ==
|
| 187 |
|
| 188 |
+
= 1.5.0.5 =
|
| 189 |
+
* Fix: Make sure columns on mobile correspond to the settings selected in general gallery config
|
| 190 |
+
|
| 191 |
= 1.5.0.4 =
|
| 192 |
* Fix: Improved default settings for new galleries
|
| 193 |
* Fix: Correctly display the title in the lightbox if the lightbox view is defined
|
