-
Notifications
You must be signed in to change notification settings - Fork 7
/
functions.php
47 lines (41 loc) · 993 Bytes
/
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
<?php
require_once(dirname(__FILE__).'/lib/chester/require.php');
$galleryLocationBlock = array(
'name' => 'location',
'blockTitle' => 'Gallery Location',
'fields' => array(
array(
'name' => 'location',
'labelTitle' => 'Location',
'fieldType' => 'textField',
),
array(
'name' => 'map',
'labelTitle' => 'Link to a map',
'fieldType' => 'textField',
)
)
);
$galleryInfoBlock = array(
'name' => 'other',
'blockTitle' => 'Other details',
'fields' => array(
array(
'name' => 'website',
'labelTitle' => 'Website address',
'fieldType' => 'textField'
)
)
);
$galleryCustomPostType = array(
'name' => 'gallery',
'displayName' => 'gallery',
'pluralDisplayName' => 'galleries',
'enablePostThumbnailSupport' => true,
'fieldBlocks' => array($galleryLocationBlock, $galleryInfoBlock)
);
$adminSettings = array(
'customPostTypes' => array($galleryCustomPostType)
);
$adminController = new ChesterAdminController($adminSettings);
?>