跳到内容

Mairie Affiche Information

v1.3.1

verturin · 2026年8月17日 上架

Generate the recurring town hall notices - office closure and council meeting - and save them straight to the Media Library.

正在使用
10 以下
评分
暂无
累计下载
324
最近更新
2026年11月2日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

贡献者

截图

A closure notice produced by the plugin.
A closure notice produced by the plugin.
A council meeting notice produced by the plugin.
A council meeting notice produced by the plugin.

French town halls publish the same notice over and over: the office is closed on
such and such a day. Only the date changes. This plugin turns that chore into a
single field.

Pick a date on the admin screen and the notice is composed on the fly: the
bundled artwork is used as a background and the date is drawn on it with the GD
library, spelled out in the site language. The result is saved as a normal
attachment in the Media Library, so it can be inserted into a post, a page or a
widget like any other image.

Two notices are covered: the office closure notice, where only the date changes,
and the council meeting notice, where the date, the time and the venue change.

What it does

  • Live preview while you pick the date.
  • Date spelled out, with the French “1er” handled and a capital initial.
  • Free text field for periods, for example “From 10 to 21 August 2026”.
  • One-click save to the Media Library, with a normalised file name
    (Fermeture_Mairie_05-08-2026.jpg), a title, a caption and alt text.
  • Immediate download in JPEG or PNG.
  • Two levels of access, both mapped to the roles you tick: one to fill in the
    date, the time and the venue and save the notice
    (mairie_affiche_information_generer), another to change the artwork and the
    settings (mairie_affiche_information_regler). Office staff can therefore be
    given the date and nothing else.
  • Council meeting notice with its own screen: date, time and venue, the venue
    defaulting to a value you set once in the settings.
  • Background replaceable from the Media Library for both notices.
  • The sign, the message panel and the date are drawn by the plugin, so any photo
    works as a background: place each one by dragging it on the preview, and set
    its text, width and colours.

Requirements

PHP 7.4 or later with the GD extension built with FreeType support, which is the
default on most shared hosts.

Privacy and external services

The plugin makes no external request. Images are composed locally by PHP and
stored in your own uploads folder. No tracking, no remotely loaded fonts, no
data sent anywhere.

Hooks

  • mairie_affiche_information_police (filter) – absolute path to the TrueType font.
  • mairie_affiche_information_fond (filter) – absolute path to the default background.
  • mairie_affiche_information_affiche_enregistree (action) – $attachment_id, $timestamp,
    $text.
  • mairie_affiche_information_conseil_police (filter) – font used by the council notice.
  • mairie_affiche_information_conseil_fond (filter) – default council background.
  • mairie_affiche_information_conseil_reperes (filter) – text positions, sizes and colours
    of the council notice.
  • mairie_affiche_information_conseil_enregistre (action) – $attachment_id, $timestamp,
    $time, $venue.

Credits

Fjalla One by Sorkin Type, Anton by Vernon Adams, Archivo Black by Omnibus-Type
and Lora by Cyreal, all licensed under the SIL Open Font License 1.1.
The bundled background artwork is provided by the plugin author under the same
GPL-2.0-or-later license as the plugin.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums