-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmod_baccessibility.php
More file actions
33 lines (26 loc) · 1.04 KB
/
mod_baccessibility.php
File metadata and controls
33 lines (26 loc) · 1.04 KB
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
<?php
/**
* B-Accessibility Module Entry Point
*
* @package Joomla
* @subpackage Modules
* @license GNU/GPL, see LICENSE.php
* mod_baccessibility is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
// No direct access
defined('_JEXEC') or die;
// Include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
$doc = JFactory::getDocument();
$modBaseUrl = Juri::base() . 'modules/mod_baccessibility';
$doc->addStyleSheet( $modBaseUrl . '/asset/css/style.css' );
if( $params->get('load_awesome') ) {
$doc->addStyleSheet( $params['awesome_path'] );
}
//$doc->addScript( $modBaseUrl . '/asset/js/toolbar.js' );
$doc->addScript( $modBaseUrl . '/asset/js/baccessibility.jquery.js' );
$doc->addScript( $modBaseUrl . '/asset/js/grayscale.js' );
require JModuleHelper::getLayoutPath('mod_baccessibility');