<main class="tasks zero"><ul class="top"><li><a class="ajax block" href="/tasks/refresh/<?=$refresh?>">
<img alt="" class="icon" src="/design/icons/refresh.png">Обновить</a></li></ul><ul class="task">
<? foreach($tasks as &$post) : ?><li><? if ($post['link']) : ?><a class="ajax list" href="/tasks/complete/<?=$post['num']?>/token/<?=TOKEN?>">
<? endif; ?><article class="task <?=$post['block']?>"><img alt="" class="task" src="/design/person/<?=$post['image']?>/<?=$post['face']?>.png">
<h4><?=$post['name']?></h4><p><img alt="" class="icos" src="/design/icons/money.png"><?=$post['color']?> <?=$post['price']?>
<p><img alt="" class="icos" src="/design/icons/<?=$post['one_icon']?>.png"><?=$post['one_name']?>, <?=$post['one_count']?></p>
<? if ($post['two'] != 'none') : ?><p><img alt="" class="icos" src="/design/icons/<?=$post['two_icon']?>.png">
<?=$post['two_name']?>, <?=$post['two_count']?></p><? endif; ?><? if ($post['three'] != 'none') : ?><p>
<img alt="" class="icos" src="/design/icons/<?=$post['three_icon']?>.png"><?=$post['three_name']?>, 
<?=$post['three_count']?></p><? endif; ?></article><? if ($post['link']) : ?></a><? endif; ?></li><? endforeach; ?></ul></main>