<?php

 require_once("blog.php"); ?>

<!doctype html>

<html>

<head>

<meta charset="utf-8">
<title>Blog on Teacher Training Kolkata</title>
<meta name="title" content="Blog on Teacher Training Kolkata"/>
<meta name="description" content="Stay ahead in education with insightful blogs on teacher training, online degree programs, learning innovations, and global education course updates.">

<meta name="author" content="">

<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0">

<!-- Favicons -->

<link rel="icon" href="images/favicon.ico" type="image/x-icon">

<!-- Latest compiled and minified CSS -->

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

 <script type="text/javascript">

	function SearchBlogs()

	{

		//frmNews.txtAction.value = "search_news";

		frmBlogs.submit();

	}

</script>

</head>

<body id="boxed">

<!--Header start-->

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

<!--Header End-->

<div id="content" class="site-content">



	

		<div class="container main-content-area">

						<div class="row side-pull-left">

				<div class="main-content-inner col-md-8">



	<div id="primary" class="content-area">

		<main id="main" class="site-main" role="main">





         <?php  for($i=0; $i<$no_of_blogs; $i++)  {  ?>

		 <?php $blog_title_org[$i] = $blog_title[$i];

		  //$blog_title[$i] = str_replace("-","",$blog_title[$i]);

		 $blog_title[$i] = str_replace(" ","-",$blog_title[$i]);

		  $blog_title[$i] = str_replace("?","",$blog_title[$i]);

		  $blog_title[$i] = str_replace("!","",$blog_title[$i]);

		  $blog_title[$i] = str_replace("'","",$blog_title[$i]);

		  $blog_title[$i] = str_replace(":","",$blog_title[$i]);

		  $blog_title[$i] = str_replace(";","",$blog_title[$i]);

		  $blog_title[$i] = str_replace("’","",$blog_title[$i]);

		  $blog_title[$i] = str_replace("_","",$blog_title[$i]);

		  $blog_title[$i] = str_replace("–","",$blog_title[$i]);

		  $blog_title[$i] = str_replace("/","",$blog_title[$i]); 

		  $blog_title[$i] = str_replace("&","-",$blog_title[$i]); 

		  $blog_title[$i] = str_replace("(","",$blog_title[$i]); 

		  $blog_title[$i] = str_replace(")","",$blog_title[$i]); 

		  $blog_title[$i] = str_replace(",","",$blog_title[$i]);

		  $blog_title[$i] = str_replace("”","",$blog_title[$i]); 

		  $blog_title[$i] = str_replace("“","",$blog_title[$i]);?>

           

           <article id="post-538" class="post-538 post type-post status-publish format-standard has-post-thumbnail hentry category-special-education">

	<div class="blog-item-wrap">

				 <?php if($blog_image_path[$i] != "")  {  ?>

              <?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[$i]);  ?>" alt="Blogs" class="img-responsive"  height="150">              

              

              <?php  }  ?>                     

                     		

		<div class="post-inner-content">

			



				<h2 class="entry-title"> 

                <a href="<?php echo $blog_id[$i]; ?>-<?php echo str_replace(" ","",$blog_title[$i]); ?>-blog.php"><?php echo $blog_title_org[$i]; ?></a>

       			</h2>



			<div class="entry-meta">

					<span class="posted-on"><i class="fa fa-calendar"></i><?php echo date('jS F Y',strtotime($posting_dt[$i])); ?></span><span class="byline"> <i class="fa fa-user"></i> <span class="author vcard"><?php if($written_by[$i]!=""){ ?><b>Written By :</b> <?php echo $written_by[$i]; ?><?php } ?></span></span>				

				

				

				</div><!-- .entry-meta -->

	

				<div class="entry-content">



				<?php if($blog_pre_desc[$i] == "") {

				  $text = str_ireplace('<p>','<br>',$blog_desc[$i]);  $text = str_ireplace('</p>','',$text); 

				  //echo "Pre Desc";

				  }

				  else {

				  $text = str_ireplace('<p>','<br>',$blog_pre_desc[$i]);  $text = str_ireplace('</p>','',$text);

				  //echo "Post Desc";

				  } ?>

				 <?php echo substr(strip_tags($text),0,500); ?> ...

                                 

<p><a class="btn btn-default read-more" href="<?php echo $blog_id[$i]; ?>-<?php echo str_replace(" ","",$blog_title[$i]); ?>-blog.php">Read More</a></p>

				

                </div><!-- .entry-content -->

        </div>

	</div>

</article><!-- #post-## -->





  

          <?php  }//end of loop for $i  ?>

      

 	

            <!--PAGINATION START-->

        	<div class="paginate"><!-- The "wrapper" is just a comestic addition. You don't need this for the pagination to work. -->

                <ol>

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

                    <li><a <?php if($page == 1) { ?>href="./" <?php } else { ?> href="./?page=<?php echo $page-1; ?>" <?php } ?>>Prev</a></li>

                    

                    <?php  for ($x=$s; $x<=$e; $x++) {  //echo $page; echo $i; ?>

                    <li><a <?php if($page == $x) { ?> class="active" <?php } else { ?> class="inactive" <?php } ?><?php if($x == 1) { ?> href="./" <?php } else { ?> href="./?page=<?php echo $x; ?>" <?php } ?> ><?php echo $x; ?></a></li>

                    <?php  }  ?>

                    

                    <!--<li><a href="" class="more">&hellip;</a></li>-->

                    <li><a <?php if($page == $total_pages) { ?>href="./?page=<?php echo $total_pages; ?>" <?php } else { ?> href="./?page=<?php echo $page+1; ?>" <?php } ?>>Next</a></li>

                    <li><a href="./?page=<?php echo $total_pages; ?>">Last</a></li>

                </ol>

            </div>

            

            <!--PAGINATION END-->	  

            </main>

            </div>         

        </div>  <!--col-d-8 END-->

        <div class="col-md-4">

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

    </div>

    <div class="clearfix"></div>

    

   

  </div>

  </div>

  </section>

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

  

<!--Footer End-->

</body>

</html>

