.
*/
use Models\Module;
use Util\FileSystem;
include_once __DIR__.'/../core.php';
$paths = App::getPaths();
$user = Auth::user();
$pageTitle = !empty($pageTitle) ? $pageTitle : $structure->getTranslation('title');
$lang = (empty($lang) || $lang == '|lang|') ? 'it_IT' : $lang;
$messages = flash()->getMessages();
echo '
'.$pageTitle.' - '.tr('OpenSTAManager').'
';
if (file_exists(base_dir().'/manifest.json')) {
echo '
';
}
// CSS
foreach (App::getAssets()['css'] as $style) {
echo '
';
}
// Print CSS
foreach (App::getAssets()['print'] as $style) {
echo '
';
}
if (Auth::check()) {
echo '
';
} else {
echo '
';
}
// JS
foreach (App::getAssets()['js'] as $js) {
echo '
';
}
// Impostazioni di default per gli alert
echo '
';
if (Auth::check()) {
if (setting('Abilita esportazione Excel e PDF')) {
echo '
';
}
if (setting('Attiva scorciatoie da tastiera')) {
echo '';
echo '
';
}
}
// Set the group theme
if (isset($user)) {
if ($user->getThemeAttribute()) {
$theme = $user->getThemeAttribute();
}
}
$settings_collapse = session_get('settings.sidebar-collapse') ? 1 : 0;
$hide_sidebar = Auth::check() && (setting('Nascondere la barra sinistra di default') || $settings_collapse);
echo '
';
if (Auth::check()) {
$calendar_color_label = ($_SESSION['period_start'] != date('Y').'-01-01' || $_SESSION['period_end'] != date('Y').'-12-31') ? 'danger' : 'default';
echo '