Version Description
Download this release
Release Info
| Developer | cbaldelomar |
| Plugin | |
| Version | 1.68 |
| Comparing to | |
| See all releases | |
Code changes from version 1.67 to 1.68
- README.md +4 -0
- includes/js/posts.js +5 -13
- readme.txt +4 -0
- wc-shortcodes.php +2 -2
README.md
CHANGED
|
@@ -66,6 +66,10 @@ Use the shortcode manager in the TinyMCE text editor
|
|
| 66 |
|
| 67 |
## Changelog ##
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
### Version 1.67
|
| 70 |
|
| 71 |
* Masonry post items now load in series when each image is loaded
|
| 66 |
|
| 67 |
## Changelog ##
|
| 68 |
|
| 69 |
+
### Version 1.68
|
| 70 |
+
|
| 71 |
+
* Bug fix with masonry
|
| 72 |
+
|
| 73 |
### Version 1.67
|
| 74 |
|
| 75 |
* Masonry post items now load in series when each image is loaded
|
includes/js/posts.js
CHANGED
|
@@ -3,23 +3,16 @@
|
|
| 3 |
|
| 4 |
$.fn.wcShortcodesMasonryImagesReveal = function( $items ) {
|
| 5 |
var msnry = this.data('masonry');
|
| 6 |
-
var itemSelector = msnry.options.itemSelector;
|
| 7 |
-
|
| 8 |
-
// hide by default
|
| 9 |
-
$items.hide();
|
| 10 |
-
|
| 11 |
-
// append to container
|
| 12 |
-
this.append( $items );
|
| 13 |
|
| 14 |
$.each( $items, function( key, item ) {
|
| 15 |
var $item = $(this);
|
| 16 |
|
| 17 |
-
// un-hide item
|
| 18 |
-
$item.show();
|
| 19 |
-
|
| 20 |
$item.imagesLoaded().always( function( instance ) {
|
|
|
|
|
|
|
|
|
|
| 21 |
// masonry does its thing
|
| 22 |
-
msnry.
|
| 23 |
});
|
| 24 |
});
|
| 25 |
|
|
@@ -87,8 +80,7 @@
|
|
| 87 |
var $container = $(this);
|
| 88 |
var $posts = $container.children('.wc-shortcodes-post-box');
|
| 89 |
|
| 90 |
-
|
| 91 |
-
$container.empty();
|
| 92 |
|
| 93 |
// keeps the media elements from calculating for the full width of the post
|
| 94 |
runMasonry(0, $container, $posts);
|
| 3 |
|
| 4 |
$.fn.wcShortcodesMasonryImagesReveal = function( $items ) {
|
| 5 |
var msnry = this.data('masonry');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
$.each( $items, function( key, item ) {
|
| 8 |
var $item = $(this);
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
$item.imagesLoaded().always( function( instance ) {
|
| 11 |
+
// un-hide item
|
| 12 |
+
$item.show();
|
| 13 |
+
|
| 14 |
// masonry does its thing
|
| 15 |
+
msnry.layout();
|
| 16 |
});
|
| 17 |
});
|
| 18 |
|
| 80 |
var $container = $(this);
|
| 81 |
var $posts = $container.children('.wc-shortcodes-post-box');
|
| 82 |
|
| 83 |
+
$posts.hide();
|
|
|
|
| 84 |
|
| 85 |
// keeps the media elements from calculating for the full width of the post
|
| 86 |
runMasonry(0, $container, $posts);
|
readme.txt
CHANGED
|
@@ -88,6 +88,10 @@ Use the shortcode manager in the TinyMCE text editor
|
|
| 88 |
|
| 89 |
== Changelog ==
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
= Version 1.67 =
|
| 92 |
|
| 93 |
* Masonry post items now load in series when each image is loaded
|
| 88 |
|
| 89 |
== Changelog ==
|
| 90 |
|
| 91 |
+
= Version 1.68 =
|
| 92 |
+
|
| 93 |
+
* Bug fix with masonry
|
| 94 |
+
|
| 95 |
= Version 1.67 =
|
| 96 |
|
| 97 |
* Masonry post items now load in series when each image is loaded
|
wc-shortcodes.php
CHANGED
|
@@ -5,11 +5,11 @@ Plugin URI: http://webplantmedia.com/starter-themes/wordpresscanvas/features/sho
|
|
| 5 |
Description: A family of shortcodes to enhance site functionality.
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://webplantmedia.com/
|
| 8 |
-
Version: 1.
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
| 12 |
-
define( 'WC_SHORTCODES_VERSION', '1.
|
| 13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
| 14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
| 15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
| 5 |
Description: A family of shortcodes to enhance site functionality.
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://webplantmedia.com/
|
| 8 |
+
Version: 1.68
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
| 12 |
+
define( 'WC_SHORTCODES_VERSION', '1.68' );
|
| 13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
| 14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
| 15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
