Galleries by Angie Makes - Version 1.44

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Galleries by Angie Makes
Version 1.44
Comparing to
See all releases

Code changes from version 1.43 to 1.44

Files changed (4) hide show
  1. README.md +4 -0
  2. includes/js/gallery.js +5 -13
  3. readme.txt +4 -0
  4. 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.43
50
 
51
  * Masonry gallery items now loads in series when each image is loaded
46
 
47
  ## Changelog ##
48
 
49
+ ### Version 1.44
50
+
51
+ * Fixed bug with masonry being randomely sorted
52
+
53
  ### Version 1.43
54
 
55
  * Masonry gallery items now loads in series when each image is loaded
includes/js/gallery.js CHANGED
@@ -9,23 +9,16 @@
9
 
10
  $.fn.wcGalleryMasonryImagesReveal = function( $items ) {
11
  var msnry = this.data('masonry');
12
- var itemSelector = msnry.options.itemSelector;
13
-
14
- // hide by default
15
- $items.hide();
16
-
17
- // append to container
18
- this.append( $items );
19
 
20
  $.each( $items, function( key, item ) {
21
  var $item = $(this);
22
 
23
- // un-hide item
24
- $item.show();
25
-
26
  $item.imagesLoaded().always( function( instance ) {
27
  // masonry does its thing
28
- msnry.appended( $item );
 
 
 
29
  });
30
  });
31
 
@@ -92,8 +85,7 @@
92
  var $container = $(this);
93
  var $posts = $container.children('.gallery-item');
94
 
95
- // remove posts from element
96
- $container.empty();
97
 
98
  // keeps the media elements from calculating for the full width of the post
99
  runMasonry(0, $container, $posts);
9
 
10
  $.fn.wcGalleryMasonryImagesReveal = function( $items ) {
11
  var msnry = this.data('masonry');
 
 
 
 
 
 
 
12
 
13
  $.each( $items, function( key, item ) {
14
  var $item = $(this);
15
 
 
 
 
16
  $item.imagesLoaded().always( function( instance ) {
17
  // masonry does its thing
18
+ msnry.layout();
19
+
20
+ // un-hide item
21
+ $item.show();
22
  });
23
  });
24
 
85
  var $container = $(this);
86
  var $posts = $container.children('.gallery-item');
87
 
88
+ $posts.hide();
 
89
 
90
  // keeps the media elements from calculating for the full width of the post
91
  runMasonry(0, $container, $posts);
readme.txt 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.43 =
50
 
51
  * Masonry gallery items now loads in series when each image is loaded
46
 
47
  == Changelog ==
48
 
49
+ = Version 1.44 =
50
+
51
+ * Fixed bug with masonry being randomely sorted
52
+
53
  = Version 1.43 =
54
 
55
  * Masonry gallery items now loads in series when each image is loaded
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.43
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.43' );
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.44
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.44' );
17
  define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
18
  define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
19
  define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );