32d31 < #use POSIX; # req'd for ceil() and floor() 40c39 < $thisYear $thisMonth $thisQtr --- > $thisDay $thisYear $thisMonth $thisQtr 42c41 < $wikiUserName --- > $wikiUserName $userHref 72a72 > $thisDay = $now[3]; 112,144c112,116 < if ($_[0] eq 'week') { < # make a "week" style anchor < return ' ' . < # anchor: < $_[1] . < '.' . < sprintf("%02d", $_[2]) . < ''; < } < else { < # make a "day" style anchor < return '' . < # anchor: < $_[3] . < ''; < } --- > my $anchor = qq~ $anchor .= ($_[0] eq 'week') && ( qq~">$_[1].~ . sprintf("%02d", $_[2]) ) > || ( sprintf("%02d", $_[3]) . qq~">$_[3]~ ); > $anchor .= ''; > return $anchor; 201a174 > if ($y % 400 != 0) { return 28; } # shouldn't this test come before the century test? 203d175 < if ($y % 400 != 0) { return 28; } 289a262,269 > $out .= <<__STYLE__; > > __STYLE__ > 294a275,276 > $userHref = scalar &TWiki::extractNameValuePair( $arg1, "href" ) || ( '../Main/' . $wikiUserName ); > 347c329 < $out .= "
| ' . < generateAnchor('week', < $displayYear, < $weekInYear); < " | \n"; --- > $out .= '||
| ' . generateAnchor('week', $displayYear, $weekInYear) . " | \n"; 370,376c348,349 < $out .= '' . < generateAnchor('day', < $displayYear, < $displayMonth, < $date < ) . < " | \n"; --- > my $day_class = ( $thisYear==$displayYear && $thisMonth==$displayMonth && $thisDay==$date && 'today' ) || 'day'; > $out .= qq{} . generateAnchor('day', $displayYear, $displayMonth, $date ) . " | \n";