=== MenuToGo ===
Contributors: menutogo
Tags: restaurant, menu, reservations, ordering, food
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed your MenuToGo restaurant menu, reservation form, online ordering, and restaurant info on any WordPress page using simple shortcodes.

== Description ==

**MenuToGo** is a powerful WordPress plugin that lets restaurant owners embed their digital menu, reservation booking form, online ordering system, and restaurant information directly into any WordPress page or post.

No coding required — just add a shortcode and your MenuToGo content appears instantly.

= Features =

* **Menu Display** — Show your full restaurant menu with images, descriptions, prices, allergens, and category filtering
* **Online Reservations** — Let customers book tables directly from your WordPress site with a beautiful date/time picker
* **Online Ordering** — Enable takeaway ordering with a full shopping cart experience
* **Restaurant Info** — Display opening hours, contact details, location, and social media links
* **Multi-language** — Serve your menu in any language configured in MenuToGo
* **Dark Mode** — Optional dark theme that can match your WordPress design
* **Responsive** — Beautiful on desktop, tablet, and mobile devices
* **Theme-safe** — All styles are scoped to avoid conflicts with your WordPress theme
* **Performance** — Assets only load on pages that use the shortcodes

= Requirements =

* A [MenuToGo](https://menutogo.pt) account with at least one published restaurant
* Your restaurant slug (found in your MenuToGo dashboard)

== Installation ==

1. Upload the `menutogo` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **Settings → MenuToGo** and enter your restaurant slug
4. Add shortcodes to any page or post

== Shortcodes ==

= Basic Usage =

All shortcodes use the global settings from **Settings → MenuToGo**:

* `[menutogo_menu]` — Display your restaurant menu
* `[menutogo_reserve]` — Display the reservation booking form
* `[menutogo_order]` — Display menu with ordering/cart functionality
* `[menutogo_info]` — Display restaurant information

= Shortcode Parameters =

Override global settings on a per-shortcode basis:

**All shortcodes:**
* `slug` — Restaurant slug (overrides global setting)
* `lang` — Language code: en, pt, es, fr, de, it (overrides global setting)

**Menu-specific:**
* `layout` — "grid" (default) or "list"
* `show_images` — "yes" (default) or "no"
* `show_prices` — "yes" (default) or "no"

**Reserve-specific:**
* `theme` — "light" (default) or "dark"

**Info-specific:**
* `show_hours` — "yes" (default) or "no"
* `show_contact` — "yes" (default) or "no"

= Examples =

Display menu in list layout without images:
`[menutogo_menu layout="list" show_images="no"]`

Display menu in Portuguese:
`[menutogo_menu lang="pt"]`

Display reservation form for a specific restaurant:
`[menutogo_reserve slug="my-restaurant"]`

Display only opening hours:
`[menutogo_info show_contact="no"]`

== Frequently Asked Questions ==

= Do I need a MenuToGo account? =

Yes. You need a free or paid MenuToGo account with at least one published restaurant. Sign up at [menutogo.pt](https://menutogo.pt).

= Can I use multiple restaurants on the same WordPress site? =

Yes! Set a default restaurant in **Settings → MenuToGo**, then override with the `slug` parameter on individual shortcodes:
`[menutogo_menu slug="restaurant-one"]`
`[menutogo_menu slug="restaurant-two"]`

= Does it affect my site's performance? =

No. The plugin's CSS and JavaScript only load on pages that actually contain MenuToGo shortcodes. Menu data is cached for 5 minutes using WordPress transients.

= Can I customise the colors? =

Yes. Go to **Settings → MenuToGo → Appearance** to set custom primary and accent colors, or enable dark mode.

= Is it responsive? =

Yes. All widgets are fully responsive and look great on desktop, tablet, and mobile devices.

== Changelog ==

= 1.0.0 =
* Initial release
* Menu display with grid/list layouts
* Reservation booking form with calendar and time slots
* Online ordering with shopping cart
* Restaurant info display with opening hours
* Dark mode support
* Multi-language support
* Admin settings page with connection test
