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,242 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Bildwechsler mit Beschreibungstext (colorpalettes)', ''),
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
+
14
+        'settings_1' => array(
15
+            'label' => array('Einstellungen', ''),
16
+            'inputType' => 'group',
17
+        ),
18
+
19
+        'subline' => array(
20
+            'label' => array('Subline', ''),
21
+            'inputType' => 'text',
22
+        ),
23
+
24
+        'animation_type' => array(
25
+            'label' => array(
26
+                'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
27
+            ),
28
+            'inputType' => 'select',
29
+            'options' => array(
30
+                /* Fading entrances  */
31
+                'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
32
+                'no-animation' => 'Keine Animation',
33
+                'animate__fadeIn' => 'fadeIn',
34
+                'animate__fadeInDown' => 'fadeInDown',
35
+                'animate__fadeInDownBig' => 'fadeInDownBig',
36
+                'animate__fadeInLeft' => 'fadeInLeft',
37
+                'animate__fadeInLeftBig' => 'fadeInLeftBig',
38
+                'animate__fadeInRight' => 'fadeInRight',
39
+                'animate__fadeInRightBig' => 'fadeInRightBig',
40
+                'animate__fadeInUpBig' => 'fadeInUpBig',
41
+                'animate__fadeInTopLeft' => 'fadeInTopLeft',
42
+                'animate__fadeInTopRight' => 'fadeInTopRight',
43
+                'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
44
+                'animate__fadeInBottomRight' => 'fadeInBottomRight',
45
+                /* Attention seekers  */
46
+                'animate__bounce' => 'bounce',
47
+                'animate__flash' => 'flash',
48
+                'animate__pulse' => 'pulse',
49
+                'animate__rubberBand' => 'rubberBand',
50
+                'animate__shakeX' => 'shakeX',
51
+                'animate__shakeY' => 'shakeY',
52
+                'animate__headShake' => 'headShake',
53
+                'animate__swing' => 'swing',
54
+                'animate__tada' => 'tada',
55
+                'animate__wobble' => 'wobble',
56
+                'animate__jello' => 'jello',
57
+                'animate__heartBeat' => 'heartBeat',
58
+                /* Back entrances */
59
+                'animate__backInDown' => 'backInDown',
60
+                'animate__backInLeft' => 'backInLeft',
61
+                'animate__backInRight' => 'backInRight',
62
+                'animate__backInUp' => 'backInUp',
63
+                /* Back exits */
64
+                'animate__backOutDown' => 'backOutDown',
65
+                'animate__backOutLeft' => 'backOutLeft',
66
+                'animate__backOutRight' => 'backOutRight',
67
+                'animate__backOutUp' => 'backOutUp',
68
+                /* Bouncing entrances  */
69
+                'animate__bounceIn' => 'bounceIn',
70
+                'animate__bounceInDown' => 'bounceInDown',
71
+                'animate__bounceInLeft' => 'bounceInLeft',
72
+                'animate__bounceInRight' => 'bounceInRight',
73
+                'animate__bounceInUp' => 'bounceInUp',
74
+                /* Bouncing exits  */
75
+                'animate__bounceOut' => 'bounceOut',
76
+                'animate__bounceOutDown' => 'bounceOutDown',
77
+                'animate__bounceOutLeft' => 'bounceOutLeft',
78
+                'animate__bounceOutRight' => 'bounceOutRight',
79
+                'animate__bounceOutUp' => 'bounceOutUp',
80
+                /* Fading exits */
81
+                'animate__fadeOut' => 'fadeOut',
82
+                'animate__fadeOutDown' => 'fadeOutDown',
83
+                'animate__fadeOutDownBig' => 'fadeOutDownBig',
84
+                'animate__fadeOutLeft' => 'fadeOutLeft',
85
+                'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
86
+                'animate__fadeOutRight' => 'fadeOutRight',
87
+                'animate__fadeOutRightBig' => 'fadeOutRightBig',
88
+                'animate__fadeOutUp' => 'fadeOutUp',
89
+                'animate__fadeOutUpBig' => 'fadeOutUpBig',
90
+                'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
91
+                'animate__fadeOutTopRight' => 'fadeOutTopRight',
92
+                'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
93
+                'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
94
+                /* Flippers */
95
+                'animate__flip' => 'flip',
96
+                'animate__flipInX' => 'flipInX',
97
+                'animate__flipInY' => 'flipInY',
98
+                'animate__flipOutX' => 'flipOutX',
99
+                'animate__flipOutY' => 'flipOutY',
100
+                /* Lightspeed */
101
+                'animate__lightSpeedInRight' => 'lightSpeedInRight',
102
+                'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
103
+                'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
104
+                'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
105
+                /* Rotating entrances */
106
+                'animate__rotateIn' => 'rotateIn',
107
+                'animate__rotateInDownLeft' => 'rotateInDownLeft',
108
+                'animate__rotateInDownRight' => 'rotateInDownRight',
109
+                'animate__rotateInUpLeft' => 'rotateInUpLeft',
110
+                'animate__rotateInUpRight' => 'rotateInUpRight',
111
+                /* Rotating exits */
112
+                'animate__rotateOut' => 'rotateOut',
113
+                'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
114
+                'animate__rotateOutDownRight' => 'rotateOutDownRight',
115
+                'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
116
+                'animate__rotateOutUpRight' => 'rotateOutUpRight',
117
+                /* Specials */
118
+                'animate__hinge' => 'hinge',
119
+                'animate__jackInTheBox' => 'jackInTheBox',
120
+                'animate__rollIn' => 'rollIn',
121
+                'animate__rollOut' => 'rollOut',
122
+                /* Zooming entrances */
123
+                'animate__zoomIn' => 'zoomIn',
124
+                'animate__zoomInDown' => 'zoomInDown',
125
+                'animate__zoomInLeft' => 'zoomInLeft',
126
+                'animate__zoomInRight' => 'zoomInRight',
127
+                'animate__zoomInUp' => 'zoomInUp',
128
+                /* Zooming exits */
129
+                'animate__zoomOut' => 'zoomOut',
130
+                'animate__zoomOutDown' => 'zoomOutDown',
131
+                'animate__zoomOutLeft' => 'zoomOutLeft',
132
+                'animate__zoomOutRight' => 'zoomOutRight',
133
+                'animate__zoomOutUp' => 'zoomOutUp',
134
+                /* Sliding entrances */
135
+                'animate__slideInDown' => 'slideInDown',
136
+                'animate__slideInLeft' => 'slideInLeft',
137
+                'animate__slideInRight' => 'slideInRight',
138
+                'animate__slideInUp' => 'slideInUp',
139
+                /* Sliding exits */
140
+                'animate__slideOutDown' => 'slideOutDown',
141
+                'animate__slideOutLeft' => 'slideOutLeft',
142
+                'animate__slideOutRight' => 'slideOutRight',
143
+                'animate__slideOutUp' => 'slideOutUp',
144
+            ),
145
+            'eval' => array('chosen' => 'true')
146
+        ),
147
+
148
+        'size' => array(
149
+            'label' => array('Bildbreite und Bildhöhe', ''),
150
+            'inputType' => 'imageSize',
151
+            'options' => System::getImageSizes(),
152
+            'reference' => &$GLOBALS['TL_LANG']['MSC'],
153
+            'eval' => array(
154
+                'rgxp' => 'digit',
155
+                'includeBlankOption' => true,
156
+            ),
157
+        ),
158
+
159
+
160
+        'alternate_background_color' => array(
161
+            'label' => array('Alternative Hintergrundfarbe für Inhalt', 'Standardmäßig transparent'),
162
+            'inputType' => 'text',
163
+            'eval' => array('tl_class' => 'w50'),
164
+        ),
165
+
166
+        'alternate_text_color' => array(
167
+            'label' => array('Schriftfarbe als HEX-Wert falls abweichend', 'Standard-Farbe ist die Basis-Textfarbe'),
168
+            'inputType' => 'text',
169
+            'eval' => array('tl_class' => 'w50'),
170
+        ),
171
+
172
+        'activate_top' => array(
173
+            'label' => array('Oberen Beschreibungsbereich aktivieren', ''),
174
+            'inputType' => 'checkbox',
175
+            'eval' => array('tl_class' => 'clr'),
176
+        ),
177
+
178
+        'show_tooltip' => array(
179
+            'label' => array('Tooltip anzeigen', 'Alternativ wird die Headline am unteren Ende des Bildes angezeigt (wie im großen Bild), außerdem wird die Breite der Bilder auf 25% gesetzt.'),
180
+            'inputType' => 'checkbox',
181
+            'eval' => array('tl_class' => 'clr'),
182
+        ),
183
+
184
+        'settings_2' => array(
185
+            'label' => array('Standard-Inhalte', ''),
186
+            'inputType' => 'group',
187
+            'dependsOn' => array(
188
+                'field' => 'activate_top',
189
+            ),
190
+        ),
191
+
192
+        'basic_headline' => array(
193
+            'label' => array('Standard-Überschrift', ''),
194
+            'inputType' => 'text',
195
+        ),
196
+        'basic_desc' => array(
197
+            'label' => array('Standard-Beschreibung', 'wird initial angezeigt und auch dann, wenn ein Element keinen Text hat.'),
198
+            'inputType' => 'textarea',
199
+            'eval' => array('rte' => 'tinyMCE', 'tl_class' => 'clr'),
200
+        ),
201
+
202
+
203
+        'elements' => array(
204
+            'label' => array('Elemente', ''),
205
+            'elementLabel' => '%s. Element',
206
+            'inputType' => 'list',
207
+            'minItems' => 1,
208
+            'maxItems' => 999,
209
+            'fields' => array(
210
+                'img' => array(
211
+                    'label' => array('Bild', ''),
212
+                    'inputType' => 'fileTree',
213
+                    'eval' => array(
214
+                        'multiple' => false,
215
+                        'fieldType' => 'radio',
216
+                        'filesOnly' => true,
217
+                        'extensions' => 'jpg,jpeg,png,svg',
218
+                    ),
219
+                ),
220
+
221
+
222
+                'title' => array(
223
+                    'label' => array('Titel', ''),
224
+                    'inputType' => 'text',
225
+                ),
226
+
227
+                'alternate_headline' => array(
228
+                    'label' => array('Alternative Überschrift', 'Hinfällig wenn oberer Bereich deaktiviert ist'),
229
+                    'inputType' => 'text',
230
+                ),
231
+
232
+                'desc' => array(
233
+                    'label' => array('Alternative Beschreibung', 'Hinfällig wenn oberer Bereich deaktiviert ist'),
234
+                    'inputType' => 'textarea',
235
+                    'eval' => array('rte' => 'tinyMCE', 'tl_class' => 'clr'),
236
+                ),
237
+
238
+
239
+            ),
240
+        ),
241
+    ),
242
+);