-
Notifications
You must be signed in to change notification settings - Fork 4
/
candela-citation.php
62 lines (53 loc) · 1.46 KB
/
candela-citation.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
<?php
/**
* @wordpress-plugin
* Plugin Name: Candela Citation
* Description: Creative Commons Attributions for Candela/Pressbooks
* Version: 0.2.4
* Author: Lumen Learning
* Author URI: http://lumenlearning.com
* Text Domain: lti
* License: MIT
* GitHub Plugin URI: https://github.com/lumenlearning/candela-citation
*/
// If file is called directly, abort.
use Candela\Citation;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
|--------------------------------------------------------------------------
| Constants
|--------------------------------------------------------------------------
|
|
|
|
*/
if ( ! defined( 'CANDELA_CITATION_FIELD' ) ) {
define( 'CANDELA_CITATION_FIELD', '_candela_citation' );
}
if( ! defined( 'CANDELA_CITATION_DB_VERSION') ) {
define( 'CANDELA_CITATION_DB_VERSION', '1.0' );
}
if( ! defined( 'CANDELA_CITATION_SEPARATOR') ) {
define( 'CANDELA_CITATION_SEPARATOR', '. ' );
}
if ( ! defined( 'CANDELA_CITATION_DB_OPTION')) {
define( 'CANDELA_CITATION_DB_OPTION', 'candela_citation_db_version' );
}
if ( ! defined( 'CANDELA_PLUGIN_DIR' ) ) {
define( 'CANDELA_PLUGIN_DIR', __DIR__ . '/' );
}
/*
|--------------------------------------------------------------------------
| autoload
|--------------------------------------------------------------------------
|
|
|
|
*/
require CANDELA_PLUGIN_DIR . 'autoloader.php';
// Do our necessary plugin setup and add_action routines.
Citation::init();