aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Mailmenu.php
blob: ca022c8076f77a069062b69f37db89c9798931be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php

namespace Zotlabs\Widget;

class Mailmenu {

	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' || argc() == 1),
			),
			'$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'),
			)
*/
		));
	}
}