|
|
|
|
|
|
|
|
$f3->set('url', $url); |
|
|
$f3->set('url', $url); |
|
|
$f3->set('is_home', in_array($url[0],["/","/home"])); |
|
|
$f3->set('is_home', in_array($url[0],["/","/home"])); |
|
|
$f3->set('level', 1); // this is for templates, to be abl to count nesting |
|
|
$f3->set('level', 1); // this is for templates, to be abl to count nesting |
|
|
read_menu("main"); |
|
|
|
|
|
read_menu("footer"); |
|
|
|
|
|
#read_menu("network"); |
|
|
|
|
|
read_menu("languages"); |
|
|
|
|
|
read_menu("mobilelang"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (is_array($f3->get('nav'))) { |
|
|
|
|
|
foreach ($f3->get('nav') as $k=>$v) { |
|
|
|
|
|
read_menu($k); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|