This small hack tio the calendar code will show the Entry Title on mouseover on the Calendar.
Version 0.7.1
Module: serendipity_functions.inc.php
Function: serendipity_drawCalendar
1. change SQL at line 421 to
$querystring = "SELECT timestamp,title
FROM {$serendipity['dbPrefix']}entries e
2. change code at line 430 to include $activeTitle
foreach ($rows as $row) {
$activeKey = date('j', $row['timestamp']); // Mod. TRS 05/02/15
//$activeDays[date('j', $row['timestamp'])] = $row['timestamp'];
$activeDays[$activeKey] = $row['timestamp'];
$activeTitle[$activeKey] = $row['title'];
}
3. Change output code at +/- 525 to :
if (isset($activeDays[$currDay]) && $activeDays[$currDay] > 1) {
$printDay = '<a href="' . serendipity_archiveDateUrl(sprintf('%4d%02d%02d', $year, $month, $currDay)) . $base_query . '"'
. ' title="' . $activeTitle[$currDay] . '" >'. $printDay . '</a>';
}
Great product - hope this small change helps.
Small hack for calendar
Small hack for calendar
Linux is like a Tepee - No Gates - No Windows - Apache Inside!