<?php

require_once("blog.php"); ?>

<!DOCTYPE html>

<html lang="en">

<head>

  <title>Blog on TEFL/TESOL</title>

  <meta name="title" content="Blog on TEFL/TESOL" />

  <meta name="description" content="Read blogs to know about TEFL courses, scopes of teaching English abroad, teaching in international schools, and also becoming a corporate trainer.">

  <meta name="robots" content="noodp,noydir" />

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

  <link rel="stylesheet" href="assets/css/paginate.css" type="text/css">

  <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 !important;

      line-height: 20px;

      padding: 5px 0px 5px 0;

      margin: 0;

      text-align: justify;

    }

    .readmore-3 a {

      color: #f25526;

      background: url(images/read-more.png) no-repeat right top;

      padding: 11px 21px;

      width: 110px;

      height: 39px;

      text-indent: -5;

    }

    .readmore-3 a:hover {

      color: #f25526;

      background: url(images/read-more-hover.png) no-repeat right top;

      padding: 11px 21px;

      width: 110px;

      height: 39px;

      text-indent: -5;

    }

  </style>

  <script type="text/javascript">

    function SearchBlogs()

    {

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

      frmBlogs.submit();

    }

  </script>

  <link rel="canonical" href="https://www.acttefl.com/blog/" />

</head><!--/head-->

<body>

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

  <section class="page-title-light breadcrumb_section parallax_bg overlay_bg_50" data-parallax-bg-image="/assets/images/about_bg.jpg">

    <div class="container">

      <div class="row align-items-center">

        <div class="col-sm-12">

          <div class="page-title">

            <h1 class="breadcrumb-title" style="text-align:center;">Blog</h1>
            
            <nav aria-label="breadcrumb" >

            <ol class="breadcrumb justify-content-sm-end">

              <li class="breadcrumb-item"><a href="./">Home</a></li>

              <li class="breadcrumb-item"><a href="#">Blog</a></li>

              <!-- <li class="breadcrumb-item active" aria-current="page">120 Hours International TEFL Certification Course</li> -->

            </ol>

          </nav>

          </div>

        </div>

        

      </div>

    </div>

  </section>

  

  <div class="container">

    <div class="row">

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

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

        <?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]); ?>

          <div class="article-block-in">

            <?php /*?><p class="news-dt"><?php echo date('jS F Y',strtotime($posting_dt[$i])); ?></p><?php */ ?>

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

            <p class="head_gry_sm2"><?php echo date('jS F Y', strtotime($posting_dt[$i])); ?></p>

            <span class="dropdown"><span class="fa fa-share-alt" class="dropdown-toggle" data-toggle="dropdown"> Share </span>

                          <ul class="dropdown-menu clearfix" role="menu" style="width: auto;list-style:none;margin:10px -100px;padding:5px;">

                            <li><a href="http://www.facebook.com/sharer.php?u=https://www.acttefl.com/blog/<?php echo $blog_id[$i]; ?>-<?php echo str_replace(" ", "-", $blog_title[$i]); ?>-blog.php" target="_blank" style="color:#0b1eaf;">Facebook</a></li>

                            <li><a href="https://www.linkedin.com/sharing/share-offsite/?url=https://www.acttefl.com/blog/<?php echo $blog_id[$i]; ?>-<?php echo str_replace(" ", "-", $blog_title[$i]); ?>-blog.php" target="_blank" style="color:#09F;">LinkdIn</a></li>

                            <li><a href="whatsapp://send?text=https://www.acttefl.com/blog/<?php echo $blog_id[$i]; ?>-<?php echo str_replace(" ", "-", $blog_title[$i]); ?>-blog.php + message, '_blank'" style="color:#1CB517;">Whatsapp</a></li>

                          </ul>

                        </span>

            <p>

              <?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" style="float:left; margin:15px 15px 15px 0px; border:1px solid #ccc; padding:2px;" width="180" height="110">

              <?php  }  ?>

            </p>

            <p><?php //echo substr($blog_desc[$i],0,500)."...";  

                ?>

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

            <?php if ($written_by[$i] != "") { ?><p><b>Written By :</b> <?php echo $written_by[$i]; ?></p><?php } ?>

             &nbsp; 

                        

            <p class="readmore-3 float-right"><a href="<?php echo $blog_id[$i]; ?>-<?php echo str_replace(" ", "", $blog_title[$i]); ?>-blog.php" style="color:#fff;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></p>

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

          </div>

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

        ?>

        <!--PAGINATION START-->

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

          <ul>

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

          </ul>

        </div>

        <!--PAGINATION END-->

      </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:64%;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>

        <span style="font-weight:bold;font-size:18px;">Recent Posts</span> <br>

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

          <?php /*?><p class="news-dt"><?php echo date('jS F Y',strtotime($posting_dt[$i])); ?></p><?php */ ?>

          <span style="font-size:16px;"><a href="<?php echo $blog_id[$i]; ?>-<?php echo str_replace(" ", "", $blog_title[$i]); ?>-blog.php" style="color:#5bc0de; padding:10px 10px; margin:10px 10px;"><?php echo $blog_title_org[$i]; ?></a></span><br>
          <hr>

        <?php } ?>

      </div>

    </div>

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

  <!--/#blog-->

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

</body>

</html>