Rev 210 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 210 | Rev 227 | ||
---|---|---|---|
1 | <?php
|
1 | <?php
|
2 | 2 | ||
3 | $language = 'en'; |
3 | $language = 'en'; |
4 | $locale = 'en_US.UTF-8'; |
4 | $locale = 'en_US.UTF-8'; |
5 | require_once 'global.php'; |
5 | require_once 'global.php'; |
6 | 6 | ||
7 | $encoding = 'UTF-8'; |
7 | $encoding = 'UTF-8'; |
8 | header("Content-Type: text/html" . ($encoding ? "; charset=$encoding" : "")); |
8 | header("Content-Type: text/html" . ($encoding ? "; charset=$encoding" : "")); |
9 | 9 | ||
10 | $modi = max(array( |
10 | $modi = max(array( |
11 | @filemtime(__FILE__), |
11 | @filemtime(__FILE__), |
12 | @filemtime("styles/lcars-basic.css"), |
12 | @filemtime("styles/lcars-basic.css"), |
13 | @filemtime("styles/lcars22.css"), |
- | |
14 | @filemtime("styles/lcars22-ie6.css"), |
- | |
15 | )); |
- | |
16 | - | ||
17 | \header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $modi ) . ' GMT'); |
- | |
18 | - | ||
19 | /* Resource expires in HTTP/1.1 caches 24h after last retrieval */
|
- | |
20 | \header('Cache-Control: max-age=86400, s-maxage=86400, must-revalidate, proxy-revalidate'); |
- | |
21 | - | ||
22 | /* Resource expires in HTTP/1.0 caches 24h after last retrieval */
|
- | |
23 | \header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT'); |
- | |
24 | - | ||
25 | ?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
- | |
26 | "http://www.w3.org/TR/html4/loose.dtd"> |
- | |
27 | <html lang="en"> |
- | |
28 | <head> |
- | |
29 | <title>Language Selection — PointedEars’ Website</title> |
- | |
30 | <link rel="SHORTCUT ICON" href="favicon.ico"> |
- | |
31 | <!-- Browsers: Character Set, Script Type, Style Sheets Type, |
- | |
32 | Proxy Usage --> |
- | |
33 | <meta http-equiv="content-type"content="text/html; charset=UTF-8"> |
- | |
34 | <meta http-equiv="Content-Script-Type" content="text/javascript"> |
- | |
35 | <meta http-equiv="Content-Style-Type" content="text/css"> |
- | |
36 | <meta http-equiv="expires" content="0"> |
- | |
37 | <!-- Robots: Language, Index, Subordinated Files, Description, Author, |
- | |
38 | Keywords, Document Date --> |
- | |
39 | <meta name="robots" content="index"> |
- | |
40 | <?php /* |
- | |
41 | <meta name="description"
|
- | |
42 | content="Access to the United Federation of Planets Databanks, an online songbook and software downloads always worth a click. Coming soon: The best internet links categorized and much more via a bilingual (English/German) LCARS terminal styled user interface that can be also used to surf the web anonymously! Bookmark NOW!">
|
- | |
43 | */ ?> |
- | |
44 | <meta name="author" content="PointedEars, PointedEars Software (PES)"> |
- | |
45 | <!-- No localization of keywords due to following language selection --> |
- | |
46 | <meta name="keywords" |
- | |
47 | http-equiv="Keywords" |
- | |
48 | content="<?php // Appz, ?>Download, Links, LCARS, Star Trek, TNG, The Next Generation, DS9, Deep Space 9, Deep Space Nine, VOY, Voyager, UFP, Federation, United Federation of Planets, Database, Databank, <?php /* Song, Songbook, Surf, anonymously, */ ?>Raumschiff Enterprise, DNG, Die nächste Generation, VFP, Föderation, Vereinte Föderation der Planeten, Datenbasis, Datenbank<?php /* , Lied, Liedtext, surfen, anonym */ ?>"> |
- | |
49 | <!--meta name="keywords" http-equiv="Keywords" lang="de" content=""--> |
- | |
50 | <!--meta name="keywords" http-equiv="Keywords" lang="en-us" content=""--> |
- | |
51 | <!--meta name="keywords" http-equiv="Keywords" lang="en" content=""--> |
- | |
52 | <meta name="revisit-after" content="3 days"> |
- | |
53 | <meta name="date" content="2002-05-23T10:56:00+02:00"> |
- | |
54 | <!-- Robots: Dublin Core Metadata |
- | |
55 | (http://purl.org/metadata/dublin_core) --> |
- | |
56 | <meta name="DCTERMS.title" content="PointedEars’ Website"> |
- | |
57 | <meta name="DCTERMS.creator" content="PointedEars, PointedEars Software (PES)"> |
- | |
58 | <meta name="DCTERMS.subject" content="Private Homepage"> |
- | |
59 | <?php /* |
- | |
60 | <meta name="DCTERMS.description"
|
- | |
61 | content="PointedEars' Website: Access to the United Federation of Planets Databanks and an online songbook. Coming soon: Software downloads always worth a click, the best internet links categorized and much more via a bilingual (English/German) LCARS terminal styled user interface that can be also used to surf the web anonymously! Bookmark NOW!">
|
- | |
62 | */ ?> |
- | |
63 | <meta name="DCTERMS.publisher" content="PointedEars"> |
- | |
64 | <meta name="DCTERMS.created" content="2002-05-23"> |
- | |
65 | <meta name="DCTERMS.modified" content="<?php echo gmdate('Y-m-dTH:i:sO', $modi); ?>"> |
- | |
66 | <?php /* |
- | |
67 | <!--meta name="DC.Type" content=""-->
|
- | |
68 | <!--meta name="DC.Format" content=""-->
|
- | |
69 | */ ?> |
- | |
70 | <meta name="DCTERMS.identifier" content="http://pointedears.de/"> |
- | |
71 | <meta name="DCTERMS.rightsHolder" |
- | |
72 | content="Copyright © 2002–<?php echo gmdate('Y', $modi); ?> Thomas Lahn."> |
- | |
73 | <meta name="DCTERMS.rights" |
- | |
74 | content="<?php echo tr("All rights reserved."); ?> <?php echo tr("The author is not responsible for the availability and the content of websites referred by this site, and not responsible for the availability and the content of websites referred by those sites. Whereever outsourced material is used, copyright or trademark infringement is not intended. Third parties who claim copyrights or trademarks used herein are asked to send an informal email to webmaster@PointedEars.de for immediate removal or modification of the respective material on the website instead of reminding the author of usage of this material. Thank you."); ?>"> |
- | |
75 | <?php /* |
- | |
76 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> -->
|
- | |
77 | <!-- IE 9 in non-Compatibility Mode sends "Accept: text/css",
|
- | |
78 | Apache responds with 406 without .php:
|
- | |
79 | http://blog.s9y.org/archives/227-ie9-has-trouble-with-css-content-types.html
|
- | |
80 | (Resource Builder handles negotation for sources)
|
- | |
81 | -->
|
- | |
82 | */ ?> |
- | |
83 | <link rel="stylesheet" type="text/css" href="scripts/builder.php?type=text/css&prefix=../styles/&src=lcars-basic,lcars22"> |
- | |
84 | <!--[if lt IE 7]> |
- | |
85 | <link rel="stylesheet" type="text/css" href="styles/lcars22-ie6.css"> |
- | |
86 | <![endif]--> |
- | |
87 | <style type="text/css"> |
- | |
88 | <!-- |
- | |
89 | a { |
- | |
90 | text-decoration: none; |
- | |
91 | } |
- | |
92 | - | ||
93 | ul { |
- | |
94 | list-style: none; |
- | |
95 | padding-left: 0; |
- | |
96 | } |
- | |
97 | - | ||
98 | #greeting { |
- | |
99 | margin-top: 0; |
- | |
100 | } |
- | |
101 | - | ||
102 | #greeting p { |
- | |
103 | background-color: #000; |
- | |
104 | color: #fff; |
- | |
105 | font-size: 136%; |
- | |
106 | } |
- | |
107 | - | ||
108 | .instruction { |
- | |
109 | line-height: 1.2; |
- | |
110 | } |
- | |
111 | - | ||
112 | .group { |
- | |
113 | width: 9.92em; |
- | |
114 | } |
- | |
115 | - | ||
116 | #languages .button { |
- | |
117 | width: 8.25em; |
- | |
118 | } |
- | |
119 | - | ||
120 | #languages .button .key { |
- | |
121 | min-width: 0.675em; |
- | |
122 | } |
- | |
123 | - | ||
124 | #languages .button .text { |
- | |
125 | max-width: 4.55em; |
- | |
126 | } |
- | |
127 | --> |
- | |
128 | </style> |
- | |
129 | <?php /* |
- | |
130 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/css,dom/css/color,dom/ani,dom/window"></script>
|
- | |
131 | */ ?> |
- | |
132 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/xpath,dom/window,dom/xpath,regexp"></script> |
- | |
133 | <script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script> |
- | |
134 | <script type="text/javascript"> |
- | |
135 | <?php /* |
- | |
136 | /* Hardcore Frame Buster
|
- | |
137 | if (parent.frames.length > 0 )
|
- | |
138 | parent.location.href = window.location.href;
|
- | |
139 | */ ?> |
- | |
140 | <?php /* |
- | |
141 | function animate ()
|
- | |
142 | {
|
- | |
143 | */ ?> |
- | |
144 | <?php /* |
- | |
145 | var s = document.createElement("style");
|
- | |
146 | s.type = "text/css";
|
- | |
147 | s.appendChild(document.createTextNode(
|
- | |
148 | "@-webkit-keyframes fade-out {"
|
- | |
149 | + " from {"
|
- | |
150 | + " overflow: hidden;"
|
- | |
151 | + " border-top-left-radius: 0;"
|
- | |
152 | + " border-bottom-left-radius: 0;"
|
- | |
153 | + " }"
|
- | |
154 | + " to {"
|
- | |
155 | + " overflow: hidden;"
|
- | |
156 | + " left: 100%;"
|
- | |
157 | + " border-top-left-radius: 0;"
|
- | |
158 | + " border-bottom-left-radius: 0;"
|
- | |
159 | + " }"
|
- | |
160 | + "}"
|
- | |
161 | + "#bow-top, #footer {"
|
- | |
162 | + " -webkit-animation-name: fade-out;"
|
- | |
163 | + " -webkit-animation-duration: 1s;"
|
- | |
164 | + " -webkit-animation-fill-mode: forwards;"
|
- | |
165 | + "}"
|
- | |
166 | + "#bow-top .text {"
|
- | |
167 | + " visibility: hidden;"
|
- | |
168 | + "}"
|
- | |
169 | + ".empty .separator-left {"
|
- | |
170 | + " visibility: hidden;"
|
- | |
171 | + "}"
|
- | |
172 | ));
|
- | |
173 | document.head.appendChild(s);
|
- | |
174 | */ ?> |
- | |
175 | <?php /* |
- | |
176 | jsx._import(jsx.dom.animation);
|
- | |
177 | var keyFrames = [
|
- | |
178 | {
|
- | |
179 | values: {
|
- | |
180 | style: {
|
- | |
181 | overflow: "hidden",
|
- | |
182 | "border-top-left-radius": 0,
|
- | |
183 | "border-bottom-left-radius": 0
|
- | |
184 | }
|
- | |
185 | }
|
- | |
186 | },
|
- | |
187 | {
|
- | |
188 | time: "1s",
|
- | |
189 | values: {
|
- | |
190 | style: {
|
- | |
191 | overflow: "hidden",
|
- | |
192 | left: "100%",
|
- | |
193 | "border-top-left-radius": 0,
|
- | |
194 | "border-bottom-left-radius": 0
|
- | |
195 | }
|
- | |
196 | }
|
- | |
197 | }
|
- | |
198 | ];
|
- | |
199 | - | ||
200 | var animation = new Animation({
|
- | |
201 | timelines: [
|
- | |
202 | new Timeline({
|
- | |
203 | target: document.getElementById("bow-top"),
|
- | |
204 | keyFrames: keyFrames
|
- | |
205 | }),
|
- | |
206 | new Timeline({
|
- | |
207 | target: document.getElementById("footer"),
|
- | |
208 | keyFrames: keyFrames
|
- | |
209 | })
|
- | |
210 | ]
|
- | |
211 | });
|
- | |
212 | animation.play();
|
- | |
213 | }
|
- | |
214 | */
|
- | |
215 | ?>
|
- | |
216 | var translatables; |
- | |
217 | - | ||
218 | function lcars_translate (language) |
- | |
219 | { |
- | |
220 | if (!translatables) |
- | |
221 | { |
- | |
222 | translatables = jsx.dom.xpath.evaluate( |
- | |
223 | './/li[(@lang and (../../*[@id and (@id != "languages")]))' |
- | |
224 | + ' or (p and p[@lang])]', |
- | |
225 | document.body); |
- | |
226 | } |
- | |
227 | - | ||
228 | if (!translatables) |
- | |
229 | { |
- | |
230 | return; |
- | |
231 | } |
- | |
232 | - | ||
233 | var language_prefix = language.match(/^[^-]+/); |
- | |
234 | - | ||
235 | for (var i = translatables.length; i--;) |
- | |
236 | { |
- | |
237 | var translatable = translatables[i]; |
- | |
238 | translatable.style.display = |
- | |
239 | (translatable.lang.indexOf(language_prefix) == 0 |
- | |
240 | || translatable.firstChild.lang == language |
- | |
241 | || translatable.firstChild.lang.indexOf("vuh") == 0 |
- | |
242 | || (translatable.firstChild.lang == "en" && language.indexOf("vuh") == 0)) |
- | |
243 | ? "" |
- | |
244 | : "none"; |
- | |
245 | } |
- | |
246 | } |
- | |
247 | - | ||
248 | function lcars_translate_reset () |
- | |
249 | { |
- | |
250 | lcars_translate('en'); |
- | |
251 | } |
- | |
252 | - | ||
253 | var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
- | |
254 | - | ||
255 | function body_load (body) |
- | |
256 | { |
- | |
257 | if (typeof body.ontouchstart != 'undefined') |
- | |
258 | { |
- | |
259 | body.ontouchstart = function () {}; |
- | |
260 | } |
- | |
261 | - | ||
262 | lcars_translate_reset(); |
- | |
263 | mediaScript(); |
- | |
264 | } |
- | |
265 | - | ||
266 | function navigateTo (link) |
- | |
267 | { |
- | |
268 | <?php /* |
- | |
269 | animate();
|
- | |
270 | window.setTimeout(function () {
|
- | |
271 | window.alert(link);
|
- | |
272 | }, 1000);
|
- | |
273 | return false;
|
- | |
274 | */ ?> |
- | |
275 | return true; |
- | |
276 | } |
- | |
277 | </script> |
- | |
278 | </head> |
- | |
279 | <body class="fade-in empty" onload="body_load(this)"> |
- | |
280 | <div id="LCARS"> |
- | |
281 | <div id="bow"> |
- | |
282 | <div id="bow-top"> |
- | |
283 | <div class="separator-left"> </div> |
- | |
284 | <h1 class="text"><span>PointedEars’ Website</span></h1> |
- | |
285 | </div> |
- | |
286 | <div id="bow-left"> </div> |
- | |
287 | <div id="bow-left-concave"> </div> |
- | |
288 | </div> |
- | |
289 | <div id="footer-container"> |
- | |
290 | <div id="footer"> |
- | |
291 | <h2 class="text"><span>Language Selection</span></h2> |
- | |
292 | <div class="separator-right"> </div> |
- | |
293 | </div> |
- | |
294 | </div> |
- | |
295 | </div> |
- | |
296 | <div id="content"> |
- | |
297 | <div style="text-align: center"><img |
- | |
298 | src="media/video/img/vulcan_hand-black-bg.png" |
- | |
299 | width="120" |
- | |
300 | height="168" |
- | |
301 | alt="Vulcan greeting" |
- | |
302 | title="Vulcan greeting" |
- | |
303 | border="0" |
- | |
304 | onmouseover="return setStatus(this.title)" |
- | |
305 | onmouseout="return resetStatus()"></div> |
- | |
306 | - | ||
307 | <ul id="greeting"> |
- | |
308 | <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $vulcan; ?>">Dif-tor heh smusma</p></li> |
- | |
309 | <?php foreach ($languages as $key => $name): ?> |
- | |
310 | <?php if ($key != $vulcan): ?> |
- | |
311 | <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $key; ?>"><?php echo tr('Live long and prosper', $key); ?></p></li> |
- | |
312 | <?php endif; ?> |
- | |
313 | <?php endforeach; ?> |
- | |
314 | </ul> |
- | |
315 | - | ||
316 | <ul style="text-align: center"> |
- | |
317 | <?php foreach ($languages as $key => $name): ?> |
- | |
318 | <li class="instruction" lang="<?php echo $key; ?>"><span class="text"><?php echo tr('Please select your language', $key); ?></span></li> |
- | |
319 | <?php endforeach; ?> |
- | |
320 | </ul> |
- | |
321 | - | ||
322 | <div class="group"> |
- | |
323 | <div class="separator"> </div> |
- | |
324 | <ul id="languages" onmouseout="lcars_translate_reset()"> |
- | |
325 | <?php foreach ($languages as $key => $name): ?> |
- | |
326 | <li><a href="index.<?php echo language_key_short($key); ?>" |
- | |
327 | class="button right" lang="<?php echo $key; ?>" |
- | |
328 | hreflang="<?php echo $key; ?>" |
- | |
329 | accesskey="<?php echo strtolower($key[0]); ?>" |
- | |
330 | onfocus="lcars_translate('<?php echo $key; ?>')" |
- | |
331 | onmouseover="lcars_translate('<?php echo $key; ?>')" |
- | |
332 | onclick="return navigateTo(this)" |
- | |
333 | onblur="lcars_translate_reset()" |
- | |
334 | ><span class="key"><?php echo language_key_short($key); ?></span> |
- | |
335 | <span class="text"><?php echo language_name($key); ?></span></a></li> |
- | |
336 | <?php endforeach; ?> |
- | |
337 | </ul> |
- | |
338 | <div style="clear: both"><!-- --></div> |
- | |
339 | </div> |
- | |
340 | - | ||
341 | <?php
|
- | |
342 | $app = 'Language'; |
- | |
343 | require_once 'application/layouts/index/footer.phtml'; |
- | |
344 | ?>
|
- | |
345 | </div> |
- | |
346 | </body> |
- | |
347 | </html> |
- | |
348 | 13 | @filemtime("styles/lcars22.css"), |
|
- | 14 | @filemtime("styles/lcars22-ie6.css"), |
|
- | 15 | )); |
|
- | 16 | ||
- | 17 | \header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $modi ) . ' GMT'); |
|
- | 18 | ||
- | 19 | /* Resource expires in HTTP/1.1 caches 24h after last retrieval */
|
|
- | 20 | \header('Cache-Control: max-age=86400, s-maxage=86400, must-revalidate, proxy-revalidate'); |
|
- | 21 | ||
- | 22 | /* Resource expires in HTTP/1.0 caches 24h after last retrieval */
|
|
- | 23 | \header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT'); |
|
- | 24 | ||
- | 25 | ?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
- | 26 | "http://www.w3.org/TR/html4/loose.dtd"> |
|
- | 27 | <html lang="en"> |
|
- | 28 | <head> |
|
- | 29 | <title>Language Selection — PointedEars’ Website</title> |
|
- | 30 | <link rel="SHORTCUT ICON" href="favicon.ico"> |
|
- | 31 | <!-- Browsers: Character Set, Script Type, Style Sheets Type, |
|
- | 32 | Proxy Usage --> |
|
- | 33 | <meta http-equiv="content-type"content="text/html; charset=UTF-8"> |
|
- | 34 | <meta http-equiv="Content-Script-Type" content="text/javascript"> |
|
- | 35 | <meta http-equiv="Content-Style-Type" content="text/css"> |
|
- | 36 | <meta http-equiv="expires" content="0"> |
|
- | 37 | <!-- Robots: Language, Index, Subordinated Files, Description, Author, |
|
- | 38 | Keywords, Document Date --> |
|
- | 39 | <meta name="robots" content="index"> |
|
- | 40 | <?php /* |
|
- | 41 | <meta name="description"
|
|
- | 42 | content="Access to the United Federation of Planets Databanks, an online songbook and software downloads always worth a click. Coming soon: The best internet links categorized and much more via a bilingual (English/German) LCARS terminal styled user interface that can be also used to surf the web anonymously! Bookmark NOW!">
|
|
- | 43 | */ ?> |
|
- | 44 | <meta name="author" content="PointedEars, PointedEars Software (PES)"> |
|
- | 45 | <!-- No localization of keywords due to following language selection --> |
|
- | 46 | <meta name="keywords" |
|
- | 47 | http-equiv="Keywords" |
|
- | 48 | content="<?php // Appz, ?>Download, Links, LCARS, Star Trek, TNG, The Next Generation, DS9, Deep Space 9, Deep Space Nine, VOY, Voyager, UFP, Federation, United Federation of Planets, Database, Databank, <?php /* Song, Songbook, Surf, anonymously, */ ?>Raumschiff Enterprise, DNG, Die nächste Generation, VFP, Föderation, Vereinte Föderation der Planeten, Datenbasis, Datenbank<?php /* , Lied, Liedtext, surfen, anonym */ ?>"> |
|
- | 49 | <!--meta name="keywords" http-equiv="Keywords" lang="de" content=""--> |
|
- | 50 | <!--meta name="keywords" http-equiv="Keywords" lang="en-us" content=""--> |
|
- | 51 | <!--meta name="keywords" http-equiv="Keywords" lang="en" content=""--> |
|
- | 52 | <meta name="revisit-after" content="3 days"> |
|
- | 53 | <meta name="date" content="2002-05-23T10:56:00+02:00"> |
|
- | 54 | <!-- Robots: Dublin Core Metadata |
|
- | 55 | (http://purl.org/metadata/dublin_core) --> |
|
- | 56 | <meta name="DCTERMS.title" content="PointedEars’ Website"> |
|
- | 57 | <meta name="DCTERMS.creator" content="PointedEars, PointedEars Software (PES)"> |
|
- | 58 | <meta name="DCTERMS.subject" content="Private Homepage"> |
|
- | 59 | <?php /* |
|
- | 60 | <meta name="DCTERMS.description"
|
|
- | 61 | content="PointedEars' Website: Access to the United Federation of Planets Databanks and an online songbook. Coming soon: Software downloads always worth a click, the best internet links categorized and much more via a bilingual (English/German) LCARS terminal styled user interface that can be also used to surf the web anonymously! Bookmark NOW!">
|
|
- | 62 | */ ?> |
|
- | 63 | <meta name="DCTERMS.publisher" content="PointedEars"> |
|
- | 64 | <meta name="DCTERMS.created" content="2002-05-23"> |
|
- | 65 | <meta name="DCTERMS.modified" content="<?php echo gmdate('Y-m-dTH:i:sO', $modi); ?>"> |
|
- | 66 | <?php /* |
|
- | 67 | <!--meta name="DC.Type" content=""-->
|
|
- | 68 | <!--meta name="DC.Format" content=""-->
|
|
- | 69 | */ ?> |
|
- | 70 | <meta name="DCTERMS.identifier" content="http://pointedears.de/"> |
|
- | 71 | <meta name="DCTERMS.rightsHolder" |
|
- | 72 | content="Copyright © 2002–<?php echo gmdate('Y', $modi); ?> Thomas Lahn."> |
|
- | 73 | <meta name="DCTERMS.rights" |
|
- | 74 | content="<?php echo tr("All rights reserved."); ?> <?php echo tr("The author is not responsible for the availability and the content of websites referred by this site, and not responsible for the availability and the content of websites referred by those sites. Whereever outsourced material is used, copyright or trademark infringement is not intended. Third parties who claim copyrights or trademarks used herein are asked to send an informal email to webmaster@PointedEars.de for immediate removal or modification of the respective material on the website instead of reminding the author of usage of this material. Thank you."); ?>"> |
|
- | 75 | <?php /* |
|
- | 76 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> -->
|
|
- | 77 | <!-- IE 9 in non-Compatibility Mode sends "Accept: text/css",
|
|
- | 78 | Apache responds with 406 without .php:
|
|
- | 79 | http://blog.s9y.org/archives/227-ie9-has-trouble-with-css-content-types.html
|
|
- | 80 | (Resource Builder handles negotation for sources)
|
|
- | 81 | -->
|
|
- | 82 | */ ?> |
|
- | 83 | <link rel="stylesheet" type="text/css" href="scripts/builder.php?type=text/css&prefix=../styles/&src=lcars-basic,lcars22"> |
|
- | 84 | <!--[if lt IE 7]> |
|
- | 85 | <link rel="stylesheet" type="text/css" href="styles/lcars22-ie6.css"> |
|
- | 86 | <![endif]--> |
|
- | 87 | <style type="text/css"> |
|
- | 88 | <!-- |
|
- | 89 | a { |
|
- | 90 | text-decoration: none; |
|
- | 91 | } |
|
- | 92 | ||
- | 93 | ul { |
|
- | 94 | list-style: none; |
|
- | 95 | padding-left: 0; |
|
- | 96 | } |
|
- | 97 | ||
- | 98 | #greeting { |
|
- | 99 | margin-top: 0; |
|
- | 100 | } |
|
- | 101 | ||
- | 102 | #greeting p { |
|
- | 103 | background-color: #000; |
|
- | 104 | color: #fff; |
|
- | 105 | font-size: 136%; |
|
- | 106 | } |
|
- | 107 | ||
- | 108 | .instruction { |
|
- | 109 | line-height: 1.2; |
|
- | 110 | } |
|
- | 111 | ||
- | 112 | .group { |
|
- | 113 | width: 13.92em; |
|
- | 114 | } |
|
- | 115 | ||
- | 116 | #languages .button { |
|
- | 117 | width: 12.25em; |
|
- | 118 | } |
|
- | 119 | ||
- | 120 | #languages .button .key { |
|
- | 121 | min-width: 1em; |
|
- | 122 | } |
|
- | 123 | ||
- | 124 | #languages .button .text { |
|
- | 125 | max-width: 8.55em; |
|
- | 126 | } |
|
- | 127 | --> |
|
- | 128 | </style> |
|
- | 129 | <?php /* |
|
- | 130 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/css,dom/css/color,dom/ani,dom/window"></script>
|
|
- | 131 | */ ?> |
|
- | 132 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/events,dom/timeout,dom/xpath,dom/window,dom/xpath,regexp,dom/widgets,lcars"></script> |
|
- | 133 | <script type="text/javascript" src="application/scripts/klingon.js"></script> |
|
- | 134 | <script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script> |
|
- | 135 | <script type="text/javascript"> |
|
- | 136 | <?php /* |
|
- | 137 | /* Hardcore Frame Buster
|
|
- | 138 | if (parent.frames.length > 0 )
|
|
- | 139 | parent.location.href = window.location.href;
|
|
- | 140 | */ ?> |
|
- | 141 | <?php /* |
|
- | 142 | function animate ()
|
|
- | 143 | {
|
|
- | 144 | */ ?> |
|
- | 145 | <?php /* |
|
- | 146 | var s = document.createElement("style");
|
|
- | 147 | s.type = "text/css";
|
|
- | 148 | s.appendChild(document.createTextNode(
|
|
- | 149 | "@-webkit-keyframes fade-out {"
|
|
- | 150 | + " from {"
|
|
- | 151 | + " overflow: hidden;"
|
|
- | 152 | + " border-top-left-radius: 0;"
|
|
- | 153 | + " border-bottom-left-radius: 0;"
|
|
- | 154 | + " }"
|
|
- | 155 | + " to {"
|
|
- | 156 | + " overflow: hidden;"
|
|
- | 157 | + " left: 100%;"
|
|
- | 158 | + " border-top-left-radius: 0;"
|
|
- | 159 | + " border-bottom-left-radius: 0;"
|
|
- | 160 | + " }"
|
|
- | 161 | + "}"
|
|
- | 162 | + "#bow-top, #footer {"
|
|
- | 163 | + " -webkit-animation-name: fade-out;"
|
|
- | 164 | + " -webkit-animation-duration: 1s;"
|
|
- | 165 | + " -webkit-animation-fill-mode: forwards;"
|
|
- | 166 | + "}"
|
|
- | 167 | + "#bow-top .text {"
|
|
- | 168 | + " visibility: hidden;"
|
|
- | 169 | + "}"
|
|
- | 170 | + ".empty .separator-left {"
|
|
- | 171 | + " visibility: hidden;"
|
|
- | 172 | + "}"
|
|
- | 173 | ));
|
|
- | 174 | document.head.appendChild(s);
|
|
- | 175 | */ ?> |
|
- | 176 | <?php /* |
|
- | 177 | jsx._import(jsx.dom.animation);
|
|
- | 178 | var keyFrames = [
|
|
- | 179 | {
|
|
- | 180 | values: {
|
|
- | 181 | style: {
|
|
- | 182 | overflow: "hidden",
|
|
- | 183 | "border-top-left-radius": 0,
|
|
- | 184 | "border-bottom-left-radius": 0
|
|
- | 185 | }
|
|
- | 186 | }
|
|
- | 187 | },
|
|
- | 188 | {
|
|
- | 189 | time: "1s",
|
|
- | 190 | values: {
|
|
- | 191 | style: {
|
|
- | 192 | overflow: "hidden",
|
|
- | 193 | left: "100%",
|
|
- | 194 | "border-top-left-radius": 0,
|
|
- | 195 | "border-bottom-left-radius": 0
|
|
- | 196 | }
|
|
- | 197 | }
|
|
- | 198 | }
|
|
- | 199 | ];
|
|
- | 200 | ||
- | 201 | var animation = new Animation({
|
|
- | 202 | timelines: [
|
|
- | 203 | new Timeline({
|
|
- | 204 | target: document.getElementById("bow-top"),
|
|
- | 205 | keyFrames: keyFrames
|
|
- | 206 | }),
|
|
- | 207 | new Timeline({
|
|
- | 208 | target: document.getElementById("footer"),
|
|
- | 209 | keyFrames: keyFrames
|
|
- | 210 | })
|
|
- | 211 | ]
|
|
- | 212 | });
|
|
- | 213 | animation.play();
|
|
- | 214 | }
|
|
- | 215 | */
|
|
- | 216 | ?>
|
|
- | 217 | var translatables; |
|
- | 218 | ||
- | 219 | function lcars_translate (language) |
|
- | 220 | { |
|
- | 221 | if (!translatables) |
|
- | 222 | { |
|
- | 223 | translatables = jsx.dom.xpath.evaluate( |
|
- | 224 | './/li[(@lang and (../../*[@id and (@id != "languages")]))' |
|
- | 225 | + ' or (p and p[@lang])]', |
|
- | 226 | document.body); |
|
- | 227 | } |
|
- | 228 | ||
- | 229 | if (!translatables) |
|
- | 230 | { |
|
- | 231 | return; |
|
- | 232 | } |
|
- | 233 | ||
- | 234 | var language_prefix = language.match(/^[^-]+/); |
|
- | 235 | ||
- | 236 | for (var i = translatables.length; i--;) |
|
- | 237 | { |
|
- | 238 | var translatable = translatables[i]; |
|
- | 239 | translatable.style.display = |
|
- | 240 | (translatable.lang.indexOf(language_prefix) == 0 |
|
- | 241 | || translatable.firstChild.lang == language |
|
- | 242 | || translatable.firstChild.lang.indexOf("vuh") == 0 |
|
- | 243 | || (translatable.firstChild.lang == "en" |
|
- | 244 | && (language.indexOf("vuh") == 0))) |
|
- | 245 | ? "" |
|
- | 246 | : "none"; |
|
- | 247 | } |
|
- | 248 | } |
|
- | 249 | ||
- | 250 | function lcars_translate_reset () |
|
- | 251 | { |
|
- | 252 | lcars_translate('en'); |
|
- | 253 | } |
|
- | 254 | ||
- | 255 | var LANG_KLINGON = "<?php echo $klingon; ?>"; |
|
- | 256 | var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
|
- | 257 | ||
- | 258 | function body_load (body) |
|
- | 259 | { |
|
- | 260 | if (typeof body.ontouchstart != 'undefined') |
|
- | 261 | { |
|
- | 262 | body.ontouchstart = function () {}; |
|
- | 263 | } |
|
- | 264 | ||
- | 265 | lcars_translate_reset(); |
|
- | 266 | pIqaD(); |
|
- | 267 | mediaScript(); |
|
- | 268 | lcars.insertSound(); |
|
- | 269 | } |
|
- | 270 | </script> |
|
- | 271 | </head> |
|
- | 272 | <body class="fade-in empty" onload="body_load(this)"> |
|
- | 273 | <div id="LCARS"> |
|
- | 274 | <div id="bow"> |
|
- | 275 | <div id="bow-top"> |
|
- | 276 | <div class="separator-left"> </div> |
|
- | 277 | <h1 class="text"><span>PointedEars’ Website</span></h1> |
|
- | 278 | </div> |
|
- | 279 | <div id="bow-left"> </div> |
|
- | 280 | <div id="bow-left-concave"> </div> |
|
- | 281 | </div> |
|
- | 282 | <div id="footer-container"> |
|
- | 283 | <div id="footer"> |
|
- | 284 | <h2 class="text"><span>Language Selection</span></h2> |
|
- | 285 | <div class="separator-right"> </div> |
|
- | 286 | </div> |
|
- | 287 | </div> |
|
- | 288 | </div> |
|
- | 289 | <div id="content"> |
|
- | 290 | <div style="text-align: center"><img |
|
- | 291 | src="media/video/img/vulcan_hand-black-bg.png" |
|
- | 292 | width="120" |
|
- | 293 | height="168" |
|
- | 294 | alt="Vulcan greeting" |
|
- | 295 | title="Vulcan greeting" |
|
- | 296 | border="0" |
|
- | 297 | onmouseover="return setStatus(this.title)" |
|
- | 298 | onmouseout="return resetStatus()"></div> |
|
- | 299 | ||
- | 300 | <ul id="greeting"> |
|
- | 301 | <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $vulcan; ?>"><span class="text">Dif-tor heh smusma</span></p></li> |
|
- | 302 | <?php foreach ($languages as $key => $name): ?> |
|
- | 303 | <?php if ($key != $vulcan): ?> |
|
- | 304 | <li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $key; ?>"><?php echo tr('Live long and prosper', $key); ?></p></li> |
|
- | 305 | <?php endif; ?> |
|
- | 306 | <?php endforeach; ?> |
|
- | 307 | </ul> |
|
- | 308 | ||
- | 309 | <ul style="text-align: center"> |
|
- | 310 | <?php foreach ($languages as $key => $name): ?> |
|
- | 311 | <li class="instruction" lang="<?php echo $key; ?>"><span class="text"><?php echo tr('Please select your language', $key); ?></span></li> |
|
- | 312 | <?php endforeach; ?> |
|
- | 313 | </ul> |
|
- | 314 | ||
- | 315 | <div class="group"> |
|
- | 316 | <div class="separator"> </div> |
|
- | 317 | <ul id="languages" |
|
- | 318 | onmouseout="lcars_translate_reset()"> |
|
- | 319 | <?php foreach ($languages as $key => $name): ?> |
|
- | 320 | <li><a href="index.<?php echo language_key_short($key); ?>" |
|
- | 321 | class="button" lang="<?php echo $key; ?>" |
|
- | 322 | hreflang="<?php echo $key; ?>" |
|
- | 323 | accesskey="<?php echo strtolower($key[0]); ?>" |
|
- | 324 | onfocus="lcars_translate('<?php echo $key; ?>')" |
|
- | 325 | onmouseover="lcars_translate('<?php echo $key; ?>')" |
|
- | 326 | onblur="lcars_translate_reset()" |
|
- | 327 | ><span class="key"><?php echo language_key_short($key); ?></span> |
|
- | 328 | <span class="text"><?php echo language_name($key); ?></span></a></li> |
|
- | 329 | <?php endforeach; ?> |
|
- | 330 | </ul> |
|
- | 331 | <div style="clear: both"><!-- --></div> |
|
- | 332 | </div> |
|
- | 333 | ||
- | 334 | <?php
|
|
- | 335 | $app = 'Language'; |
|
- | 336 | require_once 'application/layouts/index/footer.phtml'; |
|
- | 337 | ?>
|
|
- | 338 | </div> |
|
- | 339 | </body> |
|
- | 340 | </html> |
|
- | 341 |