moving 1140's call to css3-mediaqueries.js into actions

This commit is contained in:
Ben Word
2011-05-26 21:30:41 -06:00
parent dfb1f1aded
commit 3c5298ee58
2 changed files with 9 additions and 3 deletions

View File

@@ -21,9 +21,7 @@
<?php wp_head(); ?>
<?php roots_head(); ?>
<?php if (get_option('roots_css_framework') === '1140') { ?>
<script src="<?php echo get_template_directory_uri(); ?>/js/css3-mediaqueries.js"></script>
<?php } ?>
<script src="<?php echo get_template_directory_uri(); ?>/js/scripts.js"></script>
<?php if (get_option('roots_google_analytics') !== "") { ?>
<script>

View File

@@ -1,10 +1,18 @@
<?php
add_action('roots_head', 'roots_1140_head');
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_head() {
$template_uri = get_template_directory_uri();
if (get_option('roots_css_framework') === '1140') {
echo "<script src=\"$template_uri/js/css3-mediaqueries.js\"></script>";
}
}
function roots_1140_header_before() {
if (get_option('roots_css_framework') === '1140') {
echo "<div class=\"row\">";