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; $columns = 7; if (count($parts) > 1) { $section = $parts[1]; $inflector = Inflector::getInstance(); if (!$inflector->isPlural($section)) { $section = $inflector->toPlural($section); } } if ($saveOrder) { $saveOrderingUrl = 'index.php?option=com_categories&task=categories.saveOrderAjax&tmpl=component'; JHtml::_('sortablelist.sortable', 'categoryList', 'adminForm', strtolower($listDirn), $saveOrderingUrl, false, true); } ?>
sidebar; ?>
$this)); ?> items)) : ?>
items[0]) && property_exists($this->items[0], 'count_published')) : $columns++; ?> items[0]) && property_exists($this->items[0], 'count_unpublished')) : $columns++; ?> items[0]) && property_exists($this->items[0], 'count_archived')) : $columns++; ?> items[0]) && property_exists($this->items[0], 'count_trashed')) : $columns++; ?> assoc) : $columns++; ?> items as $i => $item) : ?> authorise('core.edit', $extension . '.category.' . $item->id); $canCheckin = $user->authorise('core.admin', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0; $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) : ?>
pagination->getListFooter(); ?>
id); ?>
published, $i, 'categories.', $canChange); ?> published === 2 ? 'un' : '') . 'archive', 'cb' . $i, 'categories'); JHtml::_('actionsdropdown.' . ((int) $item->published === -2 ? 'un' : '') . 'trash', 'cb' . $i, 'categories'); // Render dropdown list echo JHtml::_('actionsdropdown.render', $this->escape($item->title)); } ?>
$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; ?>
authorise('core.create', $extension) && $user->authorise('core.edit', $extension) && $user->authorise('core.edit.state', $extension)) : ?> JText::_('COM_CATEGORIES_BATCH_OPTIONS'), 'footer' => $this->loadTemplate('batch_footer'), ), $this->loadTemplate('batch_body') ); ?>