init
This commit is contained in:
parent
38b3a72c92
commit
a0b9c44a93
@ -6,7 +6,6 @@ class autoload {
|
|||||||
require_once 'core/class/router.class.php';
|
require_once 'core/class/router.class.php';
|
||||||
require_once 'core/class/helper.class.php';
|
require_once 'core/class/helper.class.php';
|
||||||
require_once 'core/class/template.class.php';
|
require_once 'core/class/template.class.php';
|
||||||
require_once 'core/class/layout.class.php';
|
|
||||||
require_once 'core/class/sitemap/Runtime.class.php';
|
require_once 'core/class/sitemap/Runtime.class.php';
|
||||||
require_once 'core/class/sitemap/FileSystem.class.php';
|
require_once 'core/class/sitemap/FileSystem.class.php';
|
||||||
require_once 'core/class/sitemap/SitemapGenerator.class.php';
|
require_once 'core/class/sitemap/SitemapGenerator.class.php';
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -475,7 +475,7 @@ class core extends common
|
|||||||
public function router()
|
public function router()
|
||||||
{
|
{
|
||||||
|
|
||||||
$layout = new layout($this);
|
//$layout = new layout($this);
|
||||||
|
|
||||||
// Installation
|
// Installation
|
||||||
if (
|
if (
|
||||||
@ -919,6 +919,10 @@ class core extends common
|
|||||||
'metaDescription' => $this->getData(['locale', 'metaDescription'])
|
'metaDescription' => $this->getData(['locale', 'metaDescription'])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
echo microtime(true) - self::$time;
|
||||||
|
|
||||||
|
// 0.025479078292847
|
||||||
|
|
||||||
switch ($this->output['display']) {
|
switch ($this->output['display']) {
|
||||||
// Layout brut
|
// Layout brut
|
||||||
case self::DISPLAY_RAW:
|
case self::DISPLAY_RAW:
|
||||||
|
1355
core/core.php
1355
core/core.php
File diff suppressed because it is too large
Load Diff
@ -4,21 +4,21 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<?php $layout->showMetaTitle(); ?>
|
<?php $this->showMetaTitle(); ?>
|
||||||
<?php $layout->showMetaDescription(); ?>
|
<?php $this->showMetaDescription(); ?>
|
||||||
<?php $layout->showMetaType(); ?>
|
<?php $this->showMetaType(); ?>
|
||||||
<?php $layout->showMetaImage(); ?>
|
<?php $this->showMetaImage(); ?>
|
||||||
<?php $layout->showFavicon(); ?>
|
<?php $this->showFavicon(); ?>
|
||||||
<?php $layout->showVendor(); ?>
|
<?php $this->showVendor(); ?>
|
||||||
<?php $layout->showStyle(); ?>
|
<?php $this->showStyle(); ?>
|
||||||
<?php $layout->showFonts(); ?>
|
<?php $this->showFonts(); ?>
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css">
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/blank.css">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/blank.css">
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>theme.css?<?php echo md5_file(self::DATA_DIR.'theme.css'); ?>">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>theme.css?<?php echo md5_file(self::DATA_DIR.'theme.css'); ?>">
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>custom.css?<?php echo md5_file(self::DATA_DIR.'custom.css'); ?>">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>custom.css?<?php echo md5_file(self::DATA_DIR.'custom.css'); ?>">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?php $layout->showContent(); ?>
|
<?php $this->showContent(); ?>
|
||||||
<?php $layout->showScript(); ?>
|
<?php $this->showScript(); ?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -4,24 +4,24 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<?php $layout->showMetaTitle(); ?>
|
<?php $this->showMetaTitle(); ?>
|
||||||
<?php $layout->showMetaDescription(); ?>
|
<?php $this->showMetaDescription(); ?>
|
||||||
<?php $layout->showMetaType(); ?>
|
<?php $this->showMetaType(); ?>
|
||||||
<?php $layout->showMetaImage(); ?>
|
<?php $this->showMetaImage(); ?>
|
||||||
<?php $layout->showFavicon(); ?>
|
<?php $this->showFavicon(); ?>
|
||||||
<?php $layout->showVendor(); ?>
|
<?php $this->showVendor(); ?>
|
||||||
<?php $layout->showStyle(); ?>
|
<?php $this->showStyle(); ?>
|
||||||
<?php $layout->showFonts(); ?>
|
<?php $this->showFonts(); ?>
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css">
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/light.css">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/light.css">
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>theme.css?<?php echo md5_file(self::DATA_DIR.'theme.css'); ?>">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>theme.css?<?php echo md5_file(self::DATA_DIR.'theme.css'); ?>">
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>custom.css?<?php echo md5_file(self::DATA_DIR.'custom.css'); ?>">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>custom.css?<?php echo md5_file(self::DATA_DIR.'custom.css'); ?>">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<?php $layout->showNotification(); ?>
|
<?php $this->showNotification(); ?>
|
||||||
<div id="site" class="container light">
|
<div id="site" class="container light">
|
||||||
<section><?php $layout->showContent(); ?></section>
|
<section><?php $this->showContent(); ?></section>
|
||||||
</div>
|
</div>
|
||||||
<?php $layout->showScript(); ?>
|
<?php $this->showScript(); ?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -6,13 +6,13 @@
|
|||||||
<meta meta="description=" content="ZwiiCMS le CMS multilingue sans base de données">
|
<meta meta="description=" content="ZwiiCMS le CMS multilingue sans base de données">
|
||||||
<meta name="generator" content="ZiiCMS https://forge.chapril.org/ZwiiCMS-Team/ZwiiCMS">
|
<meta name="generator" content="ZiiCMS https://forge.chapril.org/ZwiiCMS-Team/ZwiiCMS">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<?php $layout->showMetaTitle(); ?>
|
<?php $this->showMetaTitle(); ?>
|
||||||
<?php $layout->showMetaDescription(); ?>
|
<?php $this->showMetaDescription(); ?>
|
||||||
<?php $layout->showMetaType(); ?>
|
<?php $this->showMetaType(); ?>
|
||||||
<?php $layout->showMetaImage(); ?>
|
<?php $this->showMetaImage(); ?>
|
||||||
<?php $layout->showFavicon(); ?>
|
<?php $this->showFavicon(); ?>
|
||||||
<?php $layout->showVendor(); ?>
|
<?php $this->showVendor(); ?>
|
||||||
<?php $layout->showFonts(); ?>
|
<?php $this->showFonts(); ?>
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css?<?php echo md5_file('core/layout/common.css'); ?>">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css?<?php echo md5_file('core/layout/common.css'); ?>">
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>theme.css?<?php echo md5_file(self::DATA_DIR . 'theme.css'); ?>">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>theme.css?<?php echo md5_file(self::DATA_DIR . 'theme.css'); ?>">
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>custom.css?<?php echo md5_file(self::DATA_DIR . 'custom.css'); ?>">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>custom.css?<?php echo md5_file(self::DATA_DIR . 'custom.css'); ?>">
|
||||||
@ -23,8 +23,8 @@
|
|||||||
) : ?>
|
) : ?>
|
||||||
<link rel="alternate" type="application/rss+xml" href="'<?php echo helper::baseUrl() . $this->getUrl(0) . '/rss'; ?>" title="fLUX rss">
|
<link rel="alternate" type="application/rss+xml" href="'<?php echo helper::baseUrl() . $this->getUrl(0) . '/rss'; ?>" title="fLUX rss">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php $layout->showStyle(); ?>
|
<?php $this->showStyle(); ?>
|
||||||
<?php $layout->showInlineStyle(); ?>
|
<?php $this->showInlineStyle(); ?>
|
||||||
<!-- Script perso dans le header -->
|
<!-- Script perso dans le header -->
|
||||||
<?php if (file_exists(self::DATA_DIR . 'head.inc.html')) {
|
<?php if (file_exists(self::DATA_DIR . 'head.inc.html')) {
|
||||||
include(self::DATA_DIR . 'head.inc.html');
|
include(self::DATA_DIR . 'head.inc.html');
|
||||||
@ -33,10 +33,10 @@
|
|||||||
<body>
|
<body>
|
||||||
<!-- Barre d'administration -->
|
<!-- Barre d'administration -->
|
||||||
<?php if ($this->getUser('group') > self::GROUP_MEMBER) : ?>
|
<?php if ($this->getUser('group') > self::GROUP_MEMBER) : ?>
|
||||||
<?php $layout->showBar(); ?>
|
<?php $this->showBar(); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<!-- Notifications -->
|
<!-- Notifications -->
|
||||||
<?php $layout->showNotification(); ?>
|
<?php $this->showNotification(); ?>
|
||||||
<!-- Menu dans le fond du site avant la bannière -->
|
<!-- Menu dans le fond du site avant la bannière -->
|
||||||
<?php if ($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top') : ?>
|
<?php if ($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top') : ?>
|
||||||
<!-- Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté -->
|
<!-- Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté -->
|
||||||
@ -63,7 +63,7 @@
|
|||||||
$menuClass = $this->getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
|
$menuClass = $this->getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
|
||||||
?>
|
?>
|
||||||
<div id="menu" <?php echo $menuClass; ?>>
|
<div id="menu" <?php echo $menuClass; ?>>
|
||||||
<?php $layout->showMenu(); ?>
|
<?php $this->showMenu(); ?>
|
||||||
</div> <!--fin menu -->
|
</div> <!--fin menu -->
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@ -107,7 +107,7 @@
|
|||||||
$menuClass = $this->getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
|
$menuClass = $this->getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
|
||||||
?>
|
?>
|
||||||
<div id="menu" <?php echo $menuClass; ?>>
|
<div id="menu" <?php echo $menuClass; ?>>
|
||||||
<?php $layout->showMenu(); ?></div>
|
<?php $this->showMenu(); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<!-- Site -->
|
<!-- Site -->
|
||||||
@ -119,7 +119,7 @@
|
|||||||
<?php echo $this->getData(['theme', 'menu', 'burgerContent']) === 'title' ? '<div id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
<?php echo $this->getData(['theme', 'menu', 'burgerContent']) === 'title' ? '<div id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
||||||
<?php echo $this->getData(['theme', 'menu', 'burgerContent']) === 'logo' ? '<div id="burgerLogo"><img src="' . helper::baseUrl(false) . self::FILE_DIR . 'source/' . $this->getData(['theme', 'menu', 'burgerLogo']) . '"></div>' : ''; ?>
|
<?php echo $this->getData(['theme', 'menu', 'burgerContent']) === 'logo' ? '<div id="burgerLogo"><img src="' . helper::baseUrl(false) . self::FILE_DIR . 'source/' . $this->getData(['theme', 'menu', 'burgerLogo']) . '"></div>' : ''; ?>
|
||||||
<?php echo template::ico('menu', ['fontSize' => '2em']); ?></div>
|
<?php echo template::ico('menu', ['fontSize' => '2em']); ?></div>
|
||||||
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (
|
<?php if (
|
||||||
@ -168,21 +168,21 @@
|
|||||||
<?php echo $this->getData(['theme', 'menu', 'burgerContent']) === 'title' ? '<div id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
<?php echo $this->getData(['theme', 'menu', 'burgerContent']) === 'title' ? '<div id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
||||||
<?php echo $this->getData(['theme', 'menu', 'burgerContent']) === 'logo' ? '<div id="burgerLogo"><img src="' . helper::baseUrl(false) . self::FILE_DIR . 'source/' . $this->getData(['theme', 'menu', 'burgerLogo']) . '"></div>' : ''; ?>
|
<?php echo $this->getData(['theme', 'menu', 'burgerContent']) === 'logo' ? '<div id="burgerLogo"><img src="' . helper::baseUrl(false) . self::FILE_DIR . 'source/' . $this->getData(['theme', 'menu', 'burgerLogo']) . '"></div>' : ''; ?>
|
||||||
<?php echo template::ico('menu', ['fontSize' => '2em']); ?></div>
|
<?php echo template::ico('menu', ['fontSize' => '2em']); ?></div>
|
||||||
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<!-- Corps de page -->
|
<!-- Corps de page -->
|
||||||
<?php $layout->showMain(); ?>
|
<?php $this->showMain(); ?>
|
||||||
<!-- footer -->
|
<!-- footer -->
|
||||||
<?php $layout->showFooter(); ?>
|
<?php $this->showFooter(); ?>
|
||||||
<!-- Fin du site -->
|
<!-- Fin du site -->
|
||||||
<?php echo $this->getData(['theme', 'footer', 'position']) === 'site' ? '</div>' : ''; ?>
|
<?php echo $this->getData(['theme', 'footer', 'position']) === 'site' ? '</div>' : ''; ?>
|
||||||
<!-- Lien remonter en haut -->
|
<!-- Lien remonter en haut -->
|
||||||
<div id="backToTop"><?php echo template::ico('up'); ?></div>
|
<div id="backToTop"><?php echo template::ico('up'); ?></div>
|
||||||
<!-- Affichage du consentement aux cookies-->
|
<!-- Affichage du consentement aux cookies-->
|
||||||
<?php $layout->showCookies(); ?>
|
<?php $this->showCookies(); ?>
|
||||||
<!-- Les scripts -->
|
<!-- Les scripts -->
|
||||||
<?php $layout->showScript(); ?>
|
<?php $this->showScript(); ?>
|
||||||
<!-- Script perso dans body -->
|
<!-- Script perso dans body -->
|
||||||
<?php if (file_exists(self::DATA_DIR . 'body.inc.html')) {
|
<?php if (file_exists(self::DATA_DIR . 'body.inc.html')) {
|
||||||
include(self::DATA_DIR . 'body.inc.html');
|
include(self::DATA_DIR . 'body.inc.html');
|
||||||
|
Loading…
Reference in New Issue
Block a user