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

css eingebunden

parent e442d580
No related branches found
No related tags found
No related merge requests found
.widget {
border: solid 1px #000000;
}
<head>
<link rel="stylesheet" type="text/css" href="css/widget.css" />
</head>
<body>
<?php
$widgets = array(
array(
"ZoneOffen", // widget name
16,16, // position
320,320 // size
)
);
foreach ($widgets as $widgetconfig)
{
$widgetname = $widgetconfig[0];
$widgetpositionx = $widgetconfig[1];
$widgetpositiony = $widgetconfig[2];
$widgetwidth = $widgetconfig[3];
$widgetheight = $widgetconfig[4];
include "widgets/$widgetname/$widgetname.php";
$widget = new $widgetname($widgetwidth,$widgetheight);
$widgetoutput = $widget->giveOutput();
print("<div
class='widget'
id='$widgetname'
style='
position:absolute;
left:$widgetpositionx px; top:$widgetpositiony px;
width:$widgetwidth px; height:$widgetheight px;'
width='$widgetwidth'
height='$widgetheight'>");
print($widgetoutput);
print("</div>");
}
?>
</body>
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