{include file="header.html"} {include file="data/ui.html"} {include file="data/magnific-popup.html"}

{$lng.useraccount.messages}

{* end col-4 *}
{include file="paginator.html"}
{* end search box *}
{* end tt *}
{* end page_bounds *}
{foreach from=$messages_array item=v}
{if $v.from!=$crt_usr}
{$lng.general.received}
{else}
{$lng.general.sent}
{/if} {if $v.to == $crt_usr && $v.report==1}
{$lng.messages.spam}
{/if}
{if isset($v.ad_id) && $v.ad_id}{$lng.messages.started_for_listing}: {$v.title}{/if}

{if $appearance.charset=="UTF-8"}{$v.message|strip_tags|mb_truncate:400:"...":"UTF-8"}{else}{$v.messages|strip_tags|truncate:400:"...":false}{/if}

{$lng.listings.id}: #{$v.msg_id}
{if $v.from!=$crt_usr} {$lng.messages.from}: {if $v.from}{$v.contact_name}, {$v.email}{else}{$v.from_email}{/if}
{else} {$lng.messages.to}: {if $v.to}{$v.to_contact_name}, {$v.to_email}{else}{$v.to_email}{/if}
{/if} {if $v.from_phone}{$lng.contact.phone}: {$v.from_phone}{/if}
{$v.date_nice}
{* end item_details *}
{* end vcenter *}
{if $v.to == $crt_usr} {$lng.general.reply} {/if} {if $v.to == $crt_usr && $v.report==0}{$lng.messages.report_spam}{/if} {if $v.to == $crt_usr} {$lng.general.delete} {/if}
{* end item-actions *} {* end status_btns *}
{* end item-bottom *}
{* end item *} {/foreach} {if $no_messages}
{include file="paginator.html"}
{$lng.general.show} {$lng.general.on_a_page}
{else}
{$lng.messages.no_messages}
{/if}
{* end page_bounds *}
{* end wbg *}
{include file="js/messages_js.html"} {include file="footer.html"}