-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspotmap.php
More file actions
46 lines (38 loc) · 1.42 KB
/
spotmap.php
File metadata and controls
46 lines (38 loc) · 1.42 KB
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
<?php
/**
* Plugin Name: Spotmap
* Plugin URI: https://github.com/techtimo/spotmap
* Description: Self-hosted GPS tracking for WordPress. Display live positions from SPOT, OsmAnd, and Teltonika devices on interactive Leaflet maps — with a Gutenberg block, time filtering, GPX overlays, and full data ownership.
* Version: 1.0.0-rc.6
* Author: Timo Giese
* Author URI: https://github.com/techtimo
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: spotmap
* Domain Path: /languages
* Requires PHP: 8.2
* GitHub Plugin URI: https://github.com/techtimo/spotmap
*/
// Block direct access
defined('ABSPATH') or die();
define('SPOTMAP_VERSION', '1.0.0-rc.6');
define('SPOTMAP_PLUGIN_BASENAME', plugin_basename(__FILE__));
register_activation_hook(__FILE__, 'activate_spotmap');
function activate_spotmap()
{
require_once plugin_dir_path(__FILE__) . 'includes/class-spotmap-activator.php';
Spotmap_Activator::activate();
}
register_deactivation_hook(__FILE__, 'deactivate_spotmap');
function deactivate_spotmap()
{
require_once plugin_dir_path(__FILE__) . 'includes/class-spotmap-deactivator.php';
Spotmap_Deactivator::deactivate();
}
require plugin_dir_path(__FILE__) . 'includes/class-spotmap.php';
function run_spotmap()
{
$plugin = new Spotmap();
$plugin->run();
}
run_spotmap();