aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Mailmenu.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 20:56:12 -0700
committerzotlabs <mike@macgirvin.com>2017-03-15 20:56:12 -0700
commit16d750d1f6cf0d2866388269e02445630c4e3464 (patch)
treead44965b8dae98d55322919493ac18d733bd5743 /Zotlabs/Widget/Mailmenu.php
parentdfd626548fc903a4ecffe3241570957a2df9a37a (diff)
downloadvolse-hubzilla-16d750d1f6cf0d2866388269e02445630c4e3464.tar.gz
volse-hubzilla-16d750d1f6cf0d2866388269e02445630c4e3464.tar.bz2
volse-hubzilla-16d750d1f6cf0d2866388269e02445630c4e3464.zip
widgets cont.
Diffstat (limited to 'Zotlabs/Widget/Mailmenu.php')
-rw-r--r--Zotlabs/Widget/Mailmenu.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Mailmenu.php b/Zotlabs/Widget/Mailmenu.php
new file mode 100644
index 000000000..512f7d9c0
--- /dev/null
+++ b/Zotlabs/Widget/Mailmenu.php
@@ -0,0 +1,36 @@
+<?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'),
+ ),
+ '$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'),
+ )
+ ));
+ }
+}