Файл: wenr.online/templates/game/news.tpl
Строк: 11
<? $this->layout('app', ['title' => 'Новости'])
?>
<? $this->start('container') ?>
<div
class="box">
<h4 class="text-center
inf-us">
Новости
</h4>
<?php
if(count($items) == 0){?>
<div
class="list-group">
<div class="list-group-item
text-center">Пусто</div>
</div>
<?php }
?>
<?php foreach($items as $row):?>
<div
class="list-group">
<div
class="list-group-item">
<a
href="/news/view?id=<?=$row['id'];?>&r=<?=$r;?>"><?=$row['name'];?>
(<?=date('d.m.Y H:i',$row['time']);?>)</a>
</div>
</div>
<?php endforeach; ?>
<div
class="text-center"> <?php echo $peger->display;
?> </div>
</div>
<? $this->stop() ?>