File "ef6a704224afb19f617823bd4490e9abbcb7512c_0.file.profilo.tmpl.php"

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

<?php
/* Smarty version 3.1.29, created on 2024-02-21 17:44:28
  from "/srv/www/www.cadoro.it/src/templates/profilo.tmpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_65d6286ce51913_80390364',
  'file_dependency' => 
  array (
    'ef6a704224afb19f617823bd4490e9abbcb7512c' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/profilo.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:layout-base.tmpl' => 1,
  ),
),false)) {
function content_65d6286ce51913_80390364 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once '/srv/www/www.cadoro.it/src/vendor/smarty/smarty/libs/plugins/modifier.date_format.php';
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>


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


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


<?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
  0 => 'block_203332677365d6286ce20730_52358056',
  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.tmpl */
function block_138868973565d6286ce1d6e2_71215070($_smarty_tpl, $_blockParentStack) {
?>
Il tuo profilo &mdash; CADORO<?php
}
/* {/block 'title'} */
/* {block 'head'}  file:profilo.tmpl */
function block_59944581065d6286ce1efd8_29864558($_smarty_tpl, $_blockParentStack) {
?>

<meta name="description" content="Il tuo profilo &mdash; CADORO">
<meta name="author" content="">
<?php
}
/* {/block 'head'} */
/* {block 'content'}  file:profilo.tmpl */
function block_203332677365d6286ce20730_52358056($_smarty_tpl, $_blockParentStack) {
?>

  <?php if (date('Ymd') >= '20210201') {?>
  <div class="well well-white-red" style="font-size: 18px;">
    <div class="text-center col-md-3"> 
      <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/images/profilo-app-well-header.png" alt="app cadoro" style="margin-bottom: -19px;">
    </div>
    <div class="col-md-9">
      <h3 class="red mt30">
        <strong>È ARRIVATA L'APP CADORO</strong>
        <small>
          <strong>SCARICALA E ATTIVA LE NOTIFICHE PER AVERE SUBITO <strong class="red">100 PUNTI</strong> FEDELTÀ.</strong>
        </small>
      </h3>
      Disponibile su &nbsp;&nbsp;
      <a href="https://itunes.apple.com/us/app/cadoro/id1233755228?l=it&ls=1&mt=8" title="Scarica dall'Apple Store" target="_blank">
        <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/images/app-store.png" alt="app store icon" class="icon-store-download-app">
      </a>
      <a href="https://play.google.com/store/apps/details?id=it.cadoro.app" title="Scarica da Google Play" target="_blank">
        <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/images/google-play.png" alt="google play icon" class="icon-store-download-app"> 
      </a>
    </div>
    <div style="clear:both;"></div>
  </div>
  <?php } else { ?>
    <?php $_smarty_tpl->tpl_vars["points_migrations"] = new Smarty_Variable($_smarty_tpl->tpl_vars['principal']->value->get_points_migrations(), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "points_migrations", 0);?>
    
    <div class="row">
      <div class="col-md-12 mb10">
        <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/images/scadenza_punti_2021.jpg" alt="scadenza punti" class="img-responsive">
      </div>
    </div>

    <?php if ($_smarty_tpl->tpl_vars['points_migrations']->value) {?>
    <div class="well well-white-red">
      
      <div class="font-big text-center mt10 mb10">
        Hai un totale di <strong><?php echo _n($_smarty_tpl->tpl_vars['principal']->value->get_points(),0);?>
</strong> punti di cui <strong class="red"><?php echo _n($_smarty_tpl->tpl_vars['points_migrations']->value,0);?>
</strong> verranno cancellati il primo febbraio.
      </div>
    </div>
    <?php }?>
  <?php }?>
  <div class="row mt20">
    <div class="col-sm-6">
      <a href="#" class="well well-green" onClick="alert('Al momento non ci sono sondaggi disponibili, ritorna presto per rispondere ad alcune domande sui nostri prodotti e attività. Potrai accedere a tanti vantaggi che Cadoro ti ha riservato.');">
        <div class="mb20">
          <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/btn-profilo-1.png" alt="">
        </div>
        <strong>Sondaggi</strong><br>
        Raccontaci i tuoi interessi per ricevere aggiornamenti personalizzati e guadagnare punti extra
      </a>
    </div>
    <div class="col-sm-3">
      <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/profilo/modifica" class="well well-brown">
        <div class="mb20">
          <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/btn-profilo-2.png" alt="">
        </div>
        &nbsp;<br>
        <strong>Il tuo profilo</strong><br>
        Modifica i tuoi dati
      </a>
    </div>
    <div class="col-sm-3">
      <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/profilo/punti" class="well well-ocher">
      <?php if (!$_smarty_tpl->tpl_vars['principal']->value['dipendente']) {?>
        <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/btn-profilo-3.png" alt="" class="hidden-md hidden-sm hidden-xs pull-left">
      <?php }?>
        <div class="counter mt10">
          <strong><?php echo _n($_smarty_tpl->tpl_vars['principal']->value->get_points(),0);?>
</strong> punti
        </div>
        &nbsp;<br>
        &nbsp;<br>
        sulla tua CARD’ORO<br>
		<small>Dati aggiornati al <?php echo smarty_modifier_date_format(time(),"%d/%m/%Y");?>
 06:00</small>
      </a>
    </div>
  </div>
  <div class="row">
    <div class="col-sm-3">
      <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/profilo/preferiti" class="well well-red">
        <div class="mb20">
          <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/btn-profilo-4.png" alt="">
        </div>
        <strong>Contenuti preferiti</strong><br>
        Le tue ricette e <br>
        gli articoli del magazine.
      </a>
    </div>
    <div class="col-sm-3">
      <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/profilo/lista-spesa" class="well well-lightgreen">
        <div class="mb20">
          <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/btn-profilo-5.png" alt="">
        </div>
        <strong>Lista della spesa</strong><br>
        Guarda i prodotti<br>
        che hai salvato.
      </a>
    </div>
    <div class="col-sm-6">
      <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/profilo/punti" class="well well-lightorange">
        <div class="mb20">
          <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/btn-profilo-6.png" alt="">
        </div>
        <strong>Sconti Oro</strong><br>
        Scopri gli sconti sulla spesa e i prodotti che ogni <br>
        settimana puoi acquistare con i punti accumulati.
      </a>
    </div>
  </div>
  <div class="row mb60">
    <?php $_smarty_tpl->tpl_vars["store"] = new Smarty_Variable($_smarty_tpl->tpl_vars['principal']->value->get_store(), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "store", 0);?>
    <?php if ($_smarty_tpl->tpl_vars['store']->value) {?>
    <div class="col-sm-6">
      <div class="well well-white">
        <h4 class="red">Il tuo punto vendita di riferimento</h4>
        <div class="row">
          <div class="col-sm-6">
            <strong><?php echo $_smarty_tpl->tpl_vars['store']->value['title'];?>
</strong><br>
            <?php echo $_smarty_tpl->tpl_vars['store']->value['address'];?>
<br>
            <?php echo $_smarty_tpl->tpl_vars['store']->value['zipcode'];?>
 <?php echo $_smarty_tpl->tpl_vars['store']->value['city'];?>
 (<?php echo $_smarty_tpl->tpl_vars['store']->value['province'];?>
)<br>
            Tel. <?php echo $_smarty_tpl->tpl_vars['store']->value['phone'];?>

          </div>
          <div class="col-sm-6 text-right">
            <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/punti-vendita/<?php echo $_smarty_tpl->tpl_vars['store']->value['slug'];?>
">
              <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/icon-chevron.png" hspace="20">
            </a>
          </div>
        </div>
        <?php $_smarty_tpl->tpl_vars["openings"] = new Smarty_Variable($_smarty_tpl->tpl_vars['store']->value->openings(), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "openings", 0);?>
        <?php if ($_smarty_tpl->tpl_vars['openings']->value) {?>
        <?php $_smarty_tpl->tpl_vars["o"] = new Smarty_Variable(array_shift($_smarty_tpl->tpl_vars['openings']->value), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "o", 0);?>
        <hr>
        <strong>Oggi <?php if ($_smarty_tpl->tpl_vars['o']->value['h1']) {
echo $_smarty_tpl->tpl_vars['o']->value['h1'];?>
-<?php echo $_smarty_tpl->tpl_vars['o']->value['h2'];
}?> <?php if ($_smarty_tpl->tpl_vars['o']->value['h3']) {?> - <?php echo $_smarty_tpl->tpl_vars['o']->value['h3'];?>
-<?php echo $_smarty_tpl->tpl_vars['o']->value['h4'];
}?> (<?php echo mb_strtolower($_smarty_tpl->tpl_vars['o']->value['type']);?>
)</strong>
        <?php }?>
        
      </div>
    </div>
    <?php }?>
    <?php if (isset($_smarty_tpl->tpl_vars['banners']->value) && $_smarty_tpl->tpl_vars['banners']->value) {?>
    <?php
$_from = $_smarty_tpl->tpl_vars['banners']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_b_0_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_0_saved_local_item = $_smarty_tpl->tpl_vars['b'];
?>
    <div class="col-sm-3 col-xs-6 mb20">
      <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_0_saved_local_item;
}
if ($__foreach_b_0_saved_item) {
$_smarty_tpl->tpl_vars['b'] = $__foreach_b_0_saved_item;
}
?>
    <?php }?>
  </div>
<?php
}
/* {/block 'content'} */
}