Ticket #37390: 37390.1.diff
File 37390.1.diff, 1.7 KB (added by , 9 years ago) |
---|
-
src/wp-content/themes/twentythirteen/functions.php
173 173 wp_enqueue_script( 'jquery-masonry' ); 174 174 175 175 // Loads JavaScript file with functionality specific to Twenty Thirteen. 176 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '201 50330', true );176 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20160717', true ); 177 177 178 178 // Add Source Sans Pro and Bitter fonts, used in the main stylesheet. 179 179 wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); -
src/wp-content/themes/twentythirteen/js/functions.js
119 119 /** 120 120 * Arranges footer widgets vertically. 121 121 */ 122 if ( $.isFunction( $.fn.masonry ) ) { 123 var columnWidth = body.is( '.sidebar' ) ? 228 : 245, 124 widgetArea = $( '#secondary .widget-area' ); 122 $( function() { 123 var columnWidth, widgetArea; 124 if ( ! $.isFunction( $.fn.masonry ) ) { 125 return; 126 } 127 columnWidth = body.is( '.sidebar' ) ? 228 : 245; 128 widgetArea = $( '#secondary .widget-area' ); 125 129 126 130 widgetArea.masonry( { 127 131 itemSelector: '.widget', … … 157 161 } 158 162 } ); 159 163 } 160 } 164 } ); 161 165 } )( jQuery ); 166 No newline at end of file