Changes

Jump to navigation Jump to search

Template Variables

439 bytes added, 13:30, 18 December 2015
no edit summary
[FIRSTNIGHTYYYY-MM-DD] - first night booked in YYYY-MM-DD format
 
[FIRSTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
[LASTNIGHT] - last night booked
[LASTNIGHTYYYY-MM-DD] - last night booked in YYYY-MM-DD format
 
[LASTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
[LEAVINGDAY] - check-out day
[LEAVINGDAYYYYY-MM-DD] - check-out day in YYYY-MM-DD format
 
[LEAVINGDAY:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
[NUMROOM] - the quantity of rooms booked (first room type only)
[CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format
 
[CURRENTDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
[CURRENTTIME] - current time
[BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format
 
[BOOKINGDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
[BOOKINGIP] - ip address of booker's computer
[/] - will divide the number left of the template variable by the number right
 
== strf Time Variables ==
You can use PHP strftime format strings to create custom time formats. Information on PHP strftime strings is available at [http://php.net/manual/en/function.strftime.php]
 
[FIRSTNIGHT:{%A, %e %B, %Y}] - first night booked
 
[FIRSTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
 
[LASTNIGHT:{%A, %e %B, %Y}] - last night booked
 
[LASTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
 
[LEAVINGDAY:{%A, %e %B, %Y}] - check-out
 
[LEAVINGDAY:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
 
[CURRENTDATE:{%A, %e %B, %Y}] - current date
 
[CURRENTDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.
 
[BOOKINGDATE:{%A, %e %B, %Y}] - booking date
 
[BOOKINGDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.

Navigation menu