-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathheader.php
More file actions
60 lines (55 loc) · 1.95 KB
/
header.php
File metadata and controls
60 lines (55 loc) · 1.95 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
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=4">
<title><?php thr_title(); ?></title>
<link rel="shortcut icon" href="/theme/images/favicon.ico">
<link rel="apple-touch-icon" href="/theme/images/apple-touch-icon.png">
<link rel="stylesheet" href="/theme/style.css">
<?php
$view = array(
'pageColor' => THR('pageColor'),
'textColor' => THR('textColor')
);
echo template_render('styleColor', $view);
?>
<script src="/theme/js/modernizr.custom.js"></script>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
//var require = { waitSeconds: 200 };
if (!window.console) window.console = {};
if (!window.console.log) window.console.log = function() {};
</script>
<script data-main="/theme/js/main" src="/theme/js/require.min.js"></script>
<!--
<script src="/theme/js/log.js"></script>
<script>
log('log start');
window.onerror = log;
</script>
-->
<?php wp_head(); ?>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3E7WZB849P"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-3E7WZB849P');
</script>
<script>
function logMessage(msg) {
console.log('logMessage', msg);
}
function logEvent(category, action, label, value) {
// gtag('event', action, {
// event_category: category,
// event_label: label,
// event_value: value
// });
console.log('logEvent', category, action, label, value);
}
</script>
</head>