params[ 'company' ] = $user;
$this->title = 'My Yii Application';
$rating = $portfolio->getRatingValue();
if(!empty( $portfolio_user )) {
$portfolio_user_gallery = $portfolio->ShowGallery($portfolio_user->gallery->photo);
}
?>
$user->id,
'portfolio_id' => $portfolio->portfolio_id,
]);
}
?>
minImg(ArrayHelper::getValue($portfolio_user_gallery, 0, ''), '720', '280'));
} else {
echo Html::img($portfolio->minImg($portfolio->cover, '720', '280'));
}
?>
= $portfolio->view_count ?>
= ( !empty( $rating ) ? $rating : 'Нет' ) ?>
= count($portfolio->comments) ?>
'rating_portfolio',
'value' => $rating,
'pluginOptions' => [
'displayOnly' => true,
'size' => 'xxs',
'min' => 0,
'max' => 10,
'stars' => 10,
],
]);
?>
= $portfolio->name ?>
gallery ) || !empty( $portfolio->gallery->photo ) )) {
?>
portfolioGallery ) && !empty( $portfolio_user->portfolioGallery->caption )) {
echo Html::tag('div', $portfolio_user->portfolioGallery->caption, [ 'class' => 'new-portfolio-editor' ]);
} else {
echo Html::tag('div', $portfolio->preview, [ 'class' => 'new-portfolio-editor' ]);
if(!empty( $portfolio->description )) {
?>
Развернуть
description )) {
?>
= $portfolio->description ?>
Свернуть
portfolioUsers )) {
?>
$this,
'model' => $portfolio->className(),
'model_id' => $portfolio->portfolio_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',
],
'form_options' => [
'view' => 'form-comment',
'tag' => 'div',
'class' => 'artbox_comment_form',
],
'options' => [
'class' => 'new-portf-comments-wr style',
],
]);
?>