refactor: unify theme HTML class handling across multiple files for consistency

This commit is contained in:
Zack Spear
2025-04-07 15:11:59 -07:00
parent 199f4ca111
commit cb91ebc272
4 changed files with 4 additions and 6 deletions

View File

@@ -27,10 +27,9 @@ $var = parse_ini_file("/var/local/emhttp/var.ini");
require_once "$docroot/plugins/dynamix/include/ThemeHelper.php";
$themeHelper = new ThemeHelper($display['theme']);
$themeName = $themeHelper->getThemeName();
$themeHtmlClass = $themeHelper->getThemeHtmlClass();
?>
<!DOCTYPE HTML>
<html <?=$display['rtl']?>lang="<?=strtok($locale,'_')?:'en'?>" class="<?= $themeHtmlClass ?>">
<html <?=$display['rtl']?>lang="<?=strtok($locale,'_')?:'en'?>" class="<?= $themeHelper->getThemeHtmlClass() ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">