X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=plugin%2Ftheme%2Fexodus.py;h=c5406aa4b60f6a805d03f79d9d1351569baec49d;hb=10d80f804d8ae7a9dde2834052a27fb722449d5a;hp=f8d9bb466ea9812af943846146fb0eb1f854ca4d;hpb=de9df7d614654bfc9399dfd3055a03833ab51f48;p=matthijs%2Fprojects%2Fwipi.git diff --git a/plugin/theme/exodus.py b/plugin/theme/exodus.py index f8d9bb4..c5406aa 100644 --- a/plugin/theme/exodus.py +++ b/plugin/theme/exodus.py @@ -1,17 +1,45 @@ -# -*- coding: iso-8859-1 -*- """ - MoinMoin - modern theme + MoinMoin - Exodus website theme. - @copyright: 2003-2005 Nir Soffer, Thomas Waldmann + @copyright: 2009+ Matthijs Kooijman @license: GNU GPL, see COPYING for details. """ from site import SiteTheme +from MoinMoin.theme import ThemeBase class Theme(SiteTheme): name = "exodus" + def html_head(self, d): + html = [ + SiteTheme.html_head(self, d), + #self.theme_script('jquery-1.3.2.min'), + self.theme_script('jquery-1.3.2'), + ] + if d['page'].page_name == 'Site': + html.append(self.theme_script('homepage')) + html.append(self._stylesheet_link(True, 'screen', 'home')) + + return '\n'.join(html) + + def startPage(self, d): + # For the homepage, don't use SiteTheme's changes + if d['page'].page_name == 'Site': + return ThemeBase.startPage(self) + else: + return SiteTheme.startPage(self, d) + + def endPage(self, d): + # For the homepage, don't use SiteTheme's changes, but also don't use + # ThemeBase, since that adds a #pagebottom. + if d['page'].page_name == 'Site': + return u'' + else: + return SiteTheme.endPage(self, d) + + def execute(request): """ Generate and return a theme object @@ -21,3 +49,5 @@ def execute(request): @return: Theme object """ return Theme(request) + +# vim: set sw=4 sts=4 expandtab: