-
Notifications
You must be signed in to change notification settings - Fork 616
/
functions.php
45 lines (32 loc) · 1.13 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
<?php
/**
* 模板函数
* @author Seaton Jiang <[email protected]>
* @license MIT License
* @version 2020.06.05
*/
define('THEME_VERSION', wp_get_theme()->get('Version'));
// 主题配置
require get_template_directory() . '/inc/options-framework/autoload.php';
// 更新配置
require get_template_directory() . '/inc/update-checker/autoload.php';
// 核心配置
require get_template_directory() . '/inc/theme-core.php';
// 站点配置
require get_template_directory() . '/inc/theme-setting.php';
// 文章配置
require get_template_directory() . '/inc/theme-article.php';
// 小工具配置
require get_template_directory() . '/inc/theme-widgets.php';
// 文章增强
require get_template_directory() . '/inc/theme-shortcode.php';
// 添加导航目录
require get_template_directory() . '/inc/theme-navwalker.php';
// 对象存储配置
require get_template_directory() . '/inc/theme-dogecloud.php';
// ImageX 图片服务
require get_template_directory() . '/inc/theme-volcengine.php';
// SMTP 配置
require get_template_directory() . '/inc/theme-smtp.php';
// 自定义函数
require get_template_directory() . '/custom/custom.php';