Created
November 8, 2017 21:00
-
-
Save MoisesTedeschi/6be493fac81b0908ecc98510e8798fce to your computer and use it in GitHub Desktop.
carrossel
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
<!--A ASCOFERJ - Sócios Honorários --> | |
<section> | |
<div class="container-fluid"> | |
<div class="container container_section"> | |
<div class="row"> | |
<div class="col-xs-12 col-md-offset-1 col-md-10"> | |
<h2>Sócios <span class="font_title_strong">Honorários</span></h2> | |
<hr class="separador-azul" /> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-xs-12 col-md-12"> | |
<div class="container"> | |
<!--Carossel--> | |
<div class="carousel slide media-carousel" id="media"> | |
<!--Carrossel Motor--> | |
<div class="carousel-inner"> | |
<?php $rows = get_field('cadastro_socio_honorario','option'); | |
$total_rows = count($rows); ?> | |
<?php | |
$cont = 1; | |
if($rows){ | |
if($cont == 1): | |
$classe = 'item active'; | |
else: | |
$classe = 'item'; | |
endif; | |
?> | |
<div class="<?php echo $classe; ?>"> | |
<?php | |
foreach($rows as $row){ | |
echo'<div class="col-md-3"> | |
<a href="' . $row['url_do_socio_honorario'] . '"><img src="' . $row['logotipo'] .'"> | |
</a> | |
</div>'; | |
if($cont % 4 == 0){ | |
echo '</div>'; | |
if($cont < $total_rows){ | |
echo '<div class="item">'; | |
} | |
} | |
$cont++; | |
} | |
?> | |
</div> | |
<?php | |
//endwhile; | |
//$cont = ++$cont; | |
?> | |
<?php } ?> | |
</div> | |
<!--Carrossel Motor--> | |
<!--Controlador - Prev e Next--> | |
<a data-slide="prev" href="#media" class="left carousel-control">‹</a> | |
<a data-slide="next" href="#media" class="right carousel-control">›</a> | |
<!--Controlador - Prev e Next--> | |
</div> | |
<!--Carossel--> | |
</div> | |
</div> | |
</div> | |
</div><!--Container Section--> | |
</div><!--Container Fluid--> | |
</section> | |
<!--A ASCOFERJ - Sócios Honorários --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment