--- a/lib/helpers.py Sun Feb 08 00:29:36 2009 +0200
+++ b/lib/helpers.py Sun Feb 08 02:29:23 2009 +0200
@@ -20,6 +20,15 @@
return time.strftime("%Y")
+def validation_notice (site_host) :
+ """
+ Returns a short "Validated XHTML & CSS" link text for the given site hostname
+ """
+
+ return 'Validated <a href="http://validator.w3.org/check?uri=%(host)s">XHTML 1.0 Strict</a> & <a href="http://jigsaw.w3.org/css-validator/validator?uri=%(host)s">CSS 2.1</a>' % dict(
+ host = site_host
+ )
+
def breadcrumb (trail, links=True) :
"""
Returns a nicely formatted breadcrumb tail, optinally with links