Browse Source

Ajout du module OUI FM Radio

remotes/svn/ModulesALaMano
Chouchen 11 years ago
parent
commit
81bf7cb785
  1. 6
      class/Clock.php
  2. 33
      class/Ouifm.php
  3. 3
      css/main.css
  4. BIN
      images/interface/music.png
  5. 12
      js/jquery.ouifm.js

6
class/Clock.php

@ -24,6 +24,10 @@ class clock extends Module {
}
public static function updateConfig($updated){
foreach ($updated as $what=>$withWhat){
if(in_array($what, self::$paramsList)){
call_user_func(array(get_class(), "set".ucfirst($what)), $withWhat);
}
}
}
}

33
class/Ouifm.php

@ -0,0 +1,33 @@
<?php
class ouifm extends Module {
protected static $paramsList = array(
'visibility',
'x',
'y'
);
public $params = array();
public function __construct($params){
$this->setParams($params);
echo '<script type="text/javascript" src="js/jquery.ouifm.js"></script>';
echo '<div id="ouifm" style="left:'.$params['x'].'; top:'.$params['y'].';"></div>';
}
private function setParams($params){
$this->params = $params;
}
public static function start($params){
$ouifm = new ouifm($params);
}
public static function updateConfig($updated){
foreach ($updated as $what=>$withWhat){
if(in_array($what, self::$paramsList)){
call_user_func(array(get_class(), "set".ucfirst($what)), $withWhat);
}
}
}
}

3
css/main.css

@ -234,7 +234,8 @@
#recherche{margin-top:70px;}
#config {width:300px;}
#config-menu, #blog-links-manager, #city-menu , #jclockAdvanced-menu, #links-menu{float:right; margin:12px 10px 0 0;}
#config-menu, #blog-links-manager, #city-menu , #jclockAdvanced-menu, #links-menu, #ouifm-menu{float:right; margin:12px 10px 0 0;}
#ouifm{position:absolute;width:144px;height:28px;}
/* Green button class: */
a.green-button,a.green-button:visited, span.green-button{

BIN
images/interface/music.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

12
js/jquery.ouifm.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save