-
Notifications
You must be signed in to change notification settings - Fork 0
/
landing.php
73 lines (67 loc) · 2.36 KB
/
landing.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
<?php
/*
Template Name: Landing
*/
get_header();
?>
<div class="container">
<div class="row">
<div class="col-12 col-md-9 info">
<h3 class="title"><?php the_field( "bt_title" ); ?></h3>
<div class="embed-container">
<?php the_field('bt_video'); ?>
</div>
<span>
<?php
$file = get_field('bt_download_file');
if( $file ): ?>
<a href="<?php echo $file['url']; ?>"><?php the_field( "bt_download_text" ); ?></a>
<?php endif; ?>
</span>
<div class="text"><?php the_field( "bt_text" ); ?></div>
<?php
$images = get_field('bt_logo_banner');
if( $images ): ?>
<h4 class="title-partners">The Access and Inclusion Development Partners</h4>
<ul class="bt_logo_banner">
<?php foreach( $images as $image ): ?>
<li>
<img src="<?php echo esc_url($image['sizes']['medium']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" />
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<div class="col-12 col-md-3">
<div class="sidebar">
<h3 class="title-sidebar">In this section</h3>
<?php
// Check rows existexists.
if( have_rows('bt_sidebar') ):
?><ul class="bt-link"><?php
// Loop through rows.
while( have_rows('bt_sidebar') ) : the_row();
// Load sub field value.
$name_value = get_sub_field('bt_name');
$link_value = get_sub_field('bt_link');
// Do something...
?>
<li class="limk-item"><a href="<?php echo $link_value; ?>"><img src="<?php echo AND_IMG_URI. 'igon.jpg' ?>" alt="Facebook" /><?php echo $name_value; ?></a></li>
<?php
// End loop.
endwhile;
?></ul><?php
// No value.
else :
// Do something...
endif;
?>
<a class="button-sidebar" href="#!">Continue Assesment</a>
<a class="button-sign-in" href="#!">Sign in or sign up to start assesment</a>
</div>
</div>
</div>
</div>
<?php
get_footer();
?>