File "2a4b64d7a66e4513465faf8299b556b36d0f38c8_0.file.layout-news.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/2a4b64d7a66e4513465faf8299b556b36d0f38c8_0.file.layout-news.tmpl.php
File size: 5.11 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/* Smarty version 3.1.29, created on 2024-02-21 17:47:03
  from "/srv/www/www.cadoro.it/src/templates/layout-news.tmpl" */

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


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

<?php $_smarty_tpl->ext->_inheritance->endChild($_smarty_tpl);
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:layout-base.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 2, false);
}
/* {block 'content-right'}  file:layout-news.tmpl */
function block_66638589865d62907516845_01189403($_smarty_tpl, $_blockParentStack) {
}
/* {/block 'content-right'} */
/* {block 'content'}  file:layout-news.tmpl */
function block_8860202165d62907509f28_96394754($_smarty_tpl, $_blockParentStack) {
?>

  <div class="row">
    <div class="col-sm-10 mt20">
      <ul class="nav nav-pills">
        <li role="presentation"<?php if (!$_smarty_tpl->tpl_vars['category']->value) {?> class="active"<?php }?>><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/news">TUTTE</a></li>
        <?php
$_from = $_smarty_tpl->tpl_vars['categories']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_c_0_saved_item = isset($_smarty_tpl->tpl_vars['c']) ? $_smarty_tpl->tpl_vars['c'] : false;
$_smarty_tpl->tpl_vars['c'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['c']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['c']->value) {
$_smarty_tpl->tpl_vars['c']->_loop = true;
$__foreach_c_0_saved_local_item = $_smarty_tpl->tpl_vars['c'];
?>
        <li role="presentation"<?php if ($_smarty_tpl->tpl_vars['category']->value && $_smarty_tpl->tpl_vars['category']->value['id'] == $_smarty_tpl->tpl_vars['c']->value['id']) {?> class="active"<?php }?>><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/news/<?php echo $_smarty_tpl->tpl_vars['c']->value['slug'];?>
"><?php echo $_smarty_tpl->tpl_vars['c']->value['title'];?>
</a></li>
        <?php
$_smarty_tpl->tpl_vars['c'] = $__foreach_c_0_saved_local_item;
}
if ($__foreach_c_0_saved_item) {
$_smarty_tpl->tpl_vars['c'] = $__foreach_c_0_saved_item;
}
?>
      </ul>
    </div>
    <?php if ($_smarty_tpl->tpl_vars['archive']->value) {?>
    <div class="col-sm-2 text-right clearfix mt20 hidden-xs">
      <ul class="nav nav-pills pull-right">
        <li>
          <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/news" data-toggle="dropdown">
            <?php if ($_smarty_tpl->tpl_vars['year']->value) {?>ANNO: <?php echo $_smarty_tpl->tpl_vars['year']->value;
} else { ?>ANNO<?php }?> <span class="caret"></span>
          </a>
          <ul class="dropdown-menu dropdown-menu-right">
            <li>
              <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/news" style="padding: 10px;">TUTTI GLI ANNI</a>
            </li>
            <?php
$_from = $_smarty_tpl->tpl_vars['archive']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_months_1_saved_item = isset($_smarty_tpl->tpl_vars['months']) ? $_smarty_tpl->tpl_vars['months'] : false;
$__foreach_months_1_saved_key = isset($_smarty_tpl->tpl_vars['y']) ? $_smarty_tpl->tpl_vars['y'] : false;
$_smarty_tpl->tpl_vars['months'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['y'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['months']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['y']->value => $_smarty_tpl->tpl_vars['months']->value) {
$_smarty_tpl->tpl_vars['months']->_loop = true;
$__foreach_months_1_saved_local_item = $_smarty_tpl->tpl_vars['months'];
?>
            <li>
              <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/news/<?php echo $_smarty_tpl->tpl_vars['y']->value;?>
" style="padding: 10px;">ANNO: <?php echo $_smarty_tpl->tpl_vars['y']->value;?>
</a>
            </li>
            <?php
$_smarty_tpl->tpl_vars['months'] = $__foreach_months_1_saved_local_item;
}
if ($__foreach_months_1_saved_item) {
$_smarty_tpl->tpl_vars['months'] = $__foreach_months_1_saved_item;
}
if ($__foreach_months_1_saved_key) {
$_smarty_tpl->tpl_vars['y'] = $__foreach_months_1_saved_key;
}
?>
          </ul>
        </li>
      </ul>
    </div>
    <?php }?>
  </div>
  <div class="mt20">
    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content-right", array (
  0 => 'block_66638589865d62907516845_01189403',
  1 => false,
  3 => 0,
  2 => 0,
), $_blockParentStack);
?>

  </div>
<?php
}
/* {/block 'content'} */
}