Location: PHPKode > scripts > GalleryShuffle > v1.0/php/HTML.php
<?php

/**
* HTML ELEMENTS
**/

 abstract class HTML 
 {
	public function getHtmlHead($title, $cssUrl = Array(), $cssIeUrl = Array(), $jsUrl = Array(), $bodyOnLoad)
	{
	
	
		$buffer = '    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>' . $title . '</title>
<!--meta http-equiv="Pragma" content="No-cache"/-->
<!--meta http-equiv="Cache-Control" content="no-store,No-cache,must-revalidate,post-check=0,pre-check=0,max-age=0"/-->
<!--meta http-equiv="Expires" content="-1"/-->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<noscript>
<meta http-equiv="refresh" content="1; URL=clientErrors.php?error=nojs">
</noscript> 
<script type="text/javascript">

	if(!!(window.attachEvent && navigator.userAgent.indexOf("Opera") === -1)) {
		var ver = navigator.userAgent.match(/MSIE ([0-9.]+);/);
		if(ver != null && ver[1] != undefined) {
			ver = parseInt(ver[1]);
			if (ver == 7) {
				if (typeof (window.external.AddToFavoritesBar) != "undefined" ||
					typeof (window.external.AddService) != "undefined" ||
					typeof (window.external.AddService) != "undefined") ver = 8;
			}
			
			if(ver <= 8) window.location.href="clientErrors.php?error=version";
			
		}
	}
	
</script>';
		
		
		//css
		foreach($cssUrl as $value)
			$buffer .= "\n" . '<link href="' . $value . '" rel="stylesheet" type="text/css" />';
		
		//css for IE
		$buffer .= "\n" . '<!--[if IE]>';
		foreach($cssIeUrl as $value)
			$buffer .= "\n" . '<link href="' . $value . '" rel="stylesheet" type="text/css" /> ';
		$buffer .= "\n" . '<![endif]-->';
		
		//js
		foreach($jsUrl as $value)
			$buffer .= "\n" . '<script language="JavaScript" type="text/javascript" src="' . $value . '"></script>';
		
		
		$buffer .= "\n" . '</head>' . "\n" . '<body onLoad="' .  $bodyOnLoad . '">' . "\n\t" . '<div id="console"></div>';
		
		
		return $buffer;
		
	}
	
	public function getHtmlFoot()
	{
		
		$buffer = "\n" . '</body>' . "\n" . '</html>';
		
		return $buffer;
		
	}
	
 }
 
 ?>
Return current item: GalleryShuffle