Plugin WordPress che mostra un box per seguire un fediverse address (handle federato = username@dominio.com) nel Fediverso con impostazioni nel pannello admin
  • PHP 90.3%
  • CSS 9.7%
Find a file
emanuelegori 9c21c019b7
All checks were successful
Auto Release on version bump / release (push) Successful in 8s
Refactor conformità WordPress.org: stringhe sorgente in inglese (v4.0.0)
- Tutte le stringhe sorgente ora in inglese (msgid EN); traduzione IT in
  /languages (it_IT .po/.mo + .pot rigenerato con wp i18n make-pot).
  Rimossi i vecchi .po/.mo con msgid italiani.
- Plugin Check: rimossa load_plugin_textdomain (just-in-time), commenti
  translators su tutti i placeholder, esc_url sull'URL admin, esc_js +
  wp_json_encode sull'output JS.
- readme.txt riscritto in inglese (Tested up to 7.0, 5 tag); .gitattributes
  con export-ignore per pacchetto pulito; README.md EN + README.it-IT.md.
- Le traduzioni Polylang esistenti restano valide (nomi stringhe invariati).
2026-06-17 23:41:48 +02:00
.forgejo/workflows ci: workflow auto-release su bump versione (tag + note CHANGELOG + zip) 2026-06-15 23:12:13 +02:00
languages Refactor conformità WordPress.org: stringhe sorgente in inglese (v4.0.0) 2026-06-17 23:41:48 +02:00
screenshots Carica file su "screenshots" 2026-02-19 23:19:13 +01:00
.gitattributes Refactor conformità WordPress.org: stringhe sorgente in inglese (v4.0.0) 2026-06-17 23:41:48 +02:00
.gitignore Bump version to 3.0.1 - i18n support and UI cleanup 2026-01-10 15:51:20 +01:00
CHANGELOG.md Refactor conformità WordPress.org: stringhe sorgente in inglese (v4.0.0) 2026-06-17 23:41:48 +02:00
eg-fediverso-box.css Impostazioni Aspetto: sfondo (preset + colore custom), cornice e ombra 2026-06-16 23:56:07 +02:00
eg-fediverso-box.php Refactor conformità WordPress.org: stringhe sorgente in inglese (v4.0.0) 2026-06-17 23:41:48 +02:00
LICENSE.IT.md feat: initial release v3.0.0 with admin panel 2026-01-08 00:22:47 +01:00
LICENSE.md feat: initial release v3.0.0 with admin panel 2026-01-08 00:22:47 +01:00
README.it-IT.md Refactor conformità WordPress.org: stringhe sorgente in inglese (v4.0.0) 2026-06-17 23:41:48 +02:00
README.md Refactor conformità WordPress.org: stringhe sorgente in inglese (v4.0.0) 2026-06-17 23:41:48 +02:00
readme.txt Refactor conformità WordPress.org: stringhe sorgente in inglese (v4.0.0) 2026-06-17 23:41:48 +02:00

EG Fediverso Box

WordPress plugin that shows a box letting readers follow the author on the Fediverse (Mastodon, Pleroma, Pixelfed, etc.) with a full admin panel and a privacy-first design.

🇮🇹 Versione italiana / Italian version

License WordPress PHP Version


Features

  • Privacy-first — no trackers, no external JavaScript, no third-party services
  • Fediverse-native — built on the standard ActivityPub /authorize_interaction remote-follow flow
  • Full admin panel — configure everything from the WordPress interface
  • Required validation — checks the handle format to avoid misconfiguration
  • Appearance settings — background (gradient / neutral / none / custom colour) and independent border and shadow toggles
  • Translatable — English source strings + Italian translation in /languages (text domain eg-fediverso-box)
  • Polylang ready — the info link and the sign-up text/URL follow the page language
  • Lightweight — minimal CSS and JS, zero dependencies

Installation

Via WordPress (ZIP upload)

  1. Download the latest version: eg-fediverso-box.zip
  2. Go to Plugins → Add New → Upload Plugin
  3. Select the ZIP file and click "Install Now" → "Activate"
  4. Go to Settings → EG Fediverso Box and configure the handle (REQUIRED)

Via FTP

  1. Extract the eg-fediverso-box folder
  2. Upload it to /wp-content/plugins/
  3. Activate the plugin from the WordPress Plugins page
  4. Go to Settings → EG Fediverso Box and configure the handle (REQUIRED)

Configuration

Location: Settings → EG Fediverso Box. An admin notice is shown until at least the handle is configured.

Field Required Default
Fediverse Account Handle (username@instance.domain) Yes
Link "Don't know the Fediverse?" No https://fediverso.info/
Account Registration Link No https://mastodon.uno/auth/sign_up
Registration Link Text No Create a free account
Appearance (background / border / shadow) No gradient + border + shadow

The handle is validated against the username@instance.domain format; incomplete settings are not saved.


Usage

Shortcode (recommended):

[eg_fediverso_box]

PHP in the theme (e.g. single.php):

<?php if (function_exists('eg_fediverso_box')) { eg_fediverso_box(); } ?>

The plugin is also compatible with dynamic DOM insertion through the global window.initEGFediversoBox() function.


Internationalization

Source strings are in English. An Italian translation is bundled in /languages:

  • eg-fediverso-box.pot — template
  • eg-fediverso-box-it_IT.po / .mo — Italian

WordPress loads the matching translation automatically based on the site/page language (just-in-time loading).

Polylang

If Polylang is active, the configurable strings (the "Don't know the Fediverse?" URL, the sign-up URL and its text) are registered with Polylang and can be translated per language under Languages → String translations (group "EG Fediverso Box"). This way, on an English page the link can point to the English target. Without Polylang the original configured values are used.


How It Works

  1. The reader enters the domain of their own instance (e.g. mastodon.social).
  2. The plugin validates the input is a valid domain.
  3. It builds the standard URL https://[reader-instance]/authorize_interaction?uri=[author-handle].
  4. The reader is redirected to their own instance, where they confirm the follow.

No data is tracked or sent to external services.


Updates

This plugin is not on the WordPress.org directory, so it does not update through the standard WordPress system. Either update manually (re-upload the new version — saved settings are preserved) or use Git Updater for automatic updates from the repository.


Requirements

  • WordPress 5.0+
  • PHP 7.2+
  • A Fediverse account (to configure the handle)

License

Released under the GPL-2.0-or-later license.


Author

Emanuele Goriemanuelegori.uno · Fediverse: @emanuelegori@mastodon.uno

Repository: https://git.emanuelegori.uno/emanuelegori/eg-fediverso-box