-
Notifications
You must be signed in to change notification settings - Fork 4
/
footer.php
96 lines (81 loc) · 2.88 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
</article>
<footer id="od-footer">
<!-- back-to-top -->
<div class="container">
<div class="row">
<div class="sixteen colunms">
<a href="#" class="back-to-top"><i class="fa fa-angle-up"></i></a>
</div>
</div>
</div>
<div class="container">
<!-- Legal disclaimer -->
<div class="row">
<div class="sixteen columns">
<?php
$disclaimer = odm_get_legal_disclaimer();
if ($disclaimer) :
echo wpautop($disclaimer);
endif;
?>
</div>
</div>
<!-- Footer menu -->
<div class="row">
<div class="nine columns">
<nav id="footer-nav">
<?php
if (has_nav_menu('footer_menu'))
wp_nav_menu(array('theme_location' => 'footer_menu'));
?>
</nav>
</div>
<div class="four columns">
<p><?php printf(__('This website is built on <a href="%s" target="_blank" rel="external"><b>WordPress</b></a> using the <a href="%s" target="_blank" rel="external"><b>JEO Beta</b></a> theme and <a href="%s" target="_blank" rel="external"><b>CKAN</b></a> as back-end for structured data. To learn more about the system architecture, read our <a href="%s" target="_blank" rel="external"><b>documentation</b></a>.', 'odm'), 'https://wordpress.org', 'https://github.com/oeco/jeo', 'https://ckan.org', 'https://wiki.opendevelopmentmekong.net/public:system_s_architecture'); ?></p>
</div>
<?php
if(odm_country_manager()->get_current_country() != 'cambodia'): ?>
<div class="three columns">
<a href="https://ewmi.org/Program/OpenDevelopmentInitiative" target="_blank"><img src="<?php echo get_stylesheet_directory_uri()?>/img/odi_logo.png"></img></a>
</div>
<?php
endif;
?>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</div>
<?php
if (odm_country_manager()->is_pp()): ?>
<script type="text/javascript">
var _mare_pk = '1e34dd25f7b430a1a7cb09454576b4612162fc56cff1ba7b4648e6fc9eacb7c4';
var _mare_sc = 'ee0c15de450f47a43b0070298881dc21';
(function() {
var mare = document.createElement('script'); mare.type = "text/javascript"; mare.async = true;
mare.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'mare.io/API/script.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(mare, s);
})();
</script>
<?php
endif; ?>
</body>
</html>
<script type="text/javascript">
jQuery(document).ready(function() {
var offset = 220;
var duration = 500;
jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > offset) {
jQuery('.back-to-top').fadeIn(duration);
} else {
jQuery('.back-to-top').fadeOut(duration);
}
});
jQuery('.back-to-top').click(function(event) {
event.preventDefault();
jQuery('html, body').animate({scrollTop: 0}, duration);
return false;
})
});
</script>