diff options
Diffstat (limited to 'skin')
-rw-r--r-- | skin/base.skin.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/skin/base.skin.php b/skin/base.skin.php index 335e330..3374555 100644 --- a/skin/base.skin.php +++ b/skin/base.skin.php @@ -31,7 +31,23 @@ return <<<HTML <div class="page-content base-width"> <div class="page-content-inner">{$unsafe_body}</div> </div> - {$ctx->renderScript($js, $unsafe_lang, $opts['dynlogo_enabled'])} + {$ctx->renderScript($js, $unsafe_lang, $opts['dynlogo_enabled'])} + + <!-- Yandex.Metrika counter --> + <script type="text/javascript"> + (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; + m[i].l=1*new Date(); + for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} + k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) + (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); + ym(91996445, "init", { + clickmap:true, + trackLinks:true, + accurateTrackBounce:true + }); + </script> + <noscript><div><img src="https://mc.yandex.ru/watch/91996445" style="position:absolute; left:-9999px;" alt="" /></div></noscript> + <!-- /Yandex.Metrika counter --> </body> </html> <!-- @@ -298,4 +314,4 @@ function renderMoonIcon($ctx) { return <<<SVG <svg width="18" height="18" xmlns="http://www.w3.org/2000/svg"><path d="M14.54 10.37a5.4 5.4 0 01-6.91-6.91.59.59 0 00-.74-.75 6.66 6.66 0 00-2.47 1.54 6.6 6.6 0 1010.87 6.86.59.59 0 00-.75-.74zm-1.61 2.39a5.44 5.44 0 01-7.69-7.69 5.58 5.58 0 011-.76 6.55 6.55 0 007.47 7.47 5.15 5.15 0 01-.78.98z" fill-rule="evenodd" /></svg> SVG; -}
\ No newline at end of file +} |