Core-Galerie - cssSlider aus Core-Galerie
Hallo zusammen,
ich möchte gerne einen cssSlider aus der Standard Galerie generieren. Hierzu benötige ich pro Bild ein Input-Feld mit einem "Zähler".
HTML-Code:
<ul class="slideList">
<?php foreach ($this->body as $class=>$row): ?>
<?php $i = 0; foreach ($row as $col): $i++; ?> <-- Hier soll gezählt werden
<?php foreach ($row as $col): ?>
<?php if ($col->addImage): ?>
<li class="slide slide<? $i; ?> <?= $class ?> <?= $col->class ?>"> <-- Das Ergebnis soll hier eingefügt werden.
<figure class="image_container"<?php if ($col->margin): ?> style="<?= $col->margin ?>"<?php endif; ?>>
<?php if ($col->href): ?>
<a href="<?= $col->href ?>"<?= $col->attributes ?> title="<?= $col->alt ?>"><?php $this->insert('picture_default', $col->picture); ?></a>
<?php else: ?>
<?php $this->insert('picture_default', $col->picture); ?>
<?php endif; ?>
<?php if ($col->caption): ?>
<figcaption class="caption"><?= $col->caption ?></figcaption>
<?php endif; ?>
</figure>
</li>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>
</ul>
Leider bekomme ich so immer einen Parse Error...
Ich benötige bitte mal einen Tipp, wie ich hier weiter kommen kann...
LG
Frank