|
@@ 355-361 (lines=7) @@
|
| 352 |
|
$classes[] = !empty($day['is_today']) ? 'calendar_today' : 'windowbg'; |
| 353 |
|
|
| 354 |
|
// Additional classes are given for events, holidays, and birthdays. |
| 355 |
|
if (!empty($day['events']) && !empty($calendar_data['highlight']['events'])) |
| 356 |
|
{ |
| 357 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['events'], array(1, 3))) |
| 358 |
|
$classes[] = 'events'; |
| 359 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['events'], array(2, 3))) |
| 360 |
|
$classes[] = 'events'; |
| 361 |
|
} |
| 362 |
|
if (!empty($day['holidays']) && !empty($calendar_data['highlight']['holidays'])) |
| 363 |
|
{ |
| 364 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['holidays'], array(1, 3))) |
|
@@ 362-368 (lines=7) @@
|
| 359 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['events'], array(2, 3))) |
| 360 |
|
$classes[] = 'events'; |
| 361 |
|
} |
| 362 |
|
if (!empty($day['holidays']) && !empty($calendar_data['highlight']['holidays'])) |
| 363 |
|
{ |
| 364 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['holidays'], array(1, 3))) |
| 365 |
|
$classes[] = 'holidays'; |
| 366 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['holidays'], array(2, 3))) |
| 367 |
|
$classes[] = 'holidays'; |
| 368 |
|
} |
| 369 |
|
if (!empty($day['birthdays']) && !empty($calendar_data['highlight']['birthdays'])) |
| 370 |
|
{ |
| 371 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['birthdays'], array(1, 3))) |
|
@@ 369-375 (lines=7) @@
|
| 366 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['holidays'], array(2, 3))) |
| 367 |
|
$classes[] = 'holidays'; |
| 368 |
|
} |
| 369 |
|
if (!empty($day['birthdays']) && !empty($calendar_data['highlight']['birthdays'])) |
| 370 |
|
{ |
| 371 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['birthdays'], array(1, 3))) |
| 372 |
|
$classes[] = 'birthdays'; |
| 373 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['birthdays'], array(2, 3))) |
| 374 |
|
$classes[] = 'birthdays'; |
| 375 |
|
} |
| 376 |
|
} |
| 377 |
|
else |
| 378 |
|
{ |