<main class="friend zero"><ul class="top"><li><a class="ajax block" href="/<?=$nav?>/refresh/<?=$refresh?>">
<img alt="" class="icon" src="/design/icons/refresh.png">Обновить</a></li><li><a class="ajax block" href="/<?=$link?>">
<img alt="" class="icon" src="/design/icons/<?=$icon?>.png"><?=$switch?></a></li></ul><? if ($empty) : ?><p class="notice">
<img alt="" class="icos" src="/design/icons/cross.png"><?=$notice?></p><? else : ?><? if ($contacts > 0) : ?><h3>
<span class="color"><?=$title?></span>: <?=$contacts?></h3><? endif; ?><ul class="friend"><? foreach($list as &$post) : ?>
<li><a class="ajax list" href="/<?=$post['link']?>"><article class="friend"><img alt="" class="icon friend" src="/design/icons/<?=$post['icon']?>.png">
<h4><?=$post['name']?><? if (isset($deleted)) : ?> <img alt="" class="icos" src="/design/icons/trash.png"><? endif; ?></h4></article></a></li>
<? endforeach; ?></ul><? if ($pages > 1) : ?><ul class="page"><? if ($page != 1) : ?><li><a class="ajax button shop" href="/<?=$nav?>">
<?=$one?></a></li><? endif; ?><? if ($page != 2) : ?><li><a class="ajax button shop" href="/<?=$nav?>/page/2"><?=$two?></a></li>
<? endif; ?><? if ($page != 3 && $pages > 2) : ?><li><a class="ajax button shop" href="/<?=$nav?>/page/3">3</a></li><? endif; ?>
<? if ($page != 4 && $pages > 3) : ?><li><a class="ajax button shop" href="/<?=$nav?>/page/4">4</a></li><? endif; ?>
<? if ($page != 5 && $pages > 4) : ?><li><a class="ajax button shop" href="/<?=$nav?>/page/5">5</a></li><? endif; ?></ul>
<? endif; ?><? if (!isset($deleted)) : ?><ul class="bottom"><li><a class="ajax block bottom" href="/<?=$nav?>/act/delete/token/<?=TOKEN?>">
<img alt="" class="icon" src="/design/icons/trash.png">Удалить из списка</a></li></ul><? endif; ?><? endif; ?></main>