Blame view

frontend/views/event/view.php 1.85 KB
cb6805b8   Administrator   12.04.16 finish ...
1
2
3
4
  <?php
  
  use yii\helpers\Html;
  use yii\widgets\DetailView;
fa68c38d   Administrator   12.04.16 finish ...
5
  use frontend\widgets\Seo;
cb6805b8   Administrator   12.04.16 finish ...
6
7
8
9
10
11
  /* @var $this yii\web\View */
  /* @var $model common\models\Stone */
  
  $this->title = $model->name;
  $this->params['breadcrumbs'][] = ['label' => 'Акции', 'url' => ['index']];
  $this->params['breadcrumbs'][] = $this->title;
fa68c38d   Administrator   12.04.16 finish ...
12
  $this->params['name'] = $this->title;
cb6805b8   Administrator   12.04.16 finish ...
13
14
15
16
17
18
19
20
21
22
  ?>
  <div class="events-one-item">
      <h1><?= $model->name?></h1>
      <?=  Html::img($model->minImg($model->image, '940','480')) ?>
      <div class="date_end">
          Срок действия по: <?= $model->end_at?>
      </div>
      <div class="content-last-block-text-wrap">
          <?= $model->body?>
      </div>
377b29c7   Yarik   Yarik comment
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
      <?php
          echo \common\modules\comment\widgets\CommentWidget::widget([
              'context'       => $this,
              'model'         => $model->className(),
              'model_id'      => $model->event_id,
              'comment_class' => \common\modules\comment\models\Comment::className(),
              'rating_class'  => \common\modules\comment\models\Rating::className(),
              'class_options' => [
                  'scenario'     => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST,
                  'user_id'      => \Yii::$app->user->getId(),
                  'guestComment' => true,
                  'status'       => \common\modules\comment\models\Comment::STATUS_ACTIVE,
              ],
              'list_options'  => [
                  'view' => 'list-comment-review',
              ],
              'form_options'  => [
                  'view' => 'form-comment-review',
                  'tag'  => 'span',
              ],
              'options'       => [
                  'class' => 'proektant-comments-wr style',
              ],
          ]);
      ?>
cb6805b8   Administrator   12.04.16 finish ...
48
  </div>
fa68c38d   Administrator   12.04.16 finish ...
49
  <div class="seo-text">
7b08eb78   Administrator   15.04.16 seo widget
50
      <?= Seo::widget(['row'=>'seo_text'])?>
fa68c38d   Administrator   12.04.16 finish ...
51
  </div>