...aber ich glaube ich komm langsam dahinter, wie ich das mit dem is_home machen könnte....
Hmmpf, dahintergekommen bin ich nun wirklich, aber das will irgendwie nicht so recht, wie ich das will....
Ich habe diese Stelle:
PHP
<h5 id="respond"><b>Einen Kommentar schreiben</b></h5>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Du musst <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">angemeldet/a> sein, um kommentieren zu können.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Angemeldet als: <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Abmelden »</a></p>
<?php else : ?>
<p><input type="text" class="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) _e('(erforderlich)'); ?></small></label></p>
<p><input type="text" class="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>E-Mail (wird nicht veröffentlicht) <?php if ($req) _e('(erforderlich)'); ?></small></label></p>
<p><input type="text" class="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Webseite</small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<p>
<input name="submit" type="submit" id="submit" tabindex="5" value="senden" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
Alles anzeigen
folgendermaßen bearbeitet...:
PHP
<li <?php if(is_home()){echo ' ';} else {echo '<h5 id="respond"><b>Einen Kommentar schreiben</b></h5>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Du musst <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">angemeldet/a> sein, um kommentieren zu können.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Angemeldet als: <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Abmelden »</a></p>
<?php else : ?>
<p><input type="text" class="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) _e('(erforderlich)'); ?></small></label></p>
<p><input type="text" class="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>E-Mail (wird nicht veröffentlicht) <?php if ($req) _e('(erforderlich)'); ?></small></label></p>
<p><input type="text" class="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Webseite</small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<p>
<input name="submit" type="submit" id="submit" tabindex="5" value="senden" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>';} ?>
Alles anzeigen
Nun habe ich aber das Problem, dass er mir einen Syntax-Fehler für Zeile 72 anzeigt. (in der Zeile steht folgendes)
Die Fehlermeldung besagt: "expecting , or ; " ... Oo
Ich hab das ganze mal getestet, indem ich "nur" die Überschrift „Einen Kommentar schreiben.“ habe ausblenden lassen, das hat funtioniert, wenn ich den gesamten Code ausblenden will, oder eben mehr als nur die Überschrift, gibt er mir jedesmal den Syntax-Fehler...
irgendwie frustrierend... ^^