Browse code

Progress live

Benjamin Roth authored on12/12/2022 10:57:09
Showing1 changed files
... ...
@@ -160,6 +160,17 @@ return array(
160 160
             ),
161 161
             'eval' => array('tl_class' => 'w50'),
162 162
         ),
163
+        'colorVariation' => array(
164
+            'label' => array('Vordefinierte Hintergrundfarbe', 'Eine der vordefinierten Farben als Hintergrund verwenden. Die Farben lassen sich mit dem Theme Assistant, CSS oder Sass anpassen.'),
165
+            'inputType' => 'select',
166
+            'options' => array(
167
+                '' => '-',
168
+                '-alt-color' => 'Leichtes Platin',
169
+                '-alt-color2' => 'Footer',
170
+                '-alt-color3' => 'Footer-Alternativ',
171
+            ),
172
+            'eval' => array('tl_class' => 'w50'),
173
+        ),
163 174
         'viewportHeight' => array(
164 175
             'label' => array('Mind. Viewport Höhe', 'Der Inhaltsbereich hat mindestens die Höhe des Viewports. Der Inhalt wird zentriert dargestellt.'),
165 176
             'inputType' => 'checkbox',
Browse code

Progress

Benjamin Roth authored on12/12/2022 00:17:47
Showing1 changed files
... ...
@@ -17,8 +17,8 @@ return array(
17 17
             'label' => array('Position', 'Legt fest ob der Inhalt links oder rechts vom Bild positioniert ist.'),
18 18
             'inputType' => 'select',
19 19
             'options' => array(
20
-                '' => 'Links',
21
-                '-text-right' => 'Rechts',
20
+                '' => 'Rechts',
21
+                '-text-left' => 'Links',
22 22
             ),
23 23
             'eval' => array('tl_class' => 'w50'),
24 24
         ),
... ...
@@ -109,10 +109,20 @@ return array(
109 109
                 'field' => 'featureLink'
110 110
             )
111 111
         ),
112
+        'linkAlign' => array(
113
+            'label' => array('Link-Ausrichtung', 'Horizontale Ausrichtung des Links.'),
114
+            'inputType' => 'select',
115
+            'options' => array(
116
+                '' => 'Links',
117
+                '-alignCenter' => 'Mitte',
118
+                '-alignRight' => 'Rechts',
119
+            ),
120
+            'eval' => array('tl_class' => 'w50'),
121
+        ),
112 122
         'newWindow' => array(
113 123
             'label' => $GLOBALS['TL_LANG']['MSC']['target'],
114 124
             'inputType' => 'checkbox',
115
-            'eval' => array('tl_class' => 'w50 m12'),
125
+            'eval' => array('tl_class' => 'w50 clr'),
116 126
             'dependsOn' => array(
117 127
                 'field' => 'featureLink'
118 128
             )
... ...
@@ -144,13 +154,13 @@ return array(
144 154
             'label' => array('Vertikale Ausrichtung', 'Vertikale Ausrichtung (nur in Verbindung mit "Mind. Viewport Höhe").'),
145 155
             'inputType' => 'select',
146 156
             'options' => array(
147
-                '' => 'Mitte',
148
-                '-valignTop' => 'Oben',
149
-                '-valignBottom' => 'Unten',
157
+                '-valign-top' => 'Oben',
158
+                '-valign-center' => 'Mitte',
159
+                '-valign-bottom' => 'Unten',
150 160
             ),
151 161
             'eval' => array('tl_class' => 'w50'),
152 162
         ),
153
-        'valignCenter' => array(
163
+        'viewportHeight' => array(
154 164
             'label' => array('Mind. Viewport Höhe', 'Der Inhaltsbereich hat mindestens die Höhe des Viewports. Der Inhalt wird zentriert dargestellt.'),
155 165
             'inputType' => 'checkbox',
156 166
             'eval' => array(
Browse code

Progress

Benjamin Roth authored on09/12/2022 21:38:24
Showing1 changed files
... ...
@@ -3,6 +3,7 @@
3 3
 return array(
4 4
     'label' => array('Zentrierter Featured-Block Anfang →', 'Erzeugt einen zentrierten Feature-Block (z.B. Weinlinie)'),
5 5
     'types' => array('content','module'),
6
+    'contentCategory' => 'featured',
6 7
     'standardFields' => array('cssID', 'space'),
7 8
     'wrapper' => array(
8 9
         'type' => 'start',
... ...
@@ -87,7 +88,7 @@ return array(
87 88
         'linkLabel' => array(
88 89
             'label' => array('Link-Text', ''),
89 90
             'inputType' => 'text',
90
-            'eval' => array('tl_class' => 'w50'),
91
+            'eval' => array('tl_class' => 'w50', 'mandatory'=>true),
91 92
             'dependsOn' => array(
92 93
                 'field' => 'featureLink'
93 94
             )
... ...
@@ -95,7 +96,7 @@ return array(
95 96
         'linkUrl' => array(
96 97
             'label' => array('Link-URL', 'Beispiele: {{link_url::seitenalias}} (Alias, ID oder anderer Inserttag), http://example.com'),
97 98
             'inputType' => 'url',
98
-            'eval' => array('tl_class' => 'w50'),
99
+            'eval' => array('tl_class' => 'w50', 'mandatory'=>true),
99 100
             'dependsOn' => array(
100 101
                 'field' => 'featureLink'
101 102
             )
... ...
@@ -167,4 +168,4 @@ return array(
167 168
             'inputType' => 'standardField'
168 169
         ),
169 170
     ),
170
-);
171 171
\ No newline at end of file
172
+);
Browse code

Remote Progress

Benjamin Roth authored on09/12/2022 11:32:23
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,170 @@
1
+<?php
2
+// rsce_boxes_config.php
3
+return array(
4
+    'label' => array('Zentrierter Featured-Block Anfang →', 'Erzeugt einen zentrierten Feature-Block (z.B. Weinlinie)'),
5
+    'types' => array('content','module'),
6
+    'standardFields' => array('cssID', 'space'),
7
+    'wrapper' => array(
8
+        'type' => 'start',
9
+    ),
10
+    'fields' => array(
11
+        'content_set' => array(
12
+            'label' => array('Inhaltsspalte'),
13
+            'inputType' => 'group',
14
+        ),
15
+        'contentPosition' => array(
16
+            'label' => array('Position', 'Legt fest ob der Inhalt links oder rechts vom Bild positioniert ist.'),
17
+            'inputType' => 'select',
18
+            'options' => array(
19
+                '' => 'Links',
20
+                '-text-right' => 'Rechts',
21
+            ),
22
+            'eval' => array('tl_class' => 'w50'),
23
+        ),
24
+        'image_set' => array(
25
+            'label' => array('Bildspalte'),
26
+            'inputType' => 'group',
27
+        ),
28
+        'backgroundImage' => array(
29
+            'label' => array('Bild oder Video', 'Wählen Sie ein Bild oder eine Videodatei aus.'),
30
+            'inputType' => 'fileTree',
31
+            'eval' => array(
32
+                'tl_class' => 'clr',
33
+                'multiple' => false,
34
+                'fieldType' => 'radio',
35
+                'filesOnly' => true,
36
+                'extensions' => \Config::get('validImageTypes') . ',mp4,webm,ogv,ogg',
37
+                'orderField'=>'orderSRC',
38
+//        'isGallery' => true,
39
+            ),
40
+        ),
41
+        'backgroundImageSize' => array(
42
+            'label' => array('Bildbreite und Bildhöhe', ''),
43
+            'inputType' => 'imageSize',
44
+            'options' => \System::getContainer()->get('contao.image.image_sizes')->getOptionsForUser(BackendUser::getInstance()),
45
+            'reference' => &$GLOBALS['TL_LANG']['MSC'],
46
+            'eval' => array(
47
+                'rgxp' => 'digit',
48
+                'tl_class' => 'w50',
49
+                'includeBlankOption' => true,
50
+            ),
51
+        ),
52
+        'backgroundSize' => array(
53
+            'label' => array('Bildanpassung', ''),
54
+            'inputType' => 'select',
55
+            'options' => array(
56
+                'cover' => 'Beschnitten',
57
+                'contain' => 'Proportional',
58
+                '100% 100%' => 'Verzerrt',
59
+                'auto auto' => 'Originalgröße',
60
+            ),
61
+            'eval' => array('tl_class' => 'w50'),
62
+        ),
63
+        'backgroundPosition' => array(
64
+            'label' => array('Position', 'Bildausrichtung'),
65
+            'inputType' => 'select',
66
+            'options' => array(
67
+                '' => '-',
68
+                '0 0' => 'Links | Oben',
69
+                '50% 0' => 'Mitte | Oben',
70
+                '100% 0' => 'Rechts | Oben',
71
+                '0 50%' => 'Links | Mitte',
72
+                '50% 50%' => 'Mitte | Mitte',
73
+                '100% 50%' => 'Rechts | Mitte',
74
+                '0 100%' => 'Links | Unten',
75
+                '50% 100%' => 'Mitte | Unten',
76
+                '100% 100%' => 'Rechts | Unten',
77
+            ),
78
+            'eval' => array('tl_class' => 'w50'),
79
+        ),
80
+        'featureLink' => array(
81
+            'label' => array('Featurelink unter Bild', 'Stellt einen prominenten Link unterhalb des Bildes dar.'),
82
+            'inputType' => 'checkbox',
83
+            'eval' => array(
84
+                'tl_class' => 'w50 m12 clr',
85
+            ),
86
+        ),
87
+        'linkLabel' => array(
88
+            'label' => array('Link-Text', ''),
89
+            'inputType' => 'text',
90
+            'eval' => array('tl_class' => 'w50'),
91
+            'dependsOn' => array(
92
+                'field' => 'featureLink'
93
+            )
94
+        ),
95
+        'linkUrl' => array(
96
+            'label' => array('Link-URL', 'Beispiele: {{link_url::seitenalias}} (Alias, ID oder anderer Inserttag), http://example.com'),
97
+            'inputType' => 'url',
98
+            'eval' => array('tl_class' => 'w50'),
99
+            'dependsOn' => array(
100
+                'field' => 'featureLink'
101
+            )
102
+        ),
103
+        'linkTitle' => array(
104
+            'label' => array('Link-Titel', 'Wird beim hovern mit der Maus dargestellt.'),
105
+            'inputType' => 'text',
106
+            'eval' => array('tl_class' => 'w50'),
107
+            'dependsOn' => array(
108
+                'field' => 'featureLink'
109
+            )
110
+        ),
111
+        'newWindow' => array(
112
+            'label' => $GLOBALS['TL_LANG']['MSC']['target'],
113
+            'inputType' => 'checkbox',
114
+            'eval' => array('tl_class' => 'w50 m12'),
115
+            'dependsOn' => array(
116
+                'field' => 'featureLink'
117
+            )
118
+        ),
119
+        'layout_set' => array(
120
+            'label' => array('Layoutoptionen'),
121
+            'inputType' => 'group',
122
+        ),
123
+        'padding' => array(
124
+            'label' => array('Innenabstand', 'Es wird Oben und Unten ein Innenabstand angewendet.'),
125
+            'inputType' => 'select',
126
+            'options' => array(
127
+                '' => '-',
128
+                '-padding' => 'Default',
129
+                '-medium-padding' => 'Medium',
130
+                '-large-padding' => 'Large',
131
+                '-padding-top' => 'Small Top',
132
+                '-medium-padding-top' => 'Medium Top',
133
+                '-large-padding-top' => 'Large Top',
134
+                '-padding-bottom' => 'Small Bottom',
135
+                '-medium-padding-bottom' => 'Medium Bottom',
136
+                '-large-padding-bottom' => 'Large Bottom',
137
+            ),
138
+            'eval' => array(
139
+                'tl_class' => 'w50',
140
+            ),
141
+        ),
142
+        'valign' => array(
143
+            'label' => array('Vertikale Ausrichtung', 'Vertikale Ausrichtung (nur in Verbindung mit &quot;Mind. Viewport Höhe&quot;).'),
144
+            'inputType' => 'select',
145
+            'options' => array(
146
+                '' => 'Mitte',
147
+                '-valignTop' => 'Oben',
148
+                '-valignBottom' => 'Unten',
149
+            ),
150
+            'eval' => array('tl_class' => 'w50'),
151
+        ),
152
+        'valignCenter' => array(
153
+            'label' => array('Mind. Viewport Höhe', 'Der Inhaltsbereich hat mindestens die Höhe des Viewports. Der Inhalt wird zentriert dargestellt.'),
154
+            'inputType' => 'checkbox',
155
+            'eval' => array(
156
+                'tl_class' => 'w50 m12 clr',
157
+            ),
158
+        ),
159
+        'spacing' => array(
160
+            'label' => array('Abstand'),
161
+            'inputType' => 'group',
162
+        ),
163
+        'es_spacing' => array (
164
+            'inputType' => 'standardField'
165
+        ),
166
+        'es_padding' => array (
167
+            'inputType' => 'standardField'
168
+        ),
169
+    ),
170
+);
0 171
\ No newline at end of file