-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfooter.php
More file actions
78 lines (70 loc) · 2 KB
/
footer.php
File metadata and controls
78 lines (70 loc) · 2 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
<?php
/*
* The template for displaying the footer
*/
$flogo = get_field('footer_logo', 'options');
?>
<footer>
<div class="container">
<div class="row">
<div class="col-12">
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="footer-logo">
<?php if (is_active_sidebar('footer-widget-area')) : ?>
<?php dynamic_sidebar('footer-widget-area'); ?>
<?php endif; ?>
</div>
</div>
<div class="col-lg-8">
<?php
wp_nav_menu(array(
'theme_location' => 'footer',
'menu' => 'footer-menu',
'menu_class' => 'footer-menu',
'container_id' => 'menu-footer-menu-container',
));
?>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="line"></div>
</div>
</div>
<div class="row align-items-center">
<div class="col-lg-6 order-lg-2">
<div class="social-media-holder">
<?php
if (have_rows('social_media', 'options')):
echo '<ul class="social-menu">';
echo '<li><a id="cookies_preferences" title="'.__('Cookies preferences','nextcloud').'" href="#">'.__('Cookies preferences','nextcloud').'</a></li>';
while (have_rows('social_media', 'options')): the_row();
$socialicon = get_sub_field('social_media_icon');
$sociallink = get_sub_field('social_media_link');
$social_title = get_sub_field('social_media_title');
$rel = '';
if($social_title == 'Mastodon') {
$rel = ' rel="me" ';
}
echo '<li><a '.$rel.' title="'.$social_title.'" href="' . $sociallink . '" target="_blank"><img src="' . $socialicon . '" alt="'.$social_title.'"/></a></li>';
endwhile;
echo '</ul>';
endif;
?>
</div>
</div>
<div class="col-lg-6 order-lg-1">
<div class="foot-text">
<p>© <?php echo get_the_date('Y')." - ".date("Y"); ?> Nextcloud GmbH</p>
</div>
</div>
</div>
</div>
</footer>
<?php wp_footer(); ?>
<a href="" title="Scroll Up" class="scroll_up" style=""><i class="fa fa-angle-up"></i></a>
</body>
</html>