diff --git a/system/includes/functions.php b/system/includes/functions.php index caff264..6d789ba 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -859,9 +859,8 @@ function social($imgDir = null) { $google = config('social.google'); $tumblr = config('social.tumblr'); $rss = site_url() . 'feed/rss'; - - if($imgDir === null) - { + + if ($imgDir === null) { $imgDir = "default/img/"; } @@ -986,16 +985,15 @@ function publisher() { function analytics() { $analytics = config('google.analytics.id'); $script = << - var _gaq = _gaq || []; - _gaq.push(['_setAccount', '{$analytics}']); - _gaq.push(['_trackPageview']); - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); - + EOF; if (!empty($analytics)) { return $script; @@ -1305,7 +1303,7 @@ function get_static_path() { function generate_sitemap($str) { header('X-Robots-Tag: noindex'); - + echo ''; if ($str == 'index') {