<?php

if (!defined('ABSPATH')) {
    exit; // Pas d'accès direct !
}
?>

<div id="v1mainwp-email-wrapper" style="padding: 30px 0">
    <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" style="margin-top: 30px; margin-bottom: 30px">
        <tbody>
            <tr>
                <td align="center" valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" width="600" style="background-color: #ffffff; border: 1px solid #dedede; box-shadow: 0 1px 4px rgba(0,0,0,0.1); border-radius: 3px; padding-bottom: 30px">

                        <tbody>
                            <tr>
                                <td align="center" valign="top">
                                    <table border="0" cellpadding="0" cellspacing="0" width="600">
                                        <tbody>
                                            <tr>
                                                <td id="v1header_wrapper" style="padding: 20px 48px; padding-left:18px;display: flex; flex-direction:row; align-items:center;justify-content:center; background: #090e16">
                                                    <a href target="_blank"><img src="<?php echo esc_url(HPIXL_SECURICHECK_PLUGIN_URL); ?>images/securicheck.png" alt="<?php echo esc_attr__('Logo HPIXL Securicheck', 'securicheck'); ?>" style="width:80px" />
                                                    </a>
                                                    <h1 style="text-align: center; color: #fff;margin:0;padding-left:20px;">
                                                        <?php _e('Protection Force Brute Securicheck', 'securicheck'); ?></h1>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>


                            <tr>
                                <td align="left" valign="top" style="padding: 30px 30px 0 30px">
                                    <p><strong><?php
                                                printf(
                                                    esc_html__('Bonjour %s,', 'securicheck'),
                                                    esc_html($recipient_firstname)
                                                );
                                                ?>
                                        </strong></p>
                                    <p><?php printf(
                                            esc_html__('Veuillez prendre connaissance d\'une nouvelle IP bloquée suite à plusieurs tentatives de connexions échouées sur le site : %s', 'securicheck'),
                                            esc_url(home_url())
                                        ); ?></p>
                                    <p><?php printf(
                                            esc_html__('Date du blocage : %s', 'securicheck'),
                                            esc_html(wp_date('d/m/Y H:i:s'))
                                        );  ?></p>
                                </td>
                            </tr>
                            <tr>
                                <td align="left" valign="top" style="padding: 30px 30px 0 30px">
                                    <h3 style="color: #04AA6D"><?php _e('Blocage', 'securicheck'); ?></h3>
                                    <p><?php _e('Les adresses IP bloquées ci dessous.', 'securicheck'); ?></p>
                                    <table border="0" cellpadding="0" cellspacing="0" align="left" width="100%" style="font-size: 11px; margin-bottom: 30px">
                                        <thead style="background: #eee">
                                            <tr>
                                                <th style="padding: 5px" align="left"><?php _e('IP', 'securicheck'); ?></th>
                                                <th style="padding: 5px;text-align:center;"><?php _e('Raison du blocage', 'securicheck'); ?></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td style="padding: 10px; border-bottom: 1px solid #eee">
                                                    <p style="color: #2c363a;margin:0;">
                                                        <?php echo esc_html($ip); ?>
                                                    </p>
                                                </td>
                                                <td style="padding: 10px; border-bottom: 1px solid #eee" align="center">
                                                    <span style="background: #D63638; padding: 3px 7px; color: #fff">
                                                        <?php echo esc_html($raison); ?>
                                                    </span>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <p>
                                        <?php
                                        if (defined('HPIXL_SECURICHECK_PREMIUM_PLUGIN_NAME') && !is_plugin_active(HPIXL_SECURICHECK_PREMIUM_PLUGIN_NAME)) {
                                            esc_html_e('Si vous souhaitez améliorer la sécurité de votre site internet, optez pour la', 'securicheck'); ?>
                                            <b>
                                                <a href="https://wp-securicheck.com/tarifs" style="color:#04AA6D" target="_blank" rel="noreferrer">
                                                    <?php esc_html_e('version premium du plugin', 'securicheck'); ?>
                                                </a>
                                            </b>
                                        <?php esc_html_e(' et corrigez ses failles de sécurité en 1 clic.', 'securicheck');
                                        }
                                        ?>
                                    </p>
                                </td>
                            </tr>

                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <div style="text-align: center; font-size: 11px; margin-bottom: 30px;margin-top:30px;">
        Propulsé par <a href="https://wp-securicheck.com/" style="color: #2c363a" target="_blank" rel="noreferrer">wp-securicheck.com</a>.
    </div>
</div>