Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shoji imamura committed Apr 21, 2016
1 parent 4b91e6d commit 8d40f57
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
/*-------------------------------------------*/
/* Global navigation add cptions
/*-------------------------------------------*/

/* headfix enable
/*-------------------------------------------*/

/*-------------------------------------------*/
/* Theme setup
Expand Down Expand Up @@ -74,7 +75,7 @@ function lightning_addJs() {
wp_script_add_data( 'html5shiv', 'conditional', 'lt IE 9' );
wp_enqueue_script( 'respond', '//oss.maxcdn.com/respond/1.4.2/respond.min.js' );
wp_script_add_data( 'respond', 'conditional', 'lt IE 9' );
wp_enqueue_script( 'lightning-js', get_template_directory_uri().'/js/all.js', array( 'jquery' ), Lightning_Theme_Version );
wp_enqueue_script( 'lightning-js', get_template_directory_uri().'/js/all.min.js', array( 'jquery' ), Lightning_Theme_Version );
}

add_action( 'wp_enqueue_scripts', 'lightning_commentJs' );
Expand Down Expand Up @@ -113,6 +114,9 @@ function lightning_design_css(){
/*-------------------------------------------*/
require( get_template_directory() . '/functions_plugin_install.php' );

/*-------------------------------------------*/
/* Load designskin manager
/*-------------------------------------------*/
require( get_template_directory() . '/class-design-manager.php' );

/*-------------------------------------------*/
Expand Down Expand Up @@ -271,8 +275,13 @@ function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) {
}
}


/*-------------------------------------------*/
/* headfix enable
/*-------------------------------------------*/
add_filter( 'body_class', 'lightning_body_class' );
function lightning_body_class( $class ){
$class[] = 'headfix';
if( apply_filters( 'lightning_enable_headfix', true ) )
$class[] = 'headfix';
return $class;
}
}

0 comments on commit 8d40f57

Please sign in to comment.