\n"; $styles .= stylesheet_link_tag('/adapt/mobile.css', 1); $styles .= "\t\n"; break; case 'foundation' : $styles .= stylesheet_link_tag('/foundation/globals.css'); $styles .= stylesheet_link_tag('/foundation/typography.css', 1); $styles .= stylesheet_link_tag('/foundation/grid.css', 1); $styles .= stylesheet_link_tag('/foundation/ui.css', 1); $styles .= stylesheet_link_tag('/foundation/forms.css', 1); $styles .= stylesheet_link_tag('/foundation/orbit.css', 1); $styles .= stylesheet_link_tag('/foundation/reveal.css', 1); $styles .= stylesheet_link_tag('/foundation/mobile.css', 1); $styles .= stylesheet_link_tag('/foundation/app.css', 1); break; case 'less' : $styles .= stylesheet_link_tag('/less/less.css'); break; case 'bootstrap' : $styles .= stylesheet_link_tag('/bootstrap/bootstrap.css'); break; case 'bootstrap_less' : $styles .= stylesheet_link_tag('/bootstrap/lib/bootstrap.less', 0, true, 'stylesheet/less'); break; } if (class_exists('RGForms')) { $styles .= "\t\n"; } if (is_child_theme()) { $styles .= stylesheet_link_tag('/style.css', 1); $styles .= "\t\n"; } else { $styles .= stylesheet_link_tag('/style.css', 1); } switch ($roots_css_framework) { case 'blueprint' : $styles .= "\t\n"; break; case '1140' : $styles .= "\t\n"; break; case 'foundation' : $styles .= "\t\n"; break; } echo $styles; } function stylesheet_link_tag($file, $tabs = 0, $newline = true, $rel = 'stylesheet') { $indent = str_repeat("\t", $tabs); return $indent . '' . ($newline ? "\n" : ""); } add_action('roots_footer', 'roots_google_analytics'); function roots_google_analytics() { global $roots_options; $roots_google_analytics_id = $roots_options['google_analytics_id']; $get_roots_google_analytics_id = esc_attr($roots_options['google_analytics_id']); if ($roots_google_analytics_id !== '') { echo "\n\t\n"; } } // 1140 specific if (roots_current_framework() === '1140') { add_action('roots_header_before', 'roots_1140_header_before'); add_action('roots_header_after', 'roots_1140_header_after'); add_action('roots_footer_before', 'roots_1140_footer_before'); add_action('roots_footer_after', 'roots_1140_footer_after'); function roots_1140_header_before() { echo '
', "\n"; } function roots_1140_header_after() { echo "
\n"; echo '
', "\n"; } function roots_1140_footer_before() { echo "
\n"; echo '
', "\n"; } function roots_1140_footer_after() { echo "
\n"; } } // Adapt specific if (roots_current_framework() === 'adapt') { add_action('roots_head', 'roots_adapt_head'); function roots_adapt_head() { $template_uri = get_template_directory_uri(); echo "\n\t\n"; } } // Bootstrap specific if (roots_current_framework() === 'bootstrap' || roots_current_framework() === 'bootstrap_less') { add_action('roots_header_before', 'roots_bootstrap_header_before'); add_action('roots_header_after', 'roots_bootstrap_header_after'); add_action('roots_footer_before', 'roots_bootstrap_footer_before'); add_action('roots_footer_after', 'roots_bootstrap_footer_after'); function roots_bootstrap_header_before() { echo '
', "\n"; } function roots_bootstrap_header_after() { echo "
\n"; echo '
', "\n"; } function roots_bootstrap_footer_before() { echo "
\n"; echo '
', "\n"; } function roots_bootstrap_footer_after() { echo "
\n"; } } ?>