<? include 'header.php';?>
<style type="text/css">
@media (max-width: 479px) and (min-width: 320px){
#galleryimg{
width: 100% !important;
height: 100% !important;
}
.post-details-holder{
height: 100% !important;
}
}
</style>
<header class="amaezi-fullscreen-header breadcrumbs section-bg" data-image-src="img/content/footer_bg-1.jpg" id="large-header">
<!-- HEADER OVERLAY -->
<div class="amaezi-header-overlay"></div>
<!-- HEADER CONTENT -->
<div class="amaezi_header_content">
<h1 class="amaezi_header_title">News</h1>
</div>
</header>
<section class="high-padding gray-section">
<div class="container">
<!-- TITLE + SUBTITLE section -->
<!-- Blog posts section -->
<div class="items-wrap blog_posts_list blog-posts-shortcode">
<div class="posts-list grid">
<div class="row">
<? include 'admin/settings.php';
$sql = "select * from news order by id desc";
$exc = $mysqli->query($sql);
while($row =$exc->fetch_assoc()){
?>
<div class="col-md-4" style="margin-bottom: 15px;">
<div class="row">
<div class="single-post clearfix animateIn" data-animate="fadeIn">
<div class="col-md-12 post-thumbnail">
<a href="news-single.php?id=<? echo $row["id"];?>">
<figure class="effect-lexi">
<img id="galleryimg" style="width:373px;height: 400px;" src="admin/img/<? echo $row["img"];?>" alt=""/>
<figcaption>
<i class="icon-arrow-right-circle"></i>
</figcaption>
</figure>
</a>
</div>
<div class="col-md-12 post-details" style="text-align: left;display: none;">
<div class="post-details-holder" style="height:245px;">
<div class="more-post-details">
<? if(empty($row["cdate"])){?>
<? } else { ?>
<a class="more-link" href="#"><i class="icon-clock"></i> <? echo date('d-m-Y',strtotime($row["cdate"]));?></a>
<? } ?>
</div>
<h3 class="post-title"><a href="news-single.php?id=<? echo $row["id"];?>"><? echo $row["title"];?></a></h3>
<p class="post-excerpt"><? echo substr($row["descr"],0,200);?></p>
</div>
</div>
</div>
</div>
</div>
<? } ?>
</div>
</div>
</div>
</div>
</section>
<? include 'footer.php';?> |