ok
Direktori : /home/viveiroimperium/www/ |
Current File : /home/viveiroimperium/www/detalhes-blog.php |
<?php require_once 'includes/topo.php'; ?> <?php require_once 'includes/header.php'; ?> <?php $sql = $db->select("SELECT * FROM noticias WHERE id_noticia=$id"); $noticia_row = $db->expand($sql) ?> <!-- Start Bottom Header --> <div class="page-area"> <div class="breadcumb-overlay"></div> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="breadcrumb text-center"> <div class="section-headline white-headline text-center"> <h3><?php echo $noticia_row['titulo_noticia']; ?></h3> </div> <ul> <li class="home-bread">Home</li> <li class="home-bread"> Blog</li> <li><?php echo $noticia_row['titulo_noticia']; ?></li> </ul> </div> </div> </div> </div> </div> <!-- END Header --> <!--Blog Area Start--> <div class="blog-page area-padding"> <div class="container"> <div class="row"> <div class=" blog-page-details"> <!-- Start single blog --> <div class="col-md-8 col-sm-8 col-xs-12"> <!-- single-blog start --> <article class="blog-post-wrapper"> <div class="blog-banner"> <a href="#" class="blog-images"> <img src="img/blog/<?php echo $noticia_row['img_noticia']; ?>" alt=""> </a> <div class="blog-content"> <div class="blog-meta"> <span class="date-type"> <?php echo date('d/m/Y', strtotime($row['data_noticia'])); ?> </span> <span class="comments-type"> </span> </div> <h4><?php echo $noticia_row['titulo_noticia']; ?></h4> <p><?php echo nl2br($noticia_row['texto_noticia']); ?></p> </div> </div> </article> <div class="clear"></div> </div> <!-- End main column --> <div class="col-md-4 col-sm-4 col-xs-12"> <div class="left-head-blog"> <div class="left-blog-page"> <!-- search option start --> <form action="#"> <div class="blog-search-option"> <input type="text" placeholder="Buscar"> <button class="button" type="submit"> <i class="fa fa-search"></i> </button> </div> </form> <!-- search option end --> </div> <div class="left-blog-page"> <!-- recent start --> <div class="left-blog"> <h4>Posts Recentes</h4> <div class="recent-post"> <!-- start single post --> <?php $sql = $db->select("SELECT * FROM noticias ORDER BY id_noticia DESC LIMIT 5 "); while($row = $db->expand($sql)){ echo '<div class="recent-single-post">'; echo '<div class="post-img">'; echo ' <a href="detalhes-blog/'.$row['id_noticia'].'/'.normaliza($row['titulo_noticia']).'">'; echo '<img src="img/blog/'.$row['img_noticia'].'" alt="">'; echo '</a>'; echo '</div>'; echo '<div class="pst-content">'; echo '<p><b>'.date('d/m/Y', strtotime($row['data_noticia'])).'</b></p>'; echo '<p><a href="detalhes-blog/'.$row['id_noticia'].'/'.normaliza($row['titulo_noticia']).'">'.$row['titulo_noticia'].'</a></p>'; echo '</div>'; echo '</div>'; } ?> <!-- End single post --> </div> </div> <!-- recent end --> </div> <div class="left-blog-page" style="display: none"> <div class="left-blog"> <h4>Categorias</h4> <ul> <li> <a href="#">Plantas</a> </li> <li> <a href="#">Plantas</a> </li> <li> <a href="#">Plantas Exóticas</a> </li> <li> <a href="#">Plantas Nativas</a> </li> <li> <a href="#">Irrigação</a> </li> <li> <a href="#">Manutenção</a> </li> <li> <a href="#">Paisagismo</a> </li> </ul> </div> </div> <div class="left-blog-page" style="display: none"> <div class="left-tags blog-tags"> <div class="popular-tag left-side-tags left-blog"> <h4>Tags populares</h4> <ul> <li> <a href="#">Plantas</a> </li> <li> <a href="#">Plantas</a> </li> <li> <a href="#">Manutenção</a> </li> <li> <a href="#">Irrigação</a> </li> <li> <a href="#">Paisagismo</a> </li> <li> <a href="#">Plantas Exóticas</a> </li> </ul> </div> </div> </div> </div> </div> <!-- End left sidebar --> </div> </div> <!-- End row --> </div> </div> <!--End of Blog Area--> <?php require_once 'includes/footer.php'; ?>