-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-get-involved.php
110 lines (89 loc) · 4.9 KB
/
page-get-involved.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
<?php
/**
* Get Involved template.
*
*/
get_header();
// Get container type from Wordpress Customizer
$container = get_theme_mod( 'understrap_container_type' );
// Grab steps from custom fields plugin
$getting_involved_steps = SCF::get( 'Steps' );
?>
<div class="wrapper" id="index-wrapper">
<div class="<?php echo esc_attr( $container ); ?>" id="content" tabindex="-1">
<main class="site-main" id="main">
<?php the_post(); ?>
<?php get_template_part('partial-templates/titlecard-fullwidth'); ?>
<?php $menu_name = 'get-involved';
$wrapper_class_name = 'entry-header';
include( locate_template( 'partial-templates/centered-submenu.php') ); ?>
<?php get_template_part('partial-templates/pageblurb'); ?>
<section class="steps">
<div class="steps-header text-center"> Getting involved at Vera is easy:</div>
<div class="row step-tabs no-gutters">
<div class="col-sm-12">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<?php foreach ( $getting_involved_steps as $i => $step ) { ?>
<?php $step_label = 'Step ' . pad_zeroes( $step['numbered_step_header'] );
$step_element_id = 'step-' . $step['numbered_step_header'];
?>
<li class="nav-item">
<a class="nav-link <?php echo ( $i == 0 ) ? 'active' : '' ?>"
id="tab-<?php echo $step_element_id ?>" data-toggle="tab"
href="#<?php echo $step_element_id ?>" role="tab"
aria-controls="<?php $step_element_id ?>"
aria-selected="true"><?php echo $step_label ?></a>
</li>
<?php } ?>
</ul>
</div>
</div>
<div class="tab-content">
<?php foreach ( $getting_involved_steps as $i => $step ) { ?>
<?php $step_element_id = 'step-' . $step['numbered_step_header']; ?>
<div class="tab-pane <?php echo ( $i == 0 ) ? 'active' : '' ?>"
id="<?php echo $step_element_id ?>" role="tabpanel"
aria-labelledby="<?php echo $step_element_id ?>">
<div class="row no-gutters">
<div class="col-md-6 tab-image d-none d-md-block">
<img src="<?php echo wp_get_attachment_url($step['step_image']); ?>"/>
</div>
<div class="col-sm-12 col-md-6 px-5 px-md-0">
<div id="step-label">
<div class="small-primary-bg-header">
<?php echo pad_zeroes( $step['numbered_step_header'] ); ?>
</div>
<?php if ( $step['mark_if_required'] ):
echo '<span>required</span>';
endif;
?>
</div>
<h2 class="large-header"><?php echo $step['step_header'] ?></h2>
<div class="paragraph-content"><?php echo $step['step_content'] ?></div>
</div>
</div>
</div>
<?php } ?>
</div>
</section>
<section class="volunteer-committees row">
<div class="row no-gutters">
<div id="volunteer-content" class="col-sm-12 col-md-6">
<div id="content-wrapper">
<?php if ( get_field( 'adventure_text' ) ):
echo '<div class="small-primary-bg-header">' . get_field( 'get_involved_small_header' ) . '</div>';
endif;
echo '<h2 class="large-header">' . get_field( 'get_involved_header' ) . '</h2>';
echo '<div class="paragraph-content">' . get_field( 'get_involved_content' ) . '</div>';
echo '<a class="btn bordered-button btn-outline-primary" href="' . get_field( 'get_involved_link' ) . '"> Learn More </a>'; ?>
</div>
</div>
<div class="col-md-6 d-none d-md-block">
<img class="volunteer-image" src="<?php echo get_field( 'get_involved_image' )['url'];?>" />
</div>
</div>
</section>
</main><!-- #main -->
</div><!-- #content -->
</div><!-- .wrapper -->
<?php get_footer(); ?>