Created
October 2, 2016 04:31
-
-
Save slavafomin/a178e99db7e8fa9a8bde4f3e23b81ae8 to your computer and use it in GitHub Desktop.
This partial in Twig defines "Confirm" one-click action for E-Mail messages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {# | |
| Defined "Confirm" one-click action. | |
| @param {string} title | |
| @param {string} url | |
| @param {string} [description] | |
| #} | |
| <div itemscope itemtype="http://schema.org/EmailMessage"> | |
| <div itemprop="potentialAction" itemscope itemtype="http://schema.org/ConfirmAction"> | |
| <meta itemprop="name" content="{{ title }}"/> | |
| <div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler"> | |
| <link itemprop="url" href="{{ url }}"/> | |
| </div> | |
| </div> | |
| {% if description %} | |
| <meta itemprop="description" content="{{ description }}"/> | |
| {% endif %} | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment