koblog/bl-kernel/boot/site.php
Kazhnuz e8cebf6c10 ♻️ 💥 (pages): use the "article" type instead of published
It makes more sense to use the type of page you have for the type, and it prepare published to be a state instead of a type
2025-01-23 22:41:26 +01:00

36 lines
966 B
PHP

<?php defined('KOBLOG') or die('Koblog CMS.');
// Load plugins rules
include(PATH_RULES.'60.plugins.php');
// Plugins before all
Theme::plugins('beforeAll');
// Load rules
include(PATH_RULES.'50.updaters.php');
include(PATH_RULES.'60.router.php');
include(PATH_RULES.'69.pages.php');
include(PATH_RULES.'99.header.php');
include(PATH_RULES.'99.paginator.php');
include(PATH_RULES.'99.themes.php');
// Plugins before site loaded
Theme::plugins('beforeSiteLoad');
// Theme init.php
if (Sanitize::pathFile(PATH_THEMES, $site->theme().DS.'init.php')) {
include(PATH_THEMES.$site->theme().DS.'init.php');
}
// Theme HTML
if (Sanitize::pathFile(PATH_THEMES, $site->theme().DS.'index.php')) {
include(PATH_THEMES.$site->theme().DS.'index.php');
} else {
$L->p('Please check your theme configuration in the admin panel. Check for an active theme.');
}
// Plugins after site loaded
Theme::plugins('afterSiteLoad');
// Plugins after all
Theme::plugins('afterAll');