protected static function getHeader($element = null)
{
if (is_null($element)) {
throw new Exception('Function Error: No element added', 500);
return false;
}
if (!array_key_exists($element, self::$renderHeader)) {
// test utf-8 ä, ö, ü, č, ř, ž, ß
$paths = PhocaGalleryPath::getPath();
$bgImg = Uri::root(true) . '/media/com_phocagallery/images/administrator/image-bg.jpg';
$o = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n";
$o .= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-en" lang="en-en" dir="ltr" >' . "\n";
$o .= '<head>' . "\n";
$o .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\n\n";
$o .= '<title>' . Text::_('COM_PHOCAGALLERY_THUMBNAIL_GENERATING') . '</title>' . "\n";
$o .= '<link rel="stylesheet" href="' . $paths->media_css_rel_full . 'administrator/phocagallery.css" type="text/css" />';
$o .= "\n" . '<style type="text/css"> html {
background: url(' . $bgImg . ') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}' . "\n" . '.hr { border-bottom: 1px solid #ccc; margin-top: 10px;}' . "\n" . '</style>' . "\n";
$o .= "\n" . '<!--[if IE]>' . '<style type="text/css">' . "\n";
$o .= "\n" . 'html { background-image: none;}';
$o .= "\n" . '<![endif]-->' . "\n" . '</style>' . "\n";
$o .= '</head>' . "\n";
$o .= '<body>' . "\n";
self::$renderHeader[$element] = $o;
} else {
self::$renderHeader[$element] = '';
}
return self::$renderHeader[$element];
}