|
|
@@ -21,10 +21,7 @@ $f3 = \Base::instance(); |
|
|
|
$f3->set('DEBUG', 0); |
|
|
|
$f3->set('CACHE', FALSE); |
|
|
|
$f3->set('AUTOLOAD', ROOT.'app/'); |
|
|
|
$f3->set('UI', implode(';', array( |
|
|
|
ROOT.'app/views/', |
|
|
|
ROOT.'content/' // content folders can contain .html templates |
|
|
|
))); |
|
|
|
|
|
|
|
|
|
|
|
if (!is_dir($f3->get('TEMP'))) { |
|
|
|
mkdir($f3->get('TEMP')); |
|
|
@@ -74,7 +71,12 @@ if(array_key_exists($f3->get('LANG'), $f3->get('content'))) { |
|
|
|
$content_dir=$f3->get('content.'.$f3->get('default_lang')); |
|
|
|
} |
|
|
|
$f3->set('CONTENT', $content_dir); |
|
|
|
$f3->set('CONTENT_BASE', array_shift(explode("/",$f3->get('CONTENT'))).'/'); |
|
|
|
|
|
|
|
$f3->set('UI', implode(';', array( |
|
|
|
ROOT.'app/views/', |
|
|
|
ROOT.$f3->get('CONTENT_BASE') // content folders can contain .html templates |
|
|
|
))); |
|
|
|
|
|
|
|
function menu_recursion($m,$root="") { |
|
|
|
$f3 = \Base::instance(); |
|
|
@@ -216,8 +218,10 @@ if ($f3->get("GET.admin")) { |
|
|
|
|
|
|
|
// HTML preloading of images |
|
|
|
// this could also find some better place |
|
|
|
|
|
|
|
$f3->mset(array( |
|
|
|
'cached_images' => array(\Controller\Page::check_folder_for_backgroundimage('content/')) |
|
|
|
'cached_images' => array(\Controller\Page::check_folder_for_backgroundimage($f3->get('CONTENT_BASE')) |
|
|
|
) |
|
|
|
)); |
|
|
|
|
|
|
|
|