<aside class="sidebar c-4-12">
	<div id="sidebars" class="sidebar">
		<div class="well">
       
        <div id="search-2" class="widget widget_search"> 	
        <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"  name="txtBlogs" value="<?php echo $blogs; ?>" style="float: left;width:75%;margin-top:23px;margin-right:5px;"> &nbsp;<button type="submit" class="btn btn-default btn-md"  onClick="SearchBlogs()" ><i class="fa fa-search"></i></button>
          <input name="txtAction" id="txtAction" type="hidden">
        </div>
        </form>
        </div>		
        <div id="recent-posts-2" class="widget widget_recent_entries">		
        <h4 class="widget-title">Recent Posts</h4>
        <ul>
         <?php  for($i=0; $i<$no_of_blogs2; $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]); 
		//   $blog_title2[$i] = str_replace(",","",$blog_title2[$i]);
		// 

		
		// // ✅ safe usage
        if(function_exists('createSlug')) {
            $blog_title2[$i] = createSlug($blog_title2[$i]);
        }?>



         <li><a href="<?php echo $blog_id2[$i]; ?>-<?php echo str_replace(" ","",$blog_title2[$i]); ?>-blog.php"><?php echo $blog_title_org2[$i]; ?></a></li>
         <?php } ?>								
        </ul>
        </div>
        <br>
      <?php /*?>  <div id="categories-2" class="widget widget_categories">
        <h4 class="widget-title">Categories</h4>		
        
        <ul>
          <?php for($j=0; $j<$no_of_cat; $j++)  {  
		  $category_name[$j] = $category[$j];
		  $category[$j] = str_replace("-","",$category[$j]);
		  $category[$j] = str_replace(" ","-",$category[$j]); 
		  $category[$j] = str_replace("&","-",$category[$j]); 
		  $category[$j] = str_replace("(","",$category[$j]); 
		  $category[$j] = str_replace(")","",$category[$j]); 
		  $category[$j] = str_replace("?","",$category[$j]);?>
		<li class="cat-item cat-item-32"><a href="<?php echo $category_id[$j]; ?>-<?php echo str_replace(" ","",$category[$j]); ?>-cat.php"><?php echo $category_name[$j] ?></a></li>	
	 <?php } ?>	
		</ul><?php */?>
	 </div>		
</div>
	</div><!--sidebars-->
</aside>	