*'); $fields = array( 'author' => '

', 'email' => '

', 'url' => '

', ); $fields = apply_filters('comment_form_default_fields', $fields); $comment = get_comment($post_id); $comment_parent = isset($comment->comment_parent) ? $comment->comment_parent : '0'; $form = ''; return $form; } function comment_editor_toolbar($args, $post_id) { global $lr_commenting_settings; $post_type = (is_user_logged_in()) ? "post-btn" : "login-btn"; $toolbar = '
'; $toolbar .= '
'; if( ! empty( $lr_commenting_settings['editor_enable'] ) ) { $toolbar .= ' '; if( ! empty( $lr_commenting_settings['image_upload_enable'] ) ) { $toolbar .= ' '; } } if ( ! empty( $lr_commenting_settings['sharing_enable'] ) ) { $toolbar .= '
'; $toolbar .= ' '; } $toolbar .= '
'; $toolbar .= ' '; $toolbar .= ' Post comment '; $toolbar .= '
'; $toolbar .= '
'; $toolbar .= get_comment_fields( $args, $post_id ) . comment_id_fields($post_id); return $toolbar; } global $post, $lr_commenting_settings; $post_id = $post->ID; $commenter = wp_get_current_commenter(); $user = wp_get_current_user(); $user_identity = $user->exists() ? $user->display_name : ''; if ( ! isset( $args['format'] ) ) $args['format'] = current_theme_supports('html5', 'comment-form') ? 'html5' : 'xhtml'; $req = get_option('require_name_email'); $aria_req = ( $req ? " aria-required='true'" : '' ); $html5 = 'html5' === $args['format']; $defaults = array( 'comment_field' => ' ', 'comment_images' => '
', /** This filter is documented in wp-includes/link-template.php */ 'logged_in_as' => '

' . sprintf(__('Logged in as %2$s. Log out?'), get_edit_user_link(), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink($post_id)))) . '

', 'comment-editor-toolbar' => comment_editor_toolbar($args, $post_id), 'id_form' => 'lr_comment_form', 'id_submit' => 'submit', 'name_submit' => 'submit', 'title_reply' => $lr_commenting_settings['commenting_title'], 'title_reply_to' => __('Leave a Reply to %s'), 'cancel_reply_link' => __('Cancel reply'), 'label_submit' => __('Post Comment'), 'format' => 'xhtml', ); // Filter the comment form default arguments. // Use 'comment_form_default_fields' to filter the comment fields. $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); if ( comments_open( $post_id ) ) { ?>
>

loginradius_get_comments();