summaryrefslogtreecommitdiff
path: root/app/Http/RequestHandlers/CalendarEvents.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-06-02 09:51:53 +0100
committerGreg Roach <greg@subaqua.co.uk>2025-06-02 09:51:53 +0100
commit2a0f679a2bc9c33215bfe3f15a3fd2d3304e4a7f (patch)
treeca06921a59e6abb442d09942ff2e5bbe0fb32c75 /app/Http/RequestHandlers/CalendarEvents.php
parente6a6291e60d750747eeaff9caff810ef820491bf (diff)
downloadwebtrees-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.php9
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>';