Ignore:
Timestamp:
Jun 15, 2006, 3:55:54 PM (15 years ago)
Author:
nick
Message:

Microformat fun - support hCard, hReview and geo microformats where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/display_metadata.tt

    r644 r811  
    22<!-- METADATA STARTS -->
    33
    4 <div id="metadata">
     4<div id="metadata" class="vcard">
     5  <!--- For the vcard --->
     6  <span class="fn" style="display:none">[% node_name %]</span>
    57[% IF phone OR fax OR address OR postcode OR formatted_website_text
    68      OR hours_text OR map_link %]
     
    911    [% IF phone %]
    1012      <li class="telephone">
    11         <span class="metadata_label">Telephone:</span> [% CGI.escapeHTML(phone) %]
     13        <span class="metadata_label">Telephone:</span> <span class="tel">[% CGI.escapeHTML(phone) %]</span>
    1214      </li>
    1315    [% END %]
     
    2022      <li class="address">
    2123        <span class="metadata_label">Address:</span>
    22         [% CGI.escapeHTML(address) %]<!--, [% default_city %] --> [%# uncomment at left to show city %]
     24        <span class="adr"><span class="street-address">[% CGI.escapeHTML(address) %]</span></span><!--, [% default_city %] --> [%# uncomment at left to show city %]
    2325        [% IF map_link %]
    2426          <a href="[% map_link %]">(map of this place)</a>
     
    3335      <li class="postcode">
    3436        <span class="metadata_label">Postcode:</span>
    35         [% CGI.escapeHTML(postcode) %]
     37        <span class="adr"><span class="postal-code">[% CGI.escapeHTML(postcode) %]</span></span>
    3638      </li>
    3739    [% END %]
    3840    [% IF formatted_website_text %]
    3941      <li class="website_link">
    40         <span class="metadata_label">Website:</span> [% formatted_website_text %]
     42        <span class="metadata_label">Website:</span> <span class="url">[% formatted_website_text %]</span>
    4143      </li>
    4244    [% END %]
     
    5759        <span class="metadata_label">Categories:</span>
    5860        [% FOREACH category = categories %]
    59           <a href="[% category.url %]">[% category.name %]</a>[%- "," UNLESS loop.last %]
     61          <a href="[% category.url %]" class="category">[% category.name %]</a>[%- "," UNLESS loop.last %]
    6062        [% END %]
    6163      </li>
     
    6668        <span class="metadata_label">Locales:</span>
    6769        [% FOREACH locale = locales %]
    68           <a href="[% locale.url %]">[% locale.name %]</a>[%- "," UNLESS loop.last %]
     70          <a href="[% locale.url %]" class="addr locality">[% locale.name %]</a>[%- "," UNLESS loop.last %]
    6971        [% END %]
    7072      </li>
Note: See TracChangeset for help on using the changeset viewer.