Browse Source

Add Google Analytics & Class Hide

pull/2/head
Mohamad Fahmi 12 years ago
parent
commit
9867846e03
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      themes/default/layout.html.php

+ 5
- 2
themes/default/layout.html.php View File

@ -16,9 +16,12 @@
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php if (analytics() == true):?><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '<?php echo config('google.analytics.js')?>');
ga('send', 'pageview');</script><?php endif;?>
</head>
<body class="<?php echo $bodyclass; ?>">
<div itemscope="itemscope" itemtype="http://schema.org/Blog" style="display: none;">
<div itemscope="itemscope" itemtype="http://schema.org/Blog" class="hide">
<meta content="<?php echo config('blog.title') ?>" itemprop="name"/>
<meta content="<?php echo config('blog.description')?>" itemprop="description"/>
</div>
@ -41,4 +44,4 @@
<?php echo content()?>
</section>
</body>
</html>
</html>

Loading…
Cancel
Save