Ошибка
-
Здравствуйте.
Установил плагин, автоматом не заработало. Следую Вашим инструкциям на Вашем сайте добавил код
`<?php if(function_exists(‘wp_russian_quicktags’)){
wp_russian_quicktags();
} ?>`
Выходит вот такая вот ошибка https://imgur.com/fn6wsrv
На всякий случай код целиком<?php /** * The template for displaying comments. * * The area of the page that contains both current comments * and the comment form. * * @package redwaves */ /* * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $post; if ( post_password_required() ) { ?> <p class="nocomments"> <?php esc_html_e( 'This post is password protected. Enter the password to view comments.', 'redwaves' ); ?> </p> <?php return ''; } ?> <?php if ( have_comments() ) { ?> <div id="comments" class="comments-wrap section-box"> <?php echo redwaves_render_section_title( '', 'before' ); comments_number( esc_html__( 'No Comments', 'redwaves' ), esc_html__( 'One Comment', 'redwaves' ), esc_html__( '% Comments', 'redwaves' ) ); echo redwaves_render_section_title( '', 'after' ); ?> <ol class="commentlist clearfix"> <div class="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> </div> <?php wp_list_comments( 'type=comment&callback=redwaves_custom_comments' ); ?> <div class="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> </div> </ol> </div> <?php } else { // this is displayed if there are no comments so far ?> <?php if ( 'open' == $post->comment_status ) { // comments are open, but there are no comments ?> <?php } else { // comments are closed ?> <p class="nocomments"></p> <?php } ?> <?php } ?> <?php if ( 'open' == $post->comment_status ) { ?> <div id="commentsAdd" class="comment-form-box section-box"> <?php global $aria_req, $redwaves; $comments_args = array( 'title_reply_before' => redwaves_render_section_title( '', 'before' ), 'title_reply_after' => redwaves_render_section_title( '', 'after' ), 'title_reply' => esc_attr( $redwaves['post_comm_title'] ), 'title_reply_to' => esc_html__( 'Leave a Reply to %s', 'redwaves' ), 'comment_notes_after' => '', 'label_submit' => esc_html__( 'Post Comment', 'redwaves' ), 'comment_field' => ' <div class="comment-form-comment form-group"> <?php if(function_exists('wp_russian_quicktags')){ wp_russian_quicktags(); } ?> <textarea class="comment-box form-control" id="comment-box" name="comment" placeholder="'. esc_html__( 'Comment', 'redwaves' ) .'" cols="45" rows="8" aria-required="true"></textarea> </div>', 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => ' <div class="row grid spacing-10"> <div class="comment-form-author grid-item form-group col-md-4 col-sm-4 col-xs-12"> <label style="display:none" for="author">'. esc_html__( 'Name', 'redwaves' ) .' <span class="required"></span> </label>' . ( $req ? '' : '' ) .' <input class="form-control" id="author" name="author" type="text" placeholder="'. esc_html__( 'Name', 'redwaves' ).'*" value="'.esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /> </div>', 'email' => ' <div class="comment-form-email grid-item form-group col-md-4 col-sm-4 col-xs-12"> <label style="display:none" for="email">'. esc_html__( 'Email', 'redwaves' ) . ' <span class="required"></span> </label>' . ($req ? '' : '' ) . ' <input class="form-control" id="email" name="email" type="text" placeholder="'. esc_html__( 'Email', 'redwaves' ).'*" value="'. esc_attr( $commenter['comment_author_email'] ).'" size="30"'.$aria_req.' /> </div>', 'url' => ' <div class="comment-form-url grid-item form-group col-md-4 col-sm-4 col-xs-12"> <label style="display:none" for="url">' . esc_html__( 'Website', 'redwaves' ).'</label>' . ' <input class="form-control" id="url" name="url" type="text" placeholder="'. esc_html__( 'Website', 'redwaves' ).'" value="' . esc_url( $commenter['comment_author_url'] ) . '" size="30" /> </div> </div>', ) ) ); comment_form( $comments_args ); ?> </div> <?php } ?>
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Ошибка’ is closed to new replies.