=== iCalendrier ===
Contributors: bplace
Tags: calendrier,ephemeride,calendar,calendario,kalender
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.2
Stable tag: 2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Daily calendar widget and shortcode: day, week number, name day and moon phase, in 11 languages, with a modern or a classic layout.

== Description ==

Simple plugin to display a calendar of the day on your WordPress site, as a widget or with the `[icalendrier]` shortcode:

* day name
* current week number
* day number
* month
* namdeday
* moon phase

Three layouts: the modern one (same design as the widget on icalendrier.fr), and the two legacy ones (compact 175px, wide 300px).

Shortcode example: `[icalendrier type="modern" language="fr" moonphases="on"]`. Attributes: `type` (modern, comp175, wide300), `language`, `timezone`, `showlink`, `moonphases`, `namedays`, `bgcolor`, `style`.

Languages supported :

* english (US and UK)
* français
* deutsch
* italiano
* español
* português (Portugal and Brasil)
* svenska
* dansk
* română

More infos here : [https://icalendrier.fr/widget/wordpress-plugin#engsupport](https://icalendrier.fr/widget/wordpress-plugin#engsupport)

---

Petit plugin simple qui vous permet d'afficher sur votre site ou blog Wordpress un éphéméride qui comprend :

* le nom du jour
* le numéro de semaine
* le numéro du jour
* le mois
* la fête du jour
* la phase de lune actuelle

Plus d'infos ici : [https://icalendrier.fr/widget/wordpress-plugin](https://icalendrier.fr/widget/wordpress-plugin)

== Installation ==

Install the plugin on the Wordpress administration, in the extensions menu, by selecting the zip file.
You may also use the installation from the repository of course.

Once installed and activated, go to Appearance > Widgets, you'll be able to edit these options :

* layout (modern, compact or wide)
* language
* custom timezone
* optional link to our website
* moon phase on or off (modern layout)
* name day on or off (name days are a Latin habit; Nordic sites usually hide them)
* optional title before the widget
* custom background color

---

Installez le plugin dans l'administration Wordpress, section Extensions, en sélectionnant le fichier Zip.

Une fois installé et activé, retrouvez le plugin dans Apparence > Widgets. Peu d'options existent, mais les voici :

- le style : moderne (le même que le widget d'iCalendrier.fr), compact ou large
- le réglage optionnel du fuseau horaire
- l'affichage en option d'un lien vers iCalendrier.fr
- la phase de lune, affichée ou non (style moderne)
- la fête du jour, affichée ou non
- un titre optionnel avant le widget
- la couleur de fond du widget peut être modifiée

== Frequently Asked Questions ==

= Can I use the shortcode in a post? =

Yes: `[icalendrier]` renders the compact layout in English, `[icalendrier type="modern" language="de"]` the modern one in German. Language codes: fr, en (US), en-GB, es, pt, pt-BR, it, de, ro, sv, da.

= The date is wrong by a day =

The widget renders on the server. Set the `timezone` option (or attribute) to your zone, and check that your page cache refreshes daily.

== Screenshots ==

1. Modern layout, French
2. Modern layout, English
3. Compact widget
4. Wide widget
5. Widget compact français
6. Widget wide français

== Credits ==

Moon phase computation: Solaris_MoonPhase by Samir Shah (rayofsolaris.net), MIT license, adapted from Moontool.

== Changelog ==

= 1.0 =
* Initial commit

= 1.5 =
* multilang supported
* moved the code to lib files

= 1.51 =
* minor fix

= 1.52 =
* svn issue lol

= 1.6 =
* CSS tweaks
* default values
* default link
* code format

= 1.61 =
* WP 5.4 compat
* admin CSS tweak

= 1.74 =
* Fix broken CSS

= 1.75 to 1.83 =
* WordPress 5.5 to 6.6 compatibility
* Shortcode fix
* Background color fix
* Optional title displayed again
* XSS security fix

= 2.0 =
* New "modern" layout, same design as the widget on icalendrier.fr (moon phase can be switched off)
* Name day can be switched off (widget option, shortcode attribute namedays="off")
* New languages: svenska, dansk, English (UK); site-style codes such as fr-FR or en-US accepted
* Shortcode attributes showlink, bgcolor and widgettitle now work (attribute names are case-insensitive)
* "Display link" widget option now saves correctly
* Timezone option no longer changes the site's global timezone; invalid zones fall back to the server default
* Unknown layout falls back to the compact one
* Site links use https
* Requires PHP 8.2 and WordPress 6.6
* Automated test suite (unit + WordPress)
