From 27efb0e429817141e6009f0aefc79bdea17890fa Mon Sep 17 00:00:00 2001 From: Eltrac <45323514+BigCoke233@users.noreply.github.com> Date: Thu, 11 Jul 2019 18:55:48 +0800 Subject: =?UTF-8?q?=F0=9F=99=89=20The=20first=20release=20of=20Miracles=20?= =?UTF-8?q?=F0=9F=99=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/comments.php | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++ includes/footer.php | 88 ++++++++++++++++++++++++++++++++++++++ includes/head.php | 66 +++++++++++++++++++++++++++++ includes/header.php | 67 +++++++++++++++++++++++++++++ 4 files changed, 335 insertions(+) create mode 100644 includes/comments.php create mode 100644 includes/footer.php create mode 100644 includes/head.php create mode 100644 includes/header.php (limited to 'includes') diff --git a/includes/comments.php b/includes/comments.php new file mode 100644 index 0000000..303349c --- /dev/null +++ b/includes/comments.php @@ -0,0 +1,114 @@ +authorId) { + if ($comments->authorId == $comments->ownerId) { + $commentClass .= ' comment-by-author'; //如果是文章作者的评论添加 .comment-by-author 样式 + } else { + $commentClass .= ' comment-by-user'; //如果是评论作者的添加 .comment-by-user 样式 + } + } + $commentLevelClass = $comments->_levels > 0 ? ' comment-child' : ' comment-parent'; //评论层数大于0为子级,否则是父级 +?> +
  • +
    +
    +
    + gravatar('100', ''); ?> +
    +
    +

    author(); ?>

    +

    date('Y-m-d H:i'); ?>

    +
    + content(); ?> +

    + reply(); ?> +

    +
    + children) { ?> +
    + threadedComments($options); ?> +
    + +
    +
    +
    +
  • + +
    + comments()->to($comments); ?> +

    + - + commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?> + - +

    + have()): ?> +
    + listComments(); ?> + pageNav('', ''); ?> +
    + + +
    + +allow('comment')): ?> +
    +
    + cancelReply(); ?> +
    + +

    + +
    + +
    +

    + +

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

    user->screenName(); ?>. »

    + + + +
    +

    + + +

    +

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

    +

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

    +
    + +
    +

    +

    +

    +

    + +

    +
    +
    +
    + + +

    评论已关闭'); ?>

    + +
    +
    \ No newline at end of file diff --git a/includes/footer.php b/includes/footer.php new file mode 100644 index 0000000..f014627 --- /dev/null +++ b/includes/footer.php @@ -0,0 +1,88 @@ + + + + +
    + + +
    + + + + + + + + + + + + + footer(); ?> + + options->jsEcho && $this->options->jsEcho!=''): ?> + + + + diff --git a/includes/head.php b/includes/head.php new file mode 100644 index 0000000..7f7e20b --- /dev/null +++ b/includes/head.php @@ -0,0 +1,66 @@ +options->loginAction; + exit; + } +}?> + + + + + + + + + is('post') || $this->is('page')){ + if(isset($this->fields->banner)) + $banner=$this->fields->banner; + if(isset($this->fields->excerpt)) + $description = $this->fields->excerpt; + }else{ + $description = Helper::options()->description; + } + ?> + <?php Contents::title($this); ?> + + + + + + + + + + + + + + " /> + + + header('description=&'); ?> + options->headerEcho(); ?> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/includes/header.php b/includes/header.php new file mode 100644 index 0000000..abc57ca --- /dev/null +++ b/includes/header.php @@ -0,0 +1,67 @@ + + +
    + + user->hasLogin()): ?> +

    你已经登陆过了哦

    +

     不过康纳很乐意再次见到user->screenName(); ?>呢~

    + +
    +

    登录后台

    + + + + +
    + +
    + +
    +
    + is('post') || $this->is('page')): ?> +
    + +
    + +
    +
    + +
    +
    +
    +
    +


    + \ No newline at end of file -- cgit v1.2.3