 
 <head>
 <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
 </head>

 <div class="contenttitle">اخبار الصانع</div>
  <?php  
        	//$social_q= $this->fun->getall('posts','services');
        	if($posts!=FALSE){
        	  $x=0;
        	foreach($posts->result() as $row):
        	$x++;
            $name=str_replace('/','',$row->name_ar);
        	$name=str_replace('?','',$name);
        	$name=str_replace('!','',$name);
        	$name=str_replace(' ','_',$name);
		   
		   
       ?>

 <div class="imagecontent">
  <div class="image"><a href="<?php echo base_url();?>home/details/<?php echo $name?>/<?php echo $row->id?>"> <img src="<?php echo base_url();?>uploads/posts/small/<?php echo $row->pic?>" width="218" height="140" /></a>
   
 </div>
 <div class="deatails"> 
  <h3 style="padding:0px;margin-bottom:2px"><a href="<?php echo base_url();?>home/details/<?php echo $name?>/<?php echo $row->id?>" style="color:#65D54B"><?php echo $row->name_ar?></a></h3>

   <?php echo substr(strip_tags($row->details_ar),0,750);?>
   <br>
    <div class="more"><a href="<?php echo base_url();?>home/details/<?php echo $name?>/<?php echo $row->id?>">المزيد</a></div>

</div>
 <br />
 </div>
  <?php endforeach; }?>
 <br>
 <?php echo $this->pagination->create_links();?>
</div>
