Tabela de Medidas usando fancybox.
array(
'id' => 'website_table_sizes',
'type' => 'gallery',
'title' => 'Tabela de Medidas',
'subtitle' => '',
'desc' => '',
),
<?php
/**
*
* Tabela de Medidas
*
*/
$images = foundation_q_get_option('website_table_sizes');
$images = explode(",", $images); // Transforma a lista de IDs em um array
foreach( $images as $image )
$images_array[] = (int)$image;
$first = true;
foreach ($images_array as $image):
$thumb_url = wp_get_attachment_image_src( $image, 'full', false );
if ( $first ): ?>
<a rel="tabela-de-medidas" href="<?php echo $thumb_url[0]; ?>" class="btn btn-link fancybox">Tabela de Medidas</a>
<?php
$first = false;
else: ?>
<a rel="tabela-de-medidas" href="<?php echo $thumb_url[0]; ?>" class="fancybox"></a>
<?php
endif;
endforeach; ?>