</div>
    </div>
    <div class="section">
      <div class="title text-center">
        <h4 class="text-uppercase">True Temper Affiliates</h4>
      </div>
      <div class="container-fluid">
        <?php 
foreach (affiliates() as $affiliate) {
    ?>
            <div class="col text-center distr-aff">
              <?php 
    $i = 0;
    ?>
              <?php 
    foreach (affiliateLines($affiliate->ID) as $line) {
        ?>
                <p class="line-<?php 
        echo $i;
        ?>
"><?php 
        echo $line;
        ?>
</p>
                <?php 
        if ($i == 0) {
            ?>
                  <p><strong><?php 
            echo $affiliate->post_title;
            ?>
</strong></p>
<?php

require '../../../../wp-blog-header.php';
$afiliates = array();
foreach (affiliates() as $affiliate) {
    $coordinates = affiliateCoordinates($affiliate->ID);
    if (!empty($coordinates)) {
        array_push($afiliates, array('latLong' => affiliateCoordinates($affiliate->ID), 'lines' => affiliateLines($affiliate->ID), 'title' => $affiliate->post_title, 'id' => $affiliate->ID));
    }
}
echo json_encode($afiliates);