File "cms.tmpl"

Full Path: /srv/www/www.cadoro.it/src/templates/cms.tmpl
File size: 2.23 KB
MIME-type: text/html
Charset: utf-8

{extends "layout-base.tmpl"}

{block name=title}
  {$page.seo_title|default:strip_tags($page.title)}
{/block}

{block name="head"}
  <meta name="keywords" content="{$page.seo_keywords}">
  <meta name="description" content="{if $page.seo_description} {$page.seo_description} {else} Scopri i supermercati Cadoro, le offerte, i punti vendita più vicini a te, le informazioni sui prodotti e tanti consigli per la tua spesa. {/if}">
  <meta property="og:url" content="{$base_url}{$request_uri}">
  <meta property="og:title" content="{$page.seo_title|default:$page.title}">
  <meta property="og:image" content="{if $page.seo_image}{$base_url}/assets/{$page.seo_image}{/if}">
  <meta property="og:description" content="{$page.seo_description}">
{/block}

{block name="csshead"}
  <style>
  {foreach $page->content() as $content}
  {if $content.style and
      $content.condition eq 1 or
      $content.condition eq 2 and not $principal or
      $content.condition eq 3 and $principal}
    {$content.style}
  {/if}
  {/foreach}
  </style>
{/block}

{block name="content_full"}
  <div class="content cms-wrapper"{if $page.header} style="background-image: url({$cdn_url}/assets/{$page.header});"{/if}>
    {if $page.header}
    <div class="container">
      <div class="cms-header text-center">
        <h1 class="h1">
          {$page.title}
          {if $page.subtitle}<small>{$page.subtitle}</small>{/if}
        </h1>
      </div>
    </div>
    {/if}

    {if isset($banners) and $banners}
    <div class="container">
      <div class="row mt20">
        {foreach $banners as $b}
        <div class="col-sm-3 col-xs-6 mt20">
          <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}
      </div>
    </div>
    {/if}

    {include "cms-content.tmpl"}

    {if $page.slug eq '/'}
      {include "home.tmpl"}
    {elseif $page.slug eq '/cardoro'}
      <h1 class="hidden">ENTRA NEL MONDO CARD’ORO E APPROFITTA DI TUTTI I VANTAGGI DELLA RACCOLTA PUNTI CADORO</h1>
    {elseif $page.slug eq '/app-cadoro-2'}
      <h1 class="hidden">Cadoro App</h1>
      <h2 class="hidden">Il mondo Cadoro sempre in tasca</h2>
    {/if}
  </div>
{/block}