| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
- <c:set var="xgDisplayTitle" value="${empty website.seoTitle ? website.name : website.seoTitle}"/>
- <header class="header">
- <div class="wm" aria-hidden="true">
- <svg class="l" viewBox="0 0 300 118" fill="none" stroke="#fff" stroke-width="1.4">
- <circle cx="60" cy="59" r="34"/><circle cx="60" cy="59" r="20"/>
- <path d="M8 92 L52 60 L18 44 L60 24"/>
- <text x="112" y="40" fill="#fff" stroke="none" font-size="20" font-family="serif">∑ ∫ π</text>
- <text x="112" y="72" fill="#fff" stroke="none" font-size="16" font-family="serif">f(x)=ax²+bx+c</text>
- </svg>
- <svg class="r" viewBox="0 0 300 118" fill="none" stroke="#fff" stroke-width="1.4">
- <path d="M292 18 H210 V52 H150 V86 H60 M292 58 H240 V96 H150"/>
- <circle cx="286" cy="18" r="5"/><circle cx="286" cy="58" r="5"/><circle cx="60" cy="86" r="5"/>
- <rect x="150" y="42" width="34" height="20" rx="3"/><path d="M184 52 H210"/>
- </svg>
- </div>
- <div class="wrap">
- <a class="brand" href="/" aria-label="${website.name}首页">
- <c:choose>
- <c:when test="${not empty website.logo}"><img class="brand-logo-image" src="${website.logo}" alt="${website.name}"></c:when>
- <c:otherwise><span class="brand-text-fallback"><span class="s1">${website.name}</span><span class="s2">School of Information Engineering</span></span></c:otherwise>
- </c:choose>
- </a>
- <div class="header-search-group">
- <c:if test="${xingongHomePage}">
- <c:set var="xgSchoolHomeFound" value="${false}" scope="request"/>
- <c:forEach items="${deptTopLinksNmv.articleList}" var="item">
- <c:if test="${item.title eq '学校首页'}">
- <c:set var="xgSchoolHomeFound" value="${true}" scope="request"/>
- <a class="school-home-link" href="${item.url}" target="${item.target}" rel="noopener"><span>${item.title}</span><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg></a>
- </c:if>
- </c:forEach>
- <c:if test="${not xgSchoolHomeFound}">
- <a class="school-home-link" href="https://www.gzhxtc.edu.cn/" target="_blank" rel="noopener"><span>学校首页</span><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M7 17 17 7M9 7h8v8"/></svg></a>
- </c:if>
- </c:if>
- <form class="search" action="/search" method="get" role="search">
- <input type="search" name="str" value="${fn:escapeXml(str)}" placeholder="搜索文章…" aria-label="站内搜索">
- <button class="btn" type="submit" aria-label="提交搜索">
- <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round"><circle cx="10.5" cy="10.5" r="7"/><path d="M20 20 l-4.6-4.6"/></svg>
- </button>
- </form>
- </div>
- <button class="xg-mobile-menu" type="button" aria-label="打开导航" aria-controls="xg-mobile-drawer" aria-expanded="false"><span></span><span></span><span></span></button>
- </div>
- </header>
- <nav class="nav" aria-label="主导航">
- <ul>
- <c:forEach items="${navList}" var="item">
- <c:if test="${item.name ne '首页子栏目'}">
- <li class="${not empty item.children ? 'has-children' : ''}${(empty navigation and item.name eq '首页') or item.navigationid eq navigation.navigationid or item.navigationid eq navigation.parentNid ? ' on' : ''}">
- <a href="${empty item.href ? (empty item.children ? '/' : item.children[0].href) : item.href}" target="${item.target}">${item.name}</a>
- <c:if test="${not empty item.children}">
- <ul class="xg-nav-panel">
- <c:forEach items="${item.children}" var="child">
- <li><a href="${child.href}" target="${child.target}">${child.name}</a></li>
- </c:forEach>
- </ul>
- </c:if>
- </li>
- </c:if>
- </c:forEach>
- </ul>
- </nav>
- <div class="xg-drawer-layer" id="xg-mobile-drawer" hidden>
- <button class="xg-drawer-mask" type="button" aria-label="关闭导航"></button>
- <aside class="xg-drawer" aria-label="移动端导航">
- <div class="xg-drawer-head"><strong>${xgDisplayTitle}</strong><button type="button" aria-label="关闭导航">×</button></div>
- <nav class="xg-drawer-nav">
- <a href="/">首页</a>
- <c:forEach items="${navList}" var="item">
- <c:if test="${item.name ne '首页子栏目'}">
- <a href="${empty item.href ? (empty item.children ? '/' : item.children[0].href) : item.href}" target="${item.target}">${item.name}</a>
- <c:if test="${not empty item.children}">
- <div class="xg-drawer-children">
- <c:forEach items="${item.children}" var="child"><a href="${child.href}" target="${child.target}">${child.name}</a></c:forEach>
- </div>
- </c:if>
- </c:if>
- </c:forEach>
- </nav>
- </aside>
- </div>
|