35 lines
1.5 KiB
PHP
35 lines
1.5 KiB
PHP
<?php
|
|
/*
|
|
* @package Joomla
|
|
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
|
*
|
|
* @component Phoca Gallery
|
|
* @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\Language\Text;
|
|
echo '<div id="phocagallery-upload">';
|
|
echo '<div style="font-size:1px;height:1px;margin:0px;padding:0px;"> </div>';
|
|
echo '<form onsubmit="return OnUploadSubmitPG(\'loading-label\');" action="'. $this->t['su_url'] .'" id="phocaGalleryUploadFormU" method="post" enctype="multipart/form-data">';
|
|
//if ($this->t['ftp']) { echo PhocaGalleryFileUpload::renderFTPaccess();}
|
|
echo '<h4>';
|
|
echo Text::_( 'COM_PHOCAGALLERY_UPLOAD_FILE' ).' [ ';
|
|
if ($this->t['uploadmaxsizeread'] != '0 B') {
|
|
|
|
echo Text::_( 'COM_PHOCAGALLERY_MAX_SIZE' ).': '.$this->t['uploadmaxsizeread'].','
|
|
.' ';
|
|
}
|
|
echo Text::_('COM_PHOCAGALLERY_MAX_RESOLUTION').': '. $this->t['uploadmaxreswidth'].' x '.$this->t['uploadmaxresheight'].' px ]';
|
|
echo ' </h4>';
|
|
if ($this->t['catidimage'] == 0 || $this->t['catidimage'] == '') {
|
|
echo '<div class="alert alert-error alert-danger">'.Text::_('COM_PHOCAGALLERY_PLEASE_SELECT_CATEGORY_TO_BE_ABLE_TO_UPLOAD_IMAGES').'</div>';
|
|
}
|
|
echo $this->t['su_output'];
|
|
$this->t['upload_form_id'] = 'phocaGalleryUploadFormU';
|
|
echo $this->loadTemplate('uploadform');
|
|
|
|
echo '</form>';
|
|
echo '</div>';
|