COMMENT REPLY
This commit is contained in:
parent
abbf8f0991
commit
514e01c707
|
@ -47,9 +47,8 @@ if ( ! function_exists('tainacan_Enqueues') ) {
|
|||
/**
|
||||
* Comments
|
||||
*/
|
||||
if (is_singular() && comments_open() && get_option('thread_comments')) {
|
||||
wp_enqueue_script('comment-reply');
|
||||
}
|
||||
if (is_singular() && comments_open() && get_option('thread_comments'))
|
||||
wp_enqueue_script( 'comment-reply' );
|
||||
}
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'tainacan_Enqueues');
|
|
@ -30,38 +30,9 @@ if (!function_exists('tainacan_Comments_Callback')) :
|
|||
</h5>
|
||||
<?php comment_text(); ?>
|
||||
<p>
|
||||
<?php comment_reply_link(array('reply_text' => 'Responder <i class="material-icons">chat_bubble_outline</i>'), $comment); ?>
|
||||
<?php comment_reply_link(); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <section id="comment-<?php comment_ID(); ?>">
|
||||
|
||||
<article>
|
||||
<figure class="comment-avatar">
|
||||
<?php $args = array('class' => 'img-fluid rounded-circle mr-sm-3', ); ?>
|
||||
<a href="<?php echo get_author_posts_url($comment->user_id); ?>"><?php echo get_avatar( $comment, 60, '', '', $args ); ?></a>
|
||||
</figure>
|
||||
<header class="comment-box">
|
||||
<div class="comment-head">
|
||||
<h6 class="comment-name by-author">Por
|
||||
<?php
|
||||
|
||||
if ($get_user && $user_id) {
|
||||
$user=get_userdata($user_id);
|
||||
echo '<a href="'.get_author_posts_url($user_id).'">'.$user->display_name.'</a>';
|
||||
} else {
|
||||
comment_author_link();
|
||||
}
|
||||
?>
|
||||
</h6>
|
||||
<time class="comment-date"><?php printf('%s às %s.', get_comment_date(), get_comment_time()); ?></time>
|
||||
<?php comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => '<i class="fa fa-reply"></i>', 'login_text' => '<i class="fa fa-block"></i>')); ?>
|
||||
</div>
|
||||
<div class="comment-content">
|
||||
<?php comment_text(); ?>
|
||||
</div>
|
||||
</header>
|
||||
</article>
|
||||
</section> -->
|
||||
<?php }
|
||||
endif;
|
Loading…
Reference in New Issue