打开/extend/function.php文件,在里面添加下面代码:1.判断当天文章加图标/*自定义时间戳当天加图片函数文件,调用代码:{$field.add_time|diy_MyDate=###}*/ function diy_MyD...
2024-01-0253模板标签
【效果图】【实现方法】第一步:打开根目录下 extend/function.php 文件(此文件是用户可以自定义函数的php文件,官方升级永久不会覆盖);第二步:在末尾回车换行,复制以下代码粘贴在最末尾处;if (!function_exi...
2024-01-0267模板标签
需要写入的php函数,请在“网站根目录extend/function.php”文件内写入if (!function_exists(‘diy_archives_list‘)) { // 获取指定天数的文档列表 function d...
2024-01-0253模板标签
使用sql等标签获取到文档信息,但是没有获取到文档页面的链接,可以使用以下方法生成。1、在根目录下\extend\function.php中创建方法:if (!function_exists('diy_get_arcurl'...
2024-01-0263模板标签
{eyou:sql sql='SELECT count(aid) AS count FROM __PREFIX__archives WHERE status = 1 AND FROM_UNIXTIME(ADD_TIME) BETWE...
2024-01-0143模板标签
{eyou:sql sql='SELECT count(aid) AS count FROM __PREFIX__archives WHERE status = 1 AND YEARWEEK(date_format(FROM_UNI...
2024-01-0136模板标签
{eyou:sql sql='SELECT count(aid) AS count FROM __PREFIX__archives WHERE status = 1 AND YEARWEEK(date_format(FROM_UNI...
2024-01-0141模板标签
{eyou:sql sql='SELECT count(aid) AS count FROM __PREFIX__archives WHERE status = 1 AND YEAR(FROM_UNIXTIME(ADD_TIME))...
2024-01-0138模板标签
{eyou:sql sql='SELECT count(aid) AS count FROM __PREFIX__archives WHERE status = 1 AND YEAR(FROM_UNIXTIME(add_time))...
2024-01-0134模板标签
{eyou:sql sql='SELECT count(aid) AS count FROM __PREFIX__archives WHERE status = 1 AND QUARTER(FROM_UNIXTIME(add_tim...
2024-01-0141模板标签