{*
* 2018 PSBlog
*
* NOTICE OF LICENSE
*
* READ ATTACHED LICENSE.TXT
*
*  @author    PSBlog
*  @copyright 2018 PSBlog
*  @license   READ ATTACHED README.TXT
*}

{if count($languages_active) > 0}
<!-- Index HrefLang -->
{foreach from=$languages_active item=curr_lang}
<link rel="alternate" href="{$link->getPageLink('index', null, $curr_lang.id_lang, null, false, $curr_lang.id_shop)|escape:'htmlall':'UTF-8'}" {if $curr_lang.id_lang == $default_id_lang}hreflang="x-default"{else}hreflang="{$curr_lang.language_code|escape:'htmlall':'UTF-8'}"{/if} />
{/foreach}
{/if}