-
Notifications
You must be signed in to change notification settings - Fork 7
/
page-roadmap.php
107 lines (93 loc) · 3.16 KB
/
page-roadmap.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
<?php
/* Template Name: Roadmap/timeline Page */
get_header(); ?>
<div id="<?php echo get_field('main_id'); ?>" class="page-roadmap">
<?php get_template_part('inc/content_lg'); ?>
<section class="block block-roadmap bg-light">
<div class="container">
<div class="roadmap-container">
<div class="top">
<?php if ( get_field( "top_image" )!='' ){
echo "<img src='". get_field( "top_image" ) ."' class='img-fluid'>";
} ?>
</div>
<!-- Timeline -->
<div class="roadmap-items">
<?php
$count = 0;
while( have_rows('roadmap') ): the_row();
$count++;
?>
<div class="roadmap-item <?php echo get_sub_field('point_complete')=='yes'?"complete":''; ?> <?php echo get_sub_field('point_type')?> <?php echo get_sub_field('point_type')=='info'?get_sub_field('point_align'):''; ?>">
<div class="caption" data-target="#roadmap-info-<?php echo $count ?>" data-toggle="modal">
<h3><?php echo get_sub_field('point_title')?></h3>
<?php if (get_sub_field('point_type')=='info'){ ?>
<div class="tags">
<div class="tag-bg">
<?php echo get_sub_field('point_date'); ?>
</div>
<div class="status">
<?php echo get_sub_field('point_complete')=='yes'?"complete":''; ?>
</div>
</div>
<?php echo get_sub_field('point_description')?>
<span class="icon-inline sm gray arrow">
<?php get_template_part('inc/caret.svg'); ?>
</span>
<?php } ?>
</div>
<?php if (get_sub_field('point_type')=='info'){ ?><div class="dot"></div><?php } ?>
</div>
<?php endwhile; ?>
</div>
<!-- End timeline -->
<div class="bottom">
<?php if ( get_field( "bottom_image" )!='' ){
echo "<img src='". get_field( "bottom_image" ) ."' class='img-fluid'>";
} ?>
<div class="bottom-date">
<p><?php echo get_field('date_label'); ?></p>
</div>
</div>
</div>
</div>
</section>
<?php
$count = 0;
while( have_rows('roadmap') ): the_row();
$count++;
if (get_sub_field('point_type')=='info'){
?>
<div class="modal fade roadmap-modal <?php echo get_sub_field('point_complete')=='yes'?"complete":''; ?>" id="roadmap-info-<?php echo $count ?>" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<a data-dismiss="modal" aria-label="Close" class="modal-close-btn"><span class="icon-el remove"></span></a>
<div class="content">
<div class="tags">
<div class="tag-bg">
<?php echo get_sub_field('point_date'); ?>
</div>
<div class="status">
<?php echo get_sub_field('point_complete')=='yes'?"complete":''; ?>
</div>
</div>
<div class="row">
<div class="col-lg-4 border-right">
<h3><?php echo get_sub_field('point_title')?></h3>
<div class="richtext text-sm">
<?php echo get_sub_field('point_description')?>
</div>
</div>
<div class="col-lg-8">
<div class="richtext text-sm px-lg-3">
<?php echo get_sub_field('point_content')?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } endwhile; ?>
</div>
<?php get_footer(); ?>