-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtpl-visit.php
142 lines (128 loc) · 6.25 KB
/
tpl-visit.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
137
138
139
140
141
142
<?php
/**
* @package WordPress
*
* Template Name: Visit Us
*
*/
get_header(); ?>
<div class="main-content-wrapper insidelevante">
<div class="banner">
<img src="<?php the_field('banner_image'); ?>" alt="<?php the_title(); ?>" />
</div>
<?php if (have_posts()): ?>
<?php while (have_posts()): the_post(); ?>
<div class="content-wrapper main">
<h1><?php the_title(); ?></h1>
<?php endwhile; ?>
<?php endif; ?>
<div class="content-wrapper main">
<div class="top">
<div class="rightvisit">
<!-- <div class="visitMenu"><?php //echo do_shortcode( '[listmenu menu="Visit Us"]', false ); ?></div> -->
<div style="font-size: 26px;line-height: 1;">Coordinates & Hours</div>
<div class="address">
<div class="address--location">
<p><b>Taproom</b><br>208 Carter Dr, Suite 2<br>West Chester, PA 19382</p>
<p><span>(484) 999-8761</span></p>
<p>
<a href="https://www.google.com/maps/place/Levante+Brewing/@39.948756,-75.587724,16z/data=!4m5!3m4!1s0x0:0x8e8a47e3bf212392!8m2!3d39.9487565!4d-75.5877243?ll=39.948756,-75.587724&z=16&t=m&hl=en-US&gl=US&mapclient=embed&cid=10271100943661605778" target="_blank">
<span>Directions</span>
<img src="https://testbeersite.website/wp-content/themes/levante/images/nextarrow.png" alt="Next Arrow" class="arrow" scale="0">
</a>
</p>
</div>
<!-- <div class="address--location">
<p>
<b>The Stables</b><br>160 Park Road<br>
Chester Springs, PA 19425
</p>
<p>
<span>(484) 302-5118</span>
</p>
<p>
<a href="https://www.google.com/maps/place/Levante+At+The+Stables/@40.080231,-75.690267,16z/data=!4m5!3m4!1s0x0:0x39fd58f048d6f7cb!8m2!3d40.0802313!4d-75.6902669?ll=40.080231,-75.690267&z=16&t=m&hl=en-US&gl=US&mapclient=embed&cid=4178593818307131339" target="_blank">
<span>Directions</span>
<img src="https://testbeersite.website/wp-content/themes/levante/images/nextarrow.png" alt="Next Arrow" class="arrow" scale="0">
</a>
</p>
</div> -->
</div>
</div><!--content-wrapper main-->
<?php if (have_posts()): ?>
<?php while (have_posts()): the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
</div><!--right-->
</div><!--top-->
</div><!--content-wrapper main-->
<?php if ( is_page( 807 ) ) { ?>
<hr></hr>
<div class="content-wrapper main">
<div class="bottom-section">
<section class="five">
<div class="content-wrapper">
<?php if(get_field('section_5_title')) { ?>
<h1><?php the_field('section_5_title'); ?></h1>
<?php } ?>
<div class="left">
<?php //echo do_shortcode('[tribe_this_week category="stables-food-trucks" layout="vertical"]');
// Ensure the global $post variable is in scope
/* global $post;
$day = date('w');
$week_start = date('m-d-Y', strtotime('-'.$day.' days'));
$week_end = date('m-d-Y', strtotime('+'.(6-$day).' days'));
// Retrieve all events in October 2014
$events = tribe_get_events( array(
'eventDisplay' => 'custom',
'start_date' => $week_start,
'end_date' => $week_end
) );
// Loop through the events: set up each one as
// the current post then use template tags to
// display the title and content
foreach ( $events as $post ) {
setup_postdata( $post );
// This time, let's throw in an event-specific
// template tag to show the date after the title!
echo "$post->post_title";
echo tribe_get_start_date( $post );
}*/
?>
</div><!--left-->
<div class="right">
<div class="block">
<?php echo do_shortcode( '[untappd-menu location=2580 theme=6796]' );
// echo do_shortcode( '[tappd-press-menu menu_id=18007]' );
//echo do_shortcode('[untappd-menu location=2580 theme=6332624]'); ?>
</div><!--block-->
</div><!--right-->
</div><!--content-wrapper-->
</section><!--five-->
</div><!--bottom-->
</div><!--content-wrapper main-->
<?php } else { ?>
<hr></hr>
<div class="content-wrapper main">
<div class="bottom-section">
<section class="five">
<div class="content-wrapper">
<?php if(get_field('section_5_title')) { ?>
<h1><?php the_field('section_5_title'); ?></h1>
<?php } ?>
<div class="left">
<?php echo do_shortcode('[tribe_this_week category="food-trucks" layout="vertical"]'); ?>
</div><!--left-->
<div class="right">
<div class="block">
<?php echo do_shortcode( '[tappd-press-menu menu_id=4963]' );?>
</div><!--block-->
</div><!--right-->
</div><!--content-wrapper-->
</section><!--five-->
</div><!--bottom-->
</div><!--content-wrapper main-->
<?php } ?>
</div><!--main-content-wrapper-->
<?php get_footer(); ?>