Template Variables: Difference between revisions

Jump to navigation Jump to search
Line 75: Line 75:
[FIRSTNIGHTYYYY-MM-DD] - first night booked in YYYY-MM-DD format
[FIRSTNIGHTYYYY-MM-DD] - first night booked in YYYY-MM-DD format


[FIRSTNIGHT:+1day] - offset from first night, can be any number of days positive or negative
[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  
[LASTNIGHT] - last night booked  
Line 83: Line 83:
[LASTNIGHTYYYY-MM-DD] - last night booked in YYYY-MM-DD format
[LASTNIGHTYYYY-MM-DD] - last night booked in YYYY-MM-DD format


[LASTNIGHT:+1day] - offset from last night, can be any number of days positive or negative
[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
[LEAVINGDAY] - check-out day
Line 91: Line 91:
[LEAVINGDAYYYYY-MM-DD] - check-out day in YYYY-MM-DD format
[LEAVINGDAYYYYY-MM-DD] - check-out day in YYYY-MM-DD format


[LEAVINGDAY:+1day] - offset from check-out, can be any number of days positive or negative
[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)  
[NUMROOM] - the quantity of rooms booked (first room type only)  
Line 213: Line 213:
[CURRENTDATEYYYY-MM-DD] - current date  in YYYY-MM-DD format
[CURRENTDATEYYYY-MM-DD] - current date  in YYYY-MM-DD format


[CURRENTDATE:+1day] - offset from current date, can be any number of days positive or negative
[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
[CURRENTTIME] - current time
Line 223: Line 223:
[BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format
[BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format


[BOOKINGDATE:+1day] - offset from booking date, can be any number of days positive or negative
[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
[BOOKINGIP] - ip address of booker's computer