Template Variables: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 79: | Line 79: | ||
[FIRSTNIGHTYYYY-MM-DD] - first night booked in YYYY-MM-DD format | [FIRSTNIGHTYYYY-MM-DD] - first night booked in YYYY-MM-DD format | ||
[LASTNIGHT] - last night booked | [LASTNIGHT] - last night booked | ||
| Line 87: | Line 85: | ||
[LASTNIGHTYYYY-MM-DD] - last night booked in YYYY-MM-DD format | [LASTNIGHTYYYY-MM-DD] - last night booked in YYYY-MM-DD format | ||
[LEAVINGDAY] - check-out day | [LEAVINGDAY] - check-out day | ||
| Line 95: | Line 91: | ||
[LEAVINGDAYYYYY-MM-DD] - check-out day in YYYY-MM-DD format | [LEAVINGDAYYYYY-MM-DD] - check-out day in YYYY-MM-DD format | ||
[NUMROOM] - the quantity of rooms booked (first room type only) | [NUMROOM] - the quantity of rooms booked (first room type only) | ||
| Line 217: | Line 211: | ||
[CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format | [CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format | ||
[CURRENTTIME] - current time | [CURRENTTIME] - current time | ||
| Line 227: | Line 219: | ||
[BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format | [BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format | ||
[BOOKINGIP] - ip address of booker's computer | [BOOKINGIP] - ip address of booker's computer | ||
| Line 341: | Line 331: | ||
[/] - will divide the number left of the template variable by the number right | [/] - 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. | |||