Browse code

[Update] Change templateGroup names from member_ to memberExtension_

Sebastian Zoglowek authored on27/02/2022 17:13:14
Showing10 changed files
... ...
@@ -27,7 +27,7 @@ array_insert($GLOBALS['TL_DCA']['tl_module']['palettes'], 0, [
27 27
 $GLOBALS['TL_DCA']['tl_module']['fields']['memberListTpl'] = [
28 28
     'exclude' => true,
29 29
     'inputType' => 'select',
30
-    'options_callback' => static fn () => Controller::getTemplateGroup('member_list_'),
30
+    'options_callback' => static fn () => Controller::getTemplateGroup('memberExtension_list_'),
31 31
     'eval' => ['includeBlankOption'=>true, 'chosen'=>true, 'tl_class'=>'w50'],
32 32
     'sql' => "varchar(64) NOT NULL default ''"
33 33
 ];
... ...
@@ -35,7 +35,7 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['memberListTpl'] = [
35 35
 $GLOBALS['TL_DCA']['tl_module']['fields']['memberReaderTpl'] = [
36 36
     'exclude' => true,
37 37
     'inputType' => 'select',
38
-    'options_callback' => static fn () => Controller::getTemplateGroup('member_reader_'),
38
+    'options_callback' => static fn () => Controller::getTemplateGroup('memberExtension_reader_'),
39 39
     'eval' => ['includeBlankOption'=>true, 'chosen'=>true, 'tl_class'=>'w50'],
40 40
     'sql' => "varchar(64) NOT NULL default ''"
41 41
 ];
... ...
@@ -35,7 +35,7 @@ class ModuleAvatar extends Module
35 35
      *
36 36
      * @var string
37 37
      */
38
-    protected $strTemplate = 'member_avatar';
38
+    protected $strTemplate = 'memberExtension_avatar';
39 39
 
40 40
     /**
41 41
      * Default avatar file path
... ...
@@ -74,7 +74,7 @@ class ModuleAvatar extends Module
74 74
             return '';
75 75
         }
76 76
 
77
-        $this->strTemplate = $this->memberTpl ?: 'member_avatar';
77
+        $this->strTemplate = $this->memberTpl ?: 'memberExtension_avatar';
78 78
 
79 79
         return parent::generate();
80 80
     }
... ...
@@ -39,7 +39,7 @@ class ModuleMemberList extends ModuleMemberExtension
39 39
 	 * Template
40 40
 	 * @var string
41 41
 	 */
42
-	protected $strMemberTemplate = 'member_list_default';
42
+	protected $strMemberTemplate = 'memberExtension_list_default';
43 43
 
44 44
 	/**
45 45
 	 * Return a wildcard in the back end
... ...
@@ -43,7 +43,7 @@ class ModuleMemberReader extends ModuleMemberExtension
43 43
 	 * Template
44 44
 	 * @var string
45 45
 	 */
46
-	protected $strMemberTemplate = 'member_reader_full';
46
+	protected $strMemberTemplate = 'memberExtension_reader_full';
47 47
 
48 48
 	/**
49 49
 	 * Return a wildcard in the back end
50 50
new file mode 100644
... ...
@@ -0,0 +1,15 @@
1
+<?php $this->extend('block_searchable'); ?>
2
+
3
+<?php $this->block('content'); ?>
4
+
5
+<?php if($this->noAvatar):?>
6
+  <figure class="image_container">
7
+    <img src="<?= $this->singleSRC; ?>" itemprop="image">
8
+  </figure>
9
+<?php else: ?>
10
+  <figure class="image_container">
11
+      <?php $this->insert('picture_default', $this->picture); ?>
12
+  </figure>
13
+<?php endif; ?>
14
+
15
+<?php $this->endblock(); ?>
0 16
new file mode 100644
... ...
@@ -0,0 +1,15 @@
1
+<div class="member_list_default">
2
+    <?php if($this->addImage): ?>
3
+        <figure class="image_container">
4
+          <?php $this->insert('picture_default', $this->picture); ?>
5
+        </figure>
6
+    <?php endif; ?>
7
+    <ul>
8
+        <?php foreach ($this->fields as $field): ?>
9
+            <li><?=$field?></li>
10
+        <?php endforeach; ?>
11
+    </ul>
12
+    <?php if($this->link): ?>
13
+        <a href="<?=$this->link?>"><?=$GLOBALS['TL_LANG']['MSC']['memberDetail']?></a>
14
+    <?php endif; ?>
15
+</div>
0 16
new file mode 100644
... ...
@@ -0,0 +1,12 @@
1
+<div class="member_reader_full">
2
+    <?php if($this->addImage): ?>
3
+        <figure class="image_container">
4
+          <?php $this->insert('picture_default', $this->picture); ?>
5
+        </figure>
6
+    <?php endif; ?>
7
+    <ul>
8
+        <?php foreach ($this->fields as $field): ?>
9
+            <li><?=$field?></li>
10
+        <?php endforeach; ?>
11
+    </ul>
12
+</div>
0 13
deleted file mode 100644
... ...
@@ -1,15 +0,0 @@
1
-<?php $this->extend('block_searchable'); ?>
2
-
3
-<?php $this->block('content'); ?>
4
-
5
-<?php if($this->noAvatar):?>
6
-  <figure class="image_container">
7
-    <img src="<?= $this->singleSRC; ?>" itemprop="image">
8
-  </figure>
9
-<?php else: ?>
10
-  <figure class="image_container">
11
-      <?php $this->insert('picture_default', $this->picture); ?>
12
-  </figure>
13
-<?php endif; ?>
14
-
15
-<?php $this->endblock(); ?>
16 0
deleted file mode 100644
... ...
@@ -1,15 +0,0 @@
1
-<div class="member_list_default">
2
-    <?php if($this->addImage): ?>
3
-        <figure class="image_container">
4
-          <?php $this->insert('picture_default', $this->picture); ?>
5
-        </figure>
6
-    <?php endif; ?>
7
-    <ul>
8
-        <?php foreach ($this->fields as $field): ?>
9
-            <li><?=$field?></li>
10
-        <?php endforeach; ?>
11
-    </ul>
12
-    <?php if($this->link): ?>
13
-        <a href="<?=$this->link?>"><?=$GLOBALS['TL_LANG']['MSC']['memberDetail']?></a>
14
-    <?php endif; ?>
15
-</div>
16 0
deleted file mode 100644
... ...
@@ -1,12 +0,0 @@
1
-<div class="member_reader_full">
2
-    <?php if($this->addImage): ?>
3
-        <figure class="image_container">
4
-          <?php $this->insert('picture_default', $this->picture); ?>
5
-        </figure>
6
-    <?php endif; ?>
7
-    <ul>
8
-        <?php foreach ($this->fields as $field): ?>
9
-            <li><?=$field?></li>
10
-        <?php endforeach; ?>
11
-    </ul>
12
-</div>