-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
27 lines (20 loc) · 902 Bytes
/
functions.php
File metadata and controls
27 lines (20 loc) · 902 Bytes
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
<?php
/**
* @link https://github/zacfukuda/minamoto
*/
require_once __DIR__ . '/vendor/autoload.php';
$paths = require_once 'config/paths.php';
$package_json = file_get_contents($paths->template . '/package.json');
$package_json = json_decode($package_json);
$theme_textdomain = $package_json->name;
$theme_version = $package_json->version;
$theme_config = require_once 'config/theme.php';
$classes = require_once 'config/classes.php';
$functions = require_once 'config/functions.php';
foreach ($classes as $c) require_once $paths->classes . '/' . $c . '.php';
Timber\Timber::init();
Timber::$dirname = ['templates', 'views'];
if (class_exists('MinamotoSetup')) new MinamotoSetup();
if (class_exists('MinamotoFactory')) new MinamotoFactory($theme_config);
if (class_exists('MinamotoTimber')) new MinamotoTimber();
foreach ($functions as $f) require_once $paths->functions . '/' . $f . '.php';