Add book shortcode for booking a tour date
This commit is contained in:
parent
e84ce0804c
commit
934bf9d9f4
1 changed files with 41 additions and 0 deletions
14
README.md
14
README.md
|
|
@ -144,6 +144,20 @@ The icon is `regular/calendar-plus` from [Font Awesome Free](https://fontawesome
|
|||
|
||||
Each entry starts at the time given, in Hamburg time, at the Hackertours desk (with `map.origin` from the schedule file as the address, if there is one). Its description is the tour summary and a link to the tour page. The files are generated next to the tour page, one per date and language, e.g. `/de/40c3/tour-of-the-giants/tour-of-the-giants-2026-12-27-1730.ics`.
|
||||
|
||||
## Shortcode: Book now
|
||||
|
||||
`{{< book >}}` adds a "Book now" button with a shopping cart icon after a tour date, linking to that date in the ticket shop. Hackertours-Admin puts it into the list of dates on each tour page, before the calendar pill:
|
||||
|
||||
```markdown
|
||||
* Tag 1 (27.12.) **13:00 Uhr** {{< book url="https://…/hackertours/40c3ht/100/" >}} {{< calendar date="2026-12-27" time="13:00" >}}
|
||||
```
|
||||
|
||||
| Param | Required | Content |
|
||||
|---|---|---|
|
||||
| `url` | yes | The date in the ticket shop |
|
||||
|
||||
The button text is `book_now` in the theme's i18n files. The icon is `solid/cart-shopping` from Font Awesome Free (see "Shortcode: Calendar entry").
|
||||
|
||||
## Shortcode: Tour map
|
||||
|
||||
`{{< tour-map >}}` on an event's overview page shows a map of the tour locations, with the routes from the Congress, on OpenStreetMap. For a different event than the page's section, pass its name: `{{< tour-map 39c3 >}}`. It uses [Leaflet](https://leafletjs.com), which is kept in [themes/hackertours/assets/vendor/leaflet/](themes/hackertours/assets/vendor/leaflet/).
|
||||
|
|
|
|||
Loading…
Reference in a new issue