Browse code

Change bundle structure

Sebastian Zoglowek authored on14/08/2022 15:51:15
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,16 +0,0 @@
1
-<div class="member_list_default">
2
-
3
-  <?php if($this->addImage): ?>
4
-    <?php $this->insert('memberExtension_image', $this->arrData); ?>
5
-  <?php endif; ?>
6
-
7
-  <ul>
8
-    <?php foreach ($this->fields as $k => $v): ?>
9
-      <li class="<?= $k ?>"><?= $v ?></li>
10
-    <?php endforeach; ?>
11
-  </ul>
12
-
13
-  <?php if($this->link): ?>
14
-    <a href="<?=$this->link?>"><?=$GLOBALS['TL_LANG']['MSC']['memberDetail']?></a>
15
-  <?php endif; ?>
16
-</div>
Browse code

[Hotfix] Do not parse image template when not checked in memberlist and reader

Sebastian Zoglowek authored on25/05/2022 16:56:24
Showing1 changed files
... ...
@@ -1,11 +1,15 @@
1 1
 <div class="member_list_default">
2
-  <?php $this->insert('memberExtension_image', $this->arrData); ?>
2
+
3
+  <?php if($this->addImage): ?>
4
+    <?php $this->insert('memberExtension_image', $this->arrData); ?>
5
+  <?php endif; ?>
3 6
 
4 7
   <ul>
5 8
     <?php foreach ($this->fields as $k => $v): ?>
6 9
       <li class="<?= $k ?>"><?= $v ?></li>
7 10
     <?php endforeach; ?>
8 11
   </ul>
12
+
9 13
   <?php if($this->link): ?>
10 14
     <a href="<?=$this->link?>"><?=$GLOBALS['TL_LANG']['MSC']['memberDetail']?></a>
11 15
   <?php endif; ?>
Browse code

[Update] Refactoring and simplifying member templates

Sebastian Zoglowek authored on24/05/2022 01:40:07
Showing1 changed files
... ...
@@ -1,15 +1,12 @@
1 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 $k => $v): ?>
9
-            <li class="<?= $k ?>"><?= $v ?></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; ?>
2
+  <?php $this->insert('memberExtension_image', $this->arrData); ?>
3
+
4
+  <ul>
5
+    <?php foreach ($this->fields as $k => $v): ?>
6
+      <li class="<?= $k ?>"><?= $v ?></li>
7
+    <?php endforeach; ?>
8
+  </ul>
9
+  <?php if($this->link): ?>
10
+    <a href="<?=$this->link?>"><?=$GLOBALS['TL_LANG']['MSC']['memberDetail']?></a>
11
+  <?php endif; ?>
15 12
 </div>
Browse code

[Update] Add classes for member fields to templates

Sebastian Zoglowek authored on23/05/2022 22:50:21
Showing1 changed files
... ...
@@ -5,8 +5,8 @@
5 5
         </figure>
6 6
     <?php endif; ?>
7 7
     <ul>
8
-        <?php foreach ($this->fields as $field): ?>
9
-            <li><?=$field?></li>
8
+        <?php foreach ($this->fields as $k => $v): ?>
9
+            <li class="<?= $k ?>"><?= $v ?></li>
10 10
         <?php endforeach; ?>
11 11
     </ul>
12 12
     <?php if($this->link): ?>
Browse code

[Update] Change templateGroup names from member_ to memberExtension_

Sebastian Zoglowek authored on27/02/2022 17:13:14
Showing1 changed files
1 1
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>