get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $ordering = ($listOrder == 'a.lft'); $saveOrder = ($listOrder == 'a.lft' && strtolower($listDirn) == 'asc'); $menuType = (string) $app->getUserState('com_menus.items.menutype', '', 'string'); if ($saveOrder && $menuType) { $saveOrderingUrl = 'index.php?option=com_menus&task=items.saveOrderAjax&tmpl=component'; JHtml::_('sortablelist.sortable', 'itemList', 'adminForm', strtolower($listDirn), $saveOrderingUrl, false, true); } $assoc = JLanguageAssociations::isEnabled() && $this->state->get('filter.client_id') == 0; $colSpan = $assoc ? 10 : 9; if ($menuType == '') { $colSpan--; } ?>
sidebar)) : ?>
sidebar; ?>
$this, 'options' => array('selectorFieldName' => 'menutype'))); ?> items)) : ?>
state->get('filter.client_id') == 0) : ?> state->get('filter.client_id') == 0) : ?> state->get('filter.client_id') == 0) : ?> items as $i => $item) : $orderkey = array_search($item->id, $this->ordering[$item->parent_id]); $canCreate = $user->authorise('core.create', 'com_menus.menu.' . $item->menutype_id); $canEdit = $user->authorise('core.edit', 'com_menus.menu.' . $item->menutype_id); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id')|| $item->checked_out == 0; $canChange = $user->authorise('core.edit.state', 'com_menus.menu.' . $item->menutype_id) && $canCheckin; // Get the parents of item for sorting if ($item->level > 1) { $parentsStr = ''; $_currentParentId = $item->parent_id; $parentsStr = ' ' . $_currentParentId; for ($j = 0; $j < $item->level; $j++) { foreach ($this->ordering as $k => $v) { $v = implode('-', $v); $v = '-' . $v . '-'; if (strpos($v, '-' . $_currentParentId . '-') !== false) { $parentsStr .= ' ' . $k; $_currentParentId = $k; break; } } } } else { $parentsStr = ''; } ?> state->get('filter.client_id') == 0) : ?> state->get('filter.client_id') == 0) : ?> state->get('filter.client_id') == 0) : ?>
pagination->getListFooter(); ?>
id); ?> protected ? 3 : $item->published; echo JHtml::_('MenusHtml.Menus.state', $published, $i, $canChange && !$item->protected, 'cb'); ?> $item->level)); ?> checked_out) : ?> editor, $item->checked_out_time, 'items.', $canCheckin); ?> protected) : ?> escape($item->title); ?> escape($item->title); ?> type != 'url') : ?> note)) : ?> escape($item->alias)); ?> escape($item->alias), $this->escape($item->note)); ?> type == 'url' && $item->note) : ?> escape($item->note)); ?> params); ?>
escape($item->item_type); ?>
escape($item->menutype_title ?: ucwords($item->menutype)); ?> type == 'component') : ?> language == '*' || $item->home == '0') : ?> home, $i, 'items.', ($item->language != '*' || !$item->home) && $canChange && !$item->protected); ?> language_image) : ?> language_image . '.gif', $item->language_title, array('title' => JText::sprintf('COM_MENUS_GRID_UNSET_LANGUAGE', $item->language_title)), true); ?> language_sef; ?> language_image) : ?> language_image . '.gif', $item->language_title, array('title' => $item->language_title), true); ?> language_sef; ?> escape($item->access_level); ?> association) : ?> id); ?> id; ?>
authorise('core.create', 'com_menus') || $user->authorise('core.edit', 'com_menus')) : ?> JText::_('COM_MENUS_BATCH_OPTIONS'), 'footer' => $this->loadTemplate('batch_footer') ), $this->loadTemplate('batch_body') ); ?>