80 lines
3.5 KiB
Smarty
80 lines
3.5 KiB
Smarty
{**
|
|
* 2007-2017 PrestaShop
|
|
*
|
|
* 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.txt.
|
|
* 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 http://www.prestashop.com for more information.
|
|
*
|
|
* @author PrestaShop SA <contact@prestashop.com>
|
|
* @copyright PrestaShop SA
|
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*}
|
|
|
|
{assign var="leobrbg" value={hook h="pagebuilderConfig" configName="leobrbg"}}
|
|
{assign var="leobrcolor" value={hook h="pagebuilderConfig" configName="leobrcolor"}}
|
|
{assign var="leobgfull" value={hook h="pagebuilderConfig" configName="leobgfull"}}
|
|
{assign var="leobgheight" value={hook h="pagebuilderConfig" configName="leobgheight"}}
|
|
{assign var="leobrtext" value={hook h="pagebuilderConfig" configName="leobrtext"}}
|
|
|
|
{if $leobrbg || $leobrcolor}
|
|
<div class="breadcrumb-bg {$leobrtext} {if $leobgfull}breadcrumb-full{/if}" style="{if $leobrbg}background-image: {if $leobrbg}url({if $page.page_name == 'category' && $leobrbg == 'catimg' && $category.image.large.url != ''}{$category.image.large.url}{else}{$leobrbg}{/if}){/if};{/if}{if $leobrcolor} background-color:{$leobrcolor};{/if}{if $leobgheight} min-height:{$leobgheight};{/if} ">
|
|
{if isset($leobgfull) && $leobgfull}
|
|
<div class="container">
|
|
{/if}
|
|
<nav data-depth="{$breadcrumb.count}" class="breadcrumb hidden-sm-down">
|
|
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
|
|
{block name='breadcrumb'}
|
|
{foreach from=$breadcrumb.links item=path name=breadcrumb}
|
|
{block name='breadcrumb_item'}
|
|
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
|
<a itemprop="item" href="{$path.url}">
|
|
<span itemprop="name">{$path.title}</span>
|
|
</a>
|
|
<meta itemprop="position" content="{$smarty.foreach.breadcrumb.iteration}">
|
|
</li>
|
|
{/block}
|
|
{/foreach}
|
|
{/block}
|
|
</ol>
|
|
</nav>
|
|
{if isset($leobgfull) && $leobgfull}
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
{else}
|
|
<nav data-depth="{$breadcrumb.count}" class="breadcrumb hidden-sm-down">
|
|
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
|
|
{block name='breadcrumb'}
|
|
{foreach from=$breadcrumb.links item=path name=breadcrumb}
|
|
{block name='breadcrumb_item'}
|
|
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
|
{if $smarty.foreach.breadcrumb.iteration == "1"}
|
|
<a itemprop="item" href="{$path.url}">
|
|
<img src="/themes/at_movic/assets/img/modules/appagebuilder/images/home_icon.svg" alt="name">
|
|
</a>
|
|
{else}
|
|
<a itemprop="item" href="{$path.url}">
|
|
<span itemprop="name">{$path.title}</span>
|
|
</a>
|
|
{/if}
|
|
<meta itemprop="position" content="{$smarty.foreach.breadcrumb.iteration}">
|
|
</li>
|
|
{/block}
|
|
{/foreach}
|
|
{/block}
|
|
</ol>
|
|
</nav>
|
|
{/if} |