Emlog调用参数

//调用链接
<?php global $CACHE; $link_cache = $CACHE->readCache(’link’); ?>
<?php foreach($link_cache as $value): ?>
<li><a href="<?php echo $value[’url’]; ?>" title="<?php echo $value[’des’]; ?>" target="_blank">&nbsp;<?php echo $value[’link’]; ?></a></li>
<?php endforeach; ?>
//调用博客统计
<?php $sta_cache = Cache::getInstance()->readCache(’sta’);?>
<li><a>日志数量:<?php echo $sta_cache[’lognum’]; ?></a></li>
<li><a>评论数量:<?php echo $sta_cache[’comnum’]; ?></a></li>
<li><a>引用数量:<?php echo $sta_cache[’tbnum’]; ?></a></li>
<li><a>运行时间:<?php echo floor((time()-strtotime("2010-9-8"))/86400); ?>天</a></li>
//调用归档
<?php global $CACHE; $record_cache = $CACHE->readCache(’record’);?>
<?php foreach($record_cache as $value): ?>
<li><a href="<?php echo Url::record($value[’date’]); ?>">&nbsp;<?php echo $value[’record’]; ?></a></li>
<?php endforeach; ?>
//调用分类
<?php global $CACHE;$sort_cache = $CACHE->readCache(’sort’); ?>
<?php foreach($sort_cache as $value): ?>
<li><a href="<?php echo Url::sort($value[’sid’]); ?>">&nbsp;<?php echo $value[’sortname’]; ?>(<?php echo $value[’lognum’] ?>)</a></li>
<?php endforeach; ?>

您可以选择一种方式赞助本站

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: