$linkCat = JRoute::_('index.php?option=com_phocagallery&task=phocagalleryc.edit&id=' . (int) $item->category_id); $canEditCat = $user->authorise('core.edit', $option); $iD = $i % 2; echo "\n\n"; echo '<tr class="row' . $iD . '" sortable-group-id="' . $item->category_id . '" item-id="' . $item->id . '" parents="' . $item->category_id . '" level="0">' . "\n"; echo $r->tdOrder(0, 0, 0); echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone"); $usrU = $item->ratingname; if ($item->ratingusername) { $usrU = $usrU . ' (' . $item->ratingusername . ')'; } echo $r->td($usrU, "small hidden-phone"); if ($canEditCat) { $catO = '<a href="' . JRoute::_($linkCat) . '">' . $this->escape($item->category_title) . '</a>'; } else { $catO = $this->escape($item->category_title); } echo $r->td($catO, "small hidden-phone"); echo $r->td($item->rating, "small hidden-phone"); echo $r->td($item->id, "small hidden-phone"); echo '</tr>' . "\n"; } } } echo '</tbody>' . "\n"; echo $r->tblFoot($this->pagination->getListFooter(), 15); echo $r->endTable(); echo $r->formInputs($listOrder, $originalOrders); echo $r->endMainContainer(); echo $r->endForm();