Browse code

Change bundle structure

Sebastian Zoglowek authored on14/08/2022 15:51:15
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,37 +0,0 @@
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
-];
Browse code

Fix potential PHP8 errors

Sebastian Zoglowek authored on14/08/2022 15:19:39
Showing1 changed files
... ...
@@ -12,6 +12,9 @@ declare(strict_types=1);
12 12
  * @author      Sebastian Zoglowek      <https://github.com/zoglo>
13 13
  * @copyright   Oveleon                 <https://www.oveleon.de/>
14 14
  */
15
+
16
+use Contao\Config;
17
+
15 18
 $GLOBALS['TL_DCA']['tl_member_settings'] = [
16 19
 
17 20
 	// Config
Browse code

[Update] Changed DCA structure

Sebastian Zoglowek authored on26/02/2022 03:04:48
Showing1 changed files
... ...
@@ -1,35 +1,34 @@
1 1
 <?php
2 2
 
3
+declare(strict_types=1);
4
+
3 5
 /*
4 6
  * This file is part of Oveleon ContaoMemberExtension Bundle.
5 7
  *
6
- * (c) https://www.oveleon.de/
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/>
7 14
  */
8
-
9
-$GLOBALS['TL_DCA']['tl_member_settings'] = array
10
-(
15
+$GLOBALS['TL_DCA']['tl_member_settings'] = [
11 16
 
12 17
 	// Config
13
-	'config' => array
14
-	(
15
-		'dataContainer'               => 'File',
16
-		'closed'                      => true
17
-	),
18
+	'config' => [
19
+		'dataContainer' => 'File',
20
+		'closed' => true
21
+	],
18 22
 
19 23
 	// Palettes
20
-	'palettes' => array
21
-	(
22
-		'default'                     => '{avatar_legend},defaultAvatar;'
23
-	),
24
+	'palettes' => ['default' =>'{avatar_legend},defaultAvatar;'],
24 25
 
25 26
 	// Fields
26
-	'fields' => array
27
-	(
28
-		'defaultAvatar' => array
29
-		(
30
-            'label'                   => &$GLOBALS['TL_LANG']['tl_member_settings']['defaultAvatar'],
31
-            'inputType'               => 'fileTree',
32
-            'eval'                    => array('fieldType'=>'radio', 'filesOnly'=>true, 'isGallery'=>true, 'extensions'=>Config::get('validImageTypes'), 'tl_class'=>'clr')
33
-		)
34
-	)
35
-);
27
+	'fields' => [
28
+		'defaultAvatar' => [
29
+            'label' => &$GLOBALS['TL_LANG']['tl_member_settings']['defaultAvatar'],
30
+            'inputType' => 'fileTree',
31
+            'eval' => array('fieldType'=>'radio', 'filesOnly'=>true, 'isGallery'=>true, 'extensions'=>Config::get('validImageTypes'), 'tl_class'=>'clr')
32
+		]
33
+	]
34
+];
Browse code

Initial commit: Frontend module member avatar added

oveleon authored on08/03/2019 16:40:16
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,35 @@
1
+<?php
2
+
3
+/*
4
+ * This file is part of Oveleon ContaoMemberExtension Bundle.
5
+ *
6
+ * (c) https://www.oveleon.de/
7
+ */
8
+
9
+$GLOBALS['TL_DCA']['tl_member_settings'] = array
10
+(
11
+
12
+	// Config
13
+	'config' => array
14
+	(
15
+		'dataContainer'               => 'File',
16
+		'closed'                      => true
17
+	),
18
+
19
+	// Palettes
20
+	'palettes' => array
21
+	(
22
+		'default'                     => '{avatar_legend},defaultAvatar;'
23
+	),
24
+
25
+	// Fields
26
+	'fields' => array
27
+	(
28
+		'defaultAvatar' => array
29
+		(
30
+            'label'                   => &$GLOBALS['TL_LANG']['tl_member_settings']['defaultAvatar'],
31
+            'inputType'               => 'fileTree',
32
+            'eval'                    => array('fieldType'=>'radio', 'filesOnly'=>true, 'isGallery'=>true, 'extensions'=>Config::get('validImageTypes'), 'tl_class'=>'clr')
33
+		)
34
+	)
35
+);