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,196 @@
1
+<?php
2
+// rsce_my_element_config.php
3
+return array(
4
+    'label' => array('Custom | Anker-Navigation (onepagenavi)', ''),
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
+        'animation_type' => array(
14
+            'label' => array(
15
+                'de' => array('Art der Einblendeanimation', 'Siehe https://animate.style/ für Beispiele'),
16
+            ),
17
+            'inputType' => 'select',
18
+            'options' => array(
19
+                /* Fading entrances  */
20
+                'animate__fadeInUp' => 'fadeInUp (Meistens Standard)',
21
+                'no-animation' => 'Keine Animation',
22
+                'animate__fadeIn' => 'fadeIn',
23
+                'animate__fadeInDown' => 'fadeInDown',
24
+                'animate__fadeInDownBig' => 'fadeInDownBig',
25
+                'animate__fadeInLeft' => 'fadeInLeft',
26
+                'animate__fadeInLeftBig' => 'fadeInLeftBig',
27
+                'animate__fadeInRight' => 'fadeInRight',
28
+                'animate__fadeInRightBig' => 'fadeInRightBig',
29
+                'animate__fadeInUpBig' => 'fadeInUpBig',
30
+                'animate__fadeInTopLeft' => 'fadeInTopLeft',
31
+                'animate__fadeInTopRight' => 'fadeInTopRight',
32
+                'animate__fadeInBottomLeft' => 'fadeInBottomLeft',
33
+                'animate__fadeInBottomRight' => 'fadeInBottomRight',
34
+                /* Attention seekers  */
35
+                'animate__bounce' => 'bounce',
36
+                'animate__flash' => 'flash',
37
+                'animate__pulse' => 'pulse',
38
+                'animate__rubberBand' => 'rubberBand',
39
+                'animate__shakeX' => 'shakeX',
40
+                'animate__shakeY' => 'shakeY',
41
+                'animate__headShake' => 'headShake',
42
+                'animate__swing' => 'swing',
43
+                'animate__tada' => 'tada',
44
+                'animate__wobble' => 'wobble',
45
+                'animate__jello' => 'jello',
46
+                'animate__heartBeat' => 'heartBeat',
47
+                /* Back entrances */
48
+                'animate__backInDown' => 'backInDown',
49
+                'animate__backInLeft' => 'backInLeft',
50
+                'animate__backInRight' => 'backInRight',
51
+                'animate__backInUp' => 'backInUp',
52
+                /* Back exits */
53
+                'animate__backOutDown' => 'backOutDown',
54
+                'animate__backOutLeft' => 'backOutLeft',
55
+                'animate__backOutRight' => 'backOutRight',
56
+                'animate__backOutUp' => 'backOutUp',
57
+                /* Bouncing entrances  */
58
+                'animate__bounceIn' => 'bounceIn',
59
+                'animate__bounceInDown' => 'bounceInDown',
60
+                'animate__bounceInLeft' => 'bounceInLeft',
61
+                'animate__bounceInRight' => 'bounceInRight',
62
+                'animate__bounceInUp' => 'bounceInUp',
63
+                /* Bouncing exits  */
64
+                'animate__bounceOut' => 'bounceOut',
65
+                'animate__bounceOutDown' => 'bounceOutDown',
66
+                'animate__bounceOutLeft' => 'bounceOutLeft',
67
+                'animate__bounceOutRight' => 'bounceOutRight',
68
+                'animate__bounceOutUp' => 'bounceOutUp',
69
+                /* Fading exits */
70
+                'animate__fadeOut' => 'fadeOut',
71
+                'animate__fadeOutDown' => 'fadeOutDown',
72
+                'animate__fadeOutDownBig' => 'fadeOutDownBig',
73
+                'animate__fadeOutLeft' => 'fadeOutLeft',
74
+                'animate__fadeOutLeftBig' => 'fadeOutLeftBig',
75
+                'animate__fadeOutRight' => 'fadeOutRight',
76
+                'animate__fadeOutRightBig' => 'fadeOutRightBig',
77
+                'animate__fadeOutUp' => 'fadeOutUp',
78
+                'animate__fadeOutUpBig' => 'fadeOutUpBig',
79
+                'animate__fadeOutTopLeft' => 'fadeOutTopLeft',
80
+                'animate__fadeOutTopRight' => 'fadeOutTopRight',
81
+                'animate__fadeOutBottomRight' => 'fadeOutBottomRight',
82
+                'animate__fadeOutBottomLeft' => 'fadeOutBottomLeft',
83
+                /* Flippers */
84
+                'animate__flip' => 'flip',
85
+                'animate__flipInX' => 'flipInX',
86
+                'animate__flipInY' => 'flipInY',
87
+                'animate__flipOutX' => 'flipOutX',
88
+                'animate__flipOutY' => 'flipOutY',
89
+                /* Lightspeed */
90
+                'animate__lightSpeedInRight' => 'lightSpeedInRight',
91
+                'animate__lightSpeedInLeft' => 'lightSpeedInLeft',
92
+                'animate__lightSpeedOutRight' => 'lightSpeedOutRight',
93
+                'animate__lightSpeedOutLeft' => 'lightSpeedOutLeft',
94
+                /* Rotating entrances */
95
+                'animate__rotateIn' => 'rotateIn',
96
+                'animate__rotateInDownLeft' => 'rotateInDownLeft',
97
+                'animate__rotateInDownRight' => 'rotateInDownRight',
98
+                'animate__rotateInUpLeft' => 'rotateInUpLeft',
99
+                'animate__rotateInUpRight' => 'rotateInUpRight',
100
+                /* Rotating exits */
101
+                'animate__rotateOut' => 'rotateOut',
102
+                'animate__rotateOutDownLeft' => 'rotateOutDownLeft',
103
+                'animate__rotateOutDownRight' => 'rotateOutDownRight',
104
+                'animate__rotateOutUpLeft' => 'rotateOutUpLeft',
105
+                'animate__rotateOutUpRight' => 'rotateOutUpRight',
106
+                /* Specials */
107
+                'animate__hinge' => 'hinge',
108
+                'animate__jackInTheBox' => 'jackInTheBox',
109
+                'animate__rollIn' => 'rollIn',
110
+                'animate__rollOut' => 'rollOut',
111
+                /* Zooming entrances */
112
+                'animate__zoomIn' => 'zoomIn',
113
+                'animate__zoomInDown' => 'zoomInDown',
114
+                'animate__zoomInLeft' => 'zoomInLeft',
115
+                'animate__zoomInRight' => 'zoomInRight',
116
+                'animate__zoomInUp' => 'zoomInUp',
117
+                /* Zooming exits */
118
+                'animate__zoomOut' => 'zoomOut',
119
+                'animate__zoomOutDown' => 'zoomOutDown',
120
+                'animate__zoomOutLeft' => 'zoomOutLeft',
121
+                'animate__zoomOutRight' => 'zoomOutRight',
122
+                'animate__zoomOutUp' => 'zoomOutUp',
123
+                /* Sliding entrances */
124
+                'animate__slideInDown' => 'slideInDown',
125
+                'animate__slideInLeft' => 'slideInLeft',
126
+                'animate__slideInRight' => 'slideInRight',
127
+                'animate__slideInUp' => 'slideInUp',
128
+                /* Sliding exits */
129
+                'animate__slideOutDown' => 'slideOutDown',
130
+                'animate__slideOutLeft' => 'slideOutLeft',
131
+                'animate__slideOutRight' => 'slideOutRight',
132
+                'animate__slideOutUp' => 'slideOutUp',
133
+            ),
134
+            'eval' => array('chosen' => 'true')
135
+        ),
136
+
137
+        'offset' => array(
138
+            'label' => array('Wie viel PX soll gescrollt werden,  bis die Navigation sichtbar wird', 'Standard: 300'),
139
+            'inputType' => 'text',
140
+        ),
141
+
142
+
143
+        'background_color' => array(
144
+            'label' => array('Hintergrundfarbe', 'Standard: Hauptfarbe'),
145
+            'inputType' => 'text',
146
+            'eval' => array('tl_class' => 'w50'),
147
+        ),
148
+
149
+        'text_color' => array(
150
+            'label' => array('Schriftfarbe', 'Standard: Weiß'),
151
+            'inputType' => 'text',
152
+            'eval' => array('tl_class' => 'w50'),
153
+        ),
154
+
155
+        'smaller_containers' => array(
156
+            'label' => array('"Container" auf der Seite schmäler machen, damit OnepageNavi den Content nicht überlagert', 'Greift nicht bei Elementen die auf die volle Breite gehen'),
157
+            'inputType' => 'checkbox',
158
+            'eval' => array('tl_class' => 'clr'),
159
+        ),
160
+
161
+
162
+        'add_totopbutton' => array(
163
+            'label' => array('"Nach oben"-Button hinzufügen', ''),
164
+            'inputType' => 'checkbox',
165
+            'eval' => array('tl_class' => 'clr'),
166
+        ),
167
+
168
+        'hide_mobile' => array(
169
+            'label' => array('Auf dem Handy ausblenden', ''),
170
+            'inputType' => 'checkbox',
171
+            'eval' => array('tl_class' => 'clr'),
172
+        ),
173
+
174
+
175
+        'urls' => array(
176
+            'label' => array('Link', ''),
177
+            'elementLabel' => '%s. Link',
178
+            'inputType' => 'list',
179
+            'minItems' => 1,
180
+            'maxItems' => 999,
181
+            'eval' => array('tl_class' => 'clr'),
182
+            'fields' => array(
183
+                'text' => array(
184
+                    'label' => array('Bezeichnung', ''),
185
+                    'inputType' => 'text',
186
+                    'eval' => array('tl_class' => 'w50'),
187
+                ),
188
+                'link' => array(
189
+                    'label' => array('Link', 'Anker-ID eingeben, z. B. "#anker"'),
190
+                    'inputType' => 'text',
191
+                    'eval' => array('tl_class' => 'w50'),
192
+                ),
193
+            ),
194
+        ),
195
+    ),
196
+);