1.1 --- a/ep2008.py Sun Dec 02 01:55:25 2007 +0100
1.2 +++ b/ep2008.py Sun Dec 02 01:56:53 2007 +0100
1.3 @@ -52,20 +52,21 @@
1.4 u'Events',
1.5 u'Sprints',
1.6 u'Calendar',
1.7 - #u'RecentChanges',
1.8 + u'RecentChanges',
1.9 #u'FindPage',
1.10 #u'HelpContents',
1.11 ]
1.12
1.13 banner_string = u'<img src="/wiki/ep2008/img/sponsor_us.png" alt="Banner advertisement" id="banner" />'
1.14 banner_alt_text = u'Sponsor of EuroPython'
1.15 - banner_prefix = u'sponsor'
1.16 - banner_per_page = 0
1.17 - banner_attachment_page = u'FrontPage'
1.18 - banner_link_page = u'Sponsors'
1.19 + banner_prefix = u'sponsor' # banner images need this prefix
1.20 + banner_per_page = 0 # false value: use attachment page for images
1.21 + banner_attachment_page = u'Sponsors' # upload banner images to this page
1.22 + banner_link_page = u'Sponsors' # make banner images link to this page
1.23
1.24 contact_string = u'<div id="contact"><a href="Contact">Contact Information</a></div>'
1.25 +
1.26 contribute_string = u'Contribute to this site!'
1.27 - special_username = 0
1.28 + special_username = 0 # show simple username or contribute string for login
1.29
1.30 # vim: tabstop=4 expandtab shiftwidth=4
2.1 --- a/themes/ep2008/ep2008.py Sun Dec 02 01:55:25 2007 +0100
2.2 +++ b/themes/ep2008/ep2008.py Sun Dec 02 01:56:53 2007 +0100
2.3 @@ -179,8 +179,12 @@
2.4
2.5 # Display the default banner if no attachments are found.
2.6
2.7 + target = self.cfg.banner_link_page
2.8 +
2.9 if not attachments:
2.10 - return self.cfg.banner_string
2.11 + return "%s%s%s" % (formatter.pagelink(1, target),
2.12 + self.cfg.banner_string,
2.13 + formatter.pagelink(0))
2.14
2.15 # Choose an attachment at random and return the HTML to show it.
2.16
2.17 @@ -191,8 +195,6 @@
2.18 kw['alt'] = self.cfg.banner_alt_text
2.19 kw['id'] = u'banner'
2.20
2.21 - target = self.cfg.banner_link_page
2.22 -
2.23 return "%s%s%s" % (formatter.pagelink(1, target),
2.24 formatter.image(**kw),
2.25 formatter.pagelink(0))