1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
PHP_TP3/views/v_menu.php
2020-10-16 09:55:16 +02:00

34 lines
840 B
PHP

<?php
/*
* TP PHP
* Vue menu
*
* Copyright 2016, Eric Dufour
* http://techfacile.fr
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*
* menu: http://www.w3schools.com/bootstrap/bootstrap_ref_comp_navs.asp
*/
?>
<!-- Menu du site -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li <?php echo ($page=='accueil' ? 'class="active"':'')?>>
<a href="index.php">
<?= MENU_ACCUEIL ?>
</a>
</li>
<?php if (!isset($user) or !$user) { ?>
<li >
<a href="index.php?page=register">
<?= MENU_REGISTER ?>
</a>
</li>
<?php } ?>
</ul>
</div>
</nav>