前台展示增加收缩功能,防止页面过长
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: 日志归档
|
||||
Version: 1.5
|
||||
Version: 1.5.1
|
||||
Plugin URL: http://xiaosong.org/share/emlog-log-archiving-plug-in-released
|
||||
Description: 将所有日志按照日期或分类归档显示
|
||||
ForEmlog:5.0.0
|
||||
@@ -16,7 +16,7 @@ function displayRecord(){
|
||||
$record_cache = $CACHE->readCache('record');
|
||||
$output = '';
|
||||
foreach($record_cache as $value){
|
||||
$output .= '<li>'.$value['record'].'('.$value['lognum'].')'.displayRecordItem($value['date']).'</li>';
|
||||
$output .= '<li><h4>'.$value['record'].'('.$value['lognum'].')</h4>'.displayRecordItem($value['date']).'</li>';
|
||||
}
|
||||
$output = '<ul class="archiver">'.$output.'</ul>';
|
||||
return $output;
|
||||
@@ -39,7 +39,7 @@ function displaySort(){
|
||||
$sort_cache = $CACHE->readCache('sort');
|
||||
$output = '';
|
||||
foreach($sort_cache as $value){
|
||||
$output .= '<li>'.$value['sortname'].'('.$value['lognum'].')'.displaySortItem($value['sid']).'</li>';
|
||||
$output .= '<li><h4>'.$value['sortname'].'('.$value['lognum'].')</h4>'.displaySortItem($value['sid']).'</li>';
|
||||
}
|
||||
$output = '<ul class="archiver">'.$output.'</ul>';
|
||||
return $output;
|
||||
|
||||
Reference in New Issue
Block a user