mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 22:55:13 +00:00
39 lines
1 KiB
PHP
39 lines
1 KiB
PHP
<?php
|
|
|
|
namespace Zotlabs\Widget;
|
|
|
|
class Mailmenu
|
|
{
|
|
|
|
public function widget($arr)
|
|
{
|
|
|
|
if (!local_channel()) {
|
|
return;
|
|
}
|
|
|
|
return replace_macros(get_markup_template('message_side.tpl'), array(
|
|
'$title' => t('Private Mail Menu'),
|
|
'$combined' => array(
|
|
'label' => t('Combined View'),
|
|
'url' => z_root() . '/mail/combined',
|
|
'sel' => (argv(1) == 'combined'),
|
|
),
|
|
'$inbox' => array(
|
|
'label' => t('Inbox'),
|
|
'url' => z_root() . '/mail/inbox',
|
|
'sel' => (argv(1) == 'inbox'),
|
|
),
|
|
'$outbox' => array(
|
|
'label' => t('Outbox'),
|
|
'url' => z_root() . '/mail/outbox',
|
|
'sel' => (argv(1) == 'outbox'),
|
|
),
|
|
'$new' => array(
|
|
'label' => t('New Message'),
|
|
'url' => z_root() . '/mail/new',
|
|
'sel' => (argv(1) == 'new'),
|
|
)
|
|
));
|
|
}
|
|
}
|