Zitat von mv_alex
Beitrag anzeigen
like so - im Template mod_imageslider:
<?php
// Add imageslider js to head
$GLOBALS['TL_JAVASCRIPT'][] = 'plugins/imageslider/class.viewer.js';
?>
<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; ?>
<div class="mask<?php echo $this->id; ?>">
<div id="elements<?php echo $this->id; ?>">
<?php $i = true; ?>
<?php foreach ($this->elements as $element): ?>
<?php if ($element['url']): ?><a <?php if ($element['url_fullsize']): ?> rel="lightbox[<?php echo $this->id; ?>]" data-lightbox="<?php echo $this->id; ?>"<?php endif; ?> href="<?php echo $element['url_link']; ?>"<?php if ($element['url_title']): ?> title="<?php echo $element['url_title']; ?>"<?php endif; ?><?php if ($element['url_window']): ?> onclick="this.blur(); window.open(this.href); return false;"<?php endif; ?>><?php endif; ?>
<img <?php if($i == false): ?>style="display:none;" <?php endif; ?> src="<?php echo $element['src']; ?>" alt="<?php echo $element['alt']; ?>" /><?php if ($element['url']): ?></a><?php endif; ?>
<?php $i = false; ?>
<?php endforeach; ?>
</div>
</div>
<?php if ($this->controls): ?>
<p class="buttons">
<span id="<?php echo $this->control['id']['first']; echo $this->id; ?>"><?php echo $this->control['label']['first']; ?></span>
<span id="<?php echo $this->control['id']['last']; echo $this->id; ?>"><?php echo $this->control['label']['last']; ?></span>
</p>
<?php endif; ?>
</div>
Gruß,
Anke


Kommentar