-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_banners4varnish.php
31 lines (25 loc) · 1.01 KB
/
mod_banners4varnish.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
<?php
/**
* @package Alligo.Modules
* @subpackage mod_banners4varnish
*
* @copyright Copyright (C) 2005 - 2015 Alligo Ltda. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Include the syndicate functions only once
require_once __DIR__ . '/helper.php';
$headerText = trim($params->get('header_text'));
$footerText = trim($params->get('footer_text'));
$gaetclick = trim($params->get('gaetclick'));
$gaetviews = trim($params->get('gaetviews'));
if (!class_exists('BannerHelper')) {
require_once JPATH_ADMINISTRATOR . '/components/com_banners/helpers/banners.php';
if (class_exists('BannerHelper')) {
// Only execute if already not loaded by native mod_banners
BannerHelper::updateReset();
}
}
$list = &ModBanners4varnishHelper::getList($params);
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
require JModuleHelper::getLayoutPath('mod_banners4varnish', $params->get('layout', 'default'));