File: /home/temp/yarusvl.ru/compiled/orienta/6f0c8c9eb2622096ef6b1d9558ba536b52ec8d06_0.file.blog.tpl.php
<?php
/* Smarty version 3.1.34-dev-7, created on 2023-07-31 20:02:51
from '/home/yarusvl_ru_usr/data/www/yarusvl.ru/tpls/orienta/html/blog.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '3.1.34-dev-7',
'unifunc' => 'content_64c786cb4886f1_54409518',
'has_nocache_code' => false,
'file_dependency' =>
array (
'6f0c8c9eb2622096ef6b1d9558ba536b52ec8d06' =>
array (
0 => '/home/yarusvl_ru_usr/data/www/yarusvl.ru/tpls/orienta/html/blog.tpl',
1 => 1689851291,
2 => 'file',
),
),
'includes' =>
array (
'file:pagination.tpl' => 1,
),
),false)) {
function content_64c786cb4886f1_54409518 (Smarty_Internal_Template $_smarty_tpl) {
if ($_GET['type_post'] == "blog") {?>
<?php $_smarty_tpl->_assignInScope('canonical', "/blog" ,false ,2);?>
<?php } else { ?>
<?php $_smarty_tpl->_assignInScope('canonical', "/news" ,false ,2);
}?>
<h1 class="h1"><span data-page="<?php echo $_smarty_tpl->tpl_vars['page']->value->id;?>
"><?php if (htmlspecialchars($_smarty_tpl->tpl_vars['page']->value->name_h1, ENT_QUOTES, 'UTF-8', true)) {
echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value->name_h1, ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value->name, ENT_QUOTES, 'UTF-8', true);
}?></span></h1>
<div class="blog clearfix" itemscope itemtype="http://schema.org/Blog">
<meta itemprop="description" content="<?php if ($_smarty_tpl->tpl_vars['seo_filter_pattern']->value->meta_description) {
echo htmlspecialchars($_smarty_tpl->tpl_vars['seo_filter_pattern']->value->meta_description, ENT_QUOTES, 'UTF-8', true);
} elseif ($_smarty_tpl->tpl_vars['seo_link_meta_description']->value) {
echo htmlspecialchars($_smarty_tpl->tpl_vars['seo_link_meta_description']->value, ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars($_smarty_tpl->tpl_vars['meta_description']->value, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_meta']->value->description, ENT_QUOTES, 'UTF-8', true);
}?>" />
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['posts']->value, 'post');
$_smarty_tpl->tpl_vars['post']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['post']->value) {
$_smarty_tpl->tpl_vars['post']->do_else = false;
?>
<div class="blog_item no_padding col-sm-6 col-lg-4 col-xl-3" itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting">
<a class="blog_image" href="<?php echo $_smarty_tpl->tpl_vars['lang_link']->value;
echo $_GET['type_post'];?>
/<?php echo $_smarty_tpl->tpl_vars['post']->value->url;?>
">
<?php if ($_smarty_tpl->tpl_vars['post']->value->image) {?>
<img itemprop="image" class="blog_img" src="<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'resize' ][ 0 ], array( $_smarty_tpl->tpl_vars['post']->value->image,360,360,false,$_smarty_tpl->tpl_vars['config']->value->resized_blog_dir ));?>
" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value->name, ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value->name, ENT_QUOTES, 'UTF-8', true);?>
">
<?php }?>
</a>
<div class="blog_content" itemprop="articleBody">
<div class="h5">
<a href="<?php echo $_smarty_tpl->tpl_vars['lang_link']->value;
echo $_GET['type_post'];?>
/<?php echo $_smarty_tpl->tpl_vars['post']->value->url;?>
" data-post="<?php echo $_smarty_tpl->tpl_vars['post']->value->id;?>
">
<span itemprop="headline">
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value->name, ENT_QUOTES, 'UTF-8', true);?>
</span>
</a>
</div>
<div class="blog_date"><span itemprop="datePublished"><?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'date' ][ 0 ], array( $_smarty_tpl->tpl_vars['post']->value->date ));?>
</span></div>
<?php if ($_smarty_tpl->tpl_vars['post']->value->annotation) {?>
<div class="blog_annotation" itemprop="description">
<?php echo $_smarty_tpl->tpl_vars['post']->value->annotation;?>
</div>
<?php }?>
</div>
</div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</div>
<?php $_smarty_tpl->_subTemplateRender('file:pagination.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}