]> git.mxchange.org Git - friendica-addons.git/blobdiff - snautofollow/snautofollow.php
Merge pull request #408 from tobiasd/2017ß320-pledgie
[friendica-addons.git] / snautofollow / snautofollow.php
index 2efc2128c021904d9562ae6fa1bfce55fbe4c955..2d953d5b371b7da8f8ef73cf424a16da53c7609c 100644 (file)
@@ -4,8 +4,7 @@
  * Description: Automatic follow/friend of statusnet people who mention/follow you
  * Version: 1.0
  * Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
- * 
- *
+ * Status: Unsupported
  */
 
 
@@ -49,11 +48,17 @@ function snautofollow_settings(&$a,&$s) {
 
        $snautofollow_checked = (($snautofollow) ? ' checked="checked" ' : '');
 
-       
+
        /* Add some HTML to the existing form */
 
-       $s .= '<div class="settings-block">';
-       $s .= '<h3>' . t('StatusNet AutoFollow Settings') . '</h3>';
+       $s .= '<span id="settings_snautofollow_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_snautofollow_expanded\'); openClose(\'settings_snautofollow_inflated\');">';
+       $s .= '<h3>' . t('StatusNet AutoFollow') . '</h3>';
+       $s .= '</span>';
+       $s .= '<div id="settings_snautofollow_expanded" class="settings-block" style="display: none;">';
+       $s .= '<span class="fakelink" onclick="openClose(\'settings_snautofollow_expanded\'); openClose(\'settings_snautofollow_inflated\');">';
+       $s .= '<h3>' . t('StatusNet AutoFollow') . '</h3>';
+       $s .= '</span>';
+
        $s .= '<div id="snautofollow-wrapper">';
        $s .= '<label id="snautofollow-label" for="snautofollow-checkbox">' . t('Automatically follow any StatusNet followers/mentioners') . '</label>';
        $s .= '<input id="snautofollow-checkbox" type="checkbox" name="snautofollow" value="1" ' . $snautofollow_checked . '/>';
@@ -61,6 +66,6 @@ function snautofollow_settings(&$a,&$s) {
 
        /* provide a submit button */
 
-       $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="snautofollow-submit" class="settings-submit" value="' . t('Submit') . '" /></div></div>';
+       $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="snautofollow-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div></div>';
 
 }