-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
95 lines (80 loc) · 2.89 KB
/
header.php
File metadata and controls
95 lines (80 loc) · 2.89 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
<?php
global $img_folder;
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="<?=get_theme_mod('accent_color');?>">
<?php
if ( ! function_exists( '_wp_render_title_tag' ) ) :
function spi_render_title() {
?>
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php
}
add_action( 'wp_head', 'spi_render_title' );
endif;
?>
<?php $theme_info = wp_get_theme(); ?>
<?php wp_enqueue_style('muli',
'https://fonts.googleapis.com/css?family=Muli:300,800');
wp_enqueue_style('main',
get_template_directory_uri() . '/static/css/main.css',
array(), $theme_info->version ); ?>
<?php wp_enqueue_style('fontawesome',
'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
wp_enqueue_style('main',
get_template_directory_uri() . '/static/css/main.css',
array(), $theme_info->version );
wp_enqueue_style( 'custom-styles',
get_template_directory_uri() . '/static/css/custom-options.css' ); ?>
<?php wp_enqueue_script( 'scripts',
get_template_directory_uri() . '/static/js/main.js',
array('jquery'), $theme_info->version, true );
wp_localize_script( 'scripts', 'wpjs_object',
array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );
?>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '139212640120747');
fbq('track', 'PageView');
</script>
<noscript>
<img height="1" width="1"
src="https://www.facebook.com/tr?id=139212640120747&ev=PageView
&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->
<?php wp_head(); ?>
</head>
<body<?php if(is_home()) { echo ' class="home"'; } ?>>
<header class="bies <?php echo (is_front_page()) ? 'bies--front-page' : ''; ?>">
<a href="<?php echo get_site_url(); ?>">
<picture>
<source srcset="<?=$img_folder?>logo-mark.svg?<?=$theme_info->version?>" type="image/svg+xml">
<img class="bies__image" alt="ID"
srcset="<?=$img_folder?>logo-mark.png?<?=$theme_info->version?> 1x,
<?=$img_folder?>logo-mark@2x.png?<?=$theme_info->version?> 2x"
src="<?=$img_folder?>logo-mark.png?<?=$theme_info->version?>">
</picture>
</a>
<nav class="primary-menu">
<?php wp_nav_menu( array(
'theme_location' => 'primary-menu',
'container' => false,
'menu_class' => 'primary-menu__list' ) ); ?>
</nav>
</header>
<div class="js-menu-toggle menu-toggle">
menu
</div>