<?php
/**
 * @package    RSFirewall!
 * @copyright  (c) 2009 - 2020 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License http://www.gnu.org/licenses/gpl-3.0.en.html
 */

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

// set description if required
if (isset($this->fieldset->description) && !empty($this->fieldset->description)) { ?>
	<div class="com-rsfirewall-tooltip"><?php echo JText::_($this->fieldset->description); ?></div>
<?php } ?>
<?php if (!$this->config->get('active_scanner_status')) { ?>
	<div class="com-rsfirewall-not-ok"><p><?php echo JText::_('COM_RSFIREWALL_ACTIVE_SCANNER_IS_DISABLED'); ?></p></div>
<?php } else { ?>
	<div class="com-rsfirewall-ok"><p><?php echo JText::_('COM_RSFIREWALL_ACTIVE_SCANNER_IS_ENABLED'); ?></p></div>
<?php } ?>
<?php
$this->field->startFieldset();
foreach ($this->fields as $field) {
	$this->field->showField($field->hidden ? '' : $field->label, $field->input);
}
$this->field->endFieldset();