* @link https://regularlabs.com * @copyright Copyright © 2024 Regular Labs All Rights Reserved * @license GNU General Public License version 2 or later */ defined('_JEXEC') or die; use Joomla\CMS\Access\Exception\NotAllowed; use Joomla\CMS\Factory as JFactory; use Joomla\CMS\HTML\HTMLHelper as JHtml; use Joomla\CMS\Language\Text as JText; use Joomla\CMS\Layout\LayoutHelper as JLayout; use Joomla\CMS\Router\Route as JRoute; use RegularLabs\Component\Conditions\Administrator\Helper\Helper; use RegularLabs\Library\Document as RL_Document; use RegularLabs\Library\Language as RL_Language; $user = JFactory::getApplication()->getIdentity() ?: JFactory::getUser(); $canAccess = $user->authorise('core.admin', 'com_conditions'); $canEdit = $user->authorise('core.edit', 'com_conditions'); if ( ! $canAccess || ! $canEdit) { throw new NotAllowed(JText::_('JERROR_ALERTNOAUTHOR'), 403); } RL_Document::useScript('keepalive'); RL_Document::useScript('form.validate'); RL_Document::usePreset('choicesjs'); RL_Document::useScript('webcomponent.field-fancy-select'); RL_Document::script('regularlabs.regular'); RL_Document::script('regularlabs.admin-form'); RL_Document::script('regularlabs.admin-form-descriptions'); RL_Document::script('regularlabs.treeselect'); RL_Document::script('conditions.script'); $script = "document.addEventListener('DOMContentLoaded', function(){RegularLabs.Conditions.init()});"; RL_Document::scriptDeclaration($script, 'Conditions', true, 'after'); RL_Language::load('com_content', JPATH_ADMINISTRATOR); ?>
'details']); ?>
' . $this->item->nr_of_uses . ''; ?> item->usage)): ?>

item->usage as $extension_name => $extension_usage) : ?>

form->renderFieldset('details'); ?>