Super theme special halloween
darcs-hash:20071021130008-f46e9-55e1643ab8f7235249b6b94f027d776b1838b2d2.gz
This commit is contained in:
parent
e96905bdeb
commit
c92cf05549
2 changed files with 13 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
Adapted for CR@NS by Nicolas Salles <salles AT crans DOT org>
|
||||
@license: GNU GPL, see COPYING for details.
|
||||
"""
|
||||
|
||||
import datetime
|
||||
from MoinMoin.theme import ThemeBase
|
||||
from MoinMoin import wikiutil, i18n
|
||||
from MoinMoin.Page import Page
|
||||
|
@ -39,9 +39,15 @@ class ThemeCrans(ThemeBase):
|
|||
until the footer. This keeps the HTML cleaner and more accessible,
|
||||
making sure the main content arrives first.
|
||||
"""
|
||||
if datetime.date.today().month == 10:
|
||||
extra_style = " class=\"halloween\""
|
||||
elif (datetime.date.today().month == 12) and (datetime.date.today().day <= 24):
|
||||
extra_style = " class=\"noel\""
|
||||
else:
|
||||
extra_style = ""
|
||||
parent = d['page'].getParentPage()
|
||||
html = [
|
||||
u'<div id="globalWrapper">',
|
||||
u'<div id="globalWrapper"%s>' % extra_style,
|
||||
u'<div id="main-content">',
|
||||
u'<div id="titleBarre">',
|
||||
'<h1 id="title">',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue