شباب ،، منذ ساعات وأنا أنظر إلى هذه الكود ، ولا أدري ما العلة ،، ( لعل العلة في عيني لعدم ارتداء النظارات ^_^ ).
الخطأ الظاهر في ملف ( comments.php ) في السطر الـ53
نص الخطأ :
كود:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:\xampp\htdocs\word\wp-content\themes\3thoob\comments.php on line 57
كود PHP:
<?php
/**
* @package WordPress
*
*/
?>
<div id="commentreplycontainer">
<?php if ( post_password_required() ) : ?>
<div class="must-log-in"><?php _e( 'هذه التدوينة محمية ، أدخل كلمة المرور لمشاهدة هذه التدوينة' ); ?></div>
</div><!--END commentreplycontainer -->
<?php
/* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* to fully load the template.
*/
return;
endif;
?>
<?php
// You can start editing here -- including this comment!
?>
<?php if ( have_comments() ) : ?>
<div id="commentscontainertitle">
<h2>التعليقات على هذه التدوينة : <?php comments_number( '0', '1', '%' ); ?></h2>
</div>
<ul class="replycomment">
<?php wp_list_comments( array( 'callback' => 'athoob_comment' ) ); ?>
</ul>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
<?php else : // or, if we don't have comments:
/* If there are no comments and comments are closed,
* let's leave a little note, shall we?
* But only on posts! We don't want the note on pages.
*/
if ( ! comments_open() && ! is_page() ) :
?>
<p class="must-log-in"><?php _e( 'التعليقات مغلقة' ); ?></p>
<?php endif; // end ! comments_open() && ! is_page() ?>
<?php endif; ?>
<?php endif; ?>
<?php comment_form(
array(
'fields' => apply_filters( 'comment_form_default_fields',
array(
'author' => '<div class="namespace">'.
'<input id="" name="namespace" type="text" value="' .
esc_attr( $commenter['comment_author'] ) '" />' .
'<div class="alertcomment">حقل ضروري</div>'.
'</div>',
'email' => '<div class="email">'.
'<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" />' .
'<div class="alertcomment">حقل ضروري</div>'.
'</div>',
'url' => '<div class="commentorwebsite">' .
'<input id="url" name="commentorwebsite" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" />' .
'</div>',
'comment_field' => '<div class="commentarea">'.
'<textarea name="commentarea" id="commentarea"></textarea> ' .
'</div>'),
'must_log_in' => '<div class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</div>',
'logged_in_as' => '<div class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out?</a></div>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ),
'comment_notes_before' => '<div id="commentparttitle">
<h2>اكتب تعليقك</h2>
</div><!--END commentparttitle-->',
'comment_notes_after' => ' ',
'id_form' => 'commentform',
'id_submit' => 'submit',
'title_reply' => 'الرد على التعليق',
'title_reply_to' => 'رد على هذا التعليق',
'cancel_reply_link' => 'إلغاء الرد',
'label_submit' => 'إضافة التعليق',
); ?>
</div><!--END commentreplycontainer->
احترت مع هذا الخطأ منذ ساعات ... هل من مجيب