-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-about.php
executable file
·174 lines (105 loc) · 3.83 KB
/
page-about.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?php /* Template Name: about_template */ ?>
<?php get_header(); ?>
<?php include "video_overlay.php" ?>
<div class="background_scroll_wrapper">
<?php
$bg_video = get_field('background_video');
?>
<div class="scroll_wrapper">
<div class="container ghost">
<iframe class="fullvid" src="<?php echo $bg_video->video_url; ?>?api=1&controls=0&background=1" frameborder="0" allowfullscreen></iframe>
<div class="header_text_intro">
<div class="header_title"><?php single_post_title(); ?></div>
</div>
</div>
<?php
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'category_name' => 'About Us',
'posts_per_page' => 4
);
$custom_query = new WP_Query($args);
if ($custom_query->have_posts()) : while($custom_query->have_posts()) : $custom_query->the_post();
?>
<!-- Start der geloopten Inhalte -->
<div class="container">
<div class="wrapper">
<div class="article reverse <?php if ( !has_post_thumbnail() ) { echo "text-article";} ?>">
<div class="text-wrapper">
<div class="title"><h2><?php the_title(); ?></h2></div>
<div class="subtitle"><?php the_field('first_article_subtitle') ?></div>
<?php the_content();?>
</div>
<?php
if ( has_post_thumbnail() ) {
echo "<div class='image-wrapper'>";
the_post_thumbnail();
echo "</div>";
}
?>
</div>
</div>
</div>
<h1></h1>
<!-- Ende der geloopten Inhalte -->
<?php endwhile; else : ?>
<?php include('no_posts.php') ?>
<?php endif; wp_reset_postdata(); ?>
<div class="core_monkeys container">
<div class="wrapper title">
<div class="section_title"><h4>movinapes</h4></div>
</div>
<div class="wrapper padding_top_20">
<?php
$posts = get_posts(array(
'posts_per_page' => -1,
'post_type' => 'movinapes_members',
'category_name' => 'Main Monkey'
));
if( $posts ): ?>
<?php foreach( $posts as $post ):
setup_postdata( $post );
$crew_type = get_field('crew_type');
?>
<div class="user_profile">
<div class="user_picture" style="background-image:url('<?php the_field('image'); ?>');"></div>
<div class="user_name"><?php the_field('name'); ?></div>
<div class="user_position"><?php the_field('company_position'); ?></div>
<div class="user_mail"><a href="mailto:<?php the_field('email'); ?>"><?php the_field('email'); ?></a></div>
</div>
<?php
endforeach; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</div>
</div>
<div class="core_monkeys helpful_monkeys container">
<div class="wrapper title">
<div class="section_title"><h4>Supporting Apes</h4></div>
</div>
<div class="wrapper padding_top_20">
<?php
$posts = get_posts(array(
'posts_per_page' => -1,
'post_type' => 'movinapes_members',
'category_name' => 'Freelance Monkey'
));
if( $posts ): ?>
<?php foreach( $posts as $post ):
setup_postdata( $post );
?>
<div class="user_profile">
<div class="user_picture" style="background-image:url('<?php the_field('image'); ?>');"></div>
<div class="user_name"><?php the_field('name'); ?></div>
<div class="user_position"><?php the_field('company_position'); ?></div>
</div>
<?php endforeach; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</div>
</div>
<?php include "brands.php"; ?>
<?php
include 'contact_form.php'; ?>
<?php get_footer(); ?>