File "d1f3436bc3949ac00d371fa071a70abed0ee431d_0.file.cms-content.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/d1f3436bc3949ac00d371fa071a70abed0ee431d_0.file.cms-content.tmpl.php
File size: 39.38 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/cms-content.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_65d62774379a84_36893298',
'file_dependency' =>
array (
'd1f3436bc3949ac00d371fa071a70abed0ee431d' =>
array (
0 => '/srv/www/www.cadoro.it/src/templates/cms-content.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:magazine-ajax.tmpl' => 1,
),
),false)) {
function content_65d62774379a84_36893298 ($_smarty_tpl) {
$_from = $_smarty_tpl->tpl_vars['page']->value->content();
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_content_0_saved_item = isset($_smarty_tpl->tpl_vars['content']) ? $_smarty_tpl->tpl_vars['content'] : false;
$_smarty_tpl->tpl_vars['content'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['content']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['content']->value) {
$_smarty_tpl->tpl_vars['content']->_loop = true;
$__foreach_content_0_saved_local_item = $_smarty_tpl->tpl_vars['content'];
if (($_smarty_tpl->tpl_vars['content']->value['condition'] == 1 || $_smarty_tpl->tpl_vars['content']->value['condition'] == 2 && !$_smarty_tpl->tpl_vars['principal']->value || $_smarty_tpl->tpl_vars['content']->value['condition'] == 3 && $_smarty_tpl->tpl_vars['principal']->value) && (isset($_smarty_tpl->tpl_vars['content']->value['published']) && $_smarty_tpl->tpl_vars['content']->value['published']) && (!isset($_smarty_tpl->tpl_vars['content']->value['published']) || !$_smarty_tpl->tpl_vars['content']->value['published_datetime'] || $_smarty_tpl->tpl_vars['content']->value['published_datetime'] <= date('Y-m-d H:i:s')) && (!isset($_smarty_tpl->tpl_vars['content']->value['published2']) || !$_smarty_tpl->tpl_vars['content']->value['published_datetime2'] || $_smarty_tpl->tpl_vars['content']->value['published_datetime2'] > date('Y-m-d H:i:s'))) {?>
<?php if (isset($_smarty_tpl->tpl_vars['content']->value['slug']) && $_smarty_tpl->tpl_vars['content']->value['slug']) {?><a name="<?php echo $_smarty_tpl->tpl_vars['content']->value['slug'];?>
"></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['type'] == 1) {?>
<header id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="intro<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>"<?php if ($_smarty_tpl->tpl_vars['content']->value['image']) {?> style="background-image: url(<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image'];?>
);"<?php }?>>
<div class="intro-body">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<?php if ($_smarty_tpl->tpl_vars['content']->value['title']) {?>
<h1 class="brand-heading"><?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
</h1>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['subtitle']) {?>
<p class="intro-text"><?php echo $_smarty_tpl->tpl_vars['content']->value['subtitle'];?>
</p>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['cta']) {?>
<a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['cta_link'];?>
" class="btn btn-default page-scroll">
<?php echo $_smarty_tpl->tpl_vars['content']->value['cta'];?>
</a>
<?php }?>
</div>
</div>
</div>
</div>
</header>
<?php } elseif ($_smarty_tpl->tpl_vars['content']->value['type'] == 11) {?>
<section id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="container content-section<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>">
<div class="row">
<div class="col-sm-12">
<?php if ($_smarty_tpl->tpl_vars['content']->value['title'] || $_smarty_tpl->tpl_vars['content']->value['subtitle']) {?>
<h2 class="h2">
<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['subtitle']) {?>
<small<?php if ($_smarty_tpl->tpl_vars['content']->value['title']) {?> class="mt10"<?php }?>><?php echo $_smarty_tpl->tpl_vars['content']->value['subtitle'];?>
</small>
<?php }?>
</h2>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['image']) {?>
<div class="text-center">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?></a><?php }?>
</div>
<?php }?>
<div class="content mt30">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_1'];?>
</div>
<?php if ($_smarty_tpl->tpl_vars['content']->value['cta']) {?>
<p class="mt30">
<a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['cta_link'];?>
" class="btn btn-default page-scroll">
<?php echo $_smarty_tpl->tpl_vars['content']->value['cta'];?>
</a>
</p>
<?php }?>
</div>
</div>
</section>
<?php } elseif ($_smarty_tpl->tpl_vars['content']->value['type'] == 12) {?>
<section id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="container content-section<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>">
<div class="row">
<div class="col-sm-12">
<?php if ($_smarty_tpl->tpl_vars['content']->value['title']) {?>
<h2>
<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['subtitle']) {?>
<small class="mt10"><?php echo $_smarty_tpl->tpl_vars['content']->value['subtitle'];?>
</small>
<?php }?>
</h2>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['image']) {?>
<div class="text-center">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?></a><?php }?>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['cta']) {?>
<p class="mt30">
<a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['cta_link'];?>
" class="btn btn-default page-scroll">
<?php echo $_smarty_tpl->tpl_vars['content']->value['cta'];?>
</a>
</p>
<?php }?>
</div>
</div>
<div>
<div class="col-sm-6 content">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_1'];?>
</div>
<div class="col-sm-6 content">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_2'];?>
</div>
</div>
</section>
<?php } elseif ($_smarty_tpl->tpl_vars['content']->value['type'] == 13) {?>
<section id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="container content-section<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>">
<div class="row">
<div class="col-sm-12">
<?php if ($_smarty_tpl->tpl_vars['content']->value['title']) {?>
<h2>
<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['subtitle']) {?>
<small class="mt10"><?php echo $_smarty_tpl->tpl_vars['content']->value['subtitle'];?>
</small>
<?php }?>
</h2>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['image']) {?>
<div class="text-center">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?></a><?php }?>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['cta']) {?>
<p class="mt30">
<a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['cta_link'];?>
" class="btn btn-default page-scroll">
<?php echo $_smarty_tpl->tpl_vars['content']->value['cta'];?>
</a>
</p>
<?php }?>
</div>
</div>
<div>
<div class="col-sm-4 content">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_1'];?>
</div>
<div class="col-sm-4 content">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_2'];?>
</div>
<div class="col-sm-4 content">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_3'];?>
</div>
</div>
</section>
<?php } elseif ($_smarty_tpl->tpl_vars['content']->value['type'] == 21 || $_smarty_tpl->tpl_vars['content']->value['type'] == 23) {?>
<section id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="container content-section<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>">
<div class="row">
<div class="col-sm-<?php if ($_smarty_tpl->tpl_vars['content']->value['type'] == 21) {?>6<?php } else { ?>8<?php }?>">
<?php if ($_smarty_tpl->tpl_vars['content']->value['title']) {?>
<h2 class="mt40">
<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['subtitle']) {?>
<small class="mt10"><?php echo $_smarty_tpl->tpl_vars['content']->value['subtitle'];?>
</small>
<?php }?>
</h2>
<?php }?>
<div class="content">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_1'];?>
</div>
<?php if ($_smarty_tpl->tpl_vars['content']->value['cta']) {?>
<p class="mt40">
<a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['cta_link'];?>
" class="btn btn-default page-scroll">
<?php echo $_smarty_tpl->tpl_vars['content']->value['cta'];?>
</a>
</p>
<?php }?>
</div>
<div class="col-sm-<?php if ($_smarty_tpl->tpl_vars['content']->value['type'] == 21) {?>6<?php } else { ?>4<?php }?>">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image']) {?>
<div class="text-center">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?></a><?php }?>
</div>
<?php }?>
</div>
</div>
</section>
<?php } elseif ($_smarty_tpl->tpl_vars['content']->value['type'] == 22 || $_smarty_tpl->tpl_vars['content']->value['type'] == 24) {?>
<section id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="container content-section<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>">
<div class="row">
<div class="col-sm-<?php if ($_smarty_tpl->tpl_vars['content']->value['type'] == 21) {?>6<?php } else { ?>8<?php }?> col-sm-push-<?php if ($_smarty_tpl->tpl_vars['content']->value['type'] == 21) {?>6<?php } else { ?>4<?php }?>">
<?php if ($_smarty_tpl->tpl_vars['content']->value['title']) {?>
<h2 class="mt40">
<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['subtitle']) {?>
<small class="mt10"><?php echo $_smarty_tpl->tpl_vars['content']->value['subtitle'];?>
</small>
<?php }?>
</h2>
<?php }?>
<div class="content">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_1'];?>
</div>
<?php if ($_smarty_tpl->tpl_vars['content']->value['cta']) {?>
<p class="mt40">
<a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['cta_link'];?>
" class="btn btn-default page-scroll">
<?php echo $_smarty_tpl->tpl_vars['content']->value['cta'];?>
</a>
</p>
<?php }?>
</div>
<div class="col-sm-<?php if ($_smarty_tpl->tpl_vars['content']->value['type'] == 21) {?>6<?php } else { ?>4<?php }?> col-sm-pull-<?php if ($_smarty_tpl->tpl_vars['content']->value['type'] == 21) {?>6<?php } else { ?>8<?php }?>">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image']) {?>
<div class="text-center">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_link']) {?></a><?php }?>
</divt>
<?php }?>
</div>
</div>
</section>
<?php } elseif ($_smarty_tpl->tpl_vars['content']->value['type'] == 25) {?>
<section id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="container content-section" style="background: transparent url(<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image'];?>
) top center no-repeat;">
<div class="container">
<div class="row">
<div class="<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>">
<?php if ($_smarty_tpl->tpl_vars['content']->value['title'] || $_smarty_tpl->tpl_vars['content']->value['subtitle']) {?>
<h2 class="h2">
<?php echo $_smarty_tpl->tpl_vars['content']->value['title'];?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['subtitle']) {?>
<small<?php if ($_smarty_tpl->tpl_vars['content']->value['title']) {?> class="mt10"<?php }?>><?php echo $_smarty_tpl->tpl_vars['content']->value['subtitle'];?>
</small>
<?php }?>
</h2>
<?php }?>
<div class="content mt30">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_1'];?>
</div>
<?php if ($_smarty_tpl->tpl_vars['content']->value['cta']) {?>
<p class="mt30">
<a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['cta_link'];?>
" class="btn btn-default page-scroll">
<?php echo $_smarty_tpl->tpl_vars['content']->value['cta'];?>
</a>
</p>
<?php }?>
</div>
</div>
</div>
</section>
<?php } elseif ($_smarty_tpl->tpl_vars['content']->value['type'] == 31) {?>
<section id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="container content-section<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>">
<div class="row">
<div class="col-sm-6">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_1_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_1_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_1'];?>
" alt="<?php echo preg_replace('!<[^>]*?>!', ' ', _a($_smarty_tpl->tpl_vars['content']->value,'image_1_text'));?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_1_link']) {?></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['text_1']) {?>
<div class="mt10">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_1'];?>
</div>
<?php }?>
</div>
<div class="col-sm-6">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_2_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_2_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_2'];?>
" alt="<?php echo preg_replace('!<[^>]*?>!', ' ', _a($_smarty_tpl->tpl_vars['content']->value,'image_2_text'));?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_2_link']) {?></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['text_2']) {?>
<div class="mt10">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_2'];?>
</div>
<?php }?>
</div>
</div>
</section>
<?php } elseif ($_smarty_tpl->tpl_vars['content']->value['type'] == 32) {?>
<section id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="container content-section<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>">
<div class="row">
<div class="col-sm-4 text-center">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_1_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_1_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_1'];?>
" alt="<?php echo preg_replace('!<[^>]*?>!', ' ', _a($_smarty_tpl->tpl_vars['content']->value,'image_1_text'));?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_1_link']) {?></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['text_1']) {?>
<div class="mt10">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_1'];?>
</div>
<?php }?>
</div>
<div class="col-sm-4 text-center">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_2_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_2_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_2'];?>
" alt="<?php echo preg_replace('!<[^>]*?>!', ' ', _a($_smarty_tpl->tpl_vars['content']->value,'image_2_text'));?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_2_link']) {?></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['text_2']) {?>
<div class="mt10">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_2'];?>
</div>
<?php }?>
</div>
<div class="col-sm-4 text-center">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_3_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_3_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_3'];?>
" alt="<?php echo preg_replace('!<[^>]*?>!', ' ', _a($_smarty_tpl->tpl_vars['content']->value,'image_3_text'));?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_3_link']) {?></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['text_3']) {?>
<div class="mt10">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_3'];?>
</div>
<?php }?>
</div>
</div>
</section>
<?php } elseif ($_smarty_tpl->tpl_vars['content']->value['type'] == 33) {?>
<section id="content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
" class="container content-section<?php if ($_smarty_tpl->tpl_vars['content']->value['class']) {?> <?php echo $_smarty_tpl->tpl_vars['content']->value['class'];
}?>">
<div class="row">
<div class="col-sm-3">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_1_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_1_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_1'];?>
" alt="<?php echo preg_replace('!<[^>]*?>!', ' ', _a($_smarty_tpl->tpl_vars['content']->value,'image_1_text'));?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_1_link']) {?></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['text_1']) {?>
<div class="mt10">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_1'];?>
</div>
<?php }?>
</div>
<div class="col-sm-3">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_2_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_2_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_2'];?>
" alt="<?php echo preg_replace('!<[^>]*?>!', ' ', _a($_smarty_tpl->tpl_vars['content']->value,'image_2_text'));?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_2_link']) {?></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['text_2']) {?>
<div class="mt10">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_2'];?>
</div>
<?php }?>
</div>
<div class="col-sm-3">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_3_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_3_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_3'];?>
" alt="<?php echo preg_replace('!<[^>]*?>!', ' ', _a($_smarty_tpl->tpl_vars['content']->value,'image_3_text'));?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_3_link']) {?></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['text_3']) {?>
<div class="mt10">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_3'];?>
</div>
<?php }?>
</div>
<div class="col-sm-3">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_4_link']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_4_link'];?>
"><?php }?>
<img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_4'];?>
" alt="<?php echo preg_replace('!<[^>]*?>!', ' ', _a($_smarty_tpl->tpl_vars['content']->value,'image_4_text'));?>
" class="img-responsive">
<?php if ($_smarty_tpl->tpl_vars['content']->value['image_4_link']) {?></a><?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['text_4']) {?>
<div class="mt10">
<?php echo $_smarty_tpl->tpl_vars['content']->value['text_4'];?>
</div>
<?php }?>
</div>
</div>
</section>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['content']->value['images']) {?>
<div class="container">
<div id="carousel" class="carousel slide mt30" data-interval="3000">
<div class="carousel-inner">
<?php
$_from = $_smarty_tpl->tpl_vars['content']->value['images'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_image_1_saved_item = isset($_smarty_tpl->tpl_vars['image']) ? $_smarty_tpl->tpl_vars['image'] : false;
$__foreach_image_1_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['image'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['image']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['image']->value) {
$_smarty_tpl->tpl_vars['image']->_loop = true;
$__foreach_image_1_saved_local_item = $_smarty_tpl->tpl_vars['image'];
?>
<div class="item<?php if ($_smarty_tpl->tpl_vars['i']->value == 0) {?> active<?php }?>">
<a href="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['image']->value['asset'];?>
" rel="gallery">
<img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['image']->value['asset'];?>
" class="img-responsive" alt="<?php echo $_smarty_tpl->tpl_vars['image']->value['title'];?>
">
</a>
</div>
<?php
$_smarty_tpl->tpl_vars['image'] = $__foreach_image_1_saved_local_item;
}
if ($__foreach_image_1_saved_item) {
$_smarty_tpl->tpl_vars['image'] = $__foreach_image_1_saved_item;
}
if ($__foreach_image_1_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_image_1_saved_key;
}
?>
</div>
<?php if (count($_smarty_tpl->tpl_vars['content']->value['images']) > 1) {?>
<div class="carousel-indicators-container">
<ol class="carousel-indicators">
<?php
$_from = $_smarty_tpl->tpl_vars['content']->value['images'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_image_2_saved_item = isset($_smarty_tpl->tpl_vars['image']) ? $_smarty_tpl->tpl_vars['image'] : false;
$__foreach_image_2_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['image'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['image']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['image']->value) {
$_smarty_tpl->tpl_vars['image']->_loop = true;
$__foreach_image_2_saved_local_item = $_smarty_tpl->tpl_vars['image'];
?>
<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['image'] = $__foreach_image_2_saved_local_item;
}
if ($__foreach_image_2_saved_item) {
$_smarty_tpl->tpl_vars['image'] = $__foreach_image_2_saved_item;
}
if ($__foreach_image_2_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_image_2_saved_key;
}
?>
</ol>
</div>
<?php }?>
</div>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['content']->value['extra']) && $_smarty_tpl->tpl_vars['content']->value['extra']) {?>
<?php
$_from = $_smarty_tpl->tpl_vars['content']->value['extra'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_extra_3_saved_item = isset($_smarty_tpl->tpl_vars['extra']) ? $_smarty_tpl->tpl_vars['extra'] : false;
$_smarty_tpl->tpl_vars['extra'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['extra']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['extra']->value) {
$_smarty_tpl->tpl_vars['extra']->_loop = true;
$__foreach_extra_3_saved_local_item = $_smarty_tpl->tpl_vars['extra'];
?>
<!-- -->
<?php if ($_smarty_tpl->tpl_vars['extra']->value == 'magazine' && isset($_smarty_tpl->tpl_vars['focus']->value)) {?>
<div class="container hidden-xs">
<div id="carousel" class="carousel 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_4_saved_item = isset($_smarty_tpl->tpl_vars['article']) ? $_smarty_tpl->tpl_vars['article'] : false;
$__foreach_article_4_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_4_saved_local_item = $_smarty_tpl->tpl_vars['article'];
?>
<div class="item<?php if ($_smarty_tpl->tpl_vars['i']->value == 0) {?> active<?php }?>">
<?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['c']->value,'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_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 text-left"><?php echo $_smarty_tpl->tpl_vars['article']->value['title'];?>
</span>
</a>
</div>
<?php
$_smarty_tpl->tpl_vars['article'] = $__foreach_article_4_saved_local_item;
}
if ($__foreach_article_4_saved_item) {
$_smarty_tpl->tpl_vars['article'] = $__foreach_article_4_saved_item;
}
if ($__foreach_article_4_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_article_4_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_5_saved_item = isset($_smarty_tpl->tpl_vars['article']) ? $_smarty_tpl->tpl_vars['article'] : false;
$__foreach_article_5_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_5_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_5_saved_local_item;
}
if ($__foreach_article_5_saved_item) {
$_smarty_tpl->tpl_vars['article'] = $__foreach_article_5_saved_item;
}
if ($__foreach_article_5_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_article_5_saved_key;
}
?>
</ol>
</div>
<?php }?>
</div>
</div>
<!-- -->
<?php } elseif ($_smarty_tpl->tpl_vars['extra']->value == 'magazine-list' && isset($_smarty_tpl->tpl_vars['focus']->value)) {?>
<?php $_smarty_tpl->tpl_vars["params"] = new Smarty_Variable(array("offset"=>0,"count"=>count($_smarty_tpl->tpl_vars['focus']->value),"batch"=>10000), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "params", 0);?>
<?php $_smarty_tpl->tpl_vars["articles"] = new Smarty_Variable($_smarty_tpl->tpl_vars['focus']->value, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "articles", 0);?>
<div class="container">
<hr class="mt40 mb0">
<p class="mt10 mb0">
<strong>ARTICOLI CORRELATI</strong>
</p>
<?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, true);
?>
</div>
<!-- -->
<a href="" id="gift-card"></a>
<?php } elseif ($_smarty_tpl->tpl_vars['extra']->value == 'gift-card-saldo') {?>
<div class="container mt40">
<?php if (isset($_smarty_tpl->tpl_vars['result']->value) && $_smarty_tpl->tpl_vars['result']->value['action'] == $_smarty_tpl->tpl_vars['extra']->value) {?>
<strong>Risultato della verifica:</strong><br>
Numero Gift Card: <?php echo $_smarty_tpl->tpl_vars['result']->value['card'];?>
<br>
Scadenza: <?php echo _dd($_smarty_tpl->tpl_vars['result']->value['expiration']);?>
<br>
Importo: <?php echo _n($_smarty_tpl->tpl_vars['result']->value['amount'],2);?>
<br><br>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;
echo $_smarty_tpl->tpl_vars['request_uri']->value;?>
">Nuova verifica…</a>
<?php } else { ?>
<form method="post" action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;
echo $_smarty_tpl->tpl_vars['request_uri']->value;?>
#gift-card" id="gift-card-scroll">
<input type="hidden" name="action" value="<?php echo $_smarty_tpl->tpl_vars['extra']->value;?>
">
<strong>Verifica il saldo disponibile!</strong><br>
Inserisci i codici riportati sul retro della tua GifCard Cadoro e controlla<br>
il saldo disponibile e la data di scadenza.
<div class="row">
<div class="col-sm-4 mt20 mb20">
<input type="text" name="card1" value="<?php echo _fr('card1');?>
" class="form-control" required placeholder="Numero gift card...">
</div>
<div class="col-sm-2 mt20 mb20">
<input type="text" name="card2" value="<?php echo _fr('card2');?>
" class="form-control" required placeholder="Numero breve...">
</div>
</div>
<div class="g-recaptcha mb20" data-sitekey="6LdwKAwUAAAAAIYEzff15dMp9eifSq48NP3j4GwJ"></div>
<?php echo '<script'; ?>
type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=it"><?php echo '</script'; ?>
>
<button type="submit" class="btn btn-danger btn-lg">INVIA</button>
</form>
<?php }?>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['extra']->value == 'prodotti' && $_smarty_tpl->tpl_vars['products']->value) {?>
<div class="container">
<div class="mt40">
<?php
$_from = $_smarty_tpl->tpl_vars['categories']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_category_6_saved_item = isset($_smarty_tpl->tpl_vars['category']) ? $_smarty_tpl->tpl_vars['category'] : false;
$_smarty_tpl->tpl_vars['category'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['category']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['category']->value) {
$_smarty_tpl->tpl_vars['category']->_loop = true;
$__foreach_category_6_saved_local_item = $_smarty_tpl->tpl_vars['category'];
?>
<h5 class="text-center">
<?php echo $_smarty_tpl->tpl_vars['category']->value['title'];?>
</h5>
<?php $_smarty_tpl->tpl_vars["prodotticats"] = new Smarty_Variable($_smarty_tpl->tpl_vars['category']->value->get_product(), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "prodotticats", 0);?>
<div class="row mb60">
<?php
$_from = $_smarty_tpl->tpl_vars['prodotticats']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_prodotticat_7_saved_item = isset($_smarty_tpl->tpl_vars['prodotticat']) ? $_smarty_tpl->tpl_vars['prodotticat'] : false;
$_smarty_tpl->tpl_vars['prodotticat'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['prodotticat']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['prodotticat']->value) {
$_smarty_tpl->tpl_vars['prodotticat']->_loop = true;
$__foreach_prodotticat_7_saved_local_item = $_smarty_tpl->tpl_vars['prodotticat'];
?>
<div class="col-md-3 col-sm-6 col-xs-6 text-center product mb40" style="font-size:16px;min-height: 250px;">
<div style="height: 140px; line-height: 140px;">
<img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['prodotticat']->value['image_list'];?>
" class="img-responsive" style="max-height: 140px;">
</div>
<div class="mt5">
<?php echo $_smarty_tpl->tpl_vars['prodotticat']->value['title'];?>
</div>
<?php echo $_smarty_tpl->tpl_vars['prodotticat']->value['description'];?>
</div>
<?php
$_smarty_tpl->tpl_vars['prodotticat'] = $__foreach_prodotticat_7_saved_local_item;
}
if ($__foreach_prodotticat_7_saved_item) {
$_smarty_tpl->tpl_vars['prodotticat'] = $__foreach_prodotticat_7_saved_item;
}
?>
</div>
<?php
$_smarty_tpl->tpl_vars['category'] = $__foreach_category_6_saved_local_item;
}
if ($__foreach_category_6_saved_item) {
$_smarty_tpl->tpl_vars['category'] = $__foreach_category_6_saved_item;
}
?>
</div>
<div class="col-md-12 text-center mb40">
<?php if (date('Y-m-d') >= '2020-08-06') {?>
<b style="font-size: 18px; line-height: 24px;">Scopri tutti i prodotti con Punti Oro nel tuo negozio Cadoro preferito</b>
<br>
<?php }?>
<small>*Prodotto non presente in tutti i punti vendita, chiedi al box informazioni nel tuo supermercato preferito.</small>
</div>
</div>
<?php }?>
<?php
$_smarty_tpl->tpl_vars['extra'] = $__foreach_extra_3_saved_local_item;
}
if ($__foreach_extra_3_saved_item) {
$_smarty_tpl->tpl_vars['extra'] = $__foreach_extra_3_saved_item;
}
?>
<?php }?>
<?php }
$_smarty_tpl->tpl_vars['content'] = $__foreach_content_0_saved_local_item;
}
if ($__foreach_content_0_saved_item) {
$_smarty_tpl->tpl_vars['content'] = $__foreach_content_0_saved_item;
}
}
}