* @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\Filter\OutputFilter as JFilterOutput; 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\Library\Document as RL_Document; use RegularLabs\Library\Form\Field\MiniColorField; use RegularLabs\Library\StringHelper as RL_String; use RegularLabs\Library\Version as RL_Version; $user = JFactory::getApplication()->getIdentity() ?: JFactory::getUser(); $canAccess = $user->authorise('core.admin', 'com_conditions'); if ( ! $canAccess) { throw new NotAllowed(JText::_('JERROR_ALERTNOAUTHOR'), 403); } $canCreate = $user->authorise('core.create', 'com_conditions'); $canEdit = $user->authorise('core.edit', 'com_conditions'); $canChange = $user->authorise('core.edit.state', 'com_conditions'); $canCheckin = $user->authorise('core.manage', 'com_checkin'); RL_Document::style('regularlabs.admin-form'); $listOrder = RL_String::escape($this->state->get('list.ordering')); $listDirn = RL_String::escape($this->state->get('list.direction')); $ordering = ($listOrder == 'a.name'); $filter_state = $this->state->get('filter.state') ?: 1; $showColors = $this->config->use_colors; $showCategories = ($this->hasCategories && $this->config->use_categories); ?>
$this]); ?> items)): ?> items as $i => $item) : ?> checked_out == 0 || $item->checked_out == $user->get('id')); $canChangeItem = ($canChange && $canCheckinItem); $description = explode('---', $item->description); ?>
id); ?> color ?? ''; $element = new SimpleXMLElement( '' ); $element->value = $color; $colorfield->setup($element, $color); echo $colorfield->__get('input'); ?> $item->published == 1 ? 'icon-check' : 'icon-trash']); ?> checked_out) : ?> editor, $item->checked_out_time, 'items.', $canCheckin); ?> name); ?> name); ?>
alias)); ?>
category ? '' . $item->category . '' : ''; ?> nr_of_uses; ?> id; ?>
pagination->getListFooter(); ?>