46function toggle_css_file(
string $mod_dir,
string $base_css_file =
'frontend.css' ): bool
48 global $page_id, $section_id, $TEXT;
53 if (!file_exists(LEPTON_PATH .
'/modules/edit_module_files.php'))
59 if (!in_array ($base_css_file, [
'frontend.css',
'css/frontend.css',
'backend.css',
'css/backend.css']))
65 switch ($base_css_file)
68 $toggle_file =
'backend.css';
72 $toggle_file =
'frontend.css';
75 case 'css/frontend.css':
76 $toggle_file =
'css/backend.css';
79 case 'css/backend.css':
80 $toggle_file =
'css/frontend.css';
88 $toggle_file_label = str_replace(
"css/",
"", $toggle_file);
92 $oTWIG = lib_twig_box::getInstance();
94 $oTWIG->loader->prependPath( LEPTON_PATH.
"/templates/".DEFAULT_THEME.
"/templates/" );
97 'LEPTON_URL' => LEPTON_URL,
98 'page_id' => $page_id,
99 'section_id' => $section_id,
100 'mod_dir' => $mod_dir,
101 'edit_file' => $toggle_file_label,
102 'label_submit' => ucfirst($toggle_file_label)
106 'edit_module_css_form.lte',