[WordPress] 外掛分享: Mastodon Social Icons

首頁外掛目錄 › Mastodon Social Icons
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
20+
安裝啟用
尚無評分
1115 天前
最後更新
問題解決
WordPress 5.3+ PHP 5.6+ v0.1.0 上架:2023-02-26

內容簡介

將 WordPress 網站與 Mastodon 帳戶連結,通過在網站底部菜單中添加到 Mastodon 資料檔個人資料的連結,使用 "M" logo 取代。

但是,如果沒有這個外掛程式,此功能不會在任何 Mastodon 網域上運作,直到 6.2 版本,且此時只有前十個按容量排序的 Mastodon 網域才能使用。

本外掛允許使用 Mastodon Logo SVG(根據本外掛發布時的數據)替換前 100 大 (按用戶數排序) Mastodon 網域,透過此機制:

你所提供的文本標籤將被隱藏,並以圖標顯示。

目前的限制

目前僅支援 twenty-twenty-one 或以後的版本
非前 100 個網域是從 instances.social 在外掛程式發布時 (2023-02-18) 所查詢出來的: 'https://instances.social/api/1.0/instances/list?count=0&include_closed=true&include_down=false&sort_by=users&sort_order=desc

如有興趣,我(或其他人)可以努力解決這些限制。

範例

請參閱 這裡,以查看有內嵌屏幕截圖的範例。

1. 設置 Twenty Twenty-One 佈景主題

2. 建立次級菜單

3. 添加自定義鏈接

4. 前

"Mastodon.com" logo(因為它不是真正的mastodon域名而錯誤的)被 "SVG" 取代,但 "Mastodon.social" 鏈接沒有被取代。

5. 後
支持

請在 Github 上提出問題。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.0) 或搜尋安裝

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

原文外掛簡介

It’s aesthetically pleasing to link WordPress sites to one’s Mastodon account by adding a link in the site footer menu to one’s Mastodon profile that’s replaced with the “M” mastodon trunk/word balloon-logo.
Without this plugin, however, this functionality is not expected to work for any Mastodon domains until 6.2, and at that point, only the top-10-by-volume Mastodon domains.
This plugin allows replacing the top-100 (by user) Mastodon domains (as of plugin publication) with the Mastodon logo SVG via this mechanism:

the text label you provide will be hidden, and an icon will be shown in its place.

Current Limitations

Currently only works with twenty-twenty-one theme and later
Non-top-100 domains were queried at plugin publishing time (2023-02-18) from instances.social: 'https://instances.social/api/1.0/instances/list?count=0&include_closed=true&include_down=false&sort_by=users&sort_order=desc

I (or anyone else) can work to address these limitations if there is interest.
Example
See here for the example with screenshots inline.
1. Set up Theme: Twenty Twenty-One

2 Create a Secondary Menu

3 Add custom links

4 Before

The mastodon.com logo is (erroneously, as it is not a true mastodon domain) is replaced by the svg, but a mastodon.social link is not.
5 After
Support
Open an issue on github.

延伸相關外掛

文章
Filter
Mastodon