vitamin2/v2-spam-free-mail 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Install plugin

  2. Add Spam Free JS to your template (getSpamFreeJs returns a versionised JS file)

  <?= js([
    getSpamFreeJs(),
  ]) ?>
  1. Preload it (optional)
  <link rel="preload" href="<?= getSpamFreeJs() ?>" as="script" />
  1. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-11