getAuthorizationChecker()->isGrantedAsProducer($userCurrent)) { $producerUser = $producerModule->findOneProducerById($userCurrent->id_producer); } $producer = $this->context->getProducerCurrent(); if (!Yii::$app->user->isGuest) { $userProducer = UserProducer::findOne(['id_user' => GlobalParam::getCurrentUserId(), 'id_producer' => $producer->id]); } $mainColor = $producer->option_main_color ?: '#ee6f42' ; ?> beginPage() ?> <?= Html::encode($producer->name); ?> | <?= $this->getPageTitle(); ?> head() ?> render('@common/views/matomo.php') ?> beginBody() ?> render('@common/views/nav_user_top', [ 'context' => 'producer' ]); ?>
logo) && Image::isPhotoExist($producer->logo); ?>
getTitle())): ?>

getTitle(); ?> buttons && count($this->buttons)): ?> buttons as $button) { echo '' . $button['label'] . ''; } ?>

session->hasFlash('error')): ?> session->hasFlash('success')): ?>
mentions) || strlen($producer->gcs)): ?>
endBody() ?> endPage() ?>