function firstVisibleMediaDiv()
{
    if (count(shaftPhotos()) > 0) {
        return 'photos';
    }
    if (count(shaftVideos()) > 0) {
        return 'videos';
    }
    if (count(shaftTourWins()) > 0) {
        return 'tour';
    }
    if (count(getShaftPressItems()) > 0) {
        return 'press';
    }
}
                  <?php 
        $count++;
        ?>
                <?php 
    }
    ?>
                </h3>
                <table class="table table-responsive" id="tours">
                  <thead>
                    <th>TOURNAMENT</th>
                    <th>IRONS</th>
                    <th>WEDGES</th>
                  </thead>
                  <tbody>
                    <?php 
    foreach (shaftTourWins() as $tourWin) {
        ?>
                      <tr class="<?php 
        if (strtolower($arr[0]->name) != strtolower(str_replace('.', '_', tourName($tourWin->ID)))) {
            echo 'hidden';
        }
        ?>
 <?php 
        echo strtolower(str_replace('.', '_', tourName($tourWin->ID)));
        ?>
">
                        <td><?php 
        echo $tourWin->post_title;
        ?>
</td>
                        <td><?php