<header> <h1><?php echo $item->title; ?> </h1> </header> <p><?php echo $item->short; ?> </p> <footer> <div class="date"> <span><?php echo Yii::$app->language === 'ru' ? Utils::getDate($item->date) : date('j F Y', $item->time); ?> </span> </div> <div class="btn-wrapper"> <a href="<?php echo Url::toRoute(['articles/view', 'slug' => $item->slug]); ?> " class="btn btn-simple"> <?php echo Yii::t('all', 'read article'); ?> </a> </div> </footer>
</h1> </header> <p class="caption"><?php echo $article->short; ?> </p> <?php echo $article->text; ?> <footer> <div class="date"> <span><?php echo Yii::$app->language == 'ru' ? Utils::getDate($article->date) : date('j F Y', $article->time); ?> </span> </div> <div class="btn-wrapper"> <a href="<?php echo Url::toRoute('/articles'); ?> " class="btn btn-simple"> <?php echo Yii::t('all', 'back to articles'); ?> </a> </div> </footer>