-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-f1_staffgrid_cpt.php
183 lines (120 loc) · 4.19 KB
/
single-f1_staffgrid_cpt.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
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
<?php get_header();
//Template Name: Speaker Single
?>
<?php if(have_posts()):
while(have_posts()): the_post();
?>
<?php
//============ ** ============ //
// Page HERO
//============ ** ============ //?>
<section class="hero container">
<div class="row hero-content">
<div class="col-10 col-centered text-center">
<h1 class="text-white">
<?php the_title();?>
</h1>
</div>
</div>
</section>
<?php if (has_term('main-stage','f1_staffgrid_tax')): ?>
<?php
//===================== ** ===================== //
// Second Row, Main Stage Speaker details block
//===================== ** ==================== //
?>
<section class="container speaker-top">
<div class="row">
<div class="col-6 stretch nopadding">
<?php if(has_post_thumbnail()) {
the_post_thumbnail('large');
} else { }
?>
</div>
<div class="col-6 stretch nopadding">
<?php if (get_field('portfolio')): ?>
<img src="<?php the_field('portfolio');?>">
<?php endif;?>
</div>
</div>
<div class="row">
<div class="col-8 staffbio">
<?php the_field('staff_bio');?>
</div>
<div class="col-4">
<div class="f1_mentor_details_social_container">
<h3 class="text-teal">Find them online</h3>
<?php if(get_field( "twitter_url" )) : echo('<a href="'); the_field( "twitter_url" ); echo('"><i class="fa fa-twitter" aria-hidden="true"></i></a>'); endif; ?>
<?php if(get_field( "facebook_url" )) : echo('<a href="'); the_field( "facebook_url" ); echo('"><i class="fa fa-facebook" aria-hidden="true"></i></a>'); endif; ?>
<?php if(get_field( "instagram_url" )) : echo('<a href="'); the_field( "instagram_url" ); echo('"><i class="fa fa-instagram" aria-hidden="true"></i></a>'); endif; ?>
<?php if(get_field( "url" )) : echo('<a href="'); the_field( "url" ); echo('"><i class="fa fa-globe" aria-hidden="true"></i></a>'); endif; ?>
</div>
<div class="speakerquote">
<?php the_field('quote');?>
</div>
</div>
</div>
</section>
<?php elseif (has_term('breakout','f1_staffgrid_tax')): ?>
<?php
//===================== ** ===================== //
// Second Row, Breakout Speaker details block
//===================== ** ==================== //
?>
<section class="container speaker-top">
<div class="row">
<div class="col-6 stretch nopadding">
<?php if(has_post_thumbnail()) {
the_post_thumbnail('large');
} else { }
?>
</div>
<div class="col-6 stretch nopadding">
<div class="staffbio">
<?php the_field('staff_bio');?>
</div>
<div class="f1_mentor_details_social_container">
<h3 class="text-teal">Find them online</h3>
<?php if(get_field( "twitter_url" )) : echo('<a href="'); the_field( "twitter_url" ); echo('"><i class="fa fa-twitter" aria-hidden="true"></i></a>'); endif; ?>
<?php if(get_field( "facebook_url" )) : echo('<a href="'); the_field( "facebook_url" ); echo('"><i class="fa fa-facebook" aria-hidden="true"></i></a>'); endif; ?>
<?php if(get_field( "instagram_url" )) : echo('<a href="'); the_field( "instagram_url" ); echo('"><i class="fa fa-instagram" aria-hidden="true"></i></a>'); endif; ?>
<?php if(get_field( "url" )) : echo('<a href="'); the_field( "url" ); echo('"><i class="fa fa-globe" aria-hidden="true"></i></a>'); endif; ?>
</div>
</div>
</div>
</section>
<?php endif; ?>
<section class="container pricegrid">
<div class="row">
<div class="col-10 col-centered">
<h2 class="text-center text-white">
Get your ticket to see <?php the_title();?> & many others!
</h2>
<p class="text-white text-center">
All tickets include entrance to the Method + Madness Conference, PHXDW Kickoff Party,
Method + Madness Opening Reception, and the PHXDW Closing Party
</p>
<?php
//============ ** ============ //
// Get Tickets
//============ ** ============ //
get_template_part('parts/tickets');
?>
</div>
</div>
</section>
<?php endwhile;
endif; ?>
<?php
//============ ** ============ //
// Sign up for email
//============ ** ============ //
get_template_part('parts/newsletter');
?>
<?php
//============ ** ============ //
// Include Sponsors
//============ ** ============ //
get_template_part('parts/sponsors');
?>
<?php get_footer(); ?>