diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2025-06-02 09:51:53 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2025-06-02 09:51:53 +0100 |
| commit | 2a0f679a2bc9c33215bfe3f15a3fd2d3304e4a7f (patch) | |
| tree | ca06921a59e6abb442d09942ff2e5bbe0fb32c75 /app/Http/RequestHandlers/CalendarEvents.php | |
| parent | e6a6291e60d750747eeaff9caff810ef820491bf (diff) | |
| download | webtrees-2a0f679a2bc9c33215bfe3f15a3fd2d3304e4a7f.tar.gz webtrees-2a0f679a2bc9c33215bfe3f15a3fd2d3304e4a7f.tar.bz2 webtrees-2a0f679a2bc9c33215bfe3f15a3fd2d3304e4a7f.zip | |
Replace CSS class current_day with wt-calendar-today
Diffstat (limited to 'app/Http/RequestHandlers/CalendarEvents.php')
| -rw-r--r-- | app/Http/RequestHandlers/CalendarEvents.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/Http/RequestHandlers/CalendarEvents.php b/app/Http/RequestHandlers/CalendarEvents.php index 6407ee1e9d..40b9ac3620 100644 --- a/app/Http/RequestHandlers/CalendarEvents.php +++ b/app/Http/RequestHandlers/CalendarEvents.php @@ -198,7 +198,14 @@ class CalendarEvents implements RequestHandlerInterface if (($d + $cal_date->minimumJulianDay() - $week_start) % $days_in_week === 1) { echo '<tr>'; } - echo '<td class="wt-page-options-value">'; + + if ($d === $today->day && $cal_date->month === $today->month) { + $today_class = 'wt-calendar-today'; + } else { + $today_class = ''; + } + + echo '<td class="wt-page-options-value ' . $today_class . '">'; if ($d < 1 || $d > $days_in_month) { if (count($cal_facts[0]) > 0) { echo '<div class="cal_day">', I18N::translate('Day not set'), '</div>'; |
