$elt->removeAttribute('class');
+ /* Need to wrap headers in another DIV. */
+ $newdiv = new DOMDocument();
+ $div = $newdiv->createElement('div');
+ $div->appendChild($newdiv->importNode($elt, true));
+
// Fall-through
case 'content':
libxml_use_internal_errors(true);
$doc = DOMDocument::loadHTML($render[$key]['data']);
$bodyelt = $doc->getElementsByTagName('body')->item(0);
- $bodyelt->insertBefore($doc->importNode($elt, true), $bodyelt->firstChild);
+ $bodyelt->insertBefore($doc->importNode($div, true), $bodyelt->firstChild);
echo $doc->saveHTML();
} else {
echo $render[$key]['data'];
<tag:css />
<head></head>
<body>
- <div id="headerblock" class="fixed mimeHeaders">
- <loop:headers>
+ <div id="headerblock" class="fixed mimeHeaders mimeHeadersPrint">
+<loop:headers>
<div><strong><tag:headers.header />:</strong> <tag:headers.value /></div>
- </loop:headers>
+</loop:headers>
</div>
</body>
</html>
border-color: #ffd0af;
}
+.mimeHeadersPrint {
+ /* Must be pixel size to properly work with Mozilla on print page. */
+ font-size: 12px;
+}
+
+/* Other images. */
.downloadAtc, .downloadZipAtc, .saveImgAtc, .printAtc, .closeImg, .deleteImg, .foldersImg, .searchuiImg, .reloadImg {
display: -moz-inline-stack;
display: inline-block;
background-image: url("graphics/reload.png");
}
+/* ITIP styles. */
#itipconflicts tr.itipcollision {
background-color: #f00;
color: #fff;