-
Notifications
You must be signed in to change notification settings - Fork 1
/
functions.php
executable file
·59 lines (50 loc) · 1.6 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
53
54
55
56
57
58
59
<?php
// This file is part of the Carrington JAM Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008-2010 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// **********************************************************************
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
load_theme_textdomain('carrington-jam');
define('CFCT_DEBUG', false);
define('CFCT_PATH', trailingslashit(TEMPLATEPATH));
include_once(CFCT_PATH.'carrington-core/carrington.php');
include_once(CFCT_PATH.'functions/sidebars.php');
// Custom post types
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'sopr_company',
array(
'labels' => array(
'name' => __( 'Companies' ),
'singular_name' => __( 'Company' )
),
'public' => true,
'has_archive' => true,
'supports' => array('title','editor', 'excerpt', 'custom-fields'),
'rewrite' => array('slug' => 'companies')
)
);
register_post_type( 'sopr_person',
array(
'labels' => array(
'name' => __( 'People' ),
'singular_name' => __( 'Person' )
),
'public' => true,
'has_archive' => true,
'supports' => array('title','editor', 'excerpt', 'custom-fields'),
'rewrite' => array('slug' => 'people')
)
);
}
?>