diff --git a/wiki/theme/crans.py b/wiki/theme/crans.py index 5a73cb60..a0908c88 100755 --- a/wiki/theme/crans.py +++ b/wiki/theme/crans.py @@ -60,17 +60,19 @@ class Theme(ThemeBase): _ = self.request.getText if self.today.month == 10 and self.today.day == 31: - extra_style = 'class="halloween"' + x_class = 'class="halloween"' elif self.today.month == 12 and self.today.day == 24: - extra_style = 'class="noel"' - else: extra_style = '' + x_class = 'class="noel"' + elif self.today.month == 4 and self.today.day ==1: + x_class = 'class="april_fool"' + else: x_class = '' html = [ # Custom html above header self.emit_custom_html(self.cfg.page_header1), - u'
' % extra_style, - u'

', self.title(d), u'

', + u'
', + u'

' % x_class, self.title(d), u'

', u'
', self.msg(d), self.startPage()