<!--YA CLID-->
<input type="hidden" id="clientID" name="ClientID" value="">
<!--GA CLID-->
<input type="hidden" id="clientId" name="clientId" value="">
<script>
ym(34757170, 'getClientID', function(clientID) {
document.getElementById('clientID').value = clientID;
});
</script>
<script>
ym(34757170, 'getClientID', function(clientID) {
document.getElementById('clientID2').value = clientID;
});
</script>
<script>
ym(34757170, 'getClientID', function(clientID) {
document.getElementById('clientID3').value = clientID;
});
</script>
<script>
ym(34757170, 'getClientID', function(clientID) {
document.getElementById('clientID4').value = clientID;
});
</script>
<script>
function getCookie(name) {
var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
return v ? v[2] : null;
}
function setGoogleClientId() {
var e,
ga = getCookie('_ga'),
utma = getCookie('__utma'),
ga_client_id;
ga_client_id = window.ga && window.ga.getAll && window.ga.getAll()[0]
? window.ga.getAll()[0].get("clientId")
: ga && ga.length > 0
? (e = ga.split(".").slice(2, 4).join("."), e.length > 0 ? e : null)
: utma && utma.length > 0
? (e = utma.split(".").slice(1, 3).join("."), e.length > 0 ? e : null)
: null;
if (ga_client_id) {
var el;
if (el = document.getElementById('clientId')) el.value = ga_client_id;
if (el = document.getElementById('clientId2')) el.value = ga_client_id;
if (el = document.getElementById('clientId3')) el.value = ga_client_id;
if (el = document.getElementById('clientId4')) el.value = ga_client_id;
}
}
setGoogleClientId();
</script>
<!-- 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();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(34757170, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/34757170" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter -->
<script>
ym(34757170, 'getClientID', function(clientID) {
document.getElementById('clientID').value = clientID;
});
</script>
<input id="clientID" type="hidden" name="ClientID" value="">
<?php if (is_single() ) {
if (have_posts()) : while (have_posts()) : the_post();
$strDescr = wp_trim_words(get_the_content(), 30, '');
$strDescr = preg_split("/[*] /", $strDescr);
echo '<meta name="description" content="'.$strDescr[0].$strDescr[1].$strDescr[2].$strDescr[3].'" >';
endwhile; endif; }
?>