]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/form.php
Updated Cloudy theme default avatars and minor CSS
[quix0rs-gnu-social.git] / lib / form.php
index 5c75bb65fa20747a80aeda4f748fda7475ae990c..5317df4715946e9638a1b32905f603f3652ca299 100644 (file)
@@ -65,7 +65,8 @@ class Form extends Widget
     {
         $this->out->elementStart('form',
                                  array('id' => $this->id(),
-                                       'method' => 'POST',
+                                       'class' => $this->formClass(),
+                                       'method' => 'post',
                                        'action' => $this->action()));
         $this->out->elementStart('fieldset');
         $this->formLegend();
@@ -87,7 +88,6 @@ class Form extends Widget
         $this->out->hidden('token', common_session_token());
     }
 
-
     /**
      * Name of the form
      *
@@ -100,7 +100,6 @@ class Form extends Widget
     {
     }
 
-
     /**
      * Visible or invisible data elements
      *
@@ -153,4 +152,15 @@ class Form extends Widget
     function action()
     {
     }
+
+    /**
+     * Class of the form.
+     *
+     * @return string the form's class
+     */
+
+    function formClass()
+    {
+        return 'form';
+    }
 }