Version Description
- Fix: Minor bug fixes
Download this release
Release Info
Developer | chrisakelley |
Plugin | Photo Gallery by Envira – Responsive Image Gallery for WordPress |
Version | 1.6.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.1.1
- envira-gallery-lite.php +1 -1
- includes/global/shortcode.php +9 -7
- readme.txt +4 -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: Envira Gallery Team
|
7 |
* Author URI: http://enviragallery.com
|
8 |
-
* Version: 1.6.1
|
9 |
* Text Domain: envira-gallery
|
10 |
*
|
11 |
* Envira Gallery is free software: you can redistribute it and/or modify
|
5 |
* Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
|
6 |
* Author: Envira Gallery Team
|
7 |
* Author URI: http://enviragallery.com
|
8 |
+
* Version: 1.6.1.1
|
9 |
* Text Domain: envira-gallery
|
10 |
*
|
11 |
* Envira Gallery is free software: you can redistribute it and/or modify
|
includes/global/shortcode.php
CHANGED
@@ -396,9 +396,11 @@ class Envira_Gallery_Shortcode {
|
|
396 |
// Determine/confirm the width/height of the image
|
397 |
// $placeholder should hold it but not for instagram
|
398 |
|
399 |
-
if ( $this->get_config( '
|
|
|
|
|
400 |
$output_src = $imagesrc;
|
401 |
-
} else if ( $this->get_config( 'image_size', $data )
|
402 |
$output_src = $imagesrc;
|
403 |
} else if ( !empty( $item['width'] ) ) {
|
404 |
$output_src = $item['src'];
|
@@ -408,9 +410,9 @@ class Envira_Gallery_Shortcode {
|
|
408 |
$output_src = false;
|
409 |
}
|
410 |
|
411 |
-
if ( $this->get_config( 'crop', $data ) && $this->get_config( 'crop_width', $data ) ) {
|
412 |
$output_width = $this->get_config( 'crop_width', $data );
|
413 |
-
} else if ( $this->get_config( 'image_size', $data )
|
414 |
$output_width = $this->get_config( 'crop_width', $data );
|
415 |
} else if ( !empty( $item['width'] ) ) {
|
416 |
$output_width = $item['width'];
|
@@ -420,10 +422,10 @@ class Envira_Gallery_Shortcode {
|
|
420 |
$output_width = false;
|
421 |
}
|
422 |
|
423 |
-
if ( $this->get_config( 'crop', $data ) && $this->get_config( '
|
|
|
|
|
424 |
$output_height = $this->get_config( 'crop_height', $data );
|
425 |
-
} else if ( $this->get_config( 'image_size', $data ) == 'default' && $this->get_config( 'crop_width', $data ) && $this->get_config( 'crop_height', $data ) ) {
|
426 |
-
$output_height = $this->get_config( 'crop_height', $data );
|
427 |
} else if ( !empty( $item['height'] ) ) {
|
428 |
$output_height = $item['height'];
|
429 |
} else if ( !empty( $placeholder[2] ) ) {
|
396 |
// Determine/confirm the width/height of the image
|
397 |
// $placeholder should hold it but not for instagram
|
398 |
|
399 |
+
if ( $this->is_mobile == 'mobile' && !$this->get_config( 'mobile', $data ) ) { // if the user is viewing on mobile AND user unchecked 'Create Mobile Gallery Images?' in mobile tab
|
400 |
+
$output_src = $item['src'];
|
401 |
+
} else if ( $this->get_config( 'crop', $data ) ) { // the user has selected the image to be cropped
|
402 |
$output_src = $imagesrc;
|
403 |
+
} else if ( $this->get_config( 'image_size', $data ) && $imagesrc ) { // use the image being provided thanks to the user selecting a unique image size
|
404 |
$output_src = $imagesrc;
|
405 |
} else if ( !empty( $item['width'] ) ) {
|
406 |
$output_src = $item['src'];
|
410 |
$output_src = false;
|
411 |
}
|
412 |
|
413 |
+
if ( $this->get_config( 'crop', $data ) && $this->get_config( 'crop_width', $data ) && $this->get_config( 'image_size', $data ) != 'full' ) {
|
414 |
$output_width = $this->get_config( 'crop_width', $data );
|
415 |
+
} else if ( $this->get_config( 'columns', $data ) != 0 && $this->get_config( 'image_size', $data ) && $this->get_config( 'image_size', $data ) != 'full' && $this->get_config( 'crop_width', $data ) && $this->get_config( 'crop_height', $data ) ) {
|
416 |
$output_width = $this->get_config( 'crop_width', $data );
|
417 |
} else if ( !empty( $item['width'] ) ) {
|
418 |
$output_width = $item['width'];
|
422 |
$output_width = false;
|
423 |
}
|
424 |
|
425 |
+
if ( $this->get_config( 'crop', $data ) && $this->get_config( 'crop_width', $data ) && $this->get_config( 'image_size', $data ) != 'full' ) {
|
426 |
+
$output_height = $this->get_config( 'crop_height', $data );
|
427 |
+
} else if ( $this->get_config( 'columns', $data ) != 0 && $this->get_config( 'image_size', $data ) && $this->get_config( 'image_size', $data ) != 'full' && $this->get_config( 'crop_width', $data ) && $this->get_config( 'crop_height', $data ) ) {
|
428 |
$output_height = $this->get_config( 'crop_height', $data );
|
|
|
|
|
429 |
} else if ( !empty( $item['height'] ) ) {
|
430 |
$output_height = $item['height'];
|
431 |
} else if ( !empty( $placeholder[2] ) ) {
|
readme.txt
CHANGED
@@ -187,6 +187,10 @@ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Develo
|
|
187 |
== Changelog ==
|
188 |
|
189 |
|
|
|
|
|
|
|
|
|
190 |
= 1.6.1 =
|
191 |
|
192 |
* Fix: Minor bug fixes
|
187 |
== Changelog ==
|
188 |
|
189 |
|
190 |
+
= 1.6.1.1 =
|
191 |
+
|
192 |
+
* Fix: Minor bug fixes
|
193 |
+
|
194 |
= 1.6.1 =
|
195 |
|
196 |
* Fix: Minor bug fixes
|