Kalender: Monat in jeder Tagesüberschrift anzeigen
This commit is contained in:
parent
9d34dd9bda
commit
9425b1dcf1
3 changed files with 21 additions and 6 deletions
|
|
@ -97,8 +97,11 @@ $minWidth = match ($view) {
|
|||
<div class="cal-head__day<?= $day['is_today'] ? ' is-today' : '' ?><?= $day['is_weekend'] ? ' is-weekend' : '' ?>">
|
||||
<span class="cal-head__weekday"><?= e($day['weekday']) ?></span>
|
||||
<span class="cal-head__num"><?= (int) $day['day'] ?></span>
|
||||
<?php if ($view === 'day' || ($view === 'month' && $day['is_first_of_month']) || ($view === 'week' && $day['is_first_of_month'])): ?>
|
||||
<span class="cal-head__month"><?= e(fmt_month($day['iso'])) ?></span>
|
||||
<?php // Monat in jeder Tagesüberschrift, damit er auch in der Handy-Ansicht
|
||||
// ohne das große Monats-Label erkennbar bleibt. ?>
|
||||
<span class="cal-head__month<?= $day['is_first_of_month'] ? ' is-month-start' : '' ?>"><?= e($view === 'day' ? fmt_month($day['iso']) : fmt_month_short($day['iso'])) ?></span>
|
||||
<?php if ($view !== 'day' && $day['is_first_of_month']): ?>
|
||||
<span class="cal-head__year"><?= e(date_obj($day['iso'])->format('Y')) ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue