Commit fc48eb626d5c466fa05f56553e8d2a156b2395d2
1 parent
a8e21a4c
Отзывы
Showing
5 changed files
with
43 additions
and
26 deletions
Show diff stats
frontend/views/blog/_article.php
frontend/views/layouts/main.php
| ... | ... | @@ -304,7 +304,7 @@ _________________________________________________________ --> |
| 304 | 304 | 'url' => [ 'site/price' ], |
| 305 | 305 | ]; |
| 306 | 306 | $items[] = [ |
| 307 | - 'label' => \Yii::t('app', 'Блог'), | |
| 307 | + 'label' => \Yii::t('app', 'Статьи'), | |
| 308 | 308 | 'url' => [ 'blog/index' ], |
| 309 | 309 | ]; |
| 310 | 310 | $items[] = [ | ... | ... |
frontend/views/site/comment/artbox_comment_form.php
frontend/views/site/comments.php
| ... | ... | @@ -10,27 +10,33 @@ |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | +<div id="content" class="feedback-wr"> | |
| 14 | + <div class="container"> | |
| 15 | + <div class="row"> | |
| 16 | + <div class="col-md-12"> | |
| 17 | + <h4 class="text-uppercase title-comment">Отзывы</h4> | |
| 18 | + <?php | |
| 19 | + echo CommentWidget::widget( | |
| 20 | + [ | |
| 21 | + 'model' => $model, | |
| 22 | + 'display_name' => 'name', | |
| 23 | + 'entityIdAttribute' => 'id', | |
| 24 | + 'reply' => true, | |
| 25 | + 'layout' => "{list}<div class='comments-border'></div><h4 class='text-uppercase title-comment'>Оставить отзыв</h4>{form} {reply_form}", | |
| 26 | + 'delete' => false, | |
| 27 | + 'more' => [ | |
| 28 | + 'show_' => true, | |
| 29 | + 'key' => 2, | |
| 30 | + ], | |
| 31 | + 'formView' => '@frontend/views/site/comment/artbox_comment_form', | |
| 32 | + 'listView' => '@frontend/views/site/comment/artbox_comment_list', | |
| 33 | + 'replyView' => '@frontend/views/site/comment/artbox_comment_reply', | |
| 34 | + 'itemView' => '@frontend/views/site/comment/artbox_comment_item', | |
| 35 | + ] | |
| 36 | + ); | |
| 37 | + ?> | |
| 13 | 38 | |
| 14 | -<div> | |
| 15 | - | |
| 16 | - <?php | |
| 17 | - echo CommentWidget::widget( | |
| 18 | - [ | |
| 19 | - 'model' => $model, | |
| 20 | - 'display_name' => 'name', | |
| 21 | - 'entityIdAttribute' => 'id', | |
| 22 | - 'reply' => true, | |
| 23 | - 'delete' => false, | |
| 24 | - 'more' => [ | |
| 25 | - 'show_' => true, | |
| 26 | - 'key' => 2, | |
| 27 | - ], | |
| 28 | - 'formView' => '@frontend/views/site/comment/artbox_comment_form', | |
| 29 | - 'listView' => '@frontend/views/site/comment/artbox_comment_list', | |
| 30 | - 'replyView' => '@frontend/views/site/comment/artbox_comment_reply', | |
| 31 | - 'itemView' => '@frontend/views/site/comment/artbox_comment_item', | |
| 32 | - ] | |
| 33 | - ); | |
| 34 | - ?> | |
| 35 | - | |
| 36 | -</div> | |
| 39 | + </div> | |
| 40 | + </div> | |
| 41 | + </div> | |
| 42 | +</div> | |
| 37 | 43 | \ No newline at end of file | ... | ... |
frontend/web/css/custom.css
| ... | ... | @@ -324,4 +324,15 @@ input[type="text"].form-control{ |
| 324 | 324 | } |
| 325 | 325 | .price-page{ |
| 326 | 326 | margin-bottom: 50px; |
| 327 | +} | |
| 328 | +.artbox_list_container .artbox_list_container{ | |
| 329 | + margin:25px 0px; | |
| 330 | +} | |
| 331 | +.title-comment{ | |
| 332 | + width: 730px; | |
| 333 | + margin-left: auto; | |
| 334 | + margin-right: auto; | |
| 335 | +} | |
| 336 | +.feedback-wr .form-comm-wr{ | |
| 337 | + margin-bottom: 60px; | |
| 327 | 338 | } |
| 328 | 339 | \ No newline at end of file | ... | ... |