-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
30 lines (25 loc) · 932 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php require_once "Includes/cabecera.php";?>
<?php require_once "Includes/lateral.php";?>
<?php require_once "Includes/helpers.php";?>
<!--ARTICULOS-->
<div class="principal">
<h2>Ultimas entradas</h2>
<?php
$entradas = conseguirEntradas($db);
if(!empty($entradas)):
while($entrada = mysqli_fetch_assoc($entradas)):
?>
<article class="entradas">
<h3><?=$entrada['titulo'];?></h3>
<span><?=$entrada['fecha'].' | '.$entrada['nombre'];?></span>
<p><?=$entrada['descripcion'];?></p>
</article>
<?php
endwhile;
endif;;
?>
<div>
<a href="verTodas.php" class="ver-todas">Ver todas las entradas</a>
</div>
</div>
<?php require_once "Includes/footer.php";?>