Mini Shell
<div id="layerslider" class="ls-wp-container" style="width:100%;height:145px;margin:0 auto;border-bottom:1px solid #eee;">
<div class="ls-slide" data-ls="slidedelay:5000;transition2d:1;"><img src="#" data-src="faixa.jpg" class="ls-bg" alt="MAYER" /><div class="ls-l" style="top:240px;left:61px;white-space: nowrap;"><br></div></div>
</div>
<section id="main-content-pin" class="portfolio-pin">
<div class="container">
<div class="col-sm-12">
<h1 class="">Obituários</h1>
</div> <!-- end col-sm-12 -->
</div>
<div class="container">
<div id="pin-content">
<br><br>
<?
require_once('conexao.php');
$sql="select ob.nome,obituario_url,
(select foto from mayer_obituarios_fotos where cod_obituario=ob.cod_obituario LIMIT 1)as foto
from mayer_obituarios ob
ORDER BY ob.data_falecimento DESC,ob.nome ASC
;";
//echo "<pre>".$sql."</pre>";
$query=mysqli_query($con,$sql);
$totitens=@mysqli_num_rows($query);
if ($totitens!="")
{
while($row = mysqli_fetch_array($query))
{
$nome = $row['nome'];
$foto = $row['foto'];
$obituario_url = $row['obituario_url'];
?>
<article class="pin-box entry -item" style="padding-top: 20px;">
<div class="pin-ecxt">
<a href="<?=$base_url;?>/obituarios/<?=$obituario_url;?>">
<img width="150" src="<?=$base_url;?>/images/portfolio/obituarios/<?=$foto;?>" alt="">
</a>
<h6 class="blog-date"><?=$nome;?></h6>
<a href="<?=$base_url;?>/obituarios/<?=$obituario_url;?>" class="button blue"><i class="icomoon-file-8"></i> Mensagem </a>
</div>
</article>
<?
} //while($row = mysqli_fetch_array($query))
} //if ($totitens!="")
?>
</div>
<!-- end-pin-content -->
<div class="vertical-space2"></div>
</div>
</section>
Zerion Mini Shell 1.0