<div class="content-header">
    <div class="header-section">
        <h1>
        <i class="fa fa-bell-o" aria-hidden="true"></i><strong>Airline Timeline </strong><br><small> Public Relations  | <?php echo SITE_NAME?> &copy; <?php echo date("Y"); ?> </small> 
        </h1>
    </div>
</div>
<ol class="breadcrumb breadcrumb-top">
  <li><a href="<?php echo STIE_URL?>/index.php"><i class="fa fa-home"></i></a></li>
  <li>Airline Timeline</li>
</ol>
<div class="row">

	<div class="col-md-6">
		<div class="block">
			<div class="block-title">
				<h3>About</h3>
			</div>
			<div class="clearfix">
			<blockquote class="pull-left">
				<p>Welcome to <?php echo SITE_NAME; ?>,  <br><br>
					<?php echo SITE_NAME; ?> is an airline founded by young enthusiast pilots willing to provide a fun yet professional environment for all those aviators out there.
          We aim not only to follow real world procedures, but to deliver a place where pilots can test out and improve their knowledge as well as fly with many other young Aviators.
So pilots get in your uniforms and prepare for a fun filled trip!
			 
				<br><br>
			</p><small> <cite title="Source Title">Sincerely,<br> <?php echo SITE_NAME; ?> Staff</cite></small>
			</blockquote>
		</div>
		</div>
	</div>
	<div class="col-md-6">
		<div class="block">
			<div class="block-title">
				<h3><strong>Time</strong>line</h3>
			</div>
			
			<div class="widget">
				<div class="widget-extra">
					<div class="timeline">
						<ul class="timeline-list">
							
						<?php 
							if(!$events) {
								echo '<div class="alert alert-danger">The Airline Timeline for '.SITE_NAME.' is under construction, try again later.</div>'; 
							}
							else {
								
								foreach($events as $event) {
									?>
									<li class="active">
										<div class="timeline-icon"><i class="fa fa-clock-o"></i></div>
										<div class="timeline-time"><small><?php $timestamp = strtotime($event->date); echo date(DATE_FORMAT, $timestamp); ?></small></div>
											<div class="timeline-content">
												<p class="push-bit"><?php echo $event->name; ?> </p>
											</div> 
									</li>
									<?php
								}
								
							}
							?>
							<li class="active">
										<div class="timeline-icon"><i class="fa fa-clock-o"></i></div>
										<div class="timeline-time"><small>The Future</small></div>
											<div class="timeline-content">
												<p class="push-bit">
													Be a part of our Story! <em><span class="text-muted">#<?php echo VA_HASHTAG; ?></span></em>
												</p>
											</div> 
									</li>
						</ul>
					</div>     
 				</div>
  			</div>
		</div>	
	</div>
</div>