wefra/themes/materialize/views/home.php

33 lines
738 B
PHP

<?php
if(isset($_SESSION['user'])) { ?>
<div class="container">
<div class="section">
<div class="row">
<div class="col s12">
<div class="card z-depth-5">
<div class="card-content">
<p><?php echo "Welcome ".$_SESSION['user']['email']; ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } else { ?>
<div class="container">
<div class="section">
<div class="row">
<div class="col s12">
<div class="card z-depth-5">
<div class="card-content">
<p>"Welcome to the public home page</p>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>