diff --git a/header.php b/header.php index 26b5441..c811296 100644 --- a/header.php +++ b/header.php @@ -6,7 +6,7 @@ - <?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?> + <?php wp_title('|', true, 'right'); bloginfo('name'); ?> @@ -23,42 +23,37 @@ - - - - + post_name; body_class($page_slug); ?>> +
diff --git a/inc/roots-actions.php b/inc/roots-actions.php index a441971..ad8f479 100644 --- a/inc/roots-actions.php +++ b/inc/roots-actions.php @@ -1,5 +1,6 @@ \n"; + echo "\t\tvar _gaq=[['_setAccount','$get_google_analytics_id'],['_trackPageview'],['_trackPageLoadTime']];\n"; + echo "\t\t(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;\n"; + echo "\t\tg.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';\n"; + echo "\t\ts.parentNode.insertBefore(g,s)}(document,'script'));\n"; + echo "\t\n"; + } +} + function roots_1140_head() { global $roots_options; $roots_css_framework = $roots_options['css_framework']; $template_uri = get_template_directory_uri(); if ($roots_css_framework === '1140') { - echo ""; + echo "\t"; } } @@ -22,21 +37,21 @@ function roots_adapt_head() { $roots_css_framework = $roots_options['css_framework']; $template_uri = get_template_directory_uri(); if ($roots_css_framework === 'adapt') { - echo "\n"; - echo ""; + echo "\n\t\n"; + echo "\t"; } } @@ -44,7 +59,7 @@ function roots_1140_header_before() { global $roots_options; $roots_css_framework = $roots_options['css_framework']; if ($roots_css_framework === '1140') { - echo "
"; + echo "
\n"; } } @@ -52,8 +67,8 @@ function roots_1140_header_after() { global $roots_options; $roots_css_framework = $roots_options['css_framework']; if ($roots_css_framework === '1140') { - echo "
"; - echo "
"; + echo "
\n"; + echo "
\n"; } } @@ -61,8 +76,8 @@ function roots_1140_footer_before() { global $roots_options; $roots_css_framework = $roots_options['css_framework']; if ($roots_css_framework === '1140') { - echo "
"; - echo "
"; + echo "
\n"; + echo "
\n"; } } @@ -70,7 +85,7 @@ function roots_1140_footer_after() { global $roots_options; $roots_css_framework = $roots_options['css_framework']; if ($roots_css_framework === '1140') { - echo "
"; + echo "
\n"; } }