Accueil/modules/ouifm/Ouifm.php

19 lines
593 B
PHP
Raw Permalink Normal View History

2010-09-21 18:07:23 +02:00
<?php
class ouifm extends Module {
protected $moduleTitle = 'Oui FM Radio';
protected $paramsList = array(
2010-09-21 18:07:23 +02:00
'visibility',
'x',
'y'
);
public function __construct($params){
parent::__construct(__CLASS__, $params);
2010-09-21 18:07:23 +02:00
}
public function build(){
echo '<script type="text/javascript" src="'.$this->pathToModule.'js/'.$this->moduleName.'.js"></script>
<link rel="stylesheet" type="text/css" href="'.$this->pathToModule.'css/'.$this->moduleName.'.css">';
echo '<div id="ouifm" style="left:'.$this->getParam('x').'; top:'.$this->getParam('y').';"></div>';
2010-09-21 18:07:23 +02:00
}
}