<?php

/**
 * Duplicator Backup row in table Backups list
 */

use Duplicator\Addons\RecoveryAddon\Views\RecoveryViewHelper;

defined("ABSPATH") or die("");

/**
 * Variables
 *
 * @var \Duplicator\Core\Controllers\ControllersManager $ctrlMng
 * @var \Duplicator\Core\Views\TplMng  $tplMng
 */
?>
<h3 class="dup-title maroon">
    <?php RecoveryViewHelper::disasterIcon(); ?>&nbsp;<?php esc_html_e('Disaster Recovery - None Set', 'duplicator-pro'); ?>
</h3>
<?php
    esc_html_e(
        'The recovery point can quickly restore a site to a prior state for any reason. To activate a recovery point follow these steps:',
        'duplicator-pro'
    );
    ?>
<ol>
    <li>
        <?php
            printf(
                esc_html__('Select a Recovery Backup with the icon %s displayed*.', 'duplicator-pro'),
                wp_kses(
                    RecoveryViewHelper::disasterIcon(false),
                    ['i' => ['class' => []]]
                )
            );
            ?>
    </li>
    <li>
        <?php
            printf(
                esc_html_x(
                    'Open details area %1$s and click the "Recover Backup ..." button.',
                    '%1$s represents an icon',
                    'duplicator-pro'
                ),
                '<i class="fas fa-chevron-left fa-sm fa-fw"></i>'
            );
            ?>
    </li>
    <li>
        <?php esc_html_e('Follow the prompts and choose the action to perform.', 'duplicator-pro'); ?>
    </li>
</ol>
<hr/>
<p>
    <b><?php esc_html_e('Additional Details:', 'duplicator-pro'); ?></b>
    <?php
    esc_html_e(
        'Once a recovery point is set you can save the "Recovery Key" URL in a safe place for restoration later in the event your site goes down, gets 
        hacked or basically any reason you need to restore a site. In the event you still have access to your site you can also launch the recover 
        wizard from the details menu.',
        'duplicator-pro'
    );
    ?>
</p>
<small>
    <i>
        <?php
        printf(
            esc_html__(
                '*Note: If you do not see a Recovery Backup %s icon in the Backups List. 
                Then be sure to build a full Backup that does not exclude any of the core WordPress files or database tables. 
                These core files and tables are required to build a valid recovery point.',
                'duplicator-pro'
            ),
            wp_kses(
                RecoveryViewHelper::disasterIcon(false),
                ['i' => ['class' => []]]
            )
        );
        ?>
    </i>
</small>
