| 开发者 | mopetti |
|---|---|
| 更新时间 | 2026年10月21日 18:03 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Pea soup (L, G). A dish can have its own price or, on a fixed-price menu, a supplement at the end of the line: Salmon soup (L, G) 12,50 €, Entrecôte +3 €. "Copy previous week" fills the week from last week's menu.[luntsi] shortcode for any other theme or page builder.[luntsi] – today's lunch[luntsi view="tomorrow"] – tomorrow's lunch[luntsi view="week"] – the whole week[luntsi prices="no" origins="no" link="https://example.com/lunch/"][luntsi view="week" info="no"]luntsi_lines and luntsi_locations filters; Luntsi Pro adds a user interface for them. Shortcode: [luntsi location="slug"].
Templates can be overridden by copying templates/today.php or templates/week.php to your-theme/luntsi/. Colours follow the theme; the accent colour is the CSS custom property --luntsi-accent. After inserting a view with JavaScript, call window.Luntsi.refresh().
[luntsi] shortcode anywhere else.Use the [luntsi] shortcode in a Text or Code module. The native modules are for Divi 5.
No. It is drawn in your browser and downloaded or shared directly from there.
Yes. You save the week once; the site shows the right day and hides the week when it is over.
No. The page carries the current and next week, and a small script picks the right day in the visitor's browser. Luntsi also clears common page caches when you save and right after midnight.
Yes. Give them the "Lunch editor" role. They land directly on the lunch menu after logging in and can write the menu, but not change the settings.
Yes. Write the price at the end of the line, with the euro sign: Salmon soup (L, G) 12,50 €. On a fixed-price menu such as the menú del día, write a supplement with a plus sign: Entrecôte +3 €. Write the menu's price in Settings → Prices and what it includes (e.g. bread, a drink and dessert) in Lunch includes.
Turn on "Open on this public holiday" for that day in the menu editor, or turn off automatic holiday closing in the settings.
The JavaScript in build/ is compiled. Its readable source ships with the plugin in src/, together with package.json and webpack.config.js. To build it yourself, run npm install and npm run build in the plugin folder (Node.js 18 or newer).
Salmon soup (L, G) 12,50 €), or a supplement on a fixed-price menu (Entrecôte +3 €). Shown next to the dish in every view and the image, and in the schema.org data.luntsi_week_fallback filter fills a week that has not been saved, and editor panels get setDraft, location and reload.