Version Description
Download this release
Release Info
| Developer | cbaldelomar |
| Plugin | |
| Version | 1.11 |
| Comparing to | |
| See all releases | |
Code changes from version 1.10 to 1.11
- README.md +5 -0
- includes/functions.php +1 -3
- readme.txt +5 -0
- wc-gallery.php +2 -2
README.md
CHANGED
|
@@ -46,6 +46,11 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
|
|
| 46 |
|
| 47 |
## Changelog ##
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
### Version 1.10
|
| 50 |
|
| 51 |
* Made an update to the responsive behavior of galleries
|
| 46 |
|
| 47 |
## Changelog ##
|
| 48 |
|
| 49 |
+
### Version 1.11
|
| 50 |
+
|
| 51 |
+
* Fixed a very obscure bug that kept image sizes from displaying.
|
| 52 |
+
* removed rel tag
|
| 53 |
+
|
| 54 |
### Version 1.10
|
| 55 |
|
| 56 |
* Made an update to the responsive behavior of galleries
|
includes/functions.php
CHANGED
|
@@ -186,11 +186,9 @@ function wc_gallery_shortcode($blank, $attr) {
|
|
| 186 |
foreach ( $attachments as $id => $attachment ) {
|
| 187 |
if ( $customlink ) {
|
| 188 |
$image_output = wc_gallery_get_attachment_link( $id, $size, false, false, false, $targetsize, $customlink );
|
| 189 |
-
$image_output = preg_replace( '/^<a /', '<a rel="gallery-'.$instance.'" ', $image_output );
|
| 190 |
}
|
| 191 |
else if ( ! empty( $link ) && 'file' === $link ) {
|
| 192 |
$image_output = wc_gallery_get_attachment_link( $id, $size, false, false, false, $targetsize, $customlink );
|
| 193 |
-
$image_output = preg_replace( '/^<a /', '<a rel="gallery-'.$instance.'" ', $image_output );
|
| 194 |
}
|
| 195 |
else if ( ! empty( $link ) && 'none' === $link )
|
| 196 |
$image_output = wp_get_attachment_image( $id, $size, false );
|
|
@@ -298,7 +296,7 @@ function wc_gallery_print_media_templates() {
|
|
| 298 |
<label class="setting">
|
| 299 |
<span><?php _e( 'Image Size', 'wc_gallery' ); ?></span>
|
| 300 |
<select class="size" name="size" data-setting="size">
|
| 301 |
-
<?
|
| 302 |
$sizes = apply_filters( 'image_size_names_choose', array(
|
| 303 |
'thumbnail' => __('Thumbnail'),
|
| 304 |
'medium' => __('Medium'),
|
| 186 |
foreach ( $attachments as $id => $attachment ) {
|
| 187 |
if ( $customlink ) {
|
| 188 |
$image_output = wc_gallery_get_attachment_link( $id, $size, false, false, false, $targetsize, $customlink );
|
|
|
|
| 189 |
}
|
| 190 |
else if ( ! empty( $link ) && 'file' === $link ) {
|
| 191 |
$image_output = wc_gallery_get_attachment_link( $id, $size, false, false, false, $targetsize, $customlink );
|
|
|
|
| 192 |
}
|
| 193 |
else if ( ! empty( $link ) && 'none' === $link )
|
| 194 |
$image_output = wp_get_attachment_image( $id, $size, false );
|
| 296 |
<label class="setting">
|
| 297 |
<span><?php _e( 'Image Size', 'wc_gallery' ); ?></span>
|
| 298 |
<select class="size" name="size" data-setting="size">
|
| 299 |
+
<?php
|
| 300 |
$sizes = apply_filters( 'image_size_names_choose', array(
|
| 301 |
'thumbnail' => __('Thumbnail'),
|
| 302 |
'medium' => __('Medium'),
|
readme.txt
CHANGED
|
@@ -46,6 +46,11 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
|
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
### Version 1.10
|
| 50 |
|
| 51 |
* Made an update to the responsive behavior of galleries
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
| 49 |
+
### Version 1.11
|
| 50 |
+
|
| 51 |
+
* Fixed a very obscure bug that kept image sizes from displaying.
|
| 52 |
+
* removed rel tag
|
| 53 |
+
|
| 54 |
### Version 1.10
|
| 55 |
|
| 56 |
* Made an update to the responsive behavior of galleries
|
wc-gallery.php
CHANGED
|
@@ -5,7 +5,7 @@ Plugin URI: http://wordpresscanvas.com/features/gallery/
|
|
| 5 |
Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://webplantmedia.com/
|
| 8 |
-
Version: 1.
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
|
@@ -13,7 +13,7 @@ function wc_gallery_using_woocommerce() {
|
|
| 13 |
return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
|
| 14 |
}
|
| 15 |
|
| 16 |
-
define( 'WC_GALLERY_VERSION', '1.
|
| 17 |
define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
|
| 18 |
define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
|
| 19 |
define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
| 5 |
Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://webplantmedia.com/
|
| 8 |
+
Version: 1.11
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
| 13 |
return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
|
| 14 |
}
|
| 15 |
|
| 16 |
+
define( 'WC_GALLERY_VERSION', '1.11' );
|
| 17 |
define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
|
| 18 |
define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
|
| 19 |
define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
