home.php 1.13 KB
Newer Older
Liang Wu's avatar
Liang Wu committed
1 2 3 4
<?php
require_once('template_header.php');
require_once('template_menu.php');

Liang Wu's avatar
Liang Wu committed
5
$currentPageId='accueil';
Liang Wu's avatar
Liang Wu committed
6 7 8 9 10 11 12 13 14 15 16 17
if(isset($_GET['page'])){
    $currentPageId=$_GET['page'];
}
?>

        <!-- <header>
            <h1 class="titre"><?php echo $mymenu[$currentPageId][0] ?> </h1>
            <img src=<?php $currentPageId.".png" ?> alt="" height="90px" width="150px"/>
        </header> -->
        <header class="masthead bg-primary text-white text-center">
            <div class="container d-flex align-items-center flex-column">

Raulin's avatar
Raulin committed
18
          
Liang Wu's avatar
Liang Wu committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


            <!-- Masthead Subheading -->
            <p class="masthead-subheading font-weight-light mb-0"> <div class="contenu">
                <?php
                    $pageToInclude = $currentPageId . ".php";
                    if(is_readable($pageToInclude))
                        require_once($pageToInclude);
                    else
                        require_once("error.php");
                ?>
                    
            </div></p>

            </div>
        </header>
Liang Wu's avatar
Liang Wu committed
35

Liang Wu's avatar
Liang Wu committed
36 37 38
        <?php
                renderMenuToHTML($currentPageId);
        ?>
Liang Wu's avatar
Liang Wu committed
39

Liang Wu's avatar
Liang Wu committed
40 41 42
<?php
    require_once('template_footer.php');
?>