?> </a></p> </div> <?php } ?> </table> </div> </div> <div class="section"> <div class="title text-center"> <h4>INTERNATIONAL DISTRIBUTORS</h4> </div> <div class="container-fluid"> <?php foreach (distributorsByType('international') as $distributor) { ?> <div class="col text-center international"> <p class="country"> <strong><?php echo distributorCountry($distributor->ID); ?> </strong> </p> <p><strong><?php echo $distributor->post_title; ?> </strong></p> <p><?php echo distributorAddress($distributor->ID); ?>
function distributorRowEnd($counter, $type) { if ($counter % 5 == 4) { echo '</tr>'; } else { if (count(distributorsByType($type)) == $counter - 1) { echo '</tr>'; } } }