<?php if ($this->showTags): ?>

<?php if (count($this->tags)): ?>
<ul class="tag-chain">
<?php $counter = 0; foreach ($this->tags as $tag): ?>
<li class="tag-chain-item<?php if ($counter == 0) echo ' first'; ?><?php if ($counter == count($this->tags)-1) echo ' last'; ?>"><?php echo $tag; ?></li>
<?php $counter++; endforeach; ?>
</ul>
<?php endif; ?>
<?php endif; ?>
