<?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
    */  

    $query = "SELECT * FROM geecB_associazioniTagArticoli AS at JOIN geec_tag AS t 
               ON t.id=at.idTag 
               WHERE idArticolo = {$contenuto["id"]}";
    $risTagArticoli = $geecomDb->eseguiQueryLettura($query);
    if($risTagArticoli->num_rows>0) {
?>
<div class="card px-0 mt-2 border-0">
    <span class="float-left tag-list">
        <ul class="list-inline mb-0">
            <?php 
                while($tag=$risTagArticoli->fetch_assoc()) {
                    echo"<li class=\"list-inline-item breadcrumb-item mr-0\">
                            <a href=\"cerca.php?chiaveRicerca={$tag["nome"]}&tipoRicerca=tag\">{$tag["nome"]} </a>
                        </li>";
                }
            ?>
        </ul>
    </span>
</div>
<?php
    }
