<?php /* * Comments */ $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', 'articulacao'), '<span class="required">*</span>') : '') . '</p>'; $p2_comment_args = array('title_reply' => __('Reply', 'articulacao'), 'comment_field' => $comment_field, 'comment_notes_before' => $comment_notes_before, 'comment_notes_after' => '<span class="progress spinner-comment-new"></span>', 'label_submit' => __('Reply', 'articulacao'), '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', 'articulacao'); ?> </a> </p> </div> <?php } wp_link_pages(array('before' => '<p class="page-nav">' . __('Pages:', 'articulacao'))); ?> <div class="bottom-of-entry"> </div> <?php
$p2_comment_args = array( 'title_reply' => __( 'Reply', 'p2' ), 'comment_field' => $comment_field, 'comment_notes_before' => $comment_notes_before, 'comment_notes_after' => '<span class="progress spinner-comment-new"></span>', 'label_submit' => __( 'Reply', 'p2' ), '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++; ?>