primo commit
This commit is contained in:
@ -0,0 +1,31 @@
|
||||
<?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\Factory;
|
||||
class PhocaMapsUtils
|
||||
{
|
||||
public static function setVars( $task = '') {
|
||||
|
||||
$a = array();
|
||||
$app = Factory::getApplication();
|
||||
$a['o'] = htmlspecialchars(strip_tags($app->input->get('option')));
|
||||
$a['c'] = str_replace('com_', '', $a['o']);
|
||||
$a['n'] = 'Phoca' . ucfirst(str_replace('com_phoca', '', $a['o']));
|
||||
$a['l'] = strtoupper($a['o']);
|
||||
$a['i'] = 'media/'.$a['o'].'/images/administrator/';
|
||||
$a['ja'] = 'media/'.$a['o'].'/js/administrator/';
|
||||
$a['jf'] = 'media/'.$a['o'].'/js/';
|
||||
$a['s'] = 'media/'.$a['o'].'/css/administrator/'.$a['c'].'.css';
|
||||
$a['css'] = 'media/'.$a['o'].'/css/';
|
||||
$a['task'] = $a['c'] . htmlspecialchars(strip_tags($task));
|
||||
$a['tasks'] = $a['task']. 's';
|
||||
return $a;
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user