Plugin Directory

Changeset 896393


Ignore:
Timestamp:
04/17/2014 03:58:12 PM (12 years ago)
Author:
Parakoos
Message:

2.14: Fixed incompatibility issues with WordPress 3.9.

Location:
image-wall/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • image-wall/trunk/image-wall.css

    r666028 r896393  
    101101}
    102102
    103 #tmn-image-wall .tmn-image-wall-item {
     103#tmn-image-wall .tmn-image-wall-item, #tmn-image-wall-prep .tmn-image-wall-item {
    104104    opacity: 0;
    105105}
    106106
    107 #tmn-image-wall .tmn-image-wall-item.masonry-brick {
     107#tmn-image-wall .masonry-brick .tmn-image-wall-item {
    108108    opacity: 1;
    109109  -webkit-transition-property: opacity;
  • image-wall/trunk/image-wall.js

    r718923 r896393  
    5555            itemSelector    : '.tmn-image-wall-item',
    5656            columnWidth : tmn_iw_get_column_width,
    57             gutterWidth : 0,
     57            gutter      : 0,
    5858            isFitWidth  : true,
    5959            isAnimated  : false
     
    8282            var tempHolder = $( newElements );
    8383            var theimages = tempHolder.find('img')
     84            var theitems = tempHolder.find('.tmn-image-wall-item-link')
     85           
    8486            if(theimages.length == 0) {
    8587                if(iw_debug) console.log('Image Wall: No new images found. Asking for another batch.');
     
    8789                tempHolder.remove();
    8890            } 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();
    9898                });
    9999                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  
    44    Plugin URI: http://www.themodernnomad.com/image-wall-plugin/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=plugin_link
    55    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.13
     6    Version: 2.14
    77    Author: Gustav Andersson
    88    Author URI: http://www.themodernnomad.com/about/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=author_link
     
    329329    global $post;
    330330    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);
    333334/*
    334335        $translation_array = array(
  • image-wall/trunk/readme.txt

    r718923 r896393  
    33Tags: gallery, galleries, images, ajax, image, media, photo, photos, shortcode,
    44Requires at least: 3.5
    5 Tested up to: 3.5.1
    6 Stable tag: 2.13
     5Tested up to: 3.9
     6Stable tag: 2.14
    77Donate link: http://www.themodernnomad.com/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=donation
    88License: GPLv2 or later
     
    101101= 2.13 =
    102102Fixed 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 =
     105Fixed some compatibility issues with WordPress v3.9.
Note: See TracChangeset for help on using the changeset viewer.