<?php
/* Smarty version 3.1.29, created on 2016-11-09 22:51:37
  from "C:\OpenServer\domains\LastExTeam\views\templates\default\widgets\Forum.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_58237e496cc473_04040961',
  'file_dependency' => 
  array (
    'f3615670526c89fc9b990b391c0a077263b8a474' => 
    array (
      0 => 'C:\\OpenServer\\domains\\LastExTeam\\views\\templates\\default\\widgets\\Forum.tpl',
      1 => 1478721075,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58237e496cc473_04040961 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once 'C:/OpenServer/domains/LastExTeam/library/Smarty/plugins\\modifier.date_format.php';
?>
<div id="last-msg" class="as-block">
<?php
$_from = $_smarty_tpl->tpl_vars['InWidgetForum']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_item_0_saved_item = isset($_smarty_tpl->tpl_vars['item']) ? $_smarty_tpl->tpl_vars['item'] : false;
$_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['item']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
$__foreach_item_0_saved_local_item = $_smarty_tpl->tpl_vars['item'];
?>
    <div class="msg">
        <div class="msg-ava">
        	<?php if ($_smarty_tpl->tpl_vars['item']->value['photo'] != '') {?>
                <img id="ava_forum" src="<?php echo $_smarty_tpl->tpl_vars['item']->value['photo'];?>
" alt="">
        	<?php }?>
        </div>
        <a href='<?php echo $_smarty_tpl->tpl_vars['item']->value['link'];?>
' target='_blank' ><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</a><br>
        <span class="clr">
        	<?php if ($_smarty_tpl->tpl_vars['item']->value['author'] != '') {?>
            	автор: <a target='_blank'><?php echo $_smarty_tpl->tpl_vars['item']->value['author'];?>
</a><br>
            <?php }?>
            дата: <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['date'],"%D %H:%M");?>

        </span>
    </div>
<?php
$_smarty_tpl->tpl_vars['item'] = $__foreach_item_0_saved_local_item;
}
if ($__foreach_item_0_saved_item) {
$_smarty_tpl->tpl_vars['item'] = $__foreach_item_0_saved_item;
}
?>

 
</div><?php }
}
