Pubwich::getHeader PHP Method

getHeader() public static method

* Header hook
public static getHeader ( )
    public static function getHeader()
    {
        $output = '';
        foreach (self::$classes as $class) {
            $link = $class->getHeaderLink();
            if ($link) {
                $output .= '		<link rel="alternate" title="' . $class->title . ' - ' . $class->description . '" href="' . htmlspecialchars($link['url']) . '" type="' . $link['type'] . '">' . "\n";
            }
        }
        return $output;
    }

Usage Example

Ejemplo n.º 1
0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title><?php 
echo PUBWICH_TITLE;
?>
</title>
		<link rel="stylesheet" media="screen" href="<?php 
echo Pubwich::getThemeUrl();
?>
/style.css" type="text/css">
<?php 
echo Pubwich::getHeader();
?>
	</head>
	<body>
		<div id="wrap">
			<h1><a href="/" rel="me"><?php 
echo PUBWICH_TITLE;
?>
</a></h1>
			<hr>
			<div class="clearfix">

<?php 
echo Pubwich::getLoop();
?>

			</div>
			<div id="footer">