-
Notifications
You must be signed in to change notification settings - Fork 0
/
people.php
73 lines (62 loc) · 1.56 KB
/
people.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
66
67
68
69
70
71
72
73
<?php
/**
* @link http://jacobmckinney.com/people/
* @since 1.0.0
* @package People
*
* Plugin Name: People
* Plugin URI: http://jacobmckinney.com/people/
* Description: Create elegant member directories.
* Author: Jacob McKinney
* Author URI: http://jacobmckinney.com/
* Version: 1.0.0
* License: GPLv2
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
* Copyright 2016 Jacob McKinney
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
// Define constant for plugin file path
define( 'PEOPLE_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
/**
* Require all non-admin plugin dependencies
*
* @since 1.0.0
*
*/
require_once( PEOPLE_PLUGIN_PATH . 'classes/class-people-post-type.php' );
require_once( PEOPLE_PLUGIN_PATH . 'classes/class-people-list.php' );
/**
* Begins execution of plugin dashboard
*
* Initializes settings pages and settings if user is logged in
* and accessing the admin area of the site.
*
* @since 1.0.0
*
*/
if ( is_admin() ) {
require_once( PEOPLE_PLUGIN_PATH . 'classes/class-people-dashboard.php' );
require_once( PEOPLE_PLUGIN_PATH . 'interfaces/interface-people-setting.php' );
require_once( PEOPLE_PLUGIN_PATH . 'classes/settings/class-people-display.php' );
function run_people_dashboard() {
$plugin = new People_Dashboard();
$plugin->run();
}
run_people_dashboard();
}
/**
* Instantiates the People post-type
*
* @since 1.0.0
*
*/
$people = new People_Post_Type();
/**
* Instantiates the List taxonomy
*
* @since 1.0.0
*
*/
$list = new People_list();