Задать вопрос
  • Как включить время комментария Wordpress?

    @26boom26 Автор вопроса
    <?php
    
    if ( post_password_required() ) {
    	return;
    }
    ?>
    
    <div id="comments" class="comments-area">
    	
    
    	<?php if ( have_comments() ) : ?>
    		<div class="list-comments">
    			<h5><?php comments_number( esc_html__('0 комментариев', 'icos'), esc_html__('1 комментарий', 'icos'), esc_html__('% комментариев', 'icos') ); ?></h5>
    		    <ol class="comment-list">
    					<?php wp_list_comments('callback=icos_theme_comment'); ?>
    				<?php
    					// Are there comments to navigate through?
    					if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
    				?>
    					<nav class="navigation comment-navigation" role="navigation">		   
    						<div class="nav-previous"><?php previous_comments_link( esc_html__( '&larr; Первые комментарии', 'icos' ) ); ?></div>
    						<div class="nav-next"><?php next_comments_link( esc_html__( 'Новые комментарии &rarr;', 'icos' ) ); ?></div>
    		                <div class="clearfix"></div>
    					</nav><!-- .comment-navigation -->
    				<?php endif; // Check for comment navigation ?>
    
    				<?php if ( ! comments_open() && get_comments_number() ) : ?>
    					<p class="no-comments"><?php esc_html_e( 'Закрыто' , 'icos' ); ?></p>
    				<?php endif; ?>	
    		    </ol>
    		</div>		
    	<?php endif; ?>	
    
    	<div class="form-message text-left">
    	<?php
    		$aria_req = ( $req ? " aria-required='true'" : '' );
            $comment_args = array(
                    'id_form' 				=> 'reply-form',
                    'title_reply_before'	=> '<h5 id="reply-title" class="comment-reply-title">',                              
                    'title_reply_after'		=> '</h5>',                              
                    'title_reply'   		=> esc_html__('Оставить комментарий', 'icos'),
                    'fields' 				=> apply_filters( 'comment_form_default_fields', array(
                        'author' 			=> '<div class="input-field"><input id="author" name="author" id="name" class="input-line" type="text" value="" required><label class="input-title">'. esc_html__( 'Ваше имя', 'icos' ) .'</label></div>',
                        'email' 			=> '<div class="input-field"><input id="author" name="email" id="name" class="input-line" type="email" value="" required><label class="input-title">'. esc_html__( 'Ваш e-mail', 'icos' ) .'</label></div>',
                    ) ),                                
                     'comment_field' 		=> '<div class="input-field"><textarea required name="comment" '.$aria_req.' id="comment-message" class="txtarea input-line" aria-required="true"></textarea><label class="input-title">'. esc_html__( 'Ваш комментарий', 'icos' ) .'</label></div>',
                     'label_submit' 		=> esc_html__( 'Отправить', 'icos' ),
                     'comment_notes_before' => '',
                     'comment_notes_after' 	=> '',   
                     'class_submit'      	=> 'btn',            
    				 'format'        		=> 'xhtml',
    	        )
    	    ?>
    	    <?php comment_form($comment_args); ?>
    	</div>
    </div>	
    
    <!-- #comments -->