-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspotmap.php
More file actions
38 lines (32 loc) · 1.17 KB
/
spotmap.php
File metadata and controls
38 lines (32 loc) · 1.17 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
<?php
/**
* Plugin Name: Spotmap
* Plugin URI: https://github.com/techtimo/spotmap
* Description: See Spot GPS tracker positions inside your blog. Show GPX track(s) to let viewers know where you intend to go.
* Version: 0.11.2
* Author: Timo Giese
* Author URI: https://github.com/techtimo
* License: GPL2
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: spotmap
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/techtimo/spotmap
*/
// Block direct access
defined( 'ABSPATH' ) or die();
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();