Всем здраствуйте. Вопрос заключается в следующем: в шапке сайта выводится баннер с такой вот конструкцией:
<!-- Banner -->
{if $oConfig->GetValue('view.may')=='true'}<div id="may">
<div class="verh"></div><a rel="nofollow" href="http://site.ru/" target="_blank"><div class="zagmay"></div></a></div>{else}<div id="verhban">
<div class="verh"></div><div class="zag"><a rel="nofollow" href="http://site.com/" target="_blank"><div class="prig">{$aLang.prig_title}</div>
<div class="vols">{$aLang.vols_title}</div></a>
</div></div>{/if}
<!-- /Banner -->
так вот как можно сделать, чтобы rel=«nofollow» в отдельном блоге не добавлялась? Пробовал так:
<!-- Banner -->
{if $oConfig->GetValue('view.may')=='true'}<div id="may">
<div class="verh"></div><a {if $oBlog->getId()==6}rel="nofollow"{/if} href="http://site.ru/" target="_blank"><div class="zagmay"></div></a></div>{else}<div id="verhban">
<div class="verh"></div><div class="zag"><a {if $oBlog->getId()==6}rel="nofollow"{/if} href="http://site.com/" target="_blank"><div class="prig">{$aLang.prig_title}</div>
<div class="vols">{$aLang.vols_title}</div></a>
</div></div>{/if}
<!-- /Banner -->
но выдает ошибку:
Fatal error: Call to a member function getId() on a non-object in /templates/compiled/new/%%2B^2BF^2BFD6439%%header_top.tpl.php on line 8
Подскажите в чем проблема?