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,423 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Headline, Text & Button mit Bild darüber', ''),
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
+
21
+
22
+        'settings_1' => array(
23
+            'label' => array('Einstellungen', ''),
24
+            'inputType' => 'group',
25
+        ),
26
+
27
+        'animation_type' => array(
28
+            'label' => array(
29
+                'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
30
+            ),
31
+            'inputType' => 'select',
32
+            'options' => array(
33
+                /* Fading entrances  */
34
+                'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
35
+                'no-animation' => 'Keine Animation',
36
+                'animate__fadeIn' => 'fadeIn',
37
+                'animate__fadeInDown' => 'fadeInDown',
38
+                'animate__fadeInDownBig' => 'fadeInDownBig',
39
+                'animate__fadeInLeft' => 'fadeInLeft',
40
+                'animate__fadeInLeftBig' => 'fadeInLeftBig',
41
+                'animate__fadeInRight' => 'fadeInRight',
42
+                'animate__fadeInRightBig' => 'fadeInRightBig',
43
+                'animate__fadeInUpBig' => 'fadeInUpBig',
44
+                'animate__fadeInTopLeft' => 'fadeInTopLeft',
45
+                'animate__fadeInTopRight' => 'fadeInTopRight',
46
+                'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
47
+                'animate__fadeInBottomRight' => 'fadeInBottomRight',
48
+                /* Attention seekers  */
49
+                'animate__bounce' => 'bounce',
50
+                'animate__flash' => 'flash',
51
+                'animate__pulse' => 'pulse',
52
+                'animate__rubberBand' => 'rubberBand',
53
+                'animate__shakeX' => 'shakeX',
54
+                'animate__shakeY' => 'shakeY',
55
+                'animate__headShake' => 'headShake',
56
+                'animate__swing' => 'swing',
57
+                'animate__tada' => 'tada',
58
+                'animate__wobble' => 'wobble',
59
+                'animate__jello' => 'jello',
60
+                'animate__heartBeat' => 'heartBeat',
61
+                /* Back entrances */
62
+                'animate__backInDown' => 'backInDown',
63
+                'animate__backInLeft' => 'backInLeft',
64
+                'animate__backInRight' => 'backInRight',
65
+                'animate__backInUp' => 'backInUp',
66
+                /* Back exits */
67
+                'animate__backOutDown' => 'backOutDown',
68
+                'animate__backOutLeft' => 'backOutLeft',
69
+                'animate__backOutRight' => 'backOutRight',
70
+                'animate__backOutUp' => 'backOutUp',
71
+                /* Bouncing entrances  */
72
+                'animate__bounceIn' => 'bounceIn',
73
+                'animate__bounceInDown' => 'bounceInDown',
74
+                'animate__bounceInLeft' => 'bounceInLeft',
75
+                'animate__bounceInRight' => 'bounceInRight',
76
+                'animate__bounceInUp' => 'bounceInUp',
77
+                /* Bouncing exits  */
78
+                'animate__bounceOut' => 'bounceOut',
79
+                'animate__bounceOutDown' => 'bounceOutDown',
80
+                'animate__bounceOutLeft' => 'bounceOutLeft',
81
+                'animate__bounceOutRight' => 'bounceOutRight',
82
+                'animate__bounceOutUp' => 'bounceOutUp',
83
+                /* Fading exits */
84
+                'animate__fadeOut' => 'fadeOut',
85
+                'animate__fadeOutDown' => 'fadeOutDown',
86
+                'animate__fadeOutDownBig' => 'fadeOutDownBig',
87
+                'animate__fadeOutLeft' => 'fadeOutLeft',
88
+                'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
89
+                'animate__fadeOutRight' => 'fadeOutRight',
90
+                'animate__fadeOutRightBig' => 'fadeOutRightBig',
91
+                'animate__fadeOutUp' => 'fadeOutUp',
92
+                'animate__fadeOutUpBig' => 'fadeOutUpBig',
93
+                'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
94
+                'animate__fadeOutTopRight' => 'fadeOutTopRight',
95
+                'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
96
+                'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
97
+                /* Flippers */
98
+                'animate__flip' => 'flip',
99
+                'animate__flipInX' => 'flipInX',
100
+                'animate__flipInY' => 'flipInY',
101
+                'animate__flipOutX' => 'flipOutX',
102
+                'animate__flipOutY' => 'flipOutY',
103
+                /* Lightspeed */
104
+                'animate__lightSpeedInRight' => 'lightSpeedInRight',
105
+                'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
106
+                'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
107
+                'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
108
+                /* Rotating entrances */
109
+                'animate__rotateIn' => 'rotateIn',
110
+                'animate__rotateInDownLeft' => 'rotateInDownLeft',
111
+                'animate__rotateInDownRight' => 'rotateInDownRight',
112
+                'animate__rotateInUpLeft' => 'rotateInUpLeft',
113
+                'animate__rotateInUpRight' => 'rotateInUpRight',
114
+                /* Rotating exits */
115
+                'animate__rotateOut' => 'rotateOut',
116
+                'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
117
+                'animate__rotateOutDownRight' => 'rotateOutDownRight',
118
+                'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
119
+                'animate__rotateOutUpRight' => 'rotateOutUpRight',
120
+                /* Specials */
121
+                'animate__hinge' => 'hinge',
122
+                'animate__jackInTheBox' => 'jackInTheBox',
123
+                'animate__rollIn' => 'rollIn',
124
+                'animate__rollOut' => 'rollOut',
125
+                /* Zooming entrances */
126
+                'animate__zoomIn' => 'zoomIn',
127
+                'animate__zoomInDown' => 'zoomInDown',
128
+                'animate__zoomInLeft' => 'zoomInLeft',
129
+                'animate__zoomInRight' => 'zoomInRight',
130
+                'animate__zoomInUp' => 'zoomInUp',
131
+                /* Zooming exits */
132
+                'animate__zoomOut' => 'zoomOut',
133
+                'animate__zoomOutDown' => 'zoomOutDown',
134
+                'animate__zoomOutLeft' => 'zoomOutLeft',
135
+                'animate__zoomOutRight' => 'zoomOutRight',
136
+                'animate__zoomOutUp' => 'zoomOutUp',
137
+                /* Sliding entrances */
138
+                'animate__slideInDown' => 'slideInDown',
139
+                'animate__slideInLeft' => 'slideInLeft',
140
+                'animate__slideInRight' => 'slideInRight',
141
+                'animate__slideInUp' => 'slideInUp',
142
+                /* Sliding exits */
143
+                'animate__slideOutDown' => 'slideOutDown',
144
+                'animate__slideOutLeft' => 'slideOutLeft',
145
+                'animate__slideOutRight' => 'slideOutRight',
146
+                'animate__slideOutUp' => 'slideOutUp',
147
+            ),
148
+            'eval' => array('chosen' => 'true')
149
+        ),
150
+
151
+        'asbox' => array(
152
+            'label' => array('Inhalt in einer Box mit Schatten darstellen', ''),
153
+            'inputType' => 'checkbox',
154
+        ),
155
+
156
+
157
+        'hide_gradient' => array(
158
+            'label' => array('Verlauf verstecken', ''),
159
+            'inputType' => 'checkbox',
160
+            'eval' => array('tl_class' => 'clr'),
161
+        ),
162
+
163
+
164
+        'not_fullwidth' => array(
165
+            'label' => array('Bild nicht auf volle Breite strecken', ''),
166
+            'inputType' => 'checkbox',
167
+            'eval' => array('tl_class' => 'clr'),
168
+        ),
169
+
170
+        'settings_2' => array(
171
+            'label' => array('Bild', ''),
172
+            'inputType' => 'group',
173
+        ),
174
+
175
+        'image' => array(
176
+            'label' => array('Großes Bild', ''),
177
+            'inputType' => 'fileTree',
178
+            'eval' => array(
179
+                'multiple' => false,
180
+                'fieldType' => 'radio',
181
+                'filesOnly' => true,
182
+                'extensions' => 'jpg,jpeg,png,svg',
183
+            ),
184
+        ),
185
+
186
+        'image_height' => array(
187
+            'label' => array('Höhe des Bereichs in %', 'Standard sind "50", also 50% Viewport-Height'),
188
+            'inputType' => 'text',
189
+            'eval' => array('tl_class' => 'w50'),
190
+        ),
191
+
192
+        'image_maxheight' => array(
193
+            'label' => array('Maximale Höhe des Bereichs', 'Einheit (px, rem, vh usw.) bitte angeben'),
194
+            'inputType' => 'text',
195
+            'eval' => array('tl_class' => 'w50'),
196
+        ),
197
+
198
+
199
+        'settings_3' => array(
200
+            'label' => array('Inhalte', ''),
201
+            'inputType' => 'group',
202
+        ),
203
+
204
+
205
+        'textalign' => array(
206
+            'label' => array(
207
+                'de' => array('Text-Ausrichtung', ''),
208
+            ),
209
+            'inputType' => 'select',
210
+            'options' => array(
211
+                'text-center' => 'Zentriert',
212
+                'text-start' => 'Linksbündig',
213
+                'text-end' => 'Rechtsbündig',
214
+            ),
215
+        ),
216
+
217
+        'headline_type' => array(
218
+            'label' => array(
219
+                'de' => array('Typ der Überschrift', ''),
220
+            ),
221
+            'inputType' => 'select',
222
+            'options' => array(
223
+                'h1' => 'H1 (Haupt-Headline für SEO, darf nur 1x vorkommen)',
224
+                'h2' => 'H2 (Sollte H1 thematisch untergeordnet sein)',
225
+                'h3' => 'H3 (Sollte H2 thematisch untergeordnet sein)',
226
+                'h4' => 'H4',
227
+                'h5' => 'H5',
228
+            ),
229
+        ),
230
+        'ce_headline' => array(
231
+            'label' => array('Überschrift', ''),
232
+            'inputType' => 'text',
233
+        ),
234
+        'onlystyle' => array(
235
+            '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'),
236
+            'inputType' => 'checkbox',
237
+        ),
238
+        'topline' => array(
239
+            'label' => array('Topline', 'Text oberhalb der Überschrift'),
240
+            'inputType' => 'text',
241
+        ),
242
+        'subline' => array(
243
+            'label' => array('Subline', 'Text unterhalb der Überschrift'),
244
+            'inputType' => 'text',
245
+        ),
246
+        'text' => array(
247
+            'label' => array('Text', ''),
248
+            'inputType' => 'textarea',
249
+            'eval' => array('rte' => 'tinyMCE'),
250
+        ),
251
+        'buttons' => array(
252
+            'label' => array('Buttons', ''),
253
+            'elementLabel' => '%s. Button',
254
+            'inputType' => 'list',
255
+            'minItems' => 0,
256
+            'maxItems' => 20,
257
+            'fields' => array(
258
+                'animation_type' => array(
259
+                    'label' => array(
260
+                        'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
261
+                    ),
262
+                    'inputType' => 'select',
263
+                    'options' => array(
264
+                        /* Fading entrances  */
265
+                        'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
266
+                        'no-animation' => 'Keine Animation',
267
+                        'animate__fadeIn' => 'fadeIn',
268
+                        'animate__fadeInDown' => 'fadeInDown',
269
+                        'animate__fadeInDownBig' => 'fadeInDownBig',
270
+                        'animate__fadeInLeft' => 'fadeInLeft',
271
+                        'animate__fadeInLeftBig' => 'fadeInLeftBig',
272
+                        'animate__fadeInRight' => 'fadeInRight',
273
+                        'animate__fadeInRightBig' => 'fadeInRightBig',
274
+                        'animate__fadeInUpBig' => 'fadeInUpBig',
275
+                        'animate__fadeInTopLeft' => 'fadeInTopLeft',
276
+                        'animate__fadeInTopRight' => 'fadeInTopRight',
277
+                        'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
278
+                        'animate__fadeInBottomRight' => 'fadeInBottomRight',
279
+                        /* Attention seekers  */
280
+                        'animate__bounce' => 'bounce',
281
+                        'animate__flash' => 'flash',
282
+                        'animate__pulse' => 'pulse',
283
+                        'animate__rubberBand' => 'rubberBand',
284
+                        'animate__shakeX' => 'shakeX',
285
+                        'animate__shakeY' => 'shakeY',
286
+                        'animate__headShake' => 'headShake',
287
+                        'animate__swing' => 'swing',
288
+                        'animate__tada' => 'tada',
289
+                        'animate__wobble' => 'wobble',
290
+                        'animate__jello' => 'jello',
291
+                        'animate__heartBeat' => 'heartBeat',
292
+                        /* Back entrances */
293
+                        'animate__backInDown' => 'backInDown',
294
+                        'animate__backInLeft' => 'backInLeft',
295
+                        'animate__backInRight' => 'backInRight',
296
+                        'animate__backInUp' => 'backInUp',
297
+                        /* Back exits */
298
+                        'animate__backOutDown' => 'backOutDown',
299
+                        'animate__backOutLeft' => 'backOutLeft',
300
+                        'animate__backOutRight' => 'backOutRight',
301
+                        'animate__backOutUp' => 'backOutUp',
302
+                        /* Bouncing entrances  */
303
+                        'animate__bounceIn' => 'bounceIn',
304
+                        'animate__bounceInDown' => 'bounceInDown',
305
+                        'animate__bounceInLeft' => 'bounceInLeft',
306
+                        'animate__bounceInRight' => 'bounceInRight',
307
+                        'animate__bounceInUp' => 'bounceInUp',
308
+                        /* Bouncing exits  */
309
+                        'animate__bounceOut' => 'bounceOut',
310
+                        'animate__bounceOutDown' => 'bounceOutDown',
311
+                        'animate__bounceOutLeft' => 'bounceOutLeft',
312
+                        'animate__bounceOutRight' => 'bounceOutRight',
313
+                        'animate__bounceOutUp' => 'bounceOutUp',
314
+                        /* Fading exits */
315
+                        'animate__fadeOut' => 'fadeOut',
316
+                        'animate__fadeOutDown' => 'fadeOutDown',
317
+                        'animate__fadeOutDownBig' => 'fadeOutDownBig',
318
+                        'animate__fadeOutLeft' => 'fadeOutLeft',
319
+                        'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
320
+                        'animate__fadeOutRight' => 'fadeOutRight',
321
+                        'animate__fadeOutRightBig' => 'fadeOutRightBig',
322
+                        'animate__fadeOutUp' => 'fadeOutUp',
323
+                        'animate__fadeOutUpBig' => 'fadeOutUpBig',
324
+                        'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
325
+                        'animate__fadeOutTopRight' => 'fadeOutTopRight',
326
+                        'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
327
+                        'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
328
+                        /* Flippers */
329
+                        'animate__flip' => 'flip',
330
+                        'animate__flipInX' => 'flipInX',
331
+                        'animate__flipInY' => 'flipInY',
332
+                        'animate__flipOutX' => 'flipOutX',
333
+                        'animate__flipOutY' => 'flipOutY',
334
+                        /* Lightspeed */
335
+                        'animate__lightSpeedInRight' => 'lightSpeedInRight',
336
+                        'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
337
+                        'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
338
+                        'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
339
+                        /* Rotating entrances */
340
+                        'animate__rotateIn' => 'rotateIn',
341
+                        'animate__rotateInDownLeft' => 'rotateInDownLeft',
342
+                        'animate__rotateInDownRight' => 'rotateInDownRight',
343
+                        'animate__rotateInUpLeft' => 'rotateInUpLeft',
344
+                        'animate__rotateInUpRight' => 'rotateInUpRight',
345
+                        /* Rotating exits */
346
+                        'animate__rotateOut' => 'rotateOut',
347
+                        'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
348
+                        'animate__rotateOutDownRight' => 'rotateOutDownRight',
349
+                        'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
350
+                        'animate__rotateOutUpRight' => 'rotateOutUpRight',
351
+                        /* Specials */
352
+                        'animate__hinge' => 'hinge',
353
+                        'animate__jackInTheBox' => 'jackInTheBox',
354
+                        'animate__rollIn' => 'rollIn',
355
+                        'animate__rollOut' => 'rollOut',
356
+                        /* Zooming entrances */
357
+                        'animate__zoomIn' => 'zoomIn',
358
+                        'animate__zoomInDown' => 'zoomInDown',
359
+                        'animate__zoomInLeft' => 'zoomInLeft',
360
+                        'animate__zoomInRight' => 'zoomInRight',
361
+                        'animate__zoomInUp' => 'zoomInUp',
362
+                        /* Zooming exits */
363
+                        'animate__zoomOut' => 'zoomOut',
364
+                        'animate__zoomOutDown' => 'zoomOutDown',
365
+                        'animate__zoomOutLeft' => 'zoomOutLeft',
366
+                        'animate__zoomOutRight' => 'zoomOutRight',
367
+                        'animate__zoomOutUp' => 'zoomOutUp',
368
+                        /* Sliding entrances */
369
+                        'animate__slideInDown' => 'slideInDown',
370
+                        'animate__slideInLeft' => 'slideInLeft',
371
+                        'animate__slideInRight' => 'slideInRight',
372
+                        'animate__slideInUp' => 'slideInUp',
373
+                        /* Sliding exits */
374
+                        'animate__slideOutDown' => 'slideOutDown',
375
+                        'animate__slideOutLeft' => 'slideOutLeft',
376
+                        'animate__slideOutRight' => 'slideOutRight',
377
+                        'animate__slideOutUp' => 'slideOutUp',
378
+                    ),
379
+                    'eval' => array('chosen' => 'true')
380
+                ),
381
+                'link_text' => array(
382
+                    'label' => array('Link-Beschriftung', ''),
383
+                    'inputType' => 'text',
384
+                    'eval' => array('allowHtml' => true),
385
+                ),
386
+                'link_url' => array(
387
+                    'label' => array('Verlinkung', ''),
388
+                    'inputType' => 'url',
389
+                ),
390
+                'link_betreff' => array(
391
+                    'label' => array('Betreffzeile für "mailto:" - Buttons', '(optional, falls Link eine neue Email öffnen soll)'),
392
+                    'inputType' => 'text',
393
+                ),
394
+                'link_type' => array(
395
+                    'label' => array(
396
+                        'de' => array('Optik des Buttons', ''),
397
+                    ),
398
+                    'inputType' => 'select',
399
+                    'options' => array(
400
+                        'btn-primary' => 'Hauptfarbe',
401
+                        'btn-outline-primary' => 'Hauptfarbe(Outline)',
402
+                        'btn-secondary' => 'Sekundär - Farbe',
403
+                        'btn-outline-secondary' => 'Sekundär - Farbe(Outline)',
404
+                        'btn-link with-arrow' => 'Link - Optik mit Pfeilen',
405
+                        'btn-outline-black' => 'Transparenter Button mit schwarzer Schrift und Rahmen', 'btn-outline-white' => 'Transparenter Button mit weißer Schrift und Rahmen',
406
+                        'btn-white' => 'Weißer Button mit schwarzer Schrift',
407
+                    ),
408
+                ),
409
+                'link_size' => array(
410
+                    'label' => array(
411
+                        'de' => array('Größe des Buttons', ''),
412
+                    ),
413
+                    'inputType' => 'select',
414
+                    'options' => array(
415
+                        '' => 'Standard',
416
+                        'btn-sm' => 'Klein',
417
+                        'btn-lg' => 'Groß',
418
+                    ),
419
+                ),
420
+            ),
421
+        ),
422
+    ),
423
+);