(.*?)
@', $error,$errs); return $err.$errs[1]; } class INAP_comments{ function div(){ global $id, $post,$inapall; if ($post->comment_count > 0|| comments_open()){ if ( (is_single() && $inapall['show_comments_single'] == 1) || (is_page() && $inapall['show_comments_page'] == 1 )){ 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 echo "\n".'
'; _e('Trackbacks and Pingbacks','inap'); echo '
'; /**Editable Text Above.**/ foreach ($the_comments as $comment){ $alt = ($cn % 2 == 0) ? 'alt' : ''; if ('trackback' == $comment->comment_type || 'pingback' == $comment->comment_type) { INAP_comments::print_trackback($alt); } $cn++; } } }else{ //this block is used if all comments are shown. foreach ($the_comments as $comment){ $alt = ($cn % 2 == 0) ? 'alt' : ''; if ('trackback' == $comment->comment_type || 'pingback' == $comment->comment_type) { INAP_comments::print_trackback($alt); }else{ INAP_comments::print_comment($alt,$depth); } $cn++; } } if($depth != -1){echo ''.$inapall['comment_all_tag'].'>';} } } function avatar(){ global $inap_integration, $comment; if(isset($inap_integration['identicon'])){ echo $inap_integration['identicon']->identicon_build($comment->comment_author_email, $comment->comment_author); }elseif(function_exists('myavatars')){ myavatars(); }elseif(function_exists('monsterid_build_monster')){ monsterid_build_monster($comment->comment_author_email, $comment->comment_author); } } } class INAP_addcomments{ function div(){ global $id, $post,$inapall,$user_ID; if($inapall['comment_template'] == 1){ return; } if ( comments_open() ) { if ( (is_single() && $inapall['show_addcomments_single'] == 1) || (is_page() && $inapall['show_addcomments_page'] == 1 )){ echo "\n".'