<div class="modal fade" id="edit-post" role="dialog">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <h4 class="modal-title"><i class="fa fa-pencil"></i> <?php echo $wo['lang']['edit_post']; ?></h4>
         </div>
         <div class="modal-body edit-textarea-<?php echo $wo['story']['id'];?>">
            <textarea class="form-control" placeholder="Edit Post" dir="auto" ><?php echo $wo['story']['Orginaltext']?></textarea>
            <div class="editer-emo" dir="auto">
               <?php  
               foreach ($wo['emo'] as $code => $name) {
                 echo  '<span onclick="Wo_AddEmo(\'' . $code . '\',\'.edit-textarea-' . $wo['story']['id'] . ' textarea\');"><i class="pointer twa-lg twa twa-' . $name . '"></i></span>';
               } 
               ?>
            </div>
         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-main-color btn-main" id="edit-post-button" onclick="Wo_EditPost(<?php echo $wo['story']['id'];?>)" ><i class="fa fa-pencil progress-icon" data-icon="pencil"></i> <?php echo $wo['lang']['update']; ?></button>
            <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $wo['lang']['cancel']; ?></button>
         </div>
      </div>
   </div>
</div>