Merhaba arkadaşlar
wordpress tema geliştiriyorum comments.php satırı beni deli etti , hatası neden kaynaklanıyor bulamadım. Son satırda hata oldduğunu söylüyor ama...
Hata Kodu'da şu ;
Parse error: syntax error, unexpected $end in /home/kullanicim/domains/siteleriniz.com/public_html/wp-content/themes/siteleriniz/comments.php on line 49
Kodlar ;
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Lütfen bu dosyayi direk olarak yüklemeyin!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">Lütfen yorumları görebilmek için şifreyi giriniz.</p>
<?php
return;
}
}
?>
<h1>Yorumlar</h1>
<?php if ($comments) : ?> <?php foreach ($comments as $comment) : ?>
<div id="comment-<?php comment_ID() ?>">
<div class="avatar"><!--Buraya Gravatar gelecek--></div><div>
<p class="author-no"><?php comment_author_link() ?> <?php comment_date() ?> tarihinde demiş ki;</p>
<p class="comment"><?php comment_text() ?>;</p>
</div>
<?php endforeach; ?><?php endif; ?>
</div>
<?php if ( comments_open() ) : ?><!-- Eger yorumlar aciksa -->
<h1>Yorum yazın</h1>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?> <!-- Eger yorum yazmak icin uye olmak gerekiyorsa -->
<p>Yorum yapabilmeniz için <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">
giriş yapmış olmanız </a> gerekmektedir. </p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post"> <?php if ( $user_ID ) : ?> <!-- Eger kullanici giris yapmissa --> <p><a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"> <?php echo $user_identity; ?></a> ismiyle giriş yaptınız. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"> Güvenli çıkış »</a></p> <?php else : ?>
<p> <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>İsim</small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>Mail (Yayınlanmayacaktır)</small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" />
<label for="url"><small>Websitesi</small></label></p>
<p><textarea name="comment" id="comment" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Yorum Gönder" />
<input type="hidden" name="comment_post_ID" value="3" />
</p>
<?php do_action('comment_form', $post->ID); ?> </form> <?php endif; ?>