Version Description
Download this release
Release Info
| Developer | cbaldelomar |
| Plugin | |
| Version | 1.64 |
| Comparing to | |
| See all releases | |
Code changes from version 1.63 to 1.64
- README.md +4 -0
- includes/functions.php +6 -3
- readme.txt +4 -0
- wc-gallery.php +2 -2
README.md
CHANGED
|
@@ -67,6 +67,10 @@ For more tutorials on our gallery plugin, go to our knowledge base.
|
|
| 67 |
|
| 68 |
## Changelog ##
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
### Version 1.63 ###
|
| 71 |
|
| 72 |
* added grid display
|
| 67 |
|
| 68 |
## Changelog ##
|
| 69 |
|
| 70 |
+
### Version 1.64 ###
|
| 71 |
+
|
| 72 |
+
* Only load flex slider when more than 1 attachment is in the slider
|
| 73 |
+
|
| 74 |
### Version 1.63 ###
|
| 75 |
|
| 76 |
* added grid display
|
includes/functions.php
CHANGED
|
@@ -158,8 +158,13 @@ function wc_gallery_shortcode($blank, $attr) {
|
|
| 158 |
if ( in_array( $display, $sliders ) ) {
|
| 159 |
wp_enqueue_script( 'wc-gallery-slider' );
|
| 160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
$class[] = 'wc' . $display;
|
| 162 |
-
$class[] = 'wcflexslider';
|
| 163 |
if ( 'true' == $hidecontrols ) {
|
| 164 |
$class[] = 'wcflexslider-hidecontrols';
|
| 165 |
}
|
|
@@ -175,8 +180,6 @@ function wc_gallery_shortcode($blank, $attr) {
|
|
| 175 |
$output .= "<div id='$selector' class='".implode( ' ', $class )."' data-gutter-width='".$gutterwidth."' data-columns='".$columns."' data-hide-controls='".$hidecontrols."'>";
|
| 176 |
$output .= "<ul class='slides'>";
|
| 177 |
|
| 178 |
-
list( $attachments, $links ) = wc_gallery_seperate_attachments_links( $attachments, $display );
|
| 179 |
-
|
| 180 |
$pos = 1;
|
| 181 |
|
| 182 |
foreach ( $attachments as $id => $attachment ) {
|
| 158 |
if ( in_array( $display, $sliders ) ) {
|
| 159 |
wp_enqueue_script( 'wc-gallery-slider' );
|
| 160 |
|
| 161 |
+
list( $attachments, $links ) = wc_gallery_seperate_attachments_links( $attachments, $display );
|
| 162 |
+
|
| 163 |
+
if ( sizeof( $attachments ) > 1 ) {
|
| 164 |
+
$class[] = 'wcflexslider';
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
$class[] = 'wc' . $display;
|
|
|
|
| 168 |
if ( 'true' == $hidecontrols ) {
|
| 169 |
$class[] = 'wcflexslider-hidecontrols';
|
| 170 |
}
|
| 180 |
$output .= "<div id='$selector' class='".implode( ' ', $class )."' data-gutter-width='".$gutterwidth."' data-columns='".$columns."' data-hide-controls='".$hidecontrols."'>";
|
| 181 |
$output .= "<ul class='slides'>";
|
| 182 |
|
|
|
|
|
|
|
| 183 |
$pos = 1;
|
| 184 |
|
| 185 |
foreach ( $attachments as $id => $attachment ) {
|
readme.txt
CHANGED
|
@@ -67,6 +67,10 @@ For more tutorials on our gallery plugin, go to our knowledge base.
|
|
| 67 |
|
| 68 |
== Changelog ==
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
= Version 1.63 =
|
| 71 |
|
| 72 |
* added grid display
|
| 67 |
|
| 68 |
== Changelog ==
|
| 69 |
|
| 70 |
+
= Version 1.64 =
|
| 71 |
+
|
| 72 |
+
* Only load flex slider when more than 1 attachment is in the slider
|
| 73 |
+
|
| 74 |
= Version 1.63 =
|
| 75 |
|
| 76 |
* added grid display
|
wc-gallery.php
CHANGED
|
@@ -5,11 +5,11 @@ Plugin URI: http://angiemakes.com/feminine-wordpress-blog-themes-women/
|
|
| 5 |
Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://angiemakes.com/
|
| 8 |
-
Version: 1.
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
| 12 |
-
define( 'WC_GALLERY_VERSION', '1.
|
| 13 |
define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
|
| 14 |
define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
|
| 15 |
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://angiemakes.com/
|
| 8 |
+
Version: 1.64
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
| 12 |
+
define( 'WC_GALLERY_VERSION', '1.64' );
|
| 13 |
define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
|
| 14 |
define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
|
| 15 |
define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
