From svnadmin@urchin.earth.li Tue Jun 12 23:20:12 2007 From: svnadmin@urchin.earth.li To: openguides-commits@lists.openguides.org Subject: [openguides-commits] r1074 - in sites/oxford.openguides.org: . templates Date: Tue, 12 Jun 2007 23:20:12 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1403733205107070535==" --===============1403733205107070535== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: dom Date: 2007-06-12 23:20:11 +0100 (Tue, 12 Jun 2007) New Revision: 1074 Added: sites/oxford.openguides.org/templates/ sites/oxford.openguides.org/templates/custom_banner.tt sites/oxford.openguides.org/templates/custom_footer_credits.tt sites/oxford.openguides.org/templates/custom_licence.tt sites/oxford.openguides.org/templates/display_metadata.tt sites/oxford.openguides.org/templates/display_metadata.tt.old sites/oxford.openguides.org/templates/header.tt sites/oxford.openguides.org/templates/map_index.tt sites/oxford.openguides.org/templates/navbar.tt sites/oxford.openguides.org/templates/needing_moderation.tt sites/oxford.openguides.org/templates/node.tt Log: Add oxford's custom templates Added: sites/oxford.openguides.org/templates/custom_banner.tt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/custom_banner.tt = (rev 0) +++ sites/oxford.openguides.org/templates/custom_banner.tt 2007-06-12 22:20:1= 1 UTC (rev 1074) @@ -0,0 +1 @@ +

[% site_name %]

Added: sites/oxford.openguides.org/templates/custom_footer_credits.tt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/custom_footer_credits.tt = (rev 0) +++ sites/oxford.openguides.org/templates/custom_footer_credits.tt 2007-06-12= 22:20:11 UTC (rev 1074) @@ -0,0 +1,15 @@ + + + + +
+ 3D"Creative + This work is licensed under a Creative Commons licence. + + [% IF enable_page_deletion AND NOT not_deletable %] + Delete page (ad= mins only) +
+ [% END %] + + This wiki powered by OpenGuides (ve= rsion [% openguides_version %]). +
Added: sites/oxford.openguides.org/templates/custom_licence.tt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/custom_licence.tt = (rev 0) +++ sites/oxford.openguides.org/templates/custom_licence.tt 2007-06-12 22:20:= 11 UTC (rev 1074) @@ -0,0 +1,12 @@ +IMPORTANT: By contributing to this guide you=20 +consent to it being placed under the terms of a Creative Commons +license, and agree that your contributions may be attributed to "The Oxford = Guide" or +"The Open Guide to Oxford". Do not submit copyrighted material without writt= en permission from the original author (this could constitute the material +being available under a compatible licence), unless it falls within the +scope of fair dealing as defined by UK law. Please see our +licensing policy for full +details. +

+Currently all submissions are being moderated so won't appear on the +wiki immediately. Don't panic! However, you may wish to make more careful use +of the preview function. Added: sites/oxford.openguides.org/templates/display_metadata.tt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/display_metadata.tt = (rev 0) +++ sites/oxford.openguides.org/templates/display_metadata.tt 2007-06-12 22:2= 0:11 UTC (rev 1074) @@ -0,0 +1,92 @@ +[% USE CGI %] + +[% IF phone OR fax OR address OR postcode OR formatted_website_text + OR hours_text OR map_link OR categories.size OR locales.size OR + node_image %] +

+[% IF node_image %] +
+ 3D"Picture +
+[% ELSE %] + +[% END %] + + + [% node_name %] +[% IF phone OR fax OR address OR postcode OR formatted_website_text + OR hours_text OR map_link %]=20 +
    + + [% IF phone %] +
  • + [% CGI.escapeHTML(phone) %] +
  • + [% END %] + [% IF fax %] +
  • +
  • + [% END %] + [% IF address %] +
  • + + [% CGI.escapeHTML= (address) %] [%# uncomment at left = to show city %] + [% IF map_link %] + (map of this place) + [% ELSIF os_x AND os_y %] + (map of this place) + + [% END %] +
  • + [% ELSIF map_link %] +
  • + +
  • + [% END %] + [% IF postcode %] +
  • + + [% CGI.escapeHTML(po= stcode) %] +
  • + [% END %] + [% IF formatted_website_text %] +
  • + [= % formatted_website_text %] +
  • + [% END %] + [% IF hours_text %] +
  • + + [% CGI.escapeHTML(hours_text) %] +
  • + [% END %] +
+[% END %] + +[% IF (categories.size AND categories.size > 0) + OR (locales.size AND locales.size > 0) %] +
    + [% IF categories.size AND categories.size > 0 %] +
  • + + [% FOREACH category =3D categories %] + [% category.name= %][%- "," UNLESS loop.last %] + [% END %] +
  • + [% END %] + + [% IF locales.size AND locales.size > 0 %] +
  • + + [% FOREACH locale =3D locales %] + [% locale.nam= e %][%- "," UNLESS loop.last %] + [% END %] +
  • + [% END %] +
+[% END %] +
+[% END %] + Added: sites/oxford.openguides.org/templates/display_metadata.tt.old =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/display_metadata.tt.old = (rev 0) +++ sites/oxford.openguides.org/templates/display_metadata.tt.old 2007-06-12 = 22:20:11 UTC (rev 1074) @@ -0,0 +1,86 @@ +[% USE CGI %] + + +
+[% IF phone OR fax OR address OR postcode OR formatted_website_text + OR hours_text OR map_link %]=20 + +[% END %] + +[% IF (categories.size AND categories.size > 0) + OR (locales.size AND locales.size > 0) %] + +[% END %] +
+ + Added: sites/oxford.openguides.org/templates/header.tt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/header.tt (= rev 0) +++ sites/oxford.openguides.org/templates/header.tt 2007-06-12 22:20:11 UTC (= rev 1074) @@ -0,0 +1,52 @@ + + + + + [% IF page_title %] + [% page_title %] + [% ELSE %] + [% node_name %] - [% site_name %] + [% END %] + [% IF contact_email %] + + [% END %] + [% IF summary %] + + [% END %] + [% IF stylesheet %] + + [% END %] + [% IF feed_base %] + + + [% END %] + [% IF latitude AND longitude %] + + + [% END %] + + + [% IF deter_robots %] + + [% END %] + [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %] + + + [% END %] + + + [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %] + + [% END %] Added: sites/oxford.openguides.org/templates/map_index.tt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/map_index.tt = (rev 0) +++ sites/oxford.openguides.org/templates/map_index.tt 2007-06-12 22:20:11 UT= C (rev 1074) @@ -0,0 +1,85 @@ +[% INCLUDE header.tt page_title =3D "Map of all nodes" %] +[% INCLUDE banner.tt %] +
+Link to this page + +
+ +[% IF gmaps_api_key %] +
    + [% i =3D 0 %] + [% FOREACH node =3D nodes %] + [% metadata =3D node.node_data.metadata %] + [% i =3D i + 1 %] + [% IF metadata.latitude.list.first AND metadata.longitude.list.first %] + [% NEXT IF metadata.latitude.list.first.match('m') %] + [% NEXT IF metadata.longitude.list.first.match('m') %] +
  • [% node.name %][% IF metadata.city.list.first = %], [% metadata.city.list.first %][% END %]
  • + [% END %] + [% END %] +
+ + + +
+ + +[% ELSE %] + Sorry, this guide doesn't have Google Maps functionality enabled. +[% END %] + +
+
+ +[% INCLUDE footer.tt %] Added: sites/oxford.openguides.org/templates/navbar.tt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/navbar.tt (= rev 0) +++ sites/oxford.openguides.org/templates/navbar.tt 2007-06-12 22:20:11 UTC (= rev 1074) @@ -0,0 +1,60 @@ +
+ + Back to home + +
+
Tools:
+ + + + + [% IF geocache_link AND latitude AND longitude %] + + [% END %] +
+ + [% UNLESS omit_help_links %] +
+
Help: /
+
FAQ = /
+ + [% IF formatting_rules_link %] + + [% END %] + +
+ [% END %] + +
+
Options:
+ +
+ +
+
Search:
+
+
+ + + +
+
+ +
+ + [% UNLESS not_editable %] + + [% END %] + +
Added: sites/oxford.openguides.org/templates/needing_moderation.tt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/needing_moderation.tt = (rev 0) +++ sites/oxford.openguides.org/templates/needing_moderation.tt 2007-06-12 22= :20:11 UTC (rev 1074) @@ -0,0 +1,27 @@ +[% INCLUDE header.tt page_title =3D "Pages Needing Moderation - $site_name" = %] +[% INCLUDE banner.tt %] +
+[% INCLUDE navbar.tt %] +
+

Pages Needing Moderation

+

+These are nodes which have been created/edited, but not yet moderated. +

+ + + [% FOREACH node =3D nodes %] + + + + + + + [% END %] +
Node namePending VersionLatest Moderated VersionAction
[% node.name %][% node.version %][% node.moderated_version %]Moderate this version + or Delete this version + or View this version + or See changes +
+ +
+[% INCLUDE footer.tt %] Added: sites/oxford.openguides.org/templates/node.tt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sites/oxford.openguides.org/templates/node.tt (re= v 0) +++ sites/oxford.openguides.org/templates/node.tt 2007-06-12 22:20:11 UTC (re= v 1074) @@ -0,0 +1,170 @@ +[% USE CGI %] +[% INCLUDE header.tt %] +[% INCLUDE banner.tt %] +
+[% IF !config.content_above_navbar_in_html %] + [% INCLUDE navbar.tt %] +[% END %] +
+[% IF oldid %] + +[% END %] + +[% IF wgs84_lat AND wgs84_long AND display_google_maps and gmaps_api_key %] +
+ +[% END %] + +[% IF current %] + [% IF backlinks_in_title AND is_indexable_node %] +

[% node_name %]

+ [% ELSE %] +

[% node_name %]

+ [% END %] +[% ELSE %] +

+ [% IF moderated %] + Historical + [% ELSE %] + Un-moderated + [% END %] + version [% version %] of + [% node_name %] +

+[% END %] +[% IF not (content || coord_field_1_value || coord_field_2_value || latitude= || longitude) %] +We don't have a node called "[% node_param %]". Would you like to create it? +[% ELSE %] +[% INCLUDE display_metadata.tt %] + + +
+[% content %] +
+ + +[% TRY %] + [% INCLUDE custom_node.tt %] +[% CATCH %] +[% END %] + =20 +[% IF coord_field_1_value AND coord_field_2_value %] +
+
+
+ + + of here. + + + +
+
+[% END %] +[% IF (latitude AND longitude) OR (os_x AND os_y) OR (osie_x AND osie_y) %] +
+[% END %] +[% IF os_x AND os_y %] + OS X co-ord:=20 + [% CGI.escap= eHTML(os_x) %] + +     + OS Y co-ord:=20 + [% CGI.escap= eHTML(os_y) %] + +     +[% ELSIF osie_x AND osie_y %] + OS IE X co-ord:=20 + [% CGI.esc= apeHTML(osie_x) %] + +     + OS IE Y co-ord:=20 + [% CGI.esc= apeHTML(osie_y) %] + +     +[% END %] +[% IF latitude AND longitude %] + + (Latitude:=20 + [% latitude %] + Longitude:=20 + [% longitude %]) + +[% END %] +[% IF (latitude AND longitude) OR (os_x AND os_y) OR (osie_x AND osie_y)%] +
+[% END %] +
+ RDF/XML for t= his + node + [% IF rss_locale_url %] + / RSS feed for this locale + [% END %] + [% IF rss_category_url %] + / RSS feed for this category + [% END %] +
+
+[% IF current %] + Last edited [% last_modified %] + [% IF version =3D=3D 1 %] + (version [% version %]) + [% ELSE %] + (version [% version %]; + diff). + [% END %] +[% ELSE %] + This is version [% version %]=20 + (as of [% last_modified %]).=20 + View current version.=20 +[% END %] +[% IF version AND version > 1 %] +L= ist all +versions. +[% END %] +
+[% END %] +
+ +[% IF config.content_above_navbar_in_html %] + [% INCLUDE navbar.tt %] +[% END %] + +[% INCLUDE footer.tt %] --===============1403733205107070535==--