From c4e05a2b2d4e1c90212191f8cc1e735114ed9d8e Mon Sep 17 00:00:00 2001 From: Corey Wagehoft Date: Tue, 1 Nov 2011 13:06:51 -0500 Subject: [PATCH] Added an action and function to add the Foundation framework javascript files when it is selected --- inc/roots-actions.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/inc/roots-actions.php b/inc/roots-actions.php index 392cfec..63c3a91 100644 --- a/inc/roots-actions.php +++ b/inc/roots-actions.php @@ -4,6 +4,7 @@ add_action('roots_head', 'roots_google_analytics'); add_action('roots_head', 'roots_fout_b_gone'); add_action('roots_head', 'roots_1140_head'); add_action('roots_head', 'roots_adapt_head'); +add_action('roots_head', 'roots_foundation_head'); add_action('roots_stylesheets', 'roots_get_stylesheets'); add_action('roots_header_before', 'roots_1140_header_before'); add_action('roots_header_after', 'roots_1140_header_after'); @@ -69,6 +70,22 @@ function roots_adapt_head() { } } +function roots_foundation_head() { + global $roots_options; + $roots_css_framework = $roots_options['css_framework']; + $template_uri = get_template_directory_uri(); + if ($roots_css_framework === 'foundation') { + echo "\t\n"; + echo "\t\n"; + echo "\t\n"; + echo "\t\n"; + echo "\t\n"; + echo "\t\n"; + echo "\t\n"; + echo "\t\n"; + } +} + function roots_get_stylesheets() { global $roots_options; $roots_css_framework = $roots_options['css_framework'];