primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<view hidden="true" />
</metadata>

View File

@ -0,0 +1,32 @@
<?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');
echo '<div id="phocamapsprintroute">';
$id = '';
$map = new PhocaMapsMap();
echo $map->getIconPrintScreen();
//$map->loadAPI();
//$map->loadAPI();
echo $map->startJScData();
echo $map->addAjaxAPI('maps', '3.x', $this->t['params']);
echo $map->createDirection(1);
echo $map->setDirectionFunction();
echo $map->directionInitializeFunctionSpecificMap($this->t['from'], $this->t['to']);
echo $map->directionInitializeFunction();
echo $map->endJScData();
echo $map->loadAPI('', $this->t['lang']);// must be loaded as last
echo '<div id="directionsPanel'.$id.'" ></div>';
echo PhocaMapsHelper::getExtInfo();
echo '</div>';

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -0,0 +1,47 @@
<?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\HTML\HTMLHelper;
use Joomla\CMS\Filesystem\File;
jimport( 'joomla.application.component.view');
class PhocaMapsViewRoute extends HtmlView
{
protected $t;
function display($tpl = null) {
//$document = Factory::getDocument();
$app = Factory::getApplication();
$this->t['p'] = $app->getParams();
HTMLHelper::stylesheet('media/com_phocamaps/css/phocamaps.css' );
if (File::exists(JPATH_SITE.'/media/com_phocamaps/css/custom.css')) {
HTMLHelper::stylesheet('media/com_phocamaps/css/custom.css' );
}
//$this->t['printview'] = $app->input->get('print', 0, 'get', 'int');
$this->t['id'] = $app->input->get('id', '', 'int');
$this->t['from'] = $app->input->get('from', '', 'string');
$this->t['to'] = $app->input->get('to', '', 'string');
$this->t['lang'] = $app->input->get('lang', '', 'string');
$this->t['load_api_ssl']= (int)$this->t['p']->get( 'load_api_ssl', 0 );
// Map params - language not used
if ($this->t['lang'] == '') {
$this->t['params'] = '';
} else {
//$this->t['params'] = '{"language":"'.$item['map']->lang.'", "other_params":"sensor=false"}';
$this->t['params'] = '{other_params:"language='.$this->t['lang'].'"}';
}
parent::display($tpl);
}
}
?>