-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_libs.php
More file actions
38 lines (31 loc) · 1.07 KB
/
Copy path_libs.php
File metadata and controls
38 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
* Tumult; get more information at: https://github.com/septor/tumult
* For contributions, copyrights, and more view the `docs` folder.
*/
// Load all the third-party scripts first.
include('libs/thirdparty/Parsedown.php');
include('libs/thirdparty/Mustache/Autoloader.php');
Mustache_Autoloader::register();
// Now, we need the configuration file for the constants.
include('config/master.php');
// Now we need the core lib file, since some of the other libs extend onto it.
include('libs/tumult.php');
// Load the theme files.
if(defined('TUMULT_THEME'))
$theme = (file_exists('themes/'.TUMULT_THEME.'/template.html') ? TUMULT_THEME : 'default');
else
$theme = 'default';
include('themes/'.$theme.'/settings.php');
include('themes/'.$theme.'/styles.php');
// Load in the services _core.php files.
foreach(glob('services/*', GLOB_ONLYDIR) as $service)
{
include($service.'/_core.php');
}
// Load the services keys file.
include('config/keys.php');
// Load in the remaining lib files.
include('libs/services.php');
include('libs/statics.php');
include('libs/posts.php');