|
|
|
|
|
|
|
|
ROOT.'content/' // content folders can contain .html templates |
|
|
ROOT.'content/' // content folders can contain .html templates |
|
|
))); |
|
|
))); |
|
|
|
|
|
|
|
|
|
|
|
if(!is_dir($f3->get('TEMP'))) { |
|
|
|
|
|
mkdir($f3->get('TEMP')); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////// |
|
|
///////////////////////// |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
$menu=$f3->get('nav.network.'.$f3->get('default_lang')); |
|
|
$menu=$f3->get('nav.network.'.$f3->get('default_lang')); |
|
|
} |
|
|
} |
|
|
foreach($menu as $k=>$v) { |
|
|
|
|
|
$ex = explode(": ", $menu[$k]); |
|
|
|
|
|
$menu[$k] = array( |
|
|
|
|
|
'name' => trim($ex[0]), |
|
|
|
|
|
'href' => count($ex) > 1 ? $ex[1] : $ex |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
if(is_array($menu)) { |
|
|
|
|
|
foreach($menu as $k=>$v) { |
|
|
|
|
|
$ex = explode(": ", $menu[$k]); |
|
|
|
|
|
$menu[$k] = array( |
|
|
|
|
|
'name' => trim($ex[0]), |
|
|
|
|
|
'href' => count($ex) > 1 ? $ex[1] : $ex |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
$f3->set('navi.network._config.addHome', $f3->get('nav.network.config.addHome')); |
|
|
$f3->set('navi.network._config.addHome', $f3->get('nav.network.config.addHome')); |
|
|
$f3->set('navi.network', $menu); |
|
|
$f3->set('navi.network', $menu); |