-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhelper.php
More file actions
26 lines (23 loc) · 835 Bytes
/
Copy pathhelper.php
File metadata and controls
26 lines (23 loc) · 835 Bytes
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
<?php
/**
*
*
* @package mod_dribbleshots
* copyright Siege21.com/Antony Doyle
* @license GPL3
*/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
$userName = $params->get('username');
$shotCount = $params->get('shotcount');
$jQuery = $params->get('jQuery');
$dribCss = $params->get('dribcss');
$txtAbove = $params->get('textabove');
// Returns a reference to the global document object
$doc = JFactory::getDocument();
if ($jQuery) {
$doc->addCustomTag('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>');
}
$doc->addCustomTag('<script src="modules/mod_dribbleshots/js/jribble.js"></script>');
if ($dribCss) {
$doc->addCustomTag('<link href="modules/mod_dribbleshots/tmpl/css/dribbleshots.css" media="screen" rel="stylesheet" type="text/css" />');
}