<?php require_once("blog_details.php"); 
 require_once("common_slug_functions.php"); // ✅ added ?>
<!DOCTYPE html>
<html lang="en">
<head>   
<title><?php echo $blog_title; ?></title>
<meta name="title" content="<?php echo $meta_title; ?>"/>
<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.senteachertraining.com/blog/<?php echo $blog_id; ?>-<?php echo $blog_title_url; ?>-blog.php"/>
<meta property="og:image" content="https://www.asiancollegeofteachers.com/admin_act/blog_images/<?php echo basename($blog_image_path);  ?>"/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="630"/>

<?php include('common/script.php'); ?>

<style type="text/css">
    .article-block-in {padding: 10px 20px; margin: 10px 0px;}
    .news-dt {color: #dd4415; font-weight: bold; font-family: "Open sans";}
    .head_gry_sm2 {font-size:20px !important; color: #1e1e1e; text-transform: capitalize;}
    .article-block-in p {font-size: 15px; line-height: 22px; padding: 25px 0px 5px 0; margin: 0; text-align: justify;}
    .readmore-3 a {color: #f25526; background: url(images/arw-sm1.png) no-repeat right 30%; padding: 0 15px 0 0;}
    .article-block-in img {display: block;height: auto;max-width: 100%;}
    .text-center a{color:#fff;}
</style>
	
	<?php $blog_title_org = $blog_title;
    /* ✅ REPLACED ALL str_replace WITH FUNCTION */
			$blog_title = createSlug($blog_title);
		//   $blog_title = str_replace(" ","-",$blog_title);
		// 	  $blog_title = str_replace("?","",$blog_title);
		// 	  $blog_title = str_replace("!","",$blog_title);
		// 	  $blog_title = str_replace("'","",$blog_title);
		// 	  $blog_title = str_replace("’","",$blog_title);
		// 	  $blog_title = str_replace(":","",$blog_title);
		// 	  $blog_title = str_replace(";","",$blog_title);
		// 	  $blog_title = str_replace("_","",$blog_title);
		// 	  $blog_title = str_replace("–","",$blog_title);
		// 	  $blog_title = str_replace("/","",$blog_title); 
		// 	  $blog_title = str_replace("&","-",$blog_title); 
		// 	  $blog_title = str_replace("(","",$blog_title); 
		// 	  $blog_title = str_replace(")","",$blog_title); 
		// 	  $blog_title = str_replace(",","",$blog_title);
		// 	  $blog_title = str_replace("”","",$blog_title); 
		// 	  $blog_title = str_replace("“","",$blog_title);?>
    
	</head><!--/head-->
<body>
    
    <?php include('common/header1.php');?>
<section id="blog">

 <section class="inner-banner-sec blog-banner">
    <div class="inner-overlay">
    <div class="container">
    <div class="inbanner-text-bx">
    <h1>Blog</h1>
    <p>Blog on Special Educational Needs - Asian College of Teachers</p>
    </div>
    </div>
    </div>
 </section>
	<div class="breadcrumb-sec">
	<div class="container">
			<ul class="breadcrumbs-custom">
                <li><a href="/">Home</a></li>
                <li><a href="https://www.senteachertraining.com/blog">Blog</a></li>
                <li class="active"><?php echo $blog_title_org; ?></li>
              </ul>
	</div>
	</div>
    <div class="container">
        <div class="blog">
            <div class="row">
                <div class="col-md-8">
                    <div class="blog-item">
                        <!--<img class="img-responsive img-blog" src="images/slider/slider-1.jpg" width="100%" alt="Governing Body" title="Governing Body for Asian College of Teachers" />-->
                            <div class="row">  
                                
                                <div class="col-xs-12 col-sm-12 blog-content">
                                   <div class="media reply_section">
                                 <div class="media-body post_reply_content">
                              
								
                                <div class="article-block-in">
                                  <h2 style="color: #174873;font-weight: bold;margin-top:0px;"><?php echo $blog_title_org; ?></h2>
                                
                                 
                                  <?php if ($flag == 1){ ?>
                                 <p class="news-dt pull-right"><?php echo date('jS F Y',strtotime($posting_dt)); ?></p>
                                  <?php } else { ?>
                             
                                 <span class="news-dt" style="color:#000;"><b><?php echo $msg; ?></b></span>
                                    <?php } ?>
                                 
                                
                                   <?php if($blog_image_path != "")  {  ?>
                                   <?php $image_path = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);?>
                                   <img src="https://www.asiancollegeofteachers.com/admin_act/blog_images/<?php echo basename($blog_image_path);  ?>" class="img-responsive" alt="">
                                   <?php  }  ?>
                                    <?php echo $blog_desc;  ?>
                                    <ul class="pull-left blog-hm-social">
                                        <li><span style="font-size:23px;color:#000;"><i class="fas fa-share-alt"></i></span></li>
                                        <li><a href="http://www.facebook.com/sharer.php?u=https://www.senteacherstraining.com/blog/<?php echo $blog_id; ?>-<?php echo str_replace(" ","",$blog_title); ?>-blog.php" target="_blank"><i class="fab fa-facebook-square"></i></a></li>
                                        <li><a href="https://www.linkedin.com/sharing/share-offsite/?url=https://www.senteacherstraining.com/blog/<?php echo $blog_id; ?>-<?php echo str_replace(" ","",$blog_title); ?>-blog.php" target="_blank" style="color:#3abff1;"><i class="fab fa-linkedin"></i></a></li>
                                        <li><a href="whatsapp://send?text=https://www.senteacherstraining.com/blog/<?php echo $blog_id; ?>-<?php echo str_replace(" ","",$blog_title); ?>-blog.php" + message, '_blank'  style="color:#22d533;"><i class="fab fa-whatsapp-square"></i></a></li>
                                    </ul>
                                      <?php if($written_by!=""){ ?><span class="pull-right"><b>Written By :</b> <?php echo $written_by; ?></span><?php } ?>
                                  
                                </div>
                             </div>
                        </div>
                                   
                               <br> 
                                </div>
                            </div>
                        </div><!--/.blog-item-->
                        
                         <div class="text-center" style="font-size: 12px;color:#000;background-color: #cccccc30;padding: 9px 0px;"> <a href="https://www.youtube.com/c/AsianCollegeofTeachers?sub_confirmation=1" target="_blank" style="color:#03C;">Subscribe our Youtube Channel</a> | <a href="https://www.facebook.com/groups/asiancollegenetwork/" target="_blank" style="color:#03C;">Like us on Facebook</a> | <a href="https://twitter.com/actcoursesasia" target="_blank" style="color:#03C;">Follow us on Twitter</a> | <a href="https://www.instagram.com/asiancollegeofteachers/" target="_blank" style="color:#03C;">Follow us on Instagram</a> | <a href="https://www.linkedin.com/in/asiancollegeofteachers-a38b6a125/" target="_blank" style="color:#03C;">Follow us on Linkedin</a></div>
 <?php include('common/blog_comment.php');?> 
<br>
                        
                      
                     
                    </div><!--/.col-md-8-->
                 <div class="col-md-4">
                      <br>
                      	<form class="form" role="form" name="frmBlogs" id="frmBlogs" method="post" style="padding:0;">
								<div class="form-group">
								
								  <input type="text" class="form-control" id="txtBlogs" placeholder="Enter Your Search Option" style="width:75%;float:left;" name="txtBlogs" value="<?php echo $blogs; ?>">
								&nbsp;
								  <button type="submit" class="btn btn-info btn-md"  onClick="SearchBlogs()">Search</button>
								  <input name="txtAction" id="txtAction" type="hidden">
								</div>
								</form>
                                
                                
                              <p style="font-size: 24px; margin-top: 20px; margin-bottom: 10px; font-weight: 500;">Recent Posts</p> 
                                
                                <?php  for($i=0; $i<=5; $i++)  {  ?>
								<?php $blog_title_org2[$i] = $blog_title2[$i];
								      //$blog_title[$i] = str_replace("-","",$blog_title[$i]);
									  $blog_title2[$i] = str_replace(" ","-",$blog_title2[$i]);
									  $blog_title2[$i] = str_replace("?","",$blog_title2[$i]);
									  $blog_title2[$i] = str_replace("!","",$blog_title2[$i]);
									  $blog_title2[$i] = str_replace("'","",$blog_title2[$i]);
									  $blog_title2[$i] = str_replace(":","",$blog_title2[$i]);
									  $blog_title2[$i] = str_replace(";","",$blog_title2[$i]);
									  $blog_title2[$i] = str_replace("_","",$blog_title2[$i]);
									  $blog_title2[$i] = str_replace("–","",$blog_title2[$i]);
									  $blog_title2[$i] = str_replace("/","",$blog_title2[$i]); 
									  $blog_title2[$i] = str_replace("&","-",$blog_title2[$i]); 
									  $blog_title2[$i] = str_replace("(","",$blog_title2[$i]); 
									  $blog_title2[$i] = str_replace(")","",$blog_title2[$i]); 
									  $blog_title2[$i] = str_replace(",","",$blog_title2[$i]);?>
                                
                                 <?php /*?><p class="news-dt"><?php echo date('jS F Y',strtotime($posting_dt[$i])); ?></p><?php */?>
                                 <span style="font-size:16px; display:block; margin:10px 0; font-weight: 500; line-height: 1.1;"><a href="<?php echo $blog_id2[$i]; ?>-<?php echo str_replace(" ","",$blog_title2[$i]); ?>-blog.php" style="color:#5bc0de;"><?php echo $blog_title_org2[$i]; ?></a></span>
								 <?php } ?>
                      			
                      </div>
            </div><!--/.row-->
         </div><!--/.blog-->
    </section><!--/#blog-->
    
    <?php include('common/footer.php');?>
</body>
</html>