bludit/kernel/boot/site.php

29 lines
763 B
PHP
Raw Normal View History

2015-03-08 18:02:59 +01:00
<?php defined('BLUDIT') or die('Bludit CMS.');
// Boot rules
2015-08-31 03:18:06 +02:00
include(PATH_RULES.'70.posts.php');
include(PATH_RULES.'70.pages.php');
2015-07-03 22:44:26 +02:00
include(PATH_RULES.'80.plugins.php');
2015-03-27 02:00:01 +01:00
include(PATH_RULES.'99.header.php');
2015-07-20 05:14:12 +02:00
include(PATH_RULES.'99.paginator.php');
2015-08-02 04:47:45 +02:00
include(PATH_RULES.'99.themes.php');
2015-07-20 05:14:12 +02:00
// Plugins before site loaded
Theme::plugins('beforeSiteLoad');
2015-05-05 03:00:01 +02:00
// Theme init.php
2015-08-17 04:33:49 +02:00
if( Sanitize::pathFile(PATH_THEMES, $Site->theme().DS.'init.php') ) {
2015-06-22 00:01:07 +02:00
include(PATH_THEMES.$Site->theme().DS.'init.php');
2015-08-17 04:33:49 +02:00
}
2015-05-05 03:00:01 +02:00
// Theme HTML
2015-08-17 04:33:49 +02:00
if( Sanitize::pathFile(PATH_THEMES, $Site->theme().DS.'index.php') ) {
2015-06-22 00:01:07 +02:00
include(PATH_THEMES.$Site->theme().DS.'index.php');
2015-08-17 04:33:49 +02:00
}
2015-09-08 02:51:48 +02:00
else {
$Language->p('Please check your theme configuration');
}
2015-07-20 05:14:12 +02:00
// Plugins after site loaded
Theme::plugins('afterSiteLoad');