public function addToolbar() { JToolBarHelper::title(JText::_(COM_SITEMAP), 'generic.png'); $result = SitemapHelper::getActions(); if ($result->get('core.create')) { JToolBarHelper::addNew('sitemap.add'); } if ($result->get('core.edit')) { JToolBarHelper::editList('sitemap.edit'); } JToolBarHelper::divider(); if ($result->get('core.edit.state')) { JToolBarHelper::publishList('sitemaps.publish'); JToolBarHelper::unpublishList('sitemaps.unpublish'); } if ($result->get('core.delete')) { JToolBarHelper::deleteList(JText::_(COM_SITEMAP_DELETE_CONFIRM), 'sitemaps.delete'); } }
<?php echo JHtml::_('grid.sort', JText::_(COM_SITEMAP_LABEL_ALIAS), 'alias', $this->sortDirection, $this->sortColumn); ?> </th> <th width="2%"> <?php echo JHtml::_('grid.sort', JText::_(COM_SITEMAP_LABEL_STATUS), 'published', $this->sortDirection, $this->sortColumn); ?> </th> </tr> </thead> <tbody> <?php $actions = SitemapHelper::getActions(); ?> <?php foreach ($this->items as $key => $item) { ?> <tr class="row<?php echo $key % 2; ?> "> <td> <?php echo JHtml::_('grid.checkedOut', $item, $key); ?> </td> <td> <?php