]> git.mxchange.org Git - friendica.git/blobdiff - mod/message.php
Make frio more consistent by replacing textual links with icons everywhere. (#5415)
[friendica.git] / mod / message.php
index 61af60530249c1df6b8e8d8658ccc392f407661c..5cdf0f233462bfc3ee67fb95e05a5e27f2950bb6 100644 (file)
@@ -109,8 +109,23 @@ function message_content(App $a)
        $myprofile = System::baseUrl() . '/profile/' . $a->user['nickname'];
 
        $tpl = get_markup_template('mail_head.tpl');
+       if ($a->argc > 1 && $a->argv[1] == 'new') {
+               $button = [
+                       'label' => L10n::t('Discard'),
+                       'url' => '/message',
+                       'sel' => 'close',
+               ];
+       } else {
+               $button = [
+                       'label' => L10n::t('New Message'),
+                       'url' => '/message/new',
+                       'sel' => 'new',
+                       'accesskey' => 'm',
+               ];
+       }
        $header = replace_macros($tpl, [
                '$messages' => L10n::t('Messages'),
+               '$button' => $button,
        ]);
 
        if (($a->argc == 3) && ($a->argv[1] === 'drop' || $a->argv[1] === 'dropconv')) {