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() ?>
logo) && Image::isPhotoExist($producer->logo); ?>
getTitle())): ?>
= $this->getTitle(); ?>
buttons && count($this->buttons)): ?>
buttons as $button) {
echo '' . $button['label'] . '';
}
?>
session->hasFlash('error')): ?>
= \Yii::$app->session->getFlash('error') ?>
session->hasFlash('success')): ?>
= \Yii::$app->session->getFlash('success') ?>
= $content ?>
mentions) || strlen($producer->gcs)): ?>
endBody() ?>
endPage() ?>