| 开发者 | mopetti |
|---|---|
| 更新时间 | 2026年10月11日 23:00 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Pea soup (L, G). "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.
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).