webui: Improve device header layout (#5990)

* webui: Improve device header layout

* Update css style version to break caches
Remove unused css.
This commit is contained in:
Tony Murray
2017-02-24 03:59:30 -06:00
committed by Neil Lathwood
parent 097a827759
commit 20ae9e2ecd
6 changed files with 39 additions and 82 deletions

View File

@@ -224,12 +224,18 @@ function getLogo($device)
}
/**
* @param $device
* @param array $device
* @param string $class to apply to the image tag
* @return string an image tag with the logo for this device. Images are often wide, not square.
*/
function getLogoTag($device)
function getLogoTag($device, $class = null)
{
return '<img src="' . getLogo($device) . '" title="' . getImageTitle($device) . '"/>';
$tag = '<img src="' . getLogo($device) . '" title="' . getImageTitle($device) . '"';
if (isset($class)) {
$tag .= " class=\"$class\" ";
}
$tag .= ' />';
return $tag;
}
/**