Version Description
Download this release
Release Info
| Developer | cbaldelomar |
| Plugin | |
| Version | 1.49 |
| Comparing to | |
| See all releases | |
Code changes from version 1.48 to 1.49
- README.md +5 -0
- includes/css/style.css +9 -2
- includes/js/gallery.js +3 -13
- 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.48
|
| 50 |
|
| 51 |
* Added new caption option: Show On Image Pop-up
|
| 46 |
|
| 47 |
## Changelog ##
|
| 48 |
|
| 49 |
+
### Version 1.49
|
| 50 |
+
|
| 51 |
+
* Single column galleries on mobile displays
|
| 52 |
+
* Always show captions on mobile displays
|
| 53 |
+
|
| 54 |
### Version 1.48
|
| 55 |
|
| 56 |
* Added new caption option: Show On Image Pop-up
|
includes/css/style.css
CHANGED
|
@@ -151,8 +151,15 @@
|
|
| 151 |
}
|
| 152 |
|
| 153 |
@media screen and (max-width: 568px) {
|
| 154 |
-
body .wc-gallery .gallery-caption
|
| 155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
}
|
| 157 |
body .wc-gallery .wc-image-links .gallery-caption {
|
| 158 |
display: block;
|
| 151 |
}
|
| 152 |
|
| 153 |
@media screen and (max-width: 568px) {
|
| 154 |
+
body .wc-gallery-captions-onpopup .gallery-caption,
|
| 155 |
+
body .wc-gallery-captions-showon .gallery-caption,
|
| 156 |
+
body .wc-gallery-captions-onhover .gallery-caption {
|
| 157 |
+
position: static;
|
| 158 |
+
opacity: 1;
|
| 159 |
+
-moz-transform: translate(0, 0);
|
| 160 |
+
-ms-transform: translate(0, 0);
|
| 161 |
+
-webkit-transform: translate(0, 0);
|
| 162 |
+
transform: translate(0, 0);
|
| 163 |
}
|
| 164 |
body .wc-gallery .wc-image-links .gallery-caption {
|
| 165 |
display: block;
|
includes/js/gallery.js
CHANGED
|
@@ -29,6 +29,7 @@
|
|
| 29 |
_window = $( window );
|
| 30 |
|
| 31 |
var calculateGrid = function($container) {
|
|
|
|
| 32 |
var columns = parseInt( $container.data('columns') );
|
| 33 |
var gutterWidth = $container.data('gutterWidth');
|
| 34 |
// need to return exact decimal width
|
|
@@ -42,18 +43,8 @@
|
|
| 42 |
}
|
| 43 |
|
| 44 |
if ( columns > 1 ) {
|
| 45 |
-
if (
|
| 46 |
-
columns
|
| 47 |
-
if ( columns > 4 ) {
|
| 48 |
-
columns = 4;
|
| 49 |
-
}
|
| 50 |
-
}
|
| 51 |
-
/* else if ( containerWidth < 768 ) {
|
| 52 |
-
columns -= 1;
|
| 53 |
-
} */
|
| 54 |
-
|
| 55 |
-
if ( columns < 2 ) {
|
| 56 |
-
columns = 2;
|
| 57 |
}
|
| 58 |
}
|
| 59 |
|
|
@@ -71,7 +62,6 @@
|
|
| 71 |
var o = calculateGrid($container);
|
| 72 |
|
| 73 |
$posts.css({'width':o.columnWidth+'px', 'margin-bottom':o.gutterWidth+'px', 'padding':'0'});
|
| 74 |
-
|
| 75 |
$container = $container.masonry( {
|
| 76 |
itemSelector: '.gallery-item',
|
| 77 |
columnWidth: o.columnWidth,
|
| 29 |
_window = $( window );
|
| 30 |
|
| 31 |
var calculateGrid = function($container) {
|
| 32 |
+
var windowWidth = _window.width();
|
| 33 |
var columns = parseInt( $container.data('columns') );
|
| 34 |
var gutterWidth = $container.data('gutterWidth');
|
| 35 |
// need to return exact decimal width
|
| 43 |
}
|
| 44 |
|
| 45 |
if ( columns > 1 ) {
|
| 46 |
+
if ( windowWidth < 568 ) {
|
| 47 |
+
columns = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
}
|
| 49 |
}
|
| 50 |
|
| 62 |
var o = calculateGrid($container);
|
| 63 |
|
| 64 |
$posts.css({'width':o.columnWidth+'px', 'margin-bottom':o.gutterWidth+'px', 'padding':'0'});
|
|
|
|
| 65 |
$container = $container.masonry( {
|
| 66 |
itemSelector: '.gallery-item',
|
| 67 |
columnWidth: o.columnWidth,
|
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.48 =
|
| 50 |
|
| 51 |
* Added new caption option: Show On Image Pop-up
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
| 49 |
+
= Version 1.49 =
|
| 50 |
+
|
| 51 |
+
* Single column galleries on mobile displays
|
| 52 |
+
* Always show captions on mobile displays
|
| 53 |
+
|
| 54 |
= Version 1.48 =
|
| 55 |
|
| 56 |
* Added new caption option: Show On Image Pop-up
|
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.49
|
| 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.49' );
|
| 17 |
define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
|
| 18 |
define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
|
| 19 |
define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
