106 lines
4.1 KiB
PHP
106 lines
4.1 KiB
PHP
|
<?php
|
||
|
/* ---------------------------------------------------------------------------------------------
|
||
|
COMMENT FUNCTION
|
||
|
--------------------------------------------------------------------------------------------- */
|
||
|
|
||
|
if (!function_exists("escapium_comment")) {
|
||
|
function escapium_comment($comment, $args, $depth)
|
||
|
{
|
||
|
switch ($comment->comment_type):
|
||
|
case "pingback":
|
||
|
case "trackback": ?>
|
||
|
|
||
|
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
|
||
|
|
||
|
<?php __(
|
||
|
"Pingback:",
|
||
|
"escapium"
|
||
|
); ?> <?php comment_author_link(); ?> <?php edit_comment_link(
|
||
|
__("(Edit)", "escapium"),
|
||
|
'<span class="edit-link">',
|
||
|
"</span>"
|
||
|
); ?>
|
||
|
|
||
|
</li>
|
||
|
<?php break;
|
||
|
default:
|
||
|
global $post; ?>
|
||
|
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
|
||
|
|
||
|
<div id="comment-<?php comment_ID(); ?>" class="comment">
|
||
|
|
||
|
<?php echo get_avatar($comment, 80); ?>
|
||
|
|
||
|
<div class="comment-inner">
|
||
|
|
||
|
<div class="comment-header">
|
||
|
|
||
|
<?php printf('<cite class="fn">%1$s</cite>', get_comment_author_link()); ?>
|
||
|
|
||
|
<p><a href="<?php echo esc_url(
|
||
|
get_comment_link($comment->comment_ID)
|
||
|
); ?>"><?php printf(
|
||
|
_x('%1$s at %2$s', "[date] at [time of day]", "escapium"),
|
||
|
get_comment_date(),
|
||
|
get_comment_time()
|
||
|
); ?></a></p>
|
||
|
|
||
|
<div class="comment-actions">
|
||
|
|
||
|
<?php edit_comment_link(__("Edit", "escapium"), "", ""); ?>
|
||
|
|
||
|
<?php comment_reply_link(
|
||
|
array_merge($args, [
|
||
|
"reply_text" => __("Reply", "escapium"),
|
||
|
"depth" => $depth,
|
||
|
"max_depth" => $args["max_depth"],
|
||
|
])
|
||
|
); ?>
|
||
|
|
||
|
<div class="clear"></div>
|
||
|
|
||
|
</div><!-- .comment-actions -->
|
||
|
|
||
|
</div><!-- .comment-header -->
|
||
|
|
||
|
<div class="comment-content">
|
||
|
|
||
|
<?php if ("0" == $comment->comment_approved): ?>
|
||
|
|
||
|
<p class="comment-awaiting-moderation"><?php _e(
|
||
|
"Awaiting moderation",
|
||
|
"escapium"
|
||
|
); ?></p>
|
||
|
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<?php comment_text(); ?>
|
||
|
|
||
|
</div><!-- .comment-content -->
|
||
|
|
||
|
<div class="comment-actions-below hidden">
|
||
|
|
||
|
<?php edit_comment_link(__("Edit", "escapium"), "", ""); ?>
|
||
|
|
||
|
<?php comment_reply_link(
|
||
|
array_merge($args, [
|
||
|
"reply_text" => __("Reply", "escapium"),
|
||
|
"depth" => $depth,
|
||
|
"max_depth" => $args["max_depth"],
|
||
|
])
|
||
|
); ?>
|
||
|
|
||
|
<div class="clear"></div>
|
||
|
|
||
|
</div><!-- .comment-actions -->
|
||
|
|
||
|
</div><!-- .comment-inner -->
|
||
|
|
||
|
</div><!-- .comment-## -->
|
||
|
<?php break;
|
||
|
endswitch;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|