]> git.mxchange.org Git - friendica.git/blob - mod/navigation.php
Merge pull request #3991 from MrPetovan/bug/undefined-variables
[friendica.git] / mod / navigation.php
1 <?php
2
3 use Friendica\App;
4 use Friendica\Core\System;
5
6 require_once("include/nav.php");
7
8 function navigation_content(App $a) {
9
10         $nav_info = nav_info($a);
11
12         /**
13          * Build the page
14          */
15
16         $tpl = get_markup_template('navigation.tpl');
17         return replace_macros($tpl, array(
18                 '$baseurl' => System::baseUrl(),
19                 '$sitelocation' => $nav_info['sitelocation'],
20                 '$nav' => $nav_info['nav'],
21                 '$banner' =>  $nav_info['banner'],
22                 '$emptynotifications' => t('Nothing new here'),
23                 '$userinfo' => $nav_info['userinfo'],
24                 '$sel' =>       $a->nav_sel,
25                 '$apps' => $a->apps,
26                 '$clear_notifs' => t('Clear notifications')
27         ));
28
29 }