<?php use yii\easyii\widgets\Photos; $this->title = $model->title; ?> <?php echo $this->render('_menu', ['category' => $model->category]); echo $this->render('_submenu', ['model' => $model]); ?> <?php echo Photos::widget(['model' => $model]);
<?php use yii\easyii\widgets\Photos; $this->title = Yii::t('easyii', 'Photos') . ' ' . $model->title; $moduleSettings = $this->context->module->settings; ?> <?php echo $this->render('_menu', ['category' => $model->category]); echo $this->render('_submenu', ['model' => $model]); ?> <?php echo Photos::widget(['model' => $model, 'maxWidth' => $moduleSettings['photoMaxWidth'], 'thumbWidth' => $moduleSettings['photoThumbWidth'], 'thumbHeight' => $moduleSettings['photoThumbHeight'], 'thumbCrop' => $moduleSettings['photoThumbCrop']]);