forked from IdeaSpaceVR/IdeaSpace-360
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
119 lines (98 loc) · 3.62 KB
/
config.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
return [
'#theme-name' => 'IdeaSpace 360',
'#theme-key' => 'ideaspace-360-photo-sphere-viewer',
'#theme-version' => '2.1',
'#ideaspace-version' => '>=1.2.0',
'#theme-description' => 'Photo sphere viewer with info hotspots and navigation menu in VR. Attach text annotations to hotspots.',
'#theme-author-name' => 'IdeaSpaceVR',
'#theme-author-email' => '[email protected]',
'#theme-homepage' => 'https://www.ideaspacevr.org/themes',
'#theme-keywords' => 'photo sphere, 360, photography',
'#theme-view' => 'scene',
'#content-types' => [
'annotations' => [
'#label' => 'Hotspot Annotation',
'#description' => 'Manage your hotspot annotations.',
'#max-values' => 'infinite',
'#fields' => [
'text' => [
'#label' => 'Text',
'#description' => 'Enter some text.',
'#help' => 'Enter some text.',
'#type' => 'textarea',
'#maxlength' => 150,
'#rows' => 5,
'#contentformat' => 'text',
'#required' => true,
],
'text-color' => [
'#label' => 'Text Color',
'#description' => 'Select a text color.',
'#help' => 'Select a text color.',
'#type' => 'color',
'#required' => false,
'#default_value' => '#FFFFFF',
],
'background-color' => [
'#label' => 'Annotation Background and Hotspot Color',
'#description' => 'Select a background color.',
'#help' => 'Select a background color.',
'#type' => 'color',
'#required' => false,
],
], /* fields */
], /* annotations */
'photo-spheres' => [
'#label' => 'Photo Sphere',
'#description' => 'Manage your photo spheres.',
'#max-values' => 'infinite',
'#fields' => [
'photo-sphere' => [
'#label' => 'Photo Sphere',
'#description' => 'Upload a photo sphere image.',
'#help' => 'Photo sphere image in equirectangular projection format.',
'#type' => 'photosphere',
'#content-preview-image' => true,
'#required' => true,
'#file-extension' => ['jpg', 'png'],
],
'title' => [
'#label' => 'Photo Sphere Title',
'#description' => 'Enter a title.',
'#help' => 'Enter a title for this photo sphere (optional). The title is shown after the photo sphere has been loaded.',
'#type' => 'textarea',
'#maxlength' => 150,
'#rows' => 5,
'#contentformat' => 'text',
'#required' => false,
],
'text-color' => [
'#label' => 'Title Text Color',
'#description' => 'Select a text color.',
'#help' => 'Select a text color.',
'#type' => 'color',
'#required' => false,
'#default_value' => '#FFFFFF',
],
'background-color' => [
'#label' => 'Title Background Color',
'#description' => 'Select a background color.',
'#help' => 'Select a background color.',
'#type' => 'color',
'#required' => false,
],
'attach-annotations' => [
'#label' => 'Text Annotations',
'#description' => 'Attach hotspots with text annotations to your photo sphere.',
'#help' => 'Attach hotspots with text annotations to your photo sphere.',
'#type' => 'position',
'#maxnumber' => 20,
'#required' => false,
'#content-type-reference' => 'annotations',
'#field-reference' => 'photo-sphere',
],
], /* fields */
], /* photo-spheres */
], /* content types */
];