Update code comments
This commit is contained in:
@@ -1,6 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Scripts and stylesheets
|
* Scripts and stylesheets
|
||||||
|
*
|
||||||
|
* Enqueue stylesheets in the following order:
|
||||||
|
* 1. /theme/css/bootstrap.css
|
||||||
|
* 2. /theme/css/bootstrap-responsive.css (if enabled in config.php)
|
||||||
|
* 3. /theme/css/app.css
|
||||||
|
* 4. /child-theme/style.css (if a child theme is activated)
|
||||||
|
*
|
||||||
|
* Enqueue scripts in the following order:
|
||||||
|
* 1. /theme/js/vendor/modernizr-2.5.3.min.js (in header.php)
|
||||||
|
* 2. jquery-1.7.2.min.js via Google CDN (in header.php)
|
||||||
|
* 3. /theme/js/plugins.js
|
||||||
|
* 4. /theme/js/main.js
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function roots_scripts() {
|
function roots_scripts() {
|
||||||
@@ -10,7 +22,7 @@ function roots_scripts() {
|
|||||||
wp_enqueue_style('roots_bootstrap_responsive', get_template_directory_uri() . '/css/bootstrap-responsive.css', array('roots_bootstrap'), null);
|
wp_enqueue_style('roots_bootstrap_responsive', get_template_directory_uri() . '/css/bootstrap-responsive.css', array('roots_bootstrap'), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If you're not using Bootstrap, include H5BP's main.css:
|
// If you're not using Bootstrap, include HTML5 Boilerplate's main.css:
|
||||||
// wp_enqueue_style('roots_h5bp', get_template_directory_uri() . '/css/main.css', false, null);
|
// wp_enqueue_style('roots_h5bp', get_template_directory_uri() . '/css/main.css', false, null);
|
||||||
|
|
||||||
wp_enqueue_style('roots_app', get_template_directory_uri() . '/css/app.css', false, null);
|
wp_enqueue_style('roots_app', get_template_directory_uri() . '/css/app.css', false, null);
|
||||||
@@ -20,6 +32,9 @@ function roots_scripts() {
|
|||||||
wp_enqueue_style('roots_child', get_stylesheet_uri(), false, null);
|
wp_enqueue_style('roots_child', get_stylesheet_uri(), false, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// jQuery is loaded in header.php using the same method from HTML5 Boilerplate:
|
||||||
|
// Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline
|
||||||
|
// It's kept in the header instead of footer to avoid conflicts with plugins.
|
||||||
if (!is_admin()) {
|
if (!is_admin()) {
|
||||||
wp_deregister_script('jquery');
|
wp_deregister_script('jquery');
|
||||||
wp_register_script('jquery', '', '', '', false);
|
wp_register_script('jquery', '', '', '', false);
|
||||||
|
|||||||
Reference in New Issue
Block a user