} $pdFileDate = ''; $fileDate = $l->getFileDate($v->filename, $v->date); if ($fileDate != '') { $pdFileDate .= '<div class="pd-date-txt">' . JText::_('COM_PHOCADOWNLOAD_DATE') . ':</div>'; $pdFileDate .= '<div class="pd-fl-m">' . $fileDate . '</div>'; $d .= $pdFileDate; } $pdDownloads = ''; if ($this->t['display_downloads'] == 1) { $pdDownloads .= '<div class="pd-downloads-txt">' . JText::_('COM_PHOCADOWNLOAD_DOWNLOADS') . ':</div>'; $pdDownloads .= '<div class="pd-fl-m">' . $v->hits . ' x</div>'; $d .= $pdDownloads; } $pdDescription = ''; if ($l->isValueEditor($v->description) & $this->t['display_description'] != 1 & $this->t['display_description'] != 2 & $this->t['display_description'] != 3) { $pdDescription .= '<div class="pd-fdesc">' . $v->description . '</div>'; $d .= $pdDescription; } $pdFeatures = ''; if ($l->isValueEditor($v->features)) { $pdFeatures .= '<div class="pd-features-txt">' . JText::_('COM_PHOCADOWNLOAD_FEATURES') . '</div>'; $pdFeatures .= '<div class="pd-features">' . $v->features . '</div>'; } $pdChangelog = ''; if ($l->isValueEditor($v->changelog)) { $pdChangelog .= '<div class="pd-changelog-txt">' . JText::_('COM_PHOCADOWNLOAD_CHANGELOG') . '</div>'; $pdChangelog .= '<div class="pd-changelog">' . $v->changelog . '</div>'; } $pdNotes = ''; if ($l->isValueEditor($v->notes)) {
$pdFileDate = ''; $fileDate = $l->getFileDate($v->filename, $v->date); if ($fileDate != '') { $pdFileDate .= '<div class="pd-date-txt">'.JText::_('COM_PHOCADOWNLOAD_DATE').':</div>'; $pdFileDate .= '<div class="pd-fl-m">'.$fileDate.'</div>'; } $pdDownloads = ''; if ($this->t['display_downloads'] == 1) { $pdDownloads .= '<div class="pd-downloads-txt">'.JText::_('COM_PHOCADOWNLOAD_DOWNLOADS').':</div>'; $pdDownloads .= '<div class="pd-fl-m">'.$v->hits.' x</div>'; } $pdDescription = ''; if ($l->isValueEditor($v->description)) { $pdDescription .= '<div class="pd-fdesc">'.$v->description.'</div>'; } $pdFeatures = ''; if ($l->isValueEditor($v->features)) { $pdFeatures .= '<div class="pd-features-txt">'.JText::_('COM_PHOCADOWNLOAD_FEATURES').'</div>'; $pdFeatures .= '<div class="pd-features">'.$v->features.'</div>'; } $pdChangelog = ''; if ($l->isValueEditor($v->changelog)) { $pdChangelog .= '<div class="pd-changelog-txt">'.JText::_('COM_PHOCADOWNLOAD_CHANGELOG').'</div>'; $pdChangelog .= '<div class="pd-changelog">'.$v->changelog.'</div>'; }
$rightDisplay = PhocaDownloadAccess::getUserRight('accessuserid', $this->category[0]->cataccessuserid, $this->category[0]->cataccess, $this->t['user']->getAuthorisedViewLevels(), $this->t['user']->get('id', 0), 0); } // - - - - - - - - - - - - - - - - - - - - - - if ($rightDisplay == 1) { $this->checkRights = 0; $l = new PhocaDownloadLayout(); echo '<h3 class="pd-ctitle">'.$this->category[0]->title. '</h3>'; // Description /*if ($l->isValueEditor($this->category[0]->description)) { echo '<div class="pd-cdesc">'.$this->category[0]->description.'</div>'; }*/ // Description if ($l->isValueEditor($this->category[0]->description)) { echo '<div class="pd-cdesc">'; echo JHTML::_('content.prepare', $this->category[0]->description); echo '</div>'; } // Subcategories if (!empty($this->subcategories)) { foreach ($this->subcategories as $valueSubCat) { echo '<div class="pd-subcategory">'; echo '<a href="'. JRoute::_(PhocaDownloadRoute::getCategoryRoute($valueSubCat->id, $valueSubCat->alias)) .'">'. $valueSubCat->title.'</a>'; echo ' <small>('.$valueSubCat->numdoc.')</small></div>' . "\n"; $subcategory = 1;