-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathconstants.php
More file actions
33 lines (24 loc) · 911 Bytes
/
constants.php
File metadata and controls
33 lines (24 loc) · 911 Bytes
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
<?php
/**
* PHP Contstant Declarations
*
* @package CollabPress
* @since 1.4
*/
define( 'COLLABPRESS_VERSION', '1.4-dev' );
if ( defined( 'CP_BASENAME' ) )
define( 'COLLABPRESS_BASENAME', CP_BASENAME );
if ( ! defined( 'COLLABPRESS_BASENAME' ) )
define( 'COLLABPRESS_BASENAME', plugin_basename(__FILE__) );
if ( defined( 'CP_PLUGIN_DIR' ) ) {
if ( false !== strpos( CP_PLUGIN_DIR, 'collabpress' ) ) {
define( 'COLLABPRESS_PLUGIN_DIR', CP_PLUGIN_DIR );
}
}
if ( ! defined( 'COLLABPRESS_PLUGIN_DIR' ) )
define( 'COLLABPRESS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
if ( defined( 'CP_PLUGIN_URL' ) )
define( 'COLLABPRESS_PLUGIN_URL', CP_PLUGIN_URL );
if ( ! defined( 'COLLABPRESS_PLUGIN_URL' ) )
define( 'COLLABPRESS_PLUGIN_URL', plugins_url( substr( COLLABPRESS_BASENAME, 0, strpos( COLLABPRESS_BASENAME, '/' ) ) ) . '/' );
define( 'COLLABPRESS_RSS_URL', 'http://collabpress.org/feed' );