diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index e2d47b86..6c8ce7cd 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -4,6 +4,7 @@ Changelog
1.5.2 (Unreleased)
------------------
- Enh #405: Improve UI of create/edit form on mobile
+- Fix #404: Invite notification - Empty block
1.5.1 (July 16, 2023)
----------------------
diff --git a/widgets/mails/views/eventInfoHtml.php b/widgets/mails/views/eventInfoHtml.php
index 1ae4b87c..bd2047c2 100644
--- a/widgets/mails/views/eventInfoHtml.php
+++ b/widgets/mails/views/eventInfoHtml.php
@@ -7,59 +7,59 @@
use humhub\libs\Html;
use humhub\modules\calendar\interfaces\event\CalendarEventIF;
-use humhub\modules\calendar\interfaces\participation\CalendarEventParticipationIF;use humhub\modules\calendar\models\CalendarDateFormatter;
+use humhub\modules\calendar\interfaces\participation\CalendarEventParticipationIF;
+use humhub\modules\calendar\models\CalendarDateFormatter;
use humhub\modules\content\widgets\richtext\converter\RichTextToEmailHtmlConverter;
use humhub\widgets\mails\MailButton;
use humhub\widgets\mails\MailButtonList;
/* @var $event CalendarEventIF */
/* @var $url string */
-/* @var $extraInfo string*/
+/* @var $extraInfo string */
-if(!isset($url)) {
+if (!isset($url)) {
$url = $event->getUrl();
}
$formatter = new CalendarDateFormatter(['calendarItem' => $event]);
-
?>
-
+ |
- getTitle())) :?>
- = Html::encode($event->getTitle())?>
+ getTitle())): ?>
+ = Html::encode($event->getTitle()) ?>
- getStartDateTime())) : ?>
+ getStartDateTime())): ?>
= Yii::t('CalendarModule.mail', 'Starting {date}', [
'date' => $formatter->getFormattedTime()
]) ?>
-
- getOrganizer()) : ?>
+
+ getOrganizer()) : ?>
= Yii::t('CalendarModule.mail', 'Organized by {userName}', ['userName' => Html::encode($event->getOrganizer()->displayName)]) ?>
- getLocation())) : ?>
- = Yii::t('CalendarModule.mail', 'Location:') ?> = Html::encode($event->getLocation())?>
+ getLocation())): ?>
+ = Yii::t('CalendarModule.mail', 'Location:') ?> = Html::encode($event->getLocation()) ?>
- getDescription())) : ?>
+ getDescription())): ?>
= RichTextToEmailHtmlConverter::process($event->getDescription()) ?>
-
+
= Yii::t('CalendarModule.mail', 'Additional information:'); ?>
= RichTextToEmailHtmlConverter::process($extraInfo) ?>
-
|
diff --git a/widgets/mails/views/eventInfoText.php b/widgets/mails/views/eventInfoText.php
index c8d1127e..97514ab0 100644
--- a/widgets/mails/views/eventInfoText.php
+++ b/widgets/mails/views/eventInfoText.php
@@ -7,53 +7,47 @@
use humhub\libs\Html;
use humhub\modules\calendar\interfaces\event\CalendarEventIF;
-use humhub\modules\calendar\interfaces\participation\CalendarEventParticipationIF;use humhub\modules\calendar\models\CalendarDateFormatter;
+use humhub\modules\calendar\interfaces\participation\CalendarEventParticipationIF;
+use humhub\modules\calendar\models\CalendarDateFormatter;
use humhub\modules\content\widgets\richtext\RichText;
use humhub\widgets\mails\MailButton;
use humhub\widgets\mails\MailButtonList;
/* @var $event CalendarEventIF */
/* @var $url string */
-/* @var $extraInfo string*/
+/* @var $extraInfo string */
-if(!isset($url)) {
+if (!isset($url)) {
$url = $event->getUrl();
}
$formatter = new CalendarDateFormatter(['calendarItem' => $event])
-
?>
= $event->getTitle() ?>
-
-getStartDateTime())) : ?>
-= strip_tags(Yii::t('CalendarModule.mail', '
Starting {date}', [
- 'date' => $formatter->getFormattedTime()
-])) ?>
+getStartDateTime())): ?>
+ = strip_tags(Yii::t('CalendarModule.mail', '
Starting {date}', [
+ 'date' => $formatter->getFormattedTime()
+ ])) ?>
-
-getOrganizer()) : ?>
-
-
-= Yii::t('CalendarModule.mail', 'Organized by {userName}', ['userName' => $event->getOrganizer()->displayName]) ?>
+
+ getOrganizer()): ?>
+ = Yii::t('CalendarModule.mail', 'Organized by {userName}', ['userName' => Html::encode($event->getOrganizer()->displayName)]) ?>
+
-
-getLocation())) : ?>
-
-= Yii::t('CalendarModule.mail', 'Location:') ?> = $event->getLocation() ?>
+getLocation())): ?>
+ = Yii::t('CalendarModule.mail', 'Location:') ?> = Html::encode($event->getLocation()) ?>
-getDescription())) : ?>
-
-= RichText::preview($event->getDescription()) ?>
+getDescription())): ?>
+ = RichText::preview($event->getDescription()) ?>
-
-= Yii::t('CalendarModule.mail', 'Additional information:'); ?>
-
-= RichText::preview($extraInfo) ?>
+
+ = Yii::t('CalendarModule.mail', 'Additional information:'); ?>
+ = RichText::preview($extraInfo) ?>
= Yii::t('CalendarModule.mail', 'View Online: {url}', ['url' => $url]); ?>