Exemplo n.º 1
0
 $canCreate = $user->authorise('core.create', $option);
 $canEdit = $user->authorise('core.edit', $option);
 $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0;
 $canChange = $user->authorise('core.edit.state', $option) && $canCheckin;
 $linkEdit = JRoute::_($urlEdit . $item->id);
 $linkRotate90 = JRoute::_($urlTask . '.rotate&angle=90&id=' . $item->id);
 $linkRotate270 = JRoute::_($urlTask . '.rotate&angle=270&id=' . $item->id);
 $linkDeleteThumbs = JRoute::_($urlTask . '.recreate&cid[]=' . (int) $item->id);
 $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($canChange, $saveOrder, $orderkey);
 echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
 echo $r->tdImage($item, $this->button, 'COM_PHOCAGALLERY_ENLARGE_IMAGE');
 $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);
 }
 $checkO .= ' <span class="smallsub">(<span>' . JText::_($OPT . '_FIELD_ALIAS_LABEL') . ':</span>' . $this->escape($item->alias) . ')</span>';
 echo $r->td($checkO, "small hidden-phone");
 if (isset($item->extid) && $item->extid != '') {
     if (isset($item->exttype) && $item->exttype == 1) {
         echo $r->td(JText::_('COM_PHOCAGALLERY_FACEBOOK_STORED_FILE'));
         echo $r->td('');
Exemplo n.º 2
0
$originalOrders = array();
$j = 0;
if (is_array($this->items)) {
    foreach ($this->items as $i => $item) {
        //if ($i >= (int)$this->pagination->limitstart && $j < (int)$this->pagination->limit) {
        $j++;
        $orderkey = array_search($item->id, $this->ordering[0]);
        $ordering = $listOrder == 'a.ordering';
        $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->get('id') || $item->checked_out == 0;
        $canChange = $user->authorise('core.edit.state', $option) && $canCheckin;
        $iD = $i % 2;
        echo "\n\n";
        echo '<tr class="row' . $iD . '" sortable-group-id="0" item-id="' . $item->id . '" parents="0" level="0">' . "\n";
        echo $r->tdOrder($canChange, $saveOrder, $orderkey);
        echo $r->td(JHtml::_('grid.id', $i, $item->id), "small hidden-phone");
        echo $r->tdImage($item, $this->button, 'COM_PHOCAGALLERY_ENLARGE_IMAGE', '', $this->tmpl['avatarpathabs'], $this->tmpl['avatarpathrel']);
        $usrO = $item->username;
        if ($item->usernameno) {
            $usrO = $usrO . ' (' . $item->usernameno . ')';
        }
        echo $r->td($usrO, "small hidden-phone");
        if ($item->countcid) {
            $countCid = $item->countcid;
        } else {
            $countCid = '0';
        }
        echo $r->td($countCid, "small hidden-phone");
        if ($item->countiid) {
            $countIid = $item->countiid;
        } else {
            $countIid = '0';