* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Multilanguage; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\CMS\Session\Session; use Joomla\String\Inflector; /** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('table.columns') ->useScript('multiselect'); $user = Factory::getUser(); $userId = $user->get('id'); $extension = $this->escape($this->state->get('filter.extension')); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $saveOrder = ($listOrder == 'a.lft' && strtolower($listDirn) == 'asc'); $parts = explode('.', $extension, 2); $component = $parts[0]; $section = null; if (count($parts) > 1) { $section = $parts[1]; $inflector = Inflector::getInstance(); if (!$inflector->isPlural($section)) { $section = $inflector->toPlural($section); } } if ($saveOrder && !empty($this->items)) { $saveOrderingUrl = 'index.php?option=com_categories&task=categories.saveOrderAjax&tmpl=component&' . Session::getFormToken() . '=1'; HTMLHelper::_('draggablelist.draggable'); } ?>
$this)); ?> items)) : ?>
items[0]) && property_exists($this->items[0], 'count_published')) : ?> items[0]) && property_exists($this->items[0], 'count_unpublished')) : ?> items[0]) && property_exists($this->items[0], 'count_archived')) : ?> items[0]) && property_exists($this->items[0], 'count_trashed')) : ?> assoc) : ?> class="js-draggable" data-url="" data-direction="" data-nested="false"> items as $i => $item) : ?> authorise('core.edit', $extension . '.category.' . $item->id); $canCheckin = $user->authorise('core.admin', 'com_checkin') || $item->checked_out == $userId || is_null($item->checked_out); $canEditOwn = $user->authorise('core.edit.own', $extension . '.category.' . $item->id) && $item->created_user_id == $userId; $canChange = $user->authorise('core.edit.state', $extension . '.category.' . $item->id) && $canCheckin; // Get the parents of item for sorting if ($item->level > 1) { $parentsStr = ''; $_currentParentId = $item->parent_id; $parentsStr = ' ' . $_currentParentId; for ($i2 = 0; $i2 < $item->level; $i2++) { foreach ($this->ordering as $k => $v) { $v = implode('-', $v); $v = '-' . $v . '-'; if (strpos($v, '-' . $_currentParentId . '-') !== false) { $parentsStr .= ' ' . $k; $_currentParentId = $k; break; } } } } else { $parentsStr = ''; } ?> items[0]) && property_exists($this->items[0], 'count_published')) : ?> items[0]) && property_exists($this->items[0], 'count_unpublished')) : ?> items[0]) && property_exists($this->items[0], 'count_archived')) : ?> items[0]) && property_exists($this->items[0], 'count_trashed')) : ?> assoc) : ?>
, ,
id, false, 'cid', 'cb', $item->title); ?> published, $i, 'categories.', $canChange); ?> $item->level)); ?> checked_out) : ?> editor, $item->checked_out_time, 'categories.', $canCheckin); ?> escape($item->title); ?> escape($item->title); ?>
note)) : ?> escape($item->alias)); ?> escape($item->alias), $this->escape($item->note)); ?>
count_published; ?> count_unpublished; ?> count_archived; ?> count_trashed; ?> escape($item->access_level); ?> association) : ?> id, $extension); ?> id; ?>
pagination->getListFooter(); ?> authorise('core.create', $extension) && $user->authorise('core.edit', $extension) && $user->authorise('core.edit.state', $extension) ) : ?> Text::_('COM_CATEGORIES_BATCH_OPTIONS'), 'footer' => $this->loadTemplate('batch_footer'), ), $this->loadTemplate('batch_body') ); ?>