-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
111 lines (71 loc) · 2.67 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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WordPress
* @subpackage ServicesUOL
* @author Jez Thompson <[email protected]>
* @since 1.0
* @version 1.0
*/
?>
<?php ServicesUOL_content_bottom(); ?>
</div><!-- .sitebody-content -->
<?php ServicesUOL_content_after(); ?>
<footer class="site-footer">
<?php if(get_field("toggle_google_maps", "option") == true): ?>
<div id="map-canvas" class="footer-top">
<div id="location_map" class="contact_map"></div>
<script type="text/javascript">
function initialize() {
var mapCanvas = document.getElementById('location_map');
var mapOptions = {
center: new google.maps.LatLng(<?php echo 53.2265885//$map['lat']; ?>, <?php echo -0.5494468//$map['lng']; ?>),
zoom: 16,
draggable: true,
scrollwheel: false,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(mapCanvas, mapOptions)
var image = {
//url: url,
//size: size,
scaledSize: new google.maps.Size(<?php echo 1440 //$icon_width; ?>, <?php echo 500 //$icon_height; ?>),
origin: new google.maps.Point(0,0),
anchor: new google.maps.Point(18, 20)
};
/* var marker = new google.maps.Marker({
position: map.getCenter(),
map: map,
icon: image
}); */
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</div> <!-- footer-top -->
<?php endif; ?>
<div class="footer-middle">
<?php get_template_part( 'template-parts/footer-widgets' ); ?>
</div> <!-- footer-middle -->
<div class="footer-bottom">
<div class="logo_container">
<a href="http://www.lincoln.ac.uk/home/">
<img class="logo" src="<?php echo esc_url( get_template_directory_uri() ); ?>/images/uol_landscape.svg" alt="<?php bloginfo( 'name' ); ?> University Of Lincoln Logo">
</a>
<div class="stacked">
<p class="credit">
Designed by <b>Thomas Moore</b> (2nd year Interactive Design). Developed by <b>Brennan Ceballos Peña</b> (1st year Games Computing)
</p>
<?php university_links(); ?>
</div>
<p class="coppyright"> © <b>University of Lincoln.</b> All rights reserved</p>
</div>
</div> <!-- footer-bottom -->
</footer> <!-- site-footer-->
<?php wp_footer(); ?>
</body>
</html>