From b7b06fb5f0a4fed1f832641f436446f4bdfed9f9 Mon Sep 17 00:00:00 2001
From: ands <ands@andspad.(none)>
Date: Sun, 5 Dec 2010 05:43:33 +0100
Subject: [PATCH] =?UTF-8?q?Codeversch=C3=B6nerung?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 webroot/css/widget.css          | 10 +++-------
 webroot/index.php               | 13 +++++--------
 webroot/widgets/Dummy/Dummy.php |  2 +-
 3 files changed, 9 insertions(+), 16 deletions(-)

diff --git a/webroot/css/widget.css b/webroot/css/widget.css
index 8e747fe..bdf244c 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 de55226..cb192f0 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 0f6d2b9..1f19b6c 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";
-- 
GitLab