-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_snetram_tweet.php
35 lines (24 loc) · 990 Bytes
/
mod_snetram_tweet.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
<?php
/**
* @author Jonathan Martens
* @package Tweet! for Joomla
* @copyright Copyright (C) 2011 Jonathan Martens. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
// load our helper function
require_once('helper.php');
// attach to the current Joomla page
$document =& JFactory::getDocument();
$modbase = JURI::base() . "modules/" . $module->module . "/";
// add style sheet to page head element (to the body is handled in the template)
if($params->get('location-css', 'head') == 'head') {
$document->addStyleSheet($modbase.'css/jquery.tweet.css');
}
// add scripts to page head element (to the body is handled in the template)
if($params->get('location-script', 'head') == 'head') {
$document->addScript($modbase . "js/jquery.tweet.js");
$document->addScriptDeclaration(generateScript($params, $module->id));
}
require(JModuleHelper::getLayoutPath($module->module, 'default'));
?>