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); ?>
getSolver()->getConfig('option_leave_period_message_display', $producer);
$leavePeriodMessageTitle = $producerModule->getSolver()->getConfig('option_leave_period_message_title', $producer);
$leavePeriodMessage = $producerModule->getSolver()->getConfig('option_leave_period_message', $producer);
if($leavePeriodMessageDisplay && ($leavePeriodMessageTitle || $leavePeriodMessage)): ?>
= $leavePeriodMessageTitle ?>
= nl2br(Html::encode($leavePeriodMessage)) ?>
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() ?>