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,316 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Bild + Text', ''),
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
+        'as_rows' => array(
144
+            'label' => array('Als Zeilen darstellen', 'Ansonsten wird der Inhalt über drei Spalten angezeigt'),
145
+            'inputType' => 'checkbox',
146
+        ),
147
+        'rows' => array(
148
+            'label' => array('Zeilen', ''),
149
+            'elementLabel' => '%s. Zeile',
150
+            'inputType' => 'list',
151
+            'minItems' => 1,
152
+            'maxItems' => 999,
153
+            'fields' => array(
154
+                'animation_type' => array(
155
+                    'label' => array(
156
+                        'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
157
+                    ),
158
+                    'inputType' => 'select',
159
+                    'options' => array(
160
+                        /* Fading entrances  */
161
+                        'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
162
+                        'no-animation' => 'Keine Animation',
163
+                        'animate__fadeIn' => 'fadeIn',
164
+                        'animate__fadeInDown' => 'fadeInDown',
165
+                        'animate__fadeInDownBig' => 'fadeInDownBig',
166
+                        'animate__fadeInLeft' => 'fadeInLeft',
167
+                        'animate__fadeInLeftBig' => 'fadeInLeftBig',
168
+                        'animate__fadeInRight' => 'fadeInRight',
169
+                        'animate__fadeInRightBig' => 'fadeInRightBig',
170
+                        'animate__fadeInUpBig' => 'fadeInUpBig',
171
+                        'animate__fadeInTopLeft' => 'fadeInTopLeft',
172
+                        'animate__fadeInTopRight' => 'fadeInTopRight',
173
+                        'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
174
+                        'animate__fadeInBottomRight' => 'fadeInBottomRight',
175
+                        /* Attention seekers  */
176
+                        'animate__bounce' => 'bounce',
177
+                        'animate__flash' => 'flash',
178
+                        'animate__pulse' => 'pulse',
179
+                        'animate__rubberBand' => 'rubberBand',
180
+                        'animate__shakeX' => 'shakeX',
181
+                        'animate__shakeY' => 'shakeY',
182
+                        'animate__headShake' => 'headShake',
183
+                        'animate__swing' => 'swing',
184
+                        'animate__tada' => 'tada',
185
+                        'animate__wobble' => 'wobble',
186
+                        'animate__jello' => 'jello',
187
+                        'animate__heartBeat' => 'heartBeat',
188
+                        /* Back entrances */
189
+                        'animate__backInDown' => 'backInDown',
190
+                        'animate__backInLeft' => 'backInLeft',
191
+                        'animate__backInRight' => 'backInRight',
192
+                        'animate__backInUp' => 'backInUp',
193
+                        /* Back exits */
194
+                        'animate__backOutDown' => 'backOutDown',
195
+                        'animate__backOutLeft' => 'backOutLeft',
196
+                        'animate__backOutRight' => 'backOutRight',
197
+                        'animate__backOutUp' => 'backOutUp',
198
+                        /* Bouncing entrances  */
199
+                        'animate__bounceIn' => 'bounceIn',
200
+                        'animate__bounceInDown' => 'bounceInDown',
201
+                        'animate__bounceInLeft' => 'bounceInLeft',
202
+                        'animate__bounceInRight' => 'bounceInRight',
203
+                        'animate__bounceInUp' => 'bounceInUp',
204
+                        /* Bouncing exits  */
205
+                        'animate__bounceOut' => 'bounceOut',
206
+                        'animate__bounceOutDown' => 'bounceOutDown',
207
+                        'animate__bounceOutLeft' => 'bounceOutLeft',
208
+                        'animate__bounceOutRight' => 'bounceOutRight',
209
+                        'animate__bounceOutUp' => 'bounceOutUp',
210
+                        /* Fading exits */
211
+                        'animate__fadeOut' => 'fadeOut',
212
+                        'animate__fadeOutDown' => 'fadeOutDown',
213
+                        'animate__fadeOutDownBig' => 'fadeOutDownBig',
214
+                        'animate__fadeOutLeft' => 'fadeOutLeft',
215
+                        'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
216
+                        'animate__fadeOutRight' => 'fadeOutRight',
217
+                        'animate__fadeOutRightBig' => 'fadeOutRightBig',
218
+                        'animate__fadeOutUp' => 'fadeOutUp',
219
+                        'animate__fadeOutUpBig' => 'fadeOutUpBig',
220
+                        'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
221
+                        'animate__fadeOutTopRight' => 'fadeOutTopRight',
222
+                        'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
223
+                        'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
224
+                        /* Flippers */
225
+                        'animate__flip' => 'flip',
226
+                        'animate__flipInX' => 'flipInX',
227
+                        'animate__flipInY' => 'flipInY',
228
+                        'animate__flipOutX' => 'flipOutX',
229
+                        'animate__flipOutY' => 'flipOutY',
230
+                        /* Lightspeed */
231
+                        'animate__lightSpeedInRight' => 'lightSpeedInRight',
232
+                        'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
233
+                        'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
234
+                        'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
235
+                        /* Rotating entrances */
236
+                        'animate__rotateIn' => 'rotateIn',
237
+                        'animate__rotateInDownLeft' => 'rotateInDownLeft',
238
+                        'animate__rotateInDownRight' => 'rotateInDownRight',
239
+                        'animate__rotateInUpLeft' => 'rotateInUpLeft',
240
+                        'animate__rotateInUpRight' => 'rotateInUpRight',
241
+                        /* Rotating exits */
242
+                        'animate__rotateOut' => 'rotateOut',
243
+                        'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
244
+                        'animate__rotateOutDownRight' => 'rotateOutDownRight',
245
+                        'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
246
+                        'animate__rotateOutUpRight' => 'rotateOutUpRight',
247
+                        /* Specials */
248
+                        'animate__hinge' => 'hinge',
249
+                        'animate__jackInTheBox' => 'jackInTheBox',
250
+                        'animate__rollIn' => 'rollIn',
251
+                        'animate__rollOut' => 'rollOut',
252
+                        /* Zooming entrances */
253
+                        'animate__zoomIn' => 'zoomIn',
254
+                        'animate__zoomInDown' => 'zoomInDown',
255
+                        'animate__zoomInLeft' => 'zoomInLeft',
256
+                        'animate__zoomInRight' => 'zoomInRight',
257
+                        'animate__zoomInUp' => 'zoomInUp',
258
+                        /* Zooming exits */
259
+                        'animate__zoomOut' => 'zoomOut',
260
+                        'animate__zoomOutDown' => 'zoomOutDown',
261
+                        'animate__zoomOutLeft' => 'zoomOutLeft',
262
+                        'animate__zoomOutRight' => 'zoomOutRight',
263
+                        'animate__zoomOutUp' => 'zoomOutUp',
264
+                        /* Sliding entrances */
265
+                        'animate__slideInDown' => 'slideInDown',
266
+                        'animate__slideInLeft' => 'slideInLeft',
267
+                        'animate__slideInRight' => 'slideInRight',
268
+                        'animate__slideInUp' => 'slideInUp',
269
+                        /* Sliding exits */
270
+                        'animate__slideOutDown' => 'slideOutDown',
271
+                        'animate__slideOutLeft' => 'slideOutLeft',
272
+                        'animate__slideOutRight' => 'slideOutRight',
273
+                        'animate__slideOutUp' => 'slideOutUp',
274
+                    ),
275
+                    'eval' => array('chosen' => 'true')
276
+                ),
277
+                'headline_type' => array(
278
+                    'label' => array(
279
+                        'de' => array('Typ der Überschrift', 'für linke Spalte'),
280
+                    ),
281
+                    'inputType' => 'select',
282
+                    'options' => array(
283
+                        'h1' => 'H1 (Haupt-Headline für SEO, darf nur 1x vorkommen)',
284
+                        'h2' => 'H2 (Sollte H1 thematisch untergeordnet sein)',
285
+                        'h3' => 'H3 (Sollte H2 thematisch untergeordnet sein)',
286
+                        'h4' => 'H4',
287
+                        'h5' => 'H5',
288
+                    ),
289
+                ),
290
+                'headline' => array(
291
+                    'label' => array('Überschrift', 'für linke Spalte'),
292
+                    'inputType' => 'text',
293
+                ),
294
+                'onlystyle' => array(
295
+                    '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'),
296
+                    'inputType' => 'checkbox',
297
+                ),
298
+                'image' => array(
299
+                    'label' => array('Bild', ''),
300
+                    'inputType' => 'fileTree',
301
+                    'eval' => array(
302
+                        'multiple' => false,
303
+                        'fieldType' => 'radio',
304
+                        'filesOnly' => true,
305
+                        'extensions' => 'jpg,jpeg,png,svg',
306
+                    ),
307
+                ),
308
+                'text' => array(
309
+                    'label' => array('Langtext', ''),
310
+                    'inputType' => 'text',
311
+                    'eval' => array('rte' => 'tinyMCE'),
312
+                ),
313
+            ),
314
+        ),
315
+    ),
316
+);