echo "\n\n"; //echo '<tr class="row'.$iD.'" sortable-group-id="'.$item->type.'" item-id="'.$item->id.'" parents="'.$item->type.'" level="0">'. "\n"; echo '<tr class="row' . $iD . '" sortable-group-id="' . $item->type . '" >' . "\n"; echo $r->tdOrder($canChange, $saveOrder, $orderkey); echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone"); $checkO = ''; if ($item->checked_out) { $checkO .= JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, $tasks . '.', $canCheckin); } if ($canCreate || $canEdit) { $checkO .= '<a href="' . JRoute::_($linkEdit) . '">' . $this->escape($item->title) . '</a>'; } else { $checkO .= $this->escape($item->title); } echo $r->td($checkO, "small hidden-phone"); $filename = PhocaGalleryFile::existsCss($item->filename, $item->type); $main = ''; if ((int) $item->type == 1) { $main = ' <span class="label label-warning">' . JText::_('COM_PHOCAGALLERY_MAIN') . '</span>'; } if ($filename) { echo $r->td($item->filename . $main . ' <span class="label label-success">' . JText::_('COM_PHOCAGALLERY_FILE_EXISTS') . '</span>', "small hidden-phone"); } else { echo $r->td($item->filename . $main . ' <span class="label label-important">' . JText::_('COM_PHOCAGALLERY_FILE_DOES_NOT_EXIST') . '</span>', "small hidden-phone"); } echo $r->td(JHtml::_('jgrid.published', $item->published, $i, $tasks . '.', $canChange), "small hidden-phone"); switch ($item->type) { case 2: echo $r->td(JText::_('COM_PHOCAGALLERY_CUSTOM_CSS'), "small hidden-phone"); break; case 1: