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,192 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Bild Links + Text rechts + Bild darunter', ''),
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(/* Fading entrances  */
26
+                'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
27
+                'animate__fadeIn' => 'fadeIn',
28
+                'animate__fadeInDown' => 'fadeInDown',
29
+                'animate__fadeInDownBig' => 'fadeInDownBig',
30
+                'animate__fadeInLeft' => 'fadeInLeft',
31
+                'animate__fadeInLeftBig' => 'fadeInLeftBig',
32
+                'animate__fadeInRight' => 'fadeInRight',
33
+                'animate__fadeInRightBig' => 'fadeInRightBig',
34
+                'animate__fadeInUpBig' => 'fadeInUpBig',
35
+                'animate__fadeInTopLeft' => 'fadeInTopLeft',
36
+                'animate__fadeInTopRight' => 'fadeInTopRight',
37
+                'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
38
+                'animate__fadeInBottomRight' => 'fadeInBottomRight',
39
+                /* Attention seekers  */
40
+                'animate__bounce' => 'bounce',
41
+                'animate__flash' => 'flash',
42
+                'animate__pulse' => 'pulse',
43
+                'animate__rubberBand' => 'rubberBand',
44
+                'animate__shakeX' => 'shakeX',
45
+                'animate__shakeY' => 'shakeY',
46
+                'animate__headShake' => 'headShake',
47
+                'animate__swing' => 'swing',
48
+                'animate__tada' => 'tada',
49
+                'animate__wobble' => 'wobble',
50
+                'animate__jello' => 'jello',
51
+                'animate__heartBeat' => 'heartBeat',
52
+                /* Back entrances */
53
+                'animate__backInDown' => 'backInDown',
54
+                'animate__backInLeft' => 'backInLeft',
55
+                'animate__backInRight' => 'backInRight',
56
+                'animate__backInUp' => 'backInUp',
57
+                /* Back exits */
58
+                'animate__backOutDown' => 'backOutDown',
59
+                'animate__backOutLeft' => 'backOutLeft',
60
+                'animate__backOutRight' => 'backOutRight',
61
+                'animate__backOutUp' => 'backOutUp',
62
+                /* Bouncing entrances  */
63
+                'animate__bounceIn' => 'bounceIn',
64
+                'animate__bounceInDown' => 'bounceInDown',
65
+                'animate__bounceInLeft' => 'bounceInLeft',
66
+                'animate__bounceInRight' => 'bounceInRight',
67
+                'animate__bounceInUp' => 'bounceInUp',
68
+                /* Bouncing exits  */
69
+                'animate__bounceOut' => 'bounceOut',
70
+                'animate__bounceOutDown' => 'bounceOutDown',
71
+                'animate__bounceOutLeft' => 'bounceOutLeft',
72
+                'animate__bounceOutRight' => 'bounceOutRight',
73
+                'animate__bounceOutUp' => 'bounceOutUp',
74
+                /* Fading exits */
75
+                'animate__fadeOut' => 'fadeOut',
76
+                'animate__fadeOutDown' => 'fadeOutDown',
77
+                'animate__fadeOutDownBig' => 'fadeOutDownBig',
78
+                'animate__fadeOutLeft' => 'fadeOutLeft',
79
+                'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
80
+                'animate__fadeOutRight' => 'fadeOutRight',
81
+                'animate__fadeOutRightBig' => 'fadeOutRightBig',
82
+                'animate__fadeOutUp' => 'fadeOutUp',
83
+                'animate__fadeOutUpBig' => 'fadeOutUpBig',
84
+                'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
85
+                'animate__fadeOutTopRight' => 'fadeOutTopRight',
86
+                'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
87
+                'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
88
+                /* Flippers */
89
+                'animate__flip' => 'flip',
90
+                'animate__flipInX' => 'flipInX',
91
+                'animate__flipInY' => 'flipInY',
92
+                'animate__flipOutX' => 'flipOutX',
93
+                'animate__flipOutY' => 'flipOutY',
94
+                /* Lightspeed */
95
+                'animate__lightSpeedInRight' => 'lightSpeedInRight',
96
+                'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
97
+                'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
98
+                'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
99
+                /* Rotating entrances */
100
+                'animate__rotateIn' => 'rotateIn',
101
+                'animate__rotateInDownLeft' => 'rotateInDownLeft',
102
+                'animate__rotateInDownRight' => 'rotateInDownRight',
103
+                'animate__rotateInUpLeft' => 'rotateInUpLeft',
104
+                'animate__rotateInUpRight' => 'rotateInUpRight',
105
+                /* Rotating exits */
106
+                'animate__rotateOut' => 'rotateOut',
107
+                'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
108
+                'animate__rotateOutDownRight' => 'rotateOutDownRight',
109
+                'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
110
+                'animate__rotateOutUpRight' => 'rotateOutUpRight',
111
+                /* Specials */
112
+                'animate__hinge' => 'hinge',
113
+                'animate__jackInTheBox' => 'jackInTheBox',
114
+                'animate__rollIn' => 'rollIn',
115
+                'animate__rollOut' => 'rollOut',
116
+                /* Zooming entrances */
117
+                'animate__zoomIn' => 'zoomIn',
118
+                'animate__zoomInDown' => 'zoomInDown',
119
+                'animate__zoomInLeft' => 'zoomInLeft',
120
+                'animate__zoomInRight' => 'zoomInRight',
121
+                'animate__zoomInUp' => 'zoomInUp',
122
+                /* Zooming exits */
123
+                'animate__zoomOut' => 'zoomOut',
124
+                'animate__zoomOutDown' => 'zoomOutDown',
125
+                'animate__zoomOutLeft' => 'zoomOutLeft',
126
+                'animate__zoomOutRight' => 'zoomOutRight',
127
+                'animate__zoomOutUp' => 'zoomOutUp',
128
+                /* Sliding entrances */
129
+                'animate__slideInDown' => 'slideInDown',
130
+                'animate__slideInLeft' => 'slideInLeft',
131
+                'animate__slideInRight' => 'slideInRight',
132
+                'animate__slideInUp' => 'slideInUp',
133
+                /* Sliding exits */
134
+                'animate__slideOutDown' => 'slideOutDown',
135
+                'animate__slideOutLeft' => 'slideOutLeft',
136
+                'animate__slideOutRight' => 'slideOutRight',
137
+                'animate__slideOutUp' => 'slideOutUp',
138
+            ),
139
+            'eval' => array('chosen' => 'true')
140
+        ),
141
+        'image_left' => array(
142
+            'label' => array('Bild links oben', ''),
143
+            'inputType' => 'fileTree',
144
+            'eval' => array(
145
+                'multiple' => false,
146
+                'fieldType' => 'radio',
147
+                'filesOnly' => true,
148
+                'extensions' => 'jpg,jpeg,png,svg',
149
+            ),
150
+        ),
151
+        'image_bottom' => array(
152
+            'label' => array('Bild mittig darunter', ''),
153
+            'inputType' => 'fileTree',
154
+            'eval' => array(
155
+                'multiple' => false,
156
+                'fieldType' => 'radio',
157
+                'filesOnly' => true,
158
+                'extensions' => 'jpg,jpeg,png,svg',
159
+            ),
160
+        ),
161
+        'headline_type' => array(
162
+            'label' => array(
163
+                'de' => array('Typ der Überschrift', 'für linke Spalte'),
164
+            ),
165
+            'inputType' => 'select',
166
+            'options' => array(
167
+                'h1' => 'H1 (Haupt-Headline für SEO, darf nur 1x vorkommen)',
168
+                'h2' => 'H2 (Sollte H1 thematisch untergeordnet sein)',
169
+                'h3' => 'H3 (Sollte H2 thematisch untergeordnet sein)',
170
+                'h4' => 'H4',
171
+                'h5' => 'H5',
172
+            ),
173
+        ),
174
+        'onlystyle' => array(
175
+            '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'),
176
+            'inputType' => 'checkbox',
177
+        ),
178
+        'ce_headline' => array(
179
+            'label' => array('Überschrift', 'für linke Spalte'),
180
+            'inputType' => 'text',
181
+        ),
182
+        'ce_subline' => array(
183
+            'label' => array('Subline', ''),
184
+            'inputType' => 'text',
185
+        ),
186
+        'text' => array(
187
+            'label' => array('Text', ''),
188
+            'inputType' => 'text',
189
+            'eval' => array('rte' => 'tinyMCE'),
190
+        ),
191
+    ),
192
+);