yourls: inflate/deflate settings

pull/166/head
Michael Vogel 2013-11-30 21:27:20 +01:00
parent 5c015548db
commit c92ab6d04a
1 changed files with 8 additions and 2 deletions

View File

@ -49,10 +49,16 @@ function yourls_addon_settings(&$a,&$s) {
$yourls_ssl = get_config('yourls', 'ssl1'); $yourls_ssl = get_config('yourls', 'ssl1');
$s .= '<div class="settings-block">'; $s .= '<span id="settings_yourls_inflated" class="settings-block fakelink" style="display: block;" onclick="openClose(\'settings_yourls_expanded\'); openClose(\'settings_yourls_inflated\');">';
$s .= '<h3>' . t('YourLS Settings') . '</h3>'; $s .= '<h3>' . t('YourLS Settings') . '</h3>';
$s .= '</span>';
$s .= '<div id="settings_yourls_expanded" class="settings-block" style="display: none;">';
$s .= '<span class="fakelink" onclick="openClose(\'settings_yourls_expanded\'); openClose(\'settings_yourls_inflated\');">';
$s .= '<h3>' . t('YourLS Settings') . '</h3>';
$s .= '</span>';
$s .= '<div id="yourls-url-wrapper">'; $s .= '<div id="yourls-url-wrapper">';
$s .= '<label id="yourls-url-label" for="yourls-url">' . t('URL: http://') . '</label>'; $s .= '<label id="yourls-url-label" for="yourls-url">' . t('URL: http://') . '</label>';
$s .= '<input id="yourls-url" type="text" name="yourls_url" value="' . $yourls_url .'" />'; $s .= '<input id="yourls-url" type="text" name="yourls_url" value="' . $yourls_url .'" />';