<?php
/* Smarty version 3.1.29, created on 2016-10-26 21:29:48
  from "/var/www/fr8992/data/www/evomu.ru/views/templates/evomu/site/news.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5810f61cd74190_91022481',
  'file_dependency' => 
  array (
    '11067764535a09f8b71e9e834c55aeecd8ed6448' => 
    array (
      0 => '/var/www/fr8992/data/www/evomu.ru/views/templates/evomu/site/news.tpl',
      1 => 1476710778,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5810f61cd74190_91022481 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once '/var/www/fr8992/data/www/evomu.ru/library/Smarty/plugins/modifier.date_format.php';
?>

<?php if (empty($_smarty_tpl->tpl_vars['News']->value)) {?>
<h2><?php echo $_smarty_tpl->tpl_vars['Lang']->value['NewsListEmpty'];?>
</h2>
<?php } else { ?>
<div class="list-news">
    <?php
$_from = $_smarty_tpl->tpl_vars['News']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_article_0_saved_item = isset($_smarty_tpl->tpl_vars['article']) ? $_smarty_tpl->tpl_vars['article'] : false;
$_smarty_tpl->tpl_vars['article'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['article']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['article']->value) {
$_smarty_tpl->tpl_vars['article']->_loop = true;
$__foreach_article_0_saved_local_item = $_smarty_tpl->tpl_vars['article'];
?>
    <div class="news">
        <div class="ncontent">
            <div class="title"><?php echo $_smarty_tpl->tpl_vars['article']->value[0];?>
</div>
            <div class="text">
                <?php echo $_smarty_tpl->tpl_vars['article']->value[2];?>

            </div>
            <div class="info">
                <div class="social">
                    Поделиться: <?php echo '<script'; ?>
 type="text/javascript" src="http://yastatic.net/es5-shims/0.0.2/es5-shims.min.js" tppabs="http://yastatic.net/es5-shims/0.0.2/es5-shims.min.js" charset="utf-8"><?php echo '</script'; ?>
>
                    <?php echo '<script'; ?>
 type="text/javascript" src="http://yastatic.net/share2/share.js" tppabs="http://yastatic.net/share2/share.js" charset="utf-8"><?php echo '</script'; ?>
>
                    <div class="ya-share2" data-services="vkontakte,facebook,twitter" data-size="s"></div>
                </div>
                <div class="date">Дата: <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['article']->value[1],"%D %H:%M");?>
</div>
                <div class="clear"></div>
            </div>
        </div>
    </div>

    <?php
$_smarty_tpl->tpl_vars['article'] = $__foreach_article_0_saved_local_item;
}
if ($__foreach_article_0_saved_item) {
$_smarty_tpl->tpl_vars['article'] = $__foreach_article_0_saved_item;
}
?>
    <?php }?>
</div>
<?php if ($_smarty_tpl->tpl_vars['Paginator']->value['CountPage'] > 1) {?>
<div class="pagination">
    <ul>
        <?php
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? $_smarty_tpl->tpl_vars['Paginator']->value['CountPage']+1 - (1) : 1-($_smarty_tpl->tpl_vars['Paginator']->value['CountPage'])+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0) {
for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) {
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
            <?php if ($_smarty_tpl->tpl_vars['i']->value-1 == $_smarty_tpl->tpl_vars['Paginator']->value['ActivePage']) {?>
                <li><span><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</span></li>
            <?php } else { ?>
                <li>
                    <a href="/site/news/<?php echo $_smarty_tpl->tpl_vars['i']->value-1;?>
"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</a>
                </li>
            <?php }?>
        <?php }
}
?>

    </ul>
    <div class="clear"></div>
</div>
<?php }
echo $_smarty_tpl->tpl_vars['Lang']->value['SpecialInNews'];
}
}
