startpage: show/hide config

pull/176/head
Tobias Diekershoff 2014-01-20 08:59:16 +01:00
parent 834966b583
commit 24237d33e6
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -79,8 +79,13 @@ function startpage_settings(&$a,&$s) {
/* Add some HTML to the existing form */ /* Add some HTML to the existing form */
$s .= '<div class="settings-block">'; $s .= '<span id="settings_startpage_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_startpage_expanded\'); openClose(\'settings_startpage_inflated\');">';
$s .= '<h3>' . t('Startpage Settings') . '</h3>'; $s .= '<h3>' . t('Startpage Settings') . '</h3>';
$s .= '</span>';
$s .= '<div id="settings_startpage_expanded" class="settings-block" style="display: none;">';
$s .= '<span class="fakelink" onclick="openClose(\'settings_startpage_expanded\'); openClose(\'settings_startpage_inflated\');">';
$s .= '<h3>' . t('Startpage Settings') . '</h3>';
$s .= '</span>';
$s .= '<div id="startpage-page-wrapper">'; $s .= '<div id="startpage-page-wrapper">';
$s .= '<label id="startpage-page-label" for="startpage-page">' . t('Home page to load after login - leave blank for profile wall') . '</label>'; $s .= '<label id="startpage-page-label" for="startpage-page">' . t('Home page to load after login - leave blank for profile wall') . '</label>';
$s .= '<input id="startpage-page" type="text" name="startpage" value="' . $page . '" />'; $s .= '<input id="startpage-page" type="text" name="startpage" value="' . $page . '" />';