-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappmaps.php
66 lines (52 loc) · 1.45 KB
/
appmaps.php
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Plugin Name: AppMaps
* Plugin URI: https://blog.meloniq.net/donate/
* Description: Disables automatic updating geolocation in ClassiPress theme, and insert new box with map in admin to manually place marker.
*
* Requires at least: 4.9
* Requires PHP: 7.4
* Version: 1.3
*
* Author: MELONIQ.NET
* Author URI: https://blog.meloniq.net
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* Text Domain: appmaps
*/
// If this file is accessed directly, then abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'APPMAPS_TD', 'appmaps' );
define( 'APPMAPS_FILE', __FILE__ );
/**
* Setup Plugin data.
*
* @return void
*/
function appmaps_setup() {
global $mnet_appmaps;
require_once( dirname( __FILE__ ) . '/src/class-install.php' );
$mnet_appmaps['install'] = new AppMaps_Install();
// admin pages
if ( is_admin() ) {
require_once( dirname( __FILE__ ) . '/src/class-settings.php' );
$mnet_appmaps['settings'] = new AppMaps_Settings();
}
}
add_action( 'after_setup_theme', 'appmaps_setup' );
/**
* Load Text-Domain.
*
* @return void
*/
function appmaps_load_textdomain() {
load_plugin_textdomain( APPMAPS_TD, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
add_action( 'plugins_loaded', 'appmaps_load_textdomain' );
/**
* Load functions
*/
include_once( dirname( __FILE__ ) . '/appmaps-functions.php');