Alex Schroeder
3504c1cb20
rollback to 1.55
2008-04-25 12:54:19 +00:00
Alex Schroeder
d7c50095d4
smarter error report
2008-04-25 12:41:37 +00:00
Alex Schroeder
a1c32f7e1a
(PrintYearCalendar): Remove useless @pages
...
spotted by JuanmaMP.
2008-03-04 08:21:39 +00:00
Alex Schroeder
08f411b65b
(CalendarRule): Move
...
Clean(CloseHtmlEnvironments()) in front of the call to Dirty() so
that the closing p tag belongs to the clean block.
2006-12-14 12:13:14 +00:00
Alex Schroeder
d9f0ea4c34
(Cal): Allow the $id substring anywhere in
...
the pagename, not just right after the date. This also handles
hours and minutes between the date and $id.
2006-10-04 15:12:10 +00:00
Alex Schroeder
b8c88f8610
(Cal): Pass %5e (^) at the beginning of
...
match explicitly.
(DoCollect): No longer automatically assume that match starts with
^ and add handling of search parameter.
2006-06-13 19:31:39 +00:00
Alex Schroeder
bc0f6c4c8c
($CalStartMonday): New option.
...
(draw_month): Use it.
(Cal): Accept a new parameter, id.
(CalendarRule): New pattern, [[month:+n foo bar]], and pass new
parameter to Cal.
2006-05-10 20:04:06 +00:00
Alex Schroeder
1d2592d60a
oddmuse/modules/calendar.pl
2006-04-18 11:39:12 +00:00
Alex Schroeder
fe5dcb8a43
($CalStartMonday): new option, if set to 1 week starts with Mo instead of Su
2006-03-27 04:56:11 +00:00
Alex Schroeder
4f55693040
($CalStartMonday): new option, if set to 1 week starts with Mo instead of Su
2006-03-27 04:54:18 +00:00
Alex Schroeder
243d8a3545
(Cal): Replace \w+ by \S+ because Oddmuse
...
cannot rely on locale information being correct.
2006-03-25 23:07:04 +00:00
Alex Schroeder
5bddf2d610
(Cal): No double translation.
...
(month_name): Translate here instead of in Cal, because this
allows us to extract the English month names and put them into the
translation files.
2006-03-24 15:11:42 +00:00
Alex Schroeder
b0390b2264
output of draw_month is slimmer
2006-03-24 06:44:45 +00:00
Alex Schroeder
99b3f36f53
(Cal): Use default year if no month is
...
given.
(month_name): Don't translate month names here, they are
translated in Cal.
2006-03-22 22:36:13 +00:00
Alex Schroeder
f13a8c3084
($CalendarUseCal): Removed.
...
($CalAsTable): New option.
(Cal, CalendarRule, PrintYearCalendar, draw_month): Rearrange the
printing of divs, use $CalAsTable.
(draw_month): All months have the same number of lines inside
their pre tag.
2006-03-22 08:28:28 +00:00
Alex Schroeder
d9acaa69f6
(CalendarRule): The start div for the
...
calendar is part of the dirty rule and should not be added to the
clean block. (This resulted in a doubling of the div start tag.)
(Cal): Don't allow year 0.
2006-02-12 17:29:23 +00:00
Alex Schroeder
8feafa1eef
(DoYearCalendar): Don't allow year 0.
2006-02-12 14:04:32 +00:00
Alex Schroeder
95ff677c2a
(Cal): Removed limit on years.
...
(draw_month): Handle 1582-10-04.
(zeller): Handle 1582 and years smaller than 1582.
2006-02-11 17:47:41 +00:00
Alex Schroeder
8d53e078a4
(draw_month, month_name): Translate weekdays and month names.
2006-01-21 16:49:26 +00:00
Alex Schroeder
7df879d689
Patch by Ingo Belka to get rid of all dependencies.
...
($CalendarUseCal): Removed.
(Cal): Use draw_month instead of cal or a Perl module.
(draw_month, zeller, leap_year, month_days, month_name): New.
2006-01-21 16:45:56 +00:00
Alex Schroeder
0503dd4f70
Get rid of $DefaultStyleSheet.
2005-10-07 23:23:30 +00:00
Alex Schroeder
6f14cbd32d
Improve $DefaultStyleSheet.
2005-01-06 12:05:15 +00:00
Alex Schroeder
36f48087b4
(CalendarRule): Return new open p tag instead of using Clean.
2005-01-06 12:01:41 +00:00
Alex Schroeder
d0ae8120fe
Improve $DefaultStyleSheet.
2005-01-06 11:56:00 +00:00
Alex Schroeder
3c968bd27e
Updated copyright years.
2005-01-06 11:35:04 +00:00
Alex Schroeder
c6da6f1daa
(CalendarRule): Use Clean instead of print
...
for the p element that opens after the dirty blocks.
2005-01-06 11:23:44 +00:00
Alex Schroeder
f3215a71e8
(DoCollect): Use content class.
...
(CalendarRule): Print calendar in a div.
(PrintYearCalendar): Don't print div here.
(DoYearCalendar): Print div here.
2004-12-20 06:11:29 +00:00
Alex Schroeder
2232b58ed5
(CalendarRule, PrintYearCalendar): Close
...
HTML environments before printing and open new p after printing.
2004-12-19 15:12:59 +00:00
Alex Schroeder
025712f6a5
(NewCalendarGetHeader): Skip monthly
...
calendar on the yearly calendar and on edit pages.
2004-10-12 22:09:12 +00:00
Alex Schroeder
442cb3dfe6
$DefaultStyleSheet improvements.
2004-10-12 21:55:21 +00:00
Alex Schroeder
2da7aa6d26
(NewCalendarGetHeader): Show calendar only
...
for browse action.
2004-10-12 21:28:11 +00:00
Alex Schroeder
724723849f
$DefaultStyleSheet change to hide calendar
...
@media print.
2004-10-12 21:08:25 +00:00
Alex Schroeder
9d6d2cd71e
$DefaultStyleSheet change to hide calendar
...
@media print.
2004-10-12 20:35:05 +00:00
Alex Schroeder
98dfe38fe1
(Cal): Highlight current day in the yearly
...
calendar as well. No longer accept $mday as a parameter.
(PrintYearCalendar): No longer pass $mday parameter.
2004-09-08 23:37:47 +00:00
Alex Schroeder
e18ffc93be
(Cal): Translate weekdays.
2004-09-04 09:41:00 +00:00
Alex Schroeder
73935afa09
$DefaultStyleSheet modified.
2004-09-04 09:28:35 +00:00
Alex Schroeder
d55d03846f
Add to $DefaultStyleSheet.
...
(Cal): Translate month names.
2004-09-04 09:16:50 +00:00
Alex Schroeder
b8997f9032
(Cal): The year can be part of the link for
...
the month, or link to the year calendar.
(PrintYearCalendar): When printing the year calendar, the year
should not link to the same page.
2004-06-29 16:42:09 +00:00
Alex Schroeder
e989d9df87
Fix for wiki.pl 1.419: Important change in handling rules! Rules are
...
expected to return undef when they did not match, and the empty string
if a dirty block was produced.
2004-06-17 01:13:18 +00:00
Alex Schroeder
0aa86e49c1
(PrintYearCalendar): Add div.year.
2004-06-15 19:48:05 +00:00
Alex Schroeder
3bfa9d9a40
(CalendarRule): New rule for month:2004-06.
...
(CalendarRule): New rule for month:+1 or month:-1.
2004-06-15 19:40:18 +00:00
Alex Schroeder
8fe966d713
(Cal): Bugfix.
2004-06-15 19:11:09 +00:00
Alex Schroeder
a6221ea0ce
(Cal): Bugfix.
2004-06-15 19:08:45 +00:00
Alex Schroeder
21de7dfb46
(Cal): The year now links to an overview of the entire year.
2004-06-15 18:53:28 +00:00
Alex Schroeder
645a81f74b
(Cal): Accept year and month as parameters.
...
Link month names.
(PrintYearCalendar): Use Cal instead of near-duplication of code.
(DoYearCalendar): New action 'calendar' used to print yearly
calendar.
2004-06-15 18:46:49 +00:00
Alex Schroeder
12bb1f2c17
(Cal): Support for Date::Calc and Date::Pcalc.
...
($CalendarUseCal): New option.
2004-06-15 14:15:02 +00:00
Alex Schroeder
44bcf0fe8a
(CalendarRule): The CalendarRule is a dirty
...
rule.
(PrintYearCalendar): Handle spacing differently, provide an
additional span for CSS.
2004-06-02 22:24:19 +00:00
Alex Schroeder
d37849834c
(Cal): Switch from gmtime to localtime.
2004-04-02 01:15:28 +00:00
Alex Schroeder
e0399c518c
(PrintYearCalendar): Add div.year class.
...
(Cal): Add div.month class.
2004-03-28 19:52:00 +00:00
Alex Schroeder
9e429f0e1a
(Cal): fix classes
2004-03-28 18:30:41 +00:00