Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,372 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Gestrecktes Bild mit Headline, Text und Button (2-Spaltig)', ''),
5
+    'types' => array('content'),
6
+    'contentCategory' => 'texts',
7
+    'moduleCategory' => 'miscellaneous',
8
+    'standardFields' => array('headline', 'cssID'),
9
+    'wrapper' => array(
10
+        'type' => 'none',
11
+    ),
12
+    'fields' => array(
13
+        'topline' => array(
14
+            'label' => array('Topline', 'Text oberhalb der Überschrift'),
15
+            'inputType' => 'text',
16
+        ), 'subline' => array(
17
+            'label' => array('Subline', 'Text unterhalb der Überschrift'),
18
+            'inputType' => 'text',
19
+        ),
20
+        'animation_type' => array(
21
+            'label' => array(
22
+                'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
23
+            ),
24
+            'inputType' => 'select',
25
+            'options' => array(
26
+                /* Fading entrances  */
27
+                'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
28
+                'no-animation' => 'Keine Animation',
29
+                'animate__fadeIn' => 'fadeIn',
30
+                'animate__fadeInDown' => 'fadeInDown',
31
+                'animate__fadeInDownBig' => 'fadeInDownBig',
32
+                'animate__fadeInLeft' => 'fadeInLeft',
33
+                'animate__fadeInLeftBig' => 'fadeInLeftBig',
34
+                'animate__fadeInRight' => 'fadeInRight',
35
+                'animate__fadeInRightBig' => 'fadeInRightBig',
36
+                'animate__fadeInUpBig' => 'fadeInUpBig',
37
+                'animate__fadeInTopLeft' => 'fadeInTopLeft',
38
+                'animate__fadeInTopRight' => 'fadeInTopRight',
39
+                'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
40
+                'animate__fadeInBottomRight' => 'fadeInBottomRight',
41
+                /* Attention seekers  */
42
+                'animate__bounce' => 'bounce',
43
+                'animate__flash' => 'flash',
44
+                'animate__pulse' => 'pulse',
45
+                'animate__rubberBand' => 'rubberBand',
46
+                'animate__shakeX' => 'shakeX',
47
+                'animate__shakeY' => 'shakeY',
48
+                'animate__headShake' => 'headShake',
49
+                'animate__swing' => 'swing',
50
+                'animate__tada' => 'tada',
51
+                'animate__wobble' => 'wobble',
52
+                'animate__jello' => 'jello',
53
+                'animate__heartBeat' => 'heartBeat',
54
+                /* Back entrances */
55
+                'animate__backInDown' => 'backInDown',
56
+                'animate__backInLeft' => 'backInLeft',
57
+                'animate__backInRight' => 'backInRight',
58
+                'animate__backInUp' => 'backInUp',
59
+                /* Back exits */
60
+                'animate__backOutDown' => 'backOutDown',
61
+                'animate__backOutLeft' => 'backOutLeft',
62
+                'animate__backOutRight' => 'backOutRight',
63
+                'animate__backOutUp' => 'backOutUp',
64
+                /* Bouncing entrances  */
65
+                'animate__bounceIn' => 'bounceIn',
66
+                'animate__bounceInDown' => 'bounceInDown',
67
+                'animate__bounceInLeft' => 'bounceInLeft',
68
+                'animate__bounceInRight' => 'bounceInRight',
69
+                'animate__bounceInUp' => 'bounceInUp',
70
+                /* Bouncing exits  */
71
+                'animate__bounceOut' => 'bounceOut',
72
+                'animate__bounceOutDown' => 'bounceOutDown',
73
+                'animate__bounceOutLeft' => 'bounceOutLeft',
74
+                'animate__bounceOutRight' => 'bounceOutRight',
75
+                'animate__bounceOutUp' => 'bounceOutUp',
76
+                /* Fading exits */
77
+                'animate__fadeOut' => 'fadeOut',
78
+                'animate__fadeOutDown' => 'fadeOutDown',
79
+                'animate__fadeOutDownBig' => 'fadeOutDownBig',
80
+                'animate__fadeOutLeft' => 'fadeOutLeft',
81
+                'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
82
+                'animate__fadeOutRight' => 'fadeOutRight',
83
+                'animate__fadeOutRightBig' => 'fadeOutRightBig',
84
+                'animate__fadeOutUp' => 'fadeOutUp',
85
+                'animate__fadeOutUpBig' => 'fadeOutUpBig',
86
+                'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
87
+                'animate__fadeOutTopRight' => 'fadeOutTopRight',
88
+                'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
89
+                'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
90
+                /* Flippers */
91
+                'animate__flip' => 'flip',
92
+                'animate__flipInX' => 'flipInX',
93
+                'animate__flipInY' => 'flipInY',
94
+                'animate__flipOutX' => 'flipOutX',
95
+                'animate__flipOutY' => 'flipOutY',
96
+                /* Lightspeed */
97
+                'animate__lightSpeedInRight' => 'lightSpeedInRight',
98
+                'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
99
+                'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
100
+                'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
101
+                /* Rotating entrances */
102
+                'animate__rotateIn' => 'rotateIn',
103
+                'animate__rotateInDownLeft' => 'rotateInDownLeft',
104
+                'animate__rotateInDownRight' => 'rotateInDownRight',
105
+                'animate__rotateInUpLeft' => 'rotateInUpLeft',
106
+                'animate__rotateInUpRight' => 'rotateInUpRight',
107
+                /* Rotating exits */
108
+                'animate__rotateOut' => 'rotateOut',
109
+                'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
110
+                'animate__rotateOutDownRight' => 'rotateOutDownRight',
111
+                'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
112
+                'animate__rotateOutUpRight' => 'rotateOutUpRight',
113
+                /* Specials */
114
+                'animate__hinge' => 'hinge',
115
+                'animate__jackInTheBox' => 'jackInTheBox',
116
+                'animate__rollIn' => 'rollIn',
117
+                'animate__rollOut' => 'rollOut',
118
+                /* Zooming entrances */
119
+                'animate__zoomIn' => 'zoomIn',
120
+                'animate__zoomInDown' => 'zoomInDown',
121
+                'animate__zoomInLeft' => 'zoomInLeft',
122
+                'animate__zoomInRight' => 'zoomInRight',
123
+                'animate__zoomInUp' => 'zoomInUp',
124
+                /* Zooming exits */
125
+                'animate__zoomOut' => 'zoomOut',
126
+                'animate__zoomOutDown' => 'zoomOutDown',
127
+                'animate__zoomOutLeft' => 'zoomOutLeft',
128
+                'animate__zoomOutRight' => 'zoomOutRight',
129
+                'animate__zoomOutUp' => 'zoomOutUp',
130
+                /* Sliding entrances */
131
+                'animate__slideInDown' => 'slideInDown',
132
+                'animate__slideInLeft' => 'slideInLeft',
133
+                'animate__slideInRight' => 'slideInRight',
134
+                'animate__slideInUp' => 'slideInUp',
135
+                /* Sliding exits */
136
+                'animate__slideOutDown' => 'slideOutDown',
137
+                'animate__slideOutLeft' => 'slideOutLeft',
138
+                'animate__slideOutRight' => 'slideOutRight',
139
+                'animate__slideOutUp' => 'slideOutUp',
140
+            ),
141
+            'eval' => array('chosen' => 'true')
142
+        ),
143
+        'box' => array(
144
+            'label' => array('Boxen', ''),
145
+            'elementLabel' => '%s. Box',
146
+            'inputType' => 'list',
147
+            'minItems' => 1,
148
+            'maxItems' => 10,
149
+            'fields' => array(
150
+                'animation_type' => array(
151
+                    'label' => array(
152
+                        'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
153
+                    ),
154
+                    'inputType' => 'select',
155
+                    'options' => array(
156
+                        /* Fading entrances  */
157
+                        'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
158
+                        'no-animation' => 'Keine Animation',
159
+                        'animate__fadeIn' => 'fadeIn',
160
+                        'animate__fadeInDown' => 'fadeInDown',
161
+                        'animate__fadeInDownBig' => 'fadeInDownBig',
162
+                        'animate__fadeInLeft' => 'fadeInLeft',
163
+                        'animate__fadeInLeftBig' => 'fadeInLeftBig',
164
+                        'animate__fadeInRight' => 'fadeInRight',
165
+                        'animate__fadeInRightBig' => 'fadeInRightBig',
166
+                        'animate__fadeInUpBig' => 'fadeInUpBig',
167
+                        'animate__fadeInTopLeft' => 'fadeInTopLeft',
168
+                        'animate__fadeInTopRight' => 'fadeInTopRight',
169
+                        'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
170
+                        'animate__fadeInBottomRight' => 'fadeInBottomRight',
171
+                        /* Attention seekers  */
172
+                        'animate__bounce' => 'bounce',
173
+                        'animate__flash' => 'flash',
174
+                        'animate__pulse' => 'pulse',
175
+                        'animate__rubberBand' => 'rubberBand',
176
+                        'animate__shakeX' => 'shakeX',
177
+                        'animate__shakeY' => 'shakeY',
178
+                        'animate__headShake' => 'headShake',
179
+                        'animate__swing' => 'swing',
180
+                        'animate__tada' => 'tada',
181
+                        'animate__wobble' => 'wobble',
182
+                        'animate__jello' => 'jello',
183
+                        'animate__heartBeat' => 'heartBeat',
184
+                        /* Back entrances */
185
+                        'animate__backInDown' => 'backInDown',
186
+                        'animate__backInLeft' => 'backInLeft',
187
+                        'animate__backInRight' => 'backInRight',
188
+                        'animate__backInUp' => 'backInUp',
189
+                        /* Back exits */
190
+                        'animate__backOutDown' => 'backOutDown',
191
+                        'animate__backOutLeft' => 'backOutLeft',
192
+                        'animate__backOutRight' => 'backOutRight',
193
+                        'animate__backOutUp' => 'backOutUp',
194
+                        /* Bouncing entrances  */
195
+                        'animate__bounceIn' => 'bounceIn',
196
+                        'animate__bounceInDown' => 'bounceInDown',
197
+                        'animate__bounceInLeft' => 'bounceInLeft',
198
+                        'animate__bounceInRight' => 'bounceInRight',
199
+                        'animate__bounceInUp' => 'bounceInUp',
200
+                        /* Bouncing exits  */
201
+                        'animate__bounceOut' => 'bounceOut',
202
+                        'animate__bounceOutDown' => 'bounceOutDown',
203
+                        'animate__bounceOutLeft' => 'bounceOutLeft',
204
+                        'animate__bounceOutRight' => 'bounceOutRight',
205
+                        'animate__bounceOutUp' => 'bounceOutUp',
206
+                        /* Fading exits */
207
+                        'animate__fadeOut' => 'fadeOut',
208
+                        'animate__fadeOutDown' => 'fadeOutDown',
209
+                        'animate__fadeOutDownBig' => 'fadeOutDownBig',
210
+                        'animate__fadeOutLeft' => 'fadeOutLeft',
211
+                        'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
212
+                        'animate__fadeOutRight' => 'fadeOutRight',
213
+                        'animate__fadeOutRightBig' => 'fadeOutRightBig',
214
+                        'animate__fadeOutUp' => 'fadeOutUp',
215
+                        'animate__fadeOutUpBig' => 'fadeOutUpBig',
216
+                        'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
217
+                        'animate__fadeOutTopRight' => 'fadeOutTopRight',
218
+                        'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
219
+                        'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
220
+                        /* Flippers */
221
+                        'animate__flip' => 'flip',
222
+                        'animate__flipInX' => 'flipInX',
223
+                        'animate__flipInY' => 'flipInY',
224
+                        'animate__flipOutX' => 'flipOutX',
225
+                        'animate__flipOutY' => 'flipOutY',
226
+                        /* Lightspeed */
227
+                        'animate__lightSpeedInRight' => 'lightSpeedInRight',
228
+                        'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
229
+                        'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
230
+                        'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
231
+                        /* Rotating entrances */
232
+                        'animate__rotateIn' => 'rotateIn',
233
+                        'animate__rotateInDownLeft' => 'rotateInDownLeft',
234
+                        'animate__rotateInDownRight' => 'rotateInDownRight',
235
+                        'animate__rotateInUpLeft' => 'rotateInUpLeft',
236
+                        'animate__rotateInUpRight' => 'rotateInUpRight',
237
+                        /* Rotating exits */
238
+                        'animate__rotateOut' => 'rotateOut',
239
+                        'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
240
+                        'animate__rotateOutDownRight' => 'rotateOutDownRight',
241
+                        'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
242
+                        'animate__rotateOutUpRight' => 'rotateOutUpRight',
243
+                        /* Specials */
244
+                        'animate__hinge' => 'hinge',
245
+                        'animate__jackInTheBox' => 'jackInTheBox',
246
+                        'animate__rollIn' => 'rollIn',
247
+                        'animate__rollOut' => 'rollOut',
248
+                        /* Zooming entrances */
249
+                        'animate__zoomIn' => 'zoomIn',
250
+                        'animate__zoomInDown' => 'zoomInDown',
251
+                        'animate__zoomInLeft' => 'zoomInLeft',
252
+                        'animate__zoomInRight' => 'zoomInRight',
253
+                        'animate__zoomInUp' => 'zoomInUp',
254
+                        /* Zooming exits */
255
+                        'animate__zoomOut' => 'zoomOut',
256
+                        'animate__zoomOutDown' => 'zoomOutDown',
257
+                        'animate__zoomOutLeft' => 'zoomOutLeft',
258
+                        'animate__zoomOutRight' => 'zoomOutRight',
259
+                        'animate__zoomOutUp' => 'zoomOutUp',
260
+                        /* Sliding entrances */
261
+                        'animate__slideInDown' => 'slideInDown',
262
+                        'animate__slideInLeft' => 'slideInLeft',
263
+                        'animate__slideInRight' => 'slideInRight',
264
+                        'animate__slideInUp' => 'slideInUp',
265
+                        /* Sliding exits */
266
+                        'animate__slideOutDown' => 'slideOutDown',
267
+                        'animate__slideOutLeft' => 'slideOutLeft',
268
+                        'animate__slideOutRight' => 'slideOutRight',
269
+                        'animate__slideOutUp' => 'slideOutUp',
270
+                    ),
271
+                    'eval' => array('chosen' => 'true')
272
+                ),
273
+                'image' => array(
274
+                    'label' => array('Bild / Video (mp4)', ''),
275
+                    'inputType' => 'fileTree',
276
+                    'eval' => array(
277
+                        'multiple' => false,
278
+                        'fieldType' => 'radio',
279
+                        'filesOnly' => true,
280
+                        'extensions' => 'jpg,jpeg,png,svg,mp4',
281
+                    ),
282
+                ),
283
+
284
+                'alternate_background' => array(
285
+                    'label' => array('Alternative Hintergrundfarbe für Bild/Video-Hintergrund', 'In HEX oder rgb(a) angeben'),
286
+                    'inputType' => 'text',
287
+                ),
288
+
289
+                'asbox' => array(
290
+                    'label' => array('Headline als Box mit Schatten darstellen', ''),
291
+                    'inputType' => 'checkbox',
292
+                ),
293
+                'onlystyle' => array(
294
+                    'label' => array('Text nur als Überschrift darstellen (hat dementsprechend keinen Einfluss auf SEO)', 'macht Sinn wenn man z. B. eine H3 unterhalb einer H1 anzeigen möchte, ohne dass eine H2 existiert'),
295
+                    'inputType' => 'checkbox',
296
+                ),
297
+                'headline_type' => array(
298
+                    'label' => array(
299
+                        'de' => array('Typ der Überschrift', ''),
300
+                    ),
301
+                    'inputType' => 'select',
302
+                    'options' => array(
303
+                        'h1' => 'H1',
304
+                        'h2' => 'H2',
305
+                        'h3' => 'H3',
306
+                        'h4' => 'H4',
307
+                        'h5' => 'H5',
308
+                    ),
309
+                    'eval' => array('tl_class' => 'clr'),
310
+                ),
311
+                'headline' => array(
312
+                    'label' => array('Überschrift', ''),
313
+                    'inputType' => 'text',
314
+                    'eval' => array('allowHtml' => true, 'tl_class' => 'w50'),
315
+                ),
316
+                'topline' => array(
317
+                    'label' => array('Topline', 'Text oberhalb der Überschrift'),
318
+                    'inputType' => 'text',
319
+                ),
320
+                'subline' => array(
321
+                    'label' => array('Subline', 'Text unterhalb der Überschrift'),
322
+                    'inputType' => 'text',
323
+                ),
324
+                'content' => array(
325
+                    'label' => array('Text', ''),
326
+                    'inputType' => 'textarea',
327
+                    'eval' => array('rte' => 'tinyMCE', 'tl_class' => 'clr'),
328
+                ),
329
+                'link_text' => array(
330
+                    'label' => array(
331
+                        'de' => array('Button-Beschriftung', ''),
332
+                    ),
333
+                    'inputType' => 'text',
334
+                    'eval' => array('tl_class' => 'w50', 'allowHtml' => true),
335
+                ),
336
+                'link_url' => array(
337
+                    'label' => array('Verlinkung', ''),
338
+                    'inputType' => 'url',
339
+                    'eval' => array('tl_class' => 'w50'),
340
+                ),
341
+                'link_type' => array(
342
+                    'label' => array(
343
+                        'de' => array('Optik des Buttons', ''),
344
+                    ),
345
+                    'inputType' => 'select',
346
+                    'options' => array(
347
+                        'btn-primary' => 'Hauptfarbe',
348
+                        'btn-outline-primary' => 'Hauptfarbe(Outline)',
349
+                        'btn-secondary' => 'Sekundär - Farbe',
350
+                        'btn-outline-secondary' => 'Sekundär - Farbe(Outline)',
351
+                        'btn-link with-arrow' => 'Link - Optik mit Pfeilen',
352
+                        'btn-outline-black' => 'Transparenter Button mit schwarzer Schrift und Rahmen', 'btn-outline-white' => 'Transparenter Button mit weißer Schrift und Rahmen',
353
+                        'btn-white' => 'Weißer Button mit schwarzer Schrift',
354
+                    ),
355
+                    'eval' => array('tl_class' => 'w50'),
356
+                ),
357
+                'link_size' => array(
358
+                    'label' => array(
359
+                        'de' => array('Größe des Buttons', ''),
360
+                    ),
361
+                    'inputType' => 'select',
362
+                    'options' => array(
363
+                        '' => 'Standard',
364
+                        'btn-sm' => 'Klein',
365
+                        'btn-lg' => 'Groß',
366
+                    ),
367
+                    'eval' => array('tl_class' => 'w50'),
368
+                ),
369
+            ),
370
+        ),
371
+    ),
372
+);