* looking for nirs@freeshell.org--2005/moin--fix--1.3--patch-27 to compare with
* comparing to nirs@freeshell.org--2005/moin--fix--1.3--patch-27
M  MoinMoin/theme/modern.py
M  wiki/htdocs/modern/css/screen.css
M  MoinMoin/theme/__init__.py
M  MoinMoin/user.py

* modified files

--- orig/MoinMoin/theme/__init__.py
+++ mod/MoinMoin/theme/__init__.py
@@ -1001,6 +1001,12 @@
     def endPage(self):
         """ End page div """
         return '</div> <!-- end page -->\n'        
+
+    def adverts(self):
+        """ Return adverts defined in the wiki config """
+        if self.request.user.show_adverts:
+            return '<div id="adverts">%s</div>' % self.request.cfg.adverts
+
     
     # Public functions #####################################################
 


--- orig/MoinMoin/theme/modern.py
+++ mod/MoinMoin/theme/modern.py
@@ -68,6 +68,7 @@
             # Footer
             u'<div id="footer">',
             self.editbar(d),
+            self.adverts(),
             self.credits(d),
             self.showversion(d, **keywords),
             u'</div>',


--- orig/MoinMoin/user.py
+++ mod/MoinMoin/user.py
@@ -203,6 +203,7 @@
          ('remember_me', lambda _: _('Remember login information')),
          ('want_trivial', lambda _: _('Subscribe to trivial changes')),
          ('disabled', lambda _: _('Disable this account forever')),
+         ('show_adverts', lambda _: _('Show adverts')),
     ]
     _transient_fields =  ['id', 'valid', 'may', 'auth_username', 'trusted']
 


--- orig/wiki/htdocs/modern/css/screen.css
+++ mod/wiki/htdocs/modern/css/screen.css
@@ -312,6 +312,8 @@
 	vertical-align: middle;
 }
 
+#adverts {text-align: center; margin-top: 10px;}
+
 .diff {
 	width:99%;
 }



