<?php

/**
 * @package         Convert Forms
 * @version         5.2.5-RC2 Free
 * 
 * @author          Tassos Marinos <info@tassos.gr>
 * @link            https://www.tassos.gr
 * @copyright       Copyright © 2024 Tassos All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Language\Text;

// Heads up: this friendly error layout is only reached when Joomla's Debug System is OFF.
// When debug is ON, view.html.php (progress case) rethrows the exception instead of calling
// Export::error(), so Joomla renders its own full-page error (admin template + call stack)
// and this template never runs. That's expected behaviour, not a bug.
?>
<div class="export_tool error text-center tmpl-<?php echo $this->tmpl ?>">
    <div class="container">
        <?php if ($this->tmpl == 'component') include __DIR__ . '/_closebtn.php'; ?>
        <span class="icon-smiley-sad-2"></span>
        <h2><?php echo Text::_('NR_ERROR') ?></h2>
        <p class="error_message"><?php echo $this->error; ?></p>
        <a class="btn btn-primary" href="<?php echo $this->start_over_link ?>">
            <?php echo Text::_('NR_TRY_AGAIN') ?>
        </a>
    </div>
</div>