Add jquery for the exodus site and special CSS for the homepage.
authorMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Wed, 24 Jun 2009 16:44:11 +0000 (18:44 +0200)
committerMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Wed, 24 Jun 2009 16:44:11 +0000 (18:44 +0200)
plugin/theme/exodus.py

index f8d9bb466ea9812af943846146fb0eb1f854ca4d..12354e201fa5a188e3eee9760452fd84423eff05 100644 (file)
@@ -1,4 +1,3 @@
-# -*- coding: iso-8859-1 -*-
 """
     MoinMoin - modern theme
 
@@ -12,6 +11,17 @@ 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'))
+
+        return '\n'.join(html)
+
 def execute(request):
     """
     Generate and return a theme object