73 lines
3.8 KiB
PHP
73 lines
3.8 KiB
PHP
<?php
|
|
/* Smarty version 3.1.39, created on 2023-06-22 13:37:35
|
|
from 'C:\xampp\htdocs\hotelcommerce\admin\themes\default\template\controllers\customer_threads\helpers\view\message.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.39',
|
|
'unifunc' => 'content_6494327f0505c0_33369844',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'c783d033e03e418d3b9e105e463b2d2d0cf68e96' =>
|
|
array (
|
|
0 => 'C:\\xampp\\htdocs\\hotelcommerce\\admin\\themes\\default\\template\\controllers\\customer_threads\\helpers\\view\\message.tpl',
|
|
1 => 1687433793,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_6494327f0505c0_33369844 (Smarty_Internal_Template $_smarty_tpl) {
|
|
if (!$_smarty_tpl->tpl_vars['message']->value['id_employee']) {?>
|
|
<?php $_smarty_tpl->_assignInScope('type', "customer");
|
|
} else { ?>
|
|
<?php $_smarty_tpl->_assignInScope('type', "employee");
|
|
}?>
|
|
|
|
<div class="message-item<?php if ($_smarty_tpl->tpl_vars['initial']->value) {?>-initial-body<?php }?>">
|
|
<?php if (!$_smarty_tpl->tpl_vars['initial']->value) {?>
|
|
<div class="message-avatar">
|
|
<div class="avatar-md">
|
|
<?php if ($_smarty_tpl->tpl_vars['type']->value == 'customer') {?>
|
|
<i class="icon-user icon-3x"></i>
|
|
<?php } else { ?>
|
|
<?php if ((isset($_smarty_tpl->tpl_vars['current_employee']->value->firstname))) {?><img src="<?php echo $_smarty_tpl->tpl_vars['message']->value['employee_image'];?>
|
|
" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current_employee']->value->firstname, ENT_QUOTES, 'UTF-8', true);?>
|
|
" /><?php }?>
|
|
<?php }?>
|
|
</div>
|
|
</div>
|
|
<?php }?>
|
|
<div class="message-body">
|
|
<?php if (!$_smarty_tpl->tpl_vars['initial']->value) {?>
|
|
<h4 class="message-item-heading">
|
|
<i class="icon-mail-reply text-muted"></i>
|
|
<?php if ($_smarty_tpl->tpl_vars['type']->value == 'customer') {?>
|
|
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['customer_name'], ENT_QUOTES, 'UTF-8', true);?>
|
|
|
|
<?php } else { ?>
|
|
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['employee_name'], ENT_QUOTES, 'UTF-8', true);?>
|
|
|
|
<?php }?>
|
|
</h4>
|
|
<?php }?>
|
|
<span class="message-date"> <i class="icon-calendar"></i> - <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0], array( array('date'=>$_smarty_tpl->tpl_vars['message']->value['date_add'],'full'=>0),$_smarty_tpl ) );?>
|
|
- <i class="icon-time"></i> <?php echo substr($_smarty_tpl->tpl_vars['message']->value['date_add'],11,5);?>
|
|
</span>
|
|
<?php if ((isset($_smarty_tpl->tpl_vars['message']->value['file_name']))) {?> <span class="message-product"> <i class="icon-link"></i> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['file_name'], ENT_QUOTES, 'UTF-8', true);?>
|
|
" class="_blank"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>"Attachment"),$_smarty_tpl ) );?>
|
|
</a></span><?php }?>
|
|
<?php if ((isset($_smarty_tpl->tpl_vars['message']->value['product_name']))) {?> <span class="message-attachment"> <i class="icon-book"></i> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['product_link'], ENT_QUOTES, 'UTF-8', true);?>
|
|
" class="_blank"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>"Product:"),$_smarty_tpl ) );?>
|
|
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['product_name'], ENT_QUOTES, 'UTF-8', true);?>
|
|
</a></span><?php }?>
|
|
<p class="message-item-text"><?php echo nl2br(htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['message'], ENT_QUOTES, 'UTF-8', true));?>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<?php }
|
|
}
|