|
@@ 334-340 (lines=7) @@
|
| 331 |
|
$classes[] = !empty($day['is_today']) ? 'calendar_today' : 'windowbg'; |
| 332 |
|
|
| 333 |
|
// Additional classes are given for events, holidays, and birthdays. |
| 334 |
|
if (!empty($day['events']) && !empty($calendar_data['highlight']['events'])) |
| 335 |
|
{ |
| 336 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['events'], array(1, 3))) |
| 337 |
|
$classes[] = 'events'; |
| 338 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['events'], array(2, 3))) |
| 339 |
|
$classes[] = 'events'; |
| 340 |
|
} |
| 341 |
|
if (!empty($day['holidays']) && !empty($calendar_data['highlight']['holidays'])) |
| 342 |
|
{ |
| 343 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['holidays'], array(1, 3))) |
|
@@ 341-347 (lines=7) @@
|
| 338 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['events'], array(2, 3))) |
| 339 |
|
$classes[] = 'events'; |
| 340 |
|
} |
| 341 |
|
if (!empty($day['holidays']) && !empty($calendar_data['highlight']['holidays'])) |
| 342 |
|
{ |
| 343 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['holidays'], array(1, 3))) |
| 344 |
|
$classes[] = 'holidays'; |
| 345 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['holidays'], array(2, 3))) |
| 346 |
|
$classes[] = 'holidays'; |
| 347 |
|
} |
| 348 |
|
if (!empty($day['birthdays']) && !empty($calendar_data['highlight']['birthdays'])) |
| 349 |
|
{ |
| 350 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['birthdays'], array(1, 3))) |
|
@@ 348-354 (lines=7) @@
|
| 345 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['holidays'], array(2, 3))) |
| 346 |
|
$classes[] = 'holidays'; |
| 347 |
|
} |
| 348 |
|
if (!empty($day['birthdays']) && !empty($calendar_data['highlight']['birthdays'])) |
| 349 |
|
{ |
| 350 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['birthdays'], array(1, 3))) |
| 351 |
|
$classes[] = 'birthdays'; |
| 352 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['birthdays'], array(2, 3))) |
| 353 |
|
$classes[] = 'birthdays'; |
| 354 |
|
} |
| 355 |
|
} |
| 356 |
|
else |
| 357 |
|
{ |