-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
65 lines (47 loc) · 2.23 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
<?php
/* ---------------------------------------------------------------------------
* Child Theme URI | DO NOT CHANGE
* --------------------------------------------------------------------------- */
define('CHILD_THEME_URI', get_stylesheet_directory_uri());
/* ---------------------------------------------------------------------------
* Define | YOU CAN CHANGE THESE
* --------------------------------------------------------------------------- */
// White Label --------------------------------------------
define('WHITE_LABEL', true);
// Static CSS is placed in Child Theme directory ----------
define('STATIC_IN_CHILD', false);
/* ---------------------------------------------------------------------------
* Enqueue Style
* --------------------------------------------------------------------------- */
add_action('wp_enqueue_scripts', 'mfnch_enqueue_styles', 101);
function mfnch_enqueue_styles()
{
// Enqueue the parent rtl stylesheet
if (is_rtl()) {
wp_enqueue_style('mfn-rtl', get_template_directory_uri() . '/rtl.css');
}
// Enqueue the child stylesheet
wp_dequeue_style('style');
wp_enqueue_style('style', get_stylesheet_directory_uri() . '/style.css');
}
/* ---------------------------------------------------------------------------
* Load Textdomain
* --------------------------------------------------------------------------- */
add_action('after_setup_theme', 'mfnch_textdomain');
function mfnch_textdomain()
{
load_child_theme_textdomain('betheme', get_stylesheet_directory() . '/languages');
load_child_theme_textdomain('mfn-opts', get_stylesheet_directory() . '/languages');
}
/* ---------------------------------------------------------------------------
* Load Dependencies
* --------------------------------------------------------------------------- */
require_once('vendor/autoload.php');
require_once('vendor/cmb2/cmb2/init.php');
/* ---------------------------------------------------------------------------
* Load Initials
* --------------------------------------------------------------------------- */
require_once('initials/posttypes.php');
require_once('initials/taxonomies.php');
require_once('initials/metaboxes-posttypes.php');
require_once('initials/metaboxes-taxonomies.php');