File "abe134203af3bb2fbe4b0d33f05f92ea630e5c77_0.file.filodiretto-newsletter.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/abe134203af3bb2fbe4b0d33f05f92ea630e5c77_0.file.filodiretto-newsletter.tmpl.php
File size: 8.41 KB
MIME-type: text/x-php
Charset: utf-8

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

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


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


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


<?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
  0 => 'block_214707811565d6187d72a5d2_66460236',
  1 => false,
  3 => 0,
  2 => 0,
));
$_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:filodiretto-newsletter.tmpl */
function block_31375153965d6187d7269d7_25456261($_smarty_tpl, $_blockParentStack) {
?>
Filodiretto &mdash; CADORO<?php
}
/* {/block 'title'} */
/* {block 'head'}  file:filodiretto-newsletter.tmpl */
function block_124540470065d6187d7289d5_16011006($_smarty_tpl, $_blockParentStack) {
?>

<meta name="description" content="Filodiretto &mdash; CADORO">
<meta name="author" content="">
<?php
}
/* {/block 'head'} */
/* {block 'content'}  file:filodiretto-newsletter.tmpl */
function block_214707811565d6187d72a5d2_66460236($_smarty_tpl, $_blockParentStack) {
?>

  <ul class="nav nav-pills mt20">
    <li role="presentation"><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/filodiretto">CONTATTI</a></li>
    <li role="presentation"><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/filodiretto/lavora-con-noi">LAVORA CON NOI</a></li>
    <li role="presentation"><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/filodiretto/faq">FAQ</a></li>
    <li role="presentation" class="active"><a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/filodiretto/newsletter">NEWSLETTER</a></li>
  </ul>
  
  
  <section class="container newsletter-page mt40">
    <div class="row text-center">
      <div class="col-12">
        <div class="newsletter-banner" style="background-image: url('<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/newsletter-texture-h.png');">
          <img class="img-responsive" src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/newsletter-header.png" alt="Newsletter banner">
        </div>
      </div>    
    </div>
    
    <div class="row" id="registrazione">
    <?php if ($_smarty_tpl->tpl_vars['status']->value) {?>
    <div class="col-sm-12 mt50">
      <?php if (($_smarty_tpl->tpl_vars['status']->value == 1 || $_smarty_tpl->tpl_vars['status']->value == 3)) {?>
        <div class="alert alert-warning">
          ATTENZIONE: tutti i dati sono obbligatori, verificare le informazioni inserite!
        </div>
      <?php } elseif (($_smarty_tpl->tpl_vars['status']->value == 4)) {?>
        <div class="alert alert-success" id="iscrizione-confermata">
         Utente già registrato. Abbiamo aggiornato i dati!
        </div>
      <?php } elseif (($_smarty_tpl->tpl_vars['status']->value == 2)) {?>
        <div class="alert alert-success" id="iscrizione-confermata">
          Ti abbiamo inviato un'email di conferma iscrizione!
        </div>
      <?php }?>
    </div>  
    <?php }?>
    </div>
    <form id="newsletter-form" method="post" action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/filodiretto/newsletter#registrazione">
      <div class="row mt40">
        <div class="col-sm-6">
          <div class="form-group">
            <label class="h4" for="firstname">Nome <strong>*</strong></label>
            <input type="text" class="form-control" value="<?php ob_start();
echo _f('firstname',$_smarty_tpl->tpl_vars['params']->value);
$_tmp1=ob_get_clean();
echo $_tmp1;?>
" name="firstname">
          </div>
        </div>
        <div class="col-sm-6">
          <div class="form-group">
            <label class="h4" for="lastname">Cognome <strong>*</strong></label>
            <input type="text" class="form-control" value="<?php ob_start();
echo _f('lastname',$_smarty_tpl->tpl_vars['params']->value);
$_tmp2=ob_get_clean();
echo $_tmp2;?>
" name="lastname">
          </div>
        </div>
        <div class="col-sm-6">
          <div class="form-group">
            <label class="h4" for="email">Email <strong>*</strong></label>
            <input type="email" class="form-control" value="<?php ob_start();
echo _f('email',$_smarty_tpl->tpl_vars['params']->value);
$_tmp3=ob_get_clean();
echo $_tmp3;?>
" name="email">
          </div>
        </div>
        <div class="col-sm-6">
          <div class="form-group">
            <label class="h4" for="store">Punto vendita preferito <strong>*</strong></label>
            <select class="form-control" id="store" name="store">
              <option value=""></option>
              <?php
$_from = $_smarty_tpl->tpl_vars['stores']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_store_0_saved_item = isset($_smarty_tpl->tpl_vars['store']) ? $_smarty_tpl->tpl_vars['store'] : false;
$_smarty_tpl->tpl_vars['store'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['store']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['store']->value) {
$_smarty_tpl->tpl_vars['store']->_loop = true;
$__foreach_store_0_saved_local_item = $_smarty_tpl->tpl_vars['store'];
?>
              <option value="<?php echo $_smarty_tpl->tpl_vars['store']->value['id'];?>
" <?php if (($_smarty_tpl->tpl_vars['store']->value['id'] == $_smarty_tpl->tpl_vars['params']->value['store'])) {?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['store']->value['title'];?>
</option>
              <?php
$_smarty_tpl->tpl_vars['store'] = $__foreach_store_0_saved_local_item;
}
if ($__foreach_store_0_saved_item) {
$_smarty_tpl->tpl_vars['store'] = $__foreach_store_0_saved_item;
}
?>
            </select>
          </div>
        </div>
        <div class="col-sm-12">
          <div class="form-group checkbox">
            <label>
              <input type="checkbox" name="privacy" value="1"> Letta l’<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/privacy"><u>informativa</u></a>, acconsento all’invio di comunicazioni promozionali e di marketing. <strong>*</strong>
            </label>
          </div>
        </div>
        <input class="hidden" type="text" name="tags" value="newsletter-sito-2021">
       <div class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-4 col-md-2 col-md-offset-5 mt30">
          <button class="btn btn-danger btn-block g-recaptcha" 
          data-sitekey="6LdHIJIbAAAAAMSqajXL_NOWE3DQxZKRq9dwI3c4" 
          data-callback='onSubmit' 
          data-action='submit'  
          id="iscriviti-newsletter">Iscriviti</button>
        </div>
      </div>
    </form>
    <h2 class="text-center red mt40"><strong>Cadoro, il buon mercato</strong></h2>
    
    <div class="row mt100 mb100 newsletter-banner-footer" style="background-image: url('<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/newsletter-texture-f.png');">
      <div class="col-xs-12 col-sm-4 text-center">
      <img class="img-responsive" src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/newsletter-card.png" alt="Newsletter card oro">
      </div>    
      <div class="col-xs-12 col-sm-8 mb20">
          <h2>E se hai la Card'Oro, <br> ancora più vantaggi ti aspettano.</h2>
          <a id="registrati-newsletter" href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/login?utm_source=landing-iscrizione&utm_medium=link&utm_campaign=Lead"><button class="btn btn-light text-uppercase">Registrati subito</button></a>
      </div>
    </div>
  </section>



<?php
}
/* {/block 'content'} */
}