-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
81 lines (64 loc) · 1.22 KB
/
header.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
<?php
// Dev mode
$dev_mode = the_project('dev_mode') == '1' ? true : false;
$suffix = $dev_mode ? '' : "?v=" . time();
$scripts_in_head = get_field('scripts_in_head', 'options');
/**
* Less Files
*/
$less_files = TPF_Less_Files('minimal');
$less_files[] = get_template_directory() . "/assets/less/_vars.less";
/**
* Less Variables
*/
$less_vars = [
'global-font-family' => 'Inter',
];
/**
* CSS Files
*/
$css_files = [
get_template_directory_uri() . "/assets/fonts/fonts.css",
];
/**
* JS Files
*/
$js_files = TPF_JS_Files();
/**
* JS Vars
*/
$js_vars = TPF_JS_Vars();
?>
<!DOCTYPE html>
<html lang="<?= site_lang() ?>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
/** TPF head */
render("html/head", [
"less_files" => $less_files,
"less_vars" => $less_vars,
'css_files' => $css_files,
"js_files" => $js_files,
"js_vars" => $js_vars,
]);
/** WP head */
wp_head();
?>
<?php
/**
* Scripts in head
*/
if (!empty($scripts_in_head) && $scripts_in_head != "") {
echo $scripts_in_head;
}
?>
</head>
<body>
<?php
render("layout/base/mobile-header");
?>
<?php
render("layout/base/header");
?>