primo commit
This commit is contained in:
@ -0,0 +1,146 @@
|
||||
<?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;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
|
||||
$r = $this->r;
|
||||
echo '<div class="ph-item-list-box ph-item-list-box-admin">';
|
||||
echo $this->loadTemplate('up');
|
||||
if (count($this->images) > 0 || count($this->folders) > 0) {
|
||||
for ($i=0,$n=count($this->folders); $i<$n; $i++) {
|
||||
$this->setFolder($i);
|
||||
echo $this->loadTemplate('folder');
|
||||
}
|
||||
for ($i=0,$n=count($this->images); $i<$n; $i++) {
|
||||
$this->setImage($i);
|
||||
echo $this->loadTemplate('image');
|
||||
}
|
||||
} else {
|
||||
echo '<div class="ph-item-list-box-head">'.Text::_( 'COM_PHOCAGALLERY_THERE_IS_NO_IMAGE' ).'</div>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="ph-item-list-box-hr"></div>';
|
||||
|
||||
|
||||
if ($this->t['displaytabs'] > 0) {
|
||||
|
||||
/*echo '<ul class="nav nav-tabs" id="configTabs">';
|
||||
|
||||
$label = HTMLHelper::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-upload.png','') . ' '.Text::_('COM_PHOCAGALLERY_UPLOAD');
|
||||
echo '<li><a href="#upload" data-toggle="tab">'.$label.'</a></li>';
|
||||
|
||||
if((int)$this->t['enablemultiple'] >= 0) {
|
||||
$label = HTMLHelper::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-upload-multiple.png','') . ' '.Text::_('COM_PHOCAGALLERY_MULTIPLE_UPLOAD');
|
||||
echo '<li><a href="#multipleupload" data-toggle="tab">'.$label.'</a></li>';
|
||||
}
|
||||
|
||||
if($this->t['enablejava'] >= 0) {
|
||||
|
||||
$label = HTMLHelper::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-upload-java.png','') . ' '.Text::_('COM_PHOCAGALLERY_JAVA_UPLOAD');
|
||||
echo '<li><a href="#javaupload" data-toggle="tab">'.$label.'</a></li>';
|
||||
}
|
||||
$label = HTMLHelper::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-folder.png','') . ' '.Text::_('COM_PHOCAGALLERY_CREATE_FOLDER');
|
||||
echo '<li><a href="#createfolder" data-toggle="tab">'.$label.'</a></li>';
|
||||
|
||||
echo '</ul>';*/
|
||||
|
||||
$activeTab = '';
|
||||
if (isset($this->t['tab']) && $this->t['tab'] != '') {
|
||||
$activeTab = $this->t['tab'];
|
||||
} else {
|
||||
$activeTab = 'multipleupload';
|
||||
}
|
||||
|
||||
echo $r->startTabs($activeTab);
|
||||
|
||||
$tabs = array();
|
||||
$tabs['multipleupload'] = '<span class="ph-cp-item"><i class="phi phi-fs-s phi-fc-bl duotone icon-upload"></i></span>' . ' '.Text::_('COM_PHOCAGALLERY_MULTIPLE_UPLOAD');
|
||||
$tabs['upload'] = '<span class="ph-cp-item"><i class="phi phi-fs-s phi-fc-bd duotone icon-upload"></i></span>' . ' '.Text::_('COM_PHOCAGALLERY_UPLOAD');
|
||||
|
||||
if (!empty($this->t['javaupload'])) {
|
||||
$tabs['javaupload'] = '<span class="ph-cp-item"><i class="phi phi-fs-s phi-fc-rl duotone icon-upload"></i></span>' . ' '.Text::_('COM_PHOCAGALLERY_JAVA_UPLOAD');
|
||||
}
|
||||
|
||||
$tabs['createfolder'] = '<span class="ph-cp-item"><i class="phi phi-fs-s phi-fc-brd duotone icon-folder"></i></span>' . ' '.Text::_('COM_PHOCAGALLERY_CREATE_FOLDER');
|
||||
|
||||
|
||||
|
||||
echo $r->navigation($tabs, $activeTab);
|
||||
|
||||
echo $r->startTab('multipleupload', $tabs['multipleupload'], $activeTab == 'multipleupload' ? 'active' : '');
|
||||
echo $this->loadTemplate('multipleupload');
|
||||
echo $r->endTab();
|
||||
|
||||
echo $r->startTab('upload', $tabs['upload'], $activeTab == 'upload' ? 'active' : '');
|
||||
echo $this->loadTemplate('upload');
|
||||
echo $r->endTab();
|
||||
|
||||
if (!empty($this->t['javaupload'])) {
|
||||
echo $r->startTab('javaupload', $tabs['javaupload'], $activeTab == 'javaupload' ? 'active' : '');
|
||||
echo $this->loadTemplate('javaupload');
|
||||
echo $r->endTab();
|
||||
}
|
||||
|
||||
echo $r->startTab('createfolder', $tabs['createfolder'], $activeTab == 'createfolder' ? 'active' : '');
|
||||
echo '<div id="phocagallery-multipleupload" class="ph-in">';
|
||||
echo PhocaGalleryFileUpload::renderCreateFolder($this->session->getName(), $this->session->getId(), $this->currentFolder, 'phocagalleryi', 'tab=createfolder&field='.PhocaGalleryText::filterValue($this->field, 'alphanumeric2'));
|
||||
echo '</div>';
|
||||
echo $r->endTab();
|
||||
|
||||
echo $r->endTabs();
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
/*
|
||||
if ($this->t['displaytabs'] > 0) {
|
||||
echo '<div id="phocagallery-pane">';
|
||||
//$pane =& J Pane::getInstance('Tabs', array('startOffset'=> $this->t['tab']));
|
||||
echo HTMLHelper::_('tabs.start', 'config-tabs-com_phocagallery-i', array('useCookie'=>1, 'startOffset'=> $this->t['tab']));
|
||||
//echo $pane->startPane( 'pane' );
|
||||
|
||||
//echo $pane->startPanel( JHtml::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-upload.png','') . ' '.JText::_('COM_PHOCAGALLERY_UPLOAD'), 'upload' );
|
||||
echo HTMLHelper::_('tabs.panel', HTMLHelper::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-upload.png','') . ' '.Text::_('COM_PHOCAGALLERY_UPLOAD'), 'upload' );
|
||||
echo $this->loadTemplate('upload');
|
||||
//echo $pane->endPanel();
|
||||
|
||||
if((int)$this->t['enablemultiple'] >= 0) {
|
||||
//echo $pane->startPanel( JHtml::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-upload-multiple.png','') . ' '.JText::_('COM_PHOCAGALLERY_MULTIPLE_UPLOAD'), 'multipleupload' );
|
||||
echo HTMLHelper::_('tabs.panel', HTMLHelper::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-upload-multiple.png','') . ' '.Text::_('COM_PHOCAGALLERY_MULTIPLE_UPLOAD'), 'multipleupload' );
|
||||
echo $this->loadTemplate('multipleupload');
|
||||
//echo $pane->endPanel();
|
||||
}
|
||||
|
||||
if($this->t['enablejava'] >= 0) {
|
||||
//echo $pane->startPanel( JHtml::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-upload-java.png','') . ' '.JText::_('COM_PHOCAGALLERY_JAVA_UPLOAD'), 'javaupload' );
|
||||
echo HTMLHelper::_('tabs.panel', HTMLHelper::_( 'image', 'media/com_phocagallery/images/administrator/icon-16-upload-java.png','') . ' '.Text::_('COM_PHOCAGALLERY_JAVA_UPLOAD'), 'javaupload' );
|
||||
echo $this->loadTemplate('javaupload');
|
||||
//echo $pane->endPanel();
|
||||
}
|
||||
|
||||
//echo $pane->endPane();
|
||||
echo HTMLHelper::_('tabs.end');
|
||||
echo '</div>';// end phocagallery-pane
|
||||
}
|
||||
*/
|
||||
|
||||
//TEMP
|
||||
//$this->t['tab'] = 'multipleupload';
|
||||
/*if ($this->t['tab'] != '') {$jsCt = 'a[href=#'.PhocaGalleryText::filterValue($this->t['tab'], 'alphanumeric2') .']';} else {$jsCt = 'a:first';}
|
||||
echo '<script type="text/javascript">';
|
||||
echo ' jQuery(\'#configTabs '.$jsCt.'\').tab(\'show\');'; // Select first tab
|
||||
echo '</script>';*/
|
||||
?>
|
||||
@ -0,0 +1,21 @@
|
||||
<?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'); ?>
|
||||
|
||||
<div class="ph-item-box">
|
||||
<div class="ph-item-image"><a href="index.php?option=com_phocagallery&view=phocagalleryi&tmpl=component&folder=<?php echo $this->_tmp_folder->path_with_name_relative_no . '&field='.$this->field; ?>"><span class="ph-cp-item"><i class="phi duotone phi-fs-l phi-fc-brd icon-folder-close"></i></span></a></div>
|
||||
|
||||
<div class="ph-item-name"><a href="index.php?option=com_phocagallery&view=phocagalleryi&tmpl=component&folder=<?php echo $this->_tmp_folder->path_with_name_relative_no . '&field='.$this->field; ?>"><span><?php echo PhocagalleryText::WordDelete($this->_tmp_folder->name, 15); ?></span></a></div>
|
||||
|
||||
<div class="ph-item-action-box"></div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -0,0 +1,62 @@
|
||||
<?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\Filesystem\File;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
jimport( 'joomla.filesystem.file' );
|
||||
$image['width'] = $image['height'] = 100;
|
||||
|
||||
if (File::exists( $this->_tmp_img->linkthumbnailpathabs )) {
|
||||
list($width, $height) = GetImageSize( $this->_tmp_img->linkthumbnailpathabs );
|
||||
$image = PhocaGalleryImage::correctSizeWithRate($width, $height);
|
||||
}
|
||||
/*
|
||||
?><div class="phocagallery-box-file-i">
|
||||
<center>
|
||||
<div class="phocagallery-box-file-first-i">
|
||||
<div class="phocagallery-box-file-second">
|
||||
<div class="phocagallery-box-file-third">
|
||||
<center>
|
||||
<a href="#" onclick="if (window.parent) window.parent.<?php echo $this->fce; ?>('<?php echo $this->_tmp_img->nameno; ?>');">
|
||||
<?php
|
||||
|
||||
$imageRes = PhocaGalleryImage::getRealImageSize($this->_tmp_img->nameno, 'medium');
|
||||
$correctImageRes = PhocaGalleryImage::correctSizeWithRate($imageRes['w'], $imageRes['h'], 100, 100);
|
||||
echo HTMLHelper::_( 'image', $this->_tmp_img->linkthumbnailpath, '', array('width' => $image['width'], 'height' => $image['height']), '', null); ?></a>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
<div class="name"><?php echo $this->_tmp_img->name; ?></div>
|
||||
<div class="detail" style="text-align:right">
|
||||
<a href="#" onclick="if (window.parent) window.parent.<?php echo $this->fce; ?>('<?php echo $this->_tmp_img->nameno; ?>');"><?php echo HTMLHelper::_( 'image', 'media/com_phocagallery/images/administrator/icon-insert.gif', Text::_('COM_PHOCAGALLERY_INSERT_IMAGE'), array('title' => Text::_('COM_PHOCAGALLERY_INSERT_IMAGE'))); ?></a>
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
*/
|
||||
|
||||
?><div class="ph-item-box">
|
||||
<div class="ph-item-image"><a title="<?php echo $this->_tmp_img->name ?>" href="#" onclick="if (window.parent) window.parent.<?php echo $this->fce; ?>('<?php echo $this->_tmp_img->nameno; ?>');"><?php
|
||||
|
||||
$imageRes = PhocaGalleryImage::getRealImageSize($this->_tmp_img->nameno, 'medium');
|
||||
$correctImageRes = PhocaGalleryImage::correctSizeWithRate($imageRes['w'], $imageRes['h'], 100, 100);
|
||||
echo HTMLHelper::_( 'image', $this->_tmp_img->linkthumbnailpath, '', array('width' => $image['width'], 'height' => $image['height']), '', null);
|
||||
|
||||
?></a></div>
|
||||
|
||||
<div class="ph-item-name" title="<?php echo $this->_tmp_img->name ?>"><?php echo PhocagalleryText::WordDelete($this->_tmp_img->name, 15); ?></div>
|
||||
|
||||
<div class="ph-item-action-box">
|
||||
<a href="#" onclick="if (window.parent) window.parent.<?php echo $this->fce; ?>('<?php echo $this->_tmp_img->nameno; ?>');" title="<?php echo Text::_('COM_PHOCAGALLERY_INSERT_IMAGE') ?>"><span class="ph-cp-item"><i class="phi duotone phi-fs-m phi-fc-gd icon-download"></i></span></a></div>
|
||||
</div>
|
||||
@ -0,0 +1,24 @@
|
||||
<?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\Uri\Uri;
|
||||
use Joomla\CMS\Language\Text;
|
||||
if (!empty($this->t['ju_output'])) {
|
||||
echo '<div id="phocagallery-javaupload" class="ph-in">';
|
||||
echo '<form action="'. Uri::base().'index.php?option=com_phocagallery" >';
|
||||
if ($this->t['ftp']) {echo PhocaGalleryFileUpload::renderFTPaccess();}
|
||||
echo '<div class="control-label ph-head-form">' . Text::_( 'COM_PHOCAGALLERY_UPLOAD_FILE' ).' [ '. Text::_( 'COM_PHOCAGALLERY_MAX_SIZE' ).': '.$this->t['uploadmaxsizeread'].','
|
||||
.' '.Text::_('COM_PHOCAGALLERY_MAX_RESOLUTION').': '. $this->t['uploadmaxreswidth'].' x '.$this->t['uploadmaxresheight'].' px ]</div>';
|
||||
echo $this->t['ju_output'];
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,24 @@
|
||||
<?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\Uri\Uri;
|
||||
use Joomla\CMS\Language\Text;
|
||||
echo '<div id="phocagallery-multipleupload" class="ph-in">';
|
||||
echo $this->t['mu_response_msg'] ;
|
||||
echo '<form action="'. Uri::base().'index.php?option=com_phocagallery" >';
|
||||
if ($this->t['ftp']) {echo PhocaGalleryFileUpload::renderFTPaccess();}
|
||||
echo '<div class="control-label ph-head-form-small">' . Text::_( 'COM_PHOCAGALLERY_UPLOAD_FILE' ).' [ '. Text::_( 'COM_PHOCAGALLERY_MAX_SIZE' ).': '.$this->t['uploadmaxsizeread'].','
|
||||
.' '.Text::_('COM_PHOCAGALLERY_MAX_RESOLUTION').': '. $this->t['uploadmaxreswidth'].' x '.$this->t['uploadmaxresheight'].' px ]</div>';
|
||||
echo '<small>'.Text::_('COM_PHOCAGALLERY_SELECT_IMAGES').'. '.Text::_('COM_PHOCAGALLERY_ADD_IMAGES_TO_UPLOAD_QUEUE_AND_CLICK_START_BUTTON').'</small>';
|
||||
echo $this->t['mu_output'];
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
?>
|
||||
@ -0,0 +1,21 @@
|
||||
<?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'); ?>
|
||||
|
||||
|
||||
|
||||
<div class="ph-item-box">
|
||||
<div class="ph-item-image"><a href="index.php?option=com_phocagallery&view=phocagalleryi&tmpl=component&folder=<?php echo PhocaGalleryText::filterValue($this->folderstate->parent, 'folderpath'); ?>&field=<?php echo htmlspecialchars($this->field); ?>" ><span class="ph-cp-item"><i class="phi duotone phi-fs-l phi-fc-bl icon-arrow-up"></i></span></a></div>
|
||||
|
||||
<div class="ph-item-name"><a href="index.php?option=com_phocagallery&view=phocagalleryf&tmpl=component&folder=<?php echo PhocaGalleryText::filterValue($this->folderstate->parent, 'folderpath'); ?>&field=<?php echo htmlspecialchars($this->field); ?>" >..</a></div>
|
||||
|
||||
<div class="ph-item-action-box"></div>
|
||||
</div>
|
||||
@ -0,0 +1,23 @@
|
||||
<?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" class="ph-in">';
|
||||
echo '<div id="upload-noflash" class="actions">';
|
||||
echo '<form action="'. $this->t['su_url'] .'" id="uploadFormU" method="post" enctype="multipart/form-data">';
|
||||
if ($this->t['ftp']) { echo PhocaGalleryFileUpload::renderFTPaccess();}
|
||||
echo '<div class="control-label ph-head-form">'. Text::_( 'COM_PHOCAGALLERY_UPLOAD_FILE' ).' [ '. Text::_( 'COM_PHOCAGALLERY_MAX_SIZE' ).': '.$this->t['uploadmaxsizeread'].','
|
||||
.' '.Text::_('COM_PHOCAGALLERY_MAX_RESOLUTION').': '. $this->t['uploadmaxreswidth'].' x '.$this->t['uploadmaxresheight'].' px ]</div>';
|
||||
echo $this->t['su_output'];
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
?>
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
Reference in New Issue
Block a user