File "6725f110850d69a5858c8b4985945a2b15353d98_0.file.home-ajax.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/6725f110850d69a5858c8b4985945a2b15353d98_0.file.home-ajax.tmpl.php
File size: 7.68 KB
MIME-type: text/x-php
Charset: utf-8

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

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_65d627743bb7d9_08598171',
  'file_dependency' => 
  array (
    '6725f110850d69a5858c8b4985945a2b15353d98' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/home-ajax.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:pagination-click.tmpl' => 1,
  ),
),false)) {
function content_65d627743bb7d9_08598171 ($_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['articles']->value) {?>
  <!-- desktop -->
  <div class="row hidden-xs">
    <?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'];
?>
        <?php if (_home_columns($_smarty_tpl->tpl_vars['j']->value,$_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);?>
          <?php if ($_smarty_tpl->tpl_vars['c']->value['category_id'] == 1) {?>
          <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 } else { ?>
          <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 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'];?>
);">
            <span class="news-item__title"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</span>
          </a>
          <?php }?>
        <?php }?>
      <?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>
  <!-- fine desktop -->
  <!-- mobile -->
  <div class="row visible-xs">
    <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_2_saved_item = isset($_smarty_tpl->tpl_vars['article']) ? $_smarty_tpl->tpl_vars['article'] : false;
$__foreach_articles_2_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_2_saved_local_item = $_smarty_tpl->tpl_vars['article'];
?>
        <?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);?>
        <?php if ($_smarty_tpl->tpl_vars['c']->value['category_id'] == 1) {?>
        <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 } else { ?>
        <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 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'];?>
);">
          <span class="news-item__title"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</span>
        </a>
        <?php }?>
      <?php
$_smarty_tpl->tpl_vars['article'] = $__foreach_articles_2_saved_local_item;
}
if ($__foreach_articles_2_saved_item) {
$_smarty_tpl->tpl_vars['article'] = $__foreach_articles_2_saved_item;
}
if ($__foreach_articles_2_saved_key) {
$_smarty_tpl->tpl_vars['j'] = $__foreach_articles_2_saved_key;
}
?>
    </div>
  </div>
  <!-- fine mobile -->
  <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:pagination-click.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<?php }
}
}