forked from nextcloud/nextcloud-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
127 lines (118 loc) · 3.56 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
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
<?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">';
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
/*
if (have_rows('popup_items', 'options')) {
echo '<div class="modal custom-modal fade" id="trialModal" tabindex="-1" aria-labelledby="trialModalLabel" aria-hidden="true">';
echo '<div class="modal-dialog modal-xl">';
echo '<div class="modal-content">';
echo '<div class="modal-header">';
echo '<h3>Try Nextcloud</h3>';
echo '<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>';
echo '</div>';
echo '<div class="modal-body">';
echo '<div class="wrap-modal-slider">';
echo '<div class="modal-slider">';
while (have_rows('popup_items', 'options')) {
the_row();
$popicon = get_sub_field('icon');
$poptitle = get_sub_field('title');
$poptext = get_sub_field('text');
$poplink = get_sub_field('link');
echo '<div>';
echo '<div class="slider-box">';
if (!empty($popicon)) {
echo '<img src="' . $popicon . '" alt=""/>';
}
if (!empty($poptitle)) {
echo '<h4>' . $poptitle . '</h4>';
}
if (!empty($poptext)) {
echo wpautop($poptext);
}
if ($poplink) {
$link_url = $poplink['url'];
$link_title = $poplink['title'];
$link_target = $poplink['target'] ? $poplink['target'] : '_self';
echo '<a class="c-btn btn-blue" href="' . esc_url($link_url) . '" target="' . esc_attr($link_target) . '">' . esc_html($link_title) . '</a>';
}
echo '</div>';
echo '</div>';
}
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
}
*/
?>
<?php wp_footer(); ?>
<?php get_template_part('inc/matomo'); //comment when done with cookie banner ?>
<a href="" title="Scroll Up" class="scroll_up" style=""><i class="fa fa-angle-up"></i></a>
</body>
</html>