Rework comments walker

This commit is contained in:
2018-12-21 20:40:28 +00:00
parent 6c747fcb9c
commit 426eef8051
7 changed files with 74 additions and 48 deletions

View File

@@ -1,4 +1,6 @@
<?php
require get_template_directory() . '/classes/walker.comments.php';
$form_settings = array(
class_form => 'comment-respond__form',
class_submit => 'comment-respond__submit',
@@ -35,12 +37,9 @@ $form_settings = array(
<div class="comments__body">
<ol class="comments__list">
<?php
wp_list_comments(
array(
'walker' => new Windycoys_Walker_Comment(),
'style' => 'ol',
)
);
wp_list_comments(array(
walker => new Windycoys_Walker_Comments(),
));
?>
</ol>
</div>