This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
flamingo.php
57 lines (43 loc) · 1.69 KB
/
flamingo.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
<?php
/*
Plugin Name: Flamingo
Plugin URI: http://flamingo-eggs.com/
Description: Flamingo manages your contact list on WordPress.
Author: Takayuki Miyoshi
Text Domain: flamingo
Domain Path: /languages/
Version: 1.3
*/
define( 'FLAMINGO_VERSION', '1.3' );
define( 'FLAMINGO_PLUGIN', __FILE__ );
define( 'FLAMINGO_PLUGIN_BASENAME',
plugin_basename( FLAMINGO_PLUGIN ) );
define( 'FLAMINGO_PLUGIN_NAME',
trim( dirname( FLAMINGO_PLUGIN_BASENAME ), '/' ) );
define( 'FLAMINGO_PLUGIN_DIR',
untrailingslashit( dirname( FLAMINGO_PLUGIN ) ) );
// Deprecated, not used in the plugin core. Use flamingo_plugin_url() instead.
define( 'FLAMINGO_PLUGIN_URL',
untrailingslashit( plugins_url( '', FLAMINGO_PLUGIN ) ) );
require_once FLAMINGO_PLUGIN_DIR . '/includes/functions.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/formatting.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/capabilities.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/class-contact.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/class-inbound-message.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/class-outbound-message.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/user.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/comment.php';
require_once FLAMINGO_PLUGIN_DIR . '/includes/akismet.php';
if ( is_admin() )
require_once FLAMINGO_PLUGIN_DIR . '/admin/admin.php';
/* Init */
add_action( 'init', 'flamingo_init' );
function flamingo_init() {
/* L10N */
load_plugin_textdomain( 'flamingo', false, 'flamingo/languages' );
/* Custom Post Types */
Flamingo_Contact::register_post_type();
Flamingo_Inbound_Message::register_post_type();
Flamingo_Outbound_Message::register_post_type();
do_action( 'flamingo_init' );
}