File "02da194f90dc4464399ea21c22fd3842a0a0efef_0.file.punti-vendita-volantino-ajax.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/02da194f90dc4464399ea21c22fd3842a0a0efef_0.file.punti-vendita-volantino-ajax.tmpl.php
File size: 4.95 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/* Smarty version 3.1.29, created on 2024-02-21 17:40:19
  from "/srv/www/www.cadoro.it/src/templates/punti-vendita-volantino-ajax.tmpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_65d6277365bd47_41101617',
  'file_dependency' => 
  array (
    '02da194f90dc4464399ea21c22fd3842a0a0efef' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/punti-vendita-volantino-ajax.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:pagination-scroll.tmpl' => 1,
  ),
),false)) {
function content_65d6277365bd47_41101617 ($_smarty_tpl) {
?>
<div class="row">
  <?php
$_from = $_smarty_tpl->tpl_vars['products']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_product_0_saved_item = isset($_smarty_tpl->tpl_vars['product']) ? $_smarty_tpl->tpl_vars['product'] : false;
$_smarty_tpl->tpl_vars['product'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['product']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->_loop = true;
$__foreach_product_0_saved_local_item = $_smarty_tpl->tpl_vars['product'];
?>
  <div class="col-md-3 col-sm-4 col-xs-6 mb20">
    <a href="" class="volantino-prodotto" data-prodotto="<?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
">
      <div class="volantino-prodotto--immagine text-center">
        <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['product']->value['image_thumb'];?>
" style="margin-top: 70px;margin-bottom: 40px;">
        <br>
        <?php if ($_smarty_tpl->tpl_vars['product']->value['label2']) {?>
          <div class="cartiglio">
          <?php
$_from = explode(';',trim($_smarty_tpl->tpl_vars['product']->value['label2'],';'));
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_k_1_saved_item = isset($_smarty_tpl->tpl_vars['k']) ? $_smarty_tpl->tpl_vars['k'] : false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['k']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value) {
$_smarty_tpl->tpl_vars['k']->_loop = true;
$__foreach_k_1_saved_local_item = $_smarty_tpl->tpl_vars['k'];
?>
          <?php if (file_exists("../www/images/volantino/".((string)$_smarty_tpl->tpl_vars['k']->value).".png")) {?>
            <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/volantino/<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
.png" alt="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
">
          <?php }?>
          <?php
$_smarty_tpl->tpl_vars['k'] = $__foreach_k_1_saved_local_item;
}
if ($__foreach_k_1_saved_item) {
$_smarty_tpl->tpl_vars['k'] = $__foreach_k_1_saved_item;
}
?>
          </div>
        <?php }?>
      </div>
      <div class="volantino-prodotto--titolo">
        <strong><?php echo $_smarty_tpl->tpl_vars['product']->value['title'];?>
</strong>
        <?php echo $_smarty_tpl->tpl_vars['product']->value['brand'];?>
 - <?php echo $_smarty_tpl->tpl_vars['product']->value['description'];?>

      </div>
      <div class="volantino-prodotto--prezzo">

        <div class="sconto">
          <?php if ($_smarty_tpl->tpl_vars['product']->value['offer_price_old'] > 0) {?>
          <div class="sconto--listino">
            &euro; <?php echo _n($_smarty_tpl->tpl_vars['product']->value['offer_price_old'],2);?>

          </div>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['product']->value['offer_discount']) {?>
          <div class="sconto--sconto">
            SCONTO <?php echo $_smarty_tpl->tpl_vars['product']->value['offer_discount'];?>
%
          </div>
          <?php }?>
          &nbsp;
        </div>

        <div class="prezzo">
          <?php $_smarty_tpl->tpl_vars["sid"] = new Smarty_Variable($_smarty_tpl->tpl_vars['store']->value['id'], null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "sid", 0);?>
          <?php if (strstr($_smarty_tpl->tpl_vars['product']->value['stores_card'],";".((string)$_smarty_tpl->tpl_vars['sid']->value).";")) {?>
            <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/volantino-cardoro.png" alt="" class="pull-left">
          <?php }?>
          &euro; <?php echo _n($_smarty_tpl->tpl_vars['product']->value['offer_price'],2);?>

        </div>
      </div>
      <div class="volantino-prodotto--azione">
        SALVA IN LISTA<br>
        DELLA SPESA
      </div>
    </a>
  </div>
  <?php
$_smarty_tpl->tpl_vars['product'] = $__foreach_product_0_saved_local_item;
}
if ($__foreach_product_0_saved_item) {
$_smarty_tpl->tpl_vars['product'] = $__foreach_product_0_saved_item;
}
?>
</div>
<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:pagination-scroll.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<?php }
}