forked from zeen101/issuem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
issuem.php
67 lines (52 loc) · 1.88 KB
/
issuem.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
<?php
/**
* Main PHP file used to for initial calls to IssueM's classes and functions.
*
* @package IssueM
*/
/*
Plugin Name: IssueM
Plugin URI: http://issuem.com/
Description: A feature rich magazine and newspaper issue manager plugin for WordPress.
Author: IssueM Development Team
Version: 1.2.0
Author URI: http://issuem.com/
Tags:
*/
define( 'ISSUEM_PLUGIN_SLUG', 'issuem' );
define( 'ISSUEM_VERSION', '1.2.0' );
define( 'ISSUEM_DB_VERSION', '1.0.0' );
define( 'ISSUEM_API_URL', 'http://api.issuem.com' );
define( 'ISSUEM_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'ISSUEM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'ISSUEM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
define( 'ISSUEM_PLUGIN_REL_DIR', dirname( ISSUEM_PLUGIN_BASENAME ) );
/**
* Instantiate IssueM class, require helper files
*
* @since 1.2.0
*/
function issuem_plugins_loaded() {
require_once( 'issuem-class.php' );
// Instantiate the Pigeon Pack class
if ( class_exists( 'IssueM' ) ) {
global $dl_plugin_issuem;
$dl_plugin_issuem = new IssueM();
$issuem_settings = $dl_plugin_issuem->get_issuem_settings();
require_once( 'issuem-post-type.php' );
require_once( 'issuem-taxonomy.php' );
require_once( 'issuem-functions.php' );
if ( !isset( $issuem_settings['use_wp_taxonomies'] ) || empty( $issuem_settings['use_wp_taxonomies'] ) ) {
// Don't load these if we don't have too
require_once( 'issuem-cats-taxonomy.php' );
require_once( 'issuem-tags-taxonomy.php' );
}
require_once( 'issuem-shortcodes.php' );
require_once( 'issuem-widgets.php' );
require_once( 'issuem-feeds.php' );
//Internationalization
load_plugin_textdomain( 'issuem', false, ISSUEM_PLUGIN_REL_DIR . '/i18n/' );
do_action( 'issuem_loaded' );
}
}
add_action( 'plugins_loaded', 'issuem_plugins_loaded', 4815162342 ); //wait for the plugins to be loaded before init