\n";
include(TEMPLATEPATH."/ads/after-trackbacks-links.php");
IF ($obt_total_trackbacks){
echo "
\n";
FOREACH ($obt_trackbacks as $comment){
IF (in_array($comment->comment_type,array("pingback","trackback"))){
echo "\t
comment_author,true)."\" />comment_author_url}\" rel=\"nofollow\">".esc_html($comment->comment_author,true).": ".obt_translate("%1 ago",obt_time_ago($comment->comment_date_gmt))."\n";
IF ($obt_can_edit_comments){
echo " - ";
IF (OBT_COMMENT_MODERATION_LINKS){
IF (!$comment->comment_approved && $obt_can_moderate_comments){
$obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=approvecomment&p={$comment->comment_post_ID}&c={$comment->comment_ID}";
IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"approve-comment_{$comment->comment_ID}");
echo "".obt_translate("Approve")." | ";
};
echo "comment_ID}\">".obt_translate("Edit")." | ";
IF ($comment->comment_approved && $obt_can_moderate_comments){
$obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=unapprovecomment&p={$comment->comment_post_ID}&c={$comment->comment_ID}";
IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"unapprove-comment_{$comment->comment_ID}");
echo "".obt_translate("Unapprove")." | ";
};
IF ($obt_can_delete_comments){
$obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=deletecomment&p={$comment->comment_post_ID}&c={$comment->comment_ID}";
IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"delete-comment_{$comment->comment_ID}");
echo "".obt_translate("Delete")." | ";
};
$obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=deletecomment&dt=spam&p={$comment->comment_post_ID}&c={$comment->comment_ID}";
IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"delete-comment_{$comment->comment_ID}");
echo "".obt_translate("Spam")."";
}ELSE{
echo "comment_ID}\">".obt_translate("Edit")."";
IF ($obt_can_delete_comments) echo " | comment_post_ID}&comment={$comment->comment_ID}\" onclick=\"return confirm('".obt_translate("Delete this trackback?")."')\">".obt_translate("Delete")."";
};
}ELSE edit_comment_link(obt_translate("Edit trackback"),"
","
\n");
echo "
\n";
};
};
echo "
\n";
};
IF ($post->ping_status == "open") echo "
".obt_translate("To notify a mention on this post in your blog, enable automated notification (Options > Discussion in WordPress) or specify this trackback url").": ".obt_breakable_url(obt_fix_link(trackback_url(false)))."
\n";
ELSE echo "
".obt_translate("Trackbacks have been disabled for this post").".
\n"; echo "
"; IF ($obt_total_comments == 1) echo obt_translate("1 comment"); ELSEIF ($obt_total_comments > 1) echo obt_translate("%1 comments",$obt_total_comments); ELSE{ IF ($post->comment_status == "open") echo obt_translate("No comments"); ELSE echo obt_translate("Comments disabled"); }; IF ($obt_total_pending_comments){ echo " - "; echo ($obt_total_pending_comments == 1)? obt_translate("1 comment awaiting moderation") : obt_translate("%1 comments awaiting moderation",$obt_total_pending_comments); }; echo "
\n"; include(TEMPLATEPATH."/ads/before-comments-links.php"); IF (obt_get_themeoption("feed-comments") || (obt_get_themeoption("feed-single") && $post->comment_status == "open")){ echo "\n"; IF (obt_get_themeoption("feed-comments")) echo "\t
".obt_translate("All comments on this blog")." (RSS) \n";
IF (obt_get_themeoption("feed-single") && $post->comment_status == "open") echo "\t
".obt_translate("Comments on this post")." (RSS) \n";
echo "
\n"; }; include(TEMPLATEPATH."/ads/after-comments-links.php"); IF (strlen($post->post_password) && $_COOKIE["wp-postpass_".COOKIEHASH] != $post->post_password){ echo "\n"; }ELSE{ IF ($obt_total_comments || $obt_total_pending_comments){ IF ($obt_comments_order != "newer" && $post->comment_status == "open"){ echo "\n"; echo "\t
".obt_translate("Write a comment")." ";
echo "
\n"; }; $obt_comment_count = 0; echo "\n"; echo "
\n"; IF (obt_get_themeoption("gravatars")){ if (function_exists("get_avatar")){ if (get_option("avatar_default") == "mystery") $gravatar_default = "http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=26"; elseif (get_option("avatar_default") == "blank") $gravatar_default = includes_url("images/blank.gif"); elseif (!empty($comment->comment_author_email) && get_option("avatar_default") == "gravatar_default") $gravatar_default = ""; elseif (get_option("avatar_default") == "gravatar_default") $gravatar_default = "http://www.gravatar.com/avatar/?s=26"; else $gravatar_default = get_option("avatar_default"); $gravatar_rating = get_option("avatar_rating"); }else{ $gravatar_default = get_bloginfo("template_directory")."/images/default-gravatar.gif"; $gravatar_rating = "X"; }; echo "
comment_author_email)."?rating={$gravatar_rating}&size=26&default=".urlencode($gravatar_default)."\" width=\"26\" height=\"26\" alt=\"Gravatar\" class=\"gravatar\" />\n";
};
include(TEMPLATEPATH."/ads/before-comment-header.php");
$comment_number = ($obt_comments_order == "newer")? $obt_total_comments-$obt_comment_count-$obt_comments_start+1 : $obt_comment_count+$obt_comments_start;
IF ($comment->comment_approved){
IF ($obt_comments_order != "newer" && $obt_comments_this_page == 1) $obt_comment_url = "{$obt_post_url}#".obt_translate("comment")."-".get_comment_ID();
ELSE $obt_comment_url = obt_comments_page_url($obt_post_url,$obt_comments_this_page,get_comment_ID());
echo "#{$comment_number}. ";
}ELSE echo "??. ";
$obt_comment_author = (strlen($comment->comment_author))? $comment->comment_author : obt_translate("Anonymous");
echo (preg_match("'^http:\/\/(.*)\.(.*)$'",$comment->comment_author_url))? "comment_author_url}\" rel=\"nofollow\" title=\"".obt_translate("Visit %1's website",esc_html($obt_comment_author,true))."\">".esc_html($obt_comment_author,true)."" : "".esc_html($obt_comment_author,true)."";
echo (obt_get_themeoption("gravatars"))? "
\n"; echo "\n" : ", "; echo obt_translate("%1 ago",obt_time_ago($comment->comment_date_gmt))."\n"; IF ($obt_can_edit_comments && strlen($comment->comment_author_email)) echo " / comment_author_email,true)."\" title=\"".obt_translate("Send an email to %1",esc_html($obt_comment_author,true))."\">".esc_html($comment->comment_author_email,true)." / {$comment->comment_author_IP}"; include(TEMPLATEPATH."/ads/after-comment-header.php"); echo "
".obt_translate("Unapproved").": ".obt_translate("This comment is awaiting moderation").".
\n"; }; include(TEMPLATEPATH."/ads/before-comment-content.php"); $obt_comment_text = get_comment_text(); $obt_comment_text = apply_filters("comment_text",$obt_comment_text); echo $obt_comment_text; include(TEMPLATEPATH."/ads/after-comment-content.php"); IF ($obt_can_edit_comments){ echo ""; IF (OBT_COMMENT_MODERATION_LINKS){ IF (!$comment->comment_approved && $obt_can_moderate_comments){ $obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=approvecomment&p={$comment->comment_post_ID}&c={$comment->comment_ID}"; IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"approve-comment_{$comment->comment_ID}"); echo "".obt_translate("Approve")." | "; }; echo "comment_ID}\">".obt_translate("Edit")." | "; IF ($comment->comment_approved && $obt_can_moderate_comments){ $obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=unapprovecomment&p={$comment->comment_post_ID}&c={$comment->comment_ID}"; IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"unapprove-comment_{$comment->comment_ID}"); echo "".obt_translate("Unapprove")." | "; }; IF ($obt_can_delete_comments){ $obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=deletecomment&p={$comment->comment_post_ID}&c={$comment->comment_ID}"; IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"delete-comment_{$comment->comment_ID}"); echo "".obt_translate("Delete")." | "; }; $obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=deletecomment&dt=spam&p={$comment->comment_post_ID}&c={$comment->comment_ID}"; IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"delete-comment_{$comment->comment_ID}"); echo "".obt_translate("Spam").""; }ELSE{ echo "comment_ID}\">".obt_translate("Edit").""; IF ($obt_can_delete_comments) echo " | comment_post_ID}&comment={$comment->comment_ID}\" onclick=\"return confirm('".obt_translate("Delete this comment?")."')\">".obt_translate("Delete").""; }; echo "
\n"; }ELSE edit_comment_link(obt_translate("Edit comment"),"","
\n"); echo "\n"; echo "\t
".obt_translate("Write a comment")." ";
echo "
\n"; }; }ELSE{ IF ($post->comment_status == "open") echo "".obt_translate("Be the first to write a comment on this post").".
\n"; ELSE echo "".obt_translate("Comments have been disabled for this post").".
\n"; }; }; echo "\n"; include(TEMPLATEPATH."/ads/after-comments.php"); IF ($obt_comments_order != "newer") include(TEMPLATEPATH."/comments-form.php"); IF (!$obt_comments_paginated){ include(TEMPLATEPATH."/ads/before-trackbacks.php"); echo "\n"; echo "
"; IF ($obt_total_trackbacks == 1) echo obt_translate("1 trackback"); ELSEIF ($obt_total_trackbacks > 1) echo obt_translate("%1 trackbacks",$obt_total_trackbacks); ELSE{ IF ($post->ping_status == "open") echo obt_translate("No trackbacks"); ELSE echo obt_translate("Trackbacks disabled"); }; echo "
\n"; include(TEMPLATEPATH."/ads/before-trackbacks-links.php"); echo "\n"; echo "\t
".obt_translate("All links to this blog")." (Technorati) \n";
echo "\t
".obt_translate("Links to this post")." (Technorati) \n";
echo "
\n"; include(TEMPLATEPATH."/ads/after-trackbacks-links.php"); IF ($obt_total_trackbacks){ echo "\n"; FOREACH ($obt_trackbacks as $comment){ IF (in_array($comment->comment_type,array("pingback","trackback"))){ echo "\t
comment_author,true)."\" />comment_author_url}\" rel=\"nofollow\">".esc_html($comment->comment_author,true).": ".obt_translate("%1 ago",obt_time_ago($comment->comment_date_gmt))."\n";
IF ($obt_can_edit_comments){
echo " - ";
IF (OBT_COMMENT_MODERATION_LINKS){
IF (!$comment->comment_approved && $obt_can_moderate_comments){
$obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=approvecomment&p={$comment->comment_post_ID}&c={$comment->comment_ID}";
IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"approve-comment_{$comment->comment_ID}");
echo "".obt_translate("Approve")." | ";
};
echo "comment_ID}\">".obt_translate("Edit")." | ";
IF ($comment->comment_approved && $obt_can_moderate_comments){
$obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=unapprovecomment&p={$comment->comment_post_ID}&c={$comment->comment_ID}";
IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"unapprove-comment_{$comment->comment_ID}");
echo "".obt_translate("Unapprove")." | ";
};
IF ($obt_can_delete_comments){
$obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=deletecomment&p={$comment->comment_post_ID}&c={$comment->comment_ID}";
IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"delete-comment_{$comment->comment_ID}");
echo "".obt_translate("Delete")." | ";
};
$obt_moderation_link = get_option("siteurl")."/wp-admin/comment.php?action=deletecomment&dt=spam&p={$comment->comment_post_ID}&c={$comment->comment_ID}";
IF (function_exists("wp_nonce_url")) $obt_moderation_link = wp_nonce_url($obt_moderation_link,"delete-comment_{$comment->comment_ID}");
echo "".obt_translate("Spam")."";
}ELSE{
echo "comment_ID}\">".obt_translate("Edit")."";
IF ($obt_can_delete_comments) echo " | comment_post_ID}&comment={$comment->comment_ID}\" onclick=\"return confirm('".obt_translate("Delete this trackback?")."')\">".obt_translate("Delete")."";
};
}ELSE edit_comment_link(obt_translate("Edit trackback")," \n";
};
};
echo "
\n"; }; IF ($post->ping_status == "open") echo "","
\n"); echo "".obt_translate("To notify a mention on this post in your blog, enable automated notification (Options > Discussion in WordPress) or specify this trackback url").": ".obt_breakable_url(obt_fix_link(trackback_url(false)))."
\n"; ELSE echo "".obt_translate("Trackbacks have been disabled for this post").".
\n"; include(TEMPLATEPATH."/ads/after-trackbacks.php"); include(TEMPLATEPATH."/ads/before-comments-sidebar.php"); include(TEMPLATEPATH."/ads/after-comments-sidebar.php"); }; echo "