File "858c35f2509b5e8ae43298485fd1f0658bb1d96b_0.file.magazine-ajax.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/858c35f2509b5e8ae43298485fd1f0658bb1d96b_0.file.magazine-ajax.tmpl.php
File size: 5.49 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/* Smarty version 3.1.29, created on 2024-02-21 17:55:22
  from "/srv/www/www.cadoro.it/src/templates/magazine-ajax.tmpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_65d62afa567463_21761062',
  'file_dependency' => 
  array (
    '858c35f2509b5e8ae43298485fd1f0658bb1d96b' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/magazine-ajax.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:pagination-scroll.tmpl' => 1,
  ),
),false)) {
function content_65d62afa567463_21761062 ($_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['articles']->value) {?>
  <?php $_smarty_tpl->tpl_vars["articles_"] = new Smarty_Variable($_smarty_tpl->tpl_vars['articles']->value, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "articles_", 0);?>
  <?php if ($_smarty_tpl->tpl_vars['params']->value['offset'] == 0 && false) {?>
  <?php $_smarty_tpl->tpl_vars["article"] = new Smarty_Variable(array_shift($_smarty_tpl->tpl_vars['articles_']->value), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "article", 0);?>
  <div class="mt20">
    <?php $_smarty_tpl->tpl_vars["c"] = new Smarty_Variable($_smarty_tpl->tpl_vars['article']->value->get_category(), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "c", 0);?>
    <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/magazine/<?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="magazine-item magazine-item-<?php echo $_smarty_tpl->tpl_vars['c']->value['slug'];?>
 magazine-item-focus mb40"
       style="background-image: url(<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_list'];?>
);">
      <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['c']->value['image_list'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['c']->value['title'];?>
" class="magazine-item__category">
      <span class="magazine-item__title"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</span>
    </a>
  </div>
  <?php }?>
  <div class="row">
    <?php
$_from = array(0,1,2);
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_i_0_saved_item = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value) {
$_smarty_tpl->tpl_vars['i']->_loop = true;
$__foreach_i_0_saved_local_item = $_smarty_tpl->tpl_vars['i'];
?>
    <div class="col-sm-4 mt20">
      <?php
$_from = $_smarty_tpl->tpl_vars['articles_']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_articles_1_saved_item = isset($_smarty_tpl->tpl_vars['article']) ? $_smarty_tpl->tpl_vars['article'] : false;
$__foreach_articles_1_saved_key = isset($_smarty_tpl->tpl_vars['j']) ? $_smarty_tpl->tpl_vars['j'] : false;
$_smarty_tpl->tpl_vars['article'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['j'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['article']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['j']->value => $_smarty_tpl->tpl_vars['article']->value) {
$_smarty_tpl->tpl_vars['article']->_loop = true;
$__foreach_articles_1_saved_local_item = $_smarty_tpl->tpl_vars['article'];
if ($_smarty_tpl->tpl_vars['j']->value%3 == $_smarty_tpl->tpl_vars['i']->value) {?>
      <?php $_smarty_tpl->tpl_vars["c"] = new Smarty_Variable($_smarty_tpl->tpl_vars['article']->value->get_category(), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "c", 0);?>
      <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/magazine/<?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="magazine-item magazine-item-<?php echo $_smarty_tpl->tpl_vars['c']->value['slug'];?>
 mb40"
         style="background-image: url(<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_list'];?>
);">
        <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['c']->value['image_list'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['c']->value['title'];?>
" class="magazine-item__category">
        <span class="magazine-item__title"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</span>
      </a>
      <?php }
$_smarty_tpl->tpl_vars['article'] = $__foreach_articles_1_saved_local_item;
}
if ($__foreach_articles_1_saved_item) {
$_smarty_tpl->tpl_vars['article'] = $__foreach_articles_1_saved_item;
}
if ($__foreach_articles_1_saved_key) {
$_smarty_tpl->tpl_vars['j'] = $__foreach_articles_1_saved_key;
}
?>
    </div>
    <?php
$_smarty_tpl->tpl_vars['i'] = $__foreach_i_0_saved_local_item;
}
if ($__foreach_i_0_saved_item) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_i_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 }
}
}