=== Mizuu – Animals for Adoption ===
Contributors: mizuu
Tags: animal shelter, adoption, pets, rescue, animals
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show your shelter's animals from Mizuu on your website, always up to date: animal pages, filterable galleries, urgent cases and new arrivals.

== Description ==

Animal shelters that publish their animals on [Mizuu](https://mizuu.pet) can show them on their own WordPress website without typing anything twice.

* **Automatic sync** every 15 minutes (or hourly, daily, or only when you press “Sync now”).
* **A page for every animal** at `yoursite.org/adopt/<name>/` (`/adopta/<name>/` in Spanish and Catalan), with all its photos, its details, the “I want to adopt” button and a link to its full profile on Mizuu. It adapts to any theme, classic or block.
* **Photos in your own media library**, downloaded once and never duplicated.
* **Adopted animals** keep their page with an “Adopted” label (happy endings) or are hidden, as you prefer. Animals withdrawn from adoption are hidden, never deleted.
* **Blocks and shortcodes**: gallery with filters by species, age, size and sex; urgent adoptions; new arrivals; one animal's profile; adopted animals counter.
* **Structured data** (schema.org `ItemList` and `WebPage`) so search engines understand your pages. Animals are never marked up as products.
* **Private by design**: no cookies, no tracking, no scripts or fonts from other sites. Visitors of your website never connect to Mizuu.
* Translated into Spanish and Catalan.

= Shortcodes =

* `[mizuu_animales especie="cat" edad="" tamano="" sexo="" max="12" filtros="1" orden="recientes"]` — gallery. `especie`: cat, dog, rabbit, bird, reptile, other. `edad`: baby, young, adult, senior. `tamano`: small, medium, large. `sexo`: male, female. `orden`: recientes, urgentes, nombre.
* `[mizuu_urgentes max="6"]` — urgent adoptions.
* `[mizuu_recientes max="6" dias="30"]` — new arrivals.
* `[mizuu_animal id="123"]` — one animal (WordPress post ID or Mizuu ID).
* `[mizuu_adoptados]` — “N animals have already found a home”.

== External services ==

This plugin connects to **Mizuu** (https://mizuu.pet), the adoption platform where the shelter manages its animals, to copy the shelter's public animal listings to this website.

* **What is requested and when:** only after an administrator enters the shelter ID in Settings → Mizuu, the site requests `https://mizuu.pet/protectoras/<shelter ID>/animales.json` (or, on older servers, `feed.json`) during each scheduled sync (every 15 minutes by default, configurable or manual) and when an administrator presses “Test connection” or “Sync now”. The animals' photos are then downloaded once from Mizuu's media server to the WordPress media library.
* **What is sent:** a normal HTTP request with the shelter ID in the URL and a user agent with the plugin version and this site's address. No data about the site's visitors or users is sent.
* **What is received:** public data that the shelter already publishes on Mizuu: name, species, sex, size, age, description, photos and adoption status of each animal. No personal data (no foster carers, owners or adopters).
* Visitors of the site never contact Mizuu, except when they click a link to Mizuu (the “I want to adopt” button or “See the full profile on Mizuu”).
* Mizuu terms of use: https://mizuu.pet/legal/condiciones — privacy policy: https://mizuu.pet/legal/privacidad

== Installation ==

1. Install and activate the plugin.
2. Go to **Settings → Mizuu** and paste your shelter ID (in Mizuu: Panel → Your website) or the link to your shelter profile.
3. Press **Sync now**. Your animals appear under **Adoptions** and at `/adopt/` (`/adopta/`).
4. Add the “Animals for adoption” block (or a shortcode) to any page.

== Frequently Asked Questions ==

= Can I edit the animals in WordPress? =

Not in this version: Mizuu is the source, and changes made in WordPress are replaced at the next sync. Two-way sync is planned.

= Why does a change in Mizuu take a few minutes to appear? =

Mizuu's public data is cached for up to 10 minutes, and the sync runs every 15 minutes by default. “Sync now” skips the second wait.

= Does it slow down my site? =

No. Pages are built from your own database and media library; Mizuu is only contacted by the background sync.

= What happens when I delete the plugin? =

Its settings and scheduled tasks are removed. If the option is checked (it is by default), the imported animals and their photos are deleted too; they are still on Mizuu.

== Screenshots ==

1. Gallery with filters.
2. An animal's page.
3. Settings → Mizuu.

== Changelog ==

= 0.1.0 =
* First version: one-way sync from Mizuu, animal pages, five blocks and shortcodes, Spanish and Catalan.
