File size: 3.83Kb
<?php
$page_content = $DB->get_settingdata('content_middle');
//Home Meta
$meta_title = $DB->get_settingdata('meta_title');
$meta_desc = $DB->get_settingdata('meta_description');
$meta_keywords = $DB->get_settingdata('meta_keywords');
$side_bar = $DB->get_settingdata('home_sidebar');
$footer_post = $DB->get_settingdata('footer_post');
$sidebar = sidebar($side_bar);
?>
<!DOCTYPE html>
<html lang="en">
<?php include $theme_dir."/include/head.php";?>
<body>
<!-- START SITE -->
<div id="wrapper">
<div class="row">
<div class="shadow">
<?php include $theme_dir."/include/header.php";?>
<?php if($slider == 1){include $theme_dir."/include/slider_banner.php";}?>
<div class="container sitecontainer bgw">
<div class="col-md-12">
<div class="news-ticker clearfix">
<div class="news-title">
<h3>Latest Comments</h3>
</div>
<ul id="ticker">
<?php
$blog_page = blogpage_name($conn);
$sql = "select * from comments where status = 1 ORDER BY id DESC LIMIT 5";
$data = $conn->query($sql);
while($a = $data->fetch_array()){
$postname = getpostname($conn,$a['blog_id']);
?>
<li><a href="<?php echo $blog_page."/".$postname;?>" title=""><?php echo $a['comments'];?> [..] - <span>
<?php echo date("d M Y", strtotime($a['date']));?></span></a></li>
<?php } ?>
</ul>
<div class="random clearfix">
<a href="javascript:;" data-toggle="tooltip" data-placement="bottom" title="Random">
<span class="random-article">
<i class="fa fa-random"></i>
</span>
</a>
</div>
<!-- end random -->
</div>
<!-- end news-ticker -->
</div>
<!-- end row -->
<div class="<?php echo $sidebar;?>">
<div class="widget searchwidget indexslider">
<div class="col-md-12 col-sm-12">
<div class="widget">
<!--<div class="widget-title">
<h4>Home</h4>
<hr>
</div>
<br>-->
<?php echo $page_content;?>
<hr>
</div>
</div>
</div>
<!-- end widget -->
<?php echo $pagination_out;?>
<br>
</div>
<!-- end col -->
<?php if($side_bar != 0){include $theme_dir."/include/sidebar.php";}?>
</div>
<!-- end container -->
<?php if($footer_post != 0){include $theme_dir."/include/subfooter.php";}?>
<?php include $theme_dir."/include/footer.php";?>
</div>
</div>
<!-- end row -->
</div>
<!-- end wrapper -->
<!-- END SITE -->
<script src="<?php echo $theme_dir;?>/js/jquery.min.js"></script>
<script src="<?php echo $theme_dir;?>/js/bootstrap.js"></script>
<script src="<?php echo $theme_dir;?>/js/plugins.js"></script>
<!-- FlexSlider JavaScript
================================================== -->
<script src="<?php echo $theme_dir;?>/js/jquery.flexslider.js"></script>
<script>
$(window).load(function() {
$('#property-slider .flexslider').flexslider({
animation: "slide",
//animationLoop: true,
slideshowSpeed: 6000,
animationSpeed: 1300,
directionNav: true,
controlNav: false,
keyboardNav: true
});
});
</script>
</body>
</html>