initial upload
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 218 B |
|
After Width: | Height: | Size: 291 B |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
@@ -0,0 +1,74 @@
|
||||
c<?php // Do not delete these lines
|
||||
if ('wp-comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
||||
die ('Please do not load this page directly. Thanks!');
|
||||
$req = get_settings('require_name_email');
|
||||
if (($withcomments) or ($single)) {
|
||||
|
||||
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><?php _e("Enter your password to view comments."); ?><p>
|
||||
<?php
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$comment_author = (isset($_COOKIE['comment_author_'.$cookiehash])) ? trim($_COOKIE['comment_author_'.$cookiehash]) : '';
|
||||
$comment_author_email = (isset($_COOKIE['comment_author_email_'.$cookiehash])) ? trim($_COOKIE['comment_author_email_'.$cookiehash]) : '';
|
||||
$comment_author_url = (isset($_COOKIE['comment_author_url_'.$cookiehash])) ? trim($_COOKIE['comment_author_url_'.$cookiehash]) : '';
|
||||
|
||||
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date");
|
||||
?>
|
||||
|
||||
<!-- You can start editing here. -->
|
||||
|
||||
<h2 id="comments"><?php comments_number(__('لا تعليقات No Comments'), __('تعليق واحد One Comment'),__('تعليقات (%) Comments')); ?>
|
||||
<?php if ('open' == $post->comment_status) { ?>
|
||||
<a href="#postcomment" title="<?php _e("علق Make a Comment"); ?>">»</a>
|
||||
<?php } ?>
|
||||
</h2>
|
||||
<?php if ('open' == $post->ping_status) { ?>
|
||||
<p>عنوان متابعة آثار التدوينة Trackback URI</p>
|
||||
<em><?php trackback_url() ?></em>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if ($comments) { ?>
|
||||
<div id="commentlist">
|
||||
<?php foreach ($comments as $comment) { ?>
|
||||
<p><cite><?php _e("كتب/كتبت"); ?> <?php comment_author_link() ?> <?php _e("said..."); ?></cite></p>
|
||||
<?php comment_text() ?>
|
||||
<a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a> <?php comment_date() ?> | <?php edit_comment_link(__("حرر هذا التعليق Edit Comment"), ''); ?></p>
|
||||
</li>
|
||||
<?php } // end for each comment ?>
|
||||
</div>
|
||||
<?php } else { // this is displayed if there are no comments so far ?>
|
||||
<p><?php _e("لا تعليقات إلى الآن No Comments Yet"); ?></p>
|
||||
<?php } ?>
|
||||
<p><?php comments_rss_link(__("احصل على التعليقات على هذه التدوينة بطريقة RSS")); ?></p>
|
||||
<h2 id="postcomment"><?php _e("علق Make a Comment"); ?></h2>
|
||||
<?php if ('open' == $post->comment_status) { ?>
|
||||
<p><?php _e("بإمكانك استعمال HTML:"); ?> <code><?php echo allowed_tags(); ?></code></p>
|
||||
|
||||
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
|
||||
<p><label for="author">اسمك Name</label></p>
|
||||
<p><input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /><?php if ($req) _e('(required)'); ?><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /><input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" /></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="3" /></p>
|
||||
|
||||
<p><label for="comment">تعليقك Comment</label></p>
|
||||
<p><textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea></p>
|
||||
|
||||
<p><input name="submit" type="submit" tabindex="5" value="أرسل Send"/></p>
|
||||
</form>
|
||||
<?php } else { // comments are closed ?>
|
||||
<p><?php _e("عفوا، لا يمكنك التعليق الآن Sorry, the comment form is closed at this time."); ?></p>
|
||||
<?php } ?>
|
||||
|
||||
<?php // if you delete this the sky will fall on your head
|
||||
}
|
||||
?>
|
||||