Skip to content
Snippets Groups Projects
Commit b7b06fb5 authored by ands's avatar ands
Browse files

Codeverschönerung

parent d6b7c646
No related branches found
No related tags found
No related merge requests found
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;
......
......@@ -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>");
}
......
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment