Example #1
0
<?php
defined('_JEXEC') or die('Restricted access'); 

echo '<div id="phoca-dl-download-box" class="pd-download-view'.$this->t['p']->get( 'pageclass_sfx' ).'" >';
echo '<div class="pd-download">';

if ($this->t['found'] == 1) {
	if(isset($this->file[0]->id) && (int)$this->file[0]->id > 0 && isset($this->file[0]->token) && $this->file[0]->token != '') {
		
		$v = $this->file[0];
		$downloadLink = PhocaDownloadRoute::getDownloadRoute((int)$v->id, (int)$v->catid, $v->token);
		$l = new PhocaDownloadLayout();
	
		//echo '<h3 class="pdfv-name">'.$l->getName($v->title, $v->filename, 1). '</h3>';
		
		$pdTitle = '';
		if ($v->title != '') {
			$pdTitle .= '<div class="pd-title">'.$v->title.'</div>';
		}
				
		$pdImage = '';
		if ($v->image_download != '') {
			$pdImage .= '<div class="pd-image">'.$l->getImageDownload($v->image_download).'</div>';		
		}
				
		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>';
Example #2
0
$formArray = array('mirror1link', 'mirror1title', 'mirror1target', 'mirror2link', 'mirror2title', 'mirror2target');
echo $r->group($this->form, $formArray);
echo '</div>' . "\n";
echo '<div class="tab-pane" id="video">' . "\n";
$formArray = array('video_filename');
echo $r->group($this->form, $formArray);
echo '</div>' . "\n";
echo '</div>';
//end tab content
echo '</div>';
//end span10
// Second Column
echo '<div class="span2">';
if (isset($this->item->id) && isset($this->item->catid) && isset($this->item->token) && (int) $this->item->id > 0 && (int) $this->item->catid > 0 && $this->item->token != '') {
    phocadownloadimport('phocadownload.path.route');
    $downloadLink = PhocaDownloadRoute::getDownloadRoute((int) $this->item->id, (int) $this->item->catid, $this->item->token, 0);
    $app = JApplication::getInstance('site');
    $router = $app->getRouter();
    $uri = $router->build($downloadLink);
    $frontendUrl = JURI::root(false) . str_replace(JURI::root(true) . '/administrator/', '', $uri->toString());
    echo '<div>' . JText::_('COM_PHOCADOWNLOAD_UNIQUE_DOWNLOAD_URL') . '</div>';
    echo '<textarea rows="7">' . $frontendUrl . '</textarea>';
    echo '<div><small>(' . JText::_('COM_PHOCADOWNLOAD_URL_FORMAT_DEPENDS_ON_SEF') . ')</small></div>';
}
echo '</div>';
//end span2
echo $r->formInputs();
echo $r->endForm();
/*
?>