[WordPress] 外掛分享: Mairie Affiche Information

首頁外掛目錄 › Mairie Affiche Information
WordPress 外掛 Mairie Affiche Information 的封面圖片
全新外掛
安裝啟用
尚無評分
7 天前
最後更新
問題解決
WordPress 6.2+ PHP 7.4+ v1.2.0 上架:2026-08-16

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Mairie Affiche Information」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.
Access limited to the roles you tick: the plugin grants a dedicated
capability (generer_affiche_mairie) to the allowed roles and removes it from
the others.
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; text position,
colour and JPEG quality are configurable.

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 font by Sorkin Type and Anton font by Vernon Adams, both 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.

延伸相關外掛

文章
Filter
Mastodon