Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 4
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * The template for the email sent when the "Email Magic Link" button is pressed.
4 *
5 * This can be overridden with the `bh_wp_autologin_urls_magic_link_email_template` filter.
6 * Or by providing a templates/email/magic-link.php or email/magic-link.php file in your child theme.
7 *
8 * @see API::send_magic_link()
9 *
10 * @package brianhenryie/bh-wp-autologin-urls
11 *
12 * The following variables are available from where the parent function includes:
13 *
14 * @var string $autologin_url The magic login URL.
15 * @var string $expires_in_friendly The length of time the link is valid for, e.g. "15 mins".
16 */
17
18?>
19
20<div style="text-align:center;">
21
22    <div style="margin-left:auto; margin-right:auto; margin-top: 25px; margin-bottom: 25px;">
23
24        <a style="padding: 50px;" href ="<?php echo esc_url( $autologin_url ); ?>">Log in</a>
25
26    </div>
27
28    <div>
29        This link is valid for <?php echo esc_html( $expires_in_friendly ); ?>.
30    </div>
31</div>