diff options
author | Friendika <info@friendika.com> | 2010-12-23 19:31:53 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-12-23 19:31:53 -0800 |
commit | 1438b3d67de99a68b1790ad07dde88db8a41a2b8 (patch) | |
tree | 3863921df5d5a631356cef120e133182d4f1887b /addon/randplace | |
parent | cbb724e1c026ae13df92dfdfbdbe59dcfb017b75 (diff) | |
download | volse-hubzilla-1438b3d67de99a68b1790ad07dde88db8a41a2b8.tar.gz volse-hubzilla-1438b3d67de99a68b1790ad07dde88db8a41a2b8.tar.bz2 volse-hubzilla-1438b3d67de99a68b1790ad07dde88db8a41a2b8.zip |
more comments plus an id rename
Diffstat (limited to 'addon/randplace')
-rw-r--r-- | addon/randplace/randplace.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/addon/randplace/randplace.php b/addon/randplace/randplace.php index 304745493..e14ae74c7 100644 --- a/addon/randplace/randplace.php +++ b/addon/randplace/randplace.php @@ -141,7 +141,7 @@ function randplace_settings_post($a,$post) { } -/* +/** * Called from the end of the settings form. * Add our own settings info to the page. * @@ -154,19 +154,25 @@ function randplace_settings(&$a,&$s) { if(! local_user()) return; + /* Add our stylesheet so we can match the page layout */ + $a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/addon/randplace/randplace.css' . '" media="all" />' . "\r\n"; + /* Get the current state of our config variable */ + $enabled = get_pconfig(local_user(),'randplace','enable'); $checked = (($enabled) ? ' checked="checked" ' : ''); + /* Add some HTML to the form */ + $s .= '<h3>' . t('Randplace Settings') . '</h3>'; $s .= '<div id="randplace-enable-wrapper">'; - $s .= '<label id="randplace-enable-label" for="randplace-enable">' . t('Enable Randplace Plugin') . '</label>'; + $s .= '<label id="randplace-enable-label" for="randplace-checkbox">' . t('Enable Randplace Plugin') . '</label>'; $s .= '<input id="randplace-checkbox" type="checkbox" name="randplace" value="1" ' . $checked . '/>'; $s .= '</div><div class="clear"></div>'; - // provide another submit button + /* provide another submit button */ $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="submit" class="settings-submit" value="' . t('Submit') . '" /></div>'; |