=== Tables.Menu ===
Contributors: tablesmenu
Tags: restaurant, menu, ordering, reservations, qr menu
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show your live Tables.Menu menu, take orders, accept reservations and manage your menu — right inside WordPress. Connect with one click.

== Description ==

Tables.Menu brings your restaurant's live menu into WordPress and keeps it in sync automatically. Update a price or add a dish once, and it changes everywhere — your website, your QR table menus and your printed tickets.

Connect your account with a single click (no keys to copy), then place your menu on any page.

**Four things it does**

1. **Show your menu.** The `[tables_menu]` shortcode or the "Tables.Menu" block renders your live menu — categories, prices, photos, descriptions, allergens and diet tags — server-side, so it's fast, translatable and search-engine friendly.
2. **Take orders.** Point a table's QR code at a page carrying the menu (`?tm_table=CODE`) and guests get an Add-to-order button, a cart, live order status and "call waiter" / "ask for the bill" — all without leaving your site.
3. **Accept reservations.** The `[tables_menu_reserve]` shortcode/block adds a booking form; requests land in your Tables.Menu dashboard to confirm.
4. **Manage your menu.** Edit categories, dishes, prices and descriptions from **Tables.Menu → Manage menu** in wp-admin. Changes save straight to your account.

**Built to fit any theme**

* Server-rendered HTML in your content flow — no iframes.
* Namespaced, low-specificity CSS with no `!important`, so your theme stays in charge. A few CSS variables (`--tmwp-accent`, radius, gap) let you fine-tune.
* Light/dark aware and mobile-first.
* Template override system: drop `your-theme/tables-menu/menu.php` (or `menu-item.php`, `reserve.php`, `order.php`) to fully re-template without touching the plugin.

**Privacy & security**

Your secret key lives only on your server. The browser talks to WordPress; WordPress talks to Tables.Menu. Ordering runs through the plugin's own REST routes, so the API key is never exposed to visitors.

== Installation ==

1. Upload the `tables-menu` folder to `/wp-content/plugins/`, or install the ZIP via Plugins → Add New → Upload.
2. Activate the plugin.
3. Go to **Tables.Menu** in the admin menu and click **Connect to Tables.Menu**. Approve the connection in your Tables.Menu account.
4. Add `[tables_menu]` to any page (or the "Tables.Menu" block).

Don't have an account yet? Create one free at https://tables.menu/.

== Frequently Asked Questions ==

= Do I need a Tables.Menu account? =
Yes — the plugin displays and manages a menu that lives in your Tables.Menu account. You can start free.

= How do guests order from my website? =
Ordering appears when a page is opened with a table code, e.g. from a QR code that links to `https://your-site.com/menu/?tm_table=YOUR_TABLE_CODE`, or with `[tables_menu table="YOUR_TABLE_CODE"]`. Without a table code the menu is display-only.

= Is my API key safe? =
Yes. The key is stored server-side in WordPress and never sent to the browser. All ordering goes through the plugin's own REST endpoints.

= Can I restyle it? =
Yes — override the CSS variables, or drop template files into `your-theme/tables-menu/`.

= Does it work with the block editor and classic editor? =
Both. Use the blocks in the editor, or the shortcodes anywhere shortcodes work.

== Screenshots ==

1. The live menu rendered on a page.
2. Ordering: cart and review sheet.
3. The reservation form.
4. Manage your menu from wp-admin.

== Changelog ==

= 1.0.0 =
* Initial release: menu display (shortcode + block), ordering via a secure REST proxy, reservations, and menu management from wp-admin, with one-click Connect.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
