Created
August 20, 2012 12:36
-
-
Save boonkerz/3403716 to your computer and use it in GitHub Desktop.
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
<div id="wrapper-product-group" class="container hidden-phone"> | |
<!-- CAROUSEL container--> | |
<!-- CAROUSEL Productgroups --> | |
<?php $articlegroups = $this->Article()->getArticleGroups(); | |
$i = 1; | |
$anzahl = count($articlegroups); | |
?> | |
<?php if(count($articlegroups)): ?> | |
<div id="myCarousel" class="carousel slide"> | |
<!-- Carousel items --> | |
<div class="carousel-inner"> | |
<div class="active item"> | |
<span> | |
<ul class="thumbnails"> | |
<?php foreach ( $articlegroups as $articlegroup ) : ?> | |
<li class="span2"> | |
<div class="thumbnail product-group-box"> | |
<div class="groupbox"> | |
<div class="groupboximg"> | |
<a title="<?= $this->translate('product_detail') ?>" href="<?php echo $this->url(array('id' => $articlegroup->url), 'overview'); ?>"><?php echo $this->image()->thumbnailImage($articlegroup->title, 'articlegroup', $articlegroup->image); ?></a> | |
</div> | |
<div class="groupboxtext"> | |
<div class="boxTitle"> | |
<a title="<?= $this->translate('product_detail') ?>" href="<?php echo $this->url(array('id' => $articlegroup->url), 'overview'); ?>"> | |
<?php echo $this->Text()->truncate_text($this->escape($articlegroup->title),40); ?></a> | |
</div> | |
</div> | |
</div> | |
</div> | |
</li> | |
<?php if($i < $anzahl): ?><!--checkt ob dies nicht das letzte Bild ist--> | |
<?php if($i % 6 == 0): ?> <!--checkt ob dies nr 6 ist--> | |
</ul></span></div> <div class="item"><span><ul class="thumbnails"> | |
<?php endif; ?> | |
<?php endif; ?> | |
<?php $i++;endforeach; ?> | |
</ul> | |
</span> | |
</div> | |
</div> | |
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a> | |
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a> | |
</div> | |
<?php endif; ?> | |
<!-- /CAROUSEL Productgroups --> | |
</div><!-- carousel container--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment