-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (28 loc) · 925 Bytes
/
index.php
File metadata and controls
32 lines (28 loc) · 925 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
31
32
<?php
/*
* Copyright (c) 2023 Baptiste Lepers
* Released under MIT License
*
* Mapbox Gpx map
*/
class Pages_GpxMapGl_Index {
public static $description = "GPX Mapbox Isochrones";
public static $isOptional = true;
public static $showOnMenu = false;
public static $isContentPlugin = true;
public static $activatedByDefault = true;
public static function setupAutoload() {
}
static public function getOptions() {
return array(
array('id' => 'gpxmapgl_token', 'type' => 'text', 'cat' => 'GPX Mapbox Isochrones', 'default' => "", 'export' => true),
array('id' => 'gpxmapgl_tileset', 'type' => 'text', 'cat' => 'GPX Mapbox Isochrones', 'default' => "", 'export' => true),
);
}
/* Alternatively we could include the code directly in index.html. Better? */
static public function getUserFunctions() {
return array(
file_get_contents('./pages/gpxmapgl/scripts/jgallery.gpxmapgl.fun.js')
);
}
};