Hello,
I tried to find this on support board, but with no success.
On board index, calendar highlights today's events because they are written in bold letters.
Is there a way to do this on SSI calendar output on my homepage, because when I have like 5 events in upcoming 20 days, it would enhance this feature if SSI could somehow show "today's" events in bold or italic...
Sorry for bad English.
in ./SSI.php
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #' . $modSettings['cal_eventcolor'] . ';">' . $txt['calendar4b'] . '</span> ';
foreach ($context['calendar_events'] as $event)
{
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
' . $event['link'] . (!$event['is_last'] ? ', ' : '');
}
}
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #' . $modSettings['cal_eventcolor'] . ';">' . $txt['calendar4b'] . '</span> ';
foreach ($context['calendar_events'] as $event)
{
if ($event['can_edit'])
echo '
<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ';
echo '
', $event['is_today'] ? '<b>': '',' ' . $event['link'] . '', $event['is_today'] ? '</b>':'','', !$event['is_last'] ? ', ' : '' ,'';
}
}
To make it italic,you should change <b> with <i>
TNX. ;)