Skip to content

Commit

Permalink
chore: show notification schedule text as subtext
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Jun 20, 2024
1 parent eec3f08 commit 34cc25d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/default/forms/event_manager/event/tabs/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@

if (!empty($notification_sent_ts)) {
// notification already sent
echo elgg_echo('event_manager:edit:form:announcement_period:sent', [Values::normalizeTime($notification_sent_ts)->formatLocale(elgg_echo('friendlytime:date_format:short'))]);
echo elgg_format_element('div', ['class' => 'elgg-subtext'], elgg_echo('event_manager:edit:form:announcement_period:sent', [Values::normalizeTime($notification_sent_ts)->formatLocale(elgg_echo('friendlytime:date_format:short'))]));

return;
}

if (!empty($notification_queued_ts) && $notification_queued_ts <= time()) {
// notification scheduled in the passed
echo elgg_echo('event_manager:edit:form:announcement_period:scheduled', [Values::normalizeTime($notification_queued_ts)->formatLocale(elgg_echo('friendlytime:date_format:short'))]);
// notification scheduled in the past
echo elgg_format_element('div', ['class' => 'elgg-subtext'], elgg_echo('event_manager:edit:form:announcement_period:scheduled', [Values::normalizeTime($notification_queued_ts)->formatLocale(elgg_echo('friendlytime:date_format:short'))]));

return;
}
Expand All @@ -88,5 +88,5 @@

if (!empty($notification_queued_ts)) {
// notification scheduled in the future
echo elgg_echo('event_manager:edit:form:announcement_period:scheduled', [Values::normalizeTime($notification_queued_ts)->formatLocale(elgg_echo('friendlytime:date_format:short'))]);
echo elgg_format_element('div', ['class' => 'elgg-subtext'], elgg_echo('event_manager:edit:form:announcement_period:scheduled', [Values::normalizeTime($notification_queued_ts)->formatLocale(elgg_echo('friendlytime:date_format:short'))]));
}

0 comments on commit 34cc25d

Please sign in to comment.