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,324 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Mehrspaltige Textboxen', ''),
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
+        ),
17
+        'subline' => array(
18
+            'label' => array('Subline', 'Text unterhalb der Überschrift'),
19
+            'inputType' => 'text',
20
+        ),
21
+        'animation_type' => array(
22
+            'label' => array(
23
+                'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
24
+            ),
25
+            'inputType' => 'select',
26
+            'options' => array(
27
+                /* Fading entrances  */
28
+                'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
29
+                'no-animation' => 'Keine Animation',
30
+                'animate__fadeIn' => 'fadeIn',
31
+                'animate__fadeInDown' => 'fadeInDown',
32
+                'animate__fadeInDownBig' => 'fadeInDownBig',
33
+                'animate__fadeInLeft' => 'fadeInLeft',
34
+                'animate__fadeInLeftBig' => 'fadeInLeftBig',
35
+                'animate__fadeInRight' => 'fadeInRight',
36
+                'animate__fadeInRightBig' => 'fadeInRightBig',
37
+                'animate__fadeInUpBig' => 'fadeInUpBig',
38
+                'animate__fadeInTopLeft' => 'fadeInTopLeft',
39
+                'animate__fadeInTopRight' => 'fadeInTopRight',
40
+                'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
41
+                'animate__fadeInBottomRight' => 'fadeInBottomRight',
42
+                /* Attention seekers  */
43
+                'animate__bounce' => 'bounce',
44
+                'animate__flash' => 'flash',
45
+                'animate__pulse' => 'pulse',
46
+                'animate__rubberBand' => 'rubberBand',
47
+                'animate__shakeX' => 'shakeX',
48
+                'animate__shakeY' => 'shakeY',
49
+                'animate__headShake' => 'headShake',
50
+                'animate__swing' => 'swing',
51
+                'animate__tada' => 'tada',
52
+                'animate__wobble' => 'wobble',
53
+                'animate__jello' => 'jello',
54
+                'animate__heartBeat' => 'heartBeat',
55
+                /* Back entrances */
56
+                'animate__backInDown' => 'backInDown',
57
+                'animate__backInLeft' => 'backInLeft',
58
+                'animate__backInRight' => 'backInRight',
59
+                'animate__backInUp' => 'backInUp',
60
+                /* Back exits */
61
+                'animate__backOutDown' => 'backOutDown',
62
+                'animate__backOutLeft' => 'backOutLeft',
63
+                'animate__backOutRight' => 'backOutRight',
64
+                'animate__backOutUp' => 'backOutUp',
65
+                /* Bouncing entrances  */
66
+                'animate__bounceIn' => 'bounceIn',
67
+                'animate__bounceInDown' => 'bounceInDown',
68
+                'animate__bounceInLeft' => 'bounceInLeft',
69
+                'animate__bounceInRight' => 'bounceInRight',
70
+                'animate__bounceInUp' => 'bounceInUp',
71
+                /* Bouncing exits  */
72
+                'animate__bounceOut' => 'bounceOut',
73
+                'animate__bounceOutDown' => 'bounceOutDown',
74
+                'animate__bounceOutLeft' => 'bounceOutLeft',
75
+                'animate__bounceOutRight' => 'bounceOutRight',
76
+                'animate__bounceOutUp' => 'bounceOutUp',
77
+                /* Fading exits */
78
+                'animate__fadeOut' => 'fadeOut',
79
+                'animate__fadeOutDown' => 'fadeOutDown',
80
+                'animate__fadeOutDownBig' => 'fadeOutDownBig',
81
+                'animate__fadeOutLeft' => 'fadeOutLeft',
82
+                'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
83
+                'animate__fadeOutRight' => 'fadeOutRight',
84
+                'animate__fadeOutRightBig' => 'fadeOutRightBig',
85
+                'animate__fadeOutUp' => 'fadeOutUp',
86
+                'animate__fadeOutUpBig' => 'fadeOutUpBig',
87
+                'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
88
+                'animate__fadeOutTopRight' => 'fadeOutTopRight',
89
+                'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
90
+                'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
91
+                /* Flippers */
92
+                'animate__flip' => 'flip',
93
+                'animate__flipInX' => 'flipInX',
94
+                'animate__flipInY' => 'flipInY',
95
+                'animate__flipOutX' => 'flipOutX',
96
+                'animate__flipOutY' => 'flipOutY',
97
+                /* Lightspeed */
98
+                'animate__lightSpeedInRight' => 'lightSpeedInRight',
99
+                'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
100
+                'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
101
+                'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
102
+                /* Rotating entrances */
103
+                'animate__rotateIn' => 'rotateIn',
104
+                'animate__rotateInDownLeft' => 'rotateInDownLeft',
105
+                'animate__rotateInDownRight' => 'rotateInDownRight',
106
+                'animate__rotateInUpLeft' => 'rotateInUpLeft',
107
+                'animate__rotateInUpRight' => 'rotateInUpRight',
108
+                /* Rotating exits */
109
+                'animate__rotateOut' => 'rotateOut',
110
+                'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
111
+                'animate__rotateOutDownRight' => 'rotateOutDownRight',
112
+                'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
113
+                'animate__rotateOutUpRight' => 'rotateOutUpRight',
114
+                /* Specials */
115
+                'animate__hinge' => 'hinge',
116
+                'animate__jackInTheBox' => 'jackInTheBox',
117
+                'animate__rollIn' => 'rollIn',
118
+                'animate__rollOut' => 'rollOut',
119
+                /* Zooming entrances */
120
+                'animate__zoomIn' => 'zoomIn',
121
+                'animate__zoomInDown' => 'zoomInDown',
122
+                'animate__zoomInLeft' => 'zoomInLeft',
123
+                'animate__zoomInRight' => 'zoomInRight',
124
+                'animate__zoomInUp' => 'zoomInUp',
125
+                /* Zooming exits */
126
+                'animate__zoomOut' => 'zoomOut',
127
+                'animate__zoomOutDown' => 'zoomOutDown',
128
+                'animate__zoomOutLeft' => 'zoomOutLeft',
129
+                'animate__zoomOutRight' => 'zoomOutRight',
130
+                'animate__zoomOutUp' => 'zoomOutUp',
131
+                /* Sliding entrances */
132
+                'animate__slideInDown' => 'slideInDown',
133
+                'animate__slideInLeft' => 'slideInLeft',
134
+                'animate__slideInRight' => 'slideInRight',
135
+                'animate__slideInUp' => 'slideInUp',
136
+                /* Sliding exits */
137
+                'animate__slideOutDown' => 'slideOutDown',
138
+                'animate__slideOutLeft' => 'slideOutLeft',
139
+                'animate__slideOutRight' => 'slideOutRight',
140
+                'animate__slideOutUp' => 'slideOutUp',
141
+            ),
142
+            'eval' => array('chosen' => 'true')
143
+        ),
144
+        'boxes' => array(
145
+            'label' => array('Boxen', ''),
146
+            'elementLabel' => '%s. Box',
147
+            'inputType' => 'list',
148
+            'minItems' => 1,
149
+            'maxItems' => 99,
150
+            'fields' => array(
151
+                'animation_type' => array(
152
+                    'label' => array(
153
+                        'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
154
+                    ),
155
+                    'inputType' => 'select',
156
+                    'options' => array(
157
+                        /* Fading entrances  */
158
+                        'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
159
+                        'no-animation' => 'Keine Animation',
160
+                        'animate__fadeIn' => 'fadeIn',
161
+                        'animate__fadeInDown' => 'fadeInDown',
162
+                        'animate__fadeInDownBig' => 'fadeInDownBig',
163
+                        'animate__fadeInLeft' => 'fadeInLeft',
164
+                        'animate__fadeInLeftBig' => 'fadeInLeftBig',
165
+                        'animate__fadeInRight' => 'fadeInRight',
166
+                        'animate__fadeInRightBig' => 'fadeInRightBig',
167
+                        'animate__fadeInUpBig' => 'fadeInUpBig',
168
+                        'animate__fadeInTopLeft' => 'fadeInTopLeft',
169
+                        'animate__fadeInTopRight' => 'fadeInTopRight',
170
+                        'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
171
+                        'animate__fadeInBottomRight' => 'fadeInBottomRight',
172
+                        /* Attention seekers  */
173
+                        'animate__bounce' => 'bounce',
174
+                        'animate__flash' => 'flash',
175
+                        'animate__pulse' => 'pulse',
176
+                        'animate__rubberBand' => 'rubberBand',
177
+                        'animate__shakeX' => 'shakeX',
178
+                        'animate__shakeY' => 'shakeY',
179
+                        'animate__headShake' => 'headShake',
180
+                        'animate__swing' => 'swing',
181
+                        'animate__tada' => 'tada',
182
+                        'animate__wobble' => 'wobble',
183
+                        'animate__jello' => 'jello',
184
+                        'animate__heartBeat' => 'heartBeat',
185
+                        /* Back entrances */
186
+                        'animate__backInDown' => 'backInDown',
187
+                        'animate__backInLeft' => 'backInLeft',
188
+                        'animate__backInRight' => 'backInRight',
189
+                        'animate__backInUp' => 'backInUp',
190
+                        /* Back exits */
191
+                        'animate__backOutDown' => 'backOutDown',
192
+                        'animate__backOutLeft' => 'backOutLeft',
193
+                        'animate__backOutRight' => 'backOutRight',
194
+                        'animate__backOutUp' => 'backOutUp',
195
+                        /* Bouncing entrances  */
196
+                        'animate__bounceIn' => 'bounceIn',
197
+                        'animate__bounceInDown' => 'bounceInDown',
198
+                        'animate__bounceInLeft' => 'bounceInLeft',
199
+                        'animate__bounceInRight' => 'bounceInRight',
200
+                        'animate__bounceInUp' => 'bounceInUp',
201
+                        /* Bouncing exits  */
202
+                        'animate__bounceOut' => 'bounceOut',
203
+                        'animate__bounceOutDown' => 'bounceOutDown',
204
+                        'animate__bounceOutLeft' => 'bounceOutLeft',
205
+                        'animate__bounceOutRight' => 'bounceOutRight',
206
+                        'animate__bounceOutUp' => 'bounceOutUp',
207
+                        /* Fading exits */
208
+                        'animate__fadeOut' => 'fadeOut',
209
+                        'animate__fadeOutDown' => 'fadeOutDown',
210
+                        'animate__fadeOutDownBig' => 'fadeOutDownBig',
211
+                        'animate__fadeOutLeft' => 'fadeOutLeft',
212
+                        'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
213
+                        'animate__fadeOutRight' => 'fadeOutRight',
214
+                        'animate__fadeOutRightBig' => 'fadeOutRightBig',
215
+                        'animate__fadeOutUp' => 'fadeOutUp',
216
+                        'animate__fadeOutUpBig' => 'fadeOutUpBig',
217
+                        'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
218
+                        'animate__fadeOutTopRight' => 'fadeOutTopRight',
219
+                        'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
220
+                        'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
221
+                        /* Flippers */
222
+                        'animate__flip' => 'flip',
223
+                        'animate__flipInX' => 'flipInX',
224
+                        'animate__flipInY' => 'flipInY',
225
+                        'animate__flipOutX' => 'flipOutX',
226
+                        'animate__flipOutY' => 'flipOutY',
227
+                        /* Lightspeed */
228
+                        'animate__lightSpeedInRight' => 'lightSpeedInRight',
229
+                        'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
230
+                        'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
231
+                        'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
232
+                        /* Rotating entrances */
233
+                        'animate__rotateIn' => 'rotateIn',
234
+                        'animate__rotateInDownLeft' => 'rotateInDownLeft',
235
+                        'animate__rotateInDownRight' => 'rotateInDownRight',
236
+                        'animate__rotateInUpLeft' => 'rotateInUpLeft',
237
+                        'animate__rotateInUpRight' => 'rotateInUpRight',
238
+                        /* Rotating exits */
239
+                        'animate__rotateOut' => 'rotateOut',
240
+                        'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
241
+                        'animate__rotateOutDownRight' => 'rotateOutDownRight',
242
+                        'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
243
+                        'animate__rotateOutUpRight' => 'rotateOutUpRight',
244
+                        /* Specials */
245
+                        'animate__hinge' => 'hinge',
246
+                        'animate__jackInTheBox' => 'jackInTheBox',
247
+                        'animate__rollIn' => 'rollIn',
248
+                        'animate__rollOut' => 'rollOut',
249
+                        /* Zooming entrances */
250
+                        'animate__zoomIn' => 'zoomIn',
251
+                        'animate__zoomInDown' => 'zoomInDown',
252
+                        'animate__zoomInLeft' => 'zoomInLeft',
253
+                        'animate__zoomInRight' => 'zoomInRight',
254
+                        'animate__zoomInUp' => 'zoomInUp',
255
+                        /* Zooming exits */
256
+                        'animate__zoomOut' => 'zoomOut',
257
+                        'animate__zoomOutDown' => 'zoomOutDown',
258
+                        'animate__zoomOutLeft' => 'zoomOutLeft',
259
+                        'animate__zoomOutRight' => 'zoomOutRight',
260
+                        'animate__zoomOutUp' => 'zoomOutUp',
261
+                        /* Sliding entrances */
262
+                        'animate__slideInDown' => 'slideInDown',
263
+                        'animate__slideInLeft' => 'slideInLeft',
264
+                        'animate__slideInRight' => 'slideInRight',
265
+                        'animate__slideInUp' => 'slideInUp',
266
+                        /* Sliding exits */
267
+                        'animate__slideOutDown' => 'slideOutDown',
268
+                        'animate__slideOutLeft' => 'slideOutLeft',
269
+                        'animate__slideOutRight' => 'slideOutRight',
270
+                        'animate__slideOutUp' => 'slideOutUp',
271
+                    ),
272
+                    'eval' => array('chosen' => 'true')
273
+                ),
274
+                'column_width' => array(
275
+                    'label' => array(
276
+                        'de' => array('Spaltenbreite', ''),
277
+                    ),
278
+                    'inputType' => 'select',
279
+                    'options' => array(
280
+                        'col-12 col-md-6 col-lg-3' => '25%',
281
+                        'col-12 col-md-6 col-lg-4' => '33%',
282
+                        'col-12 col-md-6' => '50%',
283
+                        'col-12 col-md-6 col-lg-8' => '66.66%',
284
+                        'col-12 col-md-6 col-lg-9' => '75%',
285
+                        'col-12' => 'Volle Breite',
286
+                        'col-12 col-md' => 'Automatische Breite (füllend)',
287
+                        'col-12 col-md-auto' => 'Breite anhand des Inhalts',
288
+                    ),
289
+                ),
290
+                'headline_type' => array(
291
+                    'label' => array(
292
+                        'de' => array('Typ der Überschrift', ''),
293
+                    ),
294
+                    'inputType' => 'select',
295
+                    'options' => array(
296
+                        'h1' => 'H1 (Haupt-Headline für SEO, darf nur 1x vorkommen)',
297
+                        'h2' => 'H2 (Sollte H1 thematisch untergeordnet sein)',
298
+                        'h3' => 'H3 (Sollte H2 thematisch untergeordnet sein)',
299
+                        'h4' => 'H4',
300
+                        'h5' => 'H5',
301
+                    ),
302
+                ),
303
+                'ce_headline' => array(
304
+                    'label' => array('Überschrift', ''),
305
+                    'inputType' => 'text',
306
+                ),
307
+                'onlystyle' => array(
308
+                    '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'),
309
+                    'inputType' => 'checkbox',
310
+                ),
311
+                'ce_subline' => array(
312
+                    'label' => array('Subline', ''),
313
+                    'inputType' => 'text',
314
+                    'eval' => array('allowHtml' => true),
315
+                ),
316
+                'text' => array(
317
+                    'label' => array('Text', ''),
318
+                    'inputType' => 'textarea',
319
+                    'eval' => array('rte' => 'tinyMCE'),
320
+                ),
321
+            ),
322
+        ),
323
+    ),
324
+);