\n"; IF ($post->comment_status == "open"){ echo "

".obt_translate("Write a comment")."

\n"; echo "

".obt_translate("If you want to add your comment on this post, simply fill out the next form").":

\n"; IF (get_option("comment_registration") && !$user_ID) echo "

".obt_translate("You have to be logged-in to write a comment").": (".obt_translate("Log-in").").

\n"; ELSE { include(TEMPLATEPATH."/ads/before-comments-form.php"); echo "
\n"; IF ($user_ID) echo "

".obt_translate("Logged-in as %1","{$user_identity}")." (".obt_translate("exit").").

\n

\n"; ELSE { echo "

\n"; echo "
\n"; echo "
\n"; echo "
\n"; }; echo "
\n"; IF (obt_get_themeoption("comment-notification")){ $obt_notification_checked = false; IF (!$obt_can_moderate_comments){ IF ($user_ID) $commenter_email = $userdata->user_email; ELSEIF (strlen($comment_author_email)) $commenter_email = $comment_author_email; IF ($commenter_email){ $obt_notification_emails = get_post_custom_values("comment-notification",$post->ID); $obt_notification_emails = $obt_notification_emails[0]; $obt_unserialized_notification_emails = unserialize($obt_notification_emails); IF ($obt_unserialized_notification_emails) $obt_notification_emails = $obt_unserialized_notification_emails; unset($obt_unserialized_notification_emails); IF (!is_array($obt_notification_emails)) $obt_notification_emails = array(); IF (isset($obt_notification_emails[$commenter_email])) $obt_notification_checked = (strlen($obt_notification_emails[$commenter_email]) > 0); ELSE $obt_notification_checked = (obt_get_themeoption("comment-notification-default") == 1); }ELSE $obt_notification_checked = (obt_get_themeoption("comment-notification-default") == 1); }; echo "\n"; }; echo "

\n"; echo "

\n"; echo "\n"; echo "ID}\" />\n"; $obt_time = time(); $obt_hash = md5($obt_time."/".$_SERVER["SERVER_SOFTWARE"]); echo "\n"; echo "\n"; do_action("comment_form",$post->ID); echo "

\n"; echo "
\n"; IF (!$user_ID && !strlen($comment_author)){ echo "\n"; }; include(TEMPLATEPATH."/ads/after-comments-form.php"); IF (!$user_ID && get_option("require_name_email")) echo "

* ".obt_translate("Required fields")."

\n"; echo "

".obt_translate("You can use these XHTML tags").": ".trim(allowed_tags()).".

\n"; }; }ELSEIF ($obt_total_comments){ echo "

".obt_translate("Comments disabled")."

\n"; echo "

".obt_translate("Comments have been disabled for this post").".

\n"; }; ?>