Changeset 896393
- Timestamp:
- 04/17/2014 03:58:12 PM (12 years ago)
- Location:
- image-wall/trunk
- Files:
-
- 1 added
- 4 edited
-
image-wall.css (modified) (1 diff)
-
image-wall.js (modified) (3 diffs)
-
image-wall.php (modified) (2 diffs)
-
imagesloaded.pkgd.min.js (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-wall/trunk/image-wall.css
r666028 r896393 101 101 } 102 102 103 #tmn-image-wall .tmn-image-wall-item {103 #tmn-image-wall .tmn-image-wall-item, #tmn-image-wall-prep .tmn-image-wall-item { 104 104 opacity: 0; 105 105 } 106 106 107 #tmn-image-wall . tmn-image-wall-item.masonry-brick{107 #tmn-image-wall .masonry-brick .tmn-image-wall-item { 108 108 opacity: 1; 109 109 -webkit-transition-property: opacity; -
image-wall/trunk/image-wall.js
r718923 r896393 55 55 itemSelector : '.tmn-image-wall-item', 56 56 columnWidth : tmn_iw_get_column_width, 57 gutter Width: 0,57 gutter : 0, 58 58 isFitWidth : true, 59 59 isAnimated : false … … 82 82 var tempHolder = $( newElements ); 83 83 var theimages = tempHolder.find('img') 84 var theitems = tempHolder.find('.tmn-image-wall-item-link') 85 84 86 if(theimages.length == 0) { 85 87 if(iw_debug) console.log('Image Wall: No new images found. Asking for another batch.'); … … 87 89 tempHolder.remove(); 88 90 } else { 89 theimages.imagesLoaded(function (e) { 90 if(iw_debug) console.log('Image Wall: Image (single?) loaded from temporary holder. Adding them to the Image Wall.'); 91 var newItem = $(this).parent(); 92 93 $container.append( newItem ).masonry( 'appended', newItem, true ); 94 if(tempHolder.children().length == 0) { 95 if(iw_debug) console.log('Image Wall: No more images in the temporary holder. Removing it.'); 96 tempHolder.remove(); 97 } 91 theimages.imagesLoaded(function (imgLoad) { 92 if(iw_debug) console.log('Image Wall: ' + imgLoad.images.length +' images loaded from temporary holder. Adding them to the Image Wall.'); 93 theimages.css( 'opacity', 0); 94 $container.append( theitems ).masonry( 'appended', theitems, true ); 95 96 if(iw_debug) console.log('Image Wall: No more images in the temporary holder. Removing it.'); 97 tempHolder.remove(); 98 98 }); 99 99 if(iw_debug) console.log('Image Wall: New image added to the Image Wall. Appending it to the body while we wait for images to load.'); -
image-wall/trunk/image-wall.php
r718923 r896393 4 4 Plugin URI: http://www.themodernnomad.com/image-wall-plugin/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=plugin_link 5 5 Description: Browse posts/pages by their images, displayed randomly on an infinitely scrollable page. The images link back to the posts where they are attached. 6 Version: 2.1 36 Version: 2.14 7 7 Author: Gustav Andersson 8 8 Author URI: http://www.themodernnomad.com/about/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=author_link … … 329 329 global $post; 330 330 if ( preg_match('/(?<!\[)\[image_wall.*?\]/', $post->post_content) ) { 331 wp_register_script ( 'infinitescroll', plugins_url( 'jquery.infinitescroll.js' , __FILE__ ), array(), '2.0b2.120519', true ); 332 wp_enqueue_script ('tmniwjs', plugins_url( 'image-wall.js' , __FILE__ ), array('jquery', 'jquery-masonry', 'infinitescroll'), '2', true); 331 wp_register_script ( 'imagesLoaded', plugins_url( 'imagesloaded.pkgd.min.js' , __FILE__ ), array(), '3.1.4', true ); 332 wp_register_script ( 'infinitescroll', plugins_url( 'jquery.infinitescroll.js' , __FILE__ ), array('imagesLoaded'), '2.0b2.120519', true ); 333 wp_enqueue_script ('tmniwjs', plugins_url( 'image-wall.js' , __FILE__ ), array('jquery', 'jquery-masonry', 'infinitescroll', 'imagesLoaded'), '2', true); 333 334 /* 334 335 $translation_array = array( -
image-wall/trunk/readme.txt
r718923 r896393 3 3 Tags: gallery, galleries, images, ajax, image, media, photo, photos, shortcode, 4 4 Requires at least: 3.5 5 Tested up to: 3. 5.16 Stable tag: 2.1 35 Tested up to: 3.9 6 Stable tag: 2.14 7 7 Donate link: http://www.themodernnomad.com/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=donation 8 8 License: GPLv2 or later … … 101 101 = 2.13 = 102 102 Fixed a bug introduced in 2.12. Don't use 2.12. It won't load more than the first batch of photos. Apologies. 103 104 = 2.14 = 105 Fixed some compatibility issues with WordPress v3.9.
Note: See TracChangeset
for help on using the changeset viewer.