]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added @title to user_action inputs and anchor and form legends
authorsarven <csarven@plantard.controlezvous.ca>
Wed, 21 Jan 2009 07:14:43 +0000 (07:14 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Wed, 21 Jan 2009 07:14:43 +0000 (07:14 +0000)
actions/showstream.php
lib/blockform.php
lib/nudgeform.php
lib/subscribeform.php
lib/unblockform.php
lib/unsubscribeform.php

index 6ed6abc9e76f13cd25715e5110f988a112f79de0..76249d14db517828fc5020e7bc190a6f4ffec95f 100644 (file)
@@ -331,8 +331,9 @@ class ShowstreamAction extends Action
         $user = User::staticGet('id', $this->profile->id);
         if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) {
            $this->elementStart('li', array('id' => 'user_send-a-message'));
-            $this->element('a', array('href' => common_local_url('newmessage', array('to' => $user->id))),
-                           _('Send a message'));
+            $this->element('a', array('href' => common_local_url('newmessage', array('to' => $user->id)),
+                                      'title' => _('Send a direct message to this user')),
+                           _('Message'));
             $this->elementEnd('li');
 
             if ($user->email && $user->emailnotifynudge) {
index b7790681d82c14041cb72cc611678347eb391309..ea22c1cec02803f4af978dbba51c90011244637f 100644 (file)
@@ -112,6 +112,18 @@ class BlockForm extends Form
         return common_local_url('block');
     }
 
+
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Block this user'));
+    }
+
+
     /**
      * Data elements of the form
      *
@@ -138,6 +150,6 @@ class BlockForm extends Form
 
     function formActions()
     {
-        $this->out->submit('submit', _('Block'));
+        $this->out->submit('submit', _('block'), 'submit', null, _('Block this user'));
     }
 }
index 6374a76986ccc9b92c5ce3c2a2ba03ab878f5eee..7380462a7d9d0e129f3446fed640e2bd702ed592 100644 (file)
@@ -105,6 +105,18 @@ class NudgeForm extends Form
                                 array('nickname' => $this->profile->nickname));
     }
 
+
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Nudge this user'));
+    }
+
+
     /**
      * Action elements
      *
@@ -113,6 +125,6 @@ class NudgeForm extends Form
 
     function formActions()
     {
-        $this->out->submit('submit', _('Send a nudge'));
+        $this->out->submit('submit', _('Nudge'), 'submit', null, _('Send a nudge to this user'));
     }
 }
index 231e740a7283eac7195a8e6440a02a9084e9ad1a..c65134e461cc34470400525cd947630ce5bf4c7b 100644 (file)
@@ -104,6 +104,17 @@ class SubscribeForm extends Form
         return common_local_url('subscribe');
     }
 
+
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Subscribe to this user'));
+    }
+
     /**
      * Data elements of the form
      *
@@ -125,6 +136,6 @@ class SubscribeForm extends Form
 
     function formActions()
     {
-        $this->out->submit('submit', _('Subscribe'));
+        $this->out->submit('submit', _('Subscribe'), 'submit', null, _('Subscribe to this user'));
     }
 }
index 025011a829c6d27ce5d38ff804f81013a5df90aa..6a8831b291e1a3a72968845e18aaa1482d3c2788 100644 (file)
@@ -110,6 +110,17 @@ class UnblockForm extends Form
         return common_local_url('unblock');
     }
 
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Unblock this user'));
+    }
+
+
     /**
      * Data elements of the form
      *
@@ -136,6 +147,6 @@ class UnblockForm extends Form
 
     function formActions()
     {
-        $this->out->submit('submit', _('Unblock'));
+        $this->out->submit('submit', _('Unblock'), 'submit', null, _('Unblock this user'));
     }
 }
index 092369db7bbf6fb64b8344efd4276b59b416b497..ce91a13407a9d8d1db11038d60d8759b5b4fcf65 100644 (file)
@@ -103,6 +103,16 @@ class UnsubscribeForm extends Form
         return common_local_url('unsubscribe');
     }
 
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Unsubscribe from this user'));
+    }
+
     /**
      * Data elements of the form
      *
@@ -124,6 +134,6 @@ class UnsubscribeForm extends Form
 
     function formActions()
     {
-        $this->out->submit('submit', _('Unsubscribe'));
+        $this->out->submit('submit', _('Unsubscribe'), 'submit', null, _('Unsubscribe from this user'));
     }
 }