Das mit dem <?php habe ich eben bemerkt und so wie unten abgeändert und jetzt kommt ein Parse Error in
Header.php
HTML-Code:
Parse error: syntax error, unexpected $end in
HTML-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php if (is_single() || is_page() || is_archive()) { wp_title('',true); } else { bloginfo('name'); echo(' — '); bloginfo('description'); } ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/custom.css" type="text/css" media="screen" />
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/ie7.css" media="screen" />
<![endif]-->
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/ie6.css" media="screen" />
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body class="custom">
<div id="container">
<div id="masthead">
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<h3><?php bloginfo('description'); ?></h3>
</div>
<?php
if ( !empty( $_SERVER['HTTP_REFERER'] ) ) {
$url = parse_url( $_SERVER['HTTP_REFERER'] );
if ( strpos( $url['host'], 'google' ) !== FALSE && !empty( $url['query']) ) {
$qs = array();
parse_str( $url['query'], $qs );
if ( !empty( $qs['q'] ) && strpos( $qs['q'], 'site:' ) !== FALSE ) {
echo '<p id="google-site-search">Lieber Webmaster Kollege schön das Du dich für meine Seite interessierst !! Gerne arbeite ich mit anderen Webmastern zusammen solltest Du Interesse an einer Zusammenarbeit haben wende Dich bitte an ...</p>';
}
}
?>
<div align="center">
</div>