2013-01-26 20:52:21 +01:00
|
|
|
<?php
|
|
|
|
|
2017-04-30 06:07:00 +02:00
|
|
|
use Friendica\App;
|
2017-08-26 08:04:21 +02:00
|
|
|
use Friendica\Core\System;
|
2017-04-30 06:07:00 +02:00
|
|
|
|
2013-01-26 20:52:21 +01:00
|
|
|
require_once("include/nav.php");
|
|
|
|
|
2017-01-09 13:14:25 +01:00
|
|
|
function navigation_content(App $a) {
|
2013-01-26 20:52:21 +01:00
|
|
|
|
|
|
|
$nav_info = nav_info($a);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the page
|
|
|
|
*/
|
|
|
|
|
|
|
|
$tpl = get_markup_template('navigation.tpl');
|
|
|
|
return replace_macros($tpl, array(
|
2016-12-19 14:26:13 +01:00
|
|
|
'$baseurl' => App::get_baseurl(),
|
2013-01-26 20:52:21 +01:00
|
|
|
'$sitelocation' => $nav_info['sitelocation'],
|
|
|
|
'$nav' => $nav_info['nav'],
|
|
|
|
'$banner' => $nav_info['banner'],
|
|
|
|
'$emptynotifications' => t('Nothing new here'),
|
|
|
|
'$userinfo' => $nav_info['userinfo'],
|
|
|
|
'$sel' => $a->nav_sel,
|
|
|
|
'$apps' => $a->apps,
|
|
|
|
'$clear_notifs' => t('Clear notifications')
|
|
|
|
));
|
2016-02-07 15:11:34 +01:00
|
|
|
|
2013-01-26 20:52:21 +01:00
|
|
|
}
|