<?php
    /*
    *
    * copyright (c) 2013-2021 Heliac Technologies
    * license http://opensource.org/licenses/gpl-license.php GNU GPL v3 
    *
    * linee guida per l'utilizzo del logo http://www.geecom.org/index.php?alias=linee-guida-per-luso-del-logo-geecom
    *
    */
?>
<body class="d-flex flex-column <?php echo(($impostazioni["attivaBarraSuperiore"]=="si") ? "extraspace" : ""); ?>">
    <?php 
        if(isset($_SESSION["geecomAdmin_email"])) {
            include "template/include/barraAdmin.php";
        }
        
        echo $inclusioni["fineBody"];
    ?>
    <header>
        <?php 
            if($impostazioni["attivaBarraSuperiore"]=="si") {
                include "template/include/barraSuperiore.php";
            }
        ?>
        <nav class="menu-principale d-flex align-items-start flex-column <?php echo $configurazioneAspetto["sfondoBarraMenu"]; ?> fixed-top p-4 <?php if($impostazioni["attivaBarraSuperiore"]=="si") echo "extraspace"; ?>" data-toggle="affix">
            <a class="navbar-brand mx-auto" href="<?php echo $impostazioni["urlPiattaforma"]; ?>">
                <img class="img-fluid" src="<?php 
                    echo $impostazioni["urlPiattaforma"]."/".$configurazioneAspetto["logo"];
                ?>"/>
            </a>
        </nav>
    </header>
    
    <div class="page-wrapper">
        <main role="main">
            <?php 
                if($pagina["mostraTitolo"]=="si") {
            ?>
                    <h2 class="page-title mt-3"><?php echo $pagina["titolo"] ?></h2>
            <?php 
                }
                UtilTemplate::stampaComponenti($geecomDb, $gestoreJavascript, $impostazioni, $impostazioniRicerca, $configurazioneAspetto, $pagina["id"], "contenuto", "si");
            ?>
        </main>
    </div>
    
    <?php
        include "template/include/footer.php";
    
        include"template/include/elementiAggiuntiviTemplate.php";
         
        include"include/includeJsBase.php"; 
        include"template/include/includeJsTemplate.php"; 
        
        echo $inclusioni["fineBody"];
    ?>
</body>