From cf8b518aa3e9d8e1460306b595b05dc973e0b1e6 Mon Sep 17 00:00:00 2001 From: azett Date: Sun, 14 Aug 2022 14:44:29 +0200 Subject: [PATCH] Calendar plugin has previous/next buttons, see #128 - but still does not highlight proper days in previous months :/ --- fp-plugins/calendar/plugin.calendar.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fp-plugins/calendar/plugin.calendar.php b/fp-plugins/calendar/plugin.calendar.php index 9f38d2d..d00256a 100755 --- a/fp-plugins/calendar/plugin.calendar.php +++ b/fp-plugins/calendar/plugin.calendar.php @@ -31,8 +31,9 @@ function generate_calendar($year, $month, $days = array(), $day_name_length = 3, // Begin calendar. Uses a real . See http://diveintomark.org/archives/2002/07/03 // PHP7 compatibility: Since $pn is never passed, we do not need to create "previous" and "next" elements. - $p = ''; - $n = ''; + + $p = '« '; + $n = ' »'; // Commented out to prevent deprecated each() function from being executed. // @list($p, $pl) = each($pn); @list($n, $nl) = each($pn); #previous and next links, if applicable // if($p) $p = ''.($pl ? ''.$p.'' : $p).' ';