mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 19:46:21 +05:30
Add Google Analytics & Class Hide
This commit is contained in:
parent
51866dcfa2
commit
9867846e03
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue