From b5dfa7f09b5c72ecfa4c4d64e5fc649324385a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Sun, 16 Mar 2025 15:31:11 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E8=AE=B0=E4=BD=8F=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comments.php | 192 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 112 insertions(+), 80 deletions(-) diff --git a/comments.php b/comments.php index 8c31b6a..b624443 100644 --- a/comments.php +++ b/comments.php @@ -1,77 +1,112 @@ -
+
comments()->to($comments); ?> - allow('comment') && stripos($language, 'zh') > -1): ?> + allow('comment') && stripos($language, 'zh') > -1): ?> is('attachment')) : ?> -

+

commentsNum(_t('0'), _t('1'), _t('%d')); ?>

    -
    - -
    - user->hasLogin()): ?> -

    - - user->screenName(); ?>. - »

    - -

    - -

    -

    - options->commentsRequireMail): ?> required /> -

    -

    - options->commentsRequireURL): ?> required /> -

    - -

    - -

    -

    - -

    -
    -
    - +
    + +
    + user->hasLogin()): ?> +

    + + user->screenName(); ?>. + »

    + +

    + +

    +

    + options->commentsRequireMail): ?> required /> +

    +

    + options->commentsRequireURL): ?> required /> +

    + +

    + +

    +

    + +

    +
    +
    + - have()): ?> - listComments(); ?> - - pageNav( - ' ', - ' ', - 1, - '...', - array( - 'wrapTag' => 'nav', - 'wrapClass' => 'nav-links nav-links__comment', - 'itemTag' => '', - 'textTag' => 'span', - 'itemClass' => 'page-numbers', - 'currentClass' => 'page-numbers current', - 'prevClass' => 'hidden', - 'nextClass' => 'hidden' - ) - ); - ?> - -

    - + have()): ?> + listComments(); ?> + + pageNav( + ' ', + ' ', + 1, + '...', + array( + 'wrapTag' => 'nav', + 'wrapClass' => 'nav-links nav-links__comment', + 'itemTag' => '', + 'textTag' => 'span', + 'itemClass' => 'page-numbers', + 'currentClass' => 'page-numbers current', + 'prevClass' => 'hidden', + 'nextClass' => 'hidden' + ) + ); + ?> + +

    + options->twikoo(); ?>
    + + + + theId(); ?>">
    - url): ?> - - gravatar('40', ''); ?> - - - gravatar('40', ''); ?> - + url): ?> + + gravatar('40', ''); ?> + + + gravatar('40', ''); ?> +
    - -

    - author; ?> -

    -
    - -
    date('Y-m-d H:i'); ?>
    - - ip; $location = get_ip_location($ip); display_location($location); ?> - - reply(''); ?> - + +

    + author; ?> +

    +
    + +
    date('Y-m-d H:i'); ?>
    + + + reply(''); ?> +
    - parent) {echo getPermalinkFromCoid($comments->parent);} $comments->content();?> + parent) {echo getPermalinkFromCoid($comments->parent);} $comments->content();?>
    children) { ?> @@ -133,4 +165,4 @@ function threadedComments($comments, $options) { - \ No newline at end of file + \ No newline at end of file