-
Notifications
You must be signed in to change notification settings - Fork 2
/
page-jumpin.php
204 lines (142 loc) · 5.31 KB
/
page-jumpin.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<?php
// Jump-in Single-Page Template
get_header();
?>
<!-- Header - ACF field for side image, ACF field for header text content -->
<div class="jumpin-container">
<div class="jumpin-header no-gutters">
<div class="image">
<?php
$headerImage = get_field('header_image');
$size = 'full'; // (thumbnail, medium, large, full or custom size)
if( $headerImage ) {
echo wp_get_attachment_image( $headerImage, $size );
}
?>
</div>
<div class="text">
<h1><?php html_entity_decode(the_field('page_title') ) ?></h1>
<p><?php html_entity_decode(the_field('header_copy') ) ?></p>
</div>
</div>
<div class="container-fluid gold-background">
<div class="row no-gutters">
<div class="container">
<div class="app-download gold-background">
<!-- Gold download app row -->
<div class="app-image">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/jumpin/Phone_Icon.png" alt="Smartphone">
</div>
<div class="copy-block">
<p class="subtitle"><?php html_entity_decode(the_field('app_download_row_subtitle') ) ?></p>
<p class="copy"><?php the_field('app_download_row_copy') ?></p>
</div>
<div class="store-icons">
<ul class="app-store-icons">
<li ><a class="store-icon apple" href="https://apps.apple.com/us/app/uw-alumni-association/id682824301">apple</a></li>
<li ><a class="store-icon android" href="https://play.google.com/store/apps/details?id=edu.uw.uwaa">android</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid purple-background">
<div class="row">
<div class="container">
<div class="purple-social">
<!-- Purple social -->
<div class="follow-text">
<p>follow us</p>
</div>
<div class="social-icons">
<ul>
<li>
<a class="instagram" href="http://instagram.com/uwalum">Instagram</a>
</li>
<li>
<a class="twitter" href="https://www.twitter.com/UWalum">Twitter</a>
</li>
<li>
<a class="facebook" href="https://www.facebook.com/UWalum">facebook</a>
</li>
<li>
<a class="linkedin" href="https://www.linkedin.com/groups?gid=40422">linkedin</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="overlay-container container-fluid">
<div class="overlay-row row">
<div class="container uw-body">
<div class="row">
<div class="col-md-12 uw-content" role='main'>
<!-- ACF repeater field, two values, image and text -->
<?php
// Check rows exists.
if( have_rows('blocks') ):
// Loop through rows.
while( have_rows('blocks') ) : the_row();
// Load sub field value.
$image = get_sub_field('icon_image');
$subTitle = get_sub_field('subtitle');
$copyBlock = get_sub_field('copy_block');
$linkText = get_sub_field('link_text');
$linkURL = get_sub_field('link');
// Do something...
?>
<!-- Template -->
<div class="row">
<div class="icon">
<?php
$size = 'full'; // (thumbnail, medium, large, full or custom size)
if( $image ) {
echo wp_get_attachment_image( $image, $size );
}
?>
</div>
<div class="textarea">
<h2><?php echo $subTitle ?></h2>
<p>
<?php
echo html_entity_decode($copyBlock);
if( $linkURL ): ?>
<a href="<?php echo esc_url( $linkURL ); ?>"><?php echo html_entity_decode($linkText); ?></a>
<?php endif; ?>
</p>
</div>
</div>
<?php
// End loop.
endwhile;
// No value.
else :
// Do something...
endif;
?>
</div>
</div>
</div>
</div> <!-- overlay row -->
</div> <!-- overlay fluid-container -->
<div class="container-fluid wufoo-container">
<div class="wufoo-form-row">
<div class="form-container">
<h2>tell us</h2>
<div class="form responsive-embed">
<?php
$formID = get_field('wufoo_form_id');
if($formID) {
echo do_shortcode('[wufoo username="uwalum" formhash="'.$formID.'" autoresize="true" height="300" header="show" ssl="true" defaultv="Field5='.get_the_title() .'"]' );
}
?>
</div>
</div>
</div>
</div>
<!-- /jumpin-container -->
</div>
<?php get_footer(); ?>