<?php require_once("blog_details.php");
require_once("common_slug_functions.php"); // ✅ added  ?>

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

  <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.acttefl.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" />

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

  <link rel="canonical" href="https://www.acttefl.com/blog/<?php echo $blog_id; ?>-<?php echo $blog_title_url; ?>-blog.php" />

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

    }

    .article-block-in ul {

      padding-left: 20px;

    }

    .article-block-in ol {

      padding-left: 20px;

    }

	.article-block-in a {

     color: #00C; !important;

    }

	.article-block-in a:hover {

     color: #F60; !important;

    }

    .article-block-in strong {

      font-weight: bold !important;

      color: #292b2c!important;

    }

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

  <link rel="canonical" href="https://www.acttefl.com/blog/<?php echo $blog_id; ?>-<?php echo $blog_title_url; ?>-blog.php" />

</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" style="padding-top: 18px;">

            <ol class="breadcrumb justify-content">

              <li class="breadcrumb-item"><a href="https://www.acttefl.com">Home</a></li>

              <li class="breadcrumb-item"><a href="https://www.acttefl.com/blog/">Blog</a></li>

              <li class="breadcrumb-item active" aria-current="page" style="color:#ff6226;"><?php echo $blog_title; ?></li>

            </ol>

          </nav>

          </div>

        </div>

        

      </div>

    </div>

  </section>

  <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: #292b2c;font-weight: bold;"><?php echo $blog_title_org; ?></h2>

                      <?php if ($flag == 1) { ?>

                        <p class="news-dt pull-right"><i class="fa fa-calendar" aria-hidden="true" style="color: #888888;
    padding-right: 4px;"></i><?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/blog_images/<?php echo basename($blog_image_path);  ?>" class="img-responsive" alt="">

                        <?php  }  ?>

                      </p>

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

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

                        &nbsp; <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:#000000;font-style: italic; font-size:15px;"><i class="fa fa-arrow-circle-right" aria-hidden="true" style="color:#120b01"></i>&nbsp;Facebook</a></li>
<hr style="margin: 3px 3px;">
                            <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:#000000;     font-style: italic; font-size:15px;"><i class="fa fa-arrow-circle-right" aria-hidden="true" style="color:#120b01;"></i>&nbsp;LinkdIn</a></li>
<hr style="margin: 3px 3px;">
                            <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:#000000; font-style: italic; font-size:15px;"><i class="fa fa-arrow-circle-right" aria-hidden="true" style="color:#120b01"></i>&nbsp;Whatsapp</a></li>

                          </ul>

                          <br>

                    



                        </span>

                      </p>

                    </div>

                  </div>

                </div>

              </div>

            </div>

          </div><!--/.blog-item-->
<div class="article-block-in" style=" border-bottom: none;  padding: 0px 20px;">
                <div class="text-center" style="font-size: 12.5px;background-color: #cccccc30;padding: 10px 2px;; font-size:12px;;"> <a href="https://www.youtube.com/c/AsianCollegeofTeachers?sub_confirmation=1" target="_blank">Subscribe our Youtube Channel</a> | <a href="https://www.facebook.com/groups/183249902461012" target="_blank">Like us on Facebook</a> | <a href="https://twitter.com/actcoursesasia" target="_blank">Follow us on Twitter</a> | <a href="https://www.instagram.com/asiancollegeofteachers/" target="_blank">Follow us on Instagram</a> | <a href="https://www.linkedin.com/school/asian-college-of-teachers/" target="_blank">Follow us on Linkedin</a></div></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: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><br>

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

           <i class="fa fa-arrow-circle-right" aria-hidden="true" style="margin-right:1px; color:#f1592a;"></i>  <?php $blog_title_org2[$i] = $blog_title2[$i];

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

            /* ✅ REPLACED ALL str_replace WITH FUNCTION */
              $blog_title2[$i] = createSlug($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]);

            // $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;"><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><br>
                 <hr>

          <?php } ?>

        </div>

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

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

    <!--/#blog-->

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

</body>

</html>