diff --git a/wiki/static/crans/css/crans.css b/wiki/static/crans/css/crans.css index 4ce81fd8..ee9584ba 100644 --- a/wiki/static/crans/css/crans.css +++ b/wiki/static/crans/css/crans.css @@ -34,8 +34,13 @@ div#titleBarre { border-bottom: thin solid #f9821d;//orange; background: #f9821d url(../img/BarreOrange.png) repeat-x; } + /* on change la couleur des soulignements de titres pour aller avec la barre */ h1, h2, h3, h4, h5, h6 {border-color: #f9821d} div#titleBarre *, div#titleBarre h1#title a { color: white; } h1#title { background: url(../img/BarreLogo.png) no-repeat right top;} +/* variantes */ +.halloween h1#title { + background-image: url(../img/barreLogoHalloween.png); +} diff --git a/wiki/theme/crans.py b/wiki/theme/crans.py index 100da812..af758c2e 100644 --- a/wiki/theme/crans.py +++ b/wiki/theme/crans.py @@ -7,7 +7,7 @@ Adapted for CR@NS by Nicolas Salles @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'
', + u'
' % extra_style, u'
', u'
', '

',