Browse code

Fix HTML structure in template

Benjamin Roth authored on28/01/2016 11:51:55
Showing1 changed files
... ...
@@ -2,17 +2,14 @@
2 2
 
3 3
 <?php $this->block('content'); ?>
4 4
 
5
+<?php foreach($this->pictures as $picturedata): ?>
5 6
   <figure class="image_container">
6
-
7
-    <?php foreach($this->pictures as $picturedata): ?>
8
-      <?php $this->insert('eSM_pageimage_picture_default', $picturedata->picture); ?>
9
-    <?php endforeach; ?>
10
-
7
+    <?php $this->insert('eSM_pageimage_picture_default', $picturedata->picture); ?>
11 8
     <?php if ($this->caption): ?>
12 9
       <figcaption class="caption"><?= $this->caption ?></figcaption>
13 10
     <?php endif; ?>
14
-
15 11
   </figure>
12
+<?php endforeach; ?>
16 13
 
17 14
 <?php $this->endblock(); ?>
18 15