-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-home.php
128 lines (109 loc) · 4.18 KB
/
page-home.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
<?php
/*
Template Name: Home page
Template Post Type: page
*/
get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="page-detail">
<!-- big jumbotron with CTA button -->
<input type="checkbox" name="video-expander" id="video-expander" class="page-hero__video-expander-checkbox">
<div class="page-hero">
<h2 class="page-hero__title">The Wikilogic Foundation</h2>
<p class="page-hear__sub-title">
“Don’t raise your voice, improve your argument”<br />
<small>– Desmond Tutu</small></p>
<label class="page-hero__button" for="video-expander">
<span class="page-hero__button-text">
What is Wikilogic? Watch this video
</span>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 60 60">
<path d="M30,0C13.458,0,0,13.458,0,30s13.458,30,30,30s30-13.458,30-30S46.542,0,30,0z M45.563,30.826l-22,15
C23.394,45.941,23.197,46,23,46c-0.16,0-0.321-0.038-0.467-0.116C22.205,45.711,22,45.371,22,45V15c0-0.371,0.205-0.711,0.533-0.884
c0.328-0.174,0.724-0.15,1.031,0.058l22,15C45.836,29.36,46,29.669,46,30S45.836,30.64,45.563,30.826z"/>
</svg>
</label>
<div class="page-hero__video">
<iframe width="560" height="315" src="https://www.youtube.com/embed/Yn193xNaMHg" frameborder="0" allowfullscreen></iframe>
</div>
<label class="page-hero__turn-off-the-lights" for="video-expander"></label>
<!--
<a href="/what-is-wikilogic" class="page-hero__link">
In depth article
</a>
-->
</div>
<div class="homepage-callouts">
<div class="homepage-callouts__max-width-wrap">
<div class="homepage-callout homepage-callout--left">
<div class="homepage-callout__title"><?php the_field('left_callout_title'); ?></div>
<div class="homepage-callout__body">
<?php the_field('left_callout_body'); ?>
</div>
</div>
<div class="homepage-callout homepage-callout--center">
<div class="homepage-callout__title"><?php the_field('middle_callout_title'); ?></div>
<div class="homepage-callout__body">
<?php the_field('middle_callout_body'); ?>
</div>
</div>
<div class="homepage-callout homepage-callout--right">
<div class="homepage-callout__title"><?php the_field('right_callout_title'); ?></div>
<div class="homepage-callout__body">
<?php the_field('right_callout_body'); ?>
</div>
</div>
</div>
</div>
<div class="homepage-explainer">
<div class="homepage-explainer__max-width-wrap">
<?php the_field('lead_description'); ?>
</div>
</div>
<!--
<div class="page-detail__body">
<?php
// the content (pretty self explanatory huh)
the_content();
/*
* Link Pages is used in case you have posts that are set to break into
* multiple pages. You can remove this if you don't plan on doing that.
*
* Also, breaking content up into multiple pages is a horrible experience,
* so don't do it. While there are SOME edge cases where this is useful, it's
* mostly used for people to get more ad views. It's up to you but if you want
* to do it, you're wrong and I hate you. (Ok, I still love you but just not as much)
*
* http://gizmodo.com/5841121/google-wants-to-help-you-avoid-stupid-annoying-multiple-page-articles
*
*/
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bonestheme' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
?>
</div>
-->
<!--
<div class="uses">
<?php
$args = array( 'post_type' => 'use', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
?>
<div class="uses__use">
<div class="uses__use-title"><?php the_title(); ?></div>
<div class="uses__use-body"><?php the_content(); ?></div>
</div>
<?php
endwhile;
?>
</div>
-->
<?php //comments_template(); ?>
</div>
<?php endwhile; endif; ?>
<?php //get_sidebar(); ?>
<?php get_footer(); ?>