File "1d392b8e80fbaa509dec0679da9bd01c0e41933a_0.file.punti-vendita-dettaglio.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/1d392b8e80fbaa509dec0679da9bd01c0e41933a_0.file.punti-vendita-dettaglio.tmpl.php
File size: 18.01 KB
MIME-type: text/x-php
Charset: utf-8

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

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


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


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


<html>
  <body>
    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
  0 => 'block_192673649565d618793f88f3_95520967',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

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

  </body>
</html>
<?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:punti-vendita-dettaglio.tmpl */
function block_150506731165d618793ed1a5_17975825($_smarty_tpl, $_blockParentStack) {
?>

  <?php echo $_smarty_tpl->tpl_vars['store']->value['title'];?>
 - CADORO
<?php
}
/* {/block 'title'} */
/* {block 'head'}  file:punti-vendita-dettaglio.tmpl */
function block_6522455765d618793efda4_70852391($_smarty_tpl, $_blockParentStack) {
?>

  <meta name="keywords" content="">
  <meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['store']->value['address'];?>
 - <?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'];?>
)">
  <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 $_smarty_tpl->tpl_vars['store']->value['title'];?>
">
  <meta property="og:image" content="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/logo.png">
  <meta property="og:description" content="<?php echo $_smarty_tpl->tpl_vars['store']->value['address'];?>
 - <?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'];?>
)">
<?php
}
/* {/block 'head'} */
/* {block 'content'}  file:punti-vendita-dettaglio.tmpl */
function block_192673649565d618793f88f3_95520967($_smarty_tpl, $_blockParentStack) {
?>

      <div class="row">
        <div class="col-sm-4 mt20">
          <div class="well well-xs" style="min-height: 400px;">
            <p class="h4 mt0 mb10">
              <strong><?php echo $_smarty_tpl->tpl_vars['store']->value['title'];?>
</strong>
            </p>
            <?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'];?>
)
            <?php if ($_smarty_tpl->tpl_vars['store']->value['phone']) {?><br>Tel. <?php echo $_smarty_tpl->tpl_vars['store']->value['phone'];
}?>
            <?php if ($_smarty_tpl->tpl_vars['openings']->value) {?>
            <div class="mt40">
              <strong>ORARI DI APERTURA</strong>
              <ul class="list list-unstyled mt10 mb40">
                <?php
$_from = $_smarty_tpl->tpl_vars['openings']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_o_0_saved_item = isset($_smarty_tpl->tpl_vars['o']) ? $_smarty_tpl->tpl_vars['o'] : false;
$_smarty_tpl->tpl_vars['o'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['o']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['o']->value) {
$_smarty_tpl->tpl_vars['o']->_loop = true;
$__foreach_o_0_saved_local_item = $_smarty_tpl->tpl_vars['o'];
?>
                <li>
                  <strong style="display: inline-block; width: 120px;">
                   <?php echo date('d',strtotime($_smarty_tpl->tpl_vars['o']->value['date']));?>
/<?php echo date('m',strtotime($_smarty_tpl->tpl_vars['o']->value['date']));?>
 <?php echo _v(date('w',strtotime($_smarty_tpl->tpl_vars['o']->value['date'])),$_smarty_tpl->tpl_vars['DOWS']->value);?>

                  </strong>
                  <?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']);?>
)
                </li>
                <?php
$_smarty_tpl->tpl_vars['o'] = $__foreach_o_0_saved_local_item;
}
if ($__foreach_o_0_saved_item) {
$_smarty_tpl->tpl_vars['o'] = $__foreach_o_0_saved_item;
}
?>
              </ul>
            </div>
            <?php }?>
          </div>
        </div>
        <div class="col-sm-8 mb20 mt20">
          <div id="map_canvas" style="width: 100%; height: 400px;"></div>
        </div>
      </div>
      <div class="row">
        <div class="col-sm-4 mt0 mb30">
          <?php if ($_smarty_tpl->tpl_vars['flyers']->value) {?>
          <div class="well well-xs well-yellow">
            <strong>PROMOZIONI E CATALOGHI</strong>
            <?php
$_from = $_smarty_tpl->tpl_vars['flyers']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_flyer_1_saved_item = isset($_smarty_tpl->tpl_vars['flyer']) ? $_smarty_tpl->tpl_vars['flyer'] : false;
$_smarty_tpl->tpl_vars['flyer'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['flyer']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['flyer']->value) {
$_smarty_tpl->tpl_vars['flyer']->_loop = true;
$__foreach_flyer_1_saved_local_item = $_smarty_tpl->tpl_vars['flyer'];
?>
            <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/punti-vendita/<?php echo $_smarty_tpl->tpl_vars['store']->value['slug'];?>
/volantini/<?php echo $_smarty_tpl->tpl_vars['flyer']->value['slug'];?>
-<?php echo $_smarty_tpl->tpl_vars['flyer']->value['id'];?>
" class="news-related mt10 mb10">
			  <div class="row">
                <div class="col-xs-4">
                  <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['flyer']->value['thumb'];?>
" class="img-responsive" alt="<?php echo $_smarty_tpl->tpl_vars['flyer']->value['title'];?>
">
                </div>
                <div class="col-xs-8">
                  <span class="news-related__title">
                    Dal <?php echo _dd($_smarty_tpl->tpl_vars['flyer']->value['date_begin']);?>
 al <?php echo _dd($_smarty_tpl->tpl_vars['flyer']->value['date_end']);?>
<br>
                    <strong><?php echo $_smarty_tpl->tpl_vars['flyer']->value['title'];?>
</strong>
                  </span>
                </div>
              </div>
            </a>
            <?php
$_smarty_tpl->tpl_vars['flyer'] = $__foreach_flyer_1_saved_local_item;
}
if ($__foreach_flyer_1_saved_item) {
$_smarty_tpl->tpl_vars['flyer'] = $__foreach_flyer_1_saved_item;
}
?>
          </div>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['events']->value) {?>
          <div class="well well-xs well-orange">
            <strong>EVENTI IN NEGOZIO</strong>
            <?php
$_from = $_smarty_tpl->tpl_vars['events']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_event_2_saved_item = isset($_smarty_tpl->tpl_vars['event']) ? $_smarty_tpl->tpl_vars['event'] : false;
$_smarty_tpl->tpl_vars['event'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['event']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['event']->value) {
$_smarty_tpl->tpl_vars['event']->_loop = true;
$__foreach_event_2_saved_local_item = $_smarty_tpl->tpl_vars['event'];
?>
            <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/news/<?php echo _a($_smarty_tpl->tpl_vars['event']->value->get_category(),'slug');?>
/<?php echo $_smarty_tpl->tpl_vars['event']->value['slug'];?>
-<?php echo $_smarty_tpl->tpl_vars['event']->value['id'];?>
" class="news-related mt10 mb10">
			  <div class="row">
                <div class="col-xs-4">
                  <div class="news-related__cover" style="background-image: url(<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['event']->value['image_list'];?>
);"></div>
                </div>
                <div class="col-xs-8">
                  <span class="news-related__title"><?php echo $_smarty_tpl->tpl_vars['event']->value['title'];?>
</span>
                </div>
              </div>
            </a>
            <?php
$_smarty_tpl->tpl_vars['event'] = $__foreach_event_2_saved_local_item;
}
if ($__foreach_event_2_saved_item) {
$_smarty_tpl->tpl_vars['event'] = $__foreach_event_2_saved_item;
}
?>
          </div>
		  <?php }?>
          
          <?php if (isset($_smarty_tpl->tpl_vars['setting_banner']->value['type'])) {?>
          <a href="<?php echo $_smarty_tpl->tpl_vars['setting_banner']->value['link'];?>
">
              <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['setting_banner']->value['image'];?>
" class="img-responsive mb20" alt="grandi-marche">
          </a>
          <?php }?>
          <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/filodiretto/lavora-con-noi">
              <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/lavora-con-noi-pv-2.jpg" class="img-responsive" alt="Lavora con noi">
          </a>
		  
        </div>
        <div class="col-sm-8 mt0">
          <div class="row">
            <div class="col-sm-6 mt0">
              <strong>
                REPARTI
              </strong>
              <ul class="list list-unstyled mt10">
                <?php
$_from = $_smarty_tpl->tpl_vars['STORE_SERVICES']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_v_3_saved_item = isset($_smarty_tpl->tpl_vars['v']) ? $_smarty_tpl->tpl_vars['v'] : false;
$__foreach_v_3_saved_key = isset($_smarty_tpl->tpl_vars['k']) ? $_smarty_tpl->tpl_vars['k'] : false;
$_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['v']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
$__foreach_v_3_saved_local_item = $_smarty_tpl->tpl_vars['v'];
if (in_array($_smarty_tpl->tpl_vars['k']->value,_a($_smarty_tpl->tpl_vars['store']->value,'services',array())) && in_array($_smarty_tpl->tpl_vars['k']->value,$_smarty_tpl->tpl_vars['STORE_DEPARTMENTS']->value)) {?>
                <li>
                  <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/icon-punto-vendita-<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
.png" alt="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
" width="40" style="margin-right: 10px; vertical-align: -13px;"> <?php echo $_smarty_tpl->tpl_vars['v']->value;?>

                </li>
                <?php }
$_smarty_tpl->tpl_vars['v'] = $__foreach_v_3_saved_local_item;
}
if ($__foreach_v_3_saved_item) {
$_smarty_tpl->tpl_vars['v'] = $__foreach_v_3_saved_item;
}
if ($__foreach_v_3_saved_key) {
$_smarty_tpl->tpl_vars['k'] = $__foreach_v_3_saved_key;
}
?>
              </ul>
            </div>
            <div class="col-sm-6 mt0">
              <strong>
                SERVIZI
              </strong>
              <ul class="list list-unstyled mt10">
                <?php
$_from = $_smarty_tpl->tpl_vars['STORE_SERVICES']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_v_4_saved_item = isset($_smarty_tpl->tpl_vars['v']) ? $_smarty_tpl->tpl_vars['v'] : false;
$__foreach_v_4_saved_key = isset($_smarty_tpl->tpl_vars['k']) ? $_smarty_tpl->tpl_vars['k'] : false;
$_smarty_tpl->tpl_vars['v'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['v']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
$__foreach_v_4_saved_local_item = $_smarty_tpl->tpl_vars['v'];
if (in_array($_smarty_tpl->tpl_vars['k']->value,_a($_smarty_tpl->tpl_vars['store']->value,'services',array())) && !in_array($_smarty_tpl->tpl_vars['k']->value,$_smarty_tpl->tpl_vars['STORE_DEPARTMENTS']->value)) {?>
                <li>
                  <img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/icon-punto-vendita-<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
.png" alt="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
" width="40" style="margin-right: 10px; vertical-align: -13px;"> <?php echo $_smarty_tpl->tpl_vars['v']->value;?>

                </li>
                <?php }
$_smarty_tpl->tpl_vars['v'] = $__foreach_v_4_saved_local_item;
}
if ($__foreach_v_4_saved_item) {
$_smarty_tpl->tpl_vars['v'] = $__foreach_v_4_saved_item;
}
if ($__foreach_v_4_saved_key) {
$_smarty_tpl->tpl_vars['k'] = $__foreach_v_4_saved_key;
}
?>
              </ul>
            </div>
          </div>
          <div class="mt40">
            <strong>
              BUONI PASTO ACCETTATI
            </strong>
            <?php
while ($_smarty_tpl->tpl_vars['buonipasto']->value) {?>
            <div class="row mt20">
              <?php
$_from = array_slice($_smarty_tpl->tpl_vars['buonipasto']->value,0,4);
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_i_5_saved_item = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$__foreach_i_5_saved_key = isset($_smarty_tpl->tpl_vars['j']) ? $_smarty_tpl->tpl_vars['j'] : false;
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['j'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['j']->value => $_smarty_tpl->tpl_vars['i']->value) {
$_smarty_tpl->tpl_vars['i']->_loop = true;
$__foreach_i_5_saved_local_item = $_smarty_tpl->tpl_vars['i'];
?>
              <div class="col-xs-6 col-md-3">
                <div class="thumbnail text-center <?php echo $_smarty_tpl->tpl_vars['i']->value['id'];?>
" style="padding:0; height: 130px; line-height: 38px; font-size: 15px; margin-bottom: 0px;">
                  <?php if (file_exists("../www/images/buoni-pasto/".((string)$_smarty_tpl->tpl_vars['i']->value['id']).".jpg")) {?>
                  <div style="height: 80px">
                  <center><img src="<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/buoni-pasto/<?php echo $_smarty_tpl->tpl_vars['i']->value['id'];?>
.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['i']->value['title'];?>
" class="img-responsive" style="display: block; margin-top: 15px; max-height:80px;  max-width:120px"></center>
                  </div>
                  <?php echo $_smarty_tpl->tpl_vars['i']->value['title'];?>

                  <?php } else { ?>
                    <strong style="display: inline-block; line-height: 18px;"><?php echo $_smarty_tpl->tpl_vars['i']->value['title'];?>
</strong>
                  <?php }?>

                  
                </div>

              </div>
              <?php
$_smarty_tpl->tpl_vars['i'] = $__foreach_i_5_saved_local_item;
}
if ($__foreach_i_5_saved_item) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_i_5_saved_item;
}
if ($__foreach_i_5_saved_key) {
$_smarty_tpl->tpl_vars['j'] = $__foreach_i_5_saved_key;
}
?>
              <?php $_smarty_tpl->tpl_vars["buonipasto"] = new Smarty_Variable(array_slice($_smarty_tpl->tpl_vars['buonipasto']->value,4), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "buonipasto", 0);?>
            </div>
            <?php }?>

            <ul class="list">
            </ul>
          </div>
        </div>
      </div>
    <?php
}
/* {/block 'content'} */
/* {block 'jstail'}  file:punti-vendita-dettaglio.tmpl */
function block_85605650465d61879449bb6_32807661($_smarty_tpl, $_blockParentStack) {
?>

    <?php echo '<script'; ?>
 src="https://maps.googleapis.com/maps/api/js?language=it&region=IT&key=AIzaSyB6Z5rKR2huU_foZ-LxHlyqdU8XL9zVny0"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
>
      $(function () {
        if (window.google) {
          var map = new google.maps.Map(document.getElementById('map_canvas'), {
                   center: new google.maps.LatLng(<?php echo $_smarty_tpl->tpl_vars['store']->value['lat'];?>
, <?php echo $_smarty_tpl->tpl_vars['store']->value['lng'];?>
)
                 , mapTypeId: google.maps.MapTypeId.ROADMAP
                 , zoom: 13
              })
             , marker = new google.maps.Marker({
                  position: new google.maps.LatLng(<?php echo $_smarty_tpl->tpl_vars['store']->value['lat'];?>
, <?php echo $_smarty_tpl->tpl_vars['store']->value['lng'];?>
)
                , map: map
                , icon: {
                      url: '<?php echo $_smarty_tpl->tpl_vars['cdn_url']->value;?>
/images/map.png'
                    , anchor: new google.maps.Point(21, 28)
                  }
             })
        }
      })
    <?php echo '</script'; ?>
>
    <?php
}
/* {/block 'jstail'} */
}