X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=plugin%2Ftheme%2Fexodus.py;h=498e1f6dbf25868aaf1d1d2f94f1fbb8a5dd7452;hb=60b94304e6f704ae567056a9b8b41a7c2806f84e;hp=5a27ef5023541eccb67d398c0dff6d235ae26868;hpb=dc5446c2a78824316454d2d14102b010bf013f61;p=matthijs%2Fprojects%2Fwipi.git diff --git a/plugin/theme/exodus.py b/plugin/theme/exodus.py index 5a27ef5..498e1f6 100644 --- a/plugin/theme/exodus.py +++ b/plugin/theme/exodus.py @@ -6,6 +6,7 @@ """ from site import SiteTheme +from MoinMoin.theme import ThemeBase class Theme(SiteTheme): @@ -23,6 +24,22 @@ class Theme(SiteTheme): 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