Skip to content

Instantly share code, notes, and snippets.

@SergioLarios
Created September 24, 2018 11:34
Show Gist options
  • Save SergioLarios/edb2f80d175d7cb9a761b6aa0f9d6b41 to your computer and use it in GitHub Desktop.
Save SergioLarios/edb2f80d175d7cb9a761b6aa0f9d6b41 to your computer and use it in GitHub Desktop.
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="format" tagdir="/WEB-INF/tags/shared/format"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/responsive/product"%>
<%@ taglib prefix="component" tagdir="/WEB-INF/tags/shared/component"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="cms" uri="http://hybris.com/tld/cmstags"%>
<spring:htmlEscape defaultHtmlEscape="true" />
<c:if test="${(themeName eq 'palladium')}">
<%-- Links --%>
<div id="hdtb-sc" class="anchored-menu-wrapper">
<div class="anchored-menu-container">
<ul id="hdtb-msb" class="anchored-menu__list">
<c:forEach items="${menuEntries}" var="link">
<c:if test="${link.visible}">
<li class="anchored-menu__item">
<cms:component component="${link}" />
</li>
</c:if>
<c:if test="${fn:endsWith(link.url, '/instalaciones')}">
<c:forEach items="${highlightedLinks}" var="highlightedLink">
<li class="anchored-menu__item">
<a href="${highlightedLink.url}">${highlightedLink.title}</a>
</li>
</c:forEach>
</c:if>
</c:forEach>
</ul>
</div>
</div>
</c:if>
<c:if test="${(themeName eq 'bless')}">
<div id="hdtb-sc" class="page-menu-wrapper">
<div class="container">
<ul id="hdtb-msb" class="page-menu__list">
<c:forEach items="${menuEntries}" var="link">
<c:if test="${link.visible}">
<li class="page-menu__item">
<cms:component component="${link}" />
</li>
</c:if>
<c:if test="${fn:endsWith(link.url, '/experiencias') || fn:endsWith(link.url, '/experiences')}">
<c:forEach items="${highlightedLinks}" var="highlightedLink">
<li class="page-menu__item">
<a href="${highlightedLink.url}">${highlightedLink.title}</a>
</li>
</c:forEach>
</c:if>
</c:forEach>
</ul>
</div>
</div>
</c:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment