예제 #1
0
파일: index.php 프로젝트: Makeyko/galaxysss
            src="/images/index/x_83bd0a57.jpg"
            alt="Generic placeholder image"
            >

    </div>
</div>

<!-- Новости -->
<div>
    <hr class="featurette-divider">
    <div class="col-lg-12">
        <h1 class="page-header">Последние новости Планеты Земля</h1>
    </div>
    <?php 
foreach (\app\models\NewsItem::query()->orderBy(['date_insert' => SORT_DESC])->limit(3)->all() as $row) {
    echo \app\services\GsssHtml::newsItem($row);
}
?>
    <div class="col-lg-12">
        <a
            class="btn btn-default"
            style="width:100%"
            href="<?php 
echo Url::to(['page/news']);
?>
"
            >Все новости</a>
    </div>
</div>

<!-- share -->