File "profilo.tmpl"
Full Path: /srv/www/www.cadoro.it/src/templates/profilo.tmpl
File size: 6.12 KB
MIME-type: text/html
Charset: utf-8
{extends "layout-base.tmpl"}
{block name=title}Il tuo profilo — CADORO{/block}
{block name="head"}
<meta name="description" content="Il tuo profilo — CADORO">
<meta name="author" content="">
{/block}
{block name="content"}
{if date('Ymd') ge '20210201'}
<div class="well well-white-red" style="font-size: 18px;">
<div class="text-center col-md-3">
<img src="{$base_url}/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
<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="{$base_url}/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="{$base_url}/images/google-play.png" alt="google play icon" class="icon-store-download-app">
</a>
</div>
<div style="clear:both;"></div>
</div>
{else}
{assign "points_migrations" $principal->get_points_migrations()}
<div class="row">
<div class="col-md-12 mb10">
<img src="{$base_url}/images/scadenza_punti_2021.jpg" alt="scadenza punti" class="img-responsive">
</div>
</div>
{if $points_migrations}
<div class="well well-white-red">
{*<h3 class="text-center red mt20">
<strong>I PUNTI ORO RACCOLTI NEL 2019 SCADONO IL 31 GENNAIO 2021</strong>
<small>
<strong>AFFRETTATI A UTILIZZARLI ACQUISTANDO I PRODOTTI IN OFFERTA</strong>
</small>
</h3>*}
<div class="font-big text-center mt10 mb10">
Hai un totale di <strong>{_n($principal->get_points(), 0)}</strong> punti di cui <strong class="red">{_n($points_migrations, 0)}</strong> verranno cancellati il primo febbraio.
</div>
</div>
{/if}
{/if}
<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="{$cdn_url}/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="{$base_url}/profilo/modifica" class="well well-brown">
<div class="mb20">
<img src="{$cdn_url}/images/btn-profilo-2.png" alt="">
</div>
<br>
<strong>Il tuo profilo</strong><br>
Modifica i tuoi dati
</a>
</div>
<div class="col-sm-3">
<a href="{$base_url}/profilo/punti" class="well well-ocher">
{if !$principal['dipendente']}
<img src="{$cdn_url}/images/btn-profilo-3.png" alt="" class="hidden-md hidden-sm hidden-xs pull-left">
{/if}
<div class="counter mt10">
<strong>{_n($principal->get_points(), 0)}</strong> punti
</div>
<br>
<br>
sulla tua CARD’ORO<br>
<small>Dati aggiornati al {$smarty.now|date_format:"%d/%m/%Y"} 06:00</small>
</a>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<a href="{$base_url}/profilo/preferiti" class="well well-red">
<div class="mb20">
<img src="{$cdn_url}/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="{$base_url}/profilo/lista-spesa" class="well well-lightgreen">
<div class="mb20">
<img src="{$cdn_url}/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="{$base_url}/profilo/punti" class="well well-lightorange">
<div class="mb20">
<img src="{$cdn_url}/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">
{assign "store" $principal->get_store()}
{if $store}
<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>{$store.title}</strong><br>
{$store.address}<br>
{$store.zipcode} {$store.city} ({$store.province})<br>
Tel. {$store.phone}
</div>
<div class="col-sm-6 text-right">
<a href="{$base_url}/punti-vendita/{$store.slug}">
<img src="{$cdn_url}/images/icon-chevron.png" hspace="20">
</a>
</div>
</div>
{assign "openings" $store->openings()}
{if $openings}
{assign "o" array_shift($openings)}
<hr>
<strong>Oggi {if $o.h1}{$o.h1}-{$o.h2}{/if} {if $o.h3} - {$o.h3}-{$o.h4}{/if} ({mb_strtolower($o.type)})</strong>
{/if}
{*
<div class="text-right well-footer">
<a href="{$base_url}/profilo/modifica">cambia punto vendita <i class="fa fa-chevron-right"></i></a>
</div>
*}
</div>
</div>
{/if}
{if isset($banners) and $banners}
{foreach $banners as $b}
<div class="col-sm-3 col-xs-6 mb20">
<a href="{$b.href}"{if $b.rel} rel="{$b.rel}"{/if}>
<img src="{$cdn_url}/assets/{$b.image}" alt="{$b.title}" class="img-responsive">
</a>
</div>
{/foreach}
{/if}
</div>
{/block}