h5bp updates

This commit is contained in:
Ben Word
2011-08-28 13:19:34 -06:00
parent f7a149962c
commit 135995305b
2 changed files with 25 additions and 25 deletions

View File

@@ -17,12 +17,12 @@ function roots_google_analytics() {
$get_roots_google_analytics_id = esc_attr($roots_options['google_analytics_id']);
if ($roots_google_analytics_id !== '') {
echo "\n\t<script>\n";
echo "\t\twindow._gaq = [['_setAccount','$get_roots_google_analytics_id'],['_trackPageview'],['_trackPageLoadTime']];\n";
echo "\t\tModernizr.load({\n";
echo "\t\t\tload: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'\n";
echo "\t\t});\n";
echo "\t</script>\n";
}
echo "\t\tvar _gaq=[['_setAccount','$get_roots_google_analytics_id'],['_trackPageview'],['_trackPageLoadTime']];\n";
echo "\t\t(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];\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</script>\n";
}
}
function roots_fout_b_gone() {