'id_submit' => 'comment-submit', ); ?> <?php if ( get_comments_number() > 0 && ! post_password_required() ) : ?> <div class="discussion" style="display: none"> <p> <?php p2_discussion_links(); ?> <a href="#" class="show-comments"><?php _e( 'Toggle Comments', 'p2' ); ?></a> </p> </div> <?php endif; wp_link_pages( array( 'before' => '<p class="page-nav">' . __( 'Pages:', 'p2' ) ) ); ?> <div class="bottom-of-entry"> </div> <?php if ( ! p2_is_ajax_request() ) : comments_template(); $pc = 0; if ( p2_show_comment_form() && $pc == 0 && ! post_password_required() ) : $pc++; ?> <div class="respond-wrap" <?php echo ( ! is_singular() ) ? 'style="display: none; "' : ''; ?>> <?php comment_form( $p2_comment_args ); ?> </div><?php endif; endif; ?> </li>
?> <a href="#" class="show-comments"><?php _e('Toggle Comments', 'articulacao'); ?> </a> </p> </div> <?php } wp_link_pages(array('before' => '<p class="page-nav">' . __('Pages:', 'articulacao'))); ?> <div class="bottom-of-entry"> </div> <?php if (p2_is_ajax_request()) { ?> <ul id="comments-<?php the_ID(); ?> " class="commentlist inlinecomments"></ul> <?php } else { comments_template(); $pc = 0; if (p2_show_comment_form() && $pc == 0 && !post_password_required()) { $pc++; ?> <div class="respond-wrap" <?php echo !is_singular() ? 'style="display: none; "' : ''; ?>
<?php if ( get_comments_number() > 0 && ! post_password_required() ) : ?> <div class="discussion" style="display: none"> <p> <?php p2_discussion_links(); ?> <a href="#" class="show-comments"><?php _e( 'Toggle Comments', 'p2' ); ?></a> </p> </div> <?php endif; ?> <?php wp_link_pages( array( 'before' => '<p class="page-nav">' . __( 'Pages:', 'p2' ) ) ); ?> <div class="bottom-of-entry"> </div> <?php if ( ! p2_is_ajax_request() ) : ?> <?php comments_template(); ?> <?php $pc = 0; ?> <?php if ( p2_show_comment_form() && $pc == 0 && ! post_password_required() ) : ?> <?php $pc++; ?> <div class="respond-wrap"<?php if ( ! is_singular() ): ?> style="display: none; "<?php endif; ?>> <?php $p2_comment_args = array( 'title_reply' => __( 'Reply', 'p2' ), 'comment_field' => '<div class="form"><textarea id="comment" class="expand50-100" name="comment" cols="45" rows="3"></textarea></div> <label class="post-error" for="comment" id="commenttext_error"></label>', 'comment_notes_before' => '<p class="comment-notes">' . ( get_option( 'require_name_email' ) ? sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' ) : '' ) . '</p>', 'comment_notes_after' => sprintf( '<span class="progress"><img src="%1$s" alt="%2$s" title="%2$s" /></span>', str_replace( WP_CONTENT_DIR, content_url(), locate_template( array( "i/indicator.gif" ) ) ), esc_attr( 'Loading...', 'p2' ) ),