Changeset 811 for trunk/templates


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

Location:
trunk/templates
Files:
4 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>
  • trunk/templates/node.tt

    r730 r811  
    44<div id="content">
    55[% INCLUDE navbar.tt %]
    6 <div id="maincontent">
     6<div id="maincontent" class="hreview">
    77[% IF oldid %]
    88<div id="redirect_message">(redirected from <a href="[% full_cgi_url %]?id=[% oldid %];redirect=0">[% oldid.replace('_', ' ') %]</a>)</div>
     
    1515    var map = new GMap(document.getElementById("map"));
    1616    map.addControl(new GSmallMapControl());
    17     map.centerAndZoom(new GPoint([% longitude %], [% latitude %]), 3);
     17    map.centerAndZoom(new GPoint([% wgs84_long %], [% wgs84_lat %]), 3);
    1818    var point0 = new GPoint([% wgs84_long %], [% wgs84_lat %]);
    1919    var marker0 = new GMarker(point0,baseIcon);
     
    4646
    4747<!-- NODE CONTENT STARTS -->
     48<div id="content_text" class="description">
    4849[% content %]
     50</div>
    4951<!-- NODE CONTENT ENDS -->
    5052
     
    7375[% END %]
    7476[% IF (latitude AND longitude) OR (os_x AND os_y) OR (osie_x AND osie_y) %]
    75 <div id="coordinates">
     77<div id="coordinates" class="geo">
    7678[% END %]
    7779[% IF os_x AND os_y %]
    78   <small>OS X co-ord: [% CGI.escapeHTML(os_x) %]</small>
     80  <small>OS X co-ord:
     81    <abbr class="osgb_x" title="[% CGI.escapeHTML(os_x) %]">[% CGI.escapeHTML(os_x) %]</abbr>
     82  </small>
    7983  &nbsp;&nbsp;&nbsp;
    80   <small>OS Y co-ord: [% CGI.escapeHTML(os_y) %]</small>
     84  <small>OS Y co-ord:
     85    <abbr class="osgb_y" title="[% CGI.escapeHTML(os_y) %]">[% CGI.escapeHTML(os_y) %]</abbr>
     86  </small>
    8187  &nbsp;&nbsp;&nbsp;
    8288[% ELSIF osie_x AND osie_y %]
    83   <small>OS IE X co-ord: [% CGI.escapeHTML(osie_x) %]</small>
     89  <small>OS IE X co-ord:
     90    <abbr class="osie_x" title="[% CGI.escapeHTML(osie_x) %]">[% CGI.escapeHTML(osie_x) %]</abbr>
     91  </small>
    8492  &nbsp;&nbsp;&nbsp;
    85   <small>OS IE Y co-ord: [% CGI.escapeHTML(osie_y) %]</small>
     93  <small>OS IE Y co-ord:
     94    <abbr class="osie_y" title="[% CGI.escapeHTML(osie_y) %]">[% CGI.escapeHTML(osie_y) %]</abbr>
     95  </small>
    8696  &nbsp;&nbsp;&nbsp;
    8797[% END %]
    8898[% IF latitude AND longitude %]
    89   <small>(Latitude: [% latitude %] Longitude: [% longitude %])</small>
     99  <small>
     100    (Latitude:
     101    <abbr class="latitude" title="[% wgs84_lat %]">[% latitude %]</abbr>
     102        Longitude:
     103        <abbr class="longitude" title="[% wgs84_long %]">[% longitude %]</abbr>)
     104  </small>
    90105[% END %]
    91106[% IF (latitude AND longitude) OR (os_x AND os_y) OR (osie_x AND osie_y)%]
     
    112127  [% END %]
    113128[% ELSE %]
    114   This is version [% version %] (as of [% last_modified %]).
     129  This is version <span class="version">[% version %]</span>
     130  (as of [% last_modified %]).
    115131  <a href="[% cgi_url %]?[% node_param %]">View current version.</a>
    116132[% END %]
  • trunk/templates/node_history.tt

    r581 r811  
    3939</p>
    4040
     41<p>
     42  This list is available as a
     43  <a href="[% cgi_url %]?action=list_all_versions;format=rss;id=[% node_param %]">rss feed</a>
     44  and as an
     45  <a href="[% cgi_url %]?action=list_all_versions;format=atom;id=[% node_param %]">atom feed</a>.
     46</p>
     47
    4148[% INCLUDE footer.tt %]
  • trunk/templates/recent_changes.tt

    r701 r811  
    8181
    8282</div>
     83
     84<p>
     85  This list is available as a
     86  <a href="[% cgi_url %]?action=rc;format=rss">rss feed</a>
     87  and as an
     88  <a href="[% cgi_url %]?action=rc;format=atom">atom feed</a>.
     89</p>
    8390[% INCLUDE footer.tt %]
Note: See TracChangeset for help on using the changeset viewer.