include dirname(__FILE__) . '/layout.php'; ?> <?php startblock('contenido'); ?> <?php $FuncionesConfig = new FuncionesConfig(); $NoticiasFront = new NoticiasFront(); $CategoriasFront = new CategoriasFront(); if (isset($_GET["id"])) { $NoticiasFront = new NoticiasFront(); $resultado = $NoticiasFront->noticia($_GET["id"]); if (!empty($resultado)) { while ($row = $resultado->fetch_assoc()) { $imagen = $NoticiasFront->imagenPortadaNoticia($row['id']); $categoria = $CategoriasFront->categoriaNoticia($row['id']); ?> <!--*** NOTICIA ***--> <div class="noticia"> <!-- head --> <div class="head"> <div class="guia"> <p class="text-uppercase item">categorias:</p> <p class="text-uppercase item text-naranja"> <?php foreach ($categoria as $cat) { echo '<span class="glyphicon glyphicon-tag"></span>' . $cat . ' ';