/** * Establecer el tema visual a utilizar * * @param bool $force Forzar la detección del tema para los inicios de sesión */ public static function setTheme($force = false) { $theme = Session::getTheme(); if (empty($theme) || $force === true) { $Theme = new Themes(); $userTheme = $Theme->getUserTheme(); $globalTheme = $Theme->getGlobalTheme(); $theme = $userTheme ? $userTheme : $globalTheme; Session::setTheme($theme); } self::setThemePaths($theme); Session::setTheme($theme); }