adding flight data to the front page of the site
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 25 Jan 2017 13:06:43 +0000 (08:06 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 25 Jan 2017 13:06:43 +0000 (08:06 -0500)
front-page.php

index beb6e40..1606679 100644 (file)
@@ -1,5 +1,5 @@
 <?php 
-//include 'class_flight.php';
+include 'class_flight.php';
 get_header(); 
 //global $wpdb;
 
@@ -14,13 +14,14 @@ get_header();
         </div>
         <?php
 //        glm_flight::get_flight_data();
-//        $flight = new glm_flight();
-//        $flight->get_flight_data();
+        $flight = new glm_flight();
+        $flight->get_flight_data();
          ?>
-<!--        <div id="arrival" class="row">
+        <div id="arrival" class="row">
             <div class="small-12 columns">
                 <h1>Arrivals:</h1>
-                <?php //echo $flight->build_arrivals(); ?>
+                <?php echo $flight->build_arrivals(); ?>
+<!--
                 <table class="footable arrival">
                     <thead>
                         <tr>
@@ -43,12 +44,14 @@ get_header();
                             <td><nobr>On Time</nobr></td>
                         </tr>
                 </table>
+-->
             </div>
         </div>
         <div id="depart" class="row">
             <div class="small-12 columns">
                 <h1>Departures:</h1>
-                <?php //echo $flight->build_departures(); ?>
+                <?php echo $flight->build_departures(); ?>
+<!--
                 <table class="footable departure">
                     <thead>
                         <tr>
@@ -65,9 +68,10 @@ get_header();
                             <td><nobr>Departed</nobr></td>
                       </tr>
                 </table>
-                <?php //echo $flight->last_updated; ?>
+-->
+                <?php echo $flight->last_updated; ?>
             </div>
-        </div>  -->
+        </div>  
         <div class="row">
             <div class="small-12 large-6 columns right">
                 <div class="row">