| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
- <c:set var="assetBase" value="/main/ffkj-portal/news-red"/>
- <c:set var="defaultListImage" value="/main/ffkj-portal/news-red/campus-life.jpg"/>
- <c:set var="sidebarTitle" value="${empty parNavigation.name ? website.name : parNavigation.name}"/>
- <c:set var="sidebarImage" value="${empty navigation.backgroundImage ? defaultListImage : navigation.backgroundImage}"/>
- <c:set var="listStyleCode" value="${empty navigation.wnlscode ? 10000 : navigation.wnlscode}"/>
- <c:set var="isGraphicList" value="${listStyleCode == 10010}"/>
- <c:set var="isMediaGrid" value="${listStyleCode == 10030 or listStyleCode == 10050}"/>
- <!doctype html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>${navigation.name}_${website.seoTitle}</title>
- <link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-download-desc">
- </head>
- <body class="screen-red-theme">
- <%@ include file="news-red-header.jsp"%>
- <main>
- <div class="news-breadcrumb"><div class="wrap"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span> / </span><a href="${item.url}">${item.name}</a></c:forEach></div></div>
- <section class="section"><div class="wrap news-list-layout">
- <aside class="news-sidebar">
- <div class="news-sidebar-media"><img src="${sidebarImage}" alt="${sidebarTitle}"><strong class="news-sidebar-title">${sidebarTitle}</strong></div>
- <nav class="news-sidebar-links" aria-label="${sidebarTitle}导航">
- <c:choose>
- <c:when test="${not empty brotherNavList}">
- <c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach>
- </c:when>
- <c:when test="${not empty childrenNavList}">
- <c:forEach items="${childrenNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach>
- </c:when>
- <c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid ? 'active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:if></c:forEach></c:otherwise>
- </c:choose>
- </nav>
- </aside>
- <article class="news-list-panel">
- <div class="news-list-head"><h1>${navigation.name}</h1><span>${empty navigation.nameAssistant ? 'News List' : navigation.nameAssistant}</span></div>
- <c:choose>
- <c:when test="${empty articleList}"><div class="empty-line">暂无内容</div></c:when>
- <c:when test="${isMediaGrid}">
- <ul class="article-list article-list-media">
- <c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><img src="${empty item.thumbnail ? defaultListImage : item.thumbnail}" alt="${item.title}"><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></div></a></li></c:forEach>
- </ul>
- </c:when>
- <c:when test="${isGraphicList}">
- <ul class="article-list article-list-graphic">
- <c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><img src="${empty item.thumbnail ? defaultListImage : item.thumbnail}" alt="${item.title}"><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></div></a></li></c:forEach>
- </ul>
- </c:when>
- <c:otherwise>
- <ul class="article-list">
- <c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p></div></a></li></c:forEach>
- </ul>
- </c:otherwise>
- </c:choose>
- <c:if test="${pageCount > 1}">
- <nav class="news-pagination" aria-label="分页"><c:if test="${curPageNo > 1}"><a href="${curHerf}?page=${curPageNo - 1}">上一页</a></c:if><a class="active" href="${curHerf}?page=${curPageNo}">${curPageNo}</a><c:if test="${curPageNo < pageCount}"><a href="${curHerf}?page=${curPageNo + 1}">下一页</a></c:if></nav>
- </c:if>
- </article>
- </div></section>
- </main>
- <%@ include file="news-red-footer.jsp"%>
- </body>
- </html>
|