dimsog/wn-comments-plugin

为您网站上的任何页面添加评论

安装次数: 179

依赖项: 1

建议者: 0

安全性: 0

星标: 4

关注者: 1

分支: 2

开放问题: 2

类型:winter-plugin

1.1.8 2023-07-29 16:07 UTC

README

为您网站上的任何页面添加评论。 image image

功能

  • 完全免费(MIT协议)
  • 支持前端用户(参见winter/wn-user-plugin
  • 内容审核
  • 显示/隐藏电子邮件字段
  • 支持树形评论
  • 删除评论的能力
  • 电子邮件通知
  • 无需jQuery!
  • 支持Snowboard

语言支持

  • 英语
  • 俄语

支持的版本

请查看:https://php.ac.cn/supported-versions.php

  • PHP 8.0
  • PHP 8.1
  • PHP 8.2

演示

https://winterplugins.com/wn-comments-plugin

安装

composer require dimsog/wn-comments-plugin
php artisan winter:up

如何使用

title = "Demonstration"
url = "/post/:slug"
layout = "default"

[comments]

==

{% component 'comments' %}

仅对认证用户显示表单

重要!您必须安装一个前端用户插件!例如 winter/wn-user-plugin

composer require wintercms/wn-user-plugin
title = "Demonstration"
url = "/post/:slug"
layout = "default"

[comments]
auth = true

==

{% component 'comments' %}

显示特定页面的评论

title = "Demonstration"
url = "/post/:slug"
layout = "default"

[comments]
url = "{{ :slug }}"

==

{% component 'comments' %}

统计当前页面的评论总数

Count: <span id="comments-count">{{ comments.count() }}</span>

统计另一页面的评论总数

Count: <span id="comments-count">{{ comments.count('/') }}</span>

配置

image