<?php require_once("blog_details.php"); ?>

<!DOCTYPE html>

<html lang="en">

<head>

    <meta name="title" content="<?php echo $meta_title; ?>"/>

    <title><?php echo $blog_title; ?></title>

	<meta name="description" content="<?php echo $meta_desc; ?>">

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

    

    <style type="text/css">

    	.article-block-in {padding: 10px 20px; margin: 10px 0px; border-bottom: 1px dashed #666;}

		.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%;}

    </style>

	

	<?php $blog_title_org = $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" class="container">

 <div class="container">

	<div class="breadcrumb-sec">

	<div class="container">

			<ul class="breadcrumbs-custom">

                <li><a href="../">Home</a></li>

                <li class="active">Blog</li>

              </ul>

	</div>

	</div>

    



        <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;"><?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 } ?>

                                 

                                 <p>

                                   <?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/blogs/<?php echo $blog_image_path;  ?>" class="img-responsive" alt="">

                                   <?php  }  ?></p>

                                    <p><?php echo $blog_desc;  ?>

                                   

                                      <?php if($written_by!=""){ ?><span class="pull-right"><b>Written By :</b> <?php echo $written_by; ?></span><?php } ?>

                                   </p>

                                </div>

                             </div>

                        </div>



                                   

                                

                                </div>

                            </div>

                        </div><!--/.blog-item-->

                        

                         <hr>

 <?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>

                                

                                

                               <h3>Recent Posts</h3> 

                                

                                <?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 */?>

                                 <h4 style="font-size:16px;"><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></h4>

								 <?php } ?>

                      			

                      </div>



            </div><!--/.row-->



         </div><!--/.blog-->



    </section><!--/#blog-->

    

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





</body>

</html>