-
Notifications
You must be signed in to change notification settings - Fork 10
/
functions.php
67 lines (60 loc) · 2.04 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* Include library and setup files.
*
* @package Alpha
* @subpackage Alpha\Functions
* @author Cipher Development
* @copyright Copyright (c) 2018, Cipher Development, LLC
* @since 1.0.0
*/
/**
* The current version of the parent theme. Should match the version in style.css.
*
* @since 1.0.0
*/
define( 'PARENT_THEME_VERSION', '0.1.0' );
/**
* The absolute path to the template's root directory with a trailing slash.
*
* @since 1.0.0
* @uses get_template_directory()
* @uses trailingslashit()
*/
define( 'PARENT_THEME_DIR', trailingslashit( get_template_directory() ) );
/**
* The absolute path to the template's root directory with a trailing slash.
*
* @since 1.0.0
* @uses get_template_directory_uri()
* @uses trailingslashit()
*/
define( 'PARENT_THEME_URI', trailingslashit( get_template_directory_uri() ) );
require_once PARENT_THEME_DIR . 'includes/vendor/carelib/carelib.php';
require_once PARENT_THEME_DIR . 'includes/scripts.php';
require_once PARENT_THEME_DIR . 'includes/template-404.php';
require_once PARENT_THEME_DIR . 'includes/template-archive.php';
require_once PARENT_THEME_DIR . 'includes/template-entry.php';
require_once PARENT_THEME_DIR . 'includes/template-global.php';
require_once PARENT_THEME_DIR . 'includes/template-layout.php';
require_once PARENT_THEME_DIR . 'includes/theme-setup.php';
require_once PARENT_THEME_DIR . 'includes/hooks.php';
require_once PARENT_THEME_DIR . 'includes/hooks-template.php';
if ( carelib_is_woocommerce_active() ) {
require_once PARENT_THEME_DIR . 'includes/woocommerce/template-global.php';
require_once PARENT_THEME_DIR . 'includes/woocommerce/hooks.php';
}
if ( is_admin() ) {
require_once PARENT_THEME_DIR . 'admin/layout.php';
require_once PARENT_THEME_DIR . 'admin/hooks.php';
}
/**
* A hook within the global scope; common to all Cipher Development themes.
*
* This is meant for plugins and child themes to execute code after the parent
* theme setup has been completed.
*
* @since 1.0.0
* @access public
*/
do_action( 'sitecare_after_setup_parent' );