File "5a0414e7ec5751ee4f146bdf61d046a97778cb2c_0.file.layout-magazine.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/5a0414e7ec5751ee4f146bdf61d046a97778cb2c_0.file.layout-magazine.tmpl.php
File size: 4.24 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/* Smarty version 3.1.29, created on 2024-02-21 16:36:49
from "/srv/www/www.test.cadoro.it/src/templates/layout-magazine.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_65d61891cc5666_72183383',
'file_dependency' =>
array (
'5a0414e7ec5751ee4f146bdf61d046a97778cb2c' =>
array (
0 => '/srv/www/www.test.cadoro.it/src/templates/layout-magazine.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:layout-base.tmpl' => 1,
),
),false)) {
function content_65d61891cc5666_72183383 ($_smarty_tpl) {
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
0 => 'block_114872076165d61891cb3b08_55450388',
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-magazine.tmpl */
function block_78127582865d61891cc3884_51362107($_smarty_tpl, $_blockParentStack) {
}
/* {/block 'content-right'} */
/* {block 'content'} file:layout-magazine.tmpl */
function block_114872076165d61891cb3b08_55450388($_smarty_tpl, $_blockParentStack) {
?>
<h2 class="text-center mt0 mb20 hidden-print hidden-xs">
<small>
Visualizza i contenuti che ti interessano cliccando sulle icone
</small>
</h2>
<ul class="nav nav-pills nav-pills-magazine hidden-print">
<li role="presentation" class="text-center<?php if (!$_smarty_tpl->tpl_vars['category']->value) {?> active<?php }?>" style="width: <?php echo _float(100/(count($_smarty_tpl->tpl_vars['categories']->value)+1));?>
%;">
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/magazine" <?php if (!$_smarty_tpl->tpl_vars['category']->value) {?> style="background-color: #fff69f;"<?php }?>>
<div class="mb10"><img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/magazine-tutti.png" alt="TUTTE"></div>
tutti
</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" class="text-center<?php if ($_smarty_tpl->tpl_vars['category']->value && $_smarty_tpl->tpl_vars['category']->value['id'] == $_smarty_tpl->tpl_vars['c']->value['id']) {?> active<?php }?>" style="width: <?php echo _float(100/(count($_smarty_tpl->tpl_vars['categories']->value)+1));?>
%;">
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/magazine/<?php echo $_smarty_tpl->tpl_vars['c']->value['slug'];?>
" <?php if ($_smarty_tpl->tpl_vars['category']->value && $_smarty_tpl->tpl_vars['category']->value['id'] == $_smarty_tpl->tpl_vars['c']->value['id'] && $_smarty_tpl->tpl_vars['c']->value['color']) {?> style="background-color: <?php echo $_smarty_tpl->tpl_vars['c']->value['color'];?>
"<?php }?>>
<div class="mb10"><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'];?>
"></div>
<?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 class="mt20">
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content-right", array (
0 => 'block_78127582865d61891cc3884_51362107',
1 => false,
3 => 0,
2 => 0,
), $_blockParentStack);
?>
</div>
<?php
}
/* {/block 'content'} */
}