Hallo nochmal, ich habe mir das Template mal näher angeschaut und habe so meine Hürden den Link um das Bild zu platzieren. Vielleicht kann mir einer von euch unter die Arme greifen, das wäre super.
PHP-Code:
<?php
?>
<ul class="<?php echo $this->level; ?>">
<?php foreach ($this->items as $item): ?>
<?php if ($item['isActive']): ?>
<li class="active<?php if ($item['class']): ?> <?php echo $item['class']; ?><?php endif; ?>"><?php if(!empty($item['navigationImage'])): ?><img src="<?php echo $this->getImage(\FilesModel::findByPk($item['navigationImage'])->path, 100, 100, 'crop') ?>" alt=""><?php endif ?><span class="active<?php if ($item['class']): ?><?php echo $item['class']; ?><?php endif; ?>"><?php echo $item['link']; ?></span><?php echo $item['subitems']; ?></li>
<?php else: ?>
<li<?php if ($item['class']): ?> class="<?php echo $item['class']; ?>"<?php endif; ?>><?php if(!empty($item['navigationImage'])): ?><img src="<?php echo $this->getImage(\FilesModel::findByPk($item['navigationImage'])->path, 100, 100, 'crop') ?>" alt=""><?php endif ?><a href="<?php echo $item['href']; ?>" title="<?php echo $item['pageTitle'] ? $item['pageTitle'] : $item['title']; ?>"<?php if ($item['class']): ?> class="<?php echo $item['class']; ?>"<?php endif; ?><?php if ($item['accesskey'] != ''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?><?php if ($item['tabindex']): ?> tabindex="<?php echo $item['tabindex']; ?>"<?php endif; ?><?php if ($item['nofollow']): ?> rel="nofollow"<?php endif; ?><?php echo $item['target']; ?>><?php echo $item['link']; ?></a><?php echo $item['subitems']; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
Vielen Dank und Grüße,
operatorone
Lesezeichen