diff --git a/webroot/css/widget.css b/webroot/css/widget.css index 8e747feaf5a9ff251dceb77178a289d58f885ffd..bdf244c1b4878e9723e757d1ad67af270447646a 100644 --- a/webroot/css/widget.css +++ b/webroot/css/widget.css @@ -1,14 +1,13 @@ body { background-color:#261C13; } -a { color:#0071BB; } -a:hover { color:#777878; } +/* widget */ .widget, .widget td, .widget div { font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati; font-size:16pt; color:#000000; } - +/* widget_light */ .widget_light { border: 1px solid #F2EFE5; background-color:#75695E; @@ -16,15 +15,13 @@ a:hover { color:#777878; } font-size:16pt; color:#000000; } - .widget_light td, .widget_light div { font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati; font-size:16pt; color:#000000; } - - +/* widget_dark */ .widget_dark { border: 1px dashed #75695E; background-color:#362C23; @@ -32,7 +29,6 @@ a:hover { color:#777878; } font-size:16pt; color:#ffffff; } - .widget_dark td, .widget_dark div { font-family:Lucida Grande, Lucida Sans Unicode, Calibri, Arial, Helvetica, Sans, FreeSans, Jamrul, Garuda, Kalimati; font-size:16pt; diff --git a/webroot/index.php b/webroot/index.php index de55226ece7f1641678e9f81f952db7d86468d26..cb192f045f98ed544fa19f6f2ef1d9b55f4d579b 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -16,17 +16,14 @@ $widgetposy = $widgetconfig[3] * $widget_unit_height; $widgetsizex = $widgetconfig[4] * $widget_unit_width - $widget_spacing_x; $widgetsizey = $widgetconfig[5] * $widget_unit_height - $widget_spacing_y; - + include_once "widgets/$widgetname/$widgetname.php"; $widget = new $widgetname($widgetwidth,$widgetheight); $widgetoutput = $widget->giveOutput(); - print("<div - id='$widgetname' - class='$widgetclass' - style=' - position:absolute; - left:".$widgetposx."px;top:".$widgetposy."px; - width:".$widgetsizex."px;height:".$widgetsizey."px;'>"); + print("<div id='$widgetname' class='$widgetclass' + style='position:absolute; + left:".$widgetposx."px;top:".$widgetposy."px; + width:".$widgetsizex."px;height:".$widgetsizey."px;'>"); print($widgetoutput); print("</div>"); } diff --git a/webroot/widgets/Dummy/Dummy.php b/webroot/widgets/Dummy/Dummy.php index 0f6d2b9c17a25cc58684d534bff23290daa2e24a..1f19b6cecdbdc78d5a00d5c48c806afe7794511b 100644 --- a/webroot/widgets/Dummy/Dummy.php +++ b/webroot/widgets/Dummy/Dummy.php @@ -12,7 +12,7 @@ class Dummy implements iWidget public function giveOutput() { - $widgetOutput .= '<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">'."\n"; + $widgetOutput = '<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">'."\n"; $widgetOutput .= ' <tr>'."\n"; $widgetOutput .= ' <td align="center"><b>Dummy</b></td>'."\n"; $widgetOutput .= ' </tr>'."\n";