-
Notifications
You must be signed in to change notification settings - Fork 1
/
icf-constants.php
49 lines (39 loc) · 1.03 KB
/
icf-constants.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
<?php
/**
* Inspire Custom field Framework (ICF)
*
* @package ICF
* @author Masayuki Ietomi <jyokyoku@gmail.com>
* @copyright Copyright(c) 2011 Masayuki Ietomi
* @link http://inspire-tech.jp
*/
if ( !defined( 'ICF_DS' ) ) {
define( 'ICF_DS', DIRECTORY_SEPARATOR );
}
if ( !defined( 'ICF_TMPL_URI' ) ) {
define( 'ICF_TMPL_URI', get_template_directory_uri() );
}
if ( !defined( 'ICF_SS_URI' ) ) {
define( 'ICF_SS_URI', get_stylesheet_directory_uri() );
}
if ( !defined( 'ICF_SECOND' ) ) {
define( 'ICF_SECOND', 1 );
}
if ( !defined( 'ICF_MINUTE' ) ) {
define( 'ICF_MINUTE', ICF_SECOND * 60 );
}
if ( !defined( 'ICF_HOUR' ) ) {
define( 'ICF_HOUR', ICF_MINUTE * 60 );
}
if ( !defined( 'ICF_DAY' ) ) {
define( 'ICF_DAY', ICF_HOUR * 24 );
}
if ( !defined( 'ICF_WEEK' ) ) {
define( 'ICF_WEEK', ICF_DAY * 7 );
}
if ( !defined( 'ICF_MONTH' ) ) {
define( 'ICF_MONTH', ICF_DAY * 30 );
}
if ( !defined( 'ICF_YEAR' ) ) {
define( 'ICF_YEAR', ICF_DAY * 365 );
}