} if ($v->filename != '') { $imageFileName = $l->getImageFileName($v->image_filename, $v->filename); $pdFile = '<div class="pd-filenamebox">'; if ($this->t['filename_or_name'] == 'filenametitle') { $pdFile .= '<div class="pd-title">'. $v->title . '</div>'; } $pdFile .= '<div class="pd-filename">'. $imageFileName['filenamethumb'] . '<div class="pd-document'.$this->t['file_icon_size'].'" ' . $imageFileName['filenamestyle'].'>'; $pdFile .= '<div class="pd-float">'; $pdFile .= $l->getName($v->title, $v->filename); $pdFile .= '</div>'; $pdFile .= PhocaDownloadRenderFront::displayNewIcon($v->date, $this->t['displaynew']); $pdFile .= PhocaDownloadRenderFront::displayHotIcon($v->hits, $this->t['displayhot']); // String Tags - title suffix $tagsS = $l->displayTagsString($v->tags_string); if ($tagsS != '') { $pdFile .= '<div class="pd-float">'.$tagsS.'</div>'; } // Tags - title suffix - FILE VIEW = DOWNLOAD FILE if ($this->t['display_tags_links'] == 5 || $this->t['display_tags_links'] == 6) { $tags = $l->displayTags($v->id, 1); if ($tags != '') {
$linkDownloadB = '<a class="" href="' . JRoute::_(PhocaDownloadRoute::getFileRoute($v->id, $this->category[0]->id, $v->alias, $this->category[0]->alias, $v->sectionid, 'download') . $this->t['limitstarturl']) . '" >'; $linkDownloadE = '</a>'; } } // pdtextonly $pdTextOnly = '<div class="pd-textonly">' . $v->description . '</div>' . "\n"; // pdfile if ($v->filename != '') { $imageFileName = $l->getImageFileName($v->image_filename, $v->filename); $pdFile = '<div class="pd-filenamebox">'; if ($this->t['filename_or_name'] == 'filenametitle') { $pdFile .= '<div class="pd-title">' . $v->title . '</div>'; } $pdFile .= '<div class="pd-filename">' . $imageFileName['filenamethumb'] . '<div class="pd-document' . $this->t['file_icon_size'] . '" ' . $imageFileName['filenamestyle'] . '>'; $pdFile .= '<div class="pd-float">'; $pdFile .= $linkDownloadB . $l->getName($v->title, $v->filename) . $linkDownloadE; $pdFile .= '</div>'; $pdFile .= PhocaDownloadRenderFront::displayNewIcon($v->date, $this->t['displaynew']); $pdFile .= PhocaDownloadRenderFront::displayHotIcon($v->hits, $this->t['displayhot']); //Specific icons if (isset($v->image_filename_spec1) && $v->image_filename_spec1 != '') { $pdFile .= '<div class="pd-float">' . $l->getImageDownload($v->image_filename_spec1) . '</div>'; } if (isset($v->image_filename_spec2) && $v->image_filename_spec2 != '') { $pdFile .= '<div class="pd-float">' . $l->getImageDownload($v->image_filename_spec2) . '</div>'; } $pdFile .= '</div></div></div>' . "\n"; } // pdbuttonplay $pdButtonPlay = ''; if (isset($v->filename_play) && $v->filename_play != '') {
if (!empty($this->file[0])) { $v = $this->file[0]; // USER RIGHT - Access of categories (if file is included in some not accessed category) - - - - - // ACCESS is handled in SQL query, ACCESS USER ID is handled here (specific users) $rightDisplay = 0; if (!empty($this->category[0])) { $rightDisplay = PhocaDownloadAccess::getUserRight('accessuserid', $v->cataccessuserid, $v->cataccess, $this->t['user']->getAuthorisedViewLevels(), $this->t['user']->get('id', 0), 0); } // - - - - - - - - - - - - - - - - - - - - - - if ($rightDisplay == 1) { $l = new PhocaDownloadLayout(); echo '<h3 class="pdfv-name">'.$l->getName($v->title, $v->filename, 1). '</h3>'; // ===================================================================================== // BEGIN LAYOUT AREA // ===================================================================================== // Is this direct menu link to File View $directFv = 0; $app = JFactory::getApplication(); $itemId = $app->input->get('Itemid', 0, 'int'); $menu = $app->getMenu(); $item = $menu->getItem($itemId); if (isset($item->query['view']) && $item->query['view'] == 'file') { $directFv = 1; }
echo '<div class="pdtop"><a title="' . $linkUpText . '" href="' . $linkUp . '" ><i class="fa fa-undo"></i></a></div>'; } } } if (!empty($this->file[0])) { $v = $this->file[0]; // USER RIGHT - Access of categories (if file is included in some not accessed category) - - - - - // ACCESS is handled in SQL query, ACCESS USER ID is handled here (specific users) $rightDisplay = 0; if (!empty($this->category[0])) { $rightDisplay = PhocaDownloadAccess::getUserRight('accessuserid', $v->cataccessuserid, $v->cataccess, $this->t['user']->getAuthorisedViewLevels(), $this->t['user']->get('id', 0), 0); } // - - - - - - - - - - - - - - - - - - - - - - if ($rightDisplay == 1) { $l = new PhocaDownloadLayout(); echo '<li class="title">' . $l->getName($v->title, $v->filename, 1) . '</li>'; // ===================================================================================== // BEGIN LAYOUT AREA // ===================================================================================== // Is this direct menu link to File View $directFv = 0; $app = JFactory::getApplication(); $itemId = $app->input->get('Itemid', 0, 'int'); $menu = $app->getMenu(); $item = $menu->getItem($itemId); if (isset($item->query['view']) && $item->query['view'] == 'file') { $directFv = 1; } // End direct menu link to File View if ((int) $this->t['display_file_view'] == 1 || (int) $this->t['display_file_view'] == 2 || (int) $v->confirm_license > 0 || (int) $this->t['display_detail'] == 2 || (int) $directFv == 1) { $pdTitle = '';