]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/messageform.php
Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
[quix0rs-gnu-social.git] / lib / messageform.php
index bd46d7389df4d824b51cf74bf389060626a5e5de..acd30e3b38d6fd8eadc5fce3c2009648c5be6ba2 100644 (file)
@@ -141,7 +141,7 @@ class MessageForm extends Form
         unset($mutual_users);
 
         if (count($mutual) == 1) {
-            // TRANS Entry in drop-down selection box in direct-message inbox/outbox when no one is available to message.
+            // TRANS: Entry in drop-down selection box in direct-message inbox/outbox when no one is available to message.
             $mutual[0] = _('No mutual subscribers.');
         }
 
@@ -178,4 +178,32 @@ class MessageForm extends Form
                                            // TRANS: Button text for sending a direct notice.
                                            'value' => _m('Send button for sending notice', 'Send')));
     }
+
+
+    /**
+     * Show the form
+     *
+     * Uses a recipe to output the form.
+     *
+     * @return void
+     * @see Widget::show()
+     */
+
+    function show()
+    {
+        $this->elementStart('div', 'input_forms');
+        $this->elementStart(
+            'div',
+            array(
+                'id'    => 'input_form_direct',
+                'class' => 'input_form current nonav'
+            )
+        );
+
+        parent::show();
+
+        $this->elementEnd('div');
+        $this->elementEnd('div');
+
+    }
 }