-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
36 lines (20 loc) · 779 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
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* The theme's core file.
*
* @author Marco Di Bella
* @package ph_THEME-PACKAGE
*/
namespace ph_THEME_NAMESPACE;
/** Prevent direct access */
defined( 'ABSPATH' ) or exit;
/** Turn off notices */
error_reporting( E_ALL ^ E_NOTICE );
/** Variables and definitions **/
define( __NAMESPACE__ . "\THEME_VERSION", 'ph_THEME-VERSION' ); // The theme's version
define( __NAMESPACE__ . "\THEME_DIR", get_template_directory() . '/' ); // The theme's directory
define( __NAMESPACE__ . "\THEME_URI", get_template_directory_uri() .'/' ); // The theme's uri
/** Include files */
require_once THEME_DIR . 'includes/setup.php';
require_once THEME_DIR . 'includes/block-patterns.php';
require_once THEME_DIR . 'includes/block-styles.php';