-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mod_jowclock.php
29 lines (25 loc) · 932 Bytes
/
mod_jowclock.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
<?php
/**
* @package JowClock for Joomla 3.0
* @version 1.0
* @author Troy T. Hall (http://jowwow.me)
* @copyright (C) 2013 JowWow
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
// Include the syndicate functions only once
if(!defined('DS')){
define('DS',DIRECTORY_SEPARATOR);
}
require_once( dirname(__FILE__).DS.'helper.php' );
// Get default .css file
$document = JFactory::getDocument();
$document->addStyleSheet( JURI::base() . 'modules/mod_jowclock/css/mod_jowclock.css');
$time = modJowClockHelper::getTime( $params );
$format = $params->get('format');
$seconds = $params->get('seconds');
$date = $params->get('date');
$leadingZeros = $params->get('leadingZeros');
$outTimezone = modJowClockHelper::getOutputTimezone( $params );
require( JModuleHelper::getLayoutPath( 'mod_jowclock' ) );