forked from zeen101/issuem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
issuem.php
80 lines (64 loc) · 2.23 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
68
69
70
71
72
73
74
75
76
77
78
79
80
<?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.3
Author URI: http://issuem.com/
Tags:
*/
/**
* Defined constants
*
* @since 1.2.0
*/
if ( !defined( 'ISSUEM_STORE_URL' ) )
define( 'ISSUEM_STORE_URL', 'http://issuem.com' );
define( 'ISSUEM_SLUG', 'issuem' );
define( 'ISSUEM_VERSION', '1.2.3' );
define( 'ISSUEM_DB_VERSION', '1.0.0' );
define( 'ISSUEM_URL', plugin_dir_url( __FILE__ ) );
define( 'ISSUEM_PATH', plugin_dir_path( __FILE__ ) );
define( 'ISSUEM_BASENAME', plugin_basename( __FILE__ ) );
define( 'ISSUEM_REL_DIR', dirname( ISSUEM_BASENAME ) );
define( 'ISSUEM_PATH_PARENT_THEME', get_template_directory() );
define( 'ISSUEM_URL_PARENT_THEME', get_template_directory_uri() );
define( 'ISSUEM_PATH_CHILD_THEME', get_stylesheet_directory() );
define( 'ISSUEM_URL_CHILD_THEME', get_stylesheet_directory_uri() );
/**
* Instantiate IssueM class, require helper files
*
* @since 1.2.0
*/
function issuem_plugins_loaded() {
require_once( 'issuem-templates.php' );
require_once( 'issuem-class.php' );
require_once( 'view-classes/issuem-class-article.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_settings();
require_once( 'issuem-post-type.php' );
require_once( 'issuem-taxonomy.php' );
require_once( 'issuem-functions.php' );
if ( 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_REL_DIR . '/i18n/' );
do_action( 'issuem_loaded' );
}
}
add_action( 'plugins_loaded', 'issuem_plugins_loaded', 4815162342 ); //wait for the plugins to be loaded before init