Last active
October 30, 2017 13:54
-
-
Save MoisesTedeschi/c4bb8c2b18a99cd327f7a9829c999124 to your computer and use it in GitHub Desktop.
Carrossel de Clientes
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 class='row'><!--Linha--> | |
<div class='col-md-12'><!--Colunas--> | |
<div class="carousel slide media-carousel" id="media"><!--Slide Carossel--> | |
<div class="carousel-inner"><!--Carrossel Inner--> | |
<?php if(have_rows('clientes','option') ): ?> | |
<?php $cont = 1; ?> | |
<?php while (have_rows('clientes','option') ) : ?> | |
<?php if($cont == 1): ?> | |
<?php $classe = 'item active'; ?> | |
<?php else: $classe = 'item'; ?> | |
<?php endif; ?> | |
<div class="<?php echo $classe; ?>"> | |
<!--Linha Exibição--> | |
<div class="row"> | |
<div class="col-md-3"> | |
<?php the_row(); ?> | |
<a href="<?php the_sub_field('url_cliente"> | |
<img src="<?php the_sub_field('logotipo_cliente'); ?>"> | |
</a> | |
</div> | |
</div> | |
<!--Linha Exibição--> | |
</div> | |
<?php $cont = ++$cont; ?> | |
<?php endwhile; ?> | |
<?php else : echo "Não há clientes cadastrados!"; ?> | |
<?php endif; ?> | |
</div><!--Carrossel Inner--> | |
<a data-slide="prev" href="#media" class="left carousel-control">‹</a> | |
<a data-slide="next" href="#media" class="right carousel-control">›</a> | |
</div><!--Slide Carossel--> | |
</div><!--Colunas--> | |
</div><!--Linha--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment