vitamin2/v2-spam-free-mail
最新稳定版本:0.2.3
Composer 安装命令:
composer require vitamin2/v2-spam-free-mail
包简介
V2 Spam Free Mails
README 文档
README
Just a plugin which decrypts the email addresses on the fly.
Installation
Download
Download and copy this repository to /site/plugins/vitamin2/v2-spam-free-mail.
Composer
composer require vitamin2/v2-spam-free-mail
Usage
Install plugin
Add Spam Free JS to your template (getSpamFreeJs returns a versionised JS file)
<?= js([
getSpamFreeJs(),
]) ?>
- Preload it (optional)
<link rel="preload" href="<?= getSpamFreeJs() ?>" as="script" />
- Use It. For text fields it will be used automatically. For other fields you can use the snippet.
<?= snippet("global/protected-mail", [
"emailAddress" => $site->emailAddress()->value(),
"emailText" => $site->emailAddress()->value(),
"customAttributes" => [
"class" => "link-footer",
"rel" => "noopener noreferrer",
"target" => "_blank",
"title" => "link-footer",
],
]) ?>
License
MIT
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-11