File "adaa143154aa2401dfc19f1a61d5e0024bde5778_0.file.cms.tmpl.php"

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

<?php
/* Smarty version 3.1.29, created on 2024-02-21 16:35:56
  from "/srv/www/www.test.cadoro.it/src/templates/cms.tmpl" */

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


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


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


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


<?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content_full", array (
  0 => 'block_117342287065d6185ca5eaf4_17918884',
  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:cms.tmpl */
function block_91991625065d6185ca44634_41295676($_smarty_tpl, $_blockParentStack) {
?>

  <?php echo (($tmp = @$_smarty_tpl->tpl_vars['page']->value['seo_title'])===null||$tmp==='' ? strip_tags($_smarty_tpl->tpl_vars['page']->value['title']) : $tmp);?>

<?php
}
/* {/block 'title'} */
/* {block 'head'}  file:cms.tmpl */
function block_58359832065d6185ca49501_97913097($_smarty_tpl, $_blockParentStack) {
?>

  <meta name="keywords" content="<?php echo $_smarty_tpl->tpl_vars['page']->value['seo_keywords'];?>
">
  <meta name="description" content="<?php if ($_smarty_tpl->tpl_vars['page']->value['seo_description']) {?> <?php echo $_smarty_tpl->tpl_vars['page']->value['seo_description'];?>
 <?php } else { ?> Scopri i supermercati Cadoro, le offerte, i punti vendita più vicini a te, le informazioni sui prodotti e tanti consigli per la tua spesa. <?php }?>">
  <meta property="og:url" content="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;
echo $_smarty_tpl->tpl_vars['request_uri']->value;?>
">
  <meta property="og:title" content="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['page']->value['seo_title'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['page']->value['title'] : $tmp);?>
">
  <meta property="og:image" content="<?php if ($_smarty_tpl->tpl_vars['page']->value['seo_image']) {
echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['page']->value['seo_image'];
}?>">
  <meta property="og:description" content="<?php echo $_smarty_tpl->tpl_vars['page']->value['seo_description'];?>
">
<?php
}
/* {/block 'head'} */
/* {block 'csshead'}  file:cms.tmpl */
function block_159158070765d6185ca55519_00077577($_smarty_tpl, $_blockParentStack) {
?>

  <style>
  <?php
$_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'];
?>
  <?php if ($_smarty_tpl->tpl_vars['content']->value['style'] && $_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) {?>
    <?php echo $_smarty_tpl->tpl_vars['content']->value['style'];?>

  <?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;
}
?>
  </style>
<?php
}
/* {/block 'csshead'} */
/* {block 'content_full'}  file:cms.tmpl */
function block_117342287065d6185ca5eaf4_17918884($_smarty_tpl, $_blockParentStack) {
?>

  <div class="content cms-wrapper"<?php if ($_smarty_tpl->tpl_vars['page']->value['header']) {?> style="background-image: url(<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['page']->value['header'];?>
);"<?php }?>>
    <?php if ($_smarty_tpl->tpl_vars['page']->value['header']) {?>
    <div class="container">
      <div class="cms-header text-center">
        <h1 class="h1">
          <?php echo $_smarty_tpl->tpl_vars['page']->value['title'];?>

          <?php if ($_smarty_tpl->tpl_vars['page']->value['subtitle']) {?><small><?php echo $_smarty_tpl->tpl_vars['page']->value['subtitle'];?>
</small><?php }?>
        </h1>
      </div>
    </div>
    <?php }?>

    <?php if (isset($_smarty_tpl->tpl_vars['banners']->value) && $_smarty_tpl->tpl_vars['banners']->value) {?>
    <div class="container">
      <div class="row mt20">
        <?php
$_from = $_smarty_tpl->tpl_vars['banners']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_b_1_saved_item = isset($_smarty_tpl->tpl_vars['b']) ? $_smarty_tpl->tpl_vars['b'] : false;
$_smarty_tpl->tpl_vars['b'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['b']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['b']->value) {
$_smarty_tpl->tpl_vars['b']->_loop = true;
$__foreach_b_1_saved_local_item = $_smarty_tpl->tpl_vars['b'];
?>
        <div class="col-sm-3 col-xs-6 mt20">
          <a href="<?php echo $_smarty_tpl->tpl_vars['b']->value['href'];?>
"<?php if ($_smarty_tpl->tpl_vars['b']->value['rel']) {?> rel="<?php echo $_smarty_tpl->tpl_vars['b']->value['rel'];?>
"<?php }?>>
            <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['b']->value['image'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['b']->value['title'];?>
" class="img-responsive">
          </a>
        </div>
        <?php
$_smarty_tpl->tpl_vars['b'] = $__foreach_b_1_saved_local_item;
}
if ($__foreach_b_1_saved_item) {
$_smarty_tpl->tpl_vars['b'] = $__foreach_b_1_saved_item;
}
?>
      </div>
    </div>
    <?php }?>

    <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:cms-content.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>


    <?php if ($_smarty_tpl->tpl_vars['page']->value['slug'] == '/') {?>
      <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:home.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

    <?php } elseif ($_smarty_tpl->tpl_vars['page']->value['slug'] == '/cardoro') {?>
      <h1 class="hidden">ENTRA NEL MONDO CARD’ORO E APPROFITTA DI TUTTI I VANTAGGI DELLA RACCOLTA PUNTI CADORO</h1>
    <?php } elseif ($_smarty_tpl->tpl_vars['page']->value['slug'] == '/app-cadoro-2') {?>
      <h1 class="hidden">Cadoro App</h1>
      <h2 class="hidden">Il mondo Cadoro sempre in tasca</h2>
    <?php }?>
  </div>
<?php
}
/* {/block 'content_full'} */
}