forked from hans2103/mod_meetup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_meetup.php
36 lines (28 loc) · 835 Bytes
/
mod_meetup.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
<?php
/**
* @package Module Meetup
* @copyright Copyright (C) 2014 Hans Kuijpers
* @license GNU General Public License version 3 or later
*/
// no direct access
defined('_JEXEC') or die;
// Global variables
$document = JFactory::getDocument();
// Load CSS
if($params->get('load_css', 1) == 1)
{
$document->addStylesheet('media/mod_meetup/css/default.css');
}
// Include the syndicate functions only once
require_once __DIR__.'/helper.php';
// Params
modMeetupHelper::$_key = $params->get('meetupApiKey');
modMeetupHelper::$_group_id = $params->get('meetupGroupId');
if ($params->get('showEvents'))
{
$events = modMeetupHelper::getEvents($params);
}
// Display template
$layout = $params->get('layout', 'default');
require( JModuleHelper::getLayoutPath( 'mod_meetup', $layout ) );
?>