Hallo,
ich habe auch gerade Isotope in das Tao-Theme integriert.
Hier ist das funktionierende Template für die Produktliste in Verwendung mit rocksolid-columns:
mod_iso_productlist.html5
Code:
<?php $this->extend('block_searchable'); ?>
<?php $this->block('content'); ?>
<?php if($this->message): ?>
<p class="<?= $this->type ?> message"><?= $this->message ?></p>
<?php endif; ?>
<?php if(!empty($this->products)): ?>
<div class="product_list">
<?php $count = ''; ?>
<?php foreach ($this->products as $product): ?>
<?php $count++; ?>
<?php
$config = array(
'large' => array('-large-col-3-1 -large-first', '-large-col-3-1', '-large-col-3-1 -large-last'),
'medium' => array('-medium-col-2-1 -medium-first', '-medium-col-2-1 -medium-last'),
'small' => array('-small-col-1-1 -small-first -small-last'),
);
$classes = array('rs-column');
foreach ($config as $name => $media) {
$classes[] = $media[($count - 1) % count($media)];
if ($count - 1 < count($media)) {
$classes[] = '-' . $name . '-first-row';
}
}
$colClass .= ' ' . implode(' ', $classes);
?>
<div <?= $product['cssID'] ?> class="<?= $product['class'] ?>,<?php echo $colClass; ?>">
<?= $product['html'] ?>
</div>
<?php $colClass = ''; ?>
<?php endforeach; ?>
</div>
<?= $this->pagination ?>
<?php endif; ?>
<?php $this->endblock(); ?>