]> git.mxchange.org Git - friendica.git/commitdiff
more comments plus an id rename
authorFriendika <info@friendika.com>
Fri, 24 Dec 2010 03:31:53 +0000 (19:31 -0800)
committerFriendika <info@friendika.com>
Fri, 24 Dec 2010 03:31:53 +0000 (19:31 -0800)
addon/randplace/randplace.php
util/typo.php

index 30474549327bac28e593cb51adc4dedc82137545..e14ae74c7c8f0035fa3e0a3a03eb43950a1b3227 100644 (file)
@@ -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>';
 
index 67fa7dc90d2c77f77f39180d17c4bed5a4182b3f..be5307ab31b13bf087c6c88bb9a073d8d7d8233d 100644 (file)
@@ -20,3 +20,7 @@
        $files = glob('include/*.php');
        foreach($files as $file)
                include_once($file);
+
+       $files = glob('addon/*.php');
+       foreach($files as $file)
+               include_once($file);