Ticket #27051: 27051.diff
File 27051.diff, 1.2 KB (added by , 10 years ago) |
---|
-
src/wp-content/themes/twentyfourteen/js/functions.js
103 103 } ); 104 104 } ); 105 105 106 // Arrange footer widgets vertically. 107 if ( $.isFunction( $.fn.masonry ) ) { 108 $( '#footer-sidebar' ).masonry( { 109 itemSelector: '.widget', 110 columnWidth: function( containerWidth ) { 111 return containerWidth / 4; 112 }, 113 gutterWidth: 0, 114 isResizable: true, 115 isRTL: $( 'body' ).is( '.rtl' ) 116 } ); 117 } 106 _window.load( function() { 118 107 119 // Initialize Featured Content slider. 120 _window.load( function() { 108 // Arrange footer widgets vertically. 109 if ( $.isFunction( $.fn.masonry ) ) { 110 $( '#footer-sidebar' ).masonry( { 111 itemSelector: '.widget', 112 columnWidth: function( containerWidth ) { 113 return containerWidth / 4; 114 }, 115 gutterWidth: 0, 116 isResizable: true, 117 isRTL: $( 'body' ).is( '.rtl' ) 118 } ); 119 } 120 121 // Initialize Featured Content slider. 121 122 if ( body.is( '.slider' ) ) { 122 123 $( '.featured-content' ).featuredslider( { 123 124 selector: '.featured-content-inner > article',