Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
12 / 12
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Provides the admin area view for the plugin
4 *
5 * This file is used to markup the admin-facing aspects of the plugin.
6 *
7 * @see \BrianHenryIE\WP_Autologin_URLs\Admin\Settings_Page::display_plugin_admin_page()
8 *
9 * @var \Psr\Log\LoggerInterface $logger The logger made available from the calling function.
10 * @var string $example_url A URL (non-working) which looks like how the real ones will appear.
11 *
12 * @link       https://BrianHenry.ie
13 * @since      1.0.0
14 *
15 * @package    brianhenryie/bh-wp-autologin-urls
16 */
17
18?>
19
20<div class="wrap bh-wp-autologin-urls">
21
22    <div id="icon-themes" class="icon32"></div>
23
24    <h2>Autologin URLs</h2>
25
26    <?php settings_errors(); ?>
27
28    <h3>Adds single-use passwords to URLs in WordPress emails.</h3>
29
30    <p>With this plugin enabled, when emails are sent from WordPress (and its plugins) to users, a login code is added to each URL in the emails, which automatically logs users into the site when they visit. Modified URLs take the form <span class="url"><?php echo esc_url( $example_url ); ?></span>, and will often be transparent to users, due to HTML formatted (rich text) emails.</p>
31
32    <p>To exclude emails with particular subjects from having autologin codes added, use regular expressions to match the subjects. e.g. password reset email does not need an autologin code added to its URLs.</p>
33
34    <form method="POST" action="options.php">
35        <?php
36        settings_fields( 'bh-wp-autologin-urls' );
37        do_settings_sections( 'bh-wp-autologin-urls' );
38        submit_button();
39        ?>
40    </form>
41
42    <p><a href="https://wordpress.org/support/plugin/bh-wp-autologin-urls">Support on WordPress.org</a> &#x2022; <a href="https://github.com/BrianHenryIE/bh-wp-autologin-urls">Code on GitHub</a> &#x2022; <a href="https://BrianHenry.ie">Plugin by BrianHenryIE</a></p>
43
44</div>