Moin,
so sieht mein Template aus.
Und jeder Filter innerhalb dieses Modules bekommt dann automatisch die gleiche Struktur.
Wenn ich jetzt für das Frontend filter anlege z.b. Farbe, Größe, Hersteller bekommt jeder die gleiche Struktur und die gleichen css klassen die unten angelegt sind.
PHP-Code:
<nav class="<?php echo $this->class; ?> filter_cumulativ 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; ?>
<ul class="level_1">
<?php foreach ($this->filters as $item): ?>
<div class="accordeon_box">
<h3 class="accordeon-headline"><?php echo $item['label']; ?></a></h3>
<div class="accordeon-inhalt">
<?php echo $item['subitems']; ?>
</div>
</div>
<?php endforeach; ?>
</ul>
<?php if($this->showClear): ?>
<p class="clearall"><a href="<?php echo $this->linkClearAll; ?>"><?php echo $this->labelClearAll; ?></a></p>
<?php endif; ?>
</nav>
Lesezeichen