Files
2026-03-15 14:37:05 -04:00

82 lines
4.1 KiB
PHP

<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p><?php _e('أدخل كلمة المرور لتر التعليقات'); ?></p>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?>
<h3 id="comments"><?php comments_number(__('لا تعليقات No Comments'), __('تعليق واحد One Comment'), __('تعليقات (%) Comments')); ?>
<?php if ( comments_open() ) : ?>
<a href="#postcomment" title="<?php _e("علق Comment"); ?>">&raquo;</a>
<?php endif; ?>
</h3>
<?php if ( $comments ) : ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) : ?>
<li id="comment-<?php comment_ID(); ?>">
<?php comment_text(); ?>
<p><cite><?php comment_author_link(); ?><?php comment_type(__('تعليق Comment'), __('تتبع Trackback'), __('Pingback')); ?> | <a href="#comment-<?php comment_ID() ?>"><?php comment_date('Y.m.d'); ?> <?php comment_time('H:i'); ?></a></cite> | <?php edit_comment_link(__('حرر Edit'), '', ''); ?></p>
</li>
<?php endforeach; ?>
</ol>
<?php else : // If there are no comments yet ?>
<p><?php _e('لا تعليقات إلى الآن'); ?></p>
<p><?php _e('No comments yet.'); ?></p>
<?php endif; ?>
<p><?php comments_rss_link(__('خلاصات <abbr title="Really Simple Syndication">RSS</abbr>')); ?>
<?php if ( pings_open() ) : ?>
<a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?></a>
<?php endif; ?>
</p>
<?php if ( comments_open() ) : ?>
<h2 id="postcomment"><?php _e('علق Comment'); ?></h2>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>يتعين عليك <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">الدخول</a> لتعلق.</p>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <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') ?>">Logout &raquo;</a></p>
<?php else : ?>
<p>لن تحتاج لإدخال سطور وفقرات جديدة بنفسك. عنوان بريدك لن ينشر أبدا. بإمكانك استعمال <acronym title='Hypertext Markup Language'>HTML</acronym>: <span text-align="left"><code><?php echo allowed_tags(); ?></code></span></p>
<p><label for="author">اسمك Name</label></p>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /><?php if ($req) _e('(ضروري required)'); ?></p>
<p><label for="email">بريدك الإلكتروني Email</label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
<?php if ($req) _e('(ضروري required)'); ?></p>
<p><label for="url">موقعك <acronym title='Uniform Resource Identifier'>URI</acronym></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="2" /></p>
<?php endif; ?>
<p><label for="comment">تعليقك Comment</label></p>
<p><textarea name="comment" id="comment" cols="60" rows="4" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="علق Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p><?php _e('عفوا، لا تعليقات في الوقت الحالي.'); ?></p>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>