WordPress Plugin - Fanfou Tools 1.0 Beta 5
Fanfou Tools 更新到 v1.0b5.
- 新特性:Fanfou Tools 支持 WordPress Widgets 了
- 重写 fanfou_list_posts(),增加 $args 参数
- 在设置界面可以设置时间的格式
$args 参数的风格与 sidebar 类似的函数相似,需要注意的是参数 $args 中的值将会覆盖 Fanfou Options 中设置的参数,
比如 sidebar 中显示消息数目 limit 和时间格式 date_format。
示例:
// 使用默认参数
fanfou_list_posts();
// 不显示时间
fanfou_list_posts("show_date=0");
// 自定义时间格式,并显示 5 条饭否消息
fanfou_list_posts("date_format=Y-m-d H:i&limit=5");
fanfou_list_posts();
// 不显示时间
fanfou_list_posts("show_date=0");
// 自定义时间格式,并显示 5 条饭否消息
fanfou_list_posts("date_format=Y-m-d H:i&limit=5");
可用的参数包括(左侧为参数名,右侧为默认值):
show_date => 1
date_format => Y-m-d H:i
title_li => Fanfou
echo => 1
sort_column => fanfou_created_at
sort_order => DESC
class => fanfou
limit => 10
date_format => Y-m-d H:i
title_li => Fanfou
echo => 1
sort_column => fanfou_created_at
sort_order => DESC
class => fanfou
limit => 10
详细信息、下载,请访问:
WordPress Plugin - Fanfou Tools



