{**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 *}
{block name='head_charset'}
  <meta charset="utf-8">
{/block}
{* Marque le JS comme disponible au plus tôt (sur <html>), avant le rendu du body :
   évite le flash des éléments .ps-hidden-by-js (replis sans-JS, ex. bouton « Choisir »
   du paiement) qui n'étaient masqués que tardivement par le JS du cœur. *}
<script>document.documentElement.classList.add('js');</script>

{block name='head_ie_compatibility'}
  <meta http-equiv="x-ua-compatible" content="ie=edge">
{/block}

{block name='head_seo'}
  <title>{block name='head_seo_title'}{$page.meta.title}{/block}</title>
  {block name='hook_after_title_tag'}
    {hook h='displayAfterTitleTag'}
  {/block}
  <meta name="description" content="{block name='head_seo_description'}{$page.meta.description}{/block}">

  {if $page.meta.robots !== 'index'}
    <meta name="robots" content="{$page.meta.robots}">
  {/if}
  {if $page.canonical}
    <link rel="canonical" href="{$page.canonical}">
  {/if}
  {block name='head_hreflang'}
    {foreach from=$urls.alternative_langs item=pageUrl key=code}
      <link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
    {/foreach}
  {/block}
  
  {block name='head_microdata'}
    {include file="_partials/microdata/head-jsonld.tpl"}
  {/block}
  
  {block name='head_microdata_special'}{/block}
  
  {block name='head_pagination_seo'}
    {include file="_partials/pagination-seo.tpl"}
  {/block}

  {block name='head_open_graph'}
    {* image de partage : cover produit sur la fiche, logo boutique sinon *}
    {assign var=_ogImage value=''}
    {if isset($product) && !empty($product.cover.large.url)}
      {assign var=_ogImage value=$product.cover.large.url}
    {elseif !empty($shop.logo_details.src)}
      {assign var=_ogImage value=$shop.logo_details.src}
    {/if}
    <meta property="og:title" content="{$page.meta.title}" />
    <meta property="og:description" content="{$page.meta.description}" />
    <meta property="og:url" content="{$urls.current_url}" />
    <meta property="og:site_name" content="{$shop.name}" />
    {if $_ogImage}<meta property="og:image" content="{$_ogImage}" />{/if}
    {if isset($product) && $page.page_name == 'product'}
      <meta property="og:type" content="product" />
      {if $product.show_price}
        <meta property="product:price:amount" content="{$product.price_amount}" />
        {if !empty($currency.iso_code)}<meta property="product:price:currency" content="{$currency.iso_code}" />{/if}
      {/if}
    {else}
      <meta property="og:type" content="website" />
    {/if}
    {* Twitter Card *}
    <meta name="twitter:card" content="{if $_ogImage}summary_large_image{else}summary{/if}" />
    <meta name="twitter:title" content="{$page.meta.title}" />
    <meta name="twitter:description" content="{$page.meta.description}" />
    {if $_ogImage}<meta name="twitter:image" content="{$_ogImage}" />{/if}
  {/block}
{/block}

{block name='head_viewport'}
  <meta name="viewport" content="width=device-width, initial-scale=1">
{/block}

{block name='head_icons'}
  <link rel="icon" type="image/vnd.microsoft.icon" href="{$shop.favicon}?{$shop.favicon_update_time}">
  <link rel="shortcut icon" type="image/x-icon" href="{$shop.favicon}?{$shop.favicon_update_time}">
{/block}

{block name='stylesheets'}
  {include file="_partials/stylesheets.tpl" stylesheets=$stylesheets}
{/block}

{block name='javascript_head'}
  {include file="_partials/javascript.tpl" javascript=$javascript.head vars=$js_custom_vars}

{/block}

{block name='hook_header'}
  {$HOOK_HEADER nofilter}
{/block}

{block name='hook_extra'}{/block}