<?php
/**
 * Open Source Social Network
 *
 * @package   (openteknik.com).ossn
 * @author    OSSN Core Team <info@openteknik.com>
 * @copyright (C) OpenTeknik LLC
 * @license   Open Source Social Network License (OSSN LICENSE)  http://www.opensource-socialnetwork.org/licence
 * @link      https://www.opensource-socialnetwork.org/
 */
 $args = array(
		'instance' => (isset($params['instance']) ? $params['instance'] : ''),
		'view' => 'chat/message-item-send',
 );
 if(!isset($params['class'])){
		$params['class'] = ''; 
 }
?>
<div class="message-reciever" id="ossn-message-item-<?php echo $params['id'];?>">
    <div class="user-icon">
        <img class="user-icon-smaller" src="<?php echo $params['reciever']->iconURL()->smaller; ?>"/>
    </div>
    <div class="ossn-chat-text-data">
        <div class="ossn-chat-triangle ossn-chat-triangle-white"></div>
        <div class="text <?php echo $params['class'];?>">
            <div class="inner" title="<?php echo OssnChat::messageTime($params['time']); ?>">
            	<?php if(isset($params['deleted']) && $params['deleted']){ ?>
                	<span><i class="fa fa-times-circle"></i><?php echo ossn_print('ossnmessages:deleted');?></span>
                <?php } else { ?>
	                <span><?php echo ossn_call_hook('chat', 'message:smilify', $args, ossn_message_print($params['message'])); ?></span>
                <?php } ?>                  
            </div>
        </div>
    </div>
</div>
