-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfunctions.php
99 lines (80 loc) · 2.34 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* Ideal functions and definitions.
*
* @package Ideal
* @since 1.0
*/
// Exit if accessed this directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'IDEAL_THEME_DIRECTORY', get_template_directory() );
define( 'IDEAL_THEME_DIR_URI', get_template_directory_uri() );
/**
* Load text domain.
* @since 1.0.0
*/
add_action( 'after_setup_theme', 'ideal_lang_setup' );
if ( ! function_exists( 'ideal_lang_setup' ) ) {
function ideal_lang_setup() {
load_theme_textdomain( 'ideal', get_template_directory() . '/lang' );
}
}
/**
* Ideal classes Control.
* @since 1.0.0
*/
require IDEAL_THEME_DIRECTORY .'/ideal/classes/classes-control.php';
/**
* Ideal Options Control.
* @since 1.0.0
*/
require_once IDEAL_THEME_DIRECTORY . '/ideal/options-control.php';
/**
*
* call TGM Plugin Activation
* @since 1.0.0
*/
require_once IDEAL_THEME_DIRECTORY . '/includes/admin/tgm-plugin/class-tgm-plugin-activation.php';
require_once IDEAL_THEME_DIRECTORY .'/includes/admin/tgm-plugin/plugins-activation.php';
/**
* Ideal Theme options For (Kirki).
* @since 1.0.0
*/
require_once IDEAL_THEME_DIRECTORY . '/standard/helpers/kirki-ideal.php';
/**
* Standrad Ideal theme helpers
* @since 1.0.0
*/
require_once IDEAL_THEME_DIRECTORY . '/standard/helpers/style-enqueue.php';
require_once IDEAL_THEME_DIRECTORY . '/standard/helpers/script-enqueue.php';
require_once IDEAL_THEME_DIRECTORY . '/standard/helpers/admin-enqueue.php';
require_once IDEAL_THEME_DIRECTORY . '/standard/dynamic-options/daynamic-style.php';
require_once IDEAL_THEME_DIRECTORY . '/standard/dynamic-options/dynamic-js.php';
/**
* Ideal Admin Theme Function and Options.
* @since 1.0.0
*/
require_once IDEAL_THEME_DIRECTORY . '/includes/admin/inc/function-admin.php';
/**
*
*Sets up theme defaults and registers support for various WordPress features.
*@since 1.0.0
*/
require_once IDEAL_THEME_DIRECTORY . '/standard/helpers/all-wp-support.php';
/**
*
* Woocommerce Supourt features.
* @since 1.0.0
*/
require_once IDEAL_THEME_DIRECTORY . '/standard/helpers/woocommerce.php';
/**
* Ideal theme hooks and actions.
* @since 1.0.0
*/
function ideal_hooks_init() {
require_once IDEAL_THEME_DIRECTORY . '/ideal/hooks/hooks.php';
require_once IDEAL_THEME_DIRECTORY . '/standard/dynamic-options/ideal-action.php';
}
add_action( 'after_setup_theme', 'ideal_hooks_init', 10 );