2010-09-21 18:07:23 +02:00
|
|
|
<?php
|
2010-09-27 12:48:53 +02:00
|
|
|
class clock extends Module {
|
2010-10-05 17:30:04 +02:00
|
|
|
protected $moduleTitle = 'Horloge Simple';
|
2010-10-06 10:24:08 +02:00
|
|
|
protected $paramsList = array(
|
2010-09-21 18:07:23 +02:00
|
|
|
'visibility',
|
|
|
|
'x',
|
|
|
|
'y'
|
|
|
|
);
|
|
|
|
|
|
|
|
public function __construct($params){
|
2010-10-05 17:30:04 +02:00
|
|
|
parent::__construct(__CLASS__, $params);
|
2010-09-21 18:07:23 +02:00
|
|
|
}
|
|
|
|
|
2010-10-05 17:30:04 +02:00
|
|
|
public function build(){
|
|
|
|
echo '<script type="text/javascript" src="'.$this->pathToModule.'js/'.$this->moduleName.'.js"></script>
|
|
|
|
<link rel="stylesheet" href="'.$this->pathToModule.'css/'.$this->moduleName.'.css" type="text/css" />';
|
|
|
|
echo '<div class="jclock" id="clock" style="left:'.$this->getParam('x').'; top:'.$this->getParam('y').';"></div>';
|
2010-09-21 18:07:23 +02:00
|
|
|
}
|
|
|
|
}
|