=== AddonLogic Age Calculator ===
Contributors: snehalpancholi
Tags: age calculator, birthday calculator, date calculator, shortcode, duration
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

An [age_calculator] shortcode that computes exact age or duration from a chosen date, showing years, months, days — plus a next birthday countdown.

== Description ==

AddonLogic Age Calculator embeds a clean, browser-side date calculator anywhere on your site via the `[age_calculator]` shortcode.

**Features:**

* Exact age in years, months, and days
* Total days, weeks, and months summary
* Next birthday countdown (age mode, optional)
* Duration mode: calculate time between any two dates
* Pre-fill date via shortcode attribute
* Configurable accent colour and widget label
* Zero external dependencies — all calculation is JavaScript

== Installation ==

1. Upload the `age-calculator/` folder to `/wp-content/plugins/`.
2. Activate via **Plugins → Installed Plugins**.
3. Configure defaults at **Settings → Age Calculator**.
4. Add `[age_calculator]` to any post or page.

== Shortcodes ==

`[age_calculator]`
Basic age calculator with today as end date.

`[age_calculator date="1990-06-15"]`
Pre-fills the date of birth field.

`[age_calculator mode="duration" label="Project Duration"]`
Calculates time between two user-selected dates.

`[age_calculator show_nextbday="0"]`
Hides the next birthday countdown.

== Frequently Asked Questions ==

= Is the calculation server-side? =
No. Everything happens instantly in the visitor's browser.

= Can I embed multiple calculators on one page? =
Yes, each shortcode is independent.

= Does it work on mobile? =
Yes. The native date picker is used, which displays optimally on all devices.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
