Esempio n. 1
0
			
			$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 != '') {
					$pdFile .= '<div class="pd-float">'.$tags.'</div>';
				}
			}
			
Esempio n. 2
0
            }
            // IMAGE FILENAME
            //$imageFileName = '';
            //if ($value->image_filename !='') {
            $imageFileName = $l->getImageFileName($value->image_filename, $value->filename, 2);
            /*$thumbnail = false;
            		$thumbnail = preg_match("/phocathumbnail/i", $value->image_filename);
            		if ($thumbnail) {
            			$imageFileName 	= '';
            		} else {
            			$imageFileName = 'style="background: url(\''.$this->t['cssimgpath'].$value->image_filename.'\') 0 center no-repeat;"';
            		}*/
            //}
            //$outputFile .= '<div class="pd-document'.$this->t['file_icon_size_md'].'" '.$imageFileName.'>';
            $outputFile .= '<li class="bullet-item" ' . $imageFileName['filenamestyle'] . '>';
            $outputFile .= '<a href="' . JRoute::_(PhocaDownloadRoute::getCategoryRoute($value->categoryid, $value->categoryalias)) . '">' . $value->title . '</a>' . ' <span class="badge badge-info tip"> | <i class="fa fa-folder"></i> ' . $value->categorytitle . '</span>';
            $outputFile .= PhocaDownloadRenderFront::displayNewIcon($value->date, $this->t['displaynew']);
            $outputFile .= PhocaDownloadRenderFront::displayHotIcon($value->hits, $this->t['displayhot']);
            $outputFile .= '</li>' . "\n";
        }
    }
    if ($outputFile != '') {
        echo '<div class="pd-hr" style="clear:both">&nbsp;</div>';
        echo '<ul class="pricing-table">';
        echo '<li class="title">' . JText::_('COM_PHOCADOWNLOAD_MOST_DOWNLOADED_FILES') . '</li>';
        echo $outputFile;
        echo '</ul>';
    }
}
echo '<div class="pd-cb">&nbsp;</div>';
echo $this->t['pw'];