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