-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
50 lines (33 loc) · 870 Bytes
/
main.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
<?php
/*
Plugin Name: Site Stats
Plugin URI:
Description:
Version: 1.3.0
Author: Crystal Barton
Author URI: http://www.crystalbarton.com
Network: True
GitHub Plugin URI: https://github.com/clas-web/site-stats
*/
if( !defined('SITE_STATS') ):
define( 'SITE_STATS', 'Site Stats' );
define( 'SITE_STATS_DEBUG', true );
define( 'SITE_STATS_PLUGIN_PATH', dirname(__FILE__) );
define( 'SITE_STATS_PLUGIN_URL', plugins_url('', __FILE__) );
define( 'SITE_STATS_VERSION', '1.3.0' );
endif;
if( is_admin() ):
add_action( 'wp_loaded', array('SITE_STATS_Main', 'load') );
endif;
if( !class_exists('SITE_STATS_Main') ):
class SITE_STATS_Main
{
public static function load()
{
require_once( dirname(__FILE__).'/admin-pages/require.php' );
$pages = new APL_Handler( true );
$pages->add_page( new SITE_STATS_MainAdminPage );
$pages->setup();
}
}
endif;