<?php 
    /**
    *
    * copyright (c) 2013-2022 Heliac Technologies
    * license http://opensource.org/licenses/gpl-license.php GNU GPL v3 
    *
    * linee guida per l'utilizzo del logo http://www.geecom.org/articolo.php?id=34&alias=linee-guida-per-l%27uso-del-logo-geecom
    */

    $gestoreJavascript->aggiungiJavascript("<script src=\"https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js\"></script>
    <script type=\"text/javascript\">
        $(document).ready(function () {
            $(\"#sidebar\").mCustomScrollbar({
                theme: \"minimal\"
            });

            $('#dismiss, .overlay').on('click', function () {
                $('#sidebar').removeClass('active');
                $('.overlay').removeClass('active');
            });

            $('#sidebarCollapse').on('click', function () {
                $('#sidebar').addClass('active');
                $('.overlay').addClass('active');
                $('.collapse.in').toggleClass('in');
                $('a[aria-expanded=true]').attr('aria-expanded', 'false');
            });
        });
    </script>");
    
?>
<div class="wrapper">
   <?php 
        include"template/include/aspetto/{$aspettoSito["cartellaMenu"]}/menuPrincipale.php";        
    ?>
    <div id="content" class="d-flex flex-column">
        <button id="sidebarCollapse" class="hamburger" type="button" aria-label="Menu" aria-controls="navbarCollapse">
            <span class="hamburger-box">
                <span class="hamburger-inner"></span>
            </span>
        </button>
        
        <header>
            <?php
                if($impostazioni["attivaBarraSuperiore"]=="si") {
                    include "template/include/aspetto/{$aspettoSito["cartellaMenu"]}/barraSuperiore.php";
                }
            ?>
        </header>

        <div class="page-wrapper">
            <a class="navbar-brand" href="<?php echo $impostazioni["urlSito"] ?>">
                <img class="img-fluid" src="<?php echo $configurazioneAspetto["logo"] ?>" alt="logo">
            </a>
            <section></section>

            <section class="bg-light shopping-cart siOverflow">
                <div class="container">
                    <div class="row">
                       <div class="col-12">
                               <nav>
                                <ol class="breadcrumb">
                                    <li class="breadcrumb-item"><a href="index.php">Home</a></li>
                                    <li class="breadcrumb-item active">Il tuo carrello </li>
                                </ol>
                               </nav>
                       </div>
                       <div id="colonna-principale" class="col-md-9">
                           <?php 
                               echo $impostazioniCarrello["testoInAlto"];
                               $carrello->stampaCarrello($sessioneUtente,$impostazioniCarrello);
                               if($carrello->getNumeroProdotti()>0) {
                                   $paginaCarrello->stampaModuloRegistrazione($sessioneUtente,$datiCookie);
                                   $paginaCarrello->stampaSelezioneSpedizione($carrello->calcolaPesoProdottiNelCarrello());
                                   $paginaCarrello->stampaDivBuonoSconto();
                                   $paginaCarrello->stampaMetodiPagamento($carrello->getImportoTotale());
                                   echo $impostazioniCarrello["testoInBasso"];
                                   $paginaCarrello->stampaPulsanteConfermaOrdine();
                               }
                           ?>
                       </div><!--/#colonna principale-->

                         <!-- Colonna secondaria -->
                         <div id="colonna-secondaria" class="col-md-3 sticky-top align-self-start">

                             <!-- Nuvola Tags -->
                             <div class="contenutoLaterale panel panel-default">
                                  <div class="panel-body">
                                      <?php 
                                          echo $impostazioniCarrello["testoADestra"];
                                      ?>
                                  </div>
                             </div><!--/panel-->

                         </div><!--/#colonna secondaria-->
                    </div>
                </div>
            </section>
        </div>
        <?php    
            include "template/include/aspetto/{$aspettoSito["cartellaFooter"]}/footer.php";
        ?>
    </div>
</div>
<div class="overlay"></div>