Browse code

Version 1.5 initial commit

Benjamin Roth authored on24/06/2024 12:06:17
Showing1 changed files
... ...
@@ -2,6 +2,8 @@
2 2
 
3 3
 declare(strict_types=1);
4 4
 
5
+use Contao\DC_File;
6
+
5 7
 /*
6 8
  * This file is part of Oveleon ContaoMemberExtension Bundle.
7 9
  *
... ...
@@ -13,9 +15,6 @@ declare(strict_types=1);
13 15
  * @copyright   Oveleon                <https://www.oveleon.de/>
14 16
  */
15 17
 
16
-use Contao\Config;
17
-use Contao\DC_File;
18
-
19 18
 $GLOBALS['TL_DCA']['tl_member_settings'] = [
20 19
 
21 20
     'config' => [
... ...
@@ -23,13 +22,12 @@ $GLOBALS['TL_DCA']['tl_member_settings'] = [
23 22
         'closed' => true
24 23
     ],
25 24
 
26
-    'palettes' => ['default' =>'{avatar_legend},defaultAvatar;'],
25
+    'palettes' => ['default' => '{avatar_legend},defaultAvatar;'],
27 26
 
28 27
     'fields' => [
29 28
         'defaultAvatar' => [
30
-            'label'     => &$GLOBALS['TL_LANG']['tl_member_settings']['defaultAvatar'],
31 29
             'inputType' => 'fileTree',
32
-            'eval'      => ['fieldType'=>'radio', 'filesOnly'=>true, 'isGallery'=>true, 'extensions'=>Config::get('validImageTypes'), 'tl_class'=>'clr']
30
+            'eval' => ['fieldType' => 'radio', 'filesOnly' => true, 'isGallery' => true, 'extensions' => '%contao.image.valid_extensions%', 'tl_class' => 'clr']
33 31
         ]
34 32
     ]
35 33
 ];
Browse code

Add missing use statement

Benjamin Roth authored on14/11/2023 15:38:33
Showing1 changed files
... ...
@@ -14,6 +14,7 @@ declare(strict_types=1);
14 14
  */
15 15
 
16 16
 use Contao\Config;
17
+use Contao\DC_File;
17 18
 
18 19
 $GLOBALS['TL_DCA']['tl_member_settings'] = [
19 20
 
Browse code

Use DC_File::class as DataContainer driver

Benjamin Roth authored on14/11/2023 15:36:04
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ use Contao\Config;
18 18
 $GLOBALS['TL_DCA']['tl_member_settings'] = [
19 19
 
20 20
     'config' => [
21
-        'dataContainer' => 'File',
21
+        'dataContainer' => DC_File::class,
22 22
         'closed' => true
23 23
     ],
24 24
 
Browse code

[Change] Drop contao 4.9 support

Sebastian Zoglowek authored on15/01/2023 16:55:51
Showing1 changed files
... ...
@@ -26,9 +26,9 @@ $GLOBALS['TL_DCA']['tl_member_settings'] = [
26 26
 
27 27
     'fields' => [
28 28
         'defaultAvatar' => [
29
-            'label' => &$GLOBALS['TL_LANG']['tl_member_settings']['defaultAvatar'],
29
+            'label'     => &$GLOBALS['TL_LANG']['tl_member_settings']['defaultAvatar'],
30 30
             'inputType' => 'fileTree',
31
-            'eval' => array('fieldType'=>'radio', 'filesOnly'=>true, 'isGallery'=>true, 'extensions'=>Config::get('validImageTypes'), 'tl_class'=>'clr')
31
+            'eval'      => ['fieldType'=>'radio', 'filesOnly'=>true, 'isGallery'=>true, 'extensions'=>Config::get('validImageTypes'), 'tl_class'=>'clr']
32 32
         ]
33 33
     ]
34 34
 ];
Sebastian Zoglowek authored on14/08/2022 16:26:53
Showing1 changed files
... ...
@@ -17,21 +17,18 @@ use Contao\Config;
17 17
 
18 18
 $GLOBALS['TL_DCA']['tl_member_settings'] = [
19 19
 
20
-	// Config
21
-	'config' => [
22
-		'dataContainer' => 'File',
23
-		'closed' => true
24
-	],
20
+    'config' => [
21
+        'dataContainer' => 'File',
22
+        'closed' => true
23
+    ],
25 24
 
26
-	// Palettes
27
-	'palettes' => ['default' =>'{avatar_legend},defaultAvatar;'],
25
+    'palettes' => ['default' =>'{avatar_legend},defaultAvatar;'],
28 26
 
29
-	// Fields
30
-	'fields' => [
31
-		'defaultAvatar' => [
27
+    'fields' => [
28
+        'defaultAvatar' => [
32 29
             'label' => &$GLOBALS['TL_LANG']['tl_member_settings']['defaultAvatar'],
33 30
             'inputType' => 'fileTree',
34 31
             'eval' => array('fieldType'=>'radio', 'filesOnly'=>true, 'isGallery'=>true, 'extensions'=>Config::get('validImageTypes'), 'tl_class'=>'clr')
35
-		]
36
-	]
32
+        ]
33
+    ]
37 34
 ];
Browse code

Update comments

Sebastian Zoglowek authored on14/08/2022 16:18:52
Showing1 changed files
... ...
@@ -7,10 +7,10 @@ declare(strict_types=1);
7 7
  *
8 8
  * @package     contao-member-extension-bundle
9 9
  * @license     MIT
10
- * @author      Daniele Sciannimanica   <https://github.com/doishub>
11
- * @author      Fabian Ekert            <https://github.com/eki89>
12
- * @author      Sebastian Zoglowek      <https://github.com/zoglo>
13
- * @copyright   Oveleon                 <https://www.oveleon.de/>
10
+ * @author      Sebastian Zoglowek     <https://github.com/zoglo>
11
+ * @author      Daniele Sciannimanica  <https://github.com/doishub>
12
+ * @author      Fabian Ekert           <https://github.com/eki89>
13
+ * @copyright   Oveleon                <https://www.oveleon.de/>
14 14
  */
15 15
 
16 16
 use Contao\Config;
Browse code

Change bundle structure

Sebastian Zoglowek authored on14/08/2022 15:51:15
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,37 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/*
6
+ * This file is part of Oveleon ContaoMemberExtension Bundle.
7
+ *
8
+ * @package     contao-member-extension-bundle
9
+ * @license     MIT
10
+ * @author      Daniele Sciannimanica   <https://github.com/doishub>
11
+ * @author      Fabian Ekert            <https://github.com/eki89>
12
+ * @author      Sebastian Zoglowek      <https://github.com/zoglo>
13
+ * @copyright   Oveleon                 <https://www.oveleon.de/>
14
+ */
15
+
16
+use Contao\Config;
17
+
18
+$GLOBALS['TL_DCA']['tl_member_settings'] = [
19
+
20
+	// Config
21
+	'config' => [
22
+		'dataContainer' => 'File',
23
+		'closed' => true
24
+	],
25
+
26
+	// Palettes
27
+	'palettes' => ['default' =>'{avatar_legend},defaultAvatar;'],
28
+
29
+	// Fields
30
+	'fields' => [
31
+		'defaultAvatar' => [
32
+            'label' => &$GLOBALS['TL_LANG']['tl_member_settings']['defaultAvatar'],
33
+            'inputType' => 'fileTree',
34
+            'eval' => array('fieldType'=>'radio', 'filesOnly'=>true, 'isGallery'=>true, 'extensions'=>Config::get('validImageTypes'), 'tl_class'=>'clr')
35
+		]
36
+	]
37
+];