[WordPress] 外掛分享: FreeMyInternet

首頁外掛目錄 › FreeMyInternet
WordPress 外掛 FreeMyInternet 的封面圖片
全新外掛
安裝啟用
尚無評分
23 天前
最後更新
問題解決
WordPress 6.8+ PHP 8.2+ v1.0.1 上架:2013-06-02

內容簡介

FreeMyInternet 外掛讓您在網站上放置抗議通知,提供全螢幕黑屏或上方橫幅的選擇,並可自訂標題、訊息、連結及顏色,適合用於各種抗議活動。

【主要功能】
• 全螢幕黑屏或上方橫幅選擇
• 自訂標題、訊息及顏色
• 設定顯示時間,自動出現與消失
• 可選擇關閉按鈕,並記住訪客選擇
• 不會影響 wp-admin 或登入畫面
• 無額外 HTTP 請求,效能優化

外掛標籤

開發者團隊

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

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

原文外掛簡介

Put a protest notice on your site. Choose between a full-screen blackout that covers the whole site, and a top banner that leaves your content readable, then write your own heading, message, link and colours.
Everything is configured under Settings -> FreeMyInternet. Nothing is shown to visitors until you switch it on.
This plugin was written in June 2013 to support the FreeMyInternet campaign against the Media Development Authority of Singapore’s licensing scheme, and originally displayed that campaign’s banner and nothing else. Since 1.0.0 it is a general-purpose protest and blackout plugin, so it can be used for whatever you are protesting. The initial idea came from xenomancer’s Censor Me.
Features

Two presentations: full-screen blackout, or a top banner
Your own heading, message, call-to-action link and colours
Optional image
Schedule — set a start and end date and the notice appears and disappears on its own
Dismissable — an optional close button, remembered per visitor until you change the notice
Never renders in wp-admin or on the login screen, so it cannot lock you out
No extra HTTP requests — the few kilobytes of CSS and JavaScript are inlined, and only while a protest is actually running

Donations
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
Usage
Use the freemyinternet_should_display filter to control where the notice appears — for example, to show it to logged-out visitors only:
add_filter( 'freemyinternet_should_display', function ( $display, $options ) {
return $display && ! is_user_logged_in();
}, 10, 2 );

Use the freemyinternet_capability filter to hand the settings screen to a capability other than manage_options:
add_filter( 'freemyinternet_capability', function ( $capability, $context ) {
return 'edit_pages';
}, 10, 2 );

延伸相關外掛

文章
Filter
Mastodon