-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
120 lines (100 loc) · 4.48 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
<?php declare(strict_types = 1);
namespace HnutiBrontosaurus\Theme;
$hb_currentPost = get_post();
?>
</div>
<?php if ($hb_currentPost?->post_name !== 'nasi-partneri'): ?>
<aside class="sponsors">
<ul class="sponsors-list">
<li class="sponsors-list-item sponsors-list-item--msmt">
<a href="http://www.msmt.cz" target="_blank">
<img src="<?php echo get_template_directory_uri(); ?>/frontend/dist/images/ministerstvo-skolstvi.png" alt="Ministerstvo školství, mládeže a tělovýchovy" class="sponsors-list-item-image">
</a>
</li>
<li class="sponsors-list-item">
<a href="http://www.erasmusprogramme.com" target="_blank">
<img src="<?php echo get_template_directory_uri(); ?>/frontend/dist/images/spolufinancovano-eu.png" alt="Spolufinancováno Evropskou unií" class="sponsors-list-item-image">
</a>
</li>
<li class="sponsors-list-item sponsors-list-item--mv">
<a href="https://www.mvcr.cz" target="_blank">
<img src="<?php echo get_template_directory_uri(); ?>/frontend/dist/images/ministerstvo-vnitra.png" alt="Ministerstvo vnitra České republiky" class="sponsors-list-item-image">
</a>
</li>
<li class="sponsors-list-item sponsors-list-item--mzp">
<a href="https://www.mzp.cz" target="_blank">
<img src="<?php echo get_template_directory_uri(); ?>/frontend/dist/images/ministerstvo-zivotniho-prostredi.png" alt="Ministerstvo životního prostředí" class="sponsors-list-item-image">
</a>
</li>
<li class="sponsors-list-item">
<a href="https://www.sfzp.cz" target="_blank">
<img src="<?php echo get_template_directory_uri(); ?>/frontend/dist/images/statni-fond.png" alt="Státní fond životního prostředí České republiky" class="sponsors-list-item-image">
</a>
</li>
</ul>
Děkujeme za podporu <a class="sponsors-link" href="<?php echo getLinkFor('nasi-partneri') ?>">všem našim partnerům</a>.
</aside>
<?php endif; ?>
<div class="newsletter">
<h2 class="newsletter__heading">
Chceš zůstat v kontaktu?
</h2>
<div>
<script>
(function (w,d,s,o,f,js,fjs) {
w['ecm-widget']=o;w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };
js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];
js.id = '1-43c2cd496486bcc27217c3e790fb4088'; js.dataset.a = 'hnutibrontosaurus'; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs);
}(window, document, 'script', 'ecmwidget', 'https://d70shl7vidtft.cloudfront.net/widget.js'));
</script>
<div id="f-1-43c2cd496486bcc27217c3e790fb4088"></div>
</div>
<div class="newsletter__socials">
<a class="newsletter__instagramLink" href="https://www.instagram.com/hnutibrontosaurus" rel="noopener noreferrer" target="_blank" aria-label="Instagram Hnutí Brontosaurus"></a>
<a class="newsletter__facebookLink" href="https://www.facebook.com/hnutibrontosaurus" rel="noopener noreferrer" target="_blank" aria-label="Facebook Hnutí Brontosaurus"></a>
<a class="newsletter__youtubeLink" href="https://www.youtube.com/channel/UCiytQ5b-4GzZbYWDVMwNJ7A" rel="noopener noreferrer" target="_blank" aria-label="Youtube Hnutí Brontosaurus"></a>
</div>
</div>
<div class="footer-wrapper" id="navigace">
<footer class="footer">
<nav class="footer-navigation" role="navigation">
<?php // three menus are used so that there is clear distinction what will render in which column ?>
<?php // otherwise we would have to rely on layout which wouldn't produce the desired result ?>
<?php wp_nav_menu([
'theme_location' => 'footer-left',
'container' => false,
'depth' => 1,
]); ?>
<?php wp_nav_menu([
'theme_location' => 'footer-center',
'container' => false,
'depth' => 1,
]); ?>
<?php wp_nav_menu([
'theme_location' => 'footer-right',
'container' => false,
'depth' => 1,
]); ?>
</nav>
<div class="footer__bottom">
<a class="footer__logo" href="<?php echo get_home_url(); ?>" aria-label="Hnutí Brontosaurus"></a>
<div class="footer__searchForm searchForm__gcseRoot">
<div
class="gcse-searchbox-only"
data-resultsUrl="<?php echo getLinkFor('vysledky-vyhledavani'); ?>"
data-queryParameterName="q"
data-enableAutoComplete="false"
></div>
<script type="text/javascript">
window.addEventListener('load', function () {
document.getElementById('gsc-i-id2').placeholder = 'Prohledat web';
document.getElementById('___gcse_1').querySelector('button.gsc-search-button').innerHTML = 'Hledat';
});
</script>
</div>
</div>
</footer>
</div>
</div>
</body>
</html>