-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcustom.dist.php
144 lines (110 loc) · 3.17 KB
/
custom.dist.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
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
<?php
/**
* custom.dist.php - Base template
*
* @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!
// Instead make a copy to custom.php and modify that file.
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<?php
// Meta tags
\lqx\meta\render();
// Render GTM head code
\lqx\js\render_gtm_head_code();
// WordPress enqueued head meta and scripts
wp_head();
// Favicons
\lqx\favicon\render();
?>
</head>
<body class="<?= \lqx\body\classes() ?>" data-features="<?= esc_attr(\lqx\body\features()) ?>">
<a href="#content" class="skip-to-content-link">Skip to Content</a>
<?php
// Render GTM body code
\lqx\js\render_gtm_body_code();
// Chromeless page template
if ('chromeless' == ($lqx_page_template ?? '')) :
// Template router
\lqx\router\render();
// Non-chromeless page template
else : ?>
<header>
<?php \lqx\modules\alerts\render(); ?>
<?php if (has_nav_menu('top-menu')) : ?>
<nav class="menu top">
<?php wp_nav_menu(['menu' => 'top-menu']); ?>
</nav>
<?php endif; ?>
<?php if (has_nav_menu('main-menu')) : ?>
<nav class="menu main">
<?php wp_nav_menu(['menu' => 'top-main']); ?>
</nav>
<?php endif; ?>
<?php if (has_nav_menu('utility-menu')) : ?>
<nav class="menu utility">
<?php wp_nav_menu(['menu' => 'utility-menu']); ?>
</nav>
<?php endif; ?>
<?php if (has_nav_menu('logged-in-menu')) : ?>
<nav class="menu logged-in">
<?php wp_nav_menu(['menu' => 'logged-in-menu']); ?>
</nav>
<?php endif; ?>
</header>
<main id="content">
<article>
<?php \lqx\router\render(); ?>
</article>
<?php \lqx\modules\cta\render(); ?>
</main>
<footer>
<?php if (has_nav_menu('bottom-menu')) : ?>
<nav class="menu bottom">
<?php wp_nav_menu(['menu' => 'bottom-menu']); ?>
</nav>
<?php endif; ?>
<?php if (has_nav_menu('footer-menu')) : ?>
<nav class="menu footer">
<?php wp_nav_menu(['menu' => 'footer-menu']); ?>
</nav>
<?php endif; ?>
<?php \lqx\modules\social\render(); ?>
<?php \lqx\modules\share\render(); ?>
</footer>
<?php
// Popups
\lqx\modules\popup\render();
// End of non-chromeless page template
endif;
// WordPress enqueued footer scripts
wp_footer();
// Render Lyquix and Scripts options
\lqx\js\render_lyquix_options();
// Render page custom CSS and JS
\lqx\css\render_page_custom_css();
\lqx\js\render_page_custom_js();
// Outdated browser alert
\lqx\browsers\render();
// LiveReload library
\lqx\livereload\render();
?>
</body>
</html>