-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfunctions.php
More file actions
153 lines (111 loc) · 4.35 KB
/
Copy pathfunctions.php
File metadata and controls
153 lines (111 loc) · 4.35 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php
/**
* functions.php - Theme main functions file
*
* @version 3.4.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/rest.php';
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';
// Embed Blocks
require_once get_template_directory() . '/php/embed.php';
// Tailwind
require_once get_template_directory() . '/php/tailwind.php';
// Prepare meta tags
require_once get_template_directory() . '/php/meta.php';
// CDN library mirror
require_once get_template_directory() . '/php/cdn-mirror.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';
// Typesense
require_once get_template_directory() . '/php/typesense.php';
// Filters
require_once get_template_directory() . '/php/filters.php';
// Livereload
require_once get_template_directory() . '/php/livereload.php';
// Featured Posts
require_once get_template_directory() . '/php/featured-posts.php';
// Regions
require_once get_template_directory() . '/php/regions.php';
// Options
require_once get_template_directory() . '/php/options.php';
// Block settings sync (export/import Global Settings, Styles, Presets)
require_once get_template_directory() . '/php/block-settings-sync.php';
// QR Code Generator
// SVG upload sanitizer
require_once get_template_directory() . '/php/svg.php';
require_once get_template_directory() . '/php/qr-code.php';
// URL Shortener
require_once get_template_directory() . '/php/url-shortener.php';
// Redirects Manager
require_once get_template_directory() . '/php/redirects.php';
// Fields
require_once get_template_directory() . '/php/fields.php';
// Custom functions.php
if (file_exists(get_stylesheet_directory() . '/php/custom/functions.php')) {
require_once get_stylesheet_directory() . '/php/custom/functions.php';
}
// Shortcodes
if (file_exists(get_stylesheet_directory() . '/php/custom/shortcodes.php')) {
require_once get_stylesheet_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';
// Miscelaneous functions
require_once get_template_directory() . '/php/misc.php';