<?php require_once("blog_details.php");
require_once("common_slug_functions.php"); // ✅ added ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo $meta_title ?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php echo $meta_desc; ?>" />
<meta property="og:type" content="blog"/>
<meta property="og:title" content="<?php echo $og_title; ?>"/>
<meta property="og:description" content="<?php echo $og_desc; ?>"/>
<meta property="og:url" content="https://www.teflcoursethailand.com/blog/<?php echo $blog_id; ?>-<?php echo $blog_title_url; ?>-blog.php"/>
<meta property="og:image" content="https://www.teachertrainingasia.com/admin_tta/blog_image/<?php echo basename($blog_image_path);  ?>"/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="630"/>
<?php include("common/header-script.php"); ?>
<style>
.blog-content ul
{
	list-style:disc!important;
	padding-left:20px;
}
#content-area a{color:#F00;text-decoration:none;}
</style>
</head>
<body class="yl-home">
<!-- HEADER -->
  <?php include("common/header.php"); ?>
<!-- HEADER END --> 
     

<section  id="blog" class="container" style="margin-top:20px;">
<div class="blog">
<div class="row">
<div id="content-area" class="col-md-9">
<div class="blog-item">      
<div class="row">


<div class="col-md-12 blog-content">
<?php if($blog_image_path != "")  {  ?>
<?php $image_path = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);?>
<p class="body-text"><img src="https://www.teachertrainingasia.com/admin_tta/blog_image/<?php echo basename($blog_image_path);  ?>" class="img-responsive" alt="blog-image"></p>
<?php  }  ?>
<h3 style="font-weight:bold;"><?php echo $blog_title; ?></h3>
<?php if ($flag == 1) { ?>
<span id="publish_date"> &nbsp;<?php date_default_timezone_set("Asia/Kolkata"); echo date("jS F Y",strtotime($posting_dt)); ?></span><br><br>
<?php } else { ?> 
<h4><b> <?php echo $msg; ?></b> </h4>
<?php } ?>
<p class="body-text"><?php echo $blog_desc; ?> 
</p>

<span class="pull-right"><?php if($written_by!=""){ ?><b>Written By :</b> <?php echo $written_by; ?><?php } ?></span><br>
<hr>
 <?php include('common/blog_comment.php');?> 
</div>
</div>
</div>

</div>
<div class="col-md-3">
<?php include('common/sidebar.php');?> 
</div>
</div><!--end row-->
</div><!--end container-->
</section>

<!---------------end body part----------------->
<div class="clearfix"></div>
   
       
<!--Body content Part End-->

  <?php include("common/footer.php"); ?>

 <?php include("common/footer-script.php"); ?>
