Changeset 38083
- Timestamp:
- 07/17/2016 09:13:35 PM (9 years ago)
- Location:
- trunk/src/wp-content/themes/twentythirteen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/functions.php
r38026 r38083 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. -
trunk/src/wp-content/themes/twentythirteen/js/functions.js
r37040 r38083 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( { … … 158 162 } ); 159 163 } 160 } 164 } ); 161 165 } )( jQuery );
Note: See TracChangeset
for help on using the changeset viewer.