/*
* Not all classes are loaded this way, only the classes which can change for different libraries like bootstrap3, bootstrap4, etc.
*/
public static function getStyles()
{
if (empty(self::$styles)) {
$app = Factory::getApplication();
$pC = PhocacartUtils::getComponentParameters();
$pos = PhocacartPos::isPos();
$admin = $app->isClient('administrator');
if ($pos || $admin) {
$theme = 'bs5';
$icons = 'fa5';
// only icons are now active for admin
} else {
$theme = $pC->get('theme', 'bs5');
$icons = $pC->get('icon_type', 'fa5');
}
self::$styles = self::loadStyles($theme, $icons);
}
return self::$styles;
}