Change <? to <?php and add some formatting

This commit is contained in:
2016-11-17 22:16:26 +01:00
parent 2d5ba7fb8d
commit fb71f8c112
27 changed files with 270 additions and 296 deletions

View File

@@ -1,5 +1,6 @@
<?php
class clockAdvanced extends Module {
class clockAdvanced extends Module
{
protected $moduleTitle = 'Horloge Avancée';
protected $paramsList = array(
'visibility',
@@ -20,7 +21,7 @@ class clockAdvanced extends Module {
<link rel="stylesheet" href="'.$this->pathToModule.'css/'.$this->moduleName.'.css" type="text/css" />';
echo '<div class="jclockAdvanced" id="clockAdvanced" style="left:'.$this->getParam('x').'; top:'.$this->getParam('y').';"></div>';
$options = '';
foreach (self::$paramsList as $paramName){
foreach ($this->paramsList as $paramName){
if($this->getParam($paramName) != null)
$options .= $paramName.' : "'.$this->getParam($paramName).'",';
}