Created
April 7, 2023 22:17
-
-
Save chrisbergr/2d9104908335140318041a1ec235a0a8 to your computer and use it in GitHub Desktop.
Webmention template overwrite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$comment = $args['comment']; | |
$depth = $args['depth']; | |
$tag = $args['tag']; | |
$has_children = $args['has_children']; | |
$commenter = $args['commenter']; | |
$show_pending_links = $args['show_pending_links']; | |
$moderation_note = $args['moderation_note']; | |
$args = $args['args']; | |
$add_below = 'comment'; | |
if( ! $utils = marlon_framework()->get_module( 'comment_utilities' ) ) { | |
return; | |
} | |
?> | |
<<?php echo esc_attr( $tag ); ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $has_children ? 'marlon-comment-item u-comment h-cite parent' : 'marlon-comment-item u-comment h-cite', $comment ); ?> itemprop="comment" itemscope itemtype="http://schema.org/Comment"> | |
<!-- ••••• --> | |
<div class="marlon-comment-item--header" role="complementary"> | |
<?php $utils->the_comment_author_vcard( '', '', $comment->comment_ID ); ?> | |
<?php $utils->the_commentlink_date( '<span class="marlon-published-date">', '</span>', true, $comment->comment_ID ); ?> | |
<?php edit_comment_link( 'edit', '<small class="edit-comment">', '</small>' ); ?> | |
<?php | |
/**/ | |
comment_reply_link( | |
array_merge( | |
$args, | |
array( | |
'add_below' => $add_below, | |
'depth' => $depth, | |
'max_depth' => $args['max_depth'], | |
'before' => '<small class="reply-comment">', | |
'after' => '</small>', | |
) | |
) | |
); | |
/**/ | |
?> | |
</div> | |
<div class="marlon-comment-item--content" itemprop="text"> | |
<?php if ( '0' === $comment->comment_approved ) : ?> | |
<p class="comment-meta-item"><em class="comment-awaiting-moderation"><?php echo esc_html( $moderation_note ); ?></em></p> | |
<?php endif; ?> | |
<?php comment_text(); ?> | |
</div> | |
<?php do_action( 'marlon_comment_footer' ); ?> | |
<!-- ••••• --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment