lib/helpers.py
branchsites
changeset 42 5a72c00c4ae4
parent 29 b06ff4c05d42
child 43 fc11c4e86a82
equal deleted inserted replaced
41:9585441a4bfb 42:5a72c00c4ae4
    18         Returns the current year
    18         Returns the current year
    19     """
    19     """
    20 
    20 
    21     return time.strftime("%Y")
    21     return time.strftime("%Y")
    22 
    22 
       
    23 def validation_notice (site_host) :
       
    24     """
       
    25         Returns a short "Validated XHTML & CSS" link text for the given site hostname
       
    26     """
       
    27 
       
    28     return 'Validated <a href="http://validator.w3.org/check?uri=%(host)s">XHTML 1.0 Strict</a> &amp; <a href="http://jigsaw.w3.org/css-validator/validator?uri=%(host)s">CSS 2.1</a>' % dict(
       
    29         host = site_host
       
    30     )
       
    31 
    23 def breadcrumb (trail, links=True) :
    32 def breadcrumb (trail, links=True) :
    24     """
    33     """
    25         Returns a nicely formatted breadcrumb tail, optinally with links
    34         Returns a nicely formatted breadcrumb tail, optinally with links
    26     """
    35     """
    27 
    36