moving 1140's call to css3-mediaqueries.js into actions
This commit is contained in:
@@ -21,9 +21,7 @@
|
|||||||
|
|
||||||
<?php wp_head(); ?>
|
<?php wp_head(); ?>
|
||||||
<?php roots_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>
|
<script src="<?php echo get_template_directory_uri(); ?>/js/scripts.js"></script>
|
||||||
<?php if (get_option('roots_google_analytics') !== "") { ?>
|
<?php if (get_option('roots_google_analytics') !== "") { ?>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,10 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
add_action('roots_head', 'roots_1140_head');
|
||||||
add_action('roots_header_before', 'roots_1140_header_before');
|
add_action('roots_header_before', 'roots_1140_header_before');
|
||||||
add_action('roots_header_after', 'roots_1140_header_after');
|
add_action('roots_header_after', 'roots_1140_header_after');
|
||||||
add_action('roots_footer_before', 'roots_1140_footer_before');
|
add_action('roots_footer_before', 'roots_1140_footer_before');
|
||||||
add_action('roots_footer_after', 'roots_1140_footer_after');
|
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() {
|
function roots_1140_header_before() {
|
||||||
if (get_option('roots_css_framework') === '1140') {
|
if (get_option('roots_css_framework') === '1140') {
|
||||||
echo "<div class=\"row\">";
|
echo "<div class=\"row\">";
|
||||||
|
|||||||
Reference in New Issue
Block a user