02_RSS.pm: removed css from HTML header

git-svn-id: https://svn.fhem.de/fhem/trunk@7607 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2015-01-17 21:06:35 +00:00
parent 28b5a54ccb
commit 231c7bf5ff

View File

@ -259,11 +259,11 @@ RSS_HTMLHead($$) {
my $xmlns= 'xmlns="http://www.w3.org/1999/xhtml"'; my $xmlns= 'xmlns="http://www.w3.org/1999/xhtml"';
my $r= defined($refresh) ? "<meta http-equiv=\"refresh\" content=\"$refresh\"/>\n" : ""; my $r= defined($refresh) ? "<meta http-equiv=\"refresh\" content=\"$refresh\"/>\n" : "";
# css and js header output should be coded only in one place # css and js header output should be coded only in one place
my $cssTemplate = "<link href=\"$FW_ME/%s\" rel=\"stylesheet\"/>\n"; my $css= "";
my $css= sprintf($cssTemplate, "pgm2/style.css"); #my $cssTemplate = "<link href=\"$FW_ME/%s\" rel=\"stylesheet\"/>\n";
$css.= sprintf($cssTemplate, "pgm2/jquery-ui.min.css"); #$css= sprintf($cssTemplate, "pgm2/style.css");
map { $css.= sprintf($cssTemplate, $_); } #$css.= sprintf($cssTemplate, "pgm2/jquery-ui.min.css");
split(" ", AttrVal($FW_wname, "CssFiles", "")); #map { $css.= sprintf($cssTemplate, $_); } split(" ", AttrVal($FW_wname, "CssFiles", ""));
my $scripts= RSS_getScript(); my $scripts= RSS_getScript();
my $code= "$doctype\n<html $xmlns>\n<head>\n<title>$title</title>\n$r$css$scripts</head>\n"; my $code= "$doctype\n<html $xmlns>\n<head>\n<title>$title</title>\n$r$css$scripts</head>\n";
} }