__section__ default __description__ Print older stories for older stories box * stories = arrayref of story hashrefs * section = section data structure * yesterday = the value to put in the "yesterday's edition" link * start = where to start counting from in search.pl return values Each story has the keys sid, section, title, time, commentcount, day (w, m, d, h, min, ampm), and link (which is a linkStory() value) XXX This is hacked up pretty badly to work with the fake section "index". We really need to decide what the status of "index" is. __title__ __page__ misc __lang__ en_US __name__ getOlderStories __template__ [% today = ''; FOREACH story = stories; IF today != "$story.w $story.m $story.d"; today = "$story.w $story.m $story.d"; IF !section or section.section == 'index' %]
[% story.w %] [% story.m %] [% story.d %]
[% ELSIF section.issue && section.issue > 1 %][% story.w %] [% story.m %] [% story.d %]
[% ELSE %][% story.w %] [% story.m %] [% story.d %]
[% END; END %]Older Articles
Yesterday's Edition
[% ELSIF section.issue %]
[% IF section.issue == 1 || section.issue == 3 %]
Older Articles
[% END %][% IF section.issue == 2 || section.issue == 3 %]
Yesterday's Edition
[% END %]
[% END %]
__seclev__
10000