Skip to content

Commit

Permalink
factor out the nav js into a separate file, reorganize the nav js int…
Browse files Browse the repository at this point in the history
…o a 'class', reorder the nav theme options, reformat largoCore.js
  • Loading branch information
rnagle committed Dec 15, 2015
1 parent 6368fb7 commit dd94881
Show file tree
Hide file tree
Showing 7 changed files with 362 additions and 348 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = function(grunt) {
'image-widget.js',
'largoCore.js',
'load-more-posts.js',
'navigation.js',
'top-terms.js',
'update-page.js',
'widgets-php.js',
Expand Down
4 changes: 3 additions & 1 deletion inc/enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ function largo_enqueue_js() {

$suffix = (LARGO_DEBUG)? '' : '.min';
// Our primary stylesheet
wp_enqueue_style( 'largo-stylesheet', get_template_directory_uri().'/css/style' . $suffix . '.css' ); //often overridden by custom-less-variables version
// Often overridden by custom-less-variables version
wp_enqueue_style( 'largo-stylesheet', get_template_directory_uri().'/css/style' . $suffix . '.css' );
wp_enqueue_script( 'largoCore', get_template_directory_uri() . '/js/largoCore' . $suffix . '.js', array( 'jquery' ), '1.0', true );
wp_enqueue_script( 'largo-navigation', get_template_directory_uri() . '/js/navigation' . $suffix . '.js', array( 'jquery' ), '1.0', true );

/**
* These files are already minified
Expand Down
Loading

0 comments on commit dd94881

Please sign in to comment.