]> git.mxchange.org Git - friendica-addons.git/blobdiff - krynn/krynn.php
RU translation of cal addon THX pztrn
[friendica-addons.git] / krynn / krynn.php
index f61538427e9a7fae2ba5ec449f0d52afd965e175..de968713307ade91d098aba906632704596e7728 100755 (executable)
@@ -5,7 +5,7 @@
  * Version: 1.0
  * Planets Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
  * Planets Author: Tony Baldwin <https://free-haven.org/profile/tony>
- * Kryn Authoer: Dylan Thiedeke <https://theronin.net/profile/swathe>
+ * Author: Dylan Thiedeke <https://theronin.net/profile/swathe>
  *
  *"My body was my sacrifice... for my magic. This damage is permanent." - Raistlin Majere
  */
@@ -95,7 +95,7 @@ function krynn_post_hook($a, &$item) {
         *
         */
 
-       $krynn = array('Ansalon','Abanasinia','Solace','Haven','Gateway','Qualinost','Ankatavaka','Pax Tharkas','Ergoth','Newsea','Straights of Schallsea','Plains of Dust','Tarsis','Barren Hills','Que Shu','Citadel of Light','Solinari','Hedge Maze','Tower of High Sorcery','Inn of the Last Home','Last Heroes Tomb','Academy of Sorcery','Gods Row','Temple of Majere','Temple of Kiri-Jolith','Temple of Mishakal','Temple of Zeboim,','The Trough','Sad Town','Xak Tsaroth','Zhaman','Skullcap','Saifhum','Karthay','Mithas','Kothas','Silver Dragon Mountain','Silvanesti');
+       $krynn = array('Ansalon','Abanasinia','Solace','Haven','Gateway','Qualinost','Ankatavaka','Pax Tharkas','Ergoth','Newsea','Straights of Schallsea','Plains of Dust','Tarsis','Barren Hills','Que Shu','Citadel of Light','Solinari','Hedge Maze','Tower of High Sorcery','Inn of the Last Home','Last Heroes Tomb','Academy of Sorcery','Gods Row','Temple of Majere','Temple of Kiri-Jolith','Temple of Mishakal','Temple of Zeboim','The Trough','Sad Town','Xak Tsaroth','Zhaman','Skullcap','Saifhum','Karthay','Mithas','Kothas','Silver Dragon Mountain','Silvanesti');
 
        $planet = array_rand($krynn,1);
        $item['location'] = $krynn[$planet];
@@ -149,13 +149,21 @@ function krynn_settings(&$a,&$s) {
 
        /* Add some HTML to the existing form */
 
-       $s .= '<div class="settings-block">';
+    $s .= '<span id="settings_krynn_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_krynn_expanded\'); openClose(\'settings_krynn_inflated\');">';
+       $s .= '<h3>' . t('Krynn') . '</h3>';
+       $s .= '</span>';
+       $s .= '<div id="settings_krynn_expanded" class="settings-block" style="display: none;">';
+       $s .= '<span class="fakelink" onclick="openClose(\'settings_krynn_expanded\'); openClose(\'settings_krynn_inflated\');">';
+       $s .= '<h3>' . t('Krynn') . '</h3>';
+       $s .= '</span>';
+
+
+    $s .= '<div class="settings-block">';
        $s .= '<h3>' . t('Krynn Settings') . '</h3>';
        $s .= '<div id="krynn-enable-wrapper">';
        $s .= '<label id="krynn-enable-label" for="krynn-checkbox">' . t('Enable Krynn Plugin') . '</label>';
        $s .= '<input id="krynn-checkbox" type="checkbox" name="krynn" value="1" ' . $checked . '/>';
-       $s .= '</div><div class="clear"></div>';
-
+        $s .= '</div><div class="clear"></div></div>';
        /* provide a submit button */
 
        $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="krynn-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div></div>';