|
@@ 173-179 (lines=7) @@
|
| 170 |
|
$classes[] = !empty($day['is_today']) ? 'calendar_today' : 'windowbg'; |
| 171 |
|
|
| 172 |
|
// Additional classes are given for events, holidays, and birthdays. |
| 173 |
|
if (!empty($day['events']) && !empty($calendar_data['highlight']['events'])) |
| 174 |
|
{ |
| 175 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['events'], array(1,3))) |
| 176 |
|
$classes[] = 'events'; |
| 177 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['events'], array(2,3))) |
| 178 |
|
$classes[] = 'events'; |
| 179 |
|
} |
| 180 |
|
if (!empty($day['holidays']) && !empty($calendar_data['highlight']['holidays'])) |
| 181 |
|
{ |
| 182 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['holidays'], array(1,3))) |
|
@@ 180-186 (lines=7) @@
|
| 177 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['events'], array(2,3))) |
| 178 |
|
$classes[] = 'events'; |
| 179 |
|
} |
| 180 |
|
if (!empty($day['holidays']) && !empty($calendar_data['highlight']['holidays'])) |
| 181 |
|
{ |
| 182 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['holidays'], array(1,3))) |
| 183 |
|
$classes[] = 'holidays'; |
| 184 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['holidays'], array(2,3))) |
| 185 |
|
$classes[] = 'holidays'; |
| 186 |
|
} |
| 187 |
|
if (!empty($day['birthdays']) && !empty($calendar_data['highlight']['birthdays'])) |
| 188 |
|
{ |
| 189 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['birthdays'], array(1,3))) |
|
@@ 187-193 (lines=7) @@
|
| 184 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['holidays'], array(2,3))) |
| 185 |
|
$classes[] = 'holidays'; |
| 186 |
|
} |
| 187 |
|
if (!empty($day['birthdays']) && !empty($calendar_data['highlight']['birthdays'])) |
| 188 |
|
{ |
| 189 |
|
if ($is_mini === true && in_array($calendar_data['highlight']['birthdays'], array(1,3))) |
| 190 |
|
$classes[] = 'birthdays'; |
| 191 |
|
elseif ($is_mini === false && in_array($calendar_data['highlight']['birthdays'], array(2,3))) |
| 192 |
|
$classes[] = 'birthdays'; |
| 193 |
|
} |
| 194 |
|
} |
| 195 |
|
else |
| 196 |
|
// Default Classes (either compact or comfortable and disabled). |