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

Wettervorhersagewidget erstellt

parent 296b918f
No related branches found
No related tags found
No related merge requests found
...@@ -7,15 +7,15 @@ ...@@ -7,15 +7,15 @@
$widgets = array( $widgets = array(
//array("widget_name", "style_name", position_x, position_y, size_x, size_y); //array("widget_name", "style_name", position_x, position_y, size_x, size_y);
array("Logo", "widget", 0,0, 2,1), array("Logo", "widget", 0,0, 2,1),
array("ZoneOffen", "widget_dark", 4,0, 2,1), array("ZoneOffen", "widget_dark", 4,0, 2,1),
array("Dummy", "widget_light", 0,1, 4,2), array("Dummy", "widget_light", 0,1, 4,2),
array("Marvin", "widget_light", 4,1, 2,1), array("Marvin", "widget_light", 4,1, 2,1),
array("TwitterWall","widget_light", 4,2, 2,4), array("TwitterWall", "widget_light", 4,2, 2,4),
array("Dummy", "widget_light", 0,3, 1,2), array("Dummy", "widget_light", 0,3, 1,2),
array("Dummy", "widget_dark", 1,3, 2,2), array("Dummy", "widget_dark", 1,3, 2,2),
array("Dummy", "widget_light", 3,3, 1,2), array("Wettervorhersage", "widget_light", 3,3, 1,2),
array("Dummy", "widget_light", 0,5, 2,1), array("Dummy", "widget_light", 0,5, 2,1),
array("Dummy", "widget_light", 2,5, 2,1) array("Dummy", "widget_light", 2,5, 2,1)
); );
?> ?>
...@@ -3,15 +3,28 @@ ...@@ -3,15 +3,28 @@
background-color:#75695E; background-color:#75695E;
font-family: inherit; font-family: inherit;
color:#000000; color:#000000;
overflow:hidden;
} }
.widget_light td, .widget_light div { .widget_light td, .widget_light div {
font-family: inherit;
margin: 0;
position:relative;
}
.widget_light .box {
background-color:#95897E;
border: 1px dashed #F2EFE5;
font-family: inherit; font-family: inherit;
color:#000000; color:#000000;
margin: 10;
position:relative;
} }
.widget_light h1 { .widget_light h1 {
margin: 10; margin-top: 10;
margin-left: 10;
margin-bottom: 0;
padding: 0; padding: 0;
font-family: inherit; font-family: inherit;
font-size: 1.0em; font-size: 1.0em;
...@@ -33,17 +46,17 @@ ...@@ -33,17 +46,17 @@
.widget_light ul { .widget_light ul {
background-color:#95897E; background-color:#95897E;
margin: 10; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
border-top: 1px dashed #F2EFE5; overflow:hidden;
position:relative;
height:auto;
} }
.widget_light li { .widget_light li {
background-color:#95897E; background-color:#95897E;
float: left; float: left;
border-bottom: 1px dashed #F2EFE5; border-bottom: 1px dashed #F2EFE5;
border-left: 1px dashed #F2EFE5;
border-right: 1px dashed #F2EFE5;
width: 100%; width: 100%;
color: #333333; color: #333333;
} }
......
...@@ -26,7 +26,7 @@ class TwitterWall implements iWidget ...@@ -26,7 +26,7 @@ class TwitterWall implements iWidget
}); });
}); });
</script>'."\n"; </script>'."\n";
$widgetOutput .= '<div class="tweet"></div>'."\n"; $widgetOutput .= '<div class="box"><div class="tweet" style="height:auto;top:0;bottom:0;"></div></div>'."\n";
return $widgetOutput; return $widgetOutput;
} }
......
<?php
require_once 'widgets/iWidget.php';
class Wettervorhersage implements iWidget
{
public function __construct($width, $height)
{
}
public function giveOutput()
{
$widgetOutput = '<div id="cont_5c241a8806783c9482d9f72bd16e1de2"><script type="text/javascript" src="http://www.daswetter.net/wid_loader/5c241a8806783c9482d9f72bd16e1de2"></script></div>';
return $widgetOutput;
}
}
?>
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