-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
175 lines (139 loc) · 8.31 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
<?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>Data and Info for Improved Governance</title>
<meta name="description" content="diig.io - Data and Info for Improved Governance">
<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="diig.io - Data and Info for Improved Governance" />
<meta property="og:title" content="diig.io - Data and Info for Improved Governance" />
<meta property="og:description" content="Tdiig.io - Data and Info for Improved Governance" />
<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://npmcdn.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" href="http://libs.cartocdn.com/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--secondary">diig.io</span>
<span class="Header-title--primary">Data and info</span>
<span class="Header-title--tertiary">for improved governance</span>
</a>
</h1>
</div>
<div class="col s12 m6 offset-m3">
<p class="light"> Diig.io is a lightweight tool for extractive transparency.
<a href="https://www.theengineroom.org/">The Engine Room</a> and the Namibian <a href="http://www.ippr.org.na/">Institute for Public Policy Research</a> worked together to build a data model and searchable platform of petroleum exploration licences in Namibia, to power investigative journalism and advocacy for stronger resource governance. <a href="http://www.theengineroom.org/balancing-acts-using-replication-sprints-to-repurpose-technology-without-ignoring-context">Through the replication sprint process</a>, The Engine Room worked with new partners to build two similar platforms. Below you will find links to the new licencing platforms of <a href="http://citizensforjustice.org/">Citizens for Justice</a>, Oxfam Malawi, and the <a href="http://www.zela.org/">Zimbabwe Environmental Law Association</a>, who advocate for more transparent target mineral extraction in Malawi and Zimbabwe. The data in these platforms are the foundation for future work to collect, organise and analyse additional information about extractive governance, so watch this space.</p>
<p class="light">Are you a local organisation looking to organise data about extractives industries in your country? If you think that diig.io platform might meet your needs, <a href="https://engn.it/hello">set up a call with our team</a> .</p>
</div>
</div>
</div>
</header>
<?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 Footer-logos">
<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="">
<img src="/images/dist/cc.png" alt="" width="117" height="33" class="Footer--cc" />
</a>
<a href="https://github.com/the-engine-room/diig/" title="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://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>