注册
DLE中文网 » Datalife Engine版本跟踪 » DataLife Engine 版本 15.3 和 16.0 之间的变化

DataLife Engine 版本 15.3 和 16.0 之间的变化

04 2月 2023, 07:54
Datalife Engine版本跟踪
405  
0
DataLife Engine 版本 15.3 和 16.0 之间的变化
1. 将 CSS 添加到您的模板:
.image-bordered {
	border: 1px solid #ddd;
}

.image-shadows {
	box-shadow: rgb(9 30 66 / 25%) 0px 4px 8px -2px, rgb(9 30 66 / 8%) 0px 0px 0px 1px;
}

.image-padded {
	padding: 0.5rem;
}

.comments-user-profile {
  font-weight: bold;
  cursor: pointer;
  color: #3394e6;
}
2、打开addnews.tpl文件,找到:
Добавить новость
改成:
{header-title}
3. 打开 templates/rss.tpl 文件并将全部内容替换为:
[rss]<item>
<title>{title}</title>
<guid isPermaLink="true">{rsslink}</guid>
<link>{rsslink}</link>
<dc:creator>{rssauthor}</dc:creator>
<pubDate>{rssdate}</pubDate>
<category>{category}</category>
<description><![CDATA[{short-story}]]></description>
</item>[/rss]

[turbo]<item turbo="true">
<turbo:extendedHtml>true</turbo:extendedHtml>
<link>{rsslink}</link>
<author>{rssauthor}</author>
<category>{category}</category>
<pubDate>{rssdate}</pubDate>
<turbo:content><![CDATA[<header><h1>{title}</h1></header>{full-story}]]></turbo:content>
</item>[/turbo]

[dzen]<item>
<title>{title}</title>
<link>{rsslink}</link>
<pdalink>{rsslink}</pdalink>
<guid>{news-id}</guid>
<pubDate>{rssdate}</pubDate>
<category>native-yes</category>
{images}
<content:encoded><![CDATA[{full-story}]]></content:encoded>
</item>[/dzen]
评论列表
注释的最小长度为10个汉子。评论正在编辑中
刷新图片

相关新闻: