]> git.mxchange.org Git - friendica-addons.git/commitdiff
Add HTML code to planets.php as requested to match spec
authorDylan Thiedeke <dylan@thiedeke.com.au>
Tue, 7 Jul 2015 22:28:32 +0000 (08:28 +1000)
committerDylan Thiedeke <dylan@thiedeke.com.au>
Tue, 7 Jul 2015 22:28:32 +0000 (08:28 +1000)
planets/planets.php

index 72698cb9b3e71ed1a67f6862b28baa192f8ebb6e..a64b2abb02f266d1cf68300aff2d5cef36389d72 100755 (executable)
@@ -146,12 +146,20 @@ function planets_settings(&$a,&$s) {
 
        /* Add some HTML to the existing form */
 
-       $s .= '<div class="settings-block">';
+    $s .= '<span id="settings_planets_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_planets_expanded\'); openClose(\'settings_planets_inflated\');">';
+       $s .= '<h3>' . t('Planets') . '</h3>';
+       $s .= '</span>';
+       $s .= '<div id="settings_planets_expanded" class="settings-block" style="display: none;">';
+       $s .= '<span class="fakelink" onclick="openClose(\'settings_planets_expanded\'); openClose(\'settings_planets_inflated\');">';
+       $s .= '<h3>' . t('Planets') . '</h3>';
+       $s .= '</span>';
+
+    $s .= '<div class="settings-block">';
        $s .= '<h3>' . t('Planets Settings') . '</h3>';
        $s .= '<div id="planets-enable-wrapper">';
        $s .= '<label id="planets-enable-label" for="planets-checkbox">' . t('Enable Planets Plugin') . '</label>';
        $s .= '<input id="planets-checkbox" type="checkbox" name="planets" value="1" ' . $checked . '/>';
-       $s .= '</div><div class="clear"></div>';
+       $s .= '</div><div class="clear"></div></div>';
 
        /* provide a submit button */