forked from genagl/shmapper
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathshmapperTracks.plugin.php
More file actions
40 lines (35 loc) · 1.37 KB
/
shmapperTracks.plugin.php
File metadata and controls
40 lines (35 loc) · 1.37 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
<?php
/**
* ShMapper Tracks
*
* Description: Add-on for Shmapper by Teplitza plugin. Added paths, tracks and routes functionality
* Author: KB of Protopia Home
* Author URI: https://kb.protopia-home.ru
*/
// Paths.
define( 'SHMTRACKS_REAL_PATH', WP_PLUGIN_DIR . '/' . plugin_basename(dirname(__FILE__) ) . '/' );
define( 'SHMAPPER_TRACKS', 'shmapper-by-teplitsa' );
define( 'SHM_TRACK_TYPE', 'shmapper_track_type' );
define( 'SHMAPPER_TRACKS_TRACK', 'shmapper_track' );
define( 'SHMAPPER_TRACKS_POINT', 'shmapper_track_point' );
define( 'SHMAPPER_TRACKS_DRAW', 'shmapper_track_draw' );
require_once SHM_REAL_PATH . 'class/ShMapperTracks.class.php';
require_once SHM_REAL_PATH . 'class/ShMapperTracksAjax.class.php';
require_once SHM_REAL_PATH . 'class/ShMaperTrack.class.php';
require_once SHM_REAL_PATH . 'class/ShMapperTracksPoint.class.php';
require_once SHM_REAL_PATH . 'class/ShMapTrackType.class.php';
register_activation_hook( __FILE__, array( 'ShMapperTracks', 'activate' ) );
if ( function_exists( 'register_deactivation_hook' ) )
{
register_deactivation_hook(__FILE__, array( 'ShMapperTracks', 'deactivate' ) );
}
/** Shamapper-tracks init */
function init_shmapperTracks()
{
ShMapperTracks::get_instance();
ShMapperTracksAjax::init();
ShMapTrackType::init();
ShMaperTrack::init();
ShMapperTracksPoint::init();
}
add_action( 'init', 'init_shmapperTracks', 1 );