
內容簡介
總結:這個外掛能將 LAUTI 實例中的活動以清單或時間表的方式展示在你的 WordPress 網站上,並提供簡單易調的 CSS 樣式。
1. 這個外掛的功能是什麼?
- 可以使用簡單的 shortcodes 從 LAUTI 實例中提取活動並在 WordPress 中呈現。
- 提供事件清單的 shortcode,可選擇是否連結至 LAUTI。
- 提供時間表的 shortcode,用於多天活動和房間。
- 提供最小的 CSS,可以在你的主題中進行覆寫。
2. 如何進行配置?
- 在管理儀表板中打開“LAUTI 日曆”。
- 設置和保存:
- 實例 URL:您的 LAUTI 實例的 URL。
- 實例名稱:顯示在清單下方“由...提供支持”的文字。
- 重要提示:在插入短代碼之前保存設置,以避免在保存頁面時出錯。
3. 什麼是短代碼?
- 清單:添加到任何頁面或文章,包含標題、信息、組 ID、地點 ID 和連結選項。
- 時間表:呈現多天事件跨特定房間/地點的時間表,包含 ID、地點、開始時間和結束時間。
4. 如何進行開發?
- 使用插件掛載來啟動 WordPress:
- docker-compose up
- 或 make dev
- 然後開啟 http://localhost:8080。
5. 如何發行?
- 創建可分發的 ZIP:
- make zip
6. 這個外掛的許可是什麼?
- AGPL-3.0-only。詳細信息請查看許可證。
外掛標籤
開發者團隊
原文外掛簡介
Display events from your LAUTI instance on your WordPress site as a list or timetable. Ships with simple, adjustable CSS.
Contents
Overview
Features
Installation
Configuration
Shortcodes
List
Timetable
Styling
Troubleshooting
Development
Release
License
Overview
This plugin pulls events from a LAUTI instance and renders them in WordPress via shortcodes. Just set your instance, drop a shortcode on a page, and publish.
Features
Event list shortcode with optional links to LAUTI
Timetable shortcode for multi-day events and rooms
Minimal CSS you can override in your theme
Configuration
In the admin dashboard, open “Lauti Calendar”.
Set and save:
Instance URL: URL of your LAUTI instance.
Instance Name: Text shown next to “powered by” under the list.
Important: Save settings before inserting shortcodes to avoid errors when saving pages.
Shortcodes
List
Add to any page or post:
[lauti-calendar-list groupID=66b1a314-1234-5678-9123-1d53372d85ef title="Veranstaltungen" infos=time,location,description link=true]
Options:
– title: Heading text shown above the list.
– infos: Comma-separated fields to show. Supported: time, location, organizers, involved, description.
– groupID: UUID of your group (open your group in LAUTI and copy the ID from the URL).
– placeID: UUID of your place (open your place in LAUTI and copy the ID from the URL).
– link: true/false. If true, each event links to its page on your LAUTI instance.
Info: When entering groupID and placeID the filter applies both. You only see events from your group at the specific place.
Timetable(experimental)
This solution is a bit hacky and was written for a specific need. It works in most cases, but
can be a bit quirky sometimes.
Render a timetable for a multi-day event across specific rooms/places:
[lauti-calendar-timetable id="2aa9e94b-1234-5678-9012-34a0f7c44c29" places="Raum Rosa,Raum Betty,Raum Clara,Raum Emma" startHour=9 endHour=23]
Options:
– id: UUID of a multi-day event.
– places: Comma-separated list of place names. This list has to match the option “Extra information for location” of an event exactly.
– startHour: Starting hour of the timetable (integer, 0–23).
– endHour: Ending hour of the timetable (integer, 0–23).
Development
Spin up WordPress with the plugin mounted:
docker-compose up
# or
make dev
Then open http://localhost:8080.
Release
Create a distributable ZIP:
make zip
License
AGPL-3.0-only. See the LICENSE for details.
