ok

Mini Shell

Direktori : /home/viveiroimperium/www/
Upload File :
Current File : /home/viveiroimperium/www/blog.php

<?php require_once 'includes/topo.php'; ?>
<?php require_once 'includes/header.php'; ?>
        <!-- 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>Blog</h3>
                            </div>
                            <ul>
                                <li class="home-bread">Home</li>
                                <li>Blog</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-grid">
                        <!-- Start single blog -->
                        <div class="col-md-8 col-sm-8 col-xs-12">
                            <div class="row">
                               
                        <?php
                        
                        $sql = $db->select("SELECT * FROM noticias ORDER BY id_noticia DESC");
                        while($row = $db->expand($sql)){


                                echo '<div class="col-md-12 col-sm-12 col-xs-12">';
									echo '<div class="single-blog">';
										echo '<div class="blog-image">';
											echo '<a class="image-scale" 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="blog-content">';
										  echo '<div class="blog-title">';
											   echo '<div class="blog-meta">';
													echo '<span class="date-type">';
														echo date('d/m/Y',  strtotime($row['data_noticia']));
													echo '</span>';
													echo '<span class="comments-type">';
													
													echo '</span>';
												echo '</div>';
												echo '<a href="detalhes-blog/'.$row['id_noticia'].'/'.normaliza($row['titulo_noticia']).'">';
													echo '<h4>'.$row['titulo_noticia'].'</h4>';
												echo '</a>';
											echo '</div>';
											echo '<div class="blog-text">';
												echo '<p>'.$row['texto_noticia'].'</p>';
												echo '<a class="blog-btn" href="detalhes-blog/'.$row['id_noticia'].'/'.normaliza($row['titulo_noticia']).'">Leia mais</a>';
											echo '</div>';
										echo '</div>';
									echo '</div>';
								echo '</div>';
                         }

                         ?>   
                               
                                <div class="col-md-12 col-sm-12 col-xs-12">
                                   <div class="blog-pagination">
                                       <ul class="pagination">
                                           <li><a href="#">&lt;</a></li>
                                           <li class="active"><a href="#">1</a></li>
                                           <li><a href="#">2</a></li>
                                           <li><a href="#">3</a></li>
                                           <li><a href="#">&gt;</a></li>
                                       </ul>
                                   </div>
                                </div>
                            </div>
                            <!-- End row -->
                        </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>Últimos posts</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><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>

<?php require_once 'includes/footer.php'; ?>

Zerion Mini Shell 1.0