-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
199 lines (170 loc) · 6.42 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?php
return [
'#theme-name' => 'IdeaSpace Welcome!',
'#theme-key' => 'ideaspace-welcome',
'#theme-version' => '1.3',
'#ideaspace-version' => '>=1.1.1',
'#theme-description' => 'A configurable navigation menu environment theme in order to link to other virtual reality websites.',
'#theme-author-name' => 'IdeaSpaceVR',
'#theme-author-email' => '[email protected]',
'#theme-homepage' => 'https://www.ideaspacevr.org/themes',
'#theme-keywords' => 'entrance, overview',
'#theme-view' => 'scene',
'#content-types' => [
'general-settings' => [
'#label' => 'General Settings',
'#description' => 'Configure your theme.',
'#max-values' => 1,
'#fields' => [
'space-title' => [
'#label' => 'Space Title',
'#description' => 'Enter a title.',
'#help' => 'Enter a title.',
'#type' => 'textfield',
'#contentformat' => 'html/text',
'#maxlength' => 1000,
'#required' => false,
],
'logo' => [
'#label' => 'Logo',
'#description' => 'Upload an image.',
'#help' => 'Upload an image.',
'#type' => 'image',
'#required' => false,
'#content-preview-image' => true,
'#file-extension' => ['jpg', 'png'],
],
'logo-aspect-ratio' => [
'#label' => 'Logo Aspect Ratio',
'#description' => 'If your image appears distorted, try changing the aspect ratio.',
'#help' => 'If your image appears distorted, try changing the aspect ratio.',
'#type' => 'options-select',
'#options' => ['4-3' => '4 : 3', '3-4' => '3 : 4', '16-9' => '16 : 9', '9-16' => '9 : 16', '1-1' => '1 : 1'],
'#required' => true,
],
'navigation-active-color' => [
'#label' => 'Active Navigation Color',
'#description' => 'Select a color.',
'#help' => 'Select a color.',
'#type' => 'color',
'#default_value' => '#0080E5',
'#required' => false,
],
'navigation-inactive-color' => [
'#label' => 'Inactive Navigation Color',
'#description' => 'Select a color.',
'#help' => 'Select a color.',
'#type' => 'color',
'#default_value' => '#999999',
'#required' => false,
],
'environment' => [
'#label' => 'Environment',
'#description' => 'Select an environment.',
'#help' => 'Select an environment.',
'#type' => 'options-select',
'#required' => true,
'#options' => [
'none' => 'None',
'environment-hills' => 'Environment with hills',
'environment-mountains' => 'Environment with mountains',
'environment-trees' => 'Environment with trees',
'environment-arches' => 'Environment with arches',
'environment-tron' => 'Tron',
'background-color' => 'Background Color',
],
'#default_value' => 'none',
],
'environment-ground-color' => [
'#label' => 'Environment Ground Color',
'#description' => 'Select a ground color.',
'#help' => 'Select a ground color.',
'#type' => 'color',
'#default_value' => '#CCCCCC',
'#required' => false,
],
'environment-ground-texture' => [
'#label' => 'Environment Ground Texture',
'#description' => 'Select a ground texture.',
'#help' => 'Select a ground texture.',
'#type' => 'options-select',
'#required' => false,
'#options' => [
'walkernoise' => 'Walkernoise',
'checkerboard' => 'Checkerboard',
'squares' => 'Squares',
'none' => 'None',
],
'#default_value' => 'walkernoise',
],
'background-color' => [
'#label' => 'Background Color',
'#description' => 'Select a background color.',
'#help' => 'Select a background color.',
'#type' => 'color',
'#default_value' => '#000000',
'#required' => false,
],
'a-painter-painting-url' => [
'#label' => 'A-Painter Painting URL',
'#description' => 'Enter the URL of your painting.',
'#help' => 'Make a painting in A-Painter (<a href="https://aframe.io/a-painter/" target="_blank" style="color:#e42b5a;text-decoration:underline">https://aframe.io/a-painter/</a>) and enter the URL of your saved painting. Example: https://ucarecdn.com/1349e661-2fc2-4e35-baba-95daf48c4283/',
'#type' => 'textfield',
'#contentformat' => 'text',
'#maxlength' => 1024,
'#required' => false,
],
],
],
'space-links' => [
'#label' => 'Space Links',
'#description' => 'Manage your space links.',
'#max-values' => 36,
'#fields' => [
'space-link-title' => [
'#label' => 'Space Link Title',
'#description' => 'Enter a short space link title',
'#help' => 'The title is shown in front of the space link image.',
'#type' => 'textfield',
'#contentformat' => 'html/text',
'#maxlength' => 1000,
'#required' => true,
],
'space-link-image' => [
'#label' => 'Space Link Image',
'#description' => 'Uploaded images are resized to 512 x 256 pixel.',
'#help' => 'Uploaded images are resized to 512 x 256 pixel.',
'#type' => 'image',
'#content-preview-image' => true,
'#file-extension' => ['jpg', 'png', 'gif'],
'#required' => false,
],
'space-link-reference' => [
'#label' => 'Space Link',
'#description' => 'Select a space to link to.',
'#help' => 'Select a space to link to.',
'#type' => 'space-reference',
'#required' => false,
'#published' => true,
],
'space-link-external' => [
'#label' => 'External URL',
'#description' => 'Enter an URL',
'#help' => 'Enter an URL.',
'#type' => 'textfield',
'#contentformat' => 'text',
'#maxlength' => 1000,
'#required' => false,
],
'space-link-background-color' => [
'#label' => 'Space Link Background Color',
'#description' => 'Select a background color.',
'#help' => 'Select a background color.',
'#type' => 'color',
'#default_value' => '#FFFFFF',
'#required' => false,
],
], /* fields */
], /* */
], /* content types */
];