-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfooter.php
More file actions
110 lines (99 loc) · 4.4 KB
/
footer.php
File metadata and controls
110 lines (99 loc) · 4.4 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
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
<?php
/**
* The template for displaying the footer.
*
* Contains footer content and the closing of the
* #main and #page div elements.
*
* @package WordPress
* @subpackage FAU
* @since FAU 1.0
*/
use \RRZE\THEME\EINRICHTUNGEN\Debugging;
$display_copyrights = get_theme_mod('display_copyright_in_footer');
if ($display_copyrights) {
$entries = fau_collect_copyright_entries();
if ($entries) {
$res = '';
foreach ($entries as $e) {
$text = isset($e['text']) ? trim(wp_strip_all_tags((string) $e['text'])) : '';
$imageId = isset($e['image_id']) ? (int) $e['image_id'] : 0;
if (!empty($text)) {
$res .= '<li><a href="'.get_permalink($imageId).'">'.__('Bild', 'fau').'</a>: '.esc_html($text).'</li>';
}
}
if (!empty($res)) {
echo '<div class="copyright-footer"><div class="container">';
echo '<h2>'.__('Bildnachweise', 'fau').'</h2>';
echo '<ul>'
. $res
. '</ul></div></div>';
}
}
}
get_template_part('template-parts/footer', 'social');
$website_type = get_theme_mod('website_type');
if (($website_type ==3 ) && ( is_active_sidebar( 'footer-block1' ) )) {
$logoclass = "other";
} else {
$logoclass = "fau";
}
$display_address = get_theme_mod("advanced_footer_display_address");
$contact_address_name = get_theme_mod("contact_address_name");
$contact_address_name2 = get_theme_mod("contact_address_name2");
$contact_address_street = get_theme_mod("contact_address_street");
$contact_address_plz = get_theme_mod("contact_address_plz");
$contact_address_ort = get_theme_mod("contact_address_ort");
$contact_address_country = get_theme_mod("contact_address_country");
$schemaname = $contact_address_name." ".$contact_address_name2;
?>
<footer id="footer">
<div class="container">
<div class="footer-row">
<div class="footer-logo <?php echo $logoclass; ?>">
<?php if (($website_type == 3 ) && ( is_active_sidebar( 'footer-block1' ) )) {
dynamic_sidebar( 'footer-block1' );
} else {
fau_use_svg("fau-logo-2021",144,55,'fau-logo-footer');
} ?>
</div>
<div class="footer-address">
<?php if (($website_type ==3 ) && ( is_active_sidebar( 'footer-block2' ) )) {
dynamic_sidebar( 'footer-block2' );
} elseif ($display_address) { ?> <address itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content="<?php echo esc_html($schemaname);?>">
<span><?php echo $contact_address_name; if (!fau_empty($contact_address_name2)) { echo "<br>".$contact_address_name2; } ?></span><br>
<span itemprop="streetAddress"><?php echo $contact_address_street; ?></span><br>
<span itemprop="postalCode"><?php echo $contact_address_plz; ?></span> <span itemprop="addressLocality"><?php echo $contact_address_ort; ?></span><br>
<?php if (isset($contact_address_country)) { ?><span itemprop="addressCountry"><?php echo $contact_address_country; ?></span><?php } ?>
</address>
<?php } ?> </div>
<div class="footer-meta">
<nav aria-label="<?php echo __('Kontakt, Impressum und Zusatzinformationen','fau'); ?>">
<?php
if ( has_nav_menu( 'meta-footer' ) ) {
wp_nav_menu( array( 'theme_location' => 'meta-footer', 'container' => false, 'items_wrap' => '<ul id="footer-nav" class="%2$s">%3$s</ul>' ) );
} else {
echo fau_get_defaultlinks('techmenu', 'menu', 'footer-nav');
}
?>
</nav>
<?php
global $default_socialmedia_liste;
global $defaultoptions;
echo '<nav class="svg-socialmedia round hoverbg" aria-label="'.__('Social Media','fau').'">';
echo '<div itemscope itemtype="http://schema.org/Organization">';
echo fau_create_schema_publisher(false);
echo fau_get_socialmedia_menu($defaultoptions['socialmedia_menu_name'],'',true);
echo '</div>';
echo '</nav>';
?>
</div>
</div>
</div>
<a href="#pagewrapper" class="top-link"><span class="arrow-up"></span><span class="screen-reader-text"><?php echo __('Nach oben','fau'); ?></span></a>
</footer>
</div>
<?php wp_footer(); ?>
</body>
</html>