+ def menu(self, d):
+ """ Assemble a "main" menu
+
+ @param d: parameter dictionary
+ @rtype: unicode
+ @return: menu html
+ """
+ items = Page(self.request, 'Site/Menu').data.split('\n')
+
+ html = '<ul id="menubar">'
+
+ for item in items:
+ if (not item.startswith("#")):
+ (pagename, link) = self.splitNavilink(item)
+ html = html + ("<li class=\"menulink\">%s</li>" % link)
+
+ html = html + '</ul>'
+
+ return html
+
+ def theme_script(self, name):
+ """ Format script html from this theme's static dir """
+ src = '%s/%s/js/%s.js' % (self.request.cfg.url_prefix_static, self.name, name)
+ return '<script type="text/javascript" src="%s"></script>' % src