Hallo zusammen!
Ich arbeite an meinem ersten eigenen Theme. Ich bekomme nach Upload meiner Dateien jedoch folgenden Parse-Error:
Parse error: syntax error, unexpected $end in /home/.sites/154/site286/web/wp-content/themes/globcom/index.php on line 9
Normalerweise kommt so ein Fehler ja bei einer vergessenen Klammer. Kann nur leider keine finden in meinem Code...
Hier die Dateien:
header:
<!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" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<?php if (is_home()){ ?>
<title><?php bloginfo('name'); ?> - <?php bloginfo('description'); ?></title>
<?php } else { ?>
<title><?php wp_title('»', true, 'right'); bloginfo('name'); ?></title>
<?php } ?>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link href="http://www.globalcommunications.tv/wp-content/themes/globcom/style.css" rel="stylesheet" type="text/css" />
<meta name="geo.region" content="AT-1" />
<meta name="geo.placename" content="Graz" />
<meta name="geo.position" content="48.188;16.405" />
<meta name="ICBM" content="48.188;16.405" />
<meta name="DC.title" content="Global Communications" />
<meta name="author" content="Manuel Gruber, Visual Propaganda" />
<?php if (is_home()) { ?><meta name="description" content="Global Communications - WebTV, livestream, Videoproduktion Wien /><?php } ?>
<meta http-equiv="imagetoolbar" content="no" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?> />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" href="http://www.globalcommunications.tv/wp-content/themes/globcom/favicon.ico" />
<?php if (is_search()) {echo "<meta name=\"robots\" content=\"noindex, follow\" />\n";} ?>
<?php wp_head(); ?>
</head>
<body>
<div id="container">
<div id="header">
<div id="logo"><a href="http://www.globalcommunications.tv"><img src="http://forum.wordpress-deutschland.org/images/gl_com_logo.jpg" alt="Globalcommunications - zur Startseite!" width="207" height="116" border="0" /></a> </div>
<div id="navi">
<ul>
<li><a href="/werwirsind/"<?php if(is_page('werwirsind')) echo ' class = "aktiv"'; ?> class="werwirsind" title="Global Communications stellt sich vor">WER WIR SIND</a></li>
<li><a href="/waswirtun/"<?php if(is_page('waswirtun')) echo ' class = "aktiv"'; ?> class="waswirtun" title="Unser Angebot an Sie">WAS WIR TUN</a></li>
<li><a href="/wiewirfunktionieren/"<?php if(is_page('wiewirfunktionieren')) echo ' class = "aktiv"'; ?> class="wiewirfunktionieren" title="Global Communications - So funktionieren wir">WIE WIR FUNKTIONIEREN</a></li>
<li><a href="/kontakt/"<?php if(is_page('kontakt')) echo ' class = "aktiv"'; ?> class="kontakt" title="Global Communications Kontaktdaten">KONTAKT</a></li>
<li><a href="/gudnjustv/"<?php if(is_page('gudnjustv')) echo ' class = "aktiv"'; ?> class="gudnjustv" title="Hier geht's zu Gud Njus TV">GUD NJUS TV</a></li>
</ul>
</div><!-- Navi Ende -->
<hr />
</div>
<div id="titelleiste">
</div>
<hr />
<div id="content_container" class="clearfix">
<div id="content">
Alles anzeigen
Index:
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Sidebar:
<!-- begin sidebar -->
<div id="sidebar">
<h2>Social Media</h2>
<ul>
</ul>
<h2><label for="s">Suchen</label></h2>
<form id="searchform" method="get" action="<?php bloginfo('url'); ?>/">
<div>
<input name="s" id="s" size="20" type="text" />
<input name="submit" value="Suchen" type="submit" class="such-button" />
</div>
</form>
<h2>Kategorien</h2>
<ul>
<?php wp_list_categories('order-by=name&show_count=1&title_li'); ?>
</ul>
</div>
Alles anzeigen
Und Footer:
<hr />
<div id="footer">
<div id="footer_inner">
</div>
</div>
<?php wp_footer(); ?>
</body>
</html>
Meine Page:
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="beitrag">
<?php the_content('(mehr...)'); ?>
<?php edit_post_link('****', '<div>', '</div>'); ?>
</div>
</div>
<?php endwhile; else: ?>
<p>Kein Beitrag</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Ich hoffe, mir kann irgendjemand weiterhelfen... Ich versuche weiter den Code zu debuggen, find aber bisher nichts.
Danke im voraus!