-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (33 loc) · 1.58 KB
/
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
31
32
33
34
35
36
<?php
include('core/linchub.class.php');
if (isset($_POST['logout'])){
$web->logout();
header("Refresh:0");
}
$noticia=$web->obtenerNoticias();
include ('header.php');
?>
<section class="container-fluid">
<?php
for ($i=0;$i<count($noticia);$i++){
echo "<hr class=\"featurette-divider\">";
echo "<div class=\"row featurette\">
<div class=\"col-md-3 col-md-7 order-md-2\">";
$titulo=explode(",",$noticia[$i]['titulo']);
$stitulo=array();
for ($j=1; $j<count($titulo); $j++)
$stitulo[$j]=$titulo[$j];
$sobrante=implode(",",$stitulo);
echo "<h2 class=\"featurette-heading\">$titulo[0],<span class=\"text-muted\"> $sobrante</span></h2>";
echo "<p class=\"lead\">".$noticia[$i]['noticia']."</p>
</div>";
echo "<div class=\"col-md-5 order-md-1\">";
echo "<img class=\"featurette-image img-fluid mx-auto\" data-src=\"holder.js/500x500/auto\" alt=\"500x500\" style=\"width: 300px; height: 300px;\" src=\"images/".$noticia[$i]['foto']."\" data-holder-rendered=\"true\">";
echo "</div>";
echo "</div>";
echo "<hr class=\"featurette-divider\">";
}
?>
</section>
<?php
include ('footer.php');