-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·136 lines (123 loc) · 5 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
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
<!doctype html>
<html <?php language_attributes(); ?> class="no-js" ⚡>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<link rel="canonical" href="<?php the_permalink(); ?>">
<title>
<?php wp_title(''); ?>
<?php if(wp_title('', false)) { echo ' :'; } ?>
<?php bloginfo('name'); ?>
</title>
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
<script async custom-element="amp-youtube" src="https://cdn.ampproject.org/v0/amp-youtube-0.1.js"></script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ProfessionalService",
"address": {
"@type": "PostalAddress",
"addressLocality": "Dallas",
"addressRegion": "TX",
"postalCode":"75204",
"streetAddress": "2855 Howell St."
},
"logo": {
"@type": "ImageObject",
"url": "https:\/\/matthewtrader.com\/wp-content\/uploads\/2015\/11\/Weddings-Logo-720px1.png",
"width": 712,
"height": 172
},
"description": "<?php the_title(); ?>",
"name": "Matthew T Rader | Dallas Wedding Photographer",
"telephone": "072-345-8089",
"email": "[email protected]",
"url": "<?php the_permalink(); ?>",
"priceRange" : "$2,500 - $5,000",
"openingHours": "Mo,Tu,We,Th,Fr,Sa 08:00-20:00",
"image": {
"@type": "ImageObject",
"url": "<?php the_post_thumbnail_url(); ?>",
"width": 1200,
"height": 800
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "32.8000926",
"longitude": "-96.8034232"
},
"hasMap": "https://goo.gl/maps/Mxt2fHbNyyA2",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"reviewCount": "31",
"bestRating": "5",
"worstRating": "5"
},
"sameAs" : [ "https://www.facebook.com/MatthewTRader.Photography",
"https://www.instagram.com/cherish.loves.story",
"https://twitter.com/Matthew_T_Rader",
"https://www.youtube.com/user/MatthewThomasRader/videos"]
}
</script>
<style amp-custom>
<?php include 'style.css';?>
</style>
<style amp-boilerplate>
body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}
</style>
<noscript>
<style amp-boilerplate>
body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}
</style>
</noscript>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<amp-analytics type="googleanalytics" id="anayltics1">
<script type="application/json">
{
"vars": {
"account": "UA-19917703-7"
},
"triggers": {
"outboundLinks": {
"on": "click",
"selector": "a",
"request": "event",
"vars": {
"eventCategory": "outbound",
"eventAction": "click",
"eventLabel": "${outboundLink}"
}
},
"trackPageview": {
"on": "visible",
"request": "pageview"
}
}
}
</script>
</amp-analytics>
<header>
<div class="logo">
<a href="<?php echo home_url(); ?>"><amp-img src="<?php echo get_theme_mod_img( 'ultraPhoto_logo' ) ?>" width="<?php echo get_theme_mod( 'ultraPhoto_number_setting_w' ) ?>" height="<?php echo get_theme_mod( 'ultraPhoto_number_setting_h' ) ?>" layout="responsive"></amp-img></a>
<div class="slogan"><?php bloginfo( 'description' ); ?></div>
</div>
<nav>
<?php wp_nav_menu( array('menu' => 'main' )); ?>
</nav>
<div class="contact-info">
<p class="phoneNo"><a href="tel:972-345-8089">972.345.8089</a></p>
<!-- copyright -->
<p class="copyright">
©
<?php echo date('Y'); ?> Copyright Matthew T Rader</a>.
</p>
<!-- /copyright -->
</div>
</header>
<!-- /header -->
<main role="main">