Browse code

Progress

Benjamin Roth authored on21/02/2023 19:42:19
Showing1 changed files
... ...
@@ -108,8 +108,8 @@ return array(
108 108
               '-medium' => 'Mittel',
109 109
               '-large' => 'Hoch',
110 110
               '-full-vh' => 'Komplette Viewport-Höhe',
111
-              /*'-full-vh-header' => 'Viewport-Höhe abzüglich Header',
112
-              '-bgimage' => 'an Hintergrundbild ausrichten'*/
111
+              /*'-full-vh-header' => 'Viewport-Höhe abzüglich Header',*/
112
+              '-bgimage' => 'an Hintergrundbild ausrichten'
113 113
           ),
114 114
           'eval' => array('tl_class' => 'w50'),
115 115
       ),
Browse code

Progress live

Benjamin Roth authored on14/12/2022 13:32:50
Showing1 changed files
... ...
@@ -20,6 +20,20 @@ return array(
20 20
       'eval'                    => array('rte'=>'tinyMCE', 'helpwizard'=>true),
21 21
       'explanation'             => 'insertTags',
22 22
     ),
23
+      'useHtml' => array(
24
+          'label' => array('Zusätzliches HTML', 'Ermöglicht zusätzlichen HTML-Code im Hero.'),
25
+          'inputType' => 'checkbox',
26
+          'eval' => array(
27
+              'tl_class' => 'clr',
28
+          ),
29
+      ),
30
+      'html' => array (
31
+          'label' => array('Text'),
32
+          'inputType'               => 'textarea',
33
+          'eval'                    => array('allowHtml'=>true, 'class'=>'clr monospace', 'rte'=>'ace|html', 'helpwizard'=>true),
34
+          'explanation'             => 'insertTags',
35
+          'dependsOn'               => array('field'=>'useHtml')
36
+      ),
23 37
     'background_set' => array(
24 38
       'label' => array('Hintergrundbild'),
25 39
       'inputType' => 'group',
Browse code

Progress

Benjamin Roth authored on14/12/2022 00:09:31
Showing1 changed files
... ...
@@ -99,9 +99,23 @@ return array(
99 99
           ),
100 100
           'eval' => array('tl_class' => 'w50'),
101 101
       ),
102
-    'playerAspect' => array (
102
+      'playerAspect' => array(
103
+          'label' => array('Seitenverhältnis', 'Das gewünschte Seitenverhältnis des Bild-/Videoausschnitts.'),
104
+          'inputType' => 'select',
105
+          'options' => array(
106
+              '' => '-',
107
+              '16:9' => '16:9',
108
+              '16:10' => '16:10',
109
+              '21:9' => '21:9',
110
+              '8:3' => '8:3',
111
+              '4:3' => '4:3',
112
+              '3:2' => '3:2',
113
+          ),
114
+          'eval' => array('tl_class' => 'w50'),
115
+      ),
116
+    /*'playerAspect' => array (
103 117
       'inputType' => 'standardField'
104
-    ),
118
+    ),*/
105 119
     'arrow_set' => array(
106 120
       'label' => array('Pfeil'),
107 121
       'inputType' => 'group',
Browse code

Progress

Benjamin Roth authored on07/11/2022 18:15:35
Showing1 changed files
... ...
@@ -12,10 +12,13 @@ return array(
12 12
     ),
13 13
     'text' => array (
14 14
       'label' => array('Text'),
15
-      'inputType'               => 'inputUnit',
15
+      /*'inputType'               => 'inputUnit',
16 16
       'default'                 => array('value'=>'', 'unit'=>'h1'),
17 17
       'options'                 => array('h1', 'h2', 'h3', 'h4', 'h5', 'h6'),
18
-      'eval'                    => array('maxlength'=>200, 'tl_class'=>'w50 clr'),
18
+      'eval'                    => array('maxlength'=>200, 'tl_class'=>'w50 clr'),*/
19
+      'inputType'               => 'textarea',
20
+      'eval'                    => array('rte'=>'tinyMCE', 'helpwizard'=>true),
21
+      'explanation'             => 'insertTags',
19 22
     ),
20 23
     'background_set' => array(
21 24
       'label' => array('Hintergrundbild'),
... ...
@@ -91,8 +94,8 @@ return array(
91 94
               '-medium' => 'Mittel',
92 95
               '-large' => 'Hoch',
93 96
               '-full-vh' => 'Komplette Viewport-Höhe',
94
-              '-full-vh-header' => 'Viewport-Höhe abzüglich Header',
95
-              '-bgimage' => 'an Hintergrundbild ausrichten'
97
+              /*'-full-vh-header' => 'Viewport-Höhe abzüglich Header',
98
+              '-bgimage' => 'an Hintergrundbild ausrichten'*/
96 99
           ),
97 100
           'eval' => array('tl_class' => 'w50'),
98 101
       ),
Browse code

Initial commit

Benjamin Roth authored on07/11/2022 09:19:06
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,121 @@
1
+<?php
2
+// rsce_boxes_config.php
3
+return array(
4
+  'label' => array('Hero-Bild', 'Hero-Bild mit Text'),
5
+  'types' => array('content'),
6
+  'contentCategory' => 'media',
7
+  'standardFields' => array('cssID'),
8
+  'fields' => array(
9
+    'text_set' => array(
10
+      'label' => array('Text'),
11
+      'inputType' => 'group',
12
+    ),
13
+    'text' => array (
14
+      'label' => array('Text'),
15
+      'inputType'               => 'inputUnit',
16
+      'default'                 => array('value'=>'', 'unit'=>'h1'),
17
+      'options'                 => array('h1', 'h2', 'h3', 'h4', 'h5', 'h6'),
18
+      'eval'                    => array('maxlength'=>200, 'tl_class'=>'w50 clr'),
19
+    ),
20
+    'background_set' => array(
21
+      'label' => array('Hintergrundbild'),
22
+      'inputType' => 'group',
23
+    ),
24
+    'backgroundImage' => array(
25
+      'label' => array('Hintergrundbild oder -Video', 'Wählen Sie ein Bild oder mehrere Videodateien aus.'),
26
+      'inputType' => 'fileTree',
27
+      'eval' => array(
28
+        'tl_class' => 'clr',
29
+        'multiple' => true,
30
+        'fieldType' => 'checkbox',
31
+        'filesOnly' => true,
32
+        'extensions' => \Config::get('validImageTypes') . ',mp4,webm,ogv,ogg',
33
+        'orderField'=>'orderSRC',
34
+        'isGallery' => true,
35
+      ),
36
+    ),
37
+    'backgroundImageSize' => array(
38
+      'label' => array('Bildbreite und Bildhöhe', ''),
39
+      'inputType' => 'imageSize',
40
+      'options' => \System::getContainer()->get('contao.image.image_sizes')->getOptionsForUser(BackendUser::getInstance()),
41
+      'reference' => &$GLOBALS['TL_LANG']['MSC'],
42
+      'eval' => array(
43
+        'rgxp' => 'digit',
44
+        'tl_class' => 'w50',
45
+        'includeBlankOption' => true,
46
+      ),
47
+    ),
48
+    'backgroundSize' => array(
49
+      'label' => array('Hintergrundbildgröße', ''),
50
+      'inputType' => 'select',
51
+      'options' => array(
52
+        '' => 'Beschnitten',
53
+        'contain' => 'Proportional',
54
+        '100% 100%' => 'Verzerrt',
55
+        'auto auto' => 'Originalgröße',
56
+      ),
57
+      'eval' => array('tl_class' => 'w50'),
58
+    ),
59
+    'backgroundPosition' => array(
60
+      'label' => array('Hintergrundposition', 'Nicht mit Parallax-Effekt kombinierbar'),
61
+      'inputType' => 'select',
62
+      'options' => array(
63
+        '' => '-',
64
+        '0 0' => 'Links | Oben',
65
+        '50% 0' => 'Mitte | Oben',
66
+        '100% 0' => 'Rechts | Oben',
67
+        '0 50%' => 'Links | Mitte',
68
+        '50% 50%' => 'Mitte | Mitte',
69
+        '100% 50%' => 'Rechts | Mitte',
70
+        '0 100%' => 'Links | Unten',
71
+        '50% 100%' => 'Mitte | Unten',
72
+        '100% 100%' => 'Rechts | Unten',
73
+      ),
74
+      'eval' => array('tl_class' => 'w50'),
75
+    ),
76
+    'colorVariation' => array(
77
+      'label' => array('Vordefinierte Hintergrundfarbe', 'Eine der vordefinierten Farben als Hintergrund verwenden. Die Farben lassen sich mit dem Theme Assistant, CSS oder Sass anpassen.'),
78
+      'inputType' => 'select',
79
+      'options' => array(
80
+        '' => '-',
81
+        '-alt-color' => 'Alternative Hintergrundfarbe',
82
+      ),
83
+      'eval' => array('tl_class' => 'w50'),
84
+    ),
85
+      'height' => array(
86
+          'label' => array('Mindesthöhe erzwingen', 'Setzt die Mindesthöhe des Bereiches auf einen der im CSS definierten Werte.'),
87
+          'inputType' => 'select',
88
+          'options' => array(
89
+              '' => '-',
90
+              '-small' => 'Schmal',
91
+              '-medium' => 'Mittel',
92
+              '-large' => 'Hoch',
93
+              '-full-vh' => 'Komplette Viewport-Höhe',
94
+              '-full-vh-header' => 'Viewport-Höhe abzüglich Header',
95
+              '-bgimage' => 'an Hintergrundbild ausrichten'
96
+          ),
97
+          'eval' => array('tl_class' => 'w50'),
98
+      ),
99
+    'playerAspect' => array (
100
+      'inputType' => 'standardField'
101
+    ),
102
+    'arrow_set' => array(
103
+      'label' => array('Pfeil'),
104
+      'inputType' => 'group',
105
+    ),
106
+    'showArrow' => array(
107
+      'label' => array('Pfeil anzeigen', 'Blendet einen Pfeil nach unten ein.'),
108
+      'inputType' => 'checkbox',
109
+      'eval' => array(
110
+        'tl_class' => 'w50',
111
+      ),
112
+    ),
113
+    'arrowAlternate' => array(
114
+      'label' => array('Pfeilfarbe invertieren', 'Invertiert die Pfeilfarbe.'),
115
+      'inputType' => 'checkbox',
116
+      'eval' => array(
117
+        'tl_class' => 'w50',
118
+      ),
119
+    ),
120
+  ),
121
+);