diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-08 19:43:03 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-08 19:43:03 -0700 |
commit | 23812e5b48b7a4d4f0c275c0fbb3d244a582397c (patch) | |
tree | aecb91a4be080ecd8cfaf6bfccf3a1613d88588c /Zotlabs | |
parent | c37908f344ecbac3ee60e3e36701161a4047d639 (diff) | |
download | volse-hubzilla-23812e5b48b7a4d4f0c275c0fbb3d244a582397c.tar.gz volse-hubzilla-23812e5b48b7a4d4f0c275c0fbb3d244a582397c.tar.bz2 volse-hubzilla-23812e5b48b7a4d4f0c275c0fbb3d244a582397c.zip |
ability to pin apps to the navbar when using named navbars
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php index c4f4038dc..f13fbe362 100644 --- a/Zotlabs/Lib/Apps.php +++ b/Zotlabs/Lib/Apps.php @@ -383,6 +383,13 @@ class Apps { $install_action = (($installed) ? t('Update') : t('Install')); $icon = ((strpos($papp['photo'],'icon:') === 0) ? substr($papp['photo'],5) : ''); + if($mode === 'navbar') { + return replace_macros(get_markup_template('app_nav.tpl'),array( + '$app' => $papp, + '$icon' => $icon, + )); + } + return replace_macros(get_markup_template('app.tpl'),array( '$app' => $papp, '$icon' => $icon, |