deadfoxjunction: Add theme.
[matthijs/projects/wipi.git] / plugin / theme / deadfoxjunction.py
diff --git a/plugin/theme/deadfoxjunction.py b/plugin/theme/deadfoxjunction.py
new file mode 100644 (file)
index 0000000..13929c7
--- /dev/null
@@ -0,0 +1,24 @@
+"""
+    MoinMoin - Dead fox junction website theme.
+
+    @copyright: 2010+ Matthijs Kooijman
+    @license: GNU GPL, see COPYING for details.
+"""
+
+from site import SiteTheme
+
+class Theme(SiteTheme):
+    name = "deadfoxjunction"
+
+    # Add an extra #window div that will be visible content area, framed
+    # by a wooden "window". We can't just use #content here, since
+    # #messages is besides #content in editing mode.
+    def startPage(self, d):
+       html = SiteTheme.startPage(self, d)
+       html += u'<div id="window">\n'
+       return html
+
+    def endPage(self, d):
+       html = SiteTheme.endPage(self, d)
+       html += u'</div><!-- #window -->\n'
+       return html