File "742968195b3e58adfab9b38cc30a4a331a012c0f_0.file.profilo-preferiti.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/742968195b3e58adfab9b38cc30a4a331a012c0f_0.file.profilo-preferiti.tmpl.php
File size: 6.37 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/* Smarty version 3.1.29, created on 2024-02-24 17:27:07
from "/srv/www/www.cadoro.it/src/templates/profilo-preferiti.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_65da18db72e728_31921491',
'file_dependency' =>
array (
'742968195b3e58adfab9b38cc30a4a331a012c0f' =>
array (
0 => '/srv/www/www.cadoro.it/src/templates/profilo-preferiti.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:layout-base.tmpl' => 1,
),
),false)) {
function content_65da18db72e728_31921491 ($_smarty_tpl) {
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, 'title', array (
0 => 'block_1246042465da18db711215_37457295',
1 => false,
3 => 0,
2 => 0,
));
?>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "head", array (
0 => 'block_16817325165da18db713488_58222728',
1 => false,
3 => 0,
2 => 0,
));
?>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
0 => 'block_130291878565da18db714b83_12953795',
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 'title'} file:profilo-preferiti.tmpl */
function block_1246042465da18db711215_37457295($_smarty_tpl, $_blockParentStack) {
?>
I miei preferiti — CADORO<?php
}
/* {/block 'title'} */
/* {block 'head'} file:profilo-preferiti.tmpl */
function block_16817325165da18db713488_58222728($_smarty_tpl, $_blockParentStack) {
?>
<meta name="description" content="I miei preferiti — CADORO">
<meta name="author" content="">
<?php
}
/* {/block 'head'} */
/* {block 'content'} file:profilo-preferiti.tmpl */
function block_130291878565da18db714b83_12953795($_smarty_tpl, $_blockParentStack) {
?>
<div class="well well-red well-xxs mt20">
<div class="row">
<div class="col-sm-1">
<img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/btn-profilo-4.png" alt="" class="img-responsive">
</div>
<div class="col-sm-5">
<div class="mt15">
<strong>Contenuti preferiti</strong><br>
Le tue ricette e gli articoli del magazine
</div>
</div>
<div class="col-sm-6">
<img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/btn-profilo-3.png" alt="" class="pull-right hidden-xs hidden-sm" style="display: block; margin-right: -80px; margin-top: -20px; width: 100px; margin-left: 20px;">
<div class="mt15 text-right">
Il tuo numero tessera<br>
<strong><?php echo $_smarty_tpl->tpl_vars['principal']->value['card'];?>
</strong>
</div>
</div>
</div>
</div>
<div class="row mb60">
<?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['favourites']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_articles_1_saved_item = isset($_smarty_tpl->tpl_vars['favourite']) ? $_smarty_tpl->tpl_vars['favourite'] : false;
$__foreach_articles_1_saved_key = isset($_smarty_tpl->tpl_vars['j']) ? $_smarty_tpl->tpl_vars['j'] : false;
$_smarty_tpl->tpl_vars['favourite'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['j'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['favourite']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['j']->value => $_smarty_tpl->tpl_vars['favourite']->value) {
$_smarty_tpl->tpl_vars['favourite']->_loop = true;
$__foreach_articles_1_saved_local_item = $_smarty_tpl->tpl_vars['favourite'];
if ($_smarty_tpl->tpl_vars['j']->value%3 == $_smarty_tpl->tpl_vars['i']->value) {?>
<?php $_smarty_tpl->tpl_vars["article"] = new Smarty_Variable($_smarty_tpl->tpl_vars['favourite']->value['content'], null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "article", 0);?>
<?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['favourite'] = $__foreach_articles_1_saved_local_item;
}
if ($__foreach_articles_1_saved_item) {
$_smarty_tpl->tpl_vars['favourite'] = $__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;
}
?>
<?php if (!$_smarty_tpl->tpl_vars['favourites']->value) {?>
<div class="col-sm-12 mt20">
Non hai ancora nessun contenuto nella tua lista dei preferiti.
</div>
<?php }?>
</div>
<?php
}
/* {/block 'content'} */
}