=== NOTERLİKLER ===
Contributors: noterlikler
Tags: nobetci noter, noter, notary, shortcode, widget
Requires at least: 6.3
Requires PHP: 8.2
Tested up to: 7.1
Stable tag: 1.2.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

İl, ilçe ve tarihe göre nöbetçi noter listelerini gösterin. Adres, telefon, çalışma saatleri ve yol tarifi bilgilerine ulaşın.

== Description ==

NOTERLİKLER, Noterlikler.com.tr üzerinden yayımlanan nöbetçi noter listelerini WordPress sitenizde gösterir. Ziyaretçiler il, ilçe ve tarih seçerek ilgili nöbetçi noterlerin adres, telefon, çalışma saatleri ve yol tarifi bilgilerine ulaşabilir. Kısa kod, blok veya bileşen kullanarak ekleyebilirsiniz. Nöbet kaydı bulunmayan yerlerde gösterilen normal mesai noterlikleri ayrı bir açıklamayla belirtilir.

Noterlikler displays published duty notary records supplied by Noterlikler.com.tr. It supports weekends, weekdays and public holidays. An empty duty list is never replaced with ordinary notaries presented as if they were on duty.

* Province, district and date selection
* Shortcode, Gutenberg block and classic widget
* Light, dark and green themes with list, compact and horizontal layouts
* Addresses, phone numbers, opening hours and directions
* Fixed NOTERLİKLER source link below the widget (direct-install edition)
* A Turkish settings panel with named location choices, preview, shortcode generator and cache refresh

PHP 8.2 or later is required. The plugin does not change the PHP version of your server. Schedule data is maintained by the external service, so weekly schedule changes do not require plugin releases. Compatibility and security maintenance may still require updates.

== External service ==

Service: https://noterlikler.com.tr/
API: https://noterlikler.com.tr/api/v1/
Terms: https://noterlikler.com.tr/kullanim-sartlari
Privacy: https://noterlikler.com.tr/gizlilik-politikasi

This plugin is a client for the Noterlikler.com.tr data service. Installing, activating and configuring the plugin or inserting its widget uses this service as its core function. Displaying a widget or its settings preview sends the selected province and district codes from the WordPress server to the service. Visitor IP addresses, personal information, site URLs and access tokens are not forwarded. The service sees the WordPress server's IP address as part of the connection. It returns location names, addresses, phone numbers and schedule dates. Selecting a directions link opens Google Maps. The plugin does not load remote JavaScript or CSS.

== Installation ==

1. Upload the ZIP using Plugins > Add New > Upload Plugin.
2. Activate it and customize the widget in Settings > Nobetci Noter. The data service works automatically.
3. Add [noterlikler], the Nobetci Noter block, or the classic widget.

Example: [noterlikler province="34" theme="light" limit="5"]

Attributes: province (01-81), district (district code), theme (light/dark/green), layout (list/compact/horizontal), limit (1-12), font (12-20), radius (0-24).

== Frequently Asked Questions ==

= How does caching work? =

WordPress caches API data for at most 60 seconds and never beyond the validity deadline returned by the service. Saturday's removal deadline is 17:30 and other days use 18:00, in Europe/Istanbul time. Cached page HTML contains a loading area rather than old schedule records. Data is fetched through the local WordPress REST endpoint, and open pages refresh when the response expires. Expired records are not served on network failure. Changes normally appear within the short cache lifetime.

= What if I use a page cache or CDN? =

Exclude /wp-json/ntrw/v1/* from page and CDN caching. Responses carry no-store headers; a CDN configured to override these headers needs a separate exclusion. Exclude the ntrw script from optimization settings that delay JavaScript until user interaction.

= Where can I find district codes? =

Province and district names are shown in the settings panel after the service connection is enabled. The panel generates a shortcode containing the selected codes.

= Does the plugin include a settings panel? =

Yes. Site administrators can change the default province and district, theme, layout, card limit, font size and corner radius. They can view a preview, generate a shortcode, refresh the cache and use the included source attribution.

= What happens on uninstall? =

The plugin deletes its own settings, widget options and database-based temporary caches. Existing external object-cache entries expire naturally. It does not delete posts or the service's notary database.

== Changelog ==

= 1.2.6 =
Display name updated to NOTERLIKLER; requested directory slug and text domain: noterlikler. Existing shortcodes, block identifiers and saved settings are preserved.

= 1.2.5 =
PHP 8.2 compatibility: removed typed class constants and lowered the minimum PHP requirement.

= 1.2.4 =
Improved readable admin notices, instant unsaved preview, province headings, centered date buttons and bundled brand icon. Added [noterlikler] while retaining the old shortcode as an alias. The documented core data service works automatically.

= 1.1.1 =
Updated the display name to Nobetci Noter Listesi - Noterlikler and aligned the package with the nobetci-noter slug.

= 1.1.0 =
PHP 8.5 requirement, typed API boundaries, deferred script loading and stricter output validation.

= 1.0.0 =
Initial release with a date-based API, bounded cache, block, shortcode and widget.
