<div class="col-sm-5 col-sm-offset-1 text-left"> <h5>INTERNATIONAL LOCATIONS</h5> <input type="text" id="country-code-lookup" placeholder="Country Code"> </div> </div> </div> </div> </div> <div id="map-canvas" class="hidden-xs"></div> <div class="section"> <div class="container-fluid"> <?php $counter = 0; ?> <?php $fitters = pfcFitters(); ?> <?php foreach ($fitters as $fitter) { ?> <div class="col" id="<?php echo $fitter->ID; ?> " data-zip-code="<?php echo pfcZip($fitter->ID); ?> " data-country="<?php echo pfcCountry($fitter->ID); ?> "> <p>
<?php require '../../../../wp-blog-header.php'; $fitters = array(); foreach (pfcFitters() as $fitter) { $coordinates = pfcCoordinates($fitter->ID); if (!empty($coordinates)) { array_push($fitters, array('latLong' => pfcCoordinates($fitter->ID), 'address' => pfcAddress($fitter->ID), 'title' => $fitter->post_title, 'name' => pfcFittersName($fitter->ID), 'city_state_zip' => pfcCityStateZip($fitter->ID), 'phone_number' => pfcPhoneNumber($fitter->ID), 'id' => $fitter->ID)); } } echo json_encode($fitters);