Last active
January 1, 2016 00:49
-
-
Save markocupic/8069031 to your computer and use it in GitHub Desktop.
Template for the gallery content element. Enables the use of the content slider.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Content Slider Start --> | |
<div class="ce_sliderStart"> | |
<div class="content-slider" data-config="0,300,0,"> | |
<div class="slider-wrapper"> | |
<!-- images --> | |
<?php foreach ($this->body as $class=>$row): ?> | |
<?php foreach ($row as $col): ?> | |
<?php if ($col->addImage): ?> | |
<div> | |
<figure class="image_container"<?php if ($col->margin): ?> style="<?php echo $col->margin; ?>"<?php endif; ?>> | |
<?php if ($col->href): ?> | |
<a href="<?php echo $col->href; ?>"<?php echo $col->attributes; ?> title="<?php echo $col->alt; ?>"><img src="<?php echo $col->src; ?>"<?php echo $col->imgSize; ?> alt="<?php echo $col->alt; ?>"></a> | |
<?php else: ?> | |
<img src="<?php echo $col->src; ?>"<?php echo $col->imgSize; ?> alt="<?php echo $col->alt; ?>"> | |
<?php endif; ?> | |
<?php if ($col->caption): ?> | |
<figcaption class="caption" style="width:<?php echo $col->arrSize[0]; ?>px"><?php echo $col->caption; ?></figcaption> | |
<?php endif; ?> | |
</figure> | |
</div> | |
<?php endif; ?> | |
<?php endforeach; ?> | |
<?php endforeach; ?> | |
<!-- end images --> | |
<!-- Content Slider Stop --> | |
</div> | |
</div> | |
<nav class="slider-control"> | |
<a href="#" class="slider-prev"><?php echo $GLOBALS['TL_LANG']['MSC']['previous']; ?></a> | |
<span class="slider-menu"></span> | |
<a href="#" class="slider-next"><?php echo $GLOBALS['TL_LANG']['MSC']['next']; ?></a> | |
</nav> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment