education-sidebar.jsp 1.7 KB

123456789101112131415
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <c:set var="educationSidebarTitle" value="${empty parNavigation.name ? (empty navigation.name ? '学院栏目' : navigation.name) : parNavigation.name}"/>
  4. <c:if test="${parNavigation.idcard eq 'FFKJ_EDU_HOME_GROUP' or parNavigation.idcard eq 'FFKJ_DEPT_HOME_GROUP' or educationSidebarTitle eq '首页子栏目'}"><c:set var="educationSidebarTitle" value="首页"/></c:if>
  5. <c:set var="educationActiveSidebarNavId" value="${empty educationActiveSidebarNavId ? navigation.navigationid : educationActiveSidebarNavId}"/>
  6. <aside class="edu-sidebar">
  7. <div class="edu-sidebar-head"><small>COLUMN NAVIGATION</small><h2>${educationSidebarTitle}</h2></div>
  8. <nav class="edu-sidebar-nav" aria-label="${educationSidebarTitle}栏目导航">
  9. <c:choose>
  10. <c:when test="${not empty childrenNavList}"><c:forEach items="${childrenNavList}" var="item"><a class="${item.navigationid eq educationActiveSidebarNavId ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
  11. <c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq educationActiveSidebarNavId ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
  12. <c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq educationActiveSidebarNavId ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:if></c:forEach></c:otherwise>
  13. </c:choose>
  14. </nav>
  15. </aside>