This repository was archived by the owner on Jan 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtemplate-learn-more.php
More file actions
executable file
·129 lines (102 loc) · 4.25 KB
/
template-learn-more.php
File metadata and controls
executable file
·129 lines (102 loc) · 4.25 KB
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
<?php /* Template Name: Learn More */ get_header(); ?>
<main role="main">
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<?php edit_post_link(); ?>
<!-- PAGE FEATURE ======= -->
<!-- ==================== -->
<section class="page-feature">
<div class="spot-illustration">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/illustration-learn-more.svg">
</div>
<h1 class="narrative-title">
<?php the_field('narrative_title'); ?>
</h1>
<div class="narrative-summary">
<?php the_content(); ?>
</div>
</section>
<!-- WEBRTC SUMMARY ========= -->
<!-- ======================== -->
<section class="webrtc-summary">
<?php the_field('webrtc_summary'); ?>
</section>
<!-- PAGE COLUMNS ======= -->
<!-- ==================== -->
<section class="narrative-columns">
<div class="row">
<div class="col-md-6 column-one">
<h3 class="column-title">
<span class="column-icon"></span>
<?php the_field('narrative_column_one_title'); ?>
</h3>
<div class="column-content">
<?php the_field('narrative_column_one_content'); ?>
</div>
</div>
<div class="col-md-6 column-two">
<h3 class="column-title">
<span class="column-icon"></span>
<?php the_field('narrative_column_two_title'); ?>
</h3>
<div class="column-content">
<?php the_field('narrative_column_two_content'); ?>
</div>
</div>
</div>
</section>
<!-- HELPFUL RESOURCES == -->
<!-- ==================== -->
<section id="helpful-resources" class="helpful-resources">
<h3>
<span class="icon-helpful-resources"></span>
Helpful Resources
</h3>
<div class="resources-summary">
<?php the_field('helpful_resources_summary'); ?>
</div>
<div class="resources-category">
<h4 class="category-title">Specs</h4>
<ul>
<?php if( have_rows('specs') ): while ( have_rows('specs') ) : the_row(); ?>
<li><?php the_sub_field('spec_resource_link'); ?></li>
<?php endwhile; ?>
<?php else: ?>
<p>Sorry, no resources currently.</p>
<?php endif; ?>
</ul>
</div>
<div class="resources-category">
<h4 class="category-title">More info / Demos</h4>
<ul>
<?php if( have_rows('more_info_demos') ): while ( have_rows('more_info_demos') ) : the_row(); ?>
<li><?php the_sub_field('info_demo_resource_link'); ?></li>
<?php endwhile; ?>
<?php else: ?>
<p>Sorry, no resources currently.</p>
<?php endif; ?>
</ul>
</div>
<div class="resources-category">
<h4 class="category-title">Helpful Diagrams</h4>
<ul>
<?php if( have_rows('helpful_diagrams') ): while ( have_rows('helpful_diagrams') ) : the_row(); ?>
<li><?php the_sub_field('helpful_diagrams_resource_link'); ?></li>
<?php endwhile; ?>
<?php else: ?>
<p>Sorry, no resources currently.</p>
<?php endif; ?>
</ul>
</div>
</section>
<?php endwhile; ?>
<?php endif; ?>
<!-- JOIN THE CONVERSATION ======= -->
<!-- ============================= -->
<?php get_template_part( 'includes/join-conversation' ); ?>
</div>
</div>
</main>
<?php get_footer(); ?>