<#assign attribute=getContentAttribute(content.id)/>
<@cms.category id=content.categoryId;category>
<#assign
temp=getContentPage(attribute.text!'',pageIndex)
page=temp.page
text=temp.text
/>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>${content.title} - ${(category.name)!}</title>
<meta name="keywords" content="<#list getKeywords(content.title) as a>${a}<#sep>,</#list>"/>
<meta name="description" content="${(content.description)!}"/>
<@tools.includePlace path="/common/697054d4-2b69-4476-b4fe-868c61316959.html"/> <#-- header -->
</head>
<body class="d-flex flex-column">
<main class="flex-shrink-0">
<@tools.includePlace path="/common/0b31f69d-dc03-407b-95af-88be3db0289e.html"/> <#-- nav -->
<!-- Page Content-->
<section class="py-5">
<div class="container px-5 my-5">
<div class="row gx-5">
<div class="col-lg-9">
<article>
<header class="mb-4">
<h1 class="fw-bolder mb-1">${content.title}</h1>
<div class="text-muted fst-italic mb-2">${content.publishDate?date}</div>
<@cms.tag ids=content.tagIds>
<#list map as k,t>
<a class="badge bg-secondary text-decoration-none link-light" href="${site.dynamicPath}search/?tagId=${k}">${t.name}</a>
</#list>
</@cms.tag>
</header>
<#if content.cover?has_content>
<figure class="mb-4 text-center"><img class="img-fluid rounded" src="${content.cover}" alt="${content.title}" /></figure>
</#if>
<section class="mb-4 content">
${(text?no_esc)!}
<#if content.hasImages>
<@cms.contentFileList contentId=content.id fileTypes='image'>
<#list page.list as file>
<figure class="ms-2 text-center">
<img loading="lazy" src="${(file.filePath)!}" alt="${(file.description)!}"/>
<figcaption>${file?counter}. ${(file.description)!}</figcaption>
</figure>
</#list>
</@cms.contentFileList>
</#if>
<#if content.hasFiles>
<@cms.contentFileList contentId=content.id downloadURL=true fileTypes='video,audio,document,other'>
<#list page.list as file>
<p><a href="${(file.filePath)!}" download="${(file.description)!}">${file?counter}. ${(file.description)!}</a></p>
</#list>
</@cms.contentFileList>
</#if>
</section>
<#if page.totalCount gt 1>
<ul class="pagination mb-5 overflow-auto">
<li class="page-item"><a class="page-link" href="${getPage(content.url,page.prePage)}">上一页</a></li>
<#list 1..page.totalCount as n>
<li class="page-item<#if n=page.pageIndex> active</#if>"><a class="page-link" href="${getPage(content.url,n)}">${n}</a></li>
</#list>
<li class="page-item"><a class="page-link" href="${getPage(content.url,page.nextPage)}">下一页</a></li>
</ul>
</#if>
</article>
<div class="text-center mb-3">
<#assign maxScores=5/>
<@sys.configData code="site"><#assign maxScores=(object.max_scores?number)!maxScores/></@sys.configData>
<span class="scores">
<#list 1..maxScores as i>
<a href="javascript:void(0);" title="${i} 分"><span class="icon <#if content.score gte i>icon-scores-star<#else>icon-scores-unstar</#if>"></span></a>
</#list>
<#if content.scores gt 0><b>${content.score}</b>分</#if>
<#if user?has_content>
<@cms.userScore userId=user.id itemType='content' itemId=content.id>
<span class="unscores ms-3">我的评分:${object.score} <a href="javascript:void(0);">取消</a></span>
</@cms.userScore>
</#if>
</span>
</div>
<#assign pageIndex=1/>
<@include path="/fragment/comment.html"/><#-- 评论列表 -->
</div>
<div class="col-lg-3">
<@sys.user id=content.userId>
<div class="d-flex align-items-center mb-4">
<img class="img-fluid rounded-circle big-avatar" src="${object.cover!(site.sitePath+'assets/images/avatar.png')}" alt="${object.nickname}" />
<div class="ms-3">
<div class="fw-bold">${object.nickname}</div>
<div class="text-muted">${category.name}</div>
</div>
</div>
</@sys.user>
<div class="px-2">
<h3 class="my-3 fs-5">该作者其他文章</h3>
<@cms.contentList userId=content.userId pageSize=5>
<ul class="list-unstyled">
<#list page.list as a>
<li class="text-truncate mb-2"><span class="float-end ms-3 text-secondary ">${a.publishDate?string('MM-dd')}</span><a href="${a.url}">${a.title}</a></li>
</#list>
</ul>
</@cms.contentList>
</div>
<div class="px-2">
<h3 class="my-3 fs-5">该栏目其他文章</h3>
<@cms.contentList categoryId=category.id pageSize=5>
<ul class="list-unstyled">
<#list page.list as a>
<li class="text-truncate mb-2"><span class="float-end ms-3 text-secondary ">${a.publishDate?string('MM-dd')}</span><a href="${a.url}">${a.title}</a></li>
</#list>
</ul>
</@cms.contentList>
</div>
</div>
</div>
</div>
</section>
</main>
<script>
var itemString="itemType=content&itemId=${content.id}";
var templatePath='${.current_template_name?keep_after('/')}';
</script>
<@tools.includePlace path="/common/704bd033-154c-40f4-a8c5-2d36c092c3fd.html"/> <#-- footer -->
<script src="${site.sitePath}assets/js/jquery-3.6.4.min.js"></script>
<script src="${site.sitePath}assets/ueditor/ueditor.parse.min.js"></script>
<script>
$.getJSON('${site.dynamicPath!}api/contentClick?id=${content.id}', function(data){});
uParse('#content',{rootPath: '${site.sitePath}assets/ueditor/'});
if($('.scores').find('.unscores').length){
$('.unscores a').click(function(){
$.ajax({url:'${site.dynamicPath!}score/unscore?itemId=${content.id}&itemType=content&_csrf=<@_csrfToken/>', success:function(data){
location.reload();
}});
});
}else{
$('.scores a').hover(function(){
$(this).find('span').removeClass('icon-scores-unstar').addClass('icon-scores-star');
$(this).prevAll().find('span').removeClass('icon-scores-unstar').addClass('icon-scores-star');
},function(){
$(this).find('span').removeClass('icon-scores-star').addClass('icon-scores-unstar');
$(this).prevAll().find('span').removeClass('icon-scores-star').addClass('icon-scores-unstar');
});
$('.scores a').click(function(){
$.ajax({url:'${site.dynamicPath!}score/score?itemId=${content.id}&itemType=content&scores='+($(this).index()+1)+'&_csrf=<@_csrfToken/>', success:function(data){
location.reload();
}});
});
}
</script>
</body>
</html>
</@cms.category>
没有合适的资源?快使用搜索试试~ 我知道了~
ModernBusiness-site.zip
共152个文件
js:45个
json:36个
html:30个
需积分: 5 0 下载量 56 浏览量
2023-12-30
08:49:09
上传
评论
收藏 1.12MB ZIP 举报
温馨提示
ModernBusiness-site
资源推荐
资源详情
资源评论
收起资源包目录
ModernBusiness-site.zip (152个子文件)
bootstrap.min.css 190KB
bootstrap-icons.css 92KB
swiper-bundle.min.css 17KB
shCoreDefault.css 7KB
charts.css 3KB
modern-business.css 2KB
metadata.data 5KB
model.data 3KB
metadata.data 3KB
metadata.data 3KB
metadata.data 1KB
categoryType.data 1KB
data.data 1KB
metadata.data 709B
metadata.data 620B
metadata.data 574B
data.data 274B
data.data 2B
data.data 2B
data.data 2B
data.data 2B
tools.ftl 2KB
article.html 7KB
map.html 6KB
show.html 5KB
picture.html 5KB
blog.html 5KB
charts.html 5KB
gmap.html 4KB
search.html 4KB
login.html 4KB
comment.html 4KB
about.html 4KB
picture.html 4KB
comment.html 3KB
faq.html 3KB
register.html 3KB
commentform.html 3KB
0b31f69d-dc03-407b-95af-88be3db0289e.html 2KB
932e3f40-3512-4e71-8384-3c89b999802f.html 2KB
index.html 2KB
500.html 1KB
704bd033-154c-40f4-a8c5-2d36c092c3fd.html 1KB
dd2c7520-ea5f-498f-882d-8f4ff9673b5e.html 1KB
efa7a561-5f4a-440b-a224-5f2ed057ce4f.html 1KB
aab8d612-3a71-45bd-9dc7-8c2605150fe6.html 893B
72fefe6c-1cb5-4606-bf17-78170bf5366f.html 855B
697054d4-2b69-4476-b4fe-868c61316959.html 807B
403.html 740B
404.html 722B
c1ca602c-8999-4b55-b3a3-9ae2fac15fcb.html 645B
c7747b4a-ab5f-4751-9da4-65d21428eb0c.html 244B
16-15-0408851682822828.jpg 3KB
highcharts.src.js 451KB
jquery-1.10.2.js 276KB
shCore.js 159KB
highcharts.js 138KB
swiper-bundle.min.js 135KB
canvas-tools.src.js 101KB
jquery-1.10.2.min.js 91KB
jquery-3.6.4.min.js 88KB
bootstrap.bundle.min.js 79KB
highcharts-more.src.js 61KB
canvas-tools.js 57KB
ueditor.parse.js 36KB
map.src.js 26KB
highcharts-more.js 21KB
exporting.src.js 18KB
data.src.js 16KB
ueditor.parse.min.js 14KB
standalone-framework.src.js 12KB
charts.js 11KB
drilldown.src.js 11KB
map.js 10KB
prototype-adapter.src.js 9KB
annotations.src.js 9KB
cms.support.js 8KB
mootools-adapter.src.js 8KB
exporting.js 7KB
funnel.src.js 7KB
drilldown.js 5KB
standalone-framework.js 5KB
gray.js 5KB
dark-blue.js 4KB
dark-green.js 4KB
data.js 4KB
annotations.js 3KB
prototype-adapter.js 3KB
no-data-to-display.src.js 3KB
mootools-adapter.js 2KB
funnel.js 2KB
grid.js 2KB
skies.js 2KB
chart.config.js 1KB
no-data-to-display.js 1KB
modern-business.js 1KB
heatmap.src.js 1KB
heatmap.js 536B
7051791845776429056.json 3KB
7051809130721316864.json 2KB
共 152 条
- 1
- 2
资源评论
淘金开源
- 粉丝: 2391
- 资源: 173
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功