[wiki/theme/crans] modification pour les thèmes temporaires
il faudrait rsoudre les problmes de cache darcs-hash:20100402132731-bd074-733d74ae59e62d5ccc594f90b2975ae48fcc99ac.gz
This commit is contained in:
parent
7606517977
commit
03995c1cd5
1 changed files with 7 additions and 5 deletions
|
@ -60,17 +60,19 @@ class Theme(ThemeBase):
|
||||||
_ = self.request.getText
|
_ = self.request.getText
|
||||||
|
|
||||||
if self.today.month == 10 and self.today.day == 31:
|
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:
|
elif self.today.month == 12 and self.today.day == 24:
|
||||||
extra_style = 'class="noel"'
|
x_class = 'class="noel"'
|
||||||
else: extra_style = ''
|
elif self.today.month == 4 and self.today.day ==1:
|
||||||
|
x_class = 'class="april_fool"'
|
||||||
|
else: x_class = ''
|
||||||
|
|
||||||
html = [
|
html = [
|
||||||
# Custom html above header
|
# Custom html above header
|
||||||
self.emit_custom_html(self.cfg.page_header1),
|
self.emit_custom_html(self.cfg.page_header1),
|
||||||
|
|
||||||
u'<div id="titleBar" %s>' % extra_style,
|
u'<div id="titleBar">',
|
||||||
u'<h1 id="title">', self.title(d), u'</h1>',
|
u'<h1 id="title" %s>' % x_class, self.title(d), u'</h1>',
|
||||||
u'</div>',
|
u'</div>',
|
||||||
self.msg(d),
|
self.msg(d),
|
||||||
self.startPage()
|
self.startPage()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue