<?php
    /*
    * copyright (c) 2013-2019 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	
    */
?>
    <div class="pull-left">
        <div class="dropdown">
          <button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu_Nome_XYZ" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
            Crea nuovo
            <span class="caret"></span>
          </button>
          <ul class="dropdown-menu" aria-labelledby="dropdownMenu_Nome_XYZ">
            <li><a href="../controller/controllerContenuti.php?operazione=creaArticolo">Articolo</a></li>
            <li><a href="creaContenuto.php?tipo=pagina">Pagina</a></li>
            <li><a href="creaContenuto.php?tipo=galleria">Galleria</a></li>
          </ul>
        </div>
    </div>
    <?php 
        if(strpos($_SERVER["REQUEST_URI"],"creaContenuto.php")>0) {
            echo"<button class=\"btn btn-default\" onclick=\"location.href='gestioneContenuti.php?tipo={$contenuto["tipo"]}';\" ><i class=\"fa fa-arrow-left\"></i> Torna all'elenco </button>";
        }