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,206 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Galerie auf voller Breite mit Hover-Text & Verlinkung', ''),
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
+
144
+        'gallery' => array(
145
+            'label' => array('Elemente', ''),
146
+            'elementLabel' => '%s. Element',
147
+            'inputType' => 'list',
148
+            'minItems' => 1,
149
+            'maxItems' => 999,
150
+            'fields' => array(
151
+                'column_width' => array(
152
+                    'label' => array(
153
+                        'de' => array('Spaltenbreite', ''),
154
+                    ),
155
+                    'inputType' => 'select',
156
+                    'options' => array(
157
+                        'col-12 col-md-6 col-lg-3' => '25%',
158
+                        'col-12 col-md-6 col-lg-4' => '33%',
159
+                        'col-12 col-md-6' => '50%',
160
+                        'col-12 col-lg-8' => '66.66%',
161
+                        'col-12 col-lg-9' => '75%',
162
+                        'col-12' => 'Volle Breite',
163
+                    ),
164
+                ),
165
+
166
+                'background_color' => array(
167
+                    'label' => array('Hintergrundfarbe für Inhalt', ''),
168
+                    'inputType' => 'text',
169
+                    'eval' => array('tl_class' => 'w50'),
170
+                ),
171
+
172
+                'text_color' => array(
173
+                    'label' => array('Schriftfarbe', ''),
174
+                    'inputType' => 'text',
175
+                    'eval' => array('tl_class' => 'w50'),
176
+                ),
177
+
178
+
179
+                'image' => array(
180
+                    'label' => array('Bild', ''),
181
+                    'inputType' => 'fileTree',
182
+                    'eval' => array(
183
+                        'multiple' => false,
184
+                        'fieldType' => 'radio',
185
+                        'filesOnly' => true,
186
+                        'extensions' => 'jpg,jpeg,png,svg',
187
+                        'tl_class' => 'clr'
188
+                    ),
189
+                ),
190
+
191
+
192
+                'link' => array(
193
+                    'label' => array('Link', ''),
194
+                    'inputType' => 'url',
195
+                    'eval' => array('tl_class' => 'w50'),
196
+                ),
197
+
198
+                'desc' => array(
199
+                    'label' => array('Text', 'sichtbar nach Hover'),
200
+                    'inputType' => 'textarea',
201
+                    'eval' => array('rte' => 'tinyMCE', 'tl_class' => 'clr'),
202
+                ),
203
+            ),
204
+        ),
205
+    ),
206
+);