[WordPress] 外掛分享: Email Obfuscate Shortcode

首頁外掛目錄 › Email Obfuscate Shortcode
WordPress 外掛 Email Obfuscate Shortcode 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
1,000+
安裝啟用
★★★★
4.4/5 分(16 則評價)
3520 天前
最後更新
問題解決
WordPress 3.0+ v2.0 上架:2012-12-23

內容簡介

使用縮短碼(shortcode)將電子郵件地址或其他敏感資訊混淆,以防止資料被蒐集。

2.0 版本使用更好的方式來顯示電子郵件,而不是依賴 JavaScript 的 document.write()。

使用方法

基本用法

[email-obfuscate email=”[email protected]”]

設置自訂連結文字

[email-obfuscate email=”[email protected]” link_title=”Email Bob!”]

*設置自訂 tag title 屬性

[email-obfuscate email=”[email protected]” tag_title=”Email Bob!”]

使用所有可用的設置(此範例顯示它們的預設值)

[email-obfuscate email=”[email protected]” linkable=”1″ link_title=”” use_htmlentities=”1″ use_noscript_fallback=”1″ noscript_message=”Please enable JavaScript to see this field.”]

從範本或外掛中使用

以下是可在任何範本或外掛中使用的片段,以套用與使用縮短碼相同的混淆效果:

if(function_exists(‘eos_obfuscate’))
{
echo eos_obfuscate(array(’email’ => $email, ‘link_title’ => ‘Email Bob!’));
}
else
{
echo $email;
}

如果未啟用外掛,電子郵件地址將以明文通過並輸出。

需求

PHP 5.3 或更高版本
mbstring 擴展

翻譯

瑞典語

待辦事項

更好的 noscript_fallback。透過 CSS 注入空的 span 技術使沒有啟用 JavaScript 的人能夠查看電子郵件地址。
(範例:[email protected]
參考資料:https://wordpress.org/extend/plugins/obfuscate-email/other_notes/)

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0) 或搜尋安裝

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

原文外掛簡介

Obfuscate your email address or other sensitive information with a shortcode to prevent harvesting of your data.
Version 2.0 includes an improved way of displaying the email without relying on JavaScript document.write();
Usage
Basic usage
[email-obfuscate email=”[email protected]”]
Setting custom link text
[email-obfuscate email=”[email protected]” link_title=”Email Bob!”]
*Setting custom link title attribute”
[email-obfuscate email=”[email protected]” tag_title=”Email Bob!”]
Using every available setting (this example shows their default values)
[email-obfuscate email=”[email protected]” linkable=”1″ link_title=”” use_htmlentities=”1″ use_noscript_fallback=”1″ noscript_message=”Please enable JavaScript to see this field.”]
Usage from a template or plugin
Below is a snippet that you can use in any template or plugin to apply the same obfuscation to an email as using the shortcode:
if(function_exists(‘eos_obfuscate’))
{
echo eos_obfuscate(array(’email’ => $email, ‘link_title’ => ‘Email Bob!’));
}
else
{
echo $email;
}
If the plugin is not enabled, the email address will just pass through and output in cleartext.
Requirements

PHP 5.3 or higher
mbstring extension

Translations

Swedish

TODO

Better noscript_fallback. Enable people without JavaScript to see the email address using technique to inject empty spans via css.
(Example: [email protected]
Reference: https://wordpress.org/extend/plugins/obfuscate-email/other_notes/

延伸相關外掛

文章
Filter
Mastodon