=== Meine Öffnungszeiten – Opening Hours Widget ===
Contributors: jjklangbehn
Tags: opening hours, business hours, widget, open now, store hours
Requires at least: 5.0
Tested up to: 7.0
Stable tag: 0.1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically display whether your business is currently open or closed on your website.

== Description ==

This plugin allows you to easily display a dynamic opening hours widget on your website.

Instead of showing static opening hours, your visitors can instantly see whether your business is currently open or closed.

Features:
- Live "Open now" / "Closed" status
- Automatic updates based on your configured hours
- Simple integration with shortcode or automatic display
- Works for any type of local business

== Installation ==

1. Install the plugin via WordPress
2. Enter your widget ID from meine-oeffnungszeiten.app
3. Add the shortcode [meine_oeffnungszeiten] or enable automatic display

== Frequently Asked Questions ==

= Where can I find my widget ID? =
You can create and find your widget ID at meine-oeffnungszeiten.app

== External services ==

This plugin connects to meine-oeffnungszeiten.app to display the opening hours widget.

The plugin loads an external script from https://meine-oeffnungszeiten.app/embed.js and may load an embedded widget iframe from https://meine-oeffnungszeiten.app/embed/{widget_id}.

The configured widget ID is sent to meine-oeffnungszeiten.app when the widget is displayed, so the correct opening hours can be loaded and shown on the website.

Service provider: Jonas Langbehn / meine-oeffnungszeiten.app

Terms of use: https://meine-oeffnungszeiten.app/terms
Privacy policy: https://meine-oeffnungszeiten.app/privacy

== Changelog ==

= 0.1.4 =
* Removed external iframe preview from admin settings page (replaced with explanatory text and external link).
* Improved shortcode output escaping: moewidget_shortcode() now wraps output with wp_kses() using moewidget_allowed_widget_html().
* Added moewidget_allowed_widget_html() helper defining safe iframe and div attributes for shortcode output.

= 0.1.3 =
* Renamed all plugin identifiers from short prefix `moi_` to `moewidget_` to comply with WordPress.org review guidelines
* Moved inline CSS to enqueued stylesheet (assets/css/moewidget.css)
* Moved inline JavaScript to enqueued script (assets/js/moewidget-admin.js)
* Registered external embed.js via wp_enqueue_script with async strategy
* Fixed all unescaped output: wp_kses() for HTML, esc_html()/esc_attr()/esc_url() throughout
* Added option migration from legacy moi_ option names for backward compatibility
* Added External services section to readme.txt documenting meine-oeffnungszeiten.app

= 0.1.2 =
* Minor fixes

= 0.1.0 =
* Initial release
