-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmod_flexigooglemap.php
41 lines (37 loc) · 1.63 KB
/
mod_flexigooglemap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* @version 0.6.0 stable $Id: mod_flexigooglemap.php yannick berges
* @package Joomla
* @subpackage FLEXIcontent
* @copyright (C) 2015 Berges Yannick - www.com3elles.com
* @license GNU/GPL v2
* special thanks to ggppdk and emmanuel dannan for flexicontent
* special thanks to my master Marc Studer
* FLEXIadmin module is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
**/
//blocage des accés directs sur ce script
defined('_JEXEC') or die('Accés interdit');
jimport( 'joomla.application.component.controller' );
// Check if component is installed
if ( !JComponentHelper::isEnabled( 'com_flexicontent', true) ) {
echo 'This modules requires component FLEXIcontent!';
return;
}
// Inclut les méthodes du script de soutien
require_once dirname(__FILE__).'/helper.php';
$itemsLoc = modFlexigooglemapHelper::getLoc($params);
$catid = $params->get('catid');
$fieldaddressid = $params->get('fieldaddressid');
$count = $params->get('count');
$markercolor = $params->get('markercolor');
$lettermarker = $params->get('lettermarker');
$lettermarkermode = $params->get('lettermarkermode');
$markerdisplay = modFlexigooglemapHelper::getMarkercolor($params);
$displayfield = modFlexigooglemapHelper::remplaceField($params);
$relitem_html = $params->get('relitem_html', '__display_text__' ) ;
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
// Get Joomla Layout
require JModuleHelper::getLayoutPath('mod_flexigooglemap', $params->get('layout', 'default'));