<main class="news zero"><ul class="top"><li><a class="ajax block" href="/news/refresh/<?=$refresh?>">
<img alt="" class="icon" src="/design/icons/<?=$top['icon']?>.png"><?=$top['link']?></a></li></ul>
<? if ($form) : ?><h3 class="top"><?=$title?></h3><form name="news"><p><img alt="" class="icos" src="/design/icons/star.png">
Заголовок:<br><input maxlength="30" name="title" type="text"<?=$value['title']?>><br><span class="small">До 30 символов.</span></p><p>
<img alt="" class="icos" src="/design/icons/pencil.png">Текст:<br><textarea id="smiles" maxlength="2000" name="text"><?=$value['text']?>
</textarea></p><div class="smiles"><span><img class="smile" src="/design/smiles/smile.png" alt=":)"></span><span>
<img class="smile" src="/design/smiles/wink.png" alt=";)"></span><span><img class="smile" src="/design/smiles/laugh.png" alt=":D">
</span><span><img class="smile" src="/design/smiles/biggrin.png" alt="XD"></span><span>
<img class="smile" src="/design/smiles/tongue.png" alt=":P"></span><span><img class="smile" src="/design/smiles/cool.png" alt="8)"></span>
<span><img class="smile" src="/design/smiles/shock.png" alt=":O"></span><span><img class="smile" src="/design/smiles/happen.png" alt=":|">
</span><span><img class="smile" src="/design/smiles/sad.png" alt=":("></span><span><img class="smile" src="/design/smiles/angry.png" alt=":Z">
</span></div><? if ($new) : ?><input type="hidden" name="id" value="<?=$new?>"><? endif; ?>
<input type="hidden" name="token" value="<?=TOKEN?>"><button><?=$button?></button></form><? elseif ($empty) : ?>
<p class="notice"><img alt="" class="icos" src="/design/icons/cross.png">Новости отсутствуют.</p><? else : ?><? foreach($news as &$post) : ?>
<? if (USER['status'] == 'admin') : ?><ul class="news"><li><a class="ajax block" href="/news/edit/id/<?=$post['id']?>">
<img alt="" class="icon" src="/design/icons/pencil.png">Редактировать</a></li></ul><? endif; ?><article class="news"><h4>
<img alt="" class="icos" src="/design/icons/star.png"><?=$post['title']?></h4><p class="text"><?=$post['text']?></p><p class="time">
<img alt="" class="icos" src="/design/icons/time.png"><?=$post['time']?></p></article><? endforeach; ?><? endif; ?>
<? if (USER['status'] == 'admin') : ?><ul class="bottom"><li><a class="ajax block" href="/news/create">
<img alt="" class="icon" src="/design/icons/plus.png">Добавить новость</a></li></ul><? endif; ?></main>