getUserMessageModule();
$producerUser = null;
if ($userModule->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); ?>
getRepository()->findUserMessagesUnreadByUser($userCurrent);
if($userMessagesArray && count($userMessagesArray)):
foreach($userMessagesArray as $userMessage): ?>
Nouveau message
= nl2br(Html::encode($userMessage->getMessage())) ?>
Répondre
•
Fermer
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() ?>