params[ 'user' ] = $user;
$this->title = 'My Yii Application';
$rating = $portfolio->getRatingValue();
?>
minImg($portfolio->cover, '720', '280'))
?>
= $portfolio->view_count ?>
= ( !empty( $rating ) ? $rating : 'Нет' ) ?>
= count($portfolio->comments) ?>
'rating_portfolio',
'value' => $portfolio->getRatingValue(),
'pluginOptions' => [
'displayOnly' => true,
'size' => 'xxs',
],
]);
?>
= $portfolio->name ?>
gallery ) || !empty( $portfolio->gallery->photo )) {
$gallery = explode(',', $portfolio->gallery->photo);
array_pop($gallery);
?>
= $portfolio->preview ?>
description )) {
?>
Развернуть
description )) {
?>
= $portfolio->description ?>
Свернуть
$this,
'model' => $portfolio::className(),
'model_id' => $portfolio->portfolio_id,
'comment_class' => \common\modules\comment\models\Comment::className(),
'rating_class' => ( \Yii::$app->user->id ? \common\modules\comment\models\Rating::className() : false ),
'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',
],
'form_options' => [
'view' => 'form-comment',
'tag' => 'div',
'class' => 'artbox_comment_form',
],
'options' => [
'class' => 'new-portf-comments-wr style',
],
]);
?>