File "punti-vendita-dettaglio.tmpl"

Full Path: /srv/www/www.cadoro.it/src/templates/punti-vendita-dettaglio.tmpl
File size: 7.79 KB
MIME-type: text/html
Charset: utf-8

{extends file='layout-base.tmpl'}

{block name=title}
  {$store.title} - CADORO
{/block}

{block name="head"}
  <meta name="keywords" content="">
  <meta name="description" content="{$store.address} - {$store.zipcode} {$store.city} ({$store.province})">
  <meta property="og:url" content="{$base_url}{$request_uri}">
  <meta property="og:title" content="{$store.title}">
  <meta property="og:image" content="{$cdn_url}/images/logo.png">
  <meta property="og:description" content="{$store.address} - {$store.zipcode} {$store.city} ({$store.province})">
{/block}

<html>
  <body>
    {block name="content"}
      <div class="row">
        <div class="col-sm-4 mt20">
          <div class="well well-xs" style="min-height: 400px;">
            <p class="h4 mt0 mb10">
              <strong>{$store.title}</strong>
            </p>
            {$store.address}<br>
            {$store.zipcode} {$store.city} ({$store.province})
            {if $store.phone}<br>Tel. {$store.phone}{/if}
            {if $openings}
            <div class="mt40">
              <strong>ORARI DI APERTURA</strong>
              <ul class="list list-unstyled mt10 mb40">
                {foreach $openings as $o}
                <li>
                  <strong style="display: inline-block; width: 120px;">
                   {date('d', strtotime($o.date))}/{date('m', strtotime($o.date))} {_v(date('w', strtotime($o.date)), $DOWS)}
                  </strong>
                  {if $o.h1}{$o.h1}-{$o.h2}{/if}
                  {if $o.h3} - {$o.h3}-{$o.h4}{/if}
                  ({mb_strtolower($o.type)})
                </li>
                {/foreach}
              </ul>
            </div>
            {/if}
          </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">
          {if $flyers}
          <div class="well well-xs well-yellow">
            <strong>PROMOZIONI E CATALOGHI</strong>
            {foreach $flyers as $flyer}
            <a href="{$base_url}/punti-vendita/{$store.slug}/volantini/{$flyer.slug}-{$flyer.id}" class="news-related mt10 mb10">
			  <div class="row">
                <div class="col-xs-4">
                  <img src="{$cdn_url}/assets/{$flyer.thumb}" class="img-responsive" alt="{$flyer.title}">
                </div>
                <div class="col-xs-8">
                  <span class="news-related__title">
                    Dal {_dd($flyer.date_begin)} al {_dd($flyer.date_end)}<br>
                    <strong>{$flyer.title}</strong>
                  </span>
                </div>
              </div>
            </a>
            {/foreach}
          </div>
          {/if}
          {if $events}
          <div class="well well-xs well-orange">
            <strong>EVENTI IN NEGOZIO</strong>
            {foreach $events as $event}
            <a href="{$base_url}/news/{_a($event->get_category(), 'slug')}/{$event.slug}-{$event.id}" class="news-related mt10 mb10">
			  <div class="row">
                <div class="col-xs-4">
                  <div class="news-related__cover" style="background-image: url({$cdn_url}/assets/{$event.image_list});"></div>
                </div>
                <div class="col-xs-8">
                  <span class="news-related__title">{*{if $event.date}<strong>{_ddf($event.date)|mb_strtoupper}</strong><br>{/if}*}{$event.title}</span>
                </div>
              </div>
            </a>
            {/foreach}
          </div>
		  {/if}
          {*<div class="well well-xs text-center">
            <a href="{$base_url}/filodiretto/lavora-con-noi">
              <img src="{$cdn_url}/images/lavora-con-noi-pv.jpg" class="img-responsive" alt="Lavora con noi">
            </a>
            
		    <div class="h4">
              <strong>Vuoi entrare a far parte<br>del nostro staff?</strong><br>
            </div>
            <p class="mt0">
              Controlla le posizioni aperte,<br>
              compila il form con i tuoi dati<br>
              e inviaci il tuo curriculum.
            </p>
          </div>*}
          {if isset($setting_banner.type)}
          <a href="{$setting_banner.link}">
              <img src="{$cdn_url}/assets/{$setting_banner.image}" class="img-responsive mb20" alt="grandi-marche">
          </a>
          {/if}
          <a href="{$base_url}/filodiretto/lavora-con-noi">
              <img src="{$cdn_url}/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">
                {foreach $STORE_SERVICES as $k => $v}{if in_array($k, _a($store, 'services', [])) and in_array($k, $STORE_DEPARTMENTS)}
                <li>
                  <img src="{$cdn_url}/images/icon-punto-vendita-{$k}.png" alt="{$v}" width="40" style="margin-right: 10px; vertical-align: -13px;"> {$v}
                </li>
                {/if}{/foreach}
              </ul>
            </div>
            <div class="col-sm-6 mt0">
              <strong>
                SERVIZI
              </strong>
              <ul class="list list-unstyled mt10">
                {foreach $STORE_SERVICES as $k => $v}{if in_array($k, _a($store, 'services', [])) and not in_array($k, $STORE_DEPARTMENTS)}
                <li>
                  <img src="{$cdn_url}/images/icon-punto-vendita-{$k}.png" alt="{$v}" width="40" style="margin-right: 10px; vertical-align: -13px;"> {$v}
                </li>
                {/if}{/foreach}
              </ul>
            </div>
          </div>
          <div class="mt40">
            <strong>
              BUONI PASTO ACCETTATI
            </strong>
            {while $buonipasto}
            <div class="row mt20">
              {foreach array_slice($buonipasto, 0, 4) as $j => $i}
              <div class="col-xs-6 col-md-3">
                <div class="thumbnail text-center {$i.id}" style="padding:0; height: 130px; line-height: 38px; font-size: 15px; margin-bottom: 0px;">
                  {if file_exists("../www/images/buoni-pasto/{$i.id}.jpg")}
                  <div style="height: 80px">
                  <center><img src="{$cdn_url}/images/buoni-pasto/{$i.id}.jpg" alt="{$i.title}" class="img-responsive" style="display: block; margin-top: 15px; max-height:80px;  max-width:120px"></center>
                  </div>
                  {$i.title}
                  {else}
                    <strong style="display: inline-block; line-height: 18px;">{$i.title}</strong>
                  {/if}

                  
                </div>

              </div>
              {/foreach}
              {assign "buonipasto" array_slice($buonipasto, 4)}
            </div>
            {/while}
            <ul class="list">
            </ul>
          </div>
        </div>
      </div>
    {/block}
    {block name="jstail"}
    <script src="https://maps.googleapis.com/maps/api/js?language=it&region=IT&key=AIzaSyB6Z5rKR2huU_foZ-LxHlyqdU8XL9zVny0"></script>
    <script>
      $(function () {
        if (window.google) {
          var map = new google.maps.Map(document.getElementById('map_canvas'), {
                   center: new google.maps.LatLng({$store.lat}, {$store.lng})
                 , mapTypeId: google.maps.MapTypeId.ROADMAP
                 , zoom: 13
              })
             , marker = new google.maps.Marker({
                  position: new google.maps.LatLng({$store.lat}, {$store.lng})
                , map: map
                , icon: {
                      url: '{$cdn_url}/images/map.png'
                    , anchor: new google.maps.Point(21, 28)
                  }
             })
        }
      })
    </script>
    {/block}
  </body>
</html>