-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
53 lines (37 loc) · 1.21 KB
/
functions.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
<?php
// start a session.
session_start();
// removing this constant will mess up any modules that add to the theme options dashboard area.
define( 'PURE', true );
// a prefix to use for all custom fields.
define( 'CMB_PREFIX', '_p_' );
global $sli;
$sli = false;
// set up the colors
global $colors;
$colors = array(
'aqua' => 'Aqua',
'grey-dark' => 'Grey - Dark',
'grey-light' => 'Grey - Light',
'forest' => 'Forest',
'green' => 'Green',
'lime' => 'Lime',
'navy' => 'Navy',
'orange' => 'Orange',
'river' => 'River',
'seafoam' => 'Seafoam',
'teal' => 'Teal',
'yellow' => 'Yellow'
);
// require multiple - a little helper function to require multiple files from the library directory in a one
function require_multi( $files ) {
$files = func_get_args();
foreach ( $files as $file )
require_once 'library/' . $file . '.php';
}
// include utility functions
require_multi(
'core', 'metabox', 'page-settings', 'login', 'admin',
'post-type/people', 'post-type/event', 'post-type/job', 'post-type/partner',
'images', 'metabox', 'showcase', 'showcase-simple', 'icons', 'accordion', 'partner-logos', 'button', 'articles', 'category-color', 'notice', 'microsite', 'microsite-v2', 'microsite-merger'
);