-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
138 lines (112 loc) · 3.72 KB
/
Copy pathfunctions.php
File metadata and controls
138 lines (112 loc) · 3.72 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
/**
* @Packge : Winter
* @Version : 1.0
* @Author : Colorlib
* @Author URI : http://colorlib.com/wp/
*
*/
// Block direct access
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
// Base URI
if ( ! defined( 'WINTER_DIR_URI' ) ) {
define( 'WINTER_DIR_URI', get_template_directory_uri() . '/' );
}
// assets URI
if ( ! defined( 'WINTER_DIR_ASSETS_URI' ) ) {
define( 'WINTER_DIR_ASSETS_URI', WINTER_DIR_URI . 'assets/' );
}
// Css File URI
if ( ! defined( 'WINTER_DIR_CSS_URI' ) ) {
define( 'WINTER_DIR_CSS_URI', WINTER_DIR_ASSETS_URI . 'css/' );
}
// Js File URI
if ( ! defined( 'WINTER_DIR_JS_URI' ) ) {
define( 'WINTER_DIR_JS_URI', WINTER_DIR_ASSETS_URI . 'js/' );
}
// Icon Images
if ( ! defined( 'WINTER_DIR_ICON_IMG_URI' ) ) {
define( 'WINTER_DIR_ICON_IMG_URI', WINTER_DIR_ASSETS_URI . 'img/icon/' );
}
// Base Directory
if ( ! defined( 'WINTER_DIR_PATH' ) ) {
define( 'WINTER_DIR_PATH', get_parent_theme_file_path() . '/' );
}
//Inc Folder Directory
if ( ! defined( 'WINTER_DIR_PATH_INC' ) ) {
define( 'WINTER_DIR_PATH_INC', WINTER_DIR_PATH . 'inc/' );
}
//Winter Libraries Folder Directory
if ( ! defined( 'WINTER_DIR_PATH_LIBS' ) ) {
define( 'WINTER_DIR_PATH_LIBS', WINTER_DIR_PATH_INC . 'libraries/' );
}
//Classes Folder Directory
if ( ! defined( 'WINTER_DIR_PATH_CLASSES' ) ) {
define( 'WINTER_DIR_PATH_CLASSES', WINTER_DIR_PATH_INC . 'classes/' );
}
//Hooks Folder Directory
if ( ! defined( 'WINTER_DIR_PATH_HOOKS' ) ) {
define( 'WINTER_DIR_PATH_HOOKS', WINTER_DIR_PATH_INC . 'hooks/' );
}
//Widgets Folder Directory
if ( ! defined( 'WINTER_DIR_PATH_WIDGET' ) ) {
define( 'WINTER_DIR_PATH_WIDGET', WINTER_DIR_PATH_INC . 'widgets/' );
}
function winter_admin_style() {
wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/assets/css/admin-style.css', false, '1.0.0' );
wp_enqueue_style( 'custom_wp_admin_css' );
}
add_action( 'admin_enqueue_scripts', 'winter_admin_style' );
/**
* Include File
*
*/
if( class_exists( 'RW_Meta_Box' ) ){
// Metabox Function
require_once WINTER_DIR_PATH_INC . 'winter-metabox.php';
}
require_once WINTER_DIR_PATH_INC . 'winter-breadcrumbs.php';
require_once WINTER_DIR_PATH_INC . 'winter-widgets-reg.php';
require_once WINTER_DIR_PATH_INC . 'post-like.php';
require_once WINTER_DIR_PATH_INC . 'wp_bootstrap_navwalker.php';
require_once WINTER_DIR_PATH_INC . 'winter-functions.php';
require_once WINTER_DIR_PATH_INC . 'winter-commoncss.php';
require_once WINTER_DIR_PATH_INC . 'support-functions.php';
require_once WINTER_DIR_PATH_INC . 'winter-woo-functions.php';
require_once WINTER_DIR_PATH_INC . 'wp-html-helper.php';
require_once WINTER_DIR_PATH_INC . 'wp_bootstrap_pagination.php';
require_once WINTER_DIR_PATH_CLASSES . 'Class-Enqueue.php';
require_once WINTER_DIR_PATH_CLASSES . 'Class-Config.php';
require_once WINTER_DIR_PATH_HOOKS . 'hooks.php';
require_once WINTER_DIR_PATH_HOOKS . 'hooks-functions.php';
require_once WINTER_DIR_PATH_INC . 'customizer/customizer.php';
/**
*
* Initialize winter object
*
* Inside this object:
*
* Enqueue scripts, Google font, theme support features, Epsilon Dashboard .
*
*/
$winter = new Winter();
/**
* Editor and markup support this theme predates.
*/
if ( ! function_exists( 'winter_modern_supports' ) ) {
function winter_modern_supports() {
add_theme_support( 'responsive-embeds' );
add_theme_support( 'align-wide' );
add_theme_support( 'editor-styles' );
}
add_action( 'after_setup_theme', 'winter_modern_supports', 20 );
}
/**
* The theme's Customizer controls.
*
* Replaces the Epsilon framework: same fields and stored values,
* built on core's Customizer API.
*/
require_once get_template_directory() . '/inc/customizer/colorlib-customizer/colorlib-customizer.php';