add frontend
This commit is contained in:
23
single.php
23
single.php
@@ -139,14 +139,25 @@ window.yaContextCb.push(()=>{
|
||||
})
|
||||
</script>
|
||||
|
||||
<?$random_adv = rand(0, 1);
|
||||
|
||||
if ($random_adv == 0):?>
|
||||
<div id="unit_102382"><a href="https://smi2.ru/" >Новости СМИ2</a></div>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
(function() {
|
||||
var sc = document.createElement('script'); sc.type = 'text/javascript'; sc.async = true;
|
||||
sc.src = '//smi2.ru/data/js/102382.js'; sc.charset = 'utf-8';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sc, s);
|
||||
}());
|
||||
</script>
|
||||
(function() {
|
||||
var sc = document.createElement('script'); sc.type = 'text/javascript'; sc.async = true;
|
||||
sc.src = '//smi2.ru/data/js/102382.js'; sc.charset = 'utf-8';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sc, s);
|
||||
}());
|
||||
</script>
|
||||
<?else:?>
|
||||
<div class="smi24__informer smi24__auto" data-smi-blockid="29761"></div>
|
||||
<script>(window.smiq = window.smiq || []).push({});</script>
|
||||
<div class="smi24__informer smi24__auto" data-smi-blockid="29760"></div>
|
||||
<script>(window.smiq = window.smiq || []).push({});</script>
|
||||
<?endif;?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php include get_template_directory().'/blocks/yets.php';?>
|
||||
|
||||
Reference in New Issue
Block a user