-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
226 lines (184 loc) · 9.67 KB
/
index.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<?php
$URL = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
include dirname(__FILE__) . '/AltoRouter.php';
$router = new AltoRouter();
$router->setBasePath('');
$router->map('GET','/', 'views/homepage.php', 'homepage');
$router->map('GET','/about/', 'views/about.php', 'about');
$match = $router->match();
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Transparent Mining Zimbabwe</title>
<meta name="description" content="The Transparent Mining Zimbabwe platform maps the details, trends and connections in the allocation of Mining Licences in Zimbabwe.">
<script>
(function () {
document.documentElement.className = document.documentElement.className.replace(/(^|\\b)no\-js(\\b|$)/gi, 'has-js');
svgSupported = (function () {
var div = document.createElement('div');
div.innerHTML = '<svg/>';
return (typeof SVGRect != 'undefined' && div.firstChild && div.firstChild.namespaceURI) == 'http://www.w3.org/2000/svg';
}());
if (svgSupported) {
document.documentElement.className += ' has-svg';
} else {
document.documentElement.className += ' no-svg';
}
var isMobile = window.matchMedia && window.matchMedia('only screen and (max-width: 767px)').matches;
if (isMobile) {
document.documentElement.className += ' is-mobile';
}
var canvasSupported = (function () {
var canvas = document.createElement('canvas');
return !!(canvas.getContext && canvas.getContext('2d')) && canvas.toDataURL('image/png').indexOf('data:image/png') === 0;
}());
if (canvasSupported) {
document.documentElement.className += ' has-canvas';
} else {
document.documentElement.className += ' no-canvas';
}
}());
</script>
<meta property="og:site_name" content="Transparent Mining Zimbabwe" />
<meta property="og:title" content="Transparent Mining Zimbabwe" />
<meta property="og:description" content="Mapping license details, connections, and trends in the allocation of Mining Licences in Zimbabwe." />
<meta property="og:url" content="<?php echo $URL ?>" />
<meta property="og:type" content="website" />
<meta property="og:image" content="/favicons/ogMain.png" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/favicons/manifest.json">
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<link rel="dns-prefetch" href="//gstatic.com">
<link rel="dns-prefetch" href="//code.jquery.com">
<link rel="dns-prefetch" href="//www.googletagmanager.com">
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto+Slab" rel="stylesheet">
<!-- build:css /css/min.css -->
<link rel="stylesheet" href="/css/global.css" />
<!-- endbuild -->
</head>
<body<?php if($match['name'] == 'homepage'){ echo ' class="App"'; } ?>>
<header class="Header center-align<?php if($match['name'] == 'about'){ ?> Header--plain<?php } ?>">
<div class="Header-inner">
<div class="row">
<div class="col s12">
<h1 class="Header-title">
<a href="/">
<span class="Header-title--primary">Zimbabwe</span>
<span class="Header-title--secondary">Transparent Mining</span>
</a>
</h1>
</div>
<div class="col s12 m6 offset-m3">
<p class="light Header-description">Mineral resources must benefit all citizens</p>
</div>
</div>
<ul class="Header-navigation">
<li><a href="/about/"<?php if($match['name'] == 'about'){ echo ' class="is-active"'; } ?>>About</a></li>
<li><a class="Header-link is-special" href="http://www.zela.org/Pachena/">Community Stories</a></li>
</ul>
<?php if($match['name'] == 'homepage'){ ?>
<ul class="tabs Header-tabs">
<li class="tab col">
<a href="/#tab-0" class="ui-colors faded" data-view="companies">
<span>Browse by company</span>
<i class="material-icons">keyboard_arrow_right</i>
</a>
</li>
<li class="tab col">
<a href="/#tab-1" class="ui-colors faded" data-view="mines">
<span>Browse by mine</span>
<i class="material-icons">keyboard_arrow_right</i>
</a>
</li>
<li class="tab col">
<a href="/#tab-2" class="ui-colors faded" data-view="minerals">
<span>Browse by mineral</span>
<i class="material-icons">keyboard_arrow_right</i>
</a>
</li>
</ul>
<?php } ?>
</div>
</header>
<?php if($match['name'] == 'about'){ ?>
<div class="Search ui-colors green"></div>
<?php } ?>
<?php
if($match) {
require $match['target'];
}
else {
header("HTTP/1.0 404 Not Found");
require 'views/404.php';
}
?>
<footer class="Footer">
<div class="Footer-inner">
<div class="row center-align">
<div class="col s12">
<p class="Header-title">
<span class="Header-title--secondary">Transparent Mining</span>
<span class="Header-title--primary">Zimbabwe</span>
</p>
</div>
</div>
<div class="row center-align Footer-logos">
<div class="col s12 m10 offset-m1">
<p class="Footer-poweredBy">a <a href="http://diig.io">diig.io</a> project by</p>
<a href="http://www.ippr.org.na/">
<img src="/images/dist/zela.png" alt="IPPR" width="379" height="77" class="Footer--ippr" />
<img src="/images/dist/zela.png" alt="IPPR" width="379" height="77" class="Footer--ipprSmall" />
</a>
</div>
<div class="col s12 m10 offset-m1">
<p class="Footer-poweredBy">powered by</p>
<a href="https://www.theengineroom.org/" title="The engine room - Accelerating social change">
<img src="/images/dist/matchbox.png" alt="The engine room" width="844" height="261" class="Footer--matchbox" />
</a>
</div>
<div class="col s12 m10 offset-m1 Footer-info">
<a href="https://creativecommons.org/licenses/by-sa/4.0/" title="Creative Commons licence">
<img src="/images/dist/cc.png" alt="" width="117" height="33" class="Footer--cc" />
</a>
<a href="https://github.com/the-engine-room/ippr/" title="IPPR Github repo">
<img src="/images/dist/github.png" alt="" width="126" height="32" class="Footer--github" />
</a>
</div>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script>
<script src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/cartodb.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script>
<!-- build:js /js/min.js -->
<script src="/js/vendor/burza/utils.js"></script>
<script src="/js/main.plain.js"></script>
<!-- endbuild -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-82268240-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>