123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * @var $model \app\models\base\Comments
- */
- $post = $model->post;
- if($model instanceof \app\models\base\Comments && $model->post instanceof \app\models\base\News):
- ?>
- <li class="header-comments__item">
- <a href="<?=$model->post->url?>" class="">
- <div class="header-comments-item">
- <div class="header-comments-item__top">
- <div class="header-comments-item__text">
- <?=$model->message?>
- </div>
- </div>
- <div class="header-comments-item__bottom">
- <div class="header-comments-item__title">
- <?=$model->post->title?>
- </div>
- <div class="header-comments-item__time">
- <?=$model->post->publishedAt?>
- </div>
- </div>
- </div>
- </a>
- </li>
- <?php
- endif;
- ?>
|