| 537,35 → 537,62 |
| <li id="cmd4"><script type="text/javascript"> |
| var LANG_KLINGON = "<?php echo $klingon; ?>"; |
| var LANG_VULCAN = "<?php echo $vulcan; ?>"; |
| lcars.language = "<?php echo $language; ?>"; |
| </script> |
| <script type="text/javascript" |
| src="application/scripts/klingon.js" |
| <script type="text/javascript" |
| src="application/scripts/vulcan-media-script.js" |
| ></script> |
| <div class="button left right"<?php |
| if (in_array($language, array($klingon, $vulcan))) |
| <script type="text/javascript" src="application/scripts/klingon.js"></script> |
| <script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script> |
| <script type="text/javascript"> |
| function toggleScript (button) |
| { |
| ?> tabindex="1" onclick="<?php |
| switch ($language) |
| var is_alien_language = (lcars.language == LANG_KLINGON |
| || lcars.language == LANG_VULCAN); |
| |
| if (media_script_used) |
| { |
| case $klingon: echo 'pIqaD(this)'; break; |
| case $vulcan: echo 'if (media_script_used) { latinScript(this); } else { mediaScript(this); }'; break; |
| klingonLatinScript(button); |
| latinScript(button); |
| |
| if (!is_alien_language) |
| { |
| button.firstChild.textContent = button.getAttribute("data-caption"); |
| } |
| } |
| ?>"<?php |
| else |
| { |
| pIqaD(button); |
| mediaScript(button); |
| |
| if (!is_alien_language) |
| { |
| button.setAttribute("data-caption", button.firstChild.textContent); |
| button.firstChild.textContent = "Latin"; |
| } |
| } |
| } |
| </script> |
| <div class="button left right"<?php |
| $language_keys = array_keys($languages); |
| if (in_array(@$klingon, $language_keys) || in_array(@$vulcan, $language_keys)) |
| { |
| ?> tabindex="1" onclick="return toggleScript(this)"<?php |
| } |
| else |
| { |
| ?> style="cursor: not-allowed !important"<?php |
| } |
| ?>><span class="text"><?php |
| echo $language == $vulcan ? 'Hitra-Zukitan' : ' '; |
| ?>><span class="text" lang="<?php echo $language; ?>"><?php |
| switch ($language) |
| { |
| case $klingon: echo 'pIqaD'; break; |
| case $vulcan: echo 'Hitra-Zukitan'; break; |
| default: echo 'Original'; |
| } |
| ?></span> |
| </div></li> |
| </ul> |
| </div> |
| <div class="elbo-button"> |
| <span class="text" |
| <span class="text" lang="<?php echo $language; ?>" |
| title="<?php echo tr("Date of last modification"); ?>" |
| ><?php echo gmdate('Ym.d', $modi); ?></span> |
| </div> |