Make frio more consistent by replacing textual links with icons everywhere. (#5415)
* Make frio more consistent by replacing textual links with icons everywhere I could find them. * [frio] Move profile add link to icon.
This commit is contained in:
parent
eded252a40
commit
303aef34f0
14 changed files with 121 additions and 58 deletions
|
@ -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')) {
|
||||
|
|
|
@ -1154,9 +1154,9 @@ function photos_content(App $a)
|
|||
}
|
||||
|
||||
if ($order_field === 'posted') {
|
||||
$order = [L10n::t('Show Newest First'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album)];
|
||||
$order = [L10n::t('Show Newest First'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album), 'oldest'];
|
||||
} else {
|
||||
$order = [L10n::t('Show Oldest First'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album) . '?f=&order=posted'];
|
||||
$order = [L10n::t('Show Oldest First'), 'photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album) . '?f=&order=posted', 'newest'];
|
||||
}
|
||||
|
||||
$photos = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue