File "f1f853ff6df844002d3f06f7649a5424ccfbbdb6_0.file.magazine.tmpl.php"

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

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

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_65d62b158726f7_21503903',
  'file_dependency' => 
  array (
    'f1f853ff6df844002d3f06f7649a5424ccfbbdb6' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/magazine.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:layout-magazine.tmpl' => 1,
    'file:magazine-ajax.tmpl' => 1,
  ),
),false)) {
function content_65d62b158726f7_21503903 ($_smarty_tpl) {
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>


<?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, 'title', array (
  0 => 'block_122131787665d62b1584b4c6_77365003',
  1 => false,
  3 => 0,
  2 => 0,
));
?>


<?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "head", array (
  0 => 'block_71207644465d62b1584d846_20354019',
  1 => false,
  3 => 0,
  2 => 0,
));
?>


<?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content-right", array (
  0 => 'block_21287058365d62b1584f420_93632297',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

<?php $_smarty_tpl->ext->_inheritance->endChild($_smarty_tpl);
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:layout-magazine.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 2, false);
}
/* {block 'title'}  file:magazine.tmpl */
function block_122131787665d62b1584b4c6_77365003($_smarty_tpl, $_blockParentStack) {
?>
Magazine &mdash; CADORO<?php
}
/* {/block 'title'} */
/* {block 'head'}  file:magazine.tmpl */
function block_71207644465d62b1584d846_20354019($_smarty_tpl, $_blockParentStack) {
?>

<meta name="description" content="Magazine &mdash; CADORO">
<meta name="author" content="">
<?php
}
/* {/block 'head'} */
/* {block 'content-right'}  file:magazine.tmpl */
function block_21287058365d62b1584f420_93632297($_smarty_tpl, $_blockParentStack) {
?>

  <?php if ($_smarty_tpl->tpl_vars['focus']->value && $_smarty_tpl->tpl_vars['category']->value == '') {?>
  <div id="carousel" class="carousel hidden-xs slide mt30" data-interval="3000">
    <div class="carousel-inner">
      <?php
$_from = $_smarty_tpl->tpl_vars['focus']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_article_0_saved_item = isset($_smarty_tpl->tpl_vars['article']) ? $_smarty_tpl->tpl_vars['article'] : false;
$__foreach_article_0_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['article'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['article']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['article']->value) {
$_smarty_tpl->tpl_vars['article']->_loop = true;
$__foreach_article_0_saved_local_item = $_smarty_tpl->tpl_vars['article'];
?>
      <div class="item<?php if ($_smarty_tpl->tpl_vars['i']->value == 0) {?> active<?php }?>">
        <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"
           style="background-image: url(<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['article']->value['image_cover'];?>
);">
          <span class="magazine-item__title text-left"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</span>
        </a>
      </div>
      <?php
$_smarty_tpl->tpl_vars['article'] = $__foreach_article_0_saved_local_item;
}
if ($__foreach_article_0_saved_item) {
$_smarty_tpl->tpl_vars['article'] = $__foreach_article_0_saved_item;
}
if ($__foreach_article_0_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_article_0_saved_key;
}
?>
    </div>
    <?php if (count($_smarty_tpl->tpl_vars['focus']->value) > 1) {?>
    <div class="carousel-indicators-container-wrapper">
      <ol class="carousel-indicators">
        <?php
$_from = $_smarty_tpl->tpl_vars['focus']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_article_1_saved_item = isset($_smarty_tpl->tpl_vars['article']) ? $_smarty_tpl->tpl_vars['article'] : false;
$__foreach_article_1_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['article'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['article']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['article']->value) {
$_smarty_tpl->tpl_vars['article']->_loop = true;
$__foreach_article_1_saved_local_item = $_smarty_tpl->tpl_vars['article'];
?>
        <li data-target="#carousel" data-slide-to="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"<?php if ($_smarty_tpl->tpl_vars['i']->value == 0) {?> class="active"<?php }?>></li>
        <?php
$_smarty_tpl->tpl_vars['article'] = $__foreach_article_1_saved_local_item;
}
if ($__foreach_article_1_saved_item) {
$_smarty_tpl->tpl_vars['article'] = $__foreach_article_1_saved_item;
}
if ($__foreach_article_1_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_article_1_saved_key;
}
?>
      </ol>
    </div>
    <?php }?>
  </div>
  <?php } elseif ($_smarty_tpl->tpl_vars['banners']->value) {?>
  <div id="carousel" class="carousel hidden-xs slide mt30" data-interval="3000">
    <div class="carousel-inner">
      <?php
$_from = $_smarty_tpl->tpl_vars['banners']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_banner_2_saved_item = isset($_smarty_tpl->tpl_vars['banner']) ? $_smarty_tpl->tpl_vars['banner'] : false;
$__foreach_banner_2_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['banner'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['banner']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['banner']->value) {
$_smarty_tpl->tpl_vars['banner']->_loop = true;
$__foreach_banner_2_saved_local_item = $_smarty_tpl->tpl_vars['banner'];
?>
      <div class="item<?php if ($_smarty_tpl->tpl_vars['i']->value == 0) {?> active<?php }?>">
        <a href="<?php echo $_smarty_tpl->tpl_vars['banner']->value['href'];?>
"<?php if ($_smarty_tpl->tpl_vars['banner']->value['rel']) {?> rel="<?php echo $_smarty_tpl->tpl_vars['banner']->value['rel'];?>
"<?php }?>>
          <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['banner']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['banner']->value['title'];?>
" class="img-responsive">
        </a>
      </div>
      <?php
$_smarty_tpl->tpl_vars['banner'] = $__foreach_banner_2_saved_local_item;
}
if ($__foreach_banner_2_saved_item) {
$_smarty_tpl->tpl_vars['banner'] = $__foreach_banner_2_saved_item;
}
if ($__foreach_banner_2_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_banner_2_saved_key;
}
?>
    </div>
    <?php if (count($_smarty_tpl->tpl_vars['banners']->value) > 1) {?>
    <div class="carousel-indicators-container-wrapper">
      <ol class="carousel-indicators">
        <?php
$_from = $_smarty_tpl->tpl_vars['banners']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_banner_3_saved_item = isset($_smarty_tpl->tpl_vars['banner']) ? $_smarty_tpl->tpl_vars['banner'] : false;
$__foreach_banner_3_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['banner'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['banner']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['banner']->value) {
$_smarty_tpl->tpl_vars['banner']->_loop = true;
$__foreach_banner_3_saved_local_item = $_smarty_tpl->tpl_vars['banner'];
?>
        <li data-target="#carousel" data-slide-to="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"<?php if ($_smarty_tpl->tpl_vars['i']->value == 0) {?> class="active"<?php }?>></li>
        <?php
$_smarty_tpl->tpl_vars['banner'] = $__foreach_banner_3_saved_local_item;
}
if ($__foreach_banner_3_saved_item) {
$_smarty_tpl->tpl_vars['banner'] = $__foreach_banner_3_saved_item;
}
if ($__foreach_banner_3_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_banner_3_saved_key;
}
?>
      </ol>
    </div>
    <?php }?>
  </div>
  <?php }?>
  
  <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:magazine-ajax.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

  <?php if (!$_smarty_tpl->tpl_vars['articles']->value) {?>
  <p class="mt40">
    Nessun articolo trovato.
  </p>
  <?php }
}
/* {/block 'content-right'} */
}