cleanup some ancient code and fix check for $path so that it will not pass if theme_include() will not return anything. also add an empty zen.css file for the zen template

This commit is contained in:
Mario
2024-03-17 22:21:55 +01:00
parent 732dbfd6f5
commit b05845f495
4 changed files with 8 additions and 18 deletions

View File

@@ -2331,8 +2331,6 @@ function construct_page() {
require_once(theme_include('theme_init.php'));
$installing = false;
$uid = ((App::$profile_uid) ? App::$profile_uid : local_channel());
$navbar = get_config('system', 'navbar', 'default');
@@ -2344,14 +2342,10 @@ function construct_page() {
$navbar = App::$layout['navbar'];
}
if (App::$module == 'setup') {
$installing = true;
}
else {
if (App::$module !== 'setup') {
nav($navbar);
}
$current_theme = Zotlabs\Render\Theme::current();
// logger('current_theme: ' . print_r($current_theme,true));
// Zotlabs\Render\Theme::debug();
@@ -2372,7 +2366,7 @@ function construct_page() {
if (($p = theme_include('mod_' . App::$module . '.css')) != '')
head_add_css('mod_' . App::$module . '.css');
head_add_css(Zotlabs\Render\Theme::url($installing));
head_add_css(Zotlabs\Render\Theme::url());
if (($p = theme_include('mod_' . App::$module . '.js')) != '')
head_add_js('mod_' . App::$module . '.js');