appnetpost: Inflate/Deflate settings

This commit is contained in:
Michael Vogel 2013-11-30 21:18:03 +01:00
parent 1974b5d1a8
commit 382f028ea7

View File

@ -52,8 +52,14 @@ function appnetpost_settings(&$a,&$s) {
$def_enabled = get_pconfig(local_user(),'appnetpost','post_by_default');
$def_checked = (($def_enabled) ? ' checked="checked" ' : '');
$s .= '<div class="settings-block">';
$s .= '<span id="settings_appnetpost_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_appnetpost_expanded\'); openClose(\'settings_appnetpost_inflated\');">';
$s .= '<h3>' . t('App.net Post Settings') . '</h3>';
$s .= '</span>';
$s .= '<div id="settings_appnetpost_expanded" class="settings-block" style="display: none;">';
$s .= '<span class="fakelink" onclick="openClose(\'settings_appnetpost_expanded\'); openClose(\'settings_appnetpost_inflated\');">';
$s .= '<h3>' . t('App.net Post Settings') . '</h3>';
$s .= '</span>';
$s .= '<div id="appnetpost-enable-wrapper">';
$s .= '<label id="appnetpost-enable-label" for="appnetpost-checkbox">' . t('Enable App.net Post Plugin') . '</label>';
$s .= '<input id="appnetpost-checkbox" type="checkbox" name="appnetpost" value="1" ' . $checked . '/>';