This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.php
executable file
·61 lines (46 loc) · 1.72 KB
/
index.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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
wp_head();
$dir = trailingslashit( esc_url( get_template_directory_uri() ) );
?>
<link rel="icon" href="<?php echo $dir; ?>assets/img/favicon.ico">
<link rel="manifest" href="<?php echo $dir; ?>manifest.json">
<meta name="theme-color" content="#3f51b5">
<!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="Starter App">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Starter App">
<!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
<script src="<?php echo $dir; ?>bower_components/webcomponentsjs/webcomponents-loader.js"></script>
<link rel="import" href="<?php echo $dir; ?>elements/starter-app.php">
</head>
<body <?php body_class(); ?> unresolved>
<?php wp_body_open(); ?>
<starter-app></starter-app>
<?php wp_footer(); ?>
<?php
if ( is_admin_bar_showing() ) :
?>
<script>
document.addEventListener('DOMContentLoaded', function () {
// Open wp-toolbar links
[].forEach.call( document.querySelectorAll( '#wp-toolbar a' ), function ( a ) {
a.addEventListener( 'click', function () {
location.href = this.getAttribute('href');
}, false );
});
});
</script>
<?php
endif;
?>
</body>
</html>