File "b73cb29b71e7bf15cf933b2b1be8a311c0c03c38_0.file.news-ajax.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/b73cb29b71e7bf15cf933b2b1be8a311c0c03c38_0.file.news-ajax.tmpl.php
File size: 2.33 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/* Smarty version 3.1.29, created on 2024-02-21 17:54:35
from "/srv/www/www.cadoro.it/src/templates/news-ajax.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_65d62acb2c6e13_99965468',
'file_dependency' =>
array (
'b73cb29b71e7bf15cf933b2b1be8a311c0c03c38' =>
array (
0 => '/srv/www/www.cadoro.it/src/templates/news-ajax.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:pagination-scroll.tmpl' => 1,
),
),false)) {
function content_65d62acb2c6e13_99965468 ($_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['articles']->value) {?>
<div class="row">
<?php
$_from = $_smarty_tpl->tpl_vars['articles']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_articles_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_articles_0_saved_local_item = $_smarty_tpl->tpl_vars['article'];
?>
<div class="col-sm-4 mt20 mb40">
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/news/<?php echo _a($_smarty_tpl->tpl_vars['article']->value->get_category(),'slug');?>
/<?php echo $_smarty_tpl->tpl_vars['article']->value['slug'];?>
-<?php echo $_smarty_tpl->tpl_vars['article']->value['id'];?>
" class="news-item" style="background-image: url(<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_list'];?>
);">
<span class="news-item__title"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</span>
</a>
</div>
<?php
$_smarty_tpl->tpl_vars['article'] = $__foreach_articles_0_saved_local_item;
}
if ($__foreach_articles_0_saved_item) {
$_smarty_tpl->tpl_vars['article'] = $__foreach_articles_0_saved_item;
}
?>
</div>
<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:pagination-scroll.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<?php }
}
}