aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-10 20:44:04 +0000
committerMario <mario@mariovavti.com>2021-04-10 20:44:04 +0000
commitf0e5ce7fd1dae13cc257a8a860fccbc294530776 (patch)
tree050bac84731085a4c8cbc70ae3c9435448dbf11e /include/account.php
parentea721d380be15d06a9f0974dc98487523fcdfb58 (diff)
downloadvolse-hubzilla-f0e5ce7fd1dae13cc257a8a860fccbc294530776.tar.gz
volse-hubzilla-f0e5ce7fd1dae13cc257a8a860fccbc294530776.tar.bz2
volse-hubzilla-f0e5ce7fd1dae13cc257a8a860fccbc294530776.zip
register: more work on ui/ux
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/account.php b/include/account.php
index f7e2c7e32..939a4344e 100644
--- a/include/account.php
+++ b/include/account.php
@@ -1241,20 +1241,20 @@ function zar_register_dutystate( $now=NULL, $day=NULL ) {
$atform = $isduty ? '' : 'disabled';
$utc_now = datetime_convert(date_default_timezone_get(), 'UTC', $now, 'c');
- $nowfmt = t('Registration is currently')
- . ' (<span data-utc="' . $utc_now . '" class="register_date">' . $utc_now . '</span>) '
- . $dutyis . '.<br>';
-
+ $nowfmt = '';
if (!$isduty) {
+ $nowfmt = t('Registration is currently');
+ $nowfmt .= ' (<span data-utc="' . $utc_now . '" class="register_date">' . $utc_now . '</span>) ';
+ $nowfmt .= $dutyis . ',<br>';
+
$pernext = zarIsDuty($day, $now, 'nextOpen');
$week_days = ['','monday','tuesday','wednesday','thursday','friday','saturday','sunday'];
$utc_next_open = datetime_convert(date_default_timezone_get(), 'UTC', $week_days[$pernext[0]] . ' ' . $pernext[1], 'c');
if (is_array($pernext)) {
- $nowfmt .= t('Next opens') . ' '
- . '<span data-utc="' . $utc_next_open . '" class="register_date">' . $utc_next_open . '</span>.';
-
+ $nowfmt .= t('please come back');
+ $nowfmt .= ' <span data-utc="' . $utc_next_open . '" class="register_date">' . $utc_next_open . '</span>.';
}
}
return array( 'isduty' => $isduty, 'nowfmt' => $nowfmt, 'atform' => $atform);