<div class="messages-wrapper messages-text pull-left" id="messageId_<?php echo $wo['message']['id'] ?>" data-message-id="<?php echo $wo['message']['id'] ?>">
   <?php  if($wo['message']['onwer'] == 1) { ?>
   <span  class=" <?php echo Wo_RightToLeft('pull-right');?>  ">
   <span class="deleteMessage" onclick="Wo_DeleteMessage(<?php echo $wo['message']['id'] ?>);">
   <i class="fa fa-trash-o progress-icon" data-icon="trash-o"></i>
   </span>
   </span>
   <?php  } ?>
   <a href="<?php echo Wo_SeoLink('index.php?tab1=timeline&u='.$wo['message']['messageUser']['username']);?>">
   <img class="user-avatar <?php echo Wo_RightToLeft('pull-left');?>" src="<?php echo $wo['message']['messageUser']['avatar'] ?>" alt="<?php echo $wo['message']['messageUser']['name'] ?> Profile Picture">
   <span class="name">
   <?php echo $wo['message']['messageUser']['name']; ?>
   </span>
   </a>
   <div class="time ajax-time" title="<?php echo date('c',$wo['message']['time']); ?>">
      <?php echo Wo_Time_Elapsed_String($wo['message']['time']);?>
   </div>
   <div class="clear"></div>
   <div class="message">
      <p class="message-text" dir="auto">
         <?php echo $wo['message']['text'] ?>
      </p>
      <div class="message-media">
         <div class="clear"></div>
          <?php
          if (isset($wo['message']['media']) && !empty($wo['message']['media'])) {
              $media = array(
                  'type' => 'message',
                  'storyId' => $wo['message']['id'],
                  'filename' => $wo['message']['media'],
                  'name' => $wo['message']['mediaFileName']
              );
              echo Wo_DisplaySharedFile($media);
          }
          ?>
      </div>
      <?php if($wo['message']['messageUser']['user_id'] == $wo['user']['user_id']) { ?>
      <div class="message-seen message-details"></div>
      <?php } ?>
   </div>
</div>
<div class="clear"></div>