<?php $this->xinclude('partials/header'); ?>

<div class="home-wrapper">

<ul class="nav nav-pills nav-justified">
    <li class="active"><a data-toggle="pill" href="#pastelinks">Paste Links</a></li>
    <li><a data-toggle="pill" href="#fileupload">File Upload</a></li>
    <li><a data-toggle="pill" href="#remoteupload">Remote Upload</a></li>
</ul>

<?php if(System\Session::exists('error')): ?>
<div class="home-error-wrap">
  <div class="alert btn-danger">
    <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
    <i class="fa fa-exclamation-triangle" aria-hidden="true"></i>&nbsp;&nbsp;<?php echo System\Session::flash('error'); ?>
  </div>
</div>
<?php endif; ?>

<?php 

// Only allow for logged in user
if($this->isLoggedIn) $this->xinclude('partials/uploader');
else $this->xinclude('partials/restricted');

?>

</div>

<?php $this->xinclude('partials/footer'); ?>
