user;
if(empty( $model->comment_pid )) {
$model->buildButtons([
'reply',
'delete',
]);
}
?>
=Html::img(!empty($model->user)?$model->user->userInfo->image:'/images/avatar-bg.png')?>
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' ]);
}
?>