Sorry, ich glaube so ist es besser mit dem Code.
Code:
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<?php if($this->message): ?>
<p class="<?php echo $this->type; ?> message"><?php echo $this->message; ?></p>
<?php endif; ?>
<?php if(!empty($this->products)): ?>
<div class="product_list">
<div class=""> // das ist die Kategorie (foreach Kategorie)
<h2>Seitenname</h2>
<?php foreach ($this->products as $product): ?> // das sind die dazugehörigen Produkte
<div<?php echo $product['cssID']; ?> class="<?php echo $product['class']; ?>">
<?php echo $product['html']; ?>
</div>
<?php endforeach; ?>
</div>
</div>
<?php echo $this->pagination; ?>
<?php endif; ?>
</div>
Lesezeichen