'.$this->t['iepx']; if ($this->t['displayupload'] == 1) { if ($this->t['categorypublished'] == 0) { echo '

'.Text::_('COM_PHOCAGALLERY_YOUR_MAIN_CATEGORY_IS_UNPUBLISHED').'

'; } else if ($this->t['task'] == 'editimg' && $this->t['imageedit']) { ?>

:
:
 
 

listsimage['catid'] ?> listsimage['state']; ?>
t['imageitems'] ); $rows = &$this->t['imageitems']; if (is_array($rows)) { foreach ($rows as $row) { $linkEdit = Route::_( $this->t['pp'].'&task=editimg&id='. $row->slug.$this->t['psi'] ); ?>"> '; if ($row->published == 1) { echo ' '; //echo JHtml::_('image', $this->t['pi'].'icon-publish.png', JText::_('COM_PHOCAGALLERY_UNPUBLISH')) //echo PhocaGalleryRenderFront::renderIcon('publish', $this->t['pi'].'icon-publish.png', JText::_('COM_PHOCAGALLERY_UNPUBLISH')) echo ''.Text::_('COM_PHOCAGALLERY_UNPUBLISH').'' .''; } if ($row->published == 0) { echo ' '; //echo JHtml::_('image', $this->t['pi'].'icon-unpublish.png', JText::_('COM_PHOCAGALLERY_PUBLISH')) //echo PhocaGalleryRenderFront::renderIcon('unpublish', $this->t['pi'].'icon-unpublish.png', JText::_('COM_PHOCAGALLERY_PUBLISH')) echo ''.Text::_('COM_PHOCAGALLERY_PUBLISH').'' .''; } echo ''; // Remove echo ''; // Approved echo ''; $linkUp = Route::_($this->t['pp'].'&id='.$row->slug.'&task=orderupimage'.$this->t['psi']); $linkDown = Route::_($this->t['pp'].'&id='.$row->slug.'&task=orderdownimage'.$this->t['psi']); echo ''; echo ''; echo '' .''; $k = 1 - $k; $i++; } } ?>
listsimage['order_Dir'], $this->listsimage['order'], 'image', 'asc', '', 'phocagalleryimageform', '_image'); ?> listsimage['order_Dir'], $this->listsimage['order'], 'image', 'asc', '', 'phocagalleryimageform' , '_image'); ?> listsimage['order_Dir'], $this->listsimage['order'], 'image', 'asc', '', 'phocagalleryimageform', '_image' ); ?> listsimage['order_Dir'], $this->listsimage['order'],'image', 'asc', '', 'phocagalleryimageform', '_image' ); //$image = ''.JText::_( 'COM_PHOCAGALLERY_SAVE_ORDER' ).''; //$image = PhocaGalleryRenderFront::renderIcon('save', $this->t['pi'].'icon-filesave.png', JText::_('COM_PHOCAGALLERY_SAVE_ORDER')); $image = ''.Text::_('COM_PHOCAGALLERY_SAVE_ORDER').''; $task = 'saveordersubcat'; $href = ' '.$image.''; echo $href; ?> listsimage['order_Dir'], $this->listsimage['order'], 'image', 'asc', '', 'phocagalleryimageform', '_image' ); ?> listsimage['order_Dir'], $this->listsimage['order'] , 'image', 'asc', '', 'phocagalleryimageform', '_image'); ?>
t['imagepagination']->getRowOffset( $i );?> linkthumbnailpath = PhocaGalleryImageFront::displayCategoryImageOrNoImage($row->filename, 'small'); $imageRes = PhocaGalleryImage::getRealImageSize($row->filename, 'small'); $correctImageRes = PhocaGalleryImage::correctSizeWithRate($imageRes['w'], $imageRes['h'], 50, 50); //echo JHtml::_( 'image', $row->linkthumbnailpath.'?imagesid='.md5(uniqid(time())),'', array('width' => $correctImageRes['width'], 'height' => $correctImageRes['height'])); echo ''; ?> title; ?> '; // USER RIGHT - Delete (Publish/Unpublish) - - - - - - - - - - - // 2, 2 means that user access will be ignored in function getUserRight for display Delete button // because we cannot check the access and delete in one time $rightDisplayDelete = 0; $user = Factory::getUser(); $model = $this->getModel('user'); $isOwnerCategory = $model->isOwnerCategoryImage((int)$user->id, (int)$row->id); $catAccess = PhocaGalleryAccess::getCategoryAccess((int)$isOwnerCategory); if (!empty($catAccess)) { $rightDisplayDelete = PhocaGalleryAccess::getUserRight('deleteuserid', $catAccess->deleteuserid, 2, $user->getAuthorisedViewLevels(), $user->get('id', 0), 0); } // - - - - - - - - - - - - - - - - - - - - - - if ($rightDisplayDelete) { echo ' '; //echo JHtml::_('image', $this->t['pi'].'icon-trash.png', JText::_('COM_PHOCAGALLERY_DELETE')) //echo PhocaGalleryRenderFront::renderIcon('trash', $this->t['pi'].'icon-trash.png', JText::_('COM_PHOCAGALLERY_DELETE') ) echo ''.Text::_('COM_PHOCAGALLERY_DELETE').'' .''; } else { //echo JHtml::_('image', $this->t['pi'].'icon-trash-g.png', JText::_('COM_PHOCAGALLERY_DELETE')); //echo PhocaGalleryRenderFront::renderIcon('trash', $this->t['pi'].'icon-trash-g.png', JText::_('COM_PHOCAGALLERY_DELETE'),'ph-icon-disabled'); echo ''.Text::_('COM_PHOCAGALLERY_DELETE').''; } echo ''; if ($row->approved == 1) { //echo JHtml::_('image', $this->t['pi'].'icon-publish.png', JText::_('COM_PHOCAGALLERY_APPROVED')); //echo PhocaGalleryRenderFront::renderIcon('publish', $this->t['pi'].'icon-publish.png', JText::_('COM_PHOCAGALLERY_APPROVED')); echo ''.Text::_('COM_PHOCAGALLERY_APPROVED').''; } else { //echo JHtml::_('image', $this->t['pi'].'icon-unpublish.png', JText::_('COM_PHOCAGALLERY_NOT_APPROVED')); //echo PhocaGalleryRenderFront::renderIcon('unpublish', $this->t['pi'].'icon-unpublish.png', JText::_('COM_PHOCAGALLERY_NOT_APPROVED')); echo ''.Text::_('COM_PHOCAGALLERY_NOT_APPROVED').''; } echo '' .''. $this->t['imagepagination']->orderUpIcon( $i, ($row->catid == @$this->t['imageitems'][$i-1]->catid), $linkUp, 'COM_PHOCAGALLERY_MOVE_UP', $this->t['imageordering']).' ' .''. $this->t['imagepagination']->orderDownIcon( $i, $n, ($row->catid == @$this->t['imageitems'][$i+1]->catid), $linkDown, 'COM_PHOCAGALLERY_MOVE_UP', $this->t['imageordering'] ).' '; $disabled = $this->t['imageordering'] ? '' : 'disabled="disabled"'; echo ''; echo ''. $row->category .''. $row->id .'

 

t['displayupload'] == 1) { echo '

'. Text::_('COM_PHOCAGALLERY_SINGLE_FILE_UPLOAD').'

'; echo $this->loadTemplate('upload'); } if ((int)$this->t['ytbupload'] > 0) { echo '

'. Text::_('COM_PHOCAGALLERY_YTB_UPLOAD').'

'; echo $this->loadTemplate('ytbupload'); } if((int)$this->t['enablemultiple'] == 1) { echo '

'. Text::_('COM_PHOCAGALLERY_MULTPLE_FILE_UPLOAD').'

'; echo $this->loadTemplate('multipleupload'); } /*if($this->t['enablejava'] == 1) { echo '

'. Text::_('COM_PHOCAGALLERY_JAVA_UPLOAD').'

'; echo $this->loadTemplate('javaupload'); }*/ } } else { echo '
'.Text::_('COM_PHOCAGALLERY_NO_CATEGORY_TO_UPLOAD_IMAGES').'
'; echo '
'.Text::_('COM_PHOCAGALLERY_NO_CATEGORY_TO_UPLOAD_IMAGES_ADMIN').'
'; } echo ''; ?>