Rev 227 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 227 | Rev 228 | ||
---|---|---|---|
Line 535... | Line 535... | ||
535 | </script></span> |
535 | </script></span> |
536 | </div></li> |
536 | </div></li> |
537 | <li id="cmd4"><script type="text/javascript"> |
537 | <li id="cmd4"><script type="text/javascript"> |
538 | var LANG_KLINGON = "<?php echo $klingon; ?>"; |
538 | var LANG_KLINGON = "<?php echo $klingon; ?>"; |
539 | var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
539 | var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
- | 540 | lcars.language = "<?php echo $language; ?>"; |
|
540 | </script> |
541 | </script> |
541 | <script type="text/javascript" |
542 | <script type="text/javascript" src="application/scripts/klingon.js"></script> |
542 | src="application/scripts/klingon.js" |
543 | <script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script> |
543 | <script type="text/javascript" |
544 | <script type="text/javascript"> |
544 | src="application/scripts/vulcan-media-script.js" |
- | |
545 | ></script> |
- | |
546 | <div class="button left right"<?php
|
545 | function toggleScript (button) |
547 | if (in_array($language, array($klingon, $vulcan))) |
- | |
548 | {
|
546 | { |
- | 547 | var is_alien_language = (lcars.language == LANG_KLINGON |
|
549 | ?> tabindex="1" onclick="<?php |
548 | || lcars.language == LANG_VULCAN); |
- | 549 | ||
550 | switch ($language) |
550 | if (media_script_used) |
551 | {
|
551 | { |
552 | case $klingon: echo 'pIqaD(this)'; break; |
552 | klingonLatinScript(button); |
- | 553 | latinScript(button); |
|
- | 554 | ||
- | 555 | if (!is_alien_language) |
|
- | 556 | { |
|
553 | case $vulcan: echo 'if (media_script_used) { latinScript(this); } else { mediaScript(this); }'; break; |
557 | button.firstChild.textContent = button.getAttribute("data-caption"); |
- | 558 | } |
|
554 | }
|
559 | } |
555 | ?>"<?php |
560 | else |
- | 561 | { |
|
- | 562 | pIqaD(button); |
|
- | 563 | mediaScript(button); |
|
- | 564 | ||
- | 565 | if (!is_alien_language) |
|
- | 566 | { |
|
- | 567 | button.setAttribute("data-caption", button.firstChild.textContent); |
|
- | 568 | button.firstChild.textContent = "Latin"; |
|
- | 569 | } |
|
- | 570 | } |
|
- | 571 | } |
|
- | 572 | </script> |
|
- | 573 | <div class="button left right"<?php
|
|
- | 574 | $language_keys = array_keys($languages); |
|
- | 575 | if (in_array(@$klingon, $language_keys) || in_array(@$vulcan, $language_keys)) |
|
- | 576 | {
|
|
- | 577 | ?> tabindex="1" onclick="return toggleScript(this)"<?php |
|
556 | }
|
578 | }
|
557 | else
|
579 | else
|
558 | {
|
580 | {
|
559 | ?> style="cursor: not-allowed !important"<?php |
581 | ?> style="cursor: not-allowed !important"<?php |
560 | }
|
582 | }
|
561 | ?>><span class="text"><?php |
583 | ?>><span class="text" lang="<?php echo $language; ?>"><?php |
- | 584 | switch ($language) |
|
- | 585 | {
|
|
- | 586 | case $klingon: echo 'pIqaD'; break; |
|
562 | echo $language == $vulcan ? 'Hitra-Zukitan' : ' '; |
587 | case $vulcan: echo 'Hitra-Zukitan'; break; |
- | 588 | default: echo 'Original'; |
|
- | 589 | }
|
|
563 | ?></span>
|
590 | ?></span>
|
564 | </div></li> |
591 | </div></li> |
565 | </ul> |
592 | </ul> |
566 | </div> |
593 | </div> |
567 | <div class="elbo-button"> |
594 | <div class="elbo-button"> |
568 | <span class="text" |
595 | <span class="text" lang="<?php echo $language; ?>" |
569 | title="<?php echo tr("Date of last modification"); ?>" |
596 | title="<?php echo tr("Date of last modification"); ?>" |
570 | ><?php echo gmdate('Ym.d', $modi); ?></span> |
597 | ><?php echo gmdate('Ym.d', $modi); ?></span> |
571 | </div> |
598 | </div> |
572 | <div class="elbo" lang="<?php echo $language; ?>"> |
599 | <div class="elbo" lang="<?php echo $language; ?>"> |
573 | <span class="text"><abbr |
600 | <span class="text"><abbr |