dept-red-footer.jsp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  4. <c:set var="deptFooterLogo" value="${website.logo}"/>
  5. <c:if test="${empty deptFooterLogo and not empty deptFooterLogoNmv.articleList[0].thumbnail}"><c:set var="deptFooterLogo" value="${deptFooterLogoNmv.articleList[0].thumbnail}"/></c:if>
  6. <c:set var="deptContactImage" value="${deptFooterImageNmv.articleList[0].thumbnail}"/>
  7. <c:set var="deptCopyrightText" value=""/>
  8. <c:forEach items="${deptFooterAddressNmv.articleList}" var="item">
  9. <c:if test="${fn:startsWith(item.title, '版权所有')}"><c:set var="deptCopyrightText" value="${item.title}"/></c:if>
  10. </c:forEach>
  11. <footer class="dept-footer">
  12. <div class="wrap dept-footer-main">
  13. <div class="dept-footer-contact">
  14. <c:if test="${not empty deptFooterLogo}"><img class="dept-footer-logo" src="${deptFooterLogo}" alt="${website.name}"></c:if>
  15. <c:if test="${empty deptFooterLogo}"><strong>${website.name}</strong></c:if>
  16. <div class="dept-footer-contact-lines">
  17. <c:forEach items="${deptFooterAddressNmv.articleList}" var="item">
  18. <c:if test="${fn:startsWith(item.title, '地址')}">
  19. <p>${item.title}</p>
  20. <c:if test="${not empty item.desc and item.desc ne item.title}"><p>${item.desc}</p></c:if>
  21. </c:if>
  22. </c:forEach>
  23. </div>
  24. </div>
  25. <div class="dept-footer-links">
  26. <strong>快捷入口</strong>
  27. <div>
  28. <c:forEach items="${deptTopLinksNmv.articleList}" var="item"><a href="${item.url}" target="${item.target}">${item.title}</a></c:forEach>
  29. </div>
  30. </div>
  31. <c:if test="${not empty deptContactImage}"><div class="dept-footer-image"><img src="${deptContactImage}" alt="${website.name}联系方式"></div></c:if>
  32. </div>
  33. </footer>
  34. <c:if test="${not empty deptCopyrightText}">
  35. <div class="dept-footer-copyright"><div class="wrap">${deptCopyrightText}</div></div>
  36. </c:if>