krot

umi cms nofollow menu

Jan 25th, 2016
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tpls\content\header.tpl
  2. %content menu('menu1',1)%
  3. tpls\content\menu\menu1.tpl
  4. <?php
  5. $FORMS = Array();
  6. if($_SERVER["REQUEST_URI"] == "/"){
  7. $FORMS['menu_block_level1'] = <<<END
  8. <ul class="nav">
  9. <li><a href="/contacts/">Контакты</a></li>
  10. </ul>
  11. END;
  12. }else{
  13. $FORMS['menu_block_level1'] = <<<END
  14. <noindex>
  15. <ul class="nav">
  16. <li><a rel="nofollow" href="/contacts/">Контакты</a></li>
  17. </ul>
  18. </noindex>
  19. END;
  20. }
  21. ?>
RAW Paste Data