primo commit
This commit is contained in:
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1,32 @@
|
||||
<?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-links">'
|
||||
.'<fieldset class="adminform">'
|
||||
.'<legend>'.Text::_( 'COM_PHOCAGALLERY_SELECT_TYPE' ).'</legend>'
|
||||
.'<ul>'
|
||||
.'<li class="ph-icon-16-edb-categories"><a href="'.$this->t['categories'].'">'.Text::_('COM_PHOCAGALLERY_CATEGORIES').'</a></li>'
|
||||
//.'<li class="icon-16-edb-category"><a href="'.$this->t['COM_PHOCAGALLERY_CATEGORY'].'">'.JText::_('COM_PHOCAGALLERY_CATEGORY').'</a></li>'
|
||||
.'<li class="ph-icon-16-edb-images"><a href="'.$this->t['images'].'">'.Text::_('COM_PHOCAGALLERY_IMAGES').'</a></li>'
|
||||
.'<li class="ph-icon-16-edb-images"><a href="'.$this->t['imagesmasonry'].'">'.Text::_('COM_PHOCAGALLERY_IMAGES_MASONRY').'</a></li>'
|
||||
|
||||
/*.'<li class="ph-icon-16-edb-image"><a href="'.$this->t['image'].'">'.Text::_('COM_PHOCAGALLERY_IMAGE').'</a></li>'
|
||||
|
||||
'<li class="ph-icon-16-edb-switchimage"><a href="'.$this->t['switchimage'].'">'.Text::_('COM_PHOCAGALLERY_SWITCH_IMAGE').'</a></li>'
|
||||
.'<li class="ph-icon-16-edb-slideshow"><a href="'.$this->t['slideshow'].'">'.Text::_('COM_PHOCAGALLERY_SLIDESHOW').'</a></li>'
|
||||
*/
|
||||
.'</ul>'
|
||||
.'</div>'
|
||||
.'</fieldset>'
|
||||
.'</div>';
|
||||
?>
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1,56 @@
|
||||
<?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();
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
jimport( 'joomla.application.component.view' );
|
||||
phocagalleryimport('phocagallery.render.renderadminviews');
|
||||
class phocaGalleryViewphocaGalleryLinks extends HtmlView
|
||||
{
|
||||
protected $r;
|
||||
protected $t;
|
||||
function display($tpl = null) {
|
||||
|
||||
$this->r = new PhocaGalleryRenderAdminViews();
|
||||
$this->t = PhocaGalleryUtils::setVars('link');
|
||||
$app = Factory::getApplication();
|
||||
|
||||
//Frontend Changes
|
||||
$tUri = '';
|
||||
if (!$app->isClient('administrator')) {
|
||||
$tUri = Uri::base();
|
||||
}
|
||||
|
||||
$editor = $app->input->getCmd('editor', '');
|
||||
if (!empty($editor)) {
|
||||
$this->document->addScriptOptions('xtd-phocagallery', array('editor' => $editor));
|
||||
}
|
||||
|
||||
$eName = Factory::getApplication()->input->get('editor');
|
||||
$eName = preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', $eName );
|
||||
|
||||
HTMLHelper::_('jquery.framework', false);
|
||||
HTMLHelper::stylesheet( 'media/com_phocagallery/css/administrator/phocagallery.css' );
|
||||
HTMLHelper::stylesheet( 'media/plg_editors-xtd_phocagallery/css/phocagallery.css' );
|
||||
|
||||
$this->t['categories'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkcats&tmpl=component&editor='.$eName;
|
||||
//$this->t['COM_PHOCAGALLERY_CATEGORY'] = 'index.php?option=com_phocagallery&view=phocagallerylinkcat&tmpl=component&editor='.$eName;
|
||||
$this->t['images'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkimg&type=2&tmpl=component&editor='.$eName;
|
||||
$this->t['image'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkimg&type=1&tmpl=component&editor='.$eName;
|
||||
$this->t['imagesmasonry'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkimg&type=5&tmpl=component&editor='.$eName;
|
||||
//$this->t['switchimage'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkimg&type=3&tmpl=component&editor='.$eName;
|
||||
//$this->t['slideshow'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkimg&type=4&tmpl=component&editor='.$eName;
|
||||
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user