/  3
 
ﺗﻌ  ﺮ ﻳﺐ ﻣﻠ ﻔ ﺎ ﺕ ﻭ ﻭ ﺭﺩﺑ ﺮ ﻳﺲ 
:
ﺍﻟﺪ  ﺭﺱﺍﻟﺜ ﺎ ﻟﺚ 
-comments.php
ﻣﺜ ﺎ ﻝﻣ ُﺨ ﺘ ﻠ ﻖ ﻟﻤ ﻠ ﻒ 
comments.php
>?php 
// Do not delete these lines
if  (!empty($_SERVER ['SCRIPT_FILENAME']) && 'comments.php'== basename($_SERVER ['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); 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 
?><pclass="nocomments">
ﻫﺬ ها ﻟ ﺘ ﺪ  و ﻳ ﻨ ﺔ  ﻣ ﺤ  ﻤ  ﻴ  ّﺔ  ﺑ ﻜ  ﻠ  ﻤ ﺔ  ﺳ ﺮ 
.
أد ﺧﻞ ا ﻟ ﻜ  ﻠ  ﻤ ﺔ  ﳌ ﺸ ﺎ  ﻫﺪ ةا ﻟ ﺘ  ﻌ  ﻠ  ﻴ  ﻘﺎ ت
.</p><?phpreturn;}}
 /* This variable is for alternating comment background */ 
$oddcomment='class="alt" '; ?>
<!-- comment area -->
<divclass="comment_area"> <?php if  ($comments) :?>  <h2><?php comments_number('0
 ﺗ ﻌ  ﻠ  ﻴ ﻖ 
','1
 ﺗ ﻌ  ﻠ  ﻴ ﻖ 
','%
 ﺗ ﻌ  ﻠ  ﻴ  ﻘﺎ ت
'(;?<
 ﻋ ﻠ ﻰ 
#8220;<?php  the_title();?>&#8221;</h2>  <?php foreach ($comments as $comment) :?>  <divclass="comment_box" id="comment-<?php comment_ID()?>">  <divclass="comment_header"> <?php comment_author_link ()?> 
¦
 <ahref ="#comment-<?php comment_ID()?>"  title=""><?php comment_date('j F Y')?> 
ا ﻟ ﺴ ﺎ  ﻋﺔ 
 <?php comment_time()?></a> <?php  edit_comment_link ('edit','&nbsp;&nbsp;','');?>  <?php if  ($comment->comment_approved =='0') :?>  <br /><em>
ﺗ ﻌ  ﻠ  ﻴ  ﻘﻚ  ﺑﺈ  ﻧ ﺘ  ﻈ ﺎ  را ﳌ ﻮ ا ﻓ ﻘﺔ 
.</em> <?php endif ;?>  </div> <divclass="comment_details">  <divclass="comment_avatar">  <?php $pathtotheme=get_bloginfo('stylesheet_directory');  if (!empty($comment-> comment_author_email)) {
 
ﺗﻌ  ﺮ ﻳﺐ ﻣﻠ ﻔ ﺎ ﺕ ﻭ ﻭ ﺭﺩﺑ ﺮ ﻳﺲ 
:
ﺍﻟﺪ  ﺭﺱﺍﻟﺜ ﺎ ﻟﺚ 
-comments.php
 $md5=md5($comment-> comment_author_email);  $default=urlencode("$pathtotheme /images/avatar.jpg");  echo "<img src='http://www.gravatar.com/avatar.php?gravatar_id= $md5&amp;size=50&amp;default=$default' width='50' height='50' alt='commenter' />"; } ?> </div> <divclass="comment_comment">  <?php comment_text();?>  </div> </div> </div> <?php endforeach;
 /* end for each comment */ 
 ?><?php else:
 // this is displayed if there are no comments so far 
?> <?php if  ('open'==$post->comment_status) :?>  
<!-- If comments are open, but there are no comments. -->
 <?php else:
 // comments are closed 
?> 
<!-- If comments are closed. -->
 <pclass="nocomments">
ا ﻟ ﺘ  ﻌ  ﻠ  ﻴ  ﻘﺎ ت ﻣ ﻐ  ﻠ  ﻘﺔ 
.</p> <?php endif ;?> <?php endif ;?> <?php if  ('open'==$post->comment_status) :?>  <h2> 
أ ﺿ ﻒ  ﺗ ﻌ  ﻠ  ﻴ ﻖ 
)
ا ﻟ ﺮ  ﺟﺎ ء ﻋﺪ مإ ﺳ ﺘ  ﺨ ﺪ اما ﻟ ﻠ  ﻬ  ﺠ ﺔ ا ﻟ ﻌ ﺎ  ﻣ ﻴ ﺔ 
)</h2> <divclass="comment_form">  <?php if  (get_option('comment_registration') && !$user_ID) :?> <p>
ﻳ ﺠ ﺐ 
 <ahref ="<?php echo get_option('siteurl');?> /wp-login.php?redirect_to=<? php echo urlencode(get_permalink ());?>">
ﺗ ﺴ  ﺠ  ﻴ ﻞ ا ﻟﺪ  ﺧ ﻮ ل
</a> 
 ﻗ ﺒ ﻞ ا ﻟ ﺘ  ﻌ  ﻠ  ﻴ ﻖ 
</p><?php else:?>  <formaction="<?php echo get_option('siteurl');?> /wp-comments-post.php"  method="post" id="commentform">  <?php if  ($user_ID) :?>  <divclass="comment_form_left"> <p>
دا ﺧﻞ  ﺑﺈ  ﺳﻢ 
 <ahref ="<?php echo get_option('siteurl');?> /wp-admin/ profile.php"><?php echo $user_identity;?></a>.<ahref ="<?php echo  get_option('siteurl');?> /wp-login.php?action=logout" title="Log out of this account">
ﺧ ﺮ  وج 
 &raquo;</a></p> </div><?php else:?>  <divclass="comment_form_left">  <divclass="comment_form_name_desc comment_form_small_font">
اﻹ ﺳﻢ 
 )
 ﺑﺎ  ﻟ ﻌ  ﺮ  ﺑﻲ 
):</div>

Share & Embed

More from this user

Add a Comment

Characters: ...