emlog获取某个分类的所有信息
[ 2015/06/23, Emlog , 3046阅, 0评 ]
<?php $sort_cache = Cache::getInstance()->readCache('sort');?>
分类名称:<?php echo $sort_cache[$sortid]['sortname'];?>
分类链接:<?php echo Url::sort($sortid);?>
分类描述:<?php echo $sort_cache[$sortid]['description'];?>
分类别名:<?php echo $sort_cache[$sortid]['alias'];?>
别名大写:<?php echo strtoupper($sort_cache[$sortid]['alias']);?>
分类文章数:
<?php
foreach($sort_cache as $value): 
if($value['sid'] == $sortid):?>
当前分类共有<?php echo $value['lognum'] ?>篇文章
<?php endif;endforeach;
?>

在分类列表页和内容页均可使用。

有朋自远方来...评论一下呗O(∩_∩)O