3.1.0
===================
-- Change: BSPrinterElementTable:__construct() can now take straight strings and convert them into BSPrinterElementLabel's
\ No newline at end of file
+- Change: BSPrinterElementTable:__construct() can now take straight strings and convert them into BSPrinterElementLabel's
+- New: BSPrinterRootPage::setHeaderCode() allows injecting in between the <head> tag of the root page element (creates BSPrinterRootPage::$headerCode)
+
*/
private $navigator;
+ /**
+ * The header code for the page
+ * @var string
+ */
+ private $headerCode;
+
/**
* Constructor
*
return $this->navigatior;
}
+ /**
+ * Sets the code to inject into the <head> element of the page
+ *
+ * @param string Code
+ */
+ public function setHeaderCode($code)
+ {
+ $this->headerCode = $code;
+ }
+
/**
* Creates a redirect to another page; constructs the header and footer
* (therefore execution stops)
echo "\n\t<title>" . BSPrinter::get_realm() . " - " . $this->title . "</title>";
echo "\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" . $language['charset'] . "\" />";
echo "\n\t<link rel=\"stylesheet\" href=\"" . BSPrinter::get_stylesheet() . "\" />";
+ echo "\n" . $this->headerCode;
echo "\n</head>\n<body>\n";
if ($this->navigator && (!defined('ISSO_PRINTER_NO_NAVIGATION') || !constant('ISSO_PRINTER_NO_NAVIGATION')))