-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfunctions.php
112 lines (84 loc) · 3.21 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
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
/**
* functions.php - Theme main functions file
*
* @version 3.1.0
* @package wp_theme_lyquix
* @author Lyquix
* @copyright Copyright (C) 2015 - 2024 Lyquix
* @license GNU General Public License version 2 or later
* @link https://github.com/Lyquix/wp_theme_lyquix
*/
// .d8888b. 88888888888 .d88888b. 8888888b. 888
// d88P Y88b 888 d88P" "Y88b 888 Y88b 888
// Y88b. 888 888 888 888 888 888
// "Y888b. 888 888 888 888 d88P 888
// "Y88b. 888 888 888 8888888P" 888
// "888 888 888 888 888 Y8P
// Y88b d88P 888 Y88b. .d88P 888 "
// "Y8888P" 888 "Y88888P" 888 888
//
// DO NOT MODIFY THIS FILE!
// If you need to add custom:
// - functions, use /php/custom/functions.php
// - menu positions, use /php/custom/menus.php
// - widget positions, use /php/custom/widgets.php
// - shortcodes, use /php/custom/shortcodes.php
// - blocks, use /php/custom/blocks.php
// - site option pages, use /php/custom/options.php
// Do not allow browsers to cache WordPress pages
nocache_headers();
// Utility Functions
require_once get_template_directory() . '/php/util.php';
// Remove comments
require_once get_template_directory() . '/php/comments.php';
// Theme setup
require_once get_template_directory() . '/php/setup.php';
// Menu positions
require_once get_template_directory() . '/php/menus.php';
// Widget positions
require_once get_template_directory() . '/php/widgets.php';
// Theme customizer
require_once get_template_directory() . '/php/customizer.php';
// Blocks
require_once get_template_directory() . '/php/blocks.php';
// Cards
require_once get_template_directory() . '/php/cards.php';
// Layouts
require_once get_template_directory() . '/php/layouts.php';
// Modules
require_once get_template_directory() . '/php/modules.php';
// Tailwind
require_once get_template_directory() . '/php/tailwind.php';
// Prepare meta tags
require_once get_template_directory() . '/php/meta.php';
// Enqueue CSS
require_once get_template_directory() . '/php/css.php';
// Enqueue JS
require_once get_template_directory() . '/php/js.php';
// Render favicons
require_once get_template_directory() . '/php/favicon.php';
// Prepare body classes
require_once get_template_directory() . '/php/body.php';
// Template router
require_once get_template_directory() . '/php/router.php';
// IP geolocation
require_once get_template_directory() . '/php/ip2geo.php';
// Outdated browser alert
require_once get_template_directory() . '/php/browsers.php';
// Filters
require_once get_template_directory() . '/php/filters.php';
// Livereload
require_once get_template_directory() . '/php/livereload.php';
// Custom functions.php
if (file_exists(get_template_directory() . '/php/custom/functions.php')) {
require_once get_template_directory() . '/php/custom/functions.php';
}
// Shortcodes
if (file_exists(get_template_directory() . '/php/custom/shortcodes.php')) {
require_once get_template_directory() . '/php/custom/shortcodes.php';
}
// Updates checker
require_once get_template_directory() . '/php/update.php';
// Critical path CSS configuration endpoint
require_once get_template_directory() . '/php/critical.php';