wrapper.tmpl 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. [%- USE MetaExtractor -%]
  2. [%- DEFAULT sidebar = "sidebar.tmpl"-%]
  3. [%-# Can't use DEFAULT for wrap, since DEFAULT overwrites a false value. -%]
  4. [%- wrap = wrap.defined ? wrap : true -%]
  5. [%- IF wrap -%]
  6. [%- document = MetaExtractor.extract(content) -%]
  7. [%- USE date -%]
  8. [%- currentyear = date.format(format = '%Y') -%]
  9. [%- lang_use = document.lang ? document.lang : 'en-US' |replace('-','_') -%]
  10. [%-# English Strings -%]
  11. [%-
  12. strings.listsep = ", "
  13. strings.listand = ", and "
  14. strings.Home = "Home"
  15. strings.About = "About"
  16. strings.Community = "Community"
  17. strings.Download = "Download"
  18. strings.Contribute = "Contribute"
  19. strings.Next = "Next"
  20. strings.Previous = "Previous"
  21. strings.ToC = "Table of Contents"
  22. strings.Sitemap = "Site Map"
  23. strings.Security = "Security Updates"
  24. strings.Contact = "Contact Us"
  25. strings.About = "About SeaMonkey"
  26. strings.WrittenBy = "Written by"
  27. strings.MaintainedBy = "Maintained by"
  28. strings.Contributors = "Contributing Writers"
  29. strings.TranslationBy = "Translation by"
  30. strings.LicenseIs = "This page is licensed under the"
  31. strings.TrademarkPre = "SeaMonkey and the SeaMonkey logo are "
  32. strings.TrademarkLink = "registered trademarks"
  33. strings.TrademarkMid = " of the "
  34. strings.TrademarkMoFo = "Mozilla Foundation"
  35. strings.TrademarkPost = "."
  36. strings.LicenseCC = "Portions of this content are © 1998–$currentyear by individual mozilla.org contributors; content available under a Creative Commons license"
  37. strings.Details = "Details"
  38. strings.Modified = "Last modified"
  39. strings.History = "Document History"
  40. -%]
  41. [%- document.doctype %]
  42. <html [% IF document.lang %]lang="[% document.lang %]"[%END%]
  43. [% IF document.dir %]dir="[% document.dir %]"[%END%]>
  44. <head>
  45. <title>[% document.title %]</title>
  46. <link rel="stylesheet" type="text/css" href="/css/base/template.css" media="screen">
  47. <link rel="stylesheet" type="text/css" href="/css/base/content.css" media="screen">
  48. <link rel="stylesheet" type="text/css" href="/css/artemia/template.css" title="Artemia Nyos" media="screen">
  49. <link rel="stylesheet" type="text/css" href="/css/artemia/content.css" title="Artemia Nyos" media="screen">
  50. <link rel="icon" href="/images/seamonkey16.png" type="image/png">
  51. [%- document.head %]
  52. </head>
  53. <body id="seamonkeyproject-org">
  54. <div id="header"><h1><a href="/" title="Go to seamonkey-project.org" accesskey="1"><img
  55. src="/images/template/header-logo.png" height="38" width="260" alt="SeaMonkey Project"></a></h1></div>
  56. <div id="breadcrumbs">
  57. [% PROCESS breadcrumbs %]
  58. </div>
  59. <div id="content">
  60. <div id="side">
  61. [% INCLUDE $sidebar %]
  62. </div>
  63. <div id="mainContent">
  64. [% IF document.links.next || document.links.prev || document.links.toc -%]
  65. <ul id="tNavTop">
  66. [% IF document.links.prev -%]
  67. <li><a href="[% document.links.prev.0.href %]" rel="prev">[% strings.Previous %]: [% document.links.prev.0.title %]</a>
  68. [%- END -%]
  69. [%- IF document.links.next -%]
  70. <li><a href="[% document.links.next.0.href %]" rel="next">[% strings.Next %]: [% document.links.next.0.title %]</a>
  71. [%- END -%]
  72. [%- IF document.links.toc -%]
  73. <li><a href="[% document.links.toc.0.href %]" rel="toc">[% strings.ToC %]</a>
  74. [%- END %]
  75. </ul>
  76. [%- END -%]
  77. [%- document.content -%]
  78. <address>
  79. [%- IF document.links.author %]
  80. [% strings.WrittenBy %] <a href="[% document.links.author.0.href %]">[% document.links.author.0.title %]</a>
  81. [%- SET lastIndex = document.links.author.size - 1 -%]
  82. [%- IF lastIndex > 0 -%]
  83. [%- SET almostLastIndex = lastIndex - 1 -%]
  84. [%- FOREACH i = [ 1 .. almostLastIndex ] -%]
  85. [%- strings.listsep -%]
  86. <a href="[% document.links.author.$i.href %]">[% document.links.author.$i.title %]</a>
  87. [%- SET i = i + 1 -%]
  88. [%- END -%]
  89. [%- strings.listand -%]
  90. <a href="[% document.links.author.$lastIndex.href %]">[% document.links.author.$lastIndex.title %]</a>
  91. [%- END -%]
  92. [%- END -%]
  93. [% IF document.links.maintainer %]
  94. <br>
  95. [% strings.MaintainedBy %] <a href="[% document.links.maintainer.0.href %]">[% document.links.maintainer.0.title %]</a>
  96. [%- SET lastIndex = document.links.maintainer.size - 1 -%]
  97. [%- IF lastIndex > 0 -%]
  98. [%- SET almostLastIndex = lastIndex - 1 -%]
  99. [%- FOREACH i = [ 1 .. almostLastIndex ] -%]
  100. [%- strings.listsep -%]
  101. <a href="[% document.links.maintainer.$i.href %]">[% document.links.maintainer.$i.title %]</a>
  102. [%- SET i = i + 1 -%]
  103. [%- END -%]
  104. [%- strings.listand -%]
  105. <a href="[% document.links.maintainer.$lastIndex.href %]">[% document.links.maintainer.$lastIndex.title %]</a>
  106. [%- END -%]
  107. [%- END -%]
  108. [%- IF document.links.contributor %]
  109. <br>
  110. [% strings.Contributors %] <a href="[% document.links.contributor.0.href %]">[% document.links.contributor.0.title %]</a>
  111. [%- SET lastIndex = document.links.contributor.size - 1 -%]
  112. [%- IF lastIndex > 0 -%]
  113. [%- SET almostLastIndex = lastIndex - 1 -%]
  114. [%- FOREACH i = [ 1 .. almostLastIndex ] -%]
  115. [%- strings.listsep -%]
  116. <a href="[% document.links.contributor.$i.href %]">[% document.links.contributor.$i.title %]</a>
  117. [%- SET i = i + 1 -%]
  118. [%- END -%]
  119. [%- strings.listand -%]
  120. <a href="[% document.links.contributor.$lastIndex.href %]">[% document.links.contributor.$lastIndex.title %]</a>
  121. [%- END -%]
  122. [%- END -%]
  123. [% IF document.links.translator %]
  124. <br>
  125. [% strings.TranslationBy %] <a href="[% document.links.translator.0.href %]">[% document.links.translator.0.title %]</a>
  126. [%- SET lastIndex = document.links.translator.size - 1 -%]
  127. [%- IF lastIndex > 0 -%]
  128. [%- SET almostLastIndex = lastIndex - 1 -%]
  129. [%- FOREACH i = [ 1 .. almostLastIndex ] -%]
  130. [%- strings.listsep -%]
  131. <a href="[% document.links.translator.$i.href %]">[% document.links.translator.$i.title %]</a>
  132. [%- SET i = i + 1 -%]
  133. [%- END -%]
  134. [%- strings.listand -%]
  135. <a href="[% document.links.translator.$lastIndex.href %]">[% document.links.translator.$lastIndex.title %]</a>
  136. [%- END -%]
  137. [%- END %]
  138. </address>
  139. [%- IF document.links.next || document.links.prev || document.links.toc -%]
  140. <ul id="tNavBottom">
  141. [% IF document.links.prev -%]
  142. <li><a href="[% document.links.prev.0.href %]" rel="prev">[% strings.previous %]: [% document.links.prev.0.title %]</a>
  143. [%- END -%]
  144. [%- IF document.links.next -%]
  145. <li><a href="[% document.links.next.0.href %]" rel="next">[% strings.next %]: [% document.links.next.0.title %]</a>
  146. [%- END -%]
  147. [%- IF document.links.toc -%]
  148. <li><a href="[% document.links.toc.0.href %]" rel="toc">[% strings.toc %]: [% document.links.toc.0.title %]</a>
  149. [%- END -%]
  150. </ul>
  151. [%- END %]
  152. </div>
  153. </div>
  154. <div id="footer">
  155. <ul id="footer-menu">
  156. <li><a href="[% toplink %]sitemap">[% strings.Sitemap %]</a></li>
  157. <li><a href="http://www.mozilla.org/security/">[% strings.Security %]</a></li>
  158. <li><a href="[% toplink %]about">[% strings.About %]</a></li>
  159. <li><a href="[% toplink %]about#contact">[% strings.Contact %]</a></li>
  160. </ul>
  161. <p class="tLicense">[% strings.TrademarkPre %]<a href="[% toplink %]legal/trademark">[% strings.TrademarkLink %]</a>[% strings.TrademarkMid %]<a href="http://www.mozilla.org/foundation/">[% strings.TrademarkMoFo %]</a>[% strings.TrademarkPost %]</p>
  162. <p class="tLicense">[% strings.LicenseCC %] | <a href="http://www.mozilla.org/foundation/licensing/website-content.html">[% strings.Details %]</a>.</p>
  163. [% IF document.links.license -%]
  164. <p class="tLicense">[% strings.LicenseIs %]
  165. <a href="[% document.links.license.0.href %]">[% document.links.license.0.title %]</a>.</p>
  166. [%- END %]
  167. [%- sourcefile = template.name;
  168. sourcefile = sourcefile|replace('\+','%2b');
  169. sourcefile = sourcefile|replace('\=','%3d');
  170. sourcefile = sourcefile|replace('\&','%26'); -%]
  171. <ul class="site-tools">
  172. <li>[% strings.Modified %] [% date.format(template.modtime, '%B %d, %Y', lang_use) %]</li>
  173. <li><a href="https://hg.mozilla.org/SeaMonkey/seamonkey-project-org/log/default/src/[% sourcefile %]">[% strings.History %]</a></li>
  174. </ul>
  175. </div>
  176. </body>
  177. </html>
  178. [%- ELSE -%]
  179. [% content %]
  180. [%- END -%]