-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
71 lines (68 loc) · 2.69 KB
/
footer.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
</main>
<footer class="footer">
<div class="footer-top">
<div class="wrapped">
<?php
$offices = get_posts(
array(
'post_type' => 'office',
'posts_per_page' => -1,
'orderby' => 'date',
'order' => 'ASC'
)
);
if($offices) {
foreach($offices as $office) {
$id = $office->ID;
?>
<div class="office">
<h3><?php echo get_the_title($id);?></h3>
<p>
Büro <?php echo get_field('stadt', $id);?><br />
<?php echo get_field('strasse', $id);?><br />
<?php echo get_field('postleitzahl', $id);?> <?php echo get_field('stadt', $id);?>
</p>
<p>
Telefon: <?php echo get_field('telefon', $id);?><br />
Telefax: <?php echo get_field('fax', $id);?>
</p>
<p>
E-Mail: <a href="mailto:<?php echo get_field('email', $id);?>"><?php echo get_field('email', $id);?></a>
</p>
</div>
<?php
}
}
?>
</div>
</div>
<div class="footer-bottom">
<div class="wrapped">
<nav class="footer-nav">
<?php
wp_nav_menu(array(
'menu_position' => 'footer'
));?>
</nav>
<nav class="social-nav">
<?php $icons = get_field('social', 'option');
if($icons) {
foreach($icons as $icon) { ?>
<a href="<?php echo $icon['link'];?>"><img src="<?php echo $icon['icon'];?>" alt="icon" /></a>
<?php
}
}
?>
</nav>
</div>
</div>
</footer>
<?php
if(get_field('home_siegel', 'option')) {?>
<div class="home-siegel">
<img src="<?php the_field('home_siegel', 'option');?>" alt="Siegel" />
</div>
<?php } ?>
</div>
<?php wp_footer();?>
</body>