milohuang/reverie — comment on commit 91914b20ab1a6809e3a5e72d6471481470b8e3a7
File:  line 0
By flickapix:

this is better added in the functions.php file like:

add_action( 'init', 'fd_scripts_register' );
function fd_scripts_register() {
if ( !is_admin() ) {

wp_deregister_script('jquery');
wp_register_script('jquery', get_template_directory_uri().'/js/jquery-1.7.1.min.js');
wp_enqueue_script('jquery');

wp_register_script( 'foundation', get_template_directory_uri().'/js/foundation.js', array('jquery') );
wp_enqueue_script( 'foundation' );

wp_register_script( 'app', get_template_directory_uri().'/js/app.js', array('jquery') );
wp_enqueue_script( 'app' );

wp_register_script( 'modernizr', get_template_directory_uri().'/js/libs/modernizr-2.0.6.min.js' );
wp_enqueue_script( 'modernizr' );

}
}

add false for head inclusion or true for footer inclusion, stylesheets also can and should be done like this,and it makes it easier when using option pages and meta boxes.

add_action( 'init', 'fd_css_register' );
function fd_css_register() {
if ( !is_admin() ) {

wp_register_style('style', get_stylesheet_directory_uri(). 'style.css', false);
wp_enqueue_style('style');

wp_register_style('foundation',get_stylesheet_directory_uri(). 'css/core/foundation.css', false);
wp_enqueue_style('foundation');

wp_register_style('app',GENEVA_I7_DIRECTORY . 'css/core/app.css', false);
wp_enqueue_style('app');

}
}

obviously change paths to suit file structure.