Version Description
Download this release
Release Info
| Developer | cbaldelomar |
| Plugin | |
| Version | 1.27 |
| Comparing to | |
| See all releases | |
Code changes from version 1.26 to 1.27
- README.md +4 -0
- includes/functions.php +2 -11
- includes/js/admin.js +0 -2
- readme.txt +33 -29
- wc-gallery.php +2 -2
README.md
CHANGED
|
@@ -46,6 +46,10 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
|
|
| 46 |
|
| 47 |
## Changelog ##
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
### Version 1.26
|
| 50 |
|
| 51 |
* Added position number and attachment id class name to gallery items
|
| 46 |
|
| 47 |
## Changelog ##
|
| 48 |
|
| 49 |
+
### Version 1.27
|
| 50 |
+
|
| 51 |
+
* Removed 'Image Size' from gallery option since WordPress includes it by default now.
|
| 52 |
+
|
| 53 |
### Version 1.26
|
| 54 |
|
| 55 |
* Added position number and attachment id class name to gallery items
|
includes/functions.php
CHANGED
|
@@ -529,8 +529,8 @@ function wc_gallery_print_media_templates() {
|
|
| 529 |
</label>
|
| 530 |
|
| 531 |
<label class="setting">
|
| 532 |
-
<span><?php _e( '
|
| 533 |
-
<select class="
|
| 534 |
<?php
|
| 535 |
$sizes = apply_filters( 'image_size_names_choose', array(
|
| 536 |
'thumbnail' => __('Thumbnail'),
|
|
@@ -540,15 +540,6 @@ function wc_gallery_print_media_templates() {
|
|
| 540 |
) );
|
| 541 |
?>
|
| 542 |
|
| 543 |
-
<?php foreach ( $sizes as $key => $name ) : ?>
|
| 544 |
-
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, 'thumbnail' ); ?>><?php echo esc_html( $name ); ?></option>
|
| 545 |
-
<?php endforeach; ?>
|
| 546 |
-
</select>
|
| 547 |
-
</label>
|
| 548 |
-
|
| 549 |
-
<label class="setting">
|
| 550 |
-
<span><?php _e( 'Popup Size', 'wc_gallery' ); ?></span>
|
| 551 |
-
<select class="targetsize" name="targetsize" data-setting="targetsize">
|
| 552 |
<?php foreach ( $sizes as $key => $name ) : ?>
|
| 553 |
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, 'large' ); ?>><?php echo esc_html( $name ); ?></option>
|
| 554 |
<?php endforeach; ?>
|
| 529 |
</label>
|
| 530 |
|
| 531 |
<label class="setting">
|
| 532 |
+
<span><?php _e( 'Popup Size', 'wc_gallery' ); ?></span>
|
| 533 |
+
<select class="targetsize" name="targetsize" data-setting="targetsize">
|
| 534 |
<?php
|
| 535 |
$sizes = apply_filters( 'image_size_names_choose', array(
|
| 536 |
'thumbnail' => __('Thumbnail'),
|
| 540 |
) );
|
| 541 |
?>
|
| 542 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 543 |
<?php foreach ( $sizes as $key => $name ) : ?>
|
| 544 |
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, 'large' ); ?>><?php echo esc_html( $name ); ?></option>
|
| 545 |
<?php endforeach; ?>
|
includes/js/admin.js
CHANGED
|
@@ -17,7 +17,6 @@
|
|
| 17 |
// Append the layout template and update the settings.
|
| 18 |
$el.append( media.template( 'wc-gallery-settings' ) );
|
| 19 |
media.gallery.defaults.display = 'masonry'; // lil hack that lets media know there's a layout attribute.
|
| 20 |
-
media.gallery.defaults.size = 'thumbnail'; // lil hack that lets media know there's a layout attribute.
|
| 21 |
media.gallery.defaults.targetsize = 'large'; // lil hack that lets media know there's a layout attribute.
|
| 22 |
media.gallery.defaults.captions = 'onhover'; // lil hack that lets media know there's a layout attribute.
|
| 23 |
media.gallery.defaults.captiontype = 'p'; // lil hack that lets media know there's a layout attribute.
|
|
@@ -28,7 +27,6 @@
|
|
| 28 |
media.gallery.defaults.newtab = false; // lil hack that lets media know there's a layout attribute.
|
| 29 |
media.gallery.defaults.class = ''; // lil hack that lets media know there's a layout attribute.
|
| 30 |
this.update.apply( this, ['display'] );
|
| 31 |
-
this.update.apply( this, ['size'] );
|
| 32 |
this.update.apply( this, ['targetsize'] );
|
| 33 |
this.update.apply( this, ['captions'] );
|
| 34 |
this.update.apply( this, ['captiontype'] );
|
| 17 |
// Append the layout template and update the settings.
|
| 18 |
$el.append( media.template( 'wc-gallery-settings' ) );
|
| 19 |
media.gallery.defaults.display = 'masonry'; // lil hack that lets media know there's a layout attribute.
|
|
|
|
| 20 |
media.gallery.defaults.targetsize = 'large'; // lil hack that lets media know there's a layout attribute.
|
| 21 |
media.gallery.defaults.captions = 'onhover'; // lil hack that lets media know there's a layout attribute.
|
| 22 |
media.gallery.defaults.captiontype = 'p'; // lil hack that lets media know there's a layout attribute.
|
| 27 |
media.gallery.defaults.newtab = false; // lil hack that lets media know there's a layout attribute.
|
| 28 |
media.gallery.defaults.class = ''; // lil hack that lets media know there's a layout attribute.
|
| 29 |
this.update.apply( this, ['display'] );
|
|
|
|
| 30 |
this.update.apply( this, ['targetsize'] );
|
| 31 |
this.update.apply( this, ['captions'] );
|
| 32 |
this.update.apply( this, ['captiontype'] );
|
readme.txt
CHANGED
|
@@ -19,15 +19,15 @@ See the galleries in action.
|
|
| 19 |
2. [WP Canvas Slider & Carousel](http://webplantmedia.com/starter-themes/wordpresscanvas/features/gallery/slider-carousel/)
|
| 20 |
3. [WP Canvas Gallery Columns](http://webplantmedia.com/starter-themes/wordpresscanvas/features/gallery/gallery-columns/)
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
If you need professional plugin support from me, the plugin author, you can contact me at [Web Plant Media](http://webplantmedia.com/).
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
If you're a theme author, plugin author, or just a code hobbyist, you can follow the development of this plugin on it's [GitHub repository](https://github.com/webplantmedia/wc-gallery).
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
Yes, I do accept donations. If you want to buy me a sandwich or something, you can do so from my [payment page](http://webplantmedia.com/pay-now/). I appreciate all donations, no matter the size. Further development of this plugin is not contingent on donations, but they are always a nice incentive.
|
| 33 |
|
|
@@ -40,36 +40,40 @@ Yes, I do accept donations. If you want to buy me a sandwich or something, you
|
|
| 40 |
|
| 41 |
== Frequently Asked Questions ==
|
| 42 |
|
| 43 |
-
|
| 44 |
|
| 45 |
Insert a gallery through your dashboard. You will see extra dropdown settings when configuring your gallery
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
* Added position number and attachment id class name to gallery items
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
* Now wrapping caption with href value in image links
|
| 56 |
|
| 57 |
-
|
| 58 |
|
| 59 |
* Updated and customized flexslider library
|
| 60 |
* supporting lightbox for WooCommerce galleries
|
| 61 |
* code clean up
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
* Gallery captions and image sizes now are the same width
|
| 66 |
* Fixed style bug in gallery caption
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
* minor style update fix for previous version
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
* Galleries now work inside WC Shortcodes accordion, tabs, and toggle shortcodes
|
| 75 |
* Added gallery support for infinite scroll
|
|
@@ -77,36 +81,36 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
|
|
| 77 |
* Gallery now defaults to show captions on image hover
|
| 78 |
* removed duplicate call to admin.js
|
| 79 |
|
| 80 |
-
|
| 81 |
|
| 82 |
* Updated image popup library
|
| 83 |
* Made all own carousels to loop back to beginning when end is reached
|
| 84 |
|
| 85 |
-
|
| 86 |
|
| 87 |
* Added option to open images in new tab
|
| 88 |
|
| 89 |
-
|
| 90 |
|
| 91 |
* Bug fix
|
| 92 |
|
| 93 |
-
|
| 94 |
|
| 95 |
* Bug fix on checking for defined images sizes
|
| 96 |
|
| 97 |
-
|
| 98 |
|
| 99 |
* Removed Transition Styles
|
| 100 |
|
| 101 |
-
|
| 102 |
|
| 103 |
* Fixed broken HTML tag
|
| 104 |
|
| 105 |
-
|
| 106 |
|
| 107 |
* added overflow hidden to captions
|
| 108 |
|
| 109 |
-
|
| 110 |
|
| 111 |
* Use masonry library provided by WordPress
|
| 112 |
* loading jquery before masonry
|
|
@@ -115,44 +119,44 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
|
|
| 115 |
* Added Owl Carousel
|
| 116 |
* Added 2 more slider displays
|
| 117 |
|
| 118 |
-
|
| 119 |
|
| 120 |
* Fixed a very obscure bug that kept image sizes from displaying.
|
| 121 |
* removed rel tag
|
| 122 |
|
| 123 |
-
|
| 124 |
|
| 125 |
* Made an update to the responsive behavior of galleries
|
| 126 |
|
| 127 |
-
|
| 128 |
|
| 129 |
* HTML5 compliant gallery structure
|
| 130 |
|
| 131 |
-
|
| 132 |
|
| 133 |
* Fixed bug where custom links only worked when link was set to media
|
| 134 |
* Added option to disable integrated popup script
|
| 135 |
* updated masonry library
|
| 136 |
* Fixed permission bug with options
|
| 137 |
|
| 138 |
-
|
| 139 |
|
| 140 |
* Updated magnific popup script
|
| 141 |
* Fixed bug with vertical scroll bar appearing in pop up image
|
| 142 |
|
| 143 |
-
|
| 144 |
|
| 145 |
* Fixed bug with masonry gallery not resizing defined widths and heights on images
|
| 146 |
|
| 147 |
-
|
| 148 |
|
| 149 |
* Enhanced Gallery Options
|
| 150 |
|
| 151 |
-
|
| 152 |
|
| 153 |
* Better positioning of directional arrows
|
| 154 |
|
| 155 |
-
|
| 156 |
|
| 157 |
* Much improved masonry gallery
|
| 158 |
* Much improved slider gallery
|
|
@@ -161,10 +165,10 @@ Insert a gallery through your dashboard. You will see extra dropdown settings wh
|
|
| 161 |
* More options added in media panel
|
| 162 |
* CSS improvements
|
| 163 |
|
| 164 |
-
|
| 165 |
|
| 166 |
* Removed fancybox and added another image popup library with a friendly license.
|
| 167 |
|
| 168 |
-
|
| 169 |
|
| 170 |
* Plugin released. Everything is new!
|
| 19 |
2. [WP Canvas Slider & Carousel](http://webplantmedia.com/starter-themes/wordpresscanvas/features/gallery/slider-carousel/)
|
| 20 |
3. [WP Canvas Gallery Columns](http://webplantmedia.com/starter-themes/wordpresscanvas/features/gallery/gallery-columns/)
|
| 21 |
|
| 22 |
+
= Professional Support =
|
| 23 |
|
| 24 |
If you need professional plugin support from me, the plugin author, you can contact me at [Web Plant Media](http://webplantmedia.com/).
|
| 25 |
|
| 26 |
+
= Plugin Development =
|
| 27 |
|
| 28 |
If you're a theme author, plugin author, or just a code hobbyist, you can follow the development of this plugin on it's [GitHub repository](https://github.com/webplantmedia/wc-gallery).
|
| 29 |
|
| 30 |
+
= Donations =
|
| 31 |
|
| 32 |
Yes, I do accept donations. If you want to buy me a sandwich or something, you can do so from my [payment page](http://webplantmedia.com/pay-now/). I appreciate all donations, no matter the size. Further development of this plugin is not contingent on donations, but they are always a nice incentive.
|
| 33 |
|
| 40 |
|
| 41 |
== Frequently Asked Questions ==
|
| 42 |
|
| 43 |
+
= How do I use the shortcodes? =
|
| 44 |
|
| 45 |
Insert a gallery through your dashboard. You will see extra dropdown settings when configuring your gallery
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
| 49 |
+
= Version 1.27 =
|
| 50 |
+
|
| 51 |
+
* Removed 'Image Size' from gallery option since WordPress includes it by default now.
|
| 52 |
+
|
| 53 |
+
= Version 1.26 =
|
| 54 |
|
| 55 |
* Added position number and attachment id class name to gallery items
|
| 56 |
|
| 57 |
+
= Version 1.25 =
|
| 58 |
|
| 59 |
* Now wrapping caption with href value in image links
|
| 60 |
|
| 61 |
+
= Version 1.24 =
|
| 62 |
|
| 63 |
* Updated and customized flexslider library
|
| 64 |
* supporting lightbox for WooCommerce galleries
|
| 65 |
* code clean up
|
| 66 |
|
| 67 |
+
= Version 1.22 =
|
| 68 |
|
| 69 |
* Gallery captions and image sizes now are the same width
|
| 70 |
* Fixed style bug in gallery caption
|
| 71 |
|
| 72 |
+
= Version 1.21 =
|
| 73 |
|
| 74 |
* minor style update fix for previous version
|
| 75 |
|
| 76 |
+
= Version 1.20 =
|
| 77 |
|
| 78 |
* Galleries now work inside WC Shortcodes accordion, tabs, and toggle shortcodes
|
| 79 |
* Added gallery support for infinite scroll
|
| 81 |
* Gallery now defaults to show captions on image hover
|
| 82 |
* removed duplicate call to admin.js
|
| 83 |
|
| 84 |
+
= Version 1.19 =
|
| 85 |
|
| 86 |
* Updated image popup library
|
| 87 |
* Made all own carousels to loop back to beginning when end is reached
|
| 88 |
|
| 89 |
+
= Version 1.18 =
|
| 90 |
|
| 91 |
* Added option to open images in new tab
|
| 92 |
|
| 93 |
+
= Version 1.17 =
|
| 94 |
|
| 95 |
* Bug fix
|
| 96 |
|
| 97 |
+
= Version 1.16 =
|
| 98 |
|
| 99 |
* Bug fix on checking for defined images sizes
|
| 100 |
|
| 101 |
+
= Version 1.15 =
|
| 102 |
|
| 103 |
* Removed Transition Styles
|
| 104 |
|
| 105 |
+
= Version 1.14 =
|
| 106 |
|
| 107 |
* Fixed broken HTML tag
|
| 108 |
|
| 109 |
+
= Version 1.13 =
|
| 110 |
|
| 111 |
* added overflow hidden to captions
|
| 112 |
|
| 113 |
+
= Version 1.12 =
|
| 114 |
|
| 115 |
* Use masonry library provided by WordPress
|
| 116 |
* loading jquery before masonry
|
| 119 |
* Added Owl Carousel
|
| 120 |
* Added 2 more slider displays
|
| 121 |
|
| 122 |
+
= Version 1.11 =
|
| 123 |
|
| 124 |
* Fixed a very obscure bug that kept image sizes from displaying.
|
| 125 |
* removed rel tag
|
| 126 |
|
| 127 |
+
= Version 1.10 =
|
| 128 |
|
| 129 |
* Made an update to the responsive behavior of galleries
|
| 130 |
|
| 131 |
+
= Version 1.9 =
|
| 132 |
|
| 133 |
* HTML5 compliant gallery structure
|
| 134 |
|
| 135 |
+
= Version 1.8 =
|
| 136 |
|
| 137 |
* Fixed bug where custom links only worked when link was set to media
|
| 138 |
* Added option to disable integrated popup script
|
| 139 |
* updated masonry library
|
| 140 |
* Fixed permission bug with options
|
| 141 |
|
| 142 |
+
= Version 1.7 =
|
| 143 |
|
| 144 |
* Updated magnific popup script
|
| 145 |
* Fixed bug with vertical scroll bar appearing in pop up image
|
| 146 |
|
| 147 |
+
= Version 1.6 =
|
| 148 |
|
| 149 |
* Fixed bug with masonry gallery not resizing defined widths and heights on images
|
| 150 |
|
| 151 |
+
= Version 1.5 =
|
| 152 |
|
| 153 |
* Enhanced Gallery Options
|
| 154 |
|
| 155 |
+
= Version 1.4 =
|
| 156 |
|
| 157 |
* Better positioning of directional arrows
|
| 158 |
|
| 159 |
+
= Version 1.3 =
|
| 160 |
|
| 161 |
* Much improved masonry gallery
|
| 162 |
* Much improved slider gallery
|
| 165 |
* More options added in media panel
|
| 166 |
* CSS improvements
|
| 167 |
|
| 168 |
+
= Version 1.2 =
|
| 169 |
|
| 170 |
* Removed fancybox and added another image popup library with a friendly license.
|
| 171 |
|
| 172 |
+
= Version 1.1 =
|
| 173 |
|
| 174 |
* Plugin released. Everything is new!
|
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.27
|
| 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.27' );
|
| 17 |
define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
|
| 18 |
define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
|
| 19 |
define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
