2018-04-04 23:46:36 +02:00
|
|
|
<!DOCTYPE html>
|
2020-11-01 11:55:34 +01:00
|
|
|
<html class="h-100">
|
2020-12-29 14:39:47 +01:00
|
|
|
<head>
|
2018-04-04 23:46:36 +02:00
|
|
|
<title><?php echo $layout['title'] ?></title>
|
2018-04-15 22:23:11 +02:00
|
|
|
<meta charset="<?php echo CHARSET ?>">
|
2020-12-29 14:39:47 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2018-04-15 22:23:11 +02:00
|
|
|
<meta name="robots" content="noindex,nofollow">
|
2019-02-01 18:00:45 +01:00
|
|
|
<meta name="generator" content="Bludit">
|
2018-04-15 22:23:11 +02:00
|
|
|
|
|
|
|
<!-- Favicon -->
|
2020-12-29 14:39:47 +01:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="<?php echo HTML_PATH_CORE_IMG . 'favicon.png?version=' . BLUDIT_VERSION ?>">
|
2018-04-15 22:23:11 +02:00
|
|
|
|
|
|
|
<!-- CSS -->
|
|
|
|
<?php
|
2021-05-17 20:04:59 +02:00
|
|
|
echo HTML::cssBootstrap();
|
|
|
|
echo HTML::cssBootstrapIcons();
|
2021-09-05 16:18:01 +02:00
|
|
|
echo HTML::cssSelect2();
|
2021-05-17 20:04:59 +02:00
|
|
|
echo HTML::css(array(
|
|
|
|
'01-bludit.css',
|
|
|
|
'02-bootstrap-hacks.css'
|
|
|
|
), DOMAIN_ADMIN_THEME_CSS);
|
|
|
|
|
|
|
|
echo HTML::css(array(
|
|
|
|
'jquery.datetimepicker.min.css',
|
|
|
|
'jquery-ui.min.css',
|
|
|
|
'tagsinput-revisited.min.css'
|
|
|
|
), DOMAIN_CORE_CSS);
|
|
|
|
|
|
|
|
if ($site->darkModeAdmin()) {
|
|
|
|
echo HTML::css(array(
|
|
|
|
'99-darkmode.css'
|
|
|
|
), DOMAIN_ADMIN_THEME_CSS);
|
|
|
|
} else {
|
|
|
|
echo HTML::css(array(
|
|
|
|
'99-lightmode.css'
|
|
|
|
), DOMAIN_ADMIN_THEME_CSS);
|
|
|
|
}
|
2018-04-15 22:23:11 +02:00
|
|
|
?>
|
|
|
|
|
|
|
|
<!-- Javascript -->
|
|
|
|
<?php
|
2021-01-01 23:13:01 +01:00
|
|
|
echo HTML::jquery();
|
|
|
|
echo HTML::jsBootstrap();
|
|
|
|
echo HTML::jsSortable();
|
2021-03-19 20:42:17 +01:00
|
|
|
echo HTML::bootbox();
|
2021-09-05 16:18:01 +02:00
|
|
|
echo HTML::jsSelect2();
|
2021-01-01 23:13:01 +01:00
|
|
|
echo HTML::js(array(
|
|
|
|
'jquery.datetimepicker.full.min.js',
|
|
|
|
'jquery-ui.min.js',
|
|
|
|
'tagsinput-revisited.min.js',
|
|
|
|
'functions.js',
|
|
|
|
'api.js'
|
|
|
|
), DOMAIN_CORE_JS);
|
2018-05-08 00:15:40 +02:00
|
|
|
?>
|
|
|
|
|
2020-12-29 14:39:47 +01:00
|
|
|
<!-- Execute plugins for the admin area inside the HTML <head> tag -->
|
|
|
|
<?php execPluginsByHook('adminHead') ?>
|
2018-04-04 23:46:36 +02:00
|
|
|
</head>
|
|
|
|
|
2021-05-17 20:04:59 +02:00
|
|
|
<body class="h-100">
|
2018-04-15 22:23:11 +02:00
|
|
|
|
2020-12-29 14:39:47 +01:00
|
|
|
<!-- Execute plugins for the admin area inside the HTML <body> at the begginig -->
|
|
|
|
<?php execPluginsByHook('adminBodyBegin') ?>
|
2018-07-10 18:37:46 +02:00
|
|
|
|
2020-12-29 14:39:47 +01:00
|
|
|
<!-- Javascript global variable generated by PHP -->
|
|
|
|
<?php include(PATH_CORE_JS . 'variables.php') ?>
|
2018-05-08 00:15:40 +02:00
|
|
|
|
2020-12-29 14:39:47 +01:00
|
|
|
<div class="container-fluid p-0 m-0 d-flex flex-column h-100">
|
2018-04-13 23:32:29 +02:00
|
|
|
|
2021-01-01 23:13:01 +01:00
|
|
|
<!-- Alerts -->
|
|
|
|
<?php include('html/alerts.php') ?>
|
|
|
|
<!-- End Alerts -->
|
|
|
|
|
2020-12-29 14:39:47 +01:00
|
|
|
<!-- Top Navbar -->
|
2021-10-16 16:17:00 +02:00
|
|
|
<div class="container-fluid p-0 bg-dark d-none d-lg-block">
|
2020-12-29 14:39:47 +01:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<nav class="navbar navbar-dark p-1">
|
|
|
|
<a class="navbar-brand" href="#">
|
2021-09-23 18:57:18 +02:00
|
|
|
<img src="<?php echo DOMAIN_BASE ?>bl-kernel/img/logo.svg" alt="" width="24" height="24" class="d-inline-block align-top">
|
2021-10-16 16:17:00 +02:00
|
|
|
<?php echo (defined('BLUDIT_PRO'))?'BLUDIT PRO':'BLUDIT' ?>
|
2020-12-29 14:39:47 +01:00
|
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-04 23:46:36 +02:00
|
|
|
</div>
|
2021-01-01 23:13:01 +01:00
|
|
|
<!-- End Top Navbar -->
|
2020-12-29 14:39:47 +01:00
|
|
|
|
2021-10-16 16:17:00 +02:00
|
|
|
<!-- Navbar, only for small devices -->
|
|
|
|
<?php include('html/navbar.php') ?>
|
|
|
|
<!-- End Navbar -->
|
|
|
|
|
2020-12-29 14:39:47 +01:00
|
|
|
<!-- Main -->
|
2021-01-01 23:13:01 +01:00
|
|
|
<div class="container h-100 flex-grow-1">
|
2020-12-29 14:39:47 +01:00
|
|
|
<div class="row h-100 flex-grow-1">
|
|
|
|
|
|
|
|
<!-- LEFT Main, display only on large devices -->
|
2021-01-01 23:13:01 +01:00
|
|
|
<div class="sidebar col-lg-2 d-none d-lg-block mt-4">
|
2020-12-29 14:39:47 +01:00
|
|
|
<?php include('html/sidebar.php'); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- RIGHT Main -->
|
2021-01-01 23:13:01 +01:00
|
|
|
<div class="main col-lg-10 mt-2">
|
2020-12-29 14:39:47 +01:00
|
|
|
<?php
|
|
|
|
if (Sanitize::pathFile(PATH_ADMIN_VIEWS . $layout['view'] . '.php')) {
|
|
|
|
include(PATH_ADMIN_VIEWS . $layout['view'] . '.php');
|
|
|
|
} elseif ($layout['plugin'] && method_exists($layout['plugin'], 'adminView')) {
|
|
|
|
echo $layout['plugin']->adminView();
|
|
|
|
} else {
|
|
|
|
echo '<h1 class="text-center">' . $L->g('Page not found') . '</h1>';
|
|
|
|
echo '<h2 class="text-center">' . $L->g('Choose a page from the sidebar.') . '</h2>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-04 23:46:36 +02:00
|
|
|
</div>
|
2021-01-01 23:13:01 +01:00
|
|
|
<!-- End Main -->
|
2020-12-29 14:39:47 +01:00
|
|
|
|
2018-04-04 23:46:36 +02:00
|
|
|
</div>
|
|
|
|
|
2020-12-29 14:39:47 +01:00
|
|
|
<!-- Execute plugins for the admin area inside the HTML <body> at the end -->
|
|
|
|
<?php execPluginsByHook('adminBodyEnd') ?>
|
2018-04-04 23:46:36 +02:00
|
|
|
|
|
|
|
</body>
|
2021-01-01 23:13:01 +01:00
|
|
|
|
2020-12-29 14:39:47 +01:00
|
|
|
</html>
|