убрал из заголовка ad_header_end
Цитата: <if condition="$show['guest']">
<!-- Яндекс.Директ -->
<div id="yandex_ad"></div>
<script type="text/javascript">
(function(w, d, n, s, t) {
w[n] = w[n] || [];
w[n].push(function() {
Ya.Direct.insertInto(19006, "yandex_ad", {
site_charset: "windows-1251",
ad_format: "direct",
font_size: 0.8,
font_family: "tahoma",
type: "horizontal",
limit: 4,
title_font_size: 3,
site_bg_color: "CCCCFF",
title_color: "0000CC",
url_color: "006600",
text_color: "000000",
hover_color: "0066FF"
});
});
t = d.documentElement.firstChild;
s = d.createElement("script");
s.type = "text/javascript";
s.src = "http://an.yandex.ru/system/context.js";
s.setAttribute("async", "true");
t.insertBefore(s, t.firstChild);
})(window, document, "yandex_context_callbacks");
</script>
</if>