=== maca Restu ===
Contributors: macas
Donate link: https://maca.se
Tags: menu, restaurant, pdf, qr-code, food
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.33
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display restaurant menus with categories, PDF/image files, scheduling, QR menu page, and Gutenberg block.

== Description ==

maca Restu helps restaurants and cafés publish menus on WordPress with categories, thumbnails, PDF or image files, and smart scheduling.

**Features**

* Menu categories with optional thumbnail images
* Upload menus as PDF or image (drag & drop or media library)
* Schedule by date range, weekdays, and daily time windows
* Website shows published menus for browsing; QR page shows only live menus
* Shortcode `[maca_menu_list]` and Gutenberg block
* Short QR URL (e.g. `/qrmeny/`) with printable QR codes
* PDF rendering with bundled PDF.js (HTTPS-friendly)
* Inline, popup, or new-tab display modes
* Optional menu title and serving-hours notice on the website
* Close button on website menus (similar to QR view)
* Swedish and English translations

**maca Restu Pro**

The free plugin above is complete on its own. [maca Restu Pro](https://maca.se/restu-pro/) adds online menus, ordering, booking, payments, and more.

| | Free | Pro |
| --- | --- | --- |
| PDF/image menus, scheduling, QR page, shortcode & block | Yes | Yes |
| Printable QR codes and bundled PDF.js | Yes | Yes |
| Admin in Swedish and English | Yes | Yes |
| Guest languages and bilingual menu content | — | Yes |
| Backup and restore | — | Yes |
| Online menu (dishes, prices, allergens, CSV import/export) | — | Yes |
| Campaign menus and category scheduling on QR | — | Yes |
| Table ordering, kitchen & waiter screens, live order status | — | Yes |
| Table booking, floor plan, and waitlist | — | Yes |
| Stripe payments and split bill | — | Yes |
| Overview dashboard, charts, and dish statistics | — | Yes |
| AI guest chat (your OpenAI key) | — | Yes |

Full comparison and licensing: [maca.se/restu-pro](https://maca.se/restu-pro/). PDF menus, QR, and scheduling work in Pro without a license; the subscription unlocks the Pro-only rows above.

**Author:** [Maca Development](https://maca.se)

== Installation ==

1. Upload the `maca-restu` folder to `/wp-content/plugins/`
2. Activate the plugin through the **Plugins** screen in WordPress
3. Go to **maca Restu** in the admin menu to create categories and menus
4. Add the shortcode `[maca_menu_list]` to a page or use the **maca Restu** block

Database tables are created automatically on activation.

**Recommended:** Set your site timezone under **Settings → General** so scheduling uses the correct local time. Use HTTPS for **WordPress Address** and **Site Address** when serving PDF menus.

== Frequently Asked Questions ==

= How do I show menus on a page? =

Add `[maca_menu_list]` to any page or post, or insert the **maca Restu** block in the block editor.

= How does scheduling work? =

Each menu can have a start/end date, selected weekdays, and optional daily start/end times. On the website, visitors can browse published menus; a yellow notice can show serving hours when a menu is outside its live window. The QR menu page only lists categories and menus that are live right now.

= What is the QR menu URL? =

After activation, guests can open `/qrmeny/` on your site (slug can be changed in **maca Restu → Settings**). Generate and print QR codes under **maca Restu → QR Codes**.

= Does the plugin work with HTTPS? =

Yes. PDF URLs are normalized to HTTPS when your site uses SSL, and PDF.js is bundled in the plugin.

= How do I uninstall completely? =

Deactivate and delete the plugin from **Plugins**. `uninstall.php` removes database tables and plugin options.

= Is there a Pro version? =

Yes. [maca Restu Pro](https://maca.se/restu-pro/) is a separate plugin with online menus, table ordering, booking, Stripe payments, statistics, and more. The free plugin includes PDF/image menus, scheduling, and QR codes — see the comparison table in the Description section. Full list: [maca.se/restu-pro](https://maca.se/restu-pro/).

== Screenshots ==

1. Category management with thumbnails and sort order
2. Menu edit screen with scheduling (dates, weekdays, daily times)
3. Frontend category buttons and menu display
4. QR menu page settings and printable QR code

== Changelog ==

= 1.0.33 =
* Readme: condensed Free vs Pro comparison table.

= 1.0.32 =
* Readme: Free vs Pro comparison tables from maca.se/restu-pro/; Pro links updated.

= 1.0.31 =
* Plugin URI, Author URI, and Donate link point to maca.se.
* Readme mentions maca Restu Pro (free plugin remains fully functional).

= 1.0.30 =
* Plugin Check: remove discouraged load_plugin_textdomain() (WP.org loads translations automatically).
* Plugin Check: avoid nonce warning when reading admin action for script enqueue.

= 1.0.29 =
* Fix WP 6.4+ deprecation notice on QR print and standalone menu pages.
* Center QR code in admin preview and print layout.

= 1.0.28 =
* Author URI and Donate link temporarily point to GitHub (WordPress.org URL review).

= 1.0.27 =
* Renamed to maca Restu (slug maca-restu, text domain maca-restu).

= 1.0.26 =
* WordPress.org packaging: directory icons and banners, unified admin menu slugs.

= 1.0.25 =
* WordPress.org review fixes: wp_enqueue_* for all assets, bundled PDF.js and local QR generation, ABSPATH guards.

= 1.0.24 =
* Free plugin contains core menu features only (no premium upsell in admin).

= 1.0.20 =
* Fix PHP 8.5 deprecation: stop rewrite flush loop on every page load
* Minimal Gutenberg block registration via standalone callback (no block.json metadata on init)
* Clear stale flush flags from older versions automatically

= 1.0.19 =
* Fix PHP 8.4 deprecation on frontend and QR menu page (block registration hooks)
* Restrict block editor script hook registration to admin requests
* Move user guide markdown files to docs/ folder (WordPress Plugin Check compliance)
* Exclude local _zipcheck folders from release package

= 1.0.18 =
* Fix PHP 8.4/8.5 deprecation warning on QR menu page and other front-end requests
* Register Gutenberg block programmatically (avoids metadata script hook issue on init)
* Prevent duplicate plugin init and rewrite flush loops

= 1.0.17 =
* Fix PHP 8.4 deprecation warning on the User Guide admin page

= 1.0.16 =
* Swedish translations compiled (MO file included)
* Guide files included in plugin package; improved guide rendering
* More complete Swedish strings on Settings page

= 1.0.15 =
* Centralized database layer for Plugin Check compliance
* QR print page requires admin capability and nonce

= 1.0.14 =
* WordPress Plugin Check fixes (escaping, input sanitization, Tested up to 7.0)
* Exclude phpcs.xml.dist from release package

= 1.0.13 =
* Removed Powered by credit from QR menu page

= 1.0.12 =
* Updated Powered by credit text (removed in 1.0.13)

= 1.0.11 =
* Close button on new-tab menu viewer page

= 1.0.10 =
* QR menu page uses same display mode as website (popup/new page/inline)

= 1.0.9 =
* Powered by credit on QR page (removed in 1.0.13)

= 1.0.8 =
* Fixed popup and new-page display modes when using list view or cached pages
* List view now uses vertical buttons and respects display mode settings
* Display mode read from page markup to avoid stale cache issues

= 1.0.7 =
* Swedish weekday names with leading capital letter
* Weekdays use WordPress locale (with plugin translation fallback)

= 1.0.6 =
* Fixed weekday names in admin and serving-hours notice (Swedish)

= 1.0.5 =
* Close button on website menus (inline and popup modes)

= 1.0.4 =
* Menu title setting respected for PDF.js display
* Serving-hours note in AJAX/PDF view
* Swedish translations for new settings

= 1.0.3 =
* Time-of-day and weekday scheduling
* Short QR URL, website vs QR menu logic
* Local PDF.js, HTTPS URL normalization

= 1.0.2 =
* Shortcode, Gutenberg block, and QR page fixes
* Mobile and mixed-content improvements

= 1.0.1 =
* Bug fixes and stability improvements

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.19 =
User guide files moved to docs/ folder for Plugin Check compliance; admin Guide page unchanged.

= 1.0.7 =
Improved Swedish weekday labels in admin and on the frontend.
