| Вот часть кода для комментариев, подскажите, где нужно поставить закрывающий тег li
PHP код: <ol class="commentlist">
<?php
function verstaka_comment($comment, $args, $depth){
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div class="line-comment"></div>
<div class="end"></div>
<div id="comment-<?php comment_ID(); ?>">
<div class="comment-author vcard">
<div class="comment-meta commentmetadata">
<?php echo get_avatar($comment,$size='60'); ?>
<?php edit_comment_link(__('Edit'),' ','') ?></div>
<?php printf(__('<cite class="fn">%s</cite> <span class="says">|</span>'), get_comment_author_link()) ?>
<span><?php printf(__('%1$s в %2$s'), get_comment_date('j F Y'), get_comment_time('G:i')) ?></span>
</div>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation.') ?></em>
<br>
<?php endif; ?>
<div class="comment_text"><?php comment_text() ?></div>
<div class="end"></div>
<div class="reply">
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</div>
</div>
<?php printf('<div class="line-comment"></div>'); ?>
<?php }
$args = array(
'reply_text' => 'Ответить',
'callback' => 'verstaka_comment'
);
wp_list_comments($args);
?>
</ol>
|