[zz]WordPress日历事件插件-Events Calendar

http://code.google.com/p/wp-aec/wiki/ShortcodeOptions

简单易用的WordPress日历插件,赞!

安装后,只需要在blog文章中添加[calendar]即可启用。下文是calendar支持的命令参数.

Shortcode Options

[calendar] and [eventlist] optional parameters

categories = "1,2,3" [one or more comma separated category ids] 
defaults to all categories when unassigned 
Display events from the specified category id(s)

excluded = true [true] 
defaults to false when unassigned 
Exclude categories listed in the categories parameter from being displayed

 

[calendar] only optional parameters

filter = 3 [integer | false] 
defaults to all when unassigned 
Highlight the specified category id in the filter, and display only those events in the calendar - input false to hide the filter

view = "basicDay" [basicDay | agendaDay | basicWeek | agendaWeek | month] 
defaults to month when unassigned 
Display the specified calendar view

month = 10 [integer] 
defaults to current month when unassigned 
Display the specified calendar month on load

year = 2001 [four digit integer] 
defaults to current year when unassigned 
Display the specified calendar year on load

views = "agendaDay, basicWeek" [one or more comma separated view labels | false ] 
defaults to "month,agendaWeek" when unassigned 
Display the specified view options in the calendar header - input false to hide the default view options

nav = false [false] 
defaults to true when unassigned 
Display calendar navigation buttons

scroll = true [true] 
defaults to false when unassigned 
Activate calendar mousewheel navigation

height = 200 [integer] 
defaults to automatic when unassigned 
Assign a minimum pixel height to the calendar

mini = true [true] 
defaults to false when unassigned 
Display the calendar as a minicalendar, displays nicely when applied within a sidebar or footer text widget

 

[eventlist] only optional parameters

start = "2011-07-10" [date] 
defaults to today when unassigned 
Display events starting on or after the specified date (yyyy-mm-dd date format required)

end = "+2 Weeks" [date | [Day | Week | Month | Year] intervals] 
defaults to "+1 Year" when unassigned 
Display events ending on or before the specified date or date interval (yyyy-mm-dd date format required)

limit = 15 [integer] 
defaults to 4 when unassigned 
Limit events displayed to the specified quantity

whitelabel = true [true] 
defaults to false when unassigned 
Render events without category colors

noresults = "No Results" [text] 
defaults to "No Upcoming Events" when unassigned 
Display this message when no events are returned


Examples 
[calendar categories="1,2,3" filter=2 month=8 views=false scroll=true] 
[eventlist categories="1,2,3" excluded=true start="2011-09-01' end="+3 Weeks" limit=5 noresults="No Events Available"]

转载于:https://www.cnblogs.com/bettermanlu/archive/2012/02/05/2339112.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值