forked from friendica/friendica-addons
appnetpost: Inflate/Deflate settings
This commit is contained in:
parent
1974b5d1a8
commit
382f028ea7
1 changed files with 7 additions and 1 deletions
|
@ -52,8 +52,14 @@ function appnetpost_settings(&$a,&$s) {
|
||||||
$def_enabled = get_pconfig(local_user(),'appnetpost','post_by_default');
|
$def_enabled = get_pconfig(local_user(),'appnetpost','post_by_default');
|
||||||
$def_checked = (($def_enabled) ? ' checked="checked" ' : '');
|
$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 .= '<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 .= '<div id="appnetpost-enable-wrapper">';
|
||||||
$s .= '<label id="appnetpost-enable-label" for="appnetpost-checkbox">' . t('Enable App.net Post Plugin') . '</label>';
|
$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 . '/>';
|
$s .= '<input id="appnetpost-checkbox" type="checkbox" name="appnetpost" value="1" ' . $checked . '/>';
|
||||||
|
|
Loading…
Reference in a new issue