primo commit
This commit is contained in:
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1,28 @@
|
||||
<?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\Language\Text;
|
||||
|
||||
|
||||
echo '<div id="phocadownload-links">'
|
||||
.'<fieldset class="adminform">'
|
||||
.'<legend>'.Text::_( 'COM_PHOCADOWNLOAD_SELECT_TYPE' ).'</legend>'
|
||||
.'<ul>'
|
||||
.'<li class="ph-icon-16-edb-categories"><a href="'.$this->t['linkcategories'].'">'.Text::_('COM_PHOCADOWNLOAD_LINK_TO_CATEGORIES').'</a></li>'
|
||||
.'<li class="ph-icon-16-edb-category"><a href="'.$this->t['linkcategory'].'">'.Text::_('COM_PHOCADOWNLOAD_LINK_TO_CATEGORY').'</a></li>'
|
||||
.'<li class="ph-icon-16-edb-file"><a href="'.$this->t['linkfile'].'&type=0">'.Text::_('COM_PHOCADOWNLOAD_LINK_TO_FILE').'</a></li>'
|
||||
.'<li class="ph-icon-16-edb-play"><a href="'.$this->t['linkfile'].'&type=1">'.Text::_('COM_PHOCADOWNLOAD_PLAY_FILE_LINK').'</a> <a href="'.$this->t['linkfile'].'&type=2">'.Text::_('COM_PHOCADOWNLOAD_PLAY_FILE_DIRECT').'</a></li>'
|
||||
.'<li class="ph-icon-16-edb-preview"><a href="'.$this->t['linkfile'].'&type=3">'.Text::_('COM_PHOCADOWNLOAD_PREVIEW_FILE_LINK').'</a></li>'
|
||||
.'<li class="ph-icon-16-edb-file"><a href="'.$this->t['linkfile'].'&type=4">'.Text::_('COM_PHOCADOWNLOAD_FILELIST').'</a></li>'
|
||||
.'<li class="ph-icon-16-edb-play"><a href="'.$this->t['linkytb'].'">'.Text::_('COM_PHOCADOWNLOAD_YOUTUBE_VIDEO').'</a></li>'
|
||||
.'</ul>'
|
||||
.'</div>'
|
||||
.'</fieldset>'
|
||||
.'</div>';
|
||||
?>
|
||||
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
@ -0,0 +1,57 @@
|
||||
<?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' );
|
||||
|
||||
class phocaDownloadCpViewphocaDownloadLinks extends HtmlView
|
||||
{
|
||||
|
||||
protected $t;
|
||||
protected $r;
|
||||
|
||||
function display($tpl = null) {
|
||||
$app = Factory::getApplication();
|
||||
$this->r = new PhocaDownloadRenderAdminViews();
|
||||
$this->t = PhocaDownloadUtils::setVars('links');
|
||||
|
||||
//Frontend Changes
|
||||
$tUri = '';
|
||||
if (!$app->isClient('administrator')) {
|
||||
$tUri = Uri::base();
|
||||
|
||||
}
|
||||
|
||||
$editor = $app->input->getCmd('editor', '');
|
||||
if (!empty($editor)) {
|
||||
$this->document->addScriptOptions('xtd-phocadownload', array('editor' => $editor));
|
||||
}
|
||||
|
||||
$document = Factory::getDocument();
|
||||
$uri = Uri::getInstance();
|
||||
HTMLHelper::stylesheet( 'media/com_phocadownload/css/administrator/phocadownload.css' );
|
||||
HTMLHelper::stylesheet( 'media/plg_editors-xtd_phocadownload/css/phocadownload.css' );
|
||||
|
||||
$eName = Factory::getApplication()->input->get('editor');
|
||||
$eName = preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', $eName );
|
||||
|
||||
|
||||
$this->t['linkcategories'] = $tUri.'index.php?option=com_phocadownload&view=phocadownloadlinkcats&tmpl=component&editor='.$eName;
|
||||
$this->t['linkcategory'] = $tUri.'index.php?option=com_phocadownload&view=phocadownloadlinkcat&tmpl=component&editor='.$eName;
|
||||
$this->t['linkfile'] = $tUri.'index.php?option=com_phocadownload&view=phocadownloadlinkfile&tmpl=component&editor='.$eName;
|
||||
$this->t['linkytb'] = $tUri.'index.php?option=com_phocadownload&view=phocadownloadlinkytb&tmpl=component&editor='.$eName;
|
||||
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user