From f295c85bab00fd895b5c1ba4edec1db638ba9fce Mon Sep 17 00:00:00 2001 From: Yarik Date: Mon, 25 Apr 2016 16:32:21 +0300 Subject: [PATCH] test --- common/modules/comment/widgets/views/_question_comment_view.php | 82 ++++++++++++++++++++++++++++++++++++++++++---------------------------------------- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/common/modules/comment/widgets/views/_question_comment_view.php b/common/modules/comment/widgets/views/_question_comment_view.php index aa15495..282bb26 100644 --- a/common/modules/comment/widgets/views/_question_comment_view.php +++ b/common/modules/comment/widgets/views/_question_comment_view.php @@ -21,49 +21,51 @@ ]); } ?> -
- getAuthor(' (Гость)') ?> -
-
user)?$model->user->userInfo->image:'/images/avatar-bg.png')?>
- -
Pro
- -
formatter->asDate($model->date_add, 'php:d.m.Y') ?>
-
- text ?> -
-child )) { - echo Html::tag('div', $this->render('@common/modules/comment/widgets/views/_question_comment_view', [ - 'model' => $model->child, - 'key' => $key, - 'index' => $index, - 'widget' => $widget, - ]), [ - 'class' => CommentWidget::$baseClass[ 'comment_container' ], - 'data' => [ - 'key' => $model->child->comment_id, - 'form' => $model->formName(), - ], - ]); - } -?> -
+
+
+ getAuthor(' (Гость)') ?> +
+
user ) ? $model->user->minImg($model->user->userInfo->image, 48, 48) : '/images/avatar-bg.png') ?>
buttons[ 'delete' ] )) { - echo Html::a(( $model->user_id != NULL && $model->user_id == \Yii::$app->user->id ) ? 'Удалить' : 'Пожаловаться ', $model->buttons[ 'delete' ], [ 'class' => 'artbox_comment_delete_answer' ]); - } - if(!empty( $model->buttons[ 'update' ] )) { - echo Html::a('Редактировать', $model->buttons[ 'update' ], [ 'class' => 'artbox_comment_update_answer' ]); - } - if(!empty( $model->buttons[ 'reply' ] )) { - echo Html::a('Ответить', $model->buttons[ 'reply' ], [ 'class' => CommentWidget::$baseClass[ 'comment_reply' ].' artbox_comment_reply_answer' ]); + /* == STATUS PRO == + ?> +
Pro
+ +
formatter->asDate($model->date_add, 'php:d.m.Y') ?>
+
+ text ?> +
+ child )) { + echo Html::tag('div', $this->render('@common/modules/comment/widgets/views/_question_comment_view', [ + 'model' => $model->child, + 'key' => $key, + 'index' => $index, + 'widget' => $widget, + ]), [ + 'class' => CommentWidget::$baseClass[ 'comment_container' ], + 'data' => [ + 'key' => $model->child->comment_id, + 'form' => $model->formName(), + ], + ]); } ?> +
+ buttons[ 'delete' ] )) { + echo Html::a(( $model->user_id != NULL && $model->user_id == \Yii::$app->user->id ) ? 'Удалить' : 'Пожаловаться ', $model->buttons[ 'delete' ], [ 'class' => 'artbox_comment_delete_answer' ]); + } + if(!empty( $model->buttons[ 'update' ] )) { + echo Html::a('Редактировать', $model->buttons[ 'update' ], [ 'class' => 'artbox_comment_update_answer' ]); + } + if(!empty( $model->buttons[ 'reply' ] )) { + echo Html::a('Ответить', $model->buttons[ 'reply' ], [ 'class' => CommentWidget::$baseClass[ 'comment_reply' ] . ' artbox_comment_reply_answer' ]); + } + ?> +