-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
87 lines (76 loc) · 2.56 KB
/
front-page.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
<?php
get_header();
$home_page_args = array(
'post_type' => 'page',
'numberposts'=> -1,
'posts_per_page'=> -1,
'post_status'=> 'publish',
'pagename'=> 'home'
);
$home_page = new WP_Query( $home_page_args );
if ( $home_page->have_posts() ) while ( $home_page->have_posts() ) : $home_page->the_post();
?>
<article class="video-intro">
<div class="mask-container">
<video loop muted id="bgvid">
<source src="<?php the_field('video'); ?>" type="video/mp4">
</video>
</div>
<section class="halfpiece intro-copy col-5-12">
<h1><?php the_field('intro_title'); ?></h1>
<p><?php the_field('intro_message'); ?></p>
<a href="/rausch/work"><button><?php the_field('intro_button'); ?></button></a>
</section>
</article>
<article class="service-portal">
<h2>We Build The Experience From Start To Finish</h2>
<section class="col-4-12">
<p><?php the_field('work_message'); ?></p>
<a href="/rausch/work"><button><?php the_field('work_button'); ?></button></a>
</section>
<section class="col-4-12">
<p><?php the_field('services_message'); ?></p>
<a href="/rausch/services"><button><?php the_field('services_button'); ?></button></a>
</section>
<section class="col-4-12">
<p><?php the_field('led_message'); ?></p>
<a href="/rausch/led-technology"><button><?php the_field('led_button'); ?></button></a>
</section>
</article>
<article class="testimonial" data-type="background" data-background="<?php the_field('background_image') ?>">
<section class="centerpiece">
<blockquote class="blockquote"><?php the_field('testimonial'); ?></blockquote>
<p>-<?php the_field('testifier'); ?></p>
<p><?php the_field('job_title'); ?></p>
</section>
</article>
<?php
endwhile;
?>
<article class="work-clients">
<section class="centerpiece">
<h1 class="secondary-heading">Clients</h1>
<p><?php the_field('about_clients', 5); ?></p>
</section>
<ul>
<?php
$client_list_args = array(
'post_type' => 'client',
'numberposts'=> -1,
'posts_per_page'=> -1,
'post_status'=> 'publish',
'orderby'=> 'title',
'order'=> 'ASC',
);
$client_list = new WP_Query( $client_list_args );
if ( $client_list->have_posts() ) while ( $client_list->have_posts() ) : $client_list->the_post();
?>
<li class="col-2-12">
<img src="<?php the_field('client_logo_image'); ?>"/>
</li>
<?php
endwhile;
?>
</ul>
</article>
<?php get_footer(); ?>