-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmap.php
More file actions
30 lines (22 loc) · 732 Bytes
/
map.php
File metadata and controls
30 lines (22 loc) · 732 Bytes
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
<?php
/**
* @author James Baster <james@jarofgreen.co.uk>
* @copyright City of Edinburgh Council & James Baster
* @license Open Source under the 3-clause BSD License
* @url https://github.com/City-Outdoors/City-Outdoors-Web
*/
require 'includes/src/global.php';
$currentUser = getCurrentUser();
$collectionSearch = new CollectionSearch();
$tpl = getSmarty($currentUser);
$tpl->assign('inCollectionTab',true);
$tpl->assign('inMap',true);
$tpl->assign('collectionSearch',$collectionSearch);
$tpl->assign('feature',null);
if (isset($_GET['featureID']) && intval($_GET['featureID'])) {
$feature = Feature::findByID($_GET['featureID']);
if ($feature) {
$tpl->assign('feature',$feature);
}
}
$tpl->display('map.htm');