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/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 %]
Note: See TracChangeset for help on using the changeset viewer.