forked from mishterk/wp-tailwindcss-theme-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
24 lines (18 loc) · 892 Bytes
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
use WpTailwindCssThemeBoilerplate\AutoLoader;
use WpTailwindCssThemeBoilerplate\View;
/*
* Set up our auto loading class and mapping our namespace to the app directory.
*
* The autoloader follows PSR4 autoloading standards so, provided StudlyCaps are used for class, file, and directory
* names, any class placed within the app directory will be autoloaded.
*
* i.e; If a class named SomeClass is stored in app/SomeDir/SomeClass.php, there is no need to include/require that file
* as the autoloader will handle that for you.
*/
require get_stylesheet_directory() . '/app/AutoLoader.php';
$loader = new AutoLoader();
$loader->register();
$loader->addNamespace( 'WpTailwindCssThemeBoilerplate', get_stylesheet_directory() . '/app' );
View::$view_dir = get_stylesheet_directory() . '/templates/views';
require get_stylesheet_directory() . '/includes/scripts-and-styles.php';