<?php
/* Smarty version 4.5.3, created on 2025-02-09 13:20:32
  from '/home/w/wmaster77/corp.site-77.ru/public_html/design/default/html/blog.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_67a8817065b838_10846279',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'a13224defcaafcf6ebb89f3aae35de88a4338c58' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/design/default/html/blog.tpl',
      1 => 1728328673,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:breadcrumbs.tpl' => 1,
    'file:pagination.tpl' => 1,
  ),
),false)) {
function content_67a8817065b838_10846279 (Smarty_Internal_Template $_smarty_tpl) {
?><section class="section section--page pt-0">
    <div class="container">
        <?php $_smarty_tpl->_subTemplateRender("file:breadcrumbs.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
        <div class="section__head mb-md-5 mb-4">
            <h2 class="h2">Блог</h2>
        </div>
        <div class="row g-4 flex-md-row flex-column-reverse">
            <div class="col-lg-9 col-md-8 col-12">
                <div class="row row-cols-lg-3 row-cols-md-2 row-cols-1 g-4">
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['posts']->value, 'item');
$_smarty_tpl->tpl_vars['item']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->do_else = false;
?>
                        <div class="col">
                            <a href="/blog/<?php echo $_smarty_tpl->tpl_vars['item']->value->url;?>
" class="blog">
                                <span class="blog__cat-label"><?php echo $_smarty_tpl->tpl_vars['categories']->value[$_smarty_tpl->tpl_vars['item']->value->categories];?>
</span>
                                <img src="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'resize' ][ 0 ], array( $_smarty_tpl->tpl_vars['item']->value->image,550,370,'crop' ));?>
" alt="" class="blog__picture img-fluid">
                                <span class="blog__content">
                                    <span class="blog__cat">Автор: <?php echo $_smarty_tpl->tpl_vars['item']->value->author;?>
</span>

                                    <span class="blog__title blog__title--sm">
                                        <?php echo $_smarty_tpl->tpl_vars['item']->value->name;?>

                                    </span>

                                    <span class="blog__date"><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'date' ][ 0 ], array( $_smarty_tpl->tpl_vars['item']->value->added ));?>
</span>
                                </span>
                            </a>
                        </div>
                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                </div>
            </div>
            <div class="col-lg-3 col-md-4 col-12 d-flex flex-column blog__sidebar">
                <form method="get" action="/blog" class="blog__sidebar-form d-flex flex-column">
                    <input class="blog__sidebar-search form-control" type="text" name="keyword" value="<?php if (!empty($_smarty_tpl->tpl_vars['keyword']->value)) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['keyword']->value, ENT_QUOTES, 'UTF-8', true);
}?>" placeholder="Поиск по статьям">
                    <button type="submit" class="blog__sidebar-button button button-primary justify-content-center">Искать</button>
                </form>
                <div class="blog__sidebar-categories">
                    <h3>Категории</h3>
                    <div class="blog__categories-list">
                        <a href="/blog">Все</a>
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['categories']->value, 'name', true, 'url');
$_smarty_tpl->tpl_vars['name']->iteration = 0;
$_smarty_tpl->tpl_vars['name']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['url']->value => $_smarty_tpl->tpl_vars['name']->value) {
$_smarty_tpl->tpl_vars['name']->do_else = false;
$_smarty_tpl->tpl_vars['name']->iteration++;
$_smarty_tpl->tpl_vars['name']->last = $_smarty_tpl->tpl_vars['name']->iteration === $_smarty_tpl->tpl_vars['name']->total;
$__foreach_name_1_saved = $_smarty_tpl->tpl_vars['name'];
?>
                            <a href="/blog?category=<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['name']->value;?>
</a> <?php if (!$_smarty_tpl->tpl_vars['name']->last) {
}?>
                        <?php
$_smarty_tpl->tpl_vars['name'] = $__foreach_name_1_saved;
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                    </div>
                </div>
                <div class="blog__sidebar-tags">
                    <h3>Теги</h3>
                    <div class="blog__tags-list">
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tags']->value, 't', true);
$_smarty_tpl->tpl_vars['t']->iteration = 0;
$_smarty_tpl->tpl_vars['t']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['t']->value) {
$_smarty_tpl->tpl_vars['t']->do_else = false;
$_smarty_tpl->tpl_vars['t']->iteration++;
$_smarty_tpl->tpl_vars['t']->last = $_smarty_tpl->tpl_vars['t']->iteration === $_smarty_tpl->tpl_vars['t']->total;
$__foreach_t_2_saved = $_smarty_tpl->tpl_vars['t'];
?>
                            <a href="/blog?tag=<?php echo $_smarty_tpl->tpl_vars['t']->value;?>
">#<?php echo $_smarty_tpl->tpl_vars['t']->value;?>
</a><?php if (!$_smarty_tpl->tpl_vars['t']->last) {
}?>
                        <?php
$_smarty_tpl->tpl_vars['t'] = $__foreach_t_2_saved;
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                    </div>
                </div>
            </div>
        </div>
        <?php $_smarty_tpl->_subTemplateRender('file:pagination.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
    </div>
</section>
<?php }
}
