Repository navigation
Expand file tree
/
Copy pathconstants.php
More file actions
81 lines (67 loc) · 3.96 KB
/
Copy pathconstants.php
File metadata and controls
81 lines (67 loc) · 3.96 KB
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
81
<?php
/**
* Plugin constants definitions and helpers.
*
* @package DovetailPodcasts
*/
/**
* Sets up constants for use throughout the plugin and by other extending plugins.
*
* This is in its own file so that it can be used via the autoloaded classes, but also
* can be pulled in when composer dependencies have not been installed.
*
* @return void
*/
function dovetail_podcasts_setup_constants() {
// Whether to autoload the files or not.
// This must be defined here and not within the DovetailPodcasts.php because this constant
// determines whether to autoload classes or not.
if ( ! defined( 'DTPODCASTS_AUTOLOAD' ) ) {
define( 'DTPODCASTS_AUTOLOAD', true );
}
// Plugin version.
if ( ! defined( 'DTPODCASTS_VERSION' ) ) {
define( 'DTPODCASTS_VERSION', '0.4.1' );
}
// Plugin Folder Path.
if ( ! defined( 'DTPODCASTS_PLUGIN_DIR' ) ) {
define( 'DTPODCASTS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
// Plugin Folder URL.
if ( ! defined( 'DTPODCASTS_PLUGIN_URL' ) ) {
define( 'DTPODCASTS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
}
// Plugin Root File.
if ( ! defined( 'DTPODCASTS_PLUGIN_FILE' ) ) {
define( 'DTPODCASTS_PLUGIN_FILE', DTPODCASTS_PLUGIN_DIR . '/dovetail-podcasts.php' );
}
// The minimum version of PHP this plugin requires to work properly.
if ( ! defined( 'DTPODCASTS_MIN_PHP_VERSION' ) ) {
define( 'DTPODCASTS_MIN_PHP_VERSION', '7.1' );
}
// Prefix to use add to cache keys.
if ( ! defined( 'DTPODCASTS_CACHE_GROUP' ) ) {
define( 'DTPODCASTS_CACHE_GROUP', 'dovetail_podcasts' );
}
// Prefix to use add to settings sections.
if ( ! defined( 'DTPODCASTS_SETTINGS_SECTION_PREFIX' ) ) {
define( 'DTPODCASTS_SETTINGS_SECTION_PREFIX', 'dovetail_podcasts_settings-' );
}
// Post meta data key.
if ( ! defined( 'DTPODCASTS_POST_META_KEY' ) ) {
define( 'DTPODCASTS_POST_META_KEY', '_dovetail_podcasts_episode' );
}
// REST API base route.
if ( ! defined( 'DTPODCASTS_API_ROUTE_BASE' ) ) {
define( 'DTPODCASTS_API_ROUTE_BASE', 'dovetail/v1' );
}
// Priority of actions and filters that add players to content.
if ( ! defined( 'DTPODCASTS_PLAYER_CONTENT_PRIORITY' ) ) {
define( 'DTPODCASTS_PLAYER_CONTENT_PRIORITY', 10 );
}
// Prefix for player shortcodes.
if ( ! defined( 'DTPODCASTS_SHORTCODE_PREFIX' ) ) {
define( 'DTPODCASTS_SHORTCODE_PREFIX', 'dovetail-podcasts-' );
}
define( 'DT_LOGO_DATA_SVG', 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIxIiBoZWlnaHQ9IjEyMSIgdmlld0JveD0iMCAwIDEyMSAxMjEiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik05MS4wMjY4IDYwLjQ2MzFMMTE5Ljc2NyAzMS43MjMyQzEyMC4yMzMgMzEuMjU3IDEyMC40OTYgMzAuNjIzNCAxMjAuNDk2IDI5Ljk2MzdDMTIwLjQ5NiAyOS4zMDQgMTIwLjIzMyAyOC42NzA0IDExOS43NjcgMjguMjA0Mkw5Mi43ODY0IDEuMjIzODlDOTIuMzIwMSAwLjc1NzA2OSA5MS42ODY1IDAuNDk0NTc0IDkxLjAyNjggMC40OTQ1NzRDOTAuMzY3MiAwLjQ5NDU3NCA4OS43MzM2IDAuNzU3MDY5IDg5LjI2NzMgMS4yMjM4OUw2MC41Mjc1ID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