<?php
/* Smarty version 3.1.33, created on 2020-07-05 13:05:54
  from '/Users/codeworldweb.com/websites/uvocorp/content/themes/_partials/_header.messages.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5f01d032c231b2_11555056',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '96ada044dcb78bbe685be6bdd54c22384fc19bcb' => 
    array (
      0 => '/Users/codeworldweb.com/websites/uvocorp/content/themes/_partials/_header.messages.tpl',
      1 => 1592297058,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:_partials/__feeds_message.tpl' => 1,
  ),
),false)) {
function content_5f01d032c231b2_11555056 (Smarty_Internal_Template $_smarty_tpl) {
?><li class="dropdown js_live-messages">
    <a href="#" data-toggle="dropdown" data-display="static">
        <i class="fa fa-comments fa-lg"></i>
        <span class="label <?php if ($_smarty_tpl->tpl_vars['user']->value['live_messages_counter'] == 0) {?>hidden<?php }?>"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['live_messages_counter'], ENT_QUOTES, 'UTF-8');?>
</span>
    </a>
    <div class="dropdown-menu dropdown-menu-right dropdown-widget with-arrow">
        <div class="dropdown-widget-header">
            <span class="title">Messages</span>
        </div>
        <div class="dropdown-widget-body">
            <div class="js_scroller">
                <?php if ($_smarty_tpl->tpl_vars['user_messages']->value) {?>
                    <ul>
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['user_messages']->value, 'message');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['message']->value) {
?>
                            <?php $_smarty_tpl->_subTemplateRender('file:_partials/__feeds_message.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true);
?>
                        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                    </ul>
                <?php } else { ?>
                    <p class="text-center text-muted mt10">No messages</p>
                <?php }?>
            </div>
        </div>
    </div>
</li><?php }
}
