<?php 
include_once("include/main.inc.php"); 
$blog_res = mysqli_query($dbconn, "select * from blog_tbl");
$hover='blog';
$page_metatitle = "Blog || Ocean 32 The Dentofacial Hub";
$page_metakey = "Blog || Ocean 32 The Dentofacial Hub";
$page_metadesc = "Blog || Ocean 32 The Dentofacial Hub";
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php echo $page_metatitle; ?></title>
      <meta name=description content="<?php echo $page_metadesc; ?>" >
      <meta name=keywords content="<?php echo $page_metakey; ?>" >
    <?php include "app_top.php"; ?>
</head>

<body>

    <?php include "app_header.php"; ?>



    <!-- Heading Banner-->
    <section class="heading_banner" style="background-image: url(<?=theme_url;?>/images/category-banner.jpg)">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
                    <h1 class="cat_title">Our Blog</h1>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </section>

    <!-- Breadcrumb-->
    <div class="inner_breadcrumb hidden_xs">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <ul class="breadcrumb">
                        <li><a href="<?=site_url;?>" title="Home">Home</a></li>
                        <li class="active">Our Blog</li>
                    </ul>
                </div>
            </div>
        </div>
</div>



    <!-- Home About-->
    <section class="blog_page">
        <div class="container">
            <div class="row">
                <div class="col-xxl-9 col-xl-9 col-lg-9 col-md-9 col-sm-9 col-12">
                    <div class="blog_left">
                        <h2 class="catTitle_22">Our Blog</h2>
                        <div class="clearfix"></div>
                        <div class="row">
                            
                            <?php while ($blog_sql = mysqli_fetch_array($blog_res)) { ?>
                            <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-12">
                                <div class="single-post2 wow fadeInLeft" data-wow-delay=".3s">
                                    <div class="blog-thumb2">
                                        <a href="<?=site_url;?>/blog/<?=getValidFileName($blog_sql['catName']);?>.htm"><img src="<?=site_url."/uploaded-files/blog/images/".$blog_sql['catImage']?>" alt="<?php echo $blog_sql['blogDname'];?>" title="<?php echo $blog_sql['blogDname'];?>"></a>
                                    </div>
                                    <div class="blog-content2">
                                        <div class="b-meta">
                                            <div class="meta-info">
                                                <ul>
                                                    <li><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                                            <path d="M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0z" />
                                                            <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z" />
                                                        </svg> <?php echo $blog_sql['blogDate'];?></li>

                                                </ul>
                                            </div>
                                        </div>
                                        <h3 class="titleBlog"><a href="<?=site_url;?>/blog/<?=getValidFileName($blog_sql['catName']);?>.htm" title="<?php echo $blog_sql['blogDname'];?>"><span><?php echo $blog_sql['blogDname'];?></span></a></h3>
                                        <div class="clearfix"></div>
                                      <p>  <?php echo html_entity_decode(substr($blog_sql['catDesc'],0,150)); ?>...</p>
                                        <div class="clearfix"></div>
                                        <a href="<?=site_url;?>/blog/<?=getValidFileName($blog_sql['catName']);?>.htm" class="read_more_1 bg_btn_1" title="Read More">Read More <span></span><span></span><span></span><span></span></a>
                                    </div>
                                </div>
                            </div>

 <?php } ?>
                        </div>
                    </div>
                </div>
                
                <?php include "blog_left.php"; ?>

              
                
                
                
            </div>
        </div>
    </section>

    <?php include "app_footer.php"; ?>
    <?php include "app_bottom.php"; ?>
</body>

</html>