-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfront-page.php
More file actions
220 lines (193 loc) · 8.13 KB
/
Copy pathfront-page.php
File metadata and controls
220 lines (193 loc) · 8.13 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?php
/*
Template Name: Home Page
*/
?>
<?php get_header(); ?>
<style type = "text/css">
<?php if(has_post_thumbnail()): ?>
#homev2{
background: url('<?= the_post_thumbnail_url(); ?>');
}
@media (min-width:768px) {
#homev2{
background: url('<?= the_post_thumbnail_url(); ?>');background-attachment: fixed;
}
}
<?php endif; ?>
</style>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBjh-JsUKjcqJEHv0bGZSvuEj4LfzzE0K8"></script>
<style type="text/css"> #map-canvas { width: 100%; height: 300px; } </style>
<!-- Header -->
<header id="homev2">
<div class="container">
<!-- Intro Section: Logo, Heading & Address -->
<div class="intro-text">
<div class="intro-lead-in">
<h1 class="intro-title"><?php bloginfo( 'name' ); ?></h1>
</div>
<p><img alt="Contact Us" class=
"img-responsive center-block hidden-xs animated zoomIn" src=
"<?= get_template_directory_uri(); ?>/img/bits/fork-knife.svg"> </p>
<p><img alt="Contact Us" class=
"img-responsive center-block visible-xs animated zoomIn" src=
"<?= get_template_directory_uri(); ?>/img/bits/fork-knife-mobileindex.svg"> </p>
<div class="intro-heading"><?php bloginfo( 'description' ); ?></div>
<div class="col-sm-6 addys">
<p class="address">528 9th Ave North<br>
Golden, BC V0A 1H0<br>
<a href="tel:1-250-344-6111" class="tel header-a"><u>(250) 344-6111</u></a></p>
</div>
<div class="col-sm-6">
<p class="address">204 MacKenzie Ave<br>
Revelstoke, BC V0E 2S0<br>
<a href="tel:1-250-837-5690" class="tel header-a"><u>(250) 837-5690</u></a></p>
</div>
</div>
<!-- /.Intro Section: Logo, Heading & Address -->
</div>
<!-- /.container -->
</header>
<!-- /Header -->
<!-- About Section -->
<section id="about">
<div class="container">
<!-- Heading and Subheading -->
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading"><?php the_field('home_page_section-1_header'); ?></h2>
<h3 class="section-subheading"><?php the_field('home_page_section-1_subheader'); ?></h3>
</div>
</div>
<!-- /.Heading and Subheading -->
<!-- Border -->
<div class="">
<div class="border">
<div class="row">
<div class="col-lg-12 text-center">
<p class="mrgn-neg20"><img alt="border" class="img-responsive center-block" height="26" src="<?= get_template_directory_uri(); ?>/img/border.svg" /></p>
</div>
</div>
</div>
</div>
<!-- /.Border -->
<!-- Description -->
<div class="">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<p><?php
if (have_posts()) :
while (have_posts()) :
the_post();
the_content();
endwhile;
endif;?>
</p>
</div>
</div>
</div>
<!-- /.Description -->
</div>
<!-- /.container -->
</section>
<!-- /.About Section -->
<!-- Instagram Section -->
<section id="instagram">
<div class="container">
<!-- Call-To-Action Content Area -->
<div class="row">
<div class="text-center">
<h2 class="section-heading"><?php the_field('home_page_section-2_header'); ?></h2>
<h3 class="section-subheading"><?php the_field('home_page_section-2_subheader'); ?></h3>
<p><img alt="Contact Us" class=
"img-responsive center-block" src=
"<?= get_template_directory_uri(); ?>/img/border.svg" /> </p>
<span class="hidden-xs"><?= do_shortcode("[instashow columns='3']"); ?></span>
<span class="visible-xs"><?= do_shortcode("[instashow columns='2']"); ?></span>
<br>
<br>
<div class="text-center">
<a href="https://www.instagram.com/BigBendCafe/?ref=badge"><button class="btn btn-primary text-center"><i class="icon-camera-retro"></i> Follow us on Instagram!</button></a>
</div>
</div>
</div>
<!-- /.Call-To-Action Content Area -->
</div>
</section>
<!-- /.Call-To-Action Section -->
<!-- Contact Section -->
<section id="contact">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center mrgn20-btm">
<div class="">
<h2 class="section-heading"><?php the_field('home_page_section-3_header'); ?></h2>
<h3 class="section-subheading"><?php the_field('home_page_section-3_subheader'); ?></h3>
<p><img alt="Contact Us" class=
"img-responsive center-block" src=
"<?= get_template_directory_uri(); ?>/img/border.svg" /> </p>
<div class="col-lg-4 col-lg-offset-1">
<p class="hours-border text-uppercase contact-address">Golden<br><br>
7:30am - 2:00pm<br></p>
<p class="text-uppercase mrgn20-btm contact-address">
528 9th Ave North<br>
Golden, BC V0A 1H0<br>
<a href="tel:1-250-344-6111" class="tel"><u>(250) 344-6111</u></a><br>
<a href="mailto:Roddy.macisaac@gmail.com"><u>E-mail us</u></a></p>
</div>
<div class="col-lg-offset-2 col-lg-4">
<p class="hours-border text-uppercase contact-address">Revelstoke<br>
7:30am - 2:30pm<br>4:00pm - close</p>
<p class="text-uppercase mrgn20-btm contact-address">204 MacKenzie Ave<br>
Revelstoke, BC V0E 2S0<br>
<a href="tel:1-250-837-5690" class="tel"><u>(250) 837-5690</u></a><br>
<a href="mailto:Roddy.macisaac@gmail.com"><u>E-mail us</u></a></p>
</div>
</div>
</div>
</div>
<!-- /.Contact Heading, Location & Social Connections -->
</div>
<!-- /.container -->
<!-- Location Map with an Iframe-->
<div id="iframe">
<div class="container-fluid">
<div class="row">
<div id="map-canvas"></div><!-- #map-canvas -->
<script type="text/javascript">
google.maps.event.addDomListener( window, 'load', gmaps_results_initialize );
function gmaps_results_initialize() {
if ( null === document.getElementById( 'map-canvas' ) ) {
return;
}
var map, marker1, marker2;
map = new google.maps.Map( document.getElementById( 'map-canvas' ), {
zoom: 8,
scrollwheel: false,
center: new google.maps.LatLng( 51.21076477, -117.51965342 ),
});
// Marker
marker1 = new google.maps.Marker({
position: new google.maps.LatLng( 51.301430, -116.967340),
map: map
});
marker2 = new google.maps.Marker({
position: new google.maps.LatLng( 50.998535, -118.195491),
map: map
});
}
</script>
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- /.Location Map with an Iframe -->
<div class="container">
<!-- Border -->
<div class="">
</div>
<!-- /.container -->
</section>
<!-- /.Contact Section -->
<?php get_footer(); ?>